2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for GNU Awk 3.1.5.
5 # Report bugs to <bug-gawk@gnu.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
262 SHELL=${CONFIG_SHELL-/bin/sh}
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
269 # Identity of this package.
270 PACKAGE_NAME='GNU Awk'
271 PACKAGE_TARNAME='gawk'
272 PACKAGE_VERSION='3.1.5'
273 PACKAGE_STRING='GNU Awk 3.1.5'
274 PACKAGE_BUGREPORT='bug-gawk@gnu.org'
276 # Factoring default headers for most tests.
277 ac_includes_default="\
280 # include <sys/types.h>
283 # include <sys/stat.h>
294 # if !STDC_HEADERS && HAVE_MEMORY_H
300 # include <strings.h>
303 # include <inttypes.h>
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 EGREP YACC LN_S 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 RANLIB ac_ct_RANLIB U ANSI2KNR MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os INTL_MACOSX_LIBS LIBICONV LTLIBICONV INTLLIBS LIBINTL LTLIBINTL POSUB LIBOBJS SOCKET_LIBS LTLIBOBJS'
316 # Initialize some variables set by options.
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
328 program_transform_name=s,x,x,
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'
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366 # Accept the important Cygnus configure options, so we can diagnose typos.
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
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 ;;
388 cache_file=config.cache ;;
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 datadir=$ac_optarg ;;
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" ;;
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'`
413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
416 eval "enable_$ac_feature='$ac_optarg'" ;;
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 ;;
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
431 -help | --help | --hel | --he | -h)
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 ;;
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
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 ;;
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
455 -libdir | --libdir | --libdi | --libd)
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
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 ;;
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 ;;
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482 # Obsolete; use --without-fp.
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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 ;;
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
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 ;;
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 ;;
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 ;;
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 sbindir=$ac_optarg ;;
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 sharedstatedir=$ac_optarg ;;
559 -site | --site | --sit)
561 -site=* | --site=* | --sit=*)
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
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 ;;
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 ;;
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 -version | --version | --versio | --versi | --vers | -V)
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'`
595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
598 eval "with_$ac_package='$ac_optarg'" ;;
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" ;;
610 # Obsolete; use --with-x.
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 ;;
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 ;;
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
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'"
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}
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; }; }
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
662 eval ac_val=$`echo $ac_var`
664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666 { (exit 1); exit 1; }; };;
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
674 eval ac_val=$`echo $ac_var`
676 [\\/$]* | ?:[\\/]* ) ;;
677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678 { (exit 1); exit 1; }; };;
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.
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
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
703 test "$silent" = yes && exec 6>/dev/null
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 ||
717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719 /^X\(\/\/\)$/{ s//\1/; q; }
720 /^X\(\/\).*/{ s//\1/; q; }
723 if test ! -r $srcdir/$ac_unique_file; then
727 ac_srcdir_defaulted=no
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; }; }
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (exit 1); exit 1; }; }
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}
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
776 # Report the --help message.
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.
782 \`configure' configures GNU Awk 3.1.5 to adapt to many kinds of systems.
784 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
789 Defaults for the options are specified in brackets.
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 \`..']
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
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'.
816 For better control, use the options below.
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]
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
841 --build=BUILD configure for building on BUILD [guessed]
842 --host=HOST cross-compile to build programs to run on HOST [BUILD]
846 if test -n "$ac_init_help"; then
847 case $ac_init_help in
848 short | recursive ) echo "Configuration of GNU Awk 3.1.5:";;
853 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
854 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
855 --enable-portals Enable /p as path prefix for portals
856 --disable-lint Disable gawk lint checking
857 --enable-switch Enable switch statements for awk programs
858 --disable-dependency-tracking speeds up one-time build
859 --enable-dependency-tracking do not reject slow dependency extractors
860 --disable-largefile omit support for large files
861 --disable-nls do not use Native Language Support
862 --disable-rpath do not hardcode runtime library paths
865 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
866 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
867 --with-whiny-user-strftime Force use of included version of strftime for deficient systems
868 --with-gnu-ld assume the C compiler uses GNU ld default=no
869 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
870 --without-libiconv-prefix don't search for libiconv in includedir and libdir
871 --with-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
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>
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.
886 Report bugs to <bug-gawk@gnu.org>.
890 if test "$ac_init_help" = "recursive"; then
891 # If there are subdirs, report their specific --help.
893 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
894 test -d $ac_dir || continue
897 if test "$ac_dir" != .; then
898 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
899 # A "../" for each directory in $ac_dir_suffix.
900 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
902 ac_dir_suffix= ac_top_builddir=
906 .) # No --srcdir option. We are building in place.
908 if test -z "$ac_top_builddir"; then
911 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
913 [\\/]* | ?:[\\/]* ) # Absolute path.
914 ac_srcdir=$srcdir$ac_dir_suffix;
915 ac_top_srcdir=$srcdir ;;
917 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
918 ac_top_srcdir=$ac_top_builddir$srcdir ;;
921 # Do not use `cd foo && pwd` to compute absolute paths, because
922 # the directories may not exist.
924 .) ac_abs_builddir="$ac_dir";;
927 .) ac_abs_builddir=`pwd`;;
928 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
929 *) ac_abs_builddir=`pwd`/"$ac_dir";;
932 case $ac_abs_builddir in
933 .) ac_abs_top_builddir=${ac_top_builddir}.;;
935 case ${ac_top_builddir}. in
936 .) ac_abs_top_builddir=$ac_abs_builddir;;
937 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
938 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
941 case $ac_abs_builddir in
942 .) ac_abs_srcdir=$ac_srcdir;;
945 .) ac_abs_srcdir=$ac_abs_builddir;;
946 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
947 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
950 case $ac_abs_builddir in
951 .) ac_abs_top_srcdir=$ac_top_srcdir;;
953 case $ac_top_srcdir in
954 .) ac_abs_top_srcdir=$ac_abs_builddir;;
955 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
956 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
961 # Check for guested configure; otherwise get Cygnus style configure.
962 if test -f $ac_srcdir/configure.gnu; then
964 $SHELL $ac_srcdir/configure.gnu --help=recursive
965 elif test -f $ac_srcdir/configure; then
967 $SHELL $ac_srcdir/configure --help=recursive
968 elif test -f $ac_srcdir/configure.ac ||
969 test -f $ac_srcdir/configure.in; then
973 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
979 test -n "$ac_init_help" && exit 0
980 if $ac_init_version; then
982 GNU Awk configure 3.1.5
983 generated by GNU Autoconf 2.59
985 Copyright (C) 2003 Free Software Foundation, Inc.
986 This configure script is free software; the Free Software Foundation
987 gives unlimited permission to copy, distribute and modify it.
993 This file contains any messages produced by compilers while
994 running configure, to aid debugging if configure makes a mistake.
996 It was created by GNU Awk $as_me 3.1.5, which was
997 generated by GNU Autoconf 2.59. Invocation command line was
1008 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1009 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1010 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1011 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1012 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1014 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1015 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1017 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1018 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1019 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1020 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1021 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1022 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1023 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1031 test -z "$as_dir" && as_dir=.
1032 echo "PATH: $as_dir"
1047 # Keep a trace of the command line.
1048 # Strip out --no-create and --no-recursion so they do not pile up.
1049 # Strip out --silent because we don't want to record it for future runs.
1050 # Also quote any args containing shell meta-characters.
1051 # Make two passes to allow for proper duplicate-argument suppression.
1056 ac_must_keep_next=false
1062 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil)
1066 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1067 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1070 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1072 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1073 if test $ac_must_keep_next = true; then
1074 ac_must_keep_next=false # Got value, back to normal.
1077 *=* | --config-cache | -C | -disable-* | --disable-* \
1078 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1079 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1080 | -with-* | --with-* | -without-* | --without-* | --x)
1081 case "$ac_configure_args0 " in
1082 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1085 -* ) ac_must_keep_next=true ;;
1088 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1089 # Get rid of the leading space.
1095 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1096 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1098 # When interrupted or exit'd, cleanup temporary files, and complete
1099 # config.log. We remove comments because anyway the quotes in there
1100 # would cause problems or look ugly.
1101 # WARNING: Be sure not to use single quotes in there, as some shells,
1102 # such as our DU 5.0 friend, will then `close' the trap.
1103 trap 'exit_status=$?
1104 # Save into config.log some information that might help in debugging.
1109 ## ---------------- ##
1110 ## Cache variables. ##
1111 ## ---------------- ##
1114 # The following way of writing the cache mishandles newlines in values,
1117 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1120 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1125 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1132 ## ----------------- ##
1133 ## Output variables. ##
1134 ## ----------------- ##
1137 for ac_var in $ac_subst_vars
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1144 if test -n "$ac_subst_files"; then
1151 for ac_var in $ac_subst_files
1153 eval ac_val=$`echo $ac_var`
1154 echo "$ac_var='"'"'$ac_val'"'"'"
1159 if test -s confdefs.h; then
1166 sed "/^$/d" confdefs.h | sort
1169 test "$ac_signal" != 0 &&
1170 echo "$as_me: caught signal $ac_signal"
1171 echo "$as_me: exit $exit_status"
1173 rm -f core *.core &&
1174 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1177 for ac_signal in 1 2 13 15; do
1178 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1183 rm -rf conftest* confdefs.h
1184 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1187 # Predefined preprocessor variables.
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_NAME "$PACKAGE_NAME"
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_STRING "$PACKAGE_STRING"
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1214 # Let the site file select an alternate cache file if it wants to.
1215 # Prefer explicitly selected file to automatically selected ones.
1216 if test -z "$CONFIG_SITE"; then
1217 if test "x$prefix" != xNONE; then
1218 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1220 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1223 for ac_site_file in $CONFIG_SITE; do
1224 if test -r "$ac_site_file"; then
1225 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1226 echo "$as_me: loading site script $ac_site_file" >&6;}
1227 sed 's/^/| /' "$ac_site_file" >&5
1232 if test -r "$cache_file"; then
1233 # Some versions of bash will fail to source /dev/null (special
1234 # files actually), so we avoid doing that.
1235 if test -f "$cache_file"; then
1236 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1237 echo "$as_me: loading cache $cache_file" >&6;}
1239 [\\/]* | ?:[\\/]* ) . $cache_file;;
1240 *) . ./$cache_file;;
1244 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1245 echo "$as_me: creating cache $cache_file" >&6;}
1249 # Check that the precious variables saved in the cache have kept the same
1251 ac_cache_corrupted=false
1252 for ac_var in `(set) 2>&1 |
1253 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1254 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1255 eval ac_new_set=\$ac_env_${ac_var}_set
1256 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1257 eval ac_new_val="\$ac_env_${ac_var}_value"
1258 case $ac_old_set,$ac_new_set in
1260 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1261 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1262 ac_cache_corrupted=: ;;
1264 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1265 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1266 ac_cache_corrupted=: ;;
1269 if test "x$ac_old_val" != "x$ac_new_val"; then
1270 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1271 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1272 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1273 echo "$as_me: former value: $ac_old_val" >&2;}
1274 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1275 echo "$as_me: current value: $ac_new_val" >&2;}
1276 ac_cache_corrupted=:
1279 # Pass precious variables to config.status.
1280 if test "$ac_new_set" = set; then
1282 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1283 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1284 *) ac_arg=$ac_var=$ac_new_val ;;
1286 case " $ac_configure_args " in
1287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1288 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1292 if $ac_cache_corrupted; then
1293 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1294 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1295 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1296 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1297 { (exit 1); exit 1; }; }
1301 ac_cpp='$CPP $CPPFLAGS'
1302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1333 # This is a hack. Different versions of install on different systems
1334 # are just too different. Chuck it and use install-sh.
1336 # If the user supplies $INSTALL, figure they know what they're doing.
1338 # With Autoconf 2.5x, this needs to come very early on, but *after*
1339 # the INIT macro. Sigh.
1341 if test "x$INSTALL" = "x"
1343 INSTALL="$srcdir/install-sh -c"
1348 am__api_version="1.9"
1350 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1351 if test -f $ac_dir/install-sh; then
1353 ac_install_sh="$ac_aux_dir/install-sh -c"
1355 elif test -f $ac_dir/install.sh; then
1357 ac_install_sh="$ac_aux_dir/install.sh -c"
1359 elif test -f $ac_dir/shtool; then
1361 ac_install_sh="$ac_aux_dir/shtool install -c"
1365 if test -z "$ac_aux_dir"; then
1366 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1367 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1368 { (exit 1); exit 1; }; }
1370 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1371 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1372 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1374 # Find a good install program. We prefer a C program (faster),
1375 # so one script is as good as another. But avoid the broken or
1376 # incompatible versions:
1377 # SysV /etc/install, /usr/sbin/install
1378 # SunOS /usr/etc/install
1379 # IRIX /sbin/install
1381 # AmigaOS /C/install, which installs bootblocks on floppy discs
1382 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1383 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1384 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1385 # OS/2's system install, which has a completely different semantic
1386 # ./install, which can be erroneously created by make from ./install.sh.
1387 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1388 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1389 if test -z "$INSTALL"; then
1390 if test "${ac_cv_path_install+set}" = set; then
1391 echo $ECHO_N "(cached) $ECHO_C" >&6
1393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1397 test -z "$as_dir" && as_dir=.
1398 # Account for people who put trailing slashes in PATH elements.
1400 ./ | .// | /cC/* | \
1401 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1402 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1405 # OSF1 and SCO ODT 3.0 have their own names for install.
1406 # Don't use installbsd from OSF since it installs stuff as root
1408 for ac_prog in ginstall scoinst install; do
1409 for ac_exec_ext in '' $ac_executable_extensions; do
1410 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1411 if test $ac_prog = install &&
1412 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1413 # AIX install. It has an incompatible calling convention.
1415 elif test $ac_prog = install &&
1416 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1417 # program-specific install script used by HP pwplus--don't use.
1420 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1432 if test "${ac_cv_path_install+set}" = set; then
1433 INSTALL=$ac_cv_path_install
1435 # As a last resort, use the slow shell script. We don't cache a
1436 # path for INSTALL within a source directory, because that will
1437 # break other packages using the cache if that directory is
1438 # removed, or if the path is relative.
1439 INSTALL=$ac_install_sh
1442 echo "$as_me:$LINENO: result: $INSTALL" >&5
1443 echo "${ECHO_T}$INSTALL" >&6
1445 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1446 # It thinks the first close brace ends the variable substitution.
1447 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1449 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1451 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1453 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1454 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1457 echo timestamp > conftest.file
1458 # Do `set' in a subshell so we don't clobber the current shell's
1459 # arguments. Must try -L first in case configure is actually a
1460 # symlink; some systems play weird games with the mod time of symlinks
1461 # (eg FreeBSD returns the mod time of the symlink's containing
1464 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1465 if test "$*" = "X"; then
1467 set X `ls -t $srcdir/configure conftest.file`
1470 if test "$*" != "X $srcdir/configure conftest.file" \
1471 && test "$*" != "X conftest.file $srcdir/configure"; then
1473 # If neither matched, then we have a broken ls. This can happen
1474 # if, for instance, CONFIG_SHELL is bash and it inherits a
1475 # broken ls alias from the environment. This has actually
1476 # happened. Such a system could not be considered "sane".
1477 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1478 alias in your environment" >&5
1479 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1480 alias in your environment" >&2;}
1481 { (exit 1); exit 1; }; }
1484 test "$2" = conftest.file
1490 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1491 Check your system clock" >&5
1492 echo "$as_me: error: newly created file is older than distributed files!
1493 Check your system clock" >&2;}
1494 { (exit 1); exit 1; }; }
1496 echo "$as_me:$LINENO: result: yes" >&5
1497 echo "${ECHO_T}yes" >&6
1498 test "$program_prefix" != NONE &&
1499 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1500 # Use a double $ so make ignores it.
1501 test "$program_suffix" != NONE &&
1502 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1503 # Double any \ or $. echo might interpret backslashes.
1504 # By default was `s,x,x', remove it if useless.
1505 cat <<\_ACEOF >conftest.sed
1506 s/[\\$]/&&/g;s/;s,x,x,$//
1508 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1511 # expand $ac_aux_dir to an absolute path
1512 am_aux_dir=`cd $ac_aux_dir && pwd`
1514 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1515 # Use eval to expand $SHELL
1516 if eval "$MISSING --run true"; then
1517 am_missing_run="$MISSING --run "
1520 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1521 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1524 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1525 # We used to keeping the `.' as first argument, in order to
1526 # allow $(mkdir_p) to be used without argument. As in
1527 # $(mkdir_p) $(somedir)
1528 # where $(somedir) is conditionally defined. However this is wrong
1530 # 1. if the package is installed by a user who cannot write `.'
1531 # make install will fail,
1532 # 2. the above comment should most certainly read
1533 # $(mkdir_p) $(DESTDIR)$(somedir)
1534 # so it does not work when $(somedir) is undefined and
1535 # $(DESTDIR) is not.
1536 # To support the latter case, we have to write
1537 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1538 # so the `.' trick is pointless.
1539 mkdir_p='mkdir -p --'
1541 # On NextStep and OpenStep, the `mkdir' command does not
1542 # recognize any option. It will interpret all options as
1543 # directories to create, and then abort because `.' already
1545 for d in ./-p ./--version;
1547 test -d $d && rmdir $d
1549 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1550 if test -f "$ac_aux_dir/mkinstalldirs"; then
1551 mkdir_p='$(mkinstalldirs)'
1553 mkdir_p='$(install_sh) -d'
1557 for ac_prog in gawk mawk nawk awk
1559 # Extract the first word of "$ac_prog", so it can be a program name with args.
1560 set dummy $ac_prog; ac_word=$2
1561 echo "$as_me:$LINENO: checking for $ac_word" >&5
1562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1563 if test "${ac_cv_prog_AWK+set}" = set; then
1564 echo $ECHO_N "(cached) $ECHO_C" >&6
1566 if test -n "$AWK"; then
1567 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1573 test -z "$as_dir" && as_dir=.
1574 for ac_exec_ext in '' $ac_executable_extensions; do
1575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1576 ac_cv_prog_AWK="$ac_prog"
1577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1586 if test -n "$AWK"; then
1587 echo "$as_me:$LINENO: result: $AWK" >&5
1588 echo "${ECHO_T}$AWK" >&6
1590 echo "$as_me:$LINENO: result: no" >&5
1591 echo "${ECHO_T}no" >&6
1594 test -n "$AWK" && break
1597 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1598 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1599 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1600 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1603 cat >conftest.make <<\_ACEOF
1605 @echo 'ac_maketemp="$(MAKE)"'
1607 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1608 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1609 if test -n "$ac_maketemp"; then
1610 eval ac_cv_prog_make_${ac_make}_set=yes
1612 eval ac_cv_prog_make_${ac_make}_set=no
1616 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1617 echo "$as_me:$LINENO: result: yes" >&5
1618 echo "${ECHO_T}yes" >&6
1621 echo "$as_me:$LINENO: result: no" >&5
1622 echo "${ECHO_T}no" >&6
1623 SET_MAKE="MAKE=${MAKE-make}"
1626 rm -rf .tst 2>/dev/null
1627 mkdir .tst 2>/dev/null
1628 if test -d .tst; then
1633 rmdir .tst 2>/dev/null
1635 # test to see if srcdir already configured
1636 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1637 test -f $srcdir/config.status; then
1638 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1639 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1640 { (exit 1); exit 1; }; }
1643 # test whether we have cygpath
1644 if test -z "$CYGPATH_W"; then
1645 if (cygpath --version) >/dev/null 2>/dev/null; then
1646 CYGPATH_W='cygpath -w'
1653 # Define the identity of the package.
1658 cat >>confdefs.h <<_ACEOF
1659 #define PACKAGE "$PACKAGE"
1663 cat >>confdefs.h <<_ACEOF
1664 #define VERSION "$VERSION"
1667 # Some tools Automake needs.
1669 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1672 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1675 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1678 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1681 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1683 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1685 # Installed binaries are usually stripped using `strip' when the user
1686 # run `make install-strip'. However `strip' might not be the right
1687 # tool to use in cross-compilation environments, therefore Automake
1688 # will honor the `STRIP' environment variable to overrule this program.
1689 if test "$cross_compiling" != no; then
1690 if test -n "$ac_tool_prefix"; then
1691 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1692 set dummy ${ac_tool_prefix}strip; ac_word=$2
1693 echo "$as_me:$LINENO: checking for $ac_word" >&5
1694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1695 if test "${ac_cv_prog_STRIP+set}" = set; then
1696 echo $ECHO_N "(cached) $ECHO_C" >&6
1698 if test -n "$STRIP"; then
1699 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 test -z "$as_dir" && as_dir=.
1706 for ac_exec_ext in '' $ac_executable_extensions; do
1707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1708 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1717 STRIP=$ac_cv_prog_STRIP
1718 if test -n "$STRIP"; then
1719 echo "$as_me:$LINENO: result: $STRIP" >&5
1720 echo "${ECHO_T}$STRIP" >&6
1722 echo "$as_me:$LINENO: result: no" >&5
1723 echo "${ECHO_T}no" >&6
1727 if test -z "$ac_cv_prog_STRIP"; then
1729 # Extract the first word of "strip", so it can be a program name with args.
1730 set dummy strip; ac_word=$2
1731 echo "$as_me:$LINENO: checking for $ac_word" >&5
1732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1733 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1734 echo $ECHO_N "(cached) $ECHO_C" >&6
1736 if test -n "$ac_ct_STRIP"; then
1737 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743 test -z "$as_dir" && as_dir=.
1744 for ac_exec_ext in '' $ac_executable_extensions; do
1745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1746 ac_cv_prog_ac_ct_STRIP="strip"
1747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1753 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1756 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1757 if test -n "$ac_ct_STRIP"; then
1758 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1759 echo "${ECHO_T}$ac_ct_STRIP" >&6
1761 echo "$as_me:$LINENO: result: no" >&5
1762 echo "${ECHO_T}no" >&6
1767 STRIP="$ac_cv_prog_STRIP"
1771 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1773 # We need awk for the "check" target. The system "awk" is bad on
1775 # Always define AMTAR for backward compatibility.
1777 AMTAR=${AMTAR-"${am_missing_run}tar"}
1779 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1786 # Check whether --enable-portals or --disable-portals was given.
1787 if test "${enable_portals+set}" = set; then
1788 enableval="$enable_portals"
1789 if test "$enableval" = yes
1792 cat >>confdefs.h <<\_ACEOF
1793 #define HAVE_PORTALS 1
1800 # Check whether --with-whiny-user-strftime or --without-whiny-user-strftime was given.
1801 if test "${with_whiny_user_strftime+set}" = set; then
1802 withval="$with_whiny_user_strftime"
1803 if test "$withval" = yes
1806 cat >>confdefs.h <<\_ACEOF
1807 #define USE_INCLUDED_STRFTIME 1
1813 # Check whether --enable-lint or --disable-lint was given.
1814 if test "${enable_lint+set}" = set; then
1815 enableval="$enable_lint"
1816 if test "$enableval" = no
1819 cat >>confdefs.h <<\_ACEOF
1826 # Check whether --enable-switch or --disable-switch was given.
1827 if test "${enable_switch+set}" = set; then
1828 enableval="$enable_switch"
1829 if test "$enableval" = yes
1832 cat >>confdefs.h <<\_ACEOF
1833 #define ALLOW_SWITCH 1
1840 echo "$as_me:$LINENO: checking for egrep" >&5
1841 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
1842 if test "${ac_cv_prog_egrep+set}" = set; then
1843 echo $ECHO_N "(cached) $ECHO_C" >&6
1845 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
1846 then ac_cv_prog_egrep='grep -E'
1847 else ac_cv_prog_egrep='egrep'
1850 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
1851 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
1852 EGREP=$ac_cv_prog_egrep
1855 for ac_prog in 'bison -y' byacc
1857 # Extract the first word of "$ac_prog", so it can be a program name with args.
1858 set dummy $ac_prog; ac_word=$2
1859 echo "$as_me:$LINENO: checking for $ac_word" >&5
1860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1861 if test "${ac_cv_prog_YACC+set}" = set; then
1862 echo $ECHO_N "(cached) $ECHO_C" >&6
1864 if test -n "$YACC"; then
1865 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1871 test -z "$as_dir" && as_dir=.
1872 for ac_exec_ext in '' $ac_executable_extensions; do
1873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1874 ac_cv_prog_YACC="$ac_prog"
1875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1883 YACC=$ac_cv_prog_YACC
1884 if test -n "$YACC"; then
1885 echo "$as_me:$LINENO: result: $YACC" >&5
1886 echo "${ECHO_T}$YACC" >&6
1888 echo "$as_me:$LINENO: result: no" >&5
1889 echo "${ECHO_T}no" >&6
1892 test -n "$YACC" && break
1894 test -n "$YACC" || YACC="yacc"
1896 echo "$as_me:$LINENO: checking whether ln -s works" >&5
1897 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
1899 if test "$LN_S" = "ln -s"; then
1900 echo "$as_me:$LINENO: result: yes" >&5
1901 echo "${ECHO_T}yes" >&6
1903 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
1904 echo "${ECHO_T}no, using $LN_S" >&6
1908 ac_cpp='$CPP $CPPFLAGS'
1909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1912 if test -n "$ac_tool_prefix"; then
1913 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1914 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1915 echo "$as_me:$LINENO: checking for $ac_word" >&5
1916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1917 if test "${ac_cv_prog_CC+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 if test -n "$CC"; then
1921 ac_cv_prog_CC="$CC" # Let the user override the test.
1923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927 test -z "$as_dir" && as_dir=.
1928 for ac_exec_ext in '' $ac_executable_extensions; do
1929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1930 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1940 if test -n "$CC"; then
1941 echo "$as_me:$LINENO: result: $CC" >&5
1942 echo "${ECHO_T}$CC" >&6
1944 echo "$as_me:$LINENO: result: no" >&5
1945 echo "${ECHO_T}no" >&6
1949 if test -z "$ac_cv_prog_CC"; then
1951 # Extract the first word of "gcc", so it can be a program name with args.
1952 set dummy gcc; ac_word=$2
1953 echo "$as_me:$LINENO: checking for $ac_word" >&5
1954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1955 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1956 echo $ECHO_N "(cached) $ECHO_C" >&6
1958 if test -n "$ac_ct_CC"; then
1959 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 test -z "$as_dir" && as_dir=.
1966 for ac_exec_ext in '' $ac_executable_extensions; do
1967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1968 ac_cv_prog_ac_ct_CC="gcc"
1969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1977 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1978 if test -n "$ac_ct_CC"; then
1979 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1980 echo "${ECHO_T}$ac_ct_CC" >&6
1982 echo "$as_me:$LINENO: result: no" >&5
1983 echo "${ECHO_T}no" >&6
1991 if test -z "$CC"; then
1992 if test -n "$ac_tool_prefix"; then
1993 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1994 set dummy ${ac_tool_prefix}cc; ac_word=$2
1995 echo "$as_me:$LINENO: checking for $ac_word" >&5
1996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1997 if test "${ac_cv_prog_CC+set}" = set; then
1998 echo $ECHO_N "(cached) $ECHO_C" >&6
2000 if test -n "$CC"; then
2001 ac_cv_prog_CC="$CC" # Let the user override the test.
2003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2007 test -z "$as_dir" && as_dir=.
2008 for ac_exec_ext in '' $ac_executable_extensions; do
2009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2010 ac_cv_prog_CC="${ac_tool_prefix}cc"
2011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2020 if test -n "$CC"; then
2021 echo "$as_me:$LINENO: result: $CC" >&5
2022 echo "${ECHO_T}$CC" >&6
2024 echo "$as_me:$LINENO: result: no" >&5
2025 echo "${ECHO_T}no" >&6
2029 if test -z "$ac_cv_prog_CC"; then
2031 # Extract the first word of "cc", so it can be a program name with args.
2032 set dummy cc; ac_word=$2
2033 echo "$as_me:$LINENO: checking for $ac_word" >&5
2034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2035 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2036 echo $ECHO_N "(cached) $ECHO_C" >&6
2038 if test -n "$ac_ct_CC"; then
2039 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2045 test -z "$as_dir" && as_dir=.
2046 for ac_exec_ext in '' $ac_executable_extensions; do
2047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2048 ac_cv_prog_ac_ct_CC="cc"
2049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2057 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2058 if test -n "$ac_ct_CC"; then
2059 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2060 echo "${ECHO_T}$ac_ct_CC" >&6
2062 echo "$as_me:$LINENO: result: no" >&5
2063 echo "${ECHO_T}no" >&6
2072 if test -z "$CC"; then
2073 # Extract the first word of "cc", so it can be a program name with args.
2074 set dummy cc; ac_word=$2
2075 echo "$as_me:$LINENO: checking for $ac_word" >&5
2076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2077 if test "${ac_cv_prog_CC+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
2080 if test -n "$CC"; then
2081 ac_cv_prog_CC="$CC" # Let the user override the test.
2084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088 test -z "$as_dir" && as_dir=.
2089 for ac_exec_ext in '' $ac_executable_extensions; do
2090 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2091 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2092 ac_prog_rejected=yes
2096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2102 if test $ac_prog_rejected = yes; then
2103 # We found a bogon in the path, so make sure we never use it.
2104 set dummy $ac_cv_prog_CC
2106 if test $# != 0; then
2107 # We chose a different compiler from the bogus one.
2108 # However, it has the same basename, so the bogon will be chosen
2109 # first if we set CC to just the basename; use the full file name.
2111 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2117 if test -n "$CC"; then
2118 echo "$as_me:$LINENO: result: $CC" >&5
2119 echo "${ECHO_T}$CC" >&6
2121 echo "$as_me:$LINENO: result: no" >&5
2122 echo "${ECHO_T}no" >&6
2126 if test -z "$CC"; then
2127 if test -n "$ac_tool_prefix"; then
2130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2131 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2132 echo "$as_me:$LINENO: checking for $ac_word" >&5
2133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2134 if test "${ac_cv_prog_CC+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 if test -n "$CC"; then
2138 ac_cv_prog_CC="$CC" # Let the user override the test.
2140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2144 test -z "$as_dir" && as_dir=.
2145 for ac_exec_ext in '' $ac_executable_extensions; do
2146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2147 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2157 if test -n "$CC"; then
2158 echo "$as_me:$LINENO: result: $CC" >&5
2159 echo "${ECHO_T}$CC" >&6
2161 echo "$as_me:$LINENO: result: no" >&5
2162 echo "${ECHO_T}no" >&6
2165 test -n "$CC" && break
2168 if test -z "$CC"; then
2172 # Extract the first word of "$ac_prog", so it can be a program name with args.
2173 set dummy $ac_prog; ac_word=$2
2174 echo "$as_me:$LINENO: checking for $ac_word" >&5
2175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2176 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2179 if test -n "$ac_ct_CC"; then
2180 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186 test -z "$as_dir" && as_dir=.
2187 for ac_exec_ext in '' $ac_executable_extensions; do
2188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2189 ac_cv_prog_ac_ct_CC="$ac_prog"
2190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2198 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2199 if test -n "$ac_ct_CC"; then
2200 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2201 echo "${ECHO_T}$ac_ct_CC" >&6
2203 echo "$as_me:$LINENO: result: no" >&5
2204 echo "${ECHO_T}no" >&6
2207 test -n "$ac_ct_CC" && break
2216 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2217 See \`config.log' for more details." >&5
2218 echo "$as_me: error: no acceptable C compiler found in \$PATH
2219 See \`config.log' for more details." >&2;}
2220 { (exit 1); exit 1; }; }
2222 # Provide some information about the compiler.
2223 echo "$as_me:$LINENO:" \
2224 "checking for C compiler version" >&5
2225 ac_compiler=`set X $ac_compile; echo $2`
2226 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2227 (eval $ac_compiler --version </dev/null >&5) 2>&5
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); }
2231 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2232 (eval $ac_compiler -v </dev/null >&5) 2>&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }
2236 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2237 (eval $ac_compiler -V </dev/null >&5) 2>&5
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }
2242 cat >conftest.$ac_ext <<_ACEOF
2245 cat confdefs.h >>conftest.$ac_ext
2246 cat >>conftest.$ac_ext <<_ACEOF
2247 /* end confdefs.h. */
2257 ac_clean_files_save=$ac_clean_files
2258 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2259 # Try to create an executable without -o first, disregard a.out.
2260 # It will help us diagnose broken compilers, and finding out an intuition
2262 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2263 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2264 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2265 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2266 (eval $ac_link_default) 2>&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; then
2270 # Find the output, starting from the most likely. This scheme is
2271 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2274 # Be careful to initialize this variable, since it used to be cached.
2275 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2277 # b.out is created by i960 compilers.
2278 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2280 test -f "$ac_file" || continue
2282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2285 # This is the source file.
2288 # We found the default executable, but exeext='' is most
2292 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2293 # FIXME: I believe we export ac_cv_exeext for Libtool,
2294 # but it would be cool to find out if it's true. Does anybody
2295 # maintain Libtool? --akim.
2303 echo "$as_me: failed program was:" >&5
2304 sed 's/^/| /' conftest.$ac_ext >&5
2306 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2307 See \`config.log' for more details." >&5
2308 echo "$as_me: error: C compiler cannot create executables
2309 See \`config.log' for more details." >&2;}
2310 { (exit 77); exit 77; }; }
2313 ac_exeext=$ac_cv_exeext
2314 echo "$as_me:$LINENO: result: $ac_file" >&5
2315 echo "${ECHO_T}$ac_file" >&6
2317 # Check the compiler produces executables we can run. If not, either
2318 # the compiler is broken, or we cross compile.
2319 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2320 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2321 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2322 # If not cross compiling, check that we can run a simple program.
2323 if test "$cross_compiling" != yes; then
2324 if { ac_try='./$ac_file'
2325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }; }; then
2332 if test "$cross_compiling" = maybe; then
2335 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2336 If you meant to cross compile, use \`--host'.
2337 See \`config.log' for more details." >&5
2338 echo "$as_me: error: cannot run C compiled programs.
2339 If you meant to cross compile, use \`--host'.
2340 See \`config.log' for more details." >&2;}
2341 { (exit 1); exit 1; }; }
2345 echo "$as_me:$LINENO: result: yes" >&5
2346 echo "${ECHO_T}yes" >&6
2348 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2349 ac_clean_files=$ac_clean_files_save
2350 # Check the compiler produces executables we can run. If not, either
2351 # the compiler is broken, or we cross compile.
2352 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2353 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2354 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2355 echo "${ECHO_T}$cross_compiling" >&6
2357 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2358 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2360 (eval $ac_link) 2>&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; then
2364 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2365 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2366 # work properly (i.e., refer to `conftest.exe'), while it won't with
2368 for ac_file in conftest.exe conftest conftest.*; do
2369 test -f "$ac_file" || continue
2371 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2372 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2379 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2380 See \`config.log' for more details." >&5
2381 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2382 See \`config.log' for more details." >&2;}
2383 { (exit 1); exit 1; }; }
2386 rm -f conftest$ac_cv_exeext
2387 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2388 echo "${ECHO_T}$ac_cv_exeext" >&6
2390 rm -f conftest.$ac_ext
2391 EXEEXT=$ac_cv_exeext
2393 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2394 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2395 if test "${ac_cv_objext+set}" = set; then
2396 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 cat >conftest.$ac_ext <<_ACEOF
2401 cat confdefs.h >>conftest.$ac_ext
2402 cat >>conftest.$ac_ext <<_ACEOF
2403 /* end confdefs.h. */
2413 rm -f conftest.o conftest.obj
2414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2415 (eval $ac_compile) 2>&5
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; then
2419 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2422 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2427 echo "$as_me: failed program was:" >&5
2428 sed 's/^/| /' conftest.$ac_ext >&5
2430 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2431 See \`config.log' for more details." >&5
2432 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2433 See \`config.log' for more details." >&2;}
2434 { (exit 1); exit 1; }; }
2437 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2439 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2440 echo "${ECHO_T}$ac_cv_objext" >&6
2441 OBJEXT=$ac_cv_objext
2443 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2444 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2445 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2446 echo $ECHO_N "(cached) $ECHO_C" >&6
2448 cat >conftest.$ac_ext <<_ACEOF
2451 cat confdefs.h >>conftest.$ac_ext
2452 cat >>conftest.$ac_ext <<_ACEOF
2453 /* end confdefs.h. */
2466 rm -f conftest.$ac_objext
2467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2468 (eval $ac_compile) 2>conftest.er1
2470 grep -v '^ *+' conftest.er1 >conftest.err
2472 cat conftest.err >&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); } &&
2475 { ac_try='test -z "$ac_c_werror_flag"
2476 || test ! -s conftest.err'
2477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }; } &&
2482 { ac_try='test -s conftest.$ac_objext'
2483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; }; then
2490 echo "$as_me: failed program was:" >&5
2491 sed 's/^/| /' conftest.$ac_ext >&5
2495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2496 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2499 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2500 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2501 GCC=`test $ac_compiler_gnu = yes && echo yes`
2502 ac_test_CFLAGS=${CFLAGS+set}
2503 ac_save_CFLAGS=$CFLAGS
2505 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2506 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2507 if test "${ac_cv_prog_cc_g+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 cat >conftest.$ac_ext <<_ACEOF
2513 cat confdefs.h >>conftest.$ac_ext
2514 cat >>conftest.$ac_ext <<_ACEOF
2515 /* end confdefs.h. */
2525 rm -f conftest.$ac_objext
2526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527 (eval $ac_compile) 2>conftest.er1
2529 grep -v '^ *+' conftest.er1 >conftest.err
2531 cat conftest.err >&5
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); } &&
2534 { ac_try='test -z "$ac_c_werror_flag"
2535 || test ! -s conftest.err'
2536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; } &&
2541 { ac_try='test -s conftest.$ac_objext'
2542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); }; }; then
2549 echo "$as_me: failed program was:" >&5
2550 sed 's/^/| /' conftest.$ac_ext >&5
2554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2556 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2557 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2558 if test "$ac_test_CFLAGS" = set; then
2559 CFLAGS=$ac_save_CFLAGS
2560 elif test $ac_cv_prog_cc_g = yes; then
2561 if test "$GCC" = yes; then
2567 if test "$GCC" = yes; then
2573 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2574 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2575 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2576 echo $ECHO_N "(cached) $ECHO_C" >&6
2578 ac_cv_prog_cc_stdc=no
2580 cat >conftest.$ac_ext <<_ACEOF
2583 cat confdefs.h >>conftest.$ac_ext
2584 cat >>conftest.$ac_ext <<_ACEOF
2585 /* end confdefs.h. */
2588 #include <sys/types.h>
2589 #include <sys/stat.h>
2590 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2591 struct buf { int x; };
2592 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2593 static char *e (p, i)
2599 static char *f (char * (*g) (char **, int), char **p, ...)
2604 s = g (p, va_arg (v,int));
2609 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2610 function prototypes and stuff, but not '\xHH' hex character constants.
2611 These don't provoke an error unfortunately, instead are silently treated
2612 as 'x'. The following induces an error, until -std1 is added to get
2613 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2614 array size at least. It's necessary to write '\x00'==0 to get something
2615 that's true only with -std1. */
2616 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2618 int test (int i, double x);
2619 struct s1 {int (*f) (int a);};
2620 struct s2 {int (*f) (double a);};
2621 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2627 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2632 # Don't try gcc -ansi; that turns off useful extensions and
2633 # breaks some systems' header files.
2634 # AIX -qlanglvl=ansi
2635 # Ultrix and OSF/1 -std1
2636 # HP-UX 10.20 and later -Ae
2637 # HP-UX older versions -Aa -D_HPUX_SOURCE
2638 # SVR4 -Xc -D__EXTENSIONS__
2639 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2641 CC="$ac_save_CC $ac_arg"
2642 rm -f conftest.$ac_objext
2643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2644 (eval $ac_compile) 2>conftest.er1
2646 grep -v '^ *+' conftest.er1 >conftest.err
2648 cat conftest.err >&5
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); } &&
2651 { ac_try='test -z "$ac_c_werror_flag"
2652 || test ! -s conftest.err'
2653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); }; } &&
2658 { ac_try='test -s conftest.$ac_objext'
2659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); }; }; then
2664 ac_cv_prog_cc_stdc=$ac_arg
2667 echo "$as_me: failed program was:" >&5
2668 sed 's/^/| /' conftest.$ac_ext >&5
2671 rm -f conftest.err conftest.$ac_objext
2673 rm -f conftest.$ac_ext conftest.$ac_objext
2678 case "x$ac_cv_prog_cc_stdc" in
2680 echo "$as_me:$LINENO: result: none needed" >&5
2681 echo "${ECHO_T}none needed" >&6 ;;
2683 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2684 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2685 CC="$CC $ac_cv_prog_cc_stdc" ;;
2688 # Some people use a C++ compiler to compile C. Since we use `exit',
2689 # in C++ we need to declare it. In case someone uses the same compiler
2690 # for both compiling C and C++ we need to have the C++ compiler decide
2691 # the declaration of exit, since it's the most demanding environment.
2692 cat >conftest.$ac_ext <<_ACEOF
2697 rm -f conftest.$ac_objext
2698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2699 (eval $ac_compile) 2>conftest.er1
2701 grep -v '^ *+' conftest.er1 >conftest.err
2703 cat conftest.err >&5
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); } &&
2706 { ac_try='test -z "$ac_c_werror_flag"
2707 || test ! -s conftest.err'
2708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; } &&
2713 { ac_try='test -s conftest.$ac_objext'
2714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; }; then
2719 for ac_declaration in \
2721 'extern "C" void std::exit (int) throw (); using std::exit;' \
2722 'extern "C" void std::exit (int); using std::exit;' \
2723 'extern "C" void exit (int) throw ();' \
2724 'extern "C" void exit (int);' \
2727 cat >conftest.$ac_ext <<_ACEOF
2730 cat confdefs.h >>conftest.$ac_ext
2731 cat >>conftest.$ac_ext <<_ACEOF
2732 /* end confdefs.h. */
2743 rm -f conftest.$ac_objext
2744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2745 (eval $ac_compile) 2>conftest.er1
2747 grep -v '^ *+' conftest.er1 >conftest.err
2749 cat conftest.err >&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); } &&
2752 { ac_try='test -z "$ac_c_werror_flag"
2753 || test ! -s conftest.err'
2754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }; } &&
2759 { ac_try='test -s conftest.$ac_objext'
2760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }; }; then
2767 echo "$as_me: failed program was:" >&5
2768 sed 's/^/| /' conftest.$ac_ext >&5
2772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2773 cat >conftest.$ac_ext <<_ACEOF
2776 cat confdefs.h >>conftest.$ac_ext
2777 cat >>conftest.$ac_ext <<_ACEOF
2778 /* end confdefs.h. */
2788 rm -f conftest.$ac_objext
2789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2790 (eval $ac_compile) 2>conftest.er1
2792 grep -v '^ *+' conftest.er1 >conftest.err
2794 cat conftest.err >&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); } &&
2797 { ac_try='test -z "$ac_c_werror_flag"
2798 || test ! -s conftest.err'
2799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; } &&
2804 { ac_try='test -s conftest.$ac_objext'
2805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); }; }; then
2812 echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2819 if test -n "$ac_declaration"; then
2820 echo '#ifdef __cplusplus' >>confdefs.h
2821 echo $ac_declaration >>confdefs.h
2822 echo '#endif' >>confdefs.h
2826 echo "$as_me: failed program was:" >&5
2827 sed 's/^/| /' conftest.$ac_ext >&5
2830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2832 ac_cpp='$CPP $CPPFLAGS'
2833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2836 DEPDIR="${am__leading_dot}deps"
2838 ac_config_commands="$ac_config_commands depfiles"
2841 am_make=${MAKE-make}
2842 cat > confinc << 'END'
2847 # If we don't find an include directive, just comment out the code.
2848 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2849 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2853 # First try GNU make style include.
2854 echo "include confinc" > confmf
2855 # We grep out `Entering directory' and `Leaving directory'
2856 # messages which can occur if `w' ends up in MAKEFLAGS.
2857 # In particular we don't look at `^make:' because GNU make might
2858 # be invoked under some other name (usually "gmake"), in which
2859 # case it prints its new name instead of `make'.
2860 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2865 # Now try BSD make style include.
2866 if test "$am__include" = "#"; then
2867 echo '.include "confinc"' > confmf
2868 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2869 am__include=.include
2876 echo "$as_me:$LINENO: result: $_am_result" >&5
2877 echo "${ECHO_T}$_am_result" >&6
2878 rm -f confinc confmf
2880 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2881 if test "${enable_dependency_tracking+set}" = set; then
2882 enableval="$enable_dependency_tracking"
2885 if test "x$enable_dependency_tracking" != xno; then
2886 am_depcomp="$ac_aux_dir/depcomp"
2891 if test "x$enable_dependency_tracking" != xno; then
2902 depcc="$CC" am_compiler_list=
2904 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2905 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2906 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2909 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2910 # We make a subdir and do the tests there. Otherwise we can end up
2911 # making bogus files that we don't know about and never remove. For
2912 # instance it was reported that on HP-UX the gcc test will end up
2913 # making a dummy file named `D' -- because `-MD' means `put the output
2916 # Copy depcomp to subdir because otherwise we won't find it if we're
2917 # using a relative directory.
2918 cp "$am_depcomp" conftest.dir
2920 # We will build objects and dependencies in a subdirectory because
2921 # it helps to detect inapplicable dependency modes. For instance
2922 # both Tru64's cc and ICC support -MD to output dependencies as a
2923 # side effect of compilation, but ICC will put the dependencies in
2924 # the current directory while Tru64 will put them in the object
2928 am_cv_CC_dependencies_compiler_type=none
2929 if test "$am_compiler_list" = ""; then
2930 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2932 for depmode in $am_compiler_list; do
2933 # Setup a source with many dependencies, because some compilers
2934 # like to wrap large dependency lists on column 80 (with \), and
2935 # we should not choose a depcomp mode which is confused by this.
2937 # We need to recreate these files for each test, as the compiler may
2938 # overwrite some of them when testing with obscure command lines.
2939 # This happens at least with the AIX C compiler.
2941 for i in 1 2 3 4 5 6; do
2942 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2943 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2944 # Solaris 8's {/usr,}/bin/sh.
2945 touch sub/conftst$i.h
2947 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2951 # after this tag, mechanisms are not by side-effect, so they'll
2952 # only be used when explicitly requested
2953 if test "x$enable_dependency_tracking" = xyes; then
2961 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2962 # mode. It turns out that the SunPro C++ compiler does not properly
2963 # handle `-M -o', and we need to detect this.
2964 if depmode=$depmode \
2965 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2966 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2967 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2968 >/dev/null 2>conftest.err &&
2969 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2970 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2971 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2972 # icc doesn't choke on unknown options, it will just issue warnings
2973 # or remarks (even with -Werror). So we grep stderr for any message
2974 # that says an option was ignored or not supported.
2975 # When given -MP, icc 7.0 and 7.1 complain thusly:
2976 # icc: Command line warning: ignoring option '-M'; no argument required
2977 # The diagnosis changed in icc 8.0:
2978 # icc: Command line remark: option '-MP' not supported
2979 if (grep 'ignoring option' conftest.err ||
2980 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2981 am_cv_CC_dependencies_compiler_type=$depmode
2990 am_cv_CC_dependencies_compiler_type=none
2994 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2995 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2996 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3001 test "x$enable_dependency_tracking" != xno \
3002 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3004 am__fastdepCC_FALSE='#'
3006 am__fastdepCC_TRUE='#'
3007 am__fastdepCC_FALSE=
3012 ac_cpp='$CPP $CPPFLAGS'
3013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3016 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3017 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3018 # On Suns, sometimes $CPP names a directory.
3019 if test -n "$CPP" && test -d "$CPP"; then
3022 if test -z "$CPP"; then
3023 if test "${ac_cv_prog_CPP+set}" = set; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3026 # Double quotes because CPP needs to be expanded
3027 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3030 for ac_c_preproc_warn_flag in '' yes
3032 # Use a header file that comes with gcc, so configuring glibc
3033 # with a fresh cross-compiler works.
3034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3035 # <limits.h> exists even on freestanding compilers.
3036 # On the NeXT, cc -E runs the code through the compiler's parser,
3037 # not just through cpp. "Syntax error" is here to catch this case.
3038 cat >conftest.$ac_ext <<_ACEOF
3041 cat confdefs.h >>conftest.$ac_ext
3042 cat >>conftest.$ac_ext <<_ACEOF
3043 /* end confdefs.h. */
3045 # include <limits.h>
3047 # include <assert.h>
3051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3054 grep -v '^ *+' conftest.er1 >conftest.err
3056 cat conftest.err >&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); } >/dev/null; then
3059 if test -s conftest.err; then
3060 ac_cpp_err=$ac_c_preproc_warn_flag
3061 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3068 if test -z "$ac_cpp_err"; then
3071 echo "$as_me: failed program was:" >&5
3072 sed 's/^/| /' conftest.$ac_ext >&5
3074 # Broken: fails on valid input.
3077 rm -f conftest.err conftest.$ac_ext
3079 # OK, works on sane cases. Now check whether non-existent headers
3080 # can be detected and how.
3081 cat >conftest.$ac_ext <<_ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h. */
3087 #include <ac_nonexistent.h>
3089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3092 grep -v '^ *+' conftest.er1 >conftest.err
3094 cat conftest.err >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); } >/dev/null; then
3097 if test -s conftest.err; then
3098 ac_cpp_err=$ac_c_preproc_warn_flag
3099 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3106 if test -z "$ac_cpp_err"; then
3107 # Broken: success on invalid input.
3110 echo "$as_me: failed program was:" >&5
3111 sed 's/^/| /' conftest.$ac_ext >&5
3113 # Passes both tests.
3117 rm -f conftest.err conftest.$ac_ext
3120 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3121 rm -f conftest.err conftest.$ac_ext
3122 if $ac_preproc_ok; then
3134 echo "$as_me:$LINENO: result: $CPP" >&5
3135 echo "${ECHO_T}$CPP" >&6
3137 for ac_c_preproc_warn_flag in '' yes
3139 # Use a header file that comes with gcc, so configuring glibc
3140 # with a fresh cross-compiler works.
3141 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3142 # <limits.h> exists even on freestanding compilers.
3143 # On the NeXT, cc -E runs the code through the compiler's parser,
3144 # not just through cpp. "Syntax error" is here to catch this case.
3145 cat >conftest.$ac_ext <<_ACEOF
3148 cat confdefs.h >>conftest.$ac_ext
3149 cat >>conftest.$ac_ext <<_ACEOF
3150 /* end confdefs.h. */
3152 # include <limits.h>
3154 # include <assert.h>
3158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3161 grep -v '^ *+' conftest.er1 >conftest.err
3163 cat conftest.err >&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); } >/dev/null; then
3166 if test -s conftest.err; then
3167 ac_cpp_err=$ac_c_preproc_warn_flag
3168 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3175 if test -z "$ac_cpp_err"; then
3178 echo "$as_me: failed program was:" >&5
3179 sed 's/^/| /' conftest.$ac_ext >&5
3181 # Broken: fails on valid input.
3184 rm -f conftest.err conftest.$ac_ext
3186 # OK, works on sane cases. Now check whether non-existent headers
3187 # can be detected and how.
3188 cat >conftest.$ac_ext <<_ACEOF
3191 cat confdefs.h >>conftest.$ac_ext
3192 cat >>conftest.$ac_ext <<_ACEOF
3193 /* end confdefs.h. */
3194 #include <ac_nonexistent.h>
3196 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3199 grep -v '^ *+' conftest.er1 >conftest.err
3201 cat conftest.err >&5
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); } >/dev/null; then
3204 if test -s conftest.err; then
3205 ac_cpp_err=$ac_c_preproc_warn_flag
3206 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3213 if test -z "$ac_cpp_err"; then
3214 # Broken: success on invalid input.
3217 echo "$as_me: failed program was:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3220 # Passes both tests.
3224 rm -f conftest.err conftest.$ac_ext
3227 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3228 rm -f conftest.err conftest.$ac_ext
3229 if $ac_preproc_ok; then
3232 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3233 See \`config.log' for more details." >&5
3234 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3235 See \`config.log' for more details." >&2;}
3236 { (exit 1); exit 1; }; }
3240 ac_cpp='$CPP $CPPFLAGS'
3241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3245 if test -n "$ac_tool_prefix"; then
3246 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3247 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3248 echo "$as_me:$LINENO: checking for $ac_word" >&5
3249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3250 if test "${ac_cv_prog_RANLIB+set}" = set; then
3251 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 if test -n "$RANLIB"; then
3254 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 test -z "$as_dir" && as_dir=.
3261 for ac_exec_ext in '' $ac_executable_extensions; do
3262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3263 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3272 RANLIB=$ac_cv_prog_RANLIB
3273 if test -n "$RANLIB"; then
3274 echo "$as_me:$LINENO: result: $RANLIB" >&5
3275 echo "${ECHO_T}$RANLIB" >&6
3277 echo "$as_me:$LINENO: result: no" >&5
3278 echo "${ECHO_T}no" >&6
3282 if test -z "$ac_cv_prog_RANLIB"; then
3283 ac_ct_RANLIB=$RANLIB
3284 # Extract the first word of "ranlib", so it can be a program name with args.
3285 set dummy ranlib; ac_word=$2
3286 echo "$as_me:$LINENO: checking for $ac_word" >&5
3287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3288 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 if test -n "$ac_ct_RANLIB"; then
3292 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298 test -z "$as_dir" && as_dir=.
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3301 ac_cv_prog_ac_ct_RANLIB="ranlib"
3302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3308 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3311 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3312 if test -n "$ac_ct_RANLIB"; then
3313 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3314 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3316 echo "$as_me:$LINENO: result: no" >&5
3317 echo "${ECHO_T}no" >&6
3320 RANLIB=$ac_ct_RANLIB
3322 RANLIB="$ac_cv_prog_RANLIB"
3329 # Find a good install program. We prefer a C program (faster),
3330 # so one script is as good as another. But avoid the broken or
3331 # incompatible versions:
3332 # SysV /etc/install, /usr/sbin/install
3333 # SunOS /usr/etc/install
3334 # IRIX /sbin/install
3336 # AmigaOS /C/install, which installs bootblocks on floppy discs
3337 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3338 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3339 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3340 # OS/2's system install, which has a completely different semantic
3341 # ./install, which can be erroneously created by make from ./install.sh.
3342 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3343 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3344 if test -z "$INSTALL"; then
3345 if test "${ac_cv_path_install+set}" = set; then
3346 echo $ECHO_N "(cached) $ECHO_C" >&6
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 test -z "$as_dir" && as_dir=.
3353 # Account for people who put trailing slashes in PATH elements.
3355 ./ | .// | /cC/* | \
3356 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3357 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3360 # OSF1 and SCO ODT 3.0 have their own names for install.
3361 # Don't use installbsd from OSF since it installs stuff as root
3363 for ac_prog in ginstall scoinst install; do
3364 for ac_exec_ext in '' $ac_executable_extensions; do
3365 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3366 if test $ac_prog = install &&
3367 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3368 # AIX install. It has an incompatible calling convention.
3370 elif test $ac_prog = install &&
3371 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3372 # program-specific install script used by HP pwplus--don't use.
3375 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3387 if test "${ac_cv_path_install+set}" = set; then
3388 INSTALL=$ac_cv_path_install
3390 # As a last resort, use the slow shell script. We don't cache a
3391 # path for INSTALL within a source directory, because that will
3392 # break other packages using the cache if that directory is
3393 # removed, or if the path is relative.
3394 INSTALL=$ac_install_sh
3397 echo "$as_me:$LINENO: result: $INSTALL" >&5
3398 echo "${ECHO_T}$INSTALL" >&6
3400 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3401 # It thinks the first close brace ends the variable substitution.
3402 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3404 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3406 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3409 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3410 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3411 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3412 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3415 cat >conftest.make <<\_ACEOF
3417 @echo 'ac_maketemp="$(MAKE)"'
3419 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3420 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3421 if test -n "$ac_maketemp"; then
3422 eval ac_cv_prog_make_${ac_make}_set=yes
3424 eval ac_cv_prog_make_${ac_make}_set=no
3428 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3429 echo "$as_me:$LINENO: result: yes" >&5
3430 echo "${ECHO_T}yes" >&6
3433 echo "$as_me:$LINENO: result: no" >&5
3434 echo "${ECHO_T}no" >&6
3435 SET_MAKE="MAKE=${MAKE-make}"
3439 # This is mainly for my use during testing and development.
3440 # Yes, it's a bit of a hack.
3441 echo "$as_me:$LINENO: checking for special development options" >&5
3442 echo $ECHO_N "checking for special development options... $ECHO_C" >&6
3443 if test -f $srcdir/.developing
3445 # add other debug flags as appropriate, save GAWKDEBUG for emergencies
3446 CFLAGS="$CFLAGS -DARRAYDEBUG"
3447 if grep dbug $srcdir/.developing
3449 CFLAGS="$CFLAGS -DDBUG"
3450 LIBS="$LIBS dbug/libdbug.a"
3452 # turn on compiler warnings if we're doing development
3453 if test "$GCC" = yes
3455 CFLAGS="$CFLAGS -Wall"
3457 echo "$as_me:$LINENO: result: yes" >&5
3458 echo "${ECHO_T}yes" >&6
3460 echo "$as_me:$LINENO: result: no" >&5
3461 echo "${ECHO_T}no" >&6
3469 echo "$as_me:$LINENO: checking for AIX" >&5
3470 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3471 cat >conftest.$ac_ext <<_ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h. */
3482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3483 $EGREP "yes" >/dev/null 2>&1; then
3484 echo "$as_me:$LINENO: result: yes" >&5
3485 echo "${ECHO_T}yes" >&6
3486 cat >>confdefs.h <<\_ACEOF
3487 #define _ALL_SOURCE 1
3491 echo "$as_me:$LINENO: result: no" >&5
3492 echo "${ECHO_T}no" >&6
3497 echo "$as_me:$LINENO: checking for library containing strerror" >&5
3498 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3499 if test "${ac_cv_search_strerror+set}" = set; then
3500 echo $ECHO_N "(cached) $ECHO_C" >&6
3502 ac_func_search_save_LIBS=$LIBS
3503 ac_cv_search_strerror=no
3504 cat >conftest.$ac_ext <<_ACEOF
3507 cat confdefs.h >>conftest.$ac_ext
3508 cat >>conftest.$ac_ext <<_ACEOF
3509 /* end confdefs.h. */
3511 /* Override any gcc2 internal prototype to avoid an error. */
3515 /* We use char because int might match the return type of a gcc2
3516 builtin and then its argument prototype would still apply. */
3526 rm -f conftest.$ac_objext conftest$ac_exeext
3527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3528 (eval $ac_link) 2>conftest.er1
3530 grep -v '^ *+' conftest.er1 >conftest.err
3532 cat conftest.err >&5
3533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); } &&
3535 { ac_try='test -z "$ac_c_werror_flag"
3536 || test ! -s conftest.err'
3537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }; } &&
3542 { ac_try='test -s conftest$ac_exeext'
3543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); }; }; then
3548 ac_cv_search_strerror="none required"
3550 echo "$as_me: failed program was:" >&5
3551 sed 's/^/| /' conftest.$ac_ext >&5
3554 rm -f conftest.err conftest.$ac_objext \
3555 conftest$ac_exeext conftest.$ac_ext
3556 if test "$ac_cv_search_strerror" = no; then
3557 for ac_lib in cposix; do
3558 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3559 cat >conftest.$ac_ext <<_ACEOF
3562 cat confdefs.h >>conftest.$ac_ext
3563 cat >>conftest.$ac_ext <<_ACEOF
3564 /* end confdefs.h. */
3566 /* Override any gcc2 internal prototype to avoid an error. */
3570 /* We use char because int might match the return type of a gcc2
3571 builtin and then its argument prototype would still apply. */
3581 rm -f conftest.$ac_objext conftest$ac_exeext
3582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3583 (eval $ac_link) 2>conftest.er1
3585 grep -v '^ *+' conftest.er1 >conftest.err
3587 cat conftest.err >&5
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); } &&
3590 { ac_try='test -z "$ac_c_werror_flag"
3591 || test ! -s conftest.err'
3592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; } &&
3597 { ac_try='test -s conftest$ac_exeext'
3598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); }; }; then
3603 ac_cv_search_strerror="-l$ac_lib"
3606 echo "$as_me: failed program was:" >&5
3607 sed 's/^/| /' conftest.$ac_ext >&5
3610 rm -f conftest.err conftest.$ac_objext \
3611 conftest$ac_exeext conftest.$ac_ext
3614 LIBS=$ac_func_search_save_LIBS
3616 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3617 echo "${ECHO_T}$ac_cv_search_strerror" >&6
3618 if test "$ac_cv_search_strerror" != no; then
3619 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3623 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3624 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3625 if test "${ac_cv_header_stdc+set}" = set; then
3626 echo $ECHO_N "(cached) $ECHO_C" >&6
3628 cat >conftest.$ac_ext <<_ACEOF
3631 cat confdefs.h >>conftest.$ac_ext
3632 cat >>conftest.$ac_ext <<_ACEOF
3633 /* end confdefs.h. */
3647 rm -f conftest.$ac_objext
3648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3649 (eval $ac_compile) 2>conftest.er1
3651 grep -v '^ *+' conftest.er1 >conftest.err
3653 cat conftest.err >&5
3654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3655 (exit $ac_status); } &&
3656 { ac_try='test -z "$ac_c_werror_flag"
3657 || test ! -s conftest.err'
3658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }; } &&
3663 { ac_try='test -s conftest.$ac_objext'
3664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); }; }; then
3669 ac_cv_header_stdc=yes
3671 echo "$as_me: failed program was:" >&5
3672 sed 's/^/| /' conftest.$ac_ext >&5
3674 ac_cv_header_stdc=no
3676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3678 if test $ac_cv_header_stdc = yes; then
3679 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3680 cat >conftest.$ac_ext <<_ACEOF
3683 cat confdefs.h >>conftest.$ac_ext
3684 cat >>conftest.$ac_ext <<_ACEOF
3685 /* end confdefs.h. */
3689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3690 $EGREP "memchr" >/dev/null 2>&1; then
3693 ac_cv_header_stdc=no
3699 if test $ac_cv_header_stdc = yes; then
3700 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3701 cat >conftest.$ac_ext <<_ACEOF
3704 cat confdefs.h >>conftest.$ac_ext
3705 cat >>conftest.$ac_ext <<_ACEOF
3706 /* end confdefs.h. */
3710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3711 $EGREP "free" >/dev/null 2>&1; then
3714 ac_cv_header_stdc=no
3720 if test $ac_cv_header_stdc = yes; then
3721 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3722 if test "$cross_compiling" = yes; then
3725 cat >conftest.$ac_ext <<_ACEOF
3728 cat confdefs.h >>conftest.$ac_ext
3729 cat >>conftest.$ac_ext <<_ACEOF
3730 /* end confdefs.h. */
3732 #if ((' ' & 0x0FF) == 0x020)
3733 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3734 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3736 # define ISLOWER(c) \
3737 (('a' <= (c) && (c) <= 'i') \
3738 || ('j' <= (c) && (c) <= 'r') \
3739 || ('s' <= (c) && (c) <= 'z'))
3740 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3743 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3748 for (i = 0; i < 256; i++)
3749 if (XOR (islower (i), ISLOWER (i))
3750 || toupper (i) != TOUPPER (i))
3755 rm -f conftest$ac_exeext
3756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3757 (eval $ac_link) 2>&5
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3765 (exit $ac_status); }; }; then
3768 echo "$as_me: program exited with status $ac_status" >&5
3769 echo "$as_me: failed program was:" >&5
3770 sed 's/^/| /' conftest.$ac_ext >&5
3773 ac_cv_header_stdc=no
3775 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3779 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3780 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3781 if test $ac_cv_header_stdc = yes; then
3783 cat >>confdefs.h <<\_ACEOF
3784 #define STDC_HEADERS 1
3789 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3799 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3800 inttypes.h stdint.h unistd.h
3802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3803 echo "$as_me:$LINENO: checking for $ac_header" >&5
3804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3808 cat >conftest.$ac_ext <<_ACEOF
3811 cat confdefs.h >>conftest.$ac_ext
3812 cat >>conftest.$ac_ext <<_ACEOF
3813 /* end confdefs.h. */
3814 $ac_includes_default
3816 #include <$ac_header>
3818 rm -f conftest.$ac_objext
3819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3820 (eval $ac_compile) 2>conftest.er1
3822 grep -v '^ *+' conftest.er1 >conftest.err
3824 cat conftest.err >&5
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); } &&
3827 { ac_try='test -z "$ac_c_werror_flag"
3828 || test ! -s conftest.err'
3829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); }; } &&
3834 { ac_try='test -s conftest.$ac_objext'
3835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); }; }; then
3840 eval "$as_ac_Header=yes"
3842 echo "$as_me: failed program was:" >&5
3843 sed 's/^/| /' conftest.$ac_ext >&5
3845 eval "$as_ac_Header=no"
3847 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3852 cat >>confdefs.h <<_ACEOF
3853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3861 if test "${ac_cv_header_minix_config_h+set}" = set; then
3862 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3863 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3864 if test "${ac_cv_header_minix_config_h+set}" = set; then
3865 echo $ECHO_N "(cached) $ECHO_C" >&6
3867 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3868 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3870 # Is the header compilable?
3871 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3872 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3873 cat >conftest.$ac_ext <<_ACEOF
3876 cat confdefs.h >>conftest.$ac_ext
3877 cat >>conftest.$ac_ext <<_ACEOF
3878 /* end confdefs.h. */
3879 $ac_includes_default
3880 #include <minix/config.h>
3882 rm -f conftest.$ac_objext
3883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3884 (eval $ac_compile) 2>conftest.er1
3886 grep -v '^ *+' conftest.er1 >conftest.err
3888 cat conftest.err >&5
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); } &&
3891 { ac_try='test -z "$ac_c_werror_flag"
3892 || test ! -s conftest.err'
3893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); }; } &&
3898 { ac_try='test -s conftest.$ac_objext'
3899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903 (exit $ac_status); }; }; then
3904 ac_header_compiler=yes
3906 echo "$as_me: failed program was:" >&5
3907 sed 's/^/| /' conftest.$ac_ext >&5
3909 ac_header_compiler=no
3911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3912 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3913 echo "${ECHO_T}$ac_header_compiler" >&6
3915 # Is the header present?
3916 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3917 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3918 cat >conftest.$ac_ext <<_ACEOF
3921 cat confdefs.h >>conftest.$ac_ext
3922 cat >>conftest.$ac_ext <<_ACEOF
3923 /* end confdefs.h. */
3924 #include <minix/config.h>
3926 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3927 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3929 grep -v '^ *+' conftest.er1 >conftest.err
3931 cat conftest.err >&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); } >/dev/null; then
3934 if test -s conftest.err; then
3935 ac_cpp_err=$ac_c_preproc_warn_flag
3936 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3943 if test -z "$ac_cpp_err"; then
3944 ac_header_preproc=yes
3946 echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3949 ac_header_preproc=no
3951 rm -f conftest.err conftest.$ac_ext
3952 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3953 echo "${ECHO_T}$ac_header_preproc" >&6
3955 # So? What about this header?
3956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3958 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3959 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3960 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3961 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3962 ac_header_preproc=yes
3965 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3966 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3967 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3968 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3969 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3970 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3971 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3972 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3973 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3974 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3975 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3976 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3979 ## ------------------------------- ##
3980 ## Report this to bug-gawk@gnu.org ##
3981 ## ------------------------------- ##
3984 sed "s/^/$as_me: WARNING: /" >&2
3987 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3988 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3989 if test "${ac_cv_header_minix_config_h+set}" = set; then
3990 echo $ECHO_N "(cached) $ECHO_C" >&6
3992 ac_cv_header_minix_config_h=$ac_header_preproc
3994 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3995 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3998 if test $ac_cv_header_minix_config_h = yes; then
4005 if test "$MINIX" = yes; then
4007 cat >>confdefs.h <<\_ACEOF
4008 #define _POSIX_SOURCE 1
4012 cat >>confdefs.h <<\_ACEOF
4013 #define _POSIX_1_SOURCE 2
4017 cat >>confdefs.h <<\_ACEOF
4023 # Check whether --enable-largefile or --disable-largefile was given.
4024 if test "${enable_largefile+set}" = set; then
4025 enableval="$enable_largefile"
4028 if test "$enable_largefile" != no; then
4030 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4031 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4032 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4033 echo $ECHO_N "(cached) $ECHO_C" >&6
4035 ac_cv_sys_largefile_CC=no
4036 if test "$GCC" != yes; then
4039 # IRIX 6.2 and later do not support large files by default,
4040 # so use the C compiler's -n32 option if that helps.
4041 cat >conftest.$ac_ext <<_ACEOF
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h. */
4047 #include <sys/types.h>
4048 /* Check that off_t can represent 2**63 - 1 correctly.
4049 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4050 since some C++ compilers masquerading as C compilers
4051 incorrectly reject 9223372036854775807. */
4052 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4053 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4054 && LARGE_OFF_T % 2147483647 == 1)
4064 rm -f conftest.$ac_objext
4065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4066 (eval $ac_compile) 2>conftest.er1
4068 grep -v '^ *+' conftest.er1 >conftest.err
4070 cat conftest.err >&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); } &&
4073 { ac_try='test -z "$ac_c_werror_flag"
4074 || test ! -s conftest.err'
4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; } &&
4080 { ac_try='test -s conftest.$ac_objext'
4081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }; }; then
4088 echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4092 rm -f conftest.err conftest.$ac_objext
4094 rm -f conftest.$ac_objext
4095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4096 (eval $ac_compile) 2>conftest.er1
4098 grep -v '^ *+' conftest.er1 >conftest.err
4100 cat conftest.err >&5
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); } &&
4103 { ac_try='test -z "$ac_c_werror_flag"
4104 || test ! -s conftest.err'
4105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); }; } &&
4110 { ac_try='test -s conftest.$ac_objext'
4111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); }; }; then
4116 ac_cv_sys_largefile_CC=' -n32'; break
4118 echo "$as_me: failed program was:" >&5
4119 sed 's/^/| /' conftest.$ac_ext >&5
4122 rm -f conftest.err conftest.$ac_objext
4126 rm -f conftest.$ac_ext
4129 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4130 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4131 if test "$ac_cv_sys_largefile_CC" != no; then
4132 CC=$CC$ac_cv_sys_largefile_CC
4135 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4136 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4137 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4141 ac_cv_sys_file_offset_bits=no
4142 cat >conftest.$ac_ext <<_ACEOF
4145 cat confdefs.h >>conftest.$ac_ext
4146 cat >>conftest.$ac_ext <<_ACEOF
4147 /* end confdefs.h. */
4148 #include <sys/types.h>
4149 /* Check that off_t can represent 2**63 - 1 correctly.
4150 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4151 since some C++ compilers masquerading as C compilers
4152 incorrectly reject 9223372036854775807. */
4153 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4154 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4155 && LARGE_OFF_T % 2147483647 == 1)
4165 rm -f conftest.$ac_objext
4166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4167 (eval $ac_compile) 2>conftest.er1
4169 grep -v '^ *+' conftest.er1 >conftest.err
4171 cat conftest.err >&5
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); } &&
4174 { ac_try='test -z "$ac_c_werror_flag"
4175 || test ! -s conftest.err'
4176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); }; } &&
4181 { ac_try='test -s conftest.$ac_objext'
4182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); }; }; then
4189 echo "$as_me: failed program was:" >&5
4190 sed 's/^/| /' conftest.$ac_ext >&5
4193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4194 cat >conftest.$ac_ext <<_ACEOF
4197 cat confdefs.h >>conftest.$ac_ext
4198 cat >>conftest.$ac_ext <<_ACEOF
4199 /* end confdefs.h. */
4200 #define _FILE_OFFSET_BITS 64
4201 #include <sys/types.h>
4202 /* Check that off_t can represent 2**63 - 1 correctly.
4203 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4204 since some C++ compilers masquerading as C compilers
4205 incorrectly reject 9223372036854775807. */
4206 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4207 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4208 && LARGE_OFF_T % 2147483647 == 1)
4218 rm -f conftest.$ac_objext
4219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4220 (eval $ac_compile) 2>conftest.er1
4222 grep -v '^ *+' conftest.er1 >conftest.err
4224 cat conftest.err >&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); } &&
4227 { ac_try='test -z "$ac_c_werror_flag"
4228 || test ! -s conftest.err'
4229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; } &&
4234 { ac_try='test -s conftest.$ac_objext'
4235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); }; }; then
4240 ac_cv_sys_file_offset_bits=64; break
4242 echo "$as_me: failed program was:" >&5
4243 sed 's/^/| /' conftest.$ac_ext >&5
4246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4250 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4251 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4252 if test "$ac_cv_sys_file_offset_bits" != no; then
4254 cat >>confdefs.h <<_ACEOF
4255 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4260 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4261 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4262 if test "${ac_cv_sys_large_files+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4266 ac_cv_sys_large_files=no
4267 cat >conftest.$ac_ext <<_ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h. */
4273 #include <sys/types.h>
4274 /* Check that off_t can represent 2**63 - 1 correctly.
4275 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4276 since some C++ compilers masquerading as C compilers
4277 incorrectly reject 9223372036854775807. */
4278 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4279 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4280 && LARGE_OFF_T % 2147483647 == 1)
4290 rm -f conftest.$ac_objext
4291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4292 (eval $ac_compile) 2>conftest.er1
4294 grep -v '^ *+' conftest.er1 >conftest.err
4296 cat conftest.err >&5
4297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298 (exit $ac_status); } &&
4299 { ac_try='test -z "$ac_c_werror_flag"
4300 || test ! -s conftest.err'
4301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; } &&
4306 { ac_try='test -s conftest.$ac_objext'
4307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }; }; then
4314 echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4319 cat >conftest.$ac_ext <<_ACEOF
4322 cat confdefs.h >>conftest.$ac_ext
4323 cat >>conftest.$ac_ext <<_ACEOF
4324 /* end confdefs.h. */
4325 #define _LARGE_FILES 1
4326 #include <sys/types.h>
4327 /* Check that off_t can represent 2**63 - 1 correctly.
4328 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4329 since some C++ compilers masquerading as C compilers
4330 incorrectly reject 9223372036854775807. */
4331 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4332 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4333 && LARGE_OFF_T % 2147483647 == 1)
4343 rm -f conftest.$ac_objext
4344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4345 (eval $ac_compile) 2>conftest.er1
4347 grep -v '^ *+' conftest.er1 >conftest.err
4349 cat conftest.err >&5
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); } &&
4352 { ac_try='test -z "$ac_c_werror_flag"
4353 || test ! -s conftest.err'
4354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); }; } &&
4359 { ac_try='test -s conftest.$ac_objext'
4360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; }; then
4365 ac_cv_sys_large_files=1; break
4367 echo "$as_me: failed program was:" >&5
4368 sed 's/^/| /' conftest.$ac_ext >&5
4371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4375 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4376 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4377 if test "$ac_cv_sys_large_files" != no; then
4379 cat >>confdefs.h <<_ACEOF
4380 #define _LARGE_FILES $ac_cv_sys_large_files
4388 echo "$as_me:$LINENO: checking for AIX compilation hacks" >&5
4389 echo $ECHO_N "checking for AIX compilation hacks... $ECHO_C" >&6
4390 if test "${gawk_cv_aix_hack+set}" = set; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED=1 -DGAWK_AIX=1"
4397 gawk_cv_aix_hack=yes
4403 echo "$as_me:$LINENO: result: ${gawk_cv_aix_hack}" >&5
4404 echo "${ECHO_T}${gawk_cv_aix_hack}" >&6
4407 echo "$as_me:$LINENO: checking for Linux/Alpha compilation hacks" >&5
4408 echo $ECHO_N "checking for Linux/Alpha compilation hacks... $ECHO_C" >&6
4409 if test "${gawk_cv_linux_alpha_hack+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4413 if test "Linux" = "`uname`" && test "alpha" = "`uname -m`"
4415 # this isn't necessarily always true,
4416 # the vendor's compiler is also often found
4417 if test "$GCC" = yes
4419 CFLAGS="$CFLAGS -mieee"
4420 gawk_cv_linux_alpha_hack=yes
4422 gawk_cv_linux_alpha_hack=no
4425 gawk_cv_linux_alpha_hack=no
4429 echo "$as_me:$LINENO: result: ${gawk_cv_linux_alpha_hack}" >&5
4430 echo "${ECHO_T}${gawk_cv_linux_alpha_hack}" >&6
4433 if test "$ISC" = 1 # will be set by test for ISC
4435 CFLAGS="$CFLAGS -D_SYSV3"
4439 ac_cpp='$CPP $CPPFLAGS'
4440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4443 if test -n "$ac_tool_prefix"; then
4444 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4445 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4446 echo "$as_me:$LINENO: checking for $ac_word" >&5
4447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4448 if test "${ac_cv_prog_CC+set}" = set; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4451 if test -n "$CC"; then
4452 ac_cv_prog_CC="$CC" # Let the user override the test.
4454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 test -z "$as_dir" && as_dir=.
4459 for ac_exec_ext in '' $ac_executable_extensions; do
4460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4461 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4471 if test -n "$CC"; then
4472 echo "$as_me:$LINENO: result: $CC" >&5
4473 echo "${ECHO_T}$CC" >&6
4475 echo "$as_me:$LINENO: result: no" >&5
4476 echo "${ECHO_T}no" >&6
4480 if test -z "$ac_cv_prog_CC"; then
4482 # Extract the first word of "gcc", so it can be a program name with args.
4483 set dummy gcc; ac_word=$2
4484 echo "$as_me:$LINENO: checking for $ac_word" >&5
4485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4486 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4487 echo $ECHO_N "(cached) $ECHO_C" >&6
4489 if test -n "$ac_ct_CC"; then
4490 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496 test -z "$as_dir" && as_dir=.
4497 for ac_exec_ext in '' $ac_executable_extensions; do
4498 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4499 ac_cv_prog_ac_ct_CC="gcc"
4500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4508 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4509 if test -n "$ac_ct_CC"; then
4510 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4511 echo "${ECHO_T}$ac_ct_CC" >&6
4513 echo "$as_me:$LINENO: result: no" >&5
4514 echo "${ECHO_T}no" >&6
4522 if test -z "$CC"; then
4523 if test -n "$ac_tool_prefix"; then
4524 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4525 set dummy ${ac_tool_prefix}cc; ac_word=$2
4526 echo "$as_me:$LINENO: checking for $ac_word" >&5
4527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4528 if test "${ac_cv_prog_CC+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4531 if test -n "$CC"; then
4532 ac_cv_prog_CC="$CC" # Let the user override the test.
4534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 test -z "$as_dir" && as_dir=.
4539 for ac_exec_ext in '' $ac_executable_extensions; do
4540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4541 ac_cv_prog_CC="${ac_tool_prefix}cc"
4542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4551 if test -n "$CC"; then
4552 echo "$as_me:$LINENO: result: $CC" >&5
4553 echo "${ECHO_T}$CC" >&6
4555 echo "$as_me:$LINENO: result: no" >&5
4556 echo "${ECHO_T}no" >&6
4560 if test -z "$ac_cv_prog_CC"; then
4562 # Extract the first word of "cc", so it can be a program name with args.
4563 set dummy cc; ac_word=$2
4564 echo "$as_me:$LINENO: checking for $ac_word" >&5
4565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4569 if test -n "$ac_ct_CC"; then
4570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 test -z "$as_dir" && as_dir=.
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4579 ac_cv_prog_ac_ct_CC="cc"
4580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4588 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4589 if test -n "$ac_ct_CC"; then
4590 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4591 echo "${ECHO_T}$ac_ct_CC" >&6
4593 echo "$as_me:$LINENO: result: no" >&5
4594 echo "${ECHO_T}no" >&6
4603 if test -z "$CC"; then
4604 # Extract the first word of "cc", so it can be a program name with args.
4605 set dummy cc; ac_word=$2
4606 echo "$as_me:$LINENO: checking for $ac_word" >&5
4607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4608 if test "${ac_cv_prog_CC+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4611 if test -n "$CC"; then
4612 ac_cv_prog_CC="$CC" # Let the user override the test.
4615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619 test -z "$as_dir" && as_dir=.
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4622 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4623 ac_prog_rejected=yes
4627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4633 if test $ac_prog_rejected = yes; then
4634 # We found a bogon in the path, so make sure we never use it.
4635 set dummy $ac_cv_prog_CC
4637 if test $# != 0; then
4638 # We chose a different compiler from the bogus one.
4639 # However, it has the same basename, so the bogon will be chosen
4640 # first if we set CC to just the basename; use the full file name.
4642 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4648 if test -n "$CC"; then
4649 echo "$as_me:$LINENO: result: $CC" >&5
4650 echo "${ECHO_T}$CC" >&6
4652 echo "$as_me:$LINENO: result: no" >&5
4653 echo "${ECHO_T}no" >&6
4657 if test -z "$CC"; then
4658 if test -n "$ac_tool_prefix"; then
4661 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4662 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4663 echo "$as_me:$LINENO: checking for $ac_word" >&5
4664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4665 if test "${ac_cv_prog_CC+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4668 if test -n "$CC"; then
4669 ac_cv_prog_CC="$CC" # Let the user override the test.
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 test -z "$as_dir" && as_dir=.
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4678 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4688 if test -n "$CC"; then
4689 echo "$as_me:$LINENO: result: $CC" >&5
4690 echo "${ECHO_T}$CC" >&6
4692 echo "$as_me:$LINENO: result: no" >&5
4693 echo "${ECHO_T}no" >&6
4696 test -n "$CC" && break
4699 if test -z "$CC"; then
4703 # Extract the first word of "$ac_prog", so it can be a program name with args.
4704 set dummy $ac_prog; ac_word=$2
4705 echo "$as_me:$LINENO: checking for $ac_word" >&5
4706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4707 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4708 echo $ECHO_N "(cached) $ECHO_C" >&6
4710 if test -n "$ac_ct_CC"; then
4711 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 test -z "$as_dir" && as_dir=.
4718 for ac_exec_ext in '' $ac_executable_extensions; do
4719 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4720 ac_cv_prog_ac_ct_CC="$ac_prog"
4721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4729 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4730 if test -n "$ac_ct_CC"; then
4731 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4732 echo "${ECHO_T}$ac_ct_CC" >&6
4734 echo "$as_me:$LINENO: result: no" >&5
4735 echo "${ECHO_T}no" >&6
4738 test -n "$ac_ct_CC" && break
4747 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4748 See \`config.log' for more details." >&5
4749 echo "$as_me: error: no acceptable C compiler found in \$PATH
4750 See \`config.log' for more details." >&2;}
4751 { (exit 1); exit 1; }; }
4753 # Provide some information about the compiler.
4754 echo "$as_me:$LINENO:" \
4755 "checking for C compiler version" >&5
4756 ac_compiler=`set X $ac_compile; echo $2`
4757 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4758 (eval $ac_compiler --version </dev/null >&5) 2>&5
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); }
4762 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4763 (eval $ac_compiler -v </dev/null >&5) 2>&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); }
4767 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4768 (eval $ac_compiler -V </dev/null >&5) 2>&5
4770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771 (exit $ac_status); }
4773 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4774 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4775 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4776 echo $ECHO_N "(cached) $ECHO_C" >&6
4778 cat >conftest.$ac_ext <<_ACEOF
4781 cat confdefs.h >>conftest.$ac_ext
4782 cat >>conftest.$ac_ext <<_ACEOF
4783 /* end confdefs.h. */
4796 rm -f conftest.$ac_objext
4797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4798 (eval $ac_compile) 2>conftest.er1
4800 grep -v '^ *+' conftest.er1 >conftest.err
4802 cat conftest.err >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } &&
4805 { ac_try='test -z "$ac_c_werror_flag"
4806 || test ! -s conftest.err'
4807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811 (exit $ac_status); }; } &&
4812 { ac_try='test -s conftest.$ac_objext'
4813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); }; }; then
4820 echo "$as_me: failed program was:" >&5
4821 sed 's/^/| /' conftest.$ac_ext >&5
4825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4826 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4829 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4830 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4831 GCC=`test $ac_compiler_gnu = yes && echo yes`
4832 ac_test_CFLAGS=${CFLAGS+set}
4833 ac_save_CFLAGS=$CFLAGS
4835 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4836 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4837 if test "${ac_cv_prog_cc_g+set}" = set; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4840 cat >conftest.$ac_ext <<_ACEOF
4843 cat confdefs.h >>conftest.$ac_ext
4844 cat >>conftest.$ac_ext <<_ACEOF
4845 /* end confdefs.h. */
4855 rm -f conftest.$ac_objext
4856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4857 (eval $ac_compile) 2>conftest.er1
4859 grep -v '^ *+' conftest.er1 >conftest.err
4861 cat conftest.err >&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); } &&
4864 { ac_try='test -z "$ac_c_werror_flag"
4865 || test ! -s conftest.err'
4866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); }; } &&
4871 { ac_try='test -s conftest.$ac_objext'
4872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); }; }; then
4879 echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.$ac_ext >&5
4884 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4886 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4887 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4888 if test "$ac_test_CFLAGS" = set; then
4889 CFLAGS=$ac_save_CFLAGS
4890 elif test $ac_cv_prog_cc_g = yes; then
4891 if test "$GCC" = yes; then
4897 if test "$GCC" = yes; then
4903 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4904 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4905 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4908 ac_cv_prog_cc_stdc=no
4910 cat >conftest.$ac_ext <<_ACEOF
4913 cat confdefs.h >>conftest.$ac_ext
4914 cat >>conftest.$ac_ext <<_ACEOF
4915 /* end confdefs.h. */
4918 #include <sys/types.h>
4919 #include <sys/stat.h>
4920 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4921 struct buf { int x; };
4922 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4923 static char *e (p, i)
4929 static char *f (char * (*g) (char **, int), char **p, ...)
4934 s = g (p, va_arg (v,int));
4939 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4940 function prototypes and stuff, but not '\xHH' hex character constants.
4941 These don't provoke an error unfortunately, instead are silently treated
4942 as 'x'. The following induces an error, until -std1 is added to get
4943 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4944 array size at least. It's necessary to write '\x00'==0 to get something
4945 that's true only with -std1. */
4946 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4948 int test (int i, double x);
4949 struct s1 {int (*f) (int a);};
4950 struct s2 {int (*f) (double a);};
4951 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4957 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4962 # Don't try gcc -ansi; that turns off useful extensions and
4963 # breaks some systems' header files.
4964 # AIX -qlanglvl=ansi
4965 # Ultrix and OSF/1 -std1
4966 # HP-UX 10.20 and later -Ae
4967 # HP-UX older versions -Aa -D_HPUX_SOURCE
4968 # SVR4 -Xc -D__EXTENSIONS__
4969 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4971 CC="$ac_save_CC $ac_arg"
4972 rm -f conftest.$ac_objext
4973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4974 (eval $ac_compile) 2>conftest.er1
4976 grep -v '^ *+' conftest.er1 >conftest.err
4978 cat conftest.err >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); } &&
4981 { ac_try='test -z "$ac_c_werror_flag"
4982 || test ! -s conftest.err'
4983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); }; } &&
4988 { ac_try='test -s conftest.$ac_objext'
4989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993 (exit $ac_status); }; }; then
4994 ac_cv_prog_cc_stdc=$ac_arg
4997 echo "$as_me: failed program was:" >&5
4998 sed 's/^/| /' conftest.$ac_ext >&5
5001 rm -f conftest.err conftest.$ac_objext
5003 rm -f conftest.$ac_ext conftest.$ac_objext
5008 case "x$ac_cv_prog_cc_stdc" in
5010 echo "$as_me:$LINENO: result: none needed" >&5
5011 echo "${ECHO_T}none needed" >&6 ;;
5013 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5014 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5015 CC="$CC $ac_cv_prog_cc_stdc" ;;
5018 # Some people use a C++ compiler to compile C. Since we use `exit',
5019 # in C++ we need to declare it. In case someone uses the same compiler
5020 # for both compiling C and C++ we need to have the C++ compiler decide
5021 # the declaration of exit, since it's the most demanding environment.
5022 cat >conftest.$ac_ext <<_ACEOF
5027 rm -f conftest.$ac_objext
5028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5029 (eval $ac_compile) 2>conftest.er1
5031 grep -v '^ *+' conftest.er1 >conftest.err
5033 cat conftest.err >&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } &&
5036 { ac_try='test -z "$ac_c_werror_flag"
5037 || test ! -s conftest.err'
5038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); }; } &&
5043 { ac_try='test -s conftest.$ac_objext'
5044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; }; then
5049 for ac_declaration in \
5051 'extern "C" void std::exit (int) throw (); using std::exit;' \
5052 'extern "C" void std::exit (int); using std::exit;' \
5053 'extern "C" void exit (int) throw ();' \
5054 'extern "C" void exit (int);' \
5057 cat >conftest.$ac_ext <<_ACEOF
5060 cat confdefs.h >>conftest.$ac_ext
5061 cat >>conftest.$ac_ext <<_ACEOF
5062 /* end confdefs.h. */
5073 rm -f conftest.$ac_objext
5074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5075 (eval $ac_compile) 2>conftest.er1
5077 grep -v '^ *+' conftest.er1 >conftest.err
5079 cat conftest.err >&5
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); } &&
5082 { ac_try='test -z "$ac_c_werror_flag"
5083 || test ! -s conftest.err'
5084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); }; } &&
5089 { ac_try='test -s conftest.$ac_objext'
5090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); }; }; then
5097 echo "$as_me: failed program was:" >&5
5098 sed 's/^/| /' conftest.$ac_ext >&5
5102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5103 cat >conftest.$ac_ext <<_ACEOF
5106 cat confdefs.h >>conftest.$ac_ext
5107 cat >>conftest.$ac_ext <<_ACEOF
5108 /* end confdefs.h. */
5118 rm -f conftest.$ac_objext
5119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5120 (eval $ac_compile) 2>conftest.er1
5122 grep -v '^ *+' conftest.er1 >conftest.err
5124 cat conftest.err >&5
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); } &&
5127 { ac_try='test -z "$ac_c_werror_flag"
5128 || test ! -s conftest.err'
5129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); }; } &&
5134 { ac_try='test -s conftest.$ac_objext'
5135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); }; }; then
5142 echo "$as_me: failed program was:" >&5
5143 sed 's/^/| /' conftest.$ac_ext >&5
5146 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5149 if test -n "$ac_declaration"; then
5150 echo '#ifdef __cplusplus' >>confdefs.h
5151 echo $ac_declaration >>confdefs.h
5152 echo '#endif' >>confdefs.h
5156 echo "$as_me: failed program was:" >&5
5157 sed 's/^/| /' conftest.$ac_ext >&5
5160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5162 ac_cpp='$CPP $CPPFLAGS'
5163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5167 depcc="$CC" am_compiler_list=
5169 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5170 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5171 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5174 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5175 # We make a subdir and do the tests there. Otherwise we can end up
5176 # making bogus files that we don't know about and never remove. For
5177 # instance it was reported that on HP-UX the gcc test will end up
5178 # making a dummy file named `D' -- because `-MD' means `put the output
5181 # Copy depcomp to subdir because otherwise we won't find it if we're
5182 # using a relative directory.
5183 cp "$am_depcomp" conftest.dir
5185 # We will build objects and dependencies in a subdirectory because
5186 # it helps to detect inapplicable dependency modes. For instance
5187 # both Tru64's cc and ICC support -MD to output dependencies as a
5188 # side effect of compilation, but ICC will put the dependencies in
5189 # the current directory while Tru64 will put them in the object
5193 am_cv_CC_dependencies_compiler_type=none
5194 if test "$am_compiler_list" = ""; then
5195 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5197 for depmode in $am_compiler_list; do
5198 # Setup a source with many dependencies, because some compilers
5199 # like to wrap large dependency lists on column 80 (with \), and
5200 # we should not choose a depcomp mode which is confused by this.
5202 # We need to recreate these files for each test, as the compiler may
5203 # overwrite some of them when testing with obscure command lines.
5204 # This happens at least with the AIX C compiler.
5206 for i in 1 2 3 4 5 6; do
5207 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5208 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5209 # Solaris 8's {/usr,}/bin/sh.
5210 touch sub/conftst$i.h
5212 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5216 # after this tag, mechanisms are not by side-effect, so they'll
5217 # only be used when explicitly requested
5218 if test "x$enable_dependency_tracking" = xyes; then
5226 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5227 # mode. It turns out that the SunPro C++ compiler does not properly
5228 # handle `-M -o', and we need to detect this.
5229 if depmode=$depmode \
5230 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5231 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5232 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5233 >/dev/null 2>conftest.err &&
5234 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5235 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5236 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5237 # icc doesn't choke on unknown options, it will just issue warnings
5238 # or remarks (even with -Werror). So we grep stderr for any message
5239 # that says an option was ignored or not supported.
5240 # When given -MP, icc 7.0 and 7.1 complain thusly:
5241 # icc: Command line warning: ignoring option '-M'; no argument required
5242 # The diagnosis changed in icc 8.0:
5243 # icc: Command line remark: option '-MP' not supported
5244 if (grep 'ignoring option' conftest.err ||
5245 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5246 am_cv_CC_dependencies_compiler_type=$depmode
5255 am_cv_CC_dependencies_compiler_type=none
5259 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5260 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5261 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5266 test "x$enable_dependency_tracking" != xno \
5267 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5269 am__fastdepCC_FALSE='#'
5271 am__fastdepCC_TRUE='#'
5272 am__fastdepCC_FALSE=
5277 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
5279 echo "$as_me:$LINENO: checking for function prototypes" >&5
5280 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
5281 if test "$ac_cv_prog_cc_stdc" != no; then
5282 echo "$as_me:$LINENO: result: yes" >&5
5283 echo "${ECHO_T}yes" >&6
5285 cat >>confdefs.h <<\_ACEOF
5286 #define PROTOTYPES 1
5290 cat >>confdefs.h <<\_ACEOF
5291 #define __PROTOTYPES 1
5295 echo "$as_me:$LINENO: result: no" >&5
5296 echo "${ECHO_T}no" >&6
5300 if test "$ac_cv_prog_cc_stdc" != no; then
5303 U=_ ANSI2KNR=./ansi2knr
5305 # Ensure some checks needed by ansi2knr itself.
5308 for ac_header in string.h
5310 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5312 echo "$as_me:$LINENO: checking for $ac_header" >&5
5313 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5314 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
5317 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5318 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5320 # Is the header compilable?
5321 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5322 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5323 cat >conftest.$ac_ext <<_ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5329 $ac_includes_default
5330 #include <$ac_header>
5332 rm -f conftest.$ac_objext
5333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5334 (eval $ac_compile) 2>conftest.er1
5336 grep -v '^ *+' conftest.er1 >conftest.err
5338 cat conftest.err >&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); } &&
5341 { ac_try='test -z "$ac_c_werror_flag"
5342 || test ! -s conftest.err'
5343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; } &&
5348 { ac_try='test -s conftest.$ac_objext'
5349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }; }; then
5354 ac_header_compiler=yes
5356 echo "$as_me: failed program was:" >&5
5357 sed 's/^/| /' conftest.$ac_ext >&5
5359 ac_header_compiler=no
5361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5362 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5363 echo "${ECHO_T}$ac_header_compiler" >&6
5365 # Is the header present?
5366 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5367 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5368 cat >conftest.$ac_ext <<_ACEOF
5371 cat confdefs.h >>conftest.$ac_ext
5372 cat >>conftest.$ac_ext <<_ACEOF
5373 /* end confdefs.h. */
5374 #include <$ac_header>
5376 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5377 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5379 grep -v '^ *+' conftest.er1 >conftest.err
5381 cat conftest.err >&5
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); } >/dev/null; then
5384 if test -s conftest.err; then
5385 ac_cpp_err=$ac_c_preproc_warn_flag
5386 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5393 if test -z "$ac_cpp_err"; then
5394 ac_header_preproc=yes
5396 echo "$as_me: failed program was:" >&5
5397 sed 's/^/| /' conftest.$ac_ext >&5
5399 ac_header_preproc=no
5401 rm -f conftest.err conftest.$ac_ext
5402 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5403 echo "${ECHO_T}$ac_header_preproc" >&6
5405 # So? What about this header?
5406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5408 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5409 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5411 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5412 ac_header_preproc=yes
5415 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5416 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5417 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5418 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5419 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5420 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5421 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5422 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5424 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5425 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5426 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5429 ## ------------------------------- ##
5430 ## Report this to bug-gawk@gnu.org ##
5431 ## ------------------------------- ##
5434 sed "s/^/$as_me: WARNING: /" >&2
5437 echo "$as_me:$LINENO: checking for $ac_header" >&5
5438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5440 echo $ECHO_N "(cached) $ECHO_C" >&6
5442 eval "$as_ac_Header=\$ac_header_preproc"
5444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5445 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5448 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5449 cat >>confdefs.h <<_ACEOF
5450 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5459 case `(uname) 2> /dev/null` in
5461 with_libiconv_prefix=no
5462 with_libintl_prefix=no
5471 if test -n "$ac_aux_dir"; then
5472 case "$ac_aux_dir" in
5473 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5474 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5477 if test -z "$MKINSTALLDIRS"; then
5478 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5483 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5484 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
5485 # Check whether --enable-nls or --disable-nls was given.
5486 if test "${enable_nls+set}" = set; then
5487 enableval="$enable_nls"
5492 echo "$as_me:$LINENO: result: $USE_NLS" >&5
5493 echo "${ECHO_T}$USE_NLS" >&6
5500 # Prepare PATH_SEPARATOR.
5501 # The user is always right.
5502 if test "${PATH_SEPARATOR+set}" != set; then
5503 echo "#! /bin/sh" >conf$$.sh
5504 echo "exit 0" >>conf$$.sh
5506 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5514 # Find out how to test for executable files. Don't use a zero-byte file,
5515 # as systems may use methods other than mode bits to determine executability.
5516 cat >conf$$.file <<_ASEOF
5520 chmod +x conf$$.file
5521 if test -x conf$$.file >/dev/null 2>&1; then
5522 ac_executable_p="test -x"
5524 ac_executable_p="test -f"
5528 # Extract the first word of "msgfmt", so it can be a program name with args.
5529 set dummy msgfmt; ac_word=$2
5530 echo "$as_me:$LINENO: checking for $ac_word" >&5
5531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5532 if test "${ac_cv_path_MSGFMT+set}" = set; then
5533 echo $ECHO_N "(cached) $ECHO_C" >&6
5537 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5540 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5541 for ac_dir in $PATH; do
5543 test -z "$ac_dir" && ac_dir=.
5544 for ac_exec_ext in '' $ac_executable_extensions; do
5545 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5546 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5547 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5548 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5549 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5556 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5560 MSGFMT="$ac_cv_path_MSGFMT"
5561 if test "$MSGFMT" != ":"; then
5562 echo "$as_me:$LINENO: result: $MSGFMT" >&5
5563 echo "${ECHO_T}$MSGFMT" >&6
5565 echo "$as_me:$LINENO: result: no" >&5
5566 echo "${ECHO_T}no" >&6
5569 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5570 set dummy gmsgfmt; ac_word=$2
5571 echo "$as_me:$LINENO: checking for $ac_word" >&5
5572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5573 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5574 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 test -z "$as_dir" && as_dir=.
5586 for ac_exec_ext in '' $ac_executable_extensions; do
5587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5588 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5595 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5599 GMSGFMT=$ac_cv_path_GMSGFMT
5601 if test -n "$GMSGFMT"; then
5602 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5603 echo "${ECHO_T}$GMSGFMT" >&6
5605 echo "$as_me:$LINENO: result: no" >&5
5606 echo "${ECHO_T}no" >&6
5611 # Prepare PATH_SEPARATOR.
5612 # The user is always right.
5613 if test "${PATH_SEPARATOR+set}" != set; then
5614 echo "#! /bin/sh" >conf$$.sh
5615 echo "exit 0" >>conf$$.sh
5617 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5625 # Find out how to test for executable files. Don't use a zero-byte file,
5626 # as systems may use methods other than mode bits to determine executability.
5627 cat >conf$$.file <<_ASEOF
5631 chmod +x conf$$.file
5632 if test -x conf$$.file >/dev/null 2>&1; then
5633 ac_executable_p="test -x"
5635 ac_executable_p="test -f"
5639 # Extract the first word of "xgettext", so it can be a program name with args.
5640 set dummy xgettext; ac_word=$2
5641 echo "$as_me:$LINENO: checking for $ac_word" >&5
5642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5643 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5648 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5651 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5652 for ac_dir in $PATH; do
5654 test -z "$ac_dir" && ac_dir=.
5655 for ac_exec_ext in '' $ac_executable_extensions; do
5656 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5657 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5658 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5659 (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
5660 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5667 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5671 XGETTEXT="$ac_cv_path_XGETTEXT"
5672 if test "$XGETTEXT" != ":"; then
5673 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5674 echo "${ECHO_T}$XGETTEXT" >&6
5676 echo "$as_me:$LINENO: result: no" >&5
5677 echo "${ECHO_T}no" >&6
5683 # Prepare PATH_SEPARATOR.
5684 # The user is always right.
5685 if test "${PATH_SEPARATOR+set}" != set; then
5686 echo "#! /bin/sh" >conf$$.sh
5687 echo "exit 0" >>conf$$.sh
5689 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5697 # Find out how to test for executable files. Don't use a zero-byte file,
5698 # as systems may use methods other than mode bits to determine executability.
5699 cat >conf$$.file <<_ASEOF
5703 chmod +x conf$$.file
5704 if test -x conf$$.file >/dev/null 2>&1; then
5705 ac_executable_p="test -x"
5707 ac_executable_p="test -f"
5711 # Extract the first word of "msgmerge", so it can be a program name with args.
5712 set dummy msgmerge; ac_word=$2
5713 echo "$as_me:$LINENO: checking for $ac_word" >&5
5714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5715 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5720 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5723 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5724 for ac_dir in $PATH; do
5726 test -z "$ac_dir" && ac_dir=.
5727 for ac_exec_ext in '' $ac_executable_extensions; do
5728 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5729 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5730 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5731 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5738 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5742 MSGMERGE="$ac_cv_path_MSGMERGE"
5743 if test "$MSGMERGE" != ":"; then
5744 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5745 echo "${ECHO_T}$MSGMERGE" >&6
5747 echo "$as_me:$LINENO: result: no" >&5
5748 echo "${ECHO_T}no" >&6
5752 if test "$GMSGFMT" != ":"; then
5753 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5754 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5757 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
5758 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5759 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
5764 if test "$XGETTEXT" != ":"; then
5765 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5766 (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
5769 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5770 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
5776 ac_config_commands="$ac_config_commands default-1"
5780 if test "X$prefix" = "XNONE"; then
5781 acl_final_prefix="$ac_default_prefix"
5783 acl_final_prefix="$prefix"
5785 if test "X$exec_prefix" = "XNONE"; then
5786 acl_final_exec_prefix='${prefix}'
5788 acl_final_exec_prefix="$exec_prefix"
5790 acl_save_prefix="$prefix"
5791 prefix="$acl_final_prefix"
5792 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5793 prefix="$acl_save_prefix"
5795 # Make sure we can run config.sub.
5796 $ac_config_sub sun4 >/dev/null 2>&1 ||
5797 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
5798 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
5799 { (exit 1); exit 1; }; }
5801 echo "$as_me:$LINENO: checking build system type" >&5
5802 echo $ECHO_N "checking build system type... $ECHO_C" >&6
5803 if test "${ac_cv_build+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5806 ac_cv_build_alias=$build_alias
5807 test -z "$ac_cv_build_alias" &&
5808 ac_cv_build_alias=`$ac_config_guess`
5809 test -z "$ac_cv_build_alias" &&
5810 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5811 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5812 { (exit 1); exit 1; }; }
5813 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
5814 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
5815 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
5816 { (exit 1); exit 1; }; }
5819 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5820 echo "${ECHO_T}$ac_cv_build" >&6
5822 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5823 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5824 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5827 echo "$as_me:$LINENO: checking host system type" >&5
5828 echo $ECHO_N "checking host system type... $ECHO_C" >&6
5829 if test "${ac_cv_host+set}" = set; then
5830 echo $ECHO_N "(cached) $ECHO_C" >&6
5832 ac_cv_host_alias=$host_alias
5833 test -z "$ac_cv_host_alias" &&
5834 ac_cv_host_alias=$ac_cv_build_alias
5835 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5836 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5837 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5838 { (exit 1); exit 1; }; }
5841 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5842 echo "${ECHO_T}$ac_cv_host" >&6
5844 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5845 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5846 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5850 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5851 if test "${with_gnu_ld+set}" = set; then
5852 withval="$with_gnu_ld"
5853 test "$withval" = no || with_gnu_ld=yes
5857 # Prepare PATH_SEPARATOR.
5858 # The user is always right.
5859 if test "${PATH_SEPARATOR+set}" != set; then
5860 echo "#! /bin/sh" >conf$$.sh
5861 echo "exit 0" >>conf$$.sh
5863 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5871 if test "$GCC" = yes; then
5872 # Check if gcc -print-prog-name=ld gives a path.
5873 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5874 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5877 # gcc leaves a trailing carriage return which upsets mingw
5878 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5880 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5883 # Accept absolute paths.
5884 [\\/]* | [A-Za-z]:[\\/]*)
5885 re_direlt='/[^/][^/]*/\.\./'
5886 # Canonicalize the path of ld
5887 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5888 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5889 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5891 test -z "$LD" && LD="$ac_prog"
5894 # If it fails, then pretend we aren't using GCC.
5898 # If it is relative, then search for the first ld in PATH.
5902 elif test "$with_gnu_ld" = yes; then
5903 echo "$as_me:$LINENO: checking for GNU ld" >&5
5904 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5906 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5907 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5909 if test "${acl_cv_path_LD+set}" = set; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
5912 if test -z "$LD"; then
5913 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5914 for ac_dir in $PATH; do
5915 test -z "$ac_dir" && ac_dir=.
5916 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5917 acl_cv_path_LD="$ac_dir/$ac_prog"
5918 # Check to see if the program is GNU ld. I'd rather use --version,
5919 # but apparently some GNU ld's only accept -v.
5920 # Break only if it was the GNU/non-GNU ld that we prefer.
5921 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5922 *GNU* | *'with BFD'*)
5923 test "$with_gnu_ld" != no && break ;;
5925 test "$with_gnu_ld" != yes && break ;;
5931 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5935 LD="$acl_cv_path_LD"
5936 if test -n "$LD"; then
5937 echo "$as_me:$LINENO: result: $LD" >&5
5938 echo "${ECHO_T}$LD" >&6
5940 echo "$as_me:$LINENO: result: no" >&5
5941 echo "${ECHO_T}no" >&6
5943 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5944 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5945 { (exit 1); exit 1; }; }
5946 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5947 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5948 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5949 echo $ECHO_N "(cached) $ECHO_C" >&6
5951 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5952 case `$LD -v 2>&1 </dev/null` in
5953 *GNU* | *'with BFD'*)
5954 acl_cv_prog_gnu_ld=yes ;;
5956 acl_cv_prog_gnu_ld=no ;;
5959 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5960 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5961 with_gnu_ld=$acl_cv_prog_gnu_ld
5966 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5967 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5968 if test "${acl_cv_rpath+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5972 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5973 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5979 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5980 echo "${ECHO_T}$acl_cv_rpath" >&6
5982 libext="$acl_cv_libext"
5983 shlibext="$acl_cv_shlibext"
5984 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5985 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5986 hardcode_direct="$acl_cv_hardcode_direct"
5987 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5988 # Check whether --enable-rpath or --disable-rpath was given.
5989 if test "${enable_rpath+set}" = set; then
5990 enableval="$enable_rpath"
6004 acl_save_prefix="$prefix"
6005 prefix="$acl_final_prefix"
6006 acl_save_exec_prefix="$exec_prefix"
6007 exec_prefix="$acl_final_exec_prefix"
6009 eval additional_includedir=\"$includedir\"
6010 eval additional_libdir=\"$libdir\"
6012 exec_prefix="$acl_save_exec_prefix"
6013 prefix="$acl_save_prefix"
6016 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
6017 if test "${with_libiconv_prefix+set}" = set; then
6018 withval="$with_libiconv_prefix"
6020 if test "X$withval" = "Xno"; then
6023 if test "X$withval" = "X"; then
6025 acl_save_prefix="$prefix"
6026 prefix="$acl_final_prefix"
6027 acl_save_exec_prefix="$exec_prefix"
6028 exec_prefix="$acl_final_exec_prefix"
6030 eval additional_includedir=\"$includedir\"
6031 eval additional_libdir=\"$libdir\"
6033 exec_prefix="$acl_save_exec_prefix"
6034 prefix="$acl_save_prefix"
6037 additional_includedir="$withval/include"
6038 additional_libdir="$withval/lib"
6048 names_already_handled=
6049 names_next_round='iconv '
6050 while test -n "$names_next_round"; do
6051 names_this_round="$names_next_round"
6053 for name in $names_this_round; do
6055 for n in $names_already_handled; do
6056 if test "$n" = "$name"; then
6061 if test -z "$already_handled"; then
6062 names_already_handled="$names_already_handled $name"
6063 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6064 eval value=\"\$HAVE_LIB$uppername\"
6065 if test -n "$value"; then
6066 if test "$value" = yes; then
6067 eval value=\"\$LIB$uppername\"
6068 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6069 eval value=\"\$LTLIB$uppername\"
6070 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6079 if test $use_additional = yes; then
6080 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6081 found_dir="$additional_libdir"
6082 found_so="$additional_libdir/lib$name.$shlibext"
6083 if test -f "$additional_libdir/lib$name.la"; then
6084 found_la="$additional_libdir/lib$name.la"
6087 if test -f "$additional_libdir/lib$name.$libext"; then
6088 found_dir="$additional_libdir"
6089 found_a="$additional_libdir/lib$name.$libext"
6090 if test -f "$additional_libdir/lib$name.la"; then
6091 found_la="$additional_libdir/lib$name.la"
6096 if test "X$found_dir" = "X"; then
6097 for x in $LDFLAGS $LTLIBICONV; do
6099 acl_save_prefix="$prefix"
6100 prefix="$acl_final_prefix"
6101 acl_save_exec_prefix="$exec_prefix"
6102 exec_prefix="$acl_final_exec_prefix"
6104 exec_prefix="$acl_save_exec_prefix"
6105 prefix="$acl_save_prefix"
6109 dir=`echo "X$x" | sed -e 's/^X-L//'`
6110 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6112 found_so="$dir/lib$name.$shlibext"
6113 if test -f "$dir/lib$name.la"; then
6114 found_la="$dir/lib$name.la"
6117 if test -f "$dir/lib$name.$libext"; then
6119 found_a="$dir/lib$name.$libext"
6120 if test -f "$dir/lib$name.la"; then
6121 found_la="$dir/lib$name.la"
6127 if test "X$found_dir" != "X"; then
6132 if test "X$found_dir" != "X"; then
6133 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6134 if test "X$found_so" != "X"; then
6135 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6136 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6139 for x in $ltrpathdirs; do
6140 if test "X$x" = "X$found_dir"; then
6145 if test -z "$haveit"; then
6146 ltrpathdirs="$ltrpathdirs $found_dir"
6148 if test "$hardcode_direct" = yes; then
6149 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6151 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6152 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6154 for x in $rpathdirs; do
6155 if test "X$x" = "X$found_dir"; then
6160 if test -z "$haveit"; then
6161 rpathdirs="$rpathdirs $found_dir"
6165 for x in $LDFLAGS $LIBICONV; do
6167 acl_save_prefix="$prefix"
6168 prefix="$acl_final_prefix"
6169 acl_save_exec_prefix="$exec_prefix"
6170 exec_prefix="$acl_final_exec_prefix"
6172 exec_prefix="$acl_save_exec_prefix"
6173 prefix="$acl_save_prefix"
6175 if test "X$x" = "X-L$found_dir"; then
6180 if test -z "$haveit"; then
6181 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6183 if test "$hardcode_minus_L" != no; then
6184 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6186 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6192 if test "X$found_a" != "X"; then
6193 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6195 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6198 additional_includedir=
6199 case "$found_dir" in
6201 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6202 additional_includedir="$basedir/include"
6205 if test "X$additional_includedir" != "X"; then
6206 if test "X$additional_includedir" != "X/usr/include"; then
6208 if test "X$additional_includedir" = "X/usr/local/include"; then
6209 if test -n "$GCC"; then
6211 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6215 if test -z "$haveit"; then
6216 for x in $CPPFLAGS $INCICONV; do
6218 acl_save_prefix="$prefix"
6219 prefix="$acl_final_prefix"
6220 acl_save_exec_prefix="$exec_prefix"
6221 exec_prefix="$acl_final_exec_prefix"
6223 exec_prefix="$acl_save_exec_prefix"
6224 prefix="$acl_save_prefix"
6226 if test "X$x" = "X-I$additional_includedir"; then
6231 if test -z "$haveit"; then
6232 if test -d "$additional_includedir"; then
6233 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6239 if test -n "$found_la"; then
6240 save_libdir="$libdir"
6242 */* | *\\*) . "$found_la" ;;
6243 *) . "./$found_la" ;;
6245 libdir="$save_libdir"
6246 for dep in $dependency_libs; do
6249 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6250 if test "X$additional_libdir" != "X/usr/lib"; then
6252 if test "X$additional_libdir" = "X/usr/local/lib"; then
6253 if test -n "$GCC"; then
6255 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6259 if test -z "$haveit"; then
6261 for x in $LDFLAGS $LIBICONV; do
6263 acl_save_prefix="$prefix"
6264 prefix="$acl_final_prefix"
6265 acl_save_exec_prefix="$exec_prefix"
6266 exec_prefix="$acl_final_exec_prefix"
6268 exec_prefix="$acl_save_exec_prefix"
6269 prefix="$acl_save_prefix"
6271 if test "X$x" = "X-L$additional_libdir"; then
6276 if test -z "$haveit"; then
6277 if test -d "$additional_libdir"; then
6278 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6282 for x in $LDFLAGS $LTLIBICONV; do
6284 acl_save_prefix="$prefix"
6285 prefix="$acl_final_prefix"
6286 acl_save_exec_prefix="$exec_prefix"
6287 exec_prefix="$acl_final_exec_prefix"
6289 exec_prefix="$acl_save_exec_prefix"
6290 prefix="$acl_save_prefix"
6292 if test "X$x" = "X-L$additional_libdir"; then
6297 if test -z "$haveit"; then
6298 if test -d "$additional_libdir"; then
6299 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6306 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6307 if test "$enable_rpath" != no; then
6309 for x in $rpathdirs; do
6310 if test "X$x" = "X$dir"; then
6315 if test -z "$haveit"; then
6316 rpathdirs="$rpathdirs $dir"
6319 for x in $ltrpathdirs; do
6320 if test "X$x" = "X$dir"; then
6325 if test -z "$haveit"; then
6326 ltrpathdirs="$ltrpathdirs $dir"
6331 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6334 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6337 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6338 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6344 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6345 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6351 if test "X$rpathdirs" != "X"; then
6352 if test -n "$hardcode_libdir_separator"; then
6354 for found_dir in $rpathdirs; do
6355 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6357 acl_save_libdir="$libdir"
6359 eval flag=\"$hardcode_libdir_flag_spec\"
6360 libdir="$acl_save_libdir"
6361 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6363 for found_dir in $rpathdirs; do
6364 acl_save_libdir="$libdir"
6366 eval flag=\"$hardcode_libdir_flag_spec\"
6367 libdir="$acl_save_libdir"
6368 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6372 if test "X$ltrpathdirs" != "X"; then
6373 for found_dir in $ltrpathdirs; do
6374 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6395 echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6396 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6
6397 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6398 echo $ECHO_N "(cached) $ECHO_C" >&6
6400 gt_save_CPPFLAGS="$CPPFLAGS"
6401 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6402 gt_save_LIBS="$LIBS"
6403 LIBS="$LIBS -framework CoreFoundation"
6404 cat >conftest.$ac_ext <<_ACEOF
6407 cat confdefs.h >>conftest.$ac_ext
6408 cat >>conftest.$ac_ext <<_ACEOF
6409 /* end confdefs.h. */
6410 #include <CFPreferences.h>
6414 CFPreferencesCopyAppValue(NULL, NULL)
6419 rm -f conftest.$ac_objext conftest$ac_exeext
6420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6421 (eval $ac_link) 2>conftest.er1
6423 grep -v '^ *+' conftest.er1 >conftest.err
6425 cat conftest.err >&5
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); } &&
6428 { ac_try='test -z "$ac_c_werror_flag"
6429 || test ! -s conftest.err'
6430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); }; } &&
6435 { ac_try='test -s conftest$ac_exeext'
6436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); }; }; then
6441 gt_cv_func_CFPreferencesCopyAppValue=yes
6443 echo "$as_me: failed program was:" >&5
6444 sed 's/^/| /' conftest.$ac_ext >&5
6446 gt_cv_func_CFPreferencesCopyAppValue=no
6448 rm -f conftest.err conftest.$ac_objext \
6449 conftest$ac_exeext conftest.$ac_ext
6450 CPPFLAGS="$gt_save_CPPFLAGS"
6451 LIBS="$gt_save_LIBS"
6453 echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6454 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6
6455 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6457 cat >>confdefs.h <<\_ACEOF
6458 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6462 echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6463 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6
6464 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6465 echo $ECHO_N "(cached) $ECHO_C" >&6
6467 gt_save_CPPFLAGS="$CPPFLAGS"
6468 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6469 gt_save_LIBS="$LIBS"
6470 LIBS="$LIBS -framework CoreFoundation"
6471 cat >conftest.$ac_ext <<_ACEOF
6474 cat confdefs.h >>conftest.$ac_ext
6475 cat >>conftest.$ac_ext <<_ACEOF
6476 /* end confdefs.h. */
6477 #include <CFLocale.h>
6481 CFLocaleCopyCurrent();
6486 rm -f conftest.$ac_objext conftest$ac_exeext
6487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6488 (eval $ac_link) 2>conftest.er1
6490 grep -v '^ *+' conftest.er1 >conftest.err
6492 cat conftest.err >&5
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); } &&
6495 { ac_try='test -z "$ac_c_werror_flag"
6496 || test ! -s conftest.err'
6497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); }; } &&
6502 { ac_try='test -s conftest$ac_exeext'
6503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507 (exit $ac_status); }; }; then
6508 gt_cv_func_CFLocaleCopyCurrent=yes
6510 echo "$as_me: failed program was:" >&5
6511 sed 's/^/| /' conftest.$ac_ext >&5
6513 gt_cv_func_CFLocaleCopyCurrent=no
6515 rm -f conftest.err conftest.$ac_objext \
6516 conftest$ac_exeext conftest.$ac_ext
6517 CPPFLAGS="$gt_save_CPPFLAGS"
6518 LIBS="$gt_save_LIBS"
6520 echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6521 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6
6522 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6524 cat >>confdefs.h <<\_ACEOF
6525 #define HAVE_CFLOCALECOPYCURRENT 1
6530 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6531 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6537 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6538 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
6539 # Check whether --enable-nls or --disable-nls was given.
6540 if test "${enable_nls+set}" = set; then
6541 enableval="$enable_nls"
6546 echo "$as_me:$LINENO: result: $USE_NLS" >&5
6547 echo "${ECHO_T}$USE_NLS" >&6
6556 if test "$USE_NLS" = "yes"; then
6557 gt_use_preinstalled_gnugettext=no
6564 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6565 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
6566 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6567 echo $ECHO_N "(cached) $ECHO_C" >&6
6569 cat >conftest.$ac_ext <<_ACEOF
6572 cat confdefs.h >>conftest.$ac_ext
6573 cat >>conftest.$ac_ext <<_ACEOF
6574 /* end confdefs.h. */
6575 #include <libintl.h>
6576 extern int _nl_msg_cat_cntr;
6577 extern int *_nl_domain_bindings;
6581 bindtextdomain ("", "");
6582 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6587 rm -f conftest.$ac_objext conftest$ac_exeext
6588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6589 (eval $ac_link) 2>conftest.er1
6591 grep -v '^ *+' conftest.er1 >conftest.err
6593 cat conftest.err >&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); } &&
6596 { ac_try='test -z "$ac_c_werror_flag"
6597 || test ! -s conftest.err'
6598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); }; } &&
6603 { ac_try='test -s conftest$ac_exeext'
6604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; }; then
6609 gt_cv_func_gnugettext1_libc=yes
6611 echo "$as_me: failed program was:" >&5
6612 sed 's/^/| /' conftest.$ac_ext >&5
6614 gt_cv_func_gnugettext1_libc=no
6616 rm -f conftest.err conftest.$ac_objext \
6617 conftest$ac_exeext conftest.$ac_ext
6619 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6620 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
6622 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6628 am_save_CPPFLAGS="$CPPFLAGS"
6630 for element in $INCICONV; do
6632 for x in $CPPFLAGS; do
6634 acl_save_prefix="$prefix"
6635 prefix="$acl_final_prefix"
6636 acl_save_exec_prefix="$exec_prefix"
6637 exec_prefix="$acl_final_exec_prefix"
6639 exec_prefix="$acl_save_exec_prefix"
6640 prefix="$acl_save_prefix"
6642 if test "X$x" = "X$element"; then
6647 if test -z "$haveit"; then
6648 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6653 echo "$as_me:$LINENO: checking for iconv" >&5
6654 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
6655 if test "${am_cv_func_iconv+set}" = set; then
6656 echo $ECHO_N "(cached) $ECHO_C" >&6
6659 am_cv_func_iconv="no, consider installing GNU libiconv"
6661 cat >conftest.$ac_ext <<_ACEOF
6664 cat confdefs.h >>conftest.$ac_ext
6665 cat >>conftest.$ac_ext <<_ACEOF
6666 /* end confdefs.h. */
6672 iconv_t cd = iconv_open("","");
6673 iconv(cd,NULL,NULL,NULL,NULL);
6679 rm -f conftest.$ac_objext conftest$ac_exeext
6680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6681 (eval $ac_link) 2>conftest.er1
6683 grep -v '^ *+' conftest.er1 >conftest.err
6685 cat conftest.err >&5
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); } &&
6688 { ac_try='test -z "$ac_c_werror_flag"
6689 || test ! -s conftest.err'
6690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); }; } &&
6695 { ac_try='test -s conftest$ac_exeext'
6696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); }; }; then
6701 am_cv_func_iconv=yes
6703 echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.$ac_ext >&5
6707 rm -f conftest.err conftest.$ac_objext \
6708 conftest$ac_exeext conftest.$ac_ext
6709 if test "$am_cv_func_iconv" != yes; then
6710 am_save_LIBS="$LIBS"
6711 LIBS="$LIBS $LIBICONV"
6712 cat >conftest.$ac_ext <<_ACEOF
6715 cat confdefs.h >>conftest.$ac_ext
6716 cat >>conftest.$ac_ext <<_ACEOF
6717 /* end confdefs.h. */
6723 iconv_t cd = iconv_open("","");
6724 iconv(cd,NULL,NULL,NULL,NULL);
6730 rm -f conftest.$ac_objext conftest$ac_exeext
6731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6732 (eval $ac_link) 2>conftest.er1
6734 grep -v '^ *+' conftest.er1 >conftest.err
6736 cat conftest.err >&5
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); } &&
6739 { ac_try='test -z "$ac_c_werror_flag"
6740 || test ! -s conftest.err'
6741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); }; } &&
6746 { ac_try='test -s conftest$ac_exeext'
6747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751 (exit $ac_status); }; }; then
6753 am_cv_func_iconv=yes
6755 echo "$as_me: failed program was:" >&5
6756 sed 's/^/| /' conftest.$ac_ext >&5
6759 rm -f conftest.err conftest.$ac_objext \
6760 conftest$ac_exeext conftest.$ac_ext
6761 LIBS="$am_save_LIBS"
6765 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6766 echo "${ECHO_T}$am_cv_func_iconv" >&6
6767 if test "$am_cv_func_iconv" = yes; then
6769 cat >>confdefs.h <<\_ACEOF
6770 #define HAVE_ICONV 1
6774 if test "$am_cv_lib_iconv" = yes; then
6775 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6776 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6777 echo "$as_me:$LINENO: result: $LIBICONV" >&5
6778 echo "${ECHO_T}$LIBICONV" >&6
6780 CPPFLAGS="$am_save_CPPFLAGS"
6792 acl_save_prefix="$prefix"
6793 prefix="$acl_final_prefix"
6794 acl_save_exec_prefix="$exec_prefix"
6795 exec_prefix="$acl_final_exec_prefix"
6797 eval additional_includedir=\"$includedir\"
6798 eval additional_libdir=\"$libdir\"
6800 exec_prefix="$acl_save_exec_prefix"
6801 prefix="$acl_save_prefix"
6804 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6805 if test "${with_libintl_prefix+set}" = set; then
6806 withval="$with_libintl_prefix"
6808 if test "X$withval" = "Xno"; then
6811 if test "X$withval" = "X"; then
6813 acl_save_prefix="$prefix"
6814 prefix="$acl_final_prefix"
6815 acl_save_exec_prefix="$exec_prefix"
6816 exec_prefix="$acl_final_exec_prefix"
6818 eval additional_includedir=\"$includedir\"
6819 eval additional_libdir=\"$libdir\"
6821 exec_prefix="$acl_save_exec_prefix"
6822 prefix="$acl_save_prefix"
6825 additional_includedir="$withval/include"
6826 additional_libdir="$withval/lib"
6836 names_already_handled=
6837 names_next_round='intl '
6838 while test -n "$names_next_round"; do
6839 names_this_round="$names_next_round"
6841 for name in $names_this_round; do
6843 for n in $names_already_handled; do
6844 if test "$n" = "$name"; then
6849 if test -z "$already_handled"; then
6850 names_already_handled="$names_already_handled $name"
6851 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6852 eval value=\"\$HAVE_LIB$uppername\"
6853 if test -n "$value"; then
6854 if test "$value" = yes; then
6855 eval value=\"\$LIB$uppername\"
6856 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6857 eval value=\"\$LTLIB$uppername\"
6858 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6867 if test $use_additional = yes; then
6868 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6869 found_dir="$additional_libdir"
6870 found_so="$additional_libdir/lib$name.$shlibext"
6871 if test -f "$additional_libdir/lib$name.la"; then
6872 found_la="$additional_libdir/lib$name.la"
6875 if test -f "$additional_libdir/lib$name.$libext"; then
6876 found_dir="$additional_libdir"
6877 found_a="$additional_libdir/lib$name.$libext"
6878 if test -f "$additional_libdir/lib$name.la"; then
6879 found_la="$additional_libdir/lib$name.la"
6884 if test "X$found_dir" = "X"; then
6885 for x in $LDFLAGS $LTLIBINTL; do
6887 acl_save_prefix="$prefix"
6888 prefix="$acl_final_prefix"
6889 acl_save_exec_prefix="$exec_prefix"
6890 exec_prefix="$acl_final_exec_prefix"
6892 exec_prefix="$acl_save_exec_prefix"
6893 prefix="$acl_save_prefix"
6897 dir=`echo "X$x" | sed -e 's/^X-L//'`
6898 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6900 found_so="$dir/lib$name.$shlibext"
6901 if test -f "$dir/lib$name.la"; then
6902 found_la="$dir/lib$name.la"
6905 if test -f "$dir/lib$name.$libext"; then
6907 found_a="$dir/lib$name.$libext"
6908 if test -f "$dir/lib$name.la"; then
6909 found_la="$dir/lib$name.la"
6915 if test "X$found_dir" != "X"; then
6920 if test "X$found_dir" != "X"; then
6921 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6922 if test "X$found_so" != "X"; then
6923 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6924 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6927 for x in $ltrpathdirs; do
6928 if test "X$x" = "X$found_dir"; then
6933 if test -z "$haveit"; then
6934 ltrpathdirs="$ltrpathdirs $found_dir"
6936 if test "$hardcode_direct" = yes; then
6937 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6939 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6940 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6942 for x in $rpathdirs; do
6943 if test "X$x" = "X$found_dir"; then
6948 if test -z "$haveit"; then
6949 rpathdirs="$rpathdirs $found_dir"
6953 for x in $LDFLAGS $LIBINTL; do
6955 acl_save_prefix="$prefix"
6956 prefix="$acl_final_prefix"
6957 acl_save_exec_prefix="$exec_prefix"
6958 exec_prefix="$acl_final_exec_prefix"
6960 exec_prefix="$acl_save_exec_prefix"
6961 prefix="$acl_save_prefix"
6963 if test "X$x" = "X-L$found_dir"; then
6968 if test -z "$haveit"; then
6969 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6971 if test "$hardcode_minus_L" != no; then
6972 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6974 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6980 if test "X$found_a" != "X"; then
6981 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6983 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6986 additional_includedir=
6987 case "$found_dir" in
6989 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6990 additional_includedir="$basedir/include"
6993 if test "X$additional_includedir" != "X"; then
6994 if test "X$additional_includedir" != "X/usr/include"; then
6996 if test "X$additional_includedir" = "X/usr/local/include"; then
6997 if test -n "$GCC"; then
6999 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7003 if test -z "$haveit"; then
7004 for x in $CPPFLAGS $INCINTL; do
7006 acl_save_prefix="$prefix"
7007 prefix="$acl_final_prefix"
7008 acl_save_exec_prefix="$exec_prefix"
7009 exec_prefix="$acl_final_exec_prefix"
7011 exec_prefix="$acl_save_exec_prefix"
7012 prefix="$acl_save_prefix"
7014 if test "X$x" = "X-I$additional_includedir"; then
7019 if test -z "$haveit"; then
7020 if test -d "$additional_includedir"; then
7021 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7027 if test -n "$found_la"; then
7028 save_libdir="$libdir"
7030 */* | *\\*) . "$found_la" ;;
7031 *) . "./$found_la" ;;
7033 libdir="$save_libdir"
7034 for dep in $dependency_libs; do
7037 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7038 if test "X$additional_libdir" != "X/usr/lib"; then
7040 if test "X$additional_libdir" = "X/usr/local/lib"; then
7041 if test -n "$GCC"; then
7043 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7047 if test -z "$haveit"; then
7049 for x in $LDFLAGS $LIBINTL; do
7051 acl_save_prefix="$prefix"
7052 prefix="$acl_final_prefix"
7053 acl_save_exec_prefix="$exec_prefix"
7054 exec_prefix="$acl_final_exec_prefix"
7056 exec_prefix="$acl_save_exec_prefix"
7057 prefix="$acl_save_prefix"
7059 if test "X$x" = "X-L$additional_libdir"; then
7064 if test -z "$haveit"; then
7065 if test -d "$additional_libdir"; then
7066 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7070 for x in $LDFLAGS $LTLIBINTL; do
7072 acl_save_prefix="$prefix"
7073 prefix="$acl_final_prefix"
7074 acl_save_exec_prefix="$exec_prefix"
7075 exec_prefix="$acl_final_exec_prefix"
7077 exec_prefix="$acl_save_exec_prefix"
7078 prefix="$acl_save_prefix"
7080 if test "X$x" = "X-L$additional_libdir"; then
7085 if test -z "$haveit"; then
7086 if test -d "$additional_libdir"; then
7087 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7094 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7095 if test "$enable_rpath" != no; then
7097 for x in $rpathdirs; do
7098 if test "X$x" = "X$dir"; then
7103 if test -z "$haveit"; then
7104 rpathdirs="$rpathdirs $dir"
7107 for x in $ltrpathdirs; do
7108 if test "X$x" = "X$dir"; then
7113 if test -z "$haveit"; then
7114 ltrpathdirs="$ltrpathdirs $dir"
7119 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7122 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7125 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7126 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7132 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7133 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7139 if test "X$rpathdirs" != "X"; then
7140 if test -n "$hardcode_libdir_separator"; then
7142 for found_dir in $rpathdirs; do
7143 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7145 acl_save_libdir="$libdir"
7147 eval flag=\"$hardcode_libdir_flag_spec\"
7148 libdir="$acl_save_libdir"
7149 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7151 for found_dir in $rpathdirs; do
7152 acl_save_libdir="$libdir"
7154 eval flag=\"$hardcode_libdir_flag_spec\"
7155 libdir="$acl_save_libdir"
7156 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7160 if test "X$ltrpathdirs" != "X"; then
7161 for found_dir in $ltrpathdirs; do
7162 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7166 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7167 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
7168 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
7171 gt_save_CPPFLAGS="$CPPFLAGS"
7172 CPPFLAGS="$CPPFLAGS $INCINTL"
7173 gt_save_LIBS="$LIBS"
7174 LIBS="$LIBS $LIBINTL"
7175 cat >conftest.$ac_ext <<_ACEOF
7178 cat confdefs.h >>conftest.$ac_ext
7179 cat >>conftest.$ac_ext <<_ACEOF
7180 /* end confdefs.h. */
7181 #include <libintl.h>
7182 extern int _nl_msg_cat_cntr;
7187 const char *_nl_expand_alias (const char *);
7191 bindtextdomain ("", "");
7192 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7197 rm -f conftest.$ac_objext conftest$ac_exeext
7198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7199 (eval $ac_link) 2>conftest.er1
7201 grep -v '^ *+' conftest.er1 >conftest.err
7203 cat conftest.err >&5
7204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7205 (exit $ac_status); } &&
7206 { ac_try='test -z "$ac_c_werror_flag"
7207 || test ! -s conftest.err'
7208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); }; } &&
7213 { ac_try='test -s conftest$ac_exeext'
7214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); }; }; then
7219 gt_cv_func_gnugettext1_libintl=yes
7221 echo "$as_me: failed program was:" >&5
7222 sed 's/^/| /' conftest.$ac_ext >&5
7224 gt_cv_func_gnugettext1_libintl=no
7226 rm -f conftest.err conftest.$ac_objext \
7227 conftest$ac_exeext conftest.$ac_ext
7228 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7229 LIBS="$LIBS $LIBICONV"
7230 cat >conftest.$ac_ext <<_ACEOF
7233 cat confdefs.h >>conftest.$ac_ext
7234 cat >>conftest.$ac_ext <<_ACEOF
7235 /* end confdefs.h. */
7236 #include <libintl.h>
7237 extern int _nl_msg_cat_cntr;
7242 const char *_nl_expand_alias (const char *);
7246 bindtextdomain ("", "");
7247 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7252 rm -f conftest.$ac_objext conftest$ac_exeext
7253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7254 (eval $ac_link) 2>conftest.er1
7256 grep -v '^ *+' conftest.er1 >conftest.err
7258 cat conftest.err >&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); } &&
7261 { ac_try='test -z "$ac_c_werror_flag"
7262 || test ! -s conftest.err'
7263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267 (exit $ac_status); }; } &&
7268 { ac_try='test -s conftest$ac_exeext'
7269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273 (exit $ac_status); }; }; then
7274 LIBINTL="$LIBINTL $LIBICONV"
7275 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7276 gt_cv_func_gnugettext1_libintl=yes
7279 echo "$as_me: failed program was:" >&5
7280 sed 's/^/| /' conftest.$ac_ext >&5
7283 rm -f conftest.err conftest.$ac_objext \
7284 conftest$ac_exeext conftest.$ac_ext
7286 CPPFLAGS="$gt_save_CPPFLAGS"
7287 LIBS="$gt_save_LIBS"
7289 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7290 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
7293 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7294 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7295 && test "$PACKAGE" != gettext-runtime \
7296 && test "$PACKAGE" != gettext-tools; }; then
7297 gt_use_preinstalled_gnugettext=yes
7306 if test -n "$INTL_MACOSX_LIBS"; then
7307 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7308 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7309 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7310 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7314 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7315 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7317 cat >>confdefs.h <<\_ACEOF
7318 #define ENABLE_NLS 1
7326 echo "$as_me:$LINENO: checking whether to use NLS" >&5
7327 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
7328 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7329 echo "${ECHO_T}$USE_NLS" >&6
7330 if test "$USE_NLS" = "yes"; then
7331 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7332 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
7333 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7334 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7335 gt_source="external libintl"
7340 gt_source="included intl directory"
7342 echo "$as_me:$LINENO: result: $gt_source" >&5
7343 echo "${ECHO_T}$gt_source" >&6
7346 if test "$USE_NLS" = "yes"; then
7348 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7349 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7350 echo "$as_me:$LINENO: checking how to link with libintl" >&5
7351 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
7352 echo "$as_me:$LINENO: result: $LIBINTL" >&5
7353 echo "${ECHO_T}$LIBINTL" >&6
7355 for element in $INCINTL; do
7357 for x in $CPPFLAGS; do
7359 acl_save_prefix="$prefix"
7360 prefix="$acl_final_prefix"
7361 acl_save_exec_prefix="$exec_prefix"
7362 exec_prefix="$acl_final_exec_prefix"
7364 exec_prefix="$acl_save_exec_prefix"
7365 prefix="$acl_save_prefix"
7367 if test "X$x" = "X$element"; then
7372 if test -z "$haveit"; then
7373 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7380 cat >>confdefs.h <<\_ACEOF
7381 #define HAVE_GETTEXT 1
7385 cat >>confdefs.h <<\_ACEOF
7386 #define HAVE_DCGETTEXT 1
7405 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7406 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7407 if test "${ac_cv_header_stdc+set}" = set; then
7408 echo $ECHO_N "(cached) $ECHO_C" >&6
7410 cat >conftest.$ac_ext <<_ACEOF
7413 cat confdefs.h >>conftest.$ac_ext
7414 cat >>conftest.$ac_ext <<_ACEOF
7415 /* end confdefs.h. */
7429 rm -f conftest.$ac_objext
7430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7431 (eval $ac_compile) 2>conftest.er1
7433 grep -v '^ *+' conftest.er1 >conftest.err
7435 cat conftest.err >&5
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); } &&
7438 { ac_try='test -z "$ac_c_werror_flag"
7439 || test ! -s conftest.err'
7440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444 (exit $ac_status); }; } &&
7445 { ac_try='test -s conftest.$ac_objext'
7446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); }; }; then
7451 ac_cv_header_stdc=yes
7453 echo "$as_me: failed program was:" >&5
7454 sed 's/^/| /' conftest.$ac_ext >&5
7456 ac_cv_header_stdc=no
7458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7460 if test $ac_cv_header_stdc = yes; then
7461 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7462 cat >conftest.$ac_ext <<_ACEOF
7465 cat confdefs.h >>conftest.$ac_ext
7466 cat >>conftest.$ac_ext <<_ACEOF
7467 /* end confdefs.h. */
7471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7472 $EGREP "memchr" >/dev/null 2>&1; then
7475 ac_cv_header_stdc=no
7481 if test $ac_cv_header_stdc = yes; then
7482 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7483 cat >conftest.$ac_ext <<_ACEOF
7486 cat confdefs.h >>conftest.$ac_ext
7487 cat >>conftest.$ac_ext <<_ACEOF
7488 /* end confdefs.h. */
7492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7493 $EGREP "free" >/dev/null 2>&1; then
7496 ac_cv_header_stdc=no
7502 if test $ac_cv_header_stdc = yes; then
7503 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7504 if test "$cross_compiling" = yes; then
7507 cat >conftest.$ac_ext <<_ACEOF
7510 cat confdefs.h >>conftest.$ac_ext
7511 cat >>conftest.$ac_ext <<_ACEOF
7512 /* end confdefs.h. */
7514 #if ((' ' & 0x0FF) == 0x020)
7515 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7516 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7518 # define ISLOWER(c) \
7519 (('a' <= (c) && (c) <= 'i') \
7520 || ('j' <= (c) && (c) <= 'r') \
7521 || ('s' <= (c) && (c) <= 'z'))
7522 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7525 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7530 for (i = 0; i < 256; i++)
7531 if (XOR (islower (i), ISLOWER (i))
7532 || toupper (i) != TOUPPER (i))
7537 rm -f conftest$ac_exeext
7538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7539 (eval $ac_link) 2>&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7547 (exit $ac_status); }; }; then
7550 echo "$as_me: program exited with status $ac_status" >&5
7551 echo "$as_me: failed program was:" >&5
7552 sed 's/^/| /' conftest.$ac_ext >&5
7555 ac_cv_header_stdc=no
7557 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7561 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7562 echo "${ECHO_T}$ac_cv_header_stdc" >&6
7563 if test $ac_cv_header_stdc = yes; then
7565 cat >>confdefs.h <<\_ACEOF
7566 #define STDC_HEADERS 1
7571 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7572 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7573 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
7576 cat >conftest.$ac_ext <<_ACEOF
7579 cat confdefs.h >>conftest.$ac_ext
7580 cat >>conftest.$ac_ext <<_ACEOF
7581 /* end confdefs.h. */
7582 #include <sys/types.h>
7583 #include <sys/wait.h>
7585 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7588 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7596 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7601 rm -f conftest.$ac_objext
7602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7603 (eval $ac_compile) 2>conftest.er1
7605 grep -v '^ *+' conftest.er1 >conftest.err
7607 cat conftest.err >&5
7608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609 (exit $ac_status); } &&
7610 { ac_try='test -z "$ac_c_werror_flag"
7611 || test ! -s conftest.err'
7612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); }; } &&
7617 { ac_try='test -s conftest.$ac_objext'
7618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); }; }; then
7623 ac_cv_header_sys_wait_h=yes
7625 echo "$as_me: failed program was:" >&5
7626 sed 's/^/| /' conftest.$ac_ext >&5
7628 ac_cv_header_sys_wait_h=no
7630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7632 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7633 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7634 if test $ac_cv_header_sys_wait_h = yes; then
7636 cat >>confdefs.h <<\_ACEOF
7637 #define HAVE_SYS_WAIT_H 1
7642 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7643 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7644 if test "${ac_cv_header_time+set}" = set; then
7645 echo $ECHO_N "(cached) $ECHO_C" >&6
7647 cat >conftest.$ac_ext <<_ACEOF
7650 cat confdefs.h >>conftest.$ac_ext
7651 cat >>conftest.$ac_ext <<_ACEOF
7652 /* end confdefs.h. */
7653 #include <sys/types.h>
7654 #include <sys/time.h>
7660 if ((struct tm *) 0)
7666 rm -f conftest.$ac_objext
7667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7668 (eval $ac_compile) 2>conftest.er1
7670 grep -v '^ *+' conftest.er1 >conftest.err
7672 cat conftest.err >&5
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); } &&
7675 { ac_try='test -z "$ac_c_werror_flag"
7676 || test ! -s conftest.err'
7677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); }; } &&
7682 { ac_try='test -s conftest.$ac_objext'
7683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); }; }; then
7688 ac_cv_header_time=yes
7690 echo "$as_me: failed program was:" >&5
7691 sed 's/^/| /' conftest.$ac_ext >&5
7693 ac_cv_header_time=no
7695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7697 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7698 echo "${ECHO_T}$ac_cv_header_time" >&6
7699 if test $ac_cv_header_time = yes; then
7701 cat >>confdefs.h <<\_ACEOF
7702 #define TIME_WITH_SYS_TIME 1
7725 for ac_header in fcntl.h limits.h locale.h libintl.h mcheck.h \
7726 netdb.h netinet/in.h signum.h stdarg.h string.h \
7727 sys/param.h sys/socket.h sys/time.h unistd.h \
7728 termios.h stropts.h wchar.h wctype.h
7730 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7731 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7732 echo "$as_me:$LINENO: checking for $ac_header" >&5
7733 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7735 echo $ECHO_N "(cached) $ECHO_C" >&6
7737 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7738 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7740 # Is the header compilable?
7741 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7742 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7743 cat >conftest.$ac_ext <<_ACEOF
7746 cat confdefs.h >>conftest.$ac_ext
7747 cat >>conftest.$ac_ext <<_ACEOF
7748 /* end confdefs.h. */
7749 $ac_includes_default
7750 #include <$ac_header>
7752 rm -f conftest.$ac_objext
7753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7754 (eval $ac_compile) 2>conftest.er1
7756 grep -v '^ *+' conftest.er1 >conftest.err
7758 cat conftest.err >&5
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); } &&
7761 { ac_try='test -z "$ac_c_werror_flag"
7762 || test ! -s conftest.err'
7763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); }; } &&
7768 { ac_try='test -s conftest.$ac_objext'
7769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); }; }; then
7774 ac_header_compiler=yes
7776 echo "$as_me: failed program was:" >&5
7777 sed 's/^/| /' conftest.$ac_ext >&5
7779 ac_header_compiler=no
7781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7782 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7783 echo "${ECHO_T}$ac_header_compiler" >&6
7785 # Is the header present?
7786 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7787 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7788 cat >conftest.$ac_ext <<_ACEOF
7791 cat confdefs.h >>conftest.$ac_ext
7792 cat >>conftest.$ac_ext <<_ACEOF
7793 /* end confdefs.h. */
7794 #include <$ac_header>
7796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7799 grep -v '^ *+' conftest.er1 >conftest.err
7801 cat conftest.err >&5
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); } >/dev/null; then
7804 if test -s conftest.err; then
7805 ac_cpp_err=$ac_c_preproc_warn_flag
7806 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7813 if test -z "$ac_cpp_err"; then
7814 ac_header_preproc=yes
7816 echo "$as_me: failed program was:" >&5
7817 sed 's/^/| /' conftest.$ac_ext >&5
7819 ac_header_preproc=no
7821 rm -f conftest.err conftest.$ac_ext
7822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7823 echo "${ECHO_T}$ac_header_preproc" >&6
7825 # So? What about this header?
7826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7831 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7832 ac_header_preproc=yes
7835 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7837 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7838 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7839 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7840 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7841 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7842 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7845 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7846 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7849 ## ------------------------------- ##
7850 ## Report this to bug-gawk@gnu.org ##
7851 ## ------------------------------- ##
7854 sed "s/^/$as_me: WARNING: /" >&2
7857 echo "$as_me:$LINENO: checking for $ac_header" >&5
7858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7859 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7860 echo $ECHO_N "(cached) $ECHO_C" >&6
7862 eval "$as_ac_Header=\$ac_header_preproc"
7864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7865 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7869 cat >>confdefs.h <<_ACEOF
7870 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7878 if test "$ac_cv_header_string_h" = yes
7881 for ac_header in memory.h
7883 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7885 echo "$as_me:$LINENO: checking for $ac_header" >&5
7886 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7888 echo $ECHO_N "(cached) $ECHO_C" >&6
7890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7893 # Is the header compilable?
7894 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7895 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7896 cat >conftest.$ac_ext <<_ACEOF
7899 cat confdefs.h >>conftest.$ac_ext
7900 cat >>conftest.$ac_ext <<_ACEOF
7901 /* end confdefs.h. */
7902 $ac_includes_default
7903 #include <$ac_header>
7905 rm -f conftest.$ac_objext
7906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7907 (eval $ac_compile) 2>conftest.er1
7909 grep -v '^ *+' conftest.er1 >conftest.err
7911 cat conftest.err >&5
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); } &&
7914 { ac_try='test -z "$ac_c_werror_flag"
7915 || test ! -s conftest.err'
7916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); }; } &&
7921 { ac_try='test -s conftest.$ac_objext'
7922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); }; }; then
7927 ac_header_compiler=yes
7929 echo "$as_me: failed program was:" >&5
7930 sed 's/^/| /' conftest.$ac_ext >&5
7932 ac_header_compiler=no
7934 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7935 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7936 echo "${ECHO_T}$ac_header_compiler" >&6
7938 # Is the header present?
7939 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7940 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7941 cat >conftest.$ac_ext <<_ACEOF
7944 cat confdefs.h >>conftest.$ac_ext
7945 cat >>conftest.$ac_ext <<_ACEOF
7946 /* end confdefs.h. */
7947 #include <$ac_header>
7949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7952 grep -v '^ *+' conftest.er1 >conftest.err
7954 cat conftest.err >&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); } >/dev/null; then
7957 if test -s conftest.err; then
7958 ac_cpp_err=$ac_c_preproc_warn_flag
7959 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7966 if test -z "$ac_cpp_err"; then
7967 ac_header_preproc=yes
7969 echo "$as_me: failed program was:" >&5
7970 sed 's/^/| /' conftest.$ac_ext >&5
7972 ac_header_preproc=no
7974 rm -f conftest.err conftest.$ac_ext
7975 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7976 echo "${ECHO_T}$ac_header_preproc" >&6
7978 # So? What about this header?
7979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7981 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7982 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7984 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7985 ac_header_preproc=yes
7988 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7989 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7990 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7991 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7992 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7993 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7994 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7995 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7997 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7998 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7999 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8002 ## ------------------------------- ##
8003 ## Report this to bug-gawk@gnu.org ##
8004 ## ------------------------------- ##
8007 sed "s/^/$as_me: WARNING: /" >&2
8010 echo "$as_me:$LINENO: checking for $ac_header" >&5
8011 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8012 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8015 eval "$as_ac_Header=\$ac_header_preproc"
8017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8022 cat >>confdefs.h <<_ACEOF
8023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8032 for ac_header in strings.h
8034 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8035 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8036 echo "$as_me:$LINENO: checking for $ac_header" >&5
8037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8039 echo $ECHO_N "(cached) $ECHO_C" >&6
8041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8044 # Is the header compilable?
8045 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8046 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8047 cat >conftest.$ac_ext <<_ACEOF
8050 cat confdefs.h >>conftest.$ac_ext
8051 cat >>conftest.$ac_ext <<_ACEOF
8052 /* end confdefs.h. */
8053 $ac_includes_default
8054 #include <$ac_header>
8056 rm -f conftest.$ac_objext
8057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8058 (eval $ac_compile) 2>conftest.er1
8060 grep -v '^ *+' conftest.er1 >conftest.err
8062 cat conftest.err >&5
8063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); } &&
8065 { ac_try='test -z "$ac_c_werror_flag"
8066 || test ! -s conftest.err'
8067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; } &&
8072 { ac_try='test -s conftest.$ac_objext'
8073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); }; }; then
8078 ac_header_compiler=yes
8080 echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8083 ac_header_compiler=no
8085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8086 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8087 echo "${ECHO_T}$ac_header_compiler" >&6
8089 # Is the header present?
8090 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8091 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8092 cat >conftest.$ac_ext <<_ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h. */
8098 #include <$ac_header>
8100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8103 grep -v '^ *+' conftest.er1 >conftest.err
8105 cat conftest.err >&5
8106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8107 (exit $ac_status); } >/dev/null; then
8108 if test -s conftest.err; then
8109 ac_cpp_err=$ac_c_preproc_warn_flag
8110 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8117 if test -z "$ac_cpp_err"; then
8118 ac_header_preproc=yes
8120 echo "$as_me: failed program was:" >&5
8121 sed 's/^/| /' conftest.$ac_ext >&5
8123 ac_header_preproc=no
8125 rm -f conftest.err conftest.$ac_ext
8126 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8127 echo "${ECHO_T}$ac_header_preproc" >&6
8129 # So? What about this header?
8130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8132 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8133 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8135 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8136 ac_header_preproc=yes
8139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8142 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8143 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8144 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8145 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8146 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8149 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8150 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8153 ## ------------------------------- ##
8154 ## Report this to bug-gawk@gnu.org ##
8155 ## ------------------------------- ##
8158 sed "s/^/$as_me: WARNING: /" >&2
8161 echo "$as_me:$LINENO: checking for $ac_header" >&5
8162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8164 echo $ECHO_N "(cached) $ECHO_C" >&6
8166 eval "$as_ac_Header=\$ac_header_preproc"
8168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8173 cat >>confdefs.h <<_ACEOF
8174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8183 echo "$as_me:$LINENO: checking for pid_t" >&5
8184 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8185 if test "${ac_cv_type_pid_t+set}" = set; then
8186 echo $ECHO_N "(cached) $ECHO_C" >&6
8188 cat >conftest.$ac_ext <<_ACEOF
8191 cat confdefs.h >>conftest.$ac_ext
8192 cat >>conftest.$ac_ext <<_ACEOF
8193 /* end confdefs.h. */
8194 $ac_includes_default
8206 rm -f conftest.$ac_objext
8207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8208 (eval $ac_compile) 2>conftest.er1
8210 grep -v '^ *+' conftest.er1 >conftest.err
8212 cat conftest.err >&5
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); } &&
8215 { ac_try='test -z "$ac_c_werror_flag"
8216 || test ! -s conftest.err'
8217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); }; } &&
8222 { ac_try='test -s conftest.$ac_objext'
8223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); }; }; then
8228 ac_cv_type_pid_t=yes
8230 echo "$as_me: failed program was:" >&5
8231 sed 's/^/| /' conftest.$ac_ext >&5
8235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8237 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8238 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8239 if test $ac_cv_type_pid_t = yes; then
8243 cat >>confdefs.h <<_ACEOF
8249 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8250 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
8251 if test "${ac_cv_type_signal+set}" = set; then
8252 echo $ECHO_N "(cached) $ECHO_C" >&6
8254 cat >conftest.$ac_ext <<_ACEOF
8257 cat confdefs.h >>conftest.$ac_ext
8258 cat >>conftest.$ac_ext <<_ACEOF
8259 /* end confdefs.h. */
8260 #include <sys/types.h>
8266 extern "C" void (*signal (int, void (*)(int)))(int);
8268 void (*signal ()) ();
8279 rm -f conftest.$ac_objext
8280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8281 (eval $ac_compile) 2>conftest.er1
8283 grep -v '^ *+' conftest.er1 >conftest.err
8285 cat conftest.err >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } &&
8288 { ac_try='test -z "$ac_c_werror_flag"
8289 || test ! -s conftest.err'
8290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); }; } &&
8295 { ac_try='test -s conftest.$ac_objext'
8296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); }; }; then
8301 ac_cv_type_signal=void
8303 echo "$as_me: failed program was:" >&5
8304 sed 's/^/| /' conftest.$ac_ext >&5
8306 ac_cv_type_signal=int
8308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8310 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8311 echo "${ECHO_T}$ac_cv_type_signal" >&6
8313 cat >>confdefs.h <<_ACEOF
8314 #define RETSIGTYPE $ac_cv_type_signal
8318 echo "$as_me:$LINENO: checking for size_t" >&5
8319 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8320 if test "${ac_cv_type_size_t+set}" = set; then
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
8323 cat >conftest.$ac_ext <<_ACEOF
8326 cat confdefs.h >>conftest.$ac_ext
8327 cat >>conftest.$ac_ext <<_ACEOF
8328 /* end confdefs.h. */
8329 $ac_includes_default
8335 if (sizeof (size_t))
8341 rm -f conftest.$ac_objext
8342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8343 (eval $ac_compile) 2>conftest.er1
8345 grep -v '^ *+' conftest.er1 >conftest.err
8347 cat conftest.err >&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); } &&
8350 { ac_try='test -z "$ac_c_werror_flag"
8351 || test ! -s conftest.err'
8352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); }; } &&
8357 { ac_try='test -s conftest.$ac_objext'
8358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362 (exit $ac_status); }; }; then
8363 ac_cv_type_size_t=yes
8365 echo "$as_me: failed program was:" >&5
8366 sed 's/^/| /' conftest.$ac_ext >&5
8368 ac_cv_type_size_t=no
8370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8372 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8373 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8374 if test $ac_cv_type_size_t = yes; then
8378 cat >>confdefs.h <<_ACEOF
8379 #define size_t unsigned
8384 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
8385 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
8386 if test "${ac_cv_type_uid_t+set}" = set; then
8387 echo $ECHO_N "(cached) $ECHO_C" >&6
8389 cat >conftest.$ac_ext <<_ACEOF
8392 cat confdefs.h >>conftest.$ac_ext
8393 cat >>conftest.$ac_ext <<_ACEOF
8394 /* end confdefs.h. */
8395 #include <sys/types.h>
8398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8399 $EGREP "uid_t" >/dev/null 2>&1; then
8400 ac_cv_type_uid_t=yes
8407 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
8408 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
8409 if test $ac_cv_type_uid_t = no; then
8411 cat >>confdefs.h <<\_ACEOF
8416 cat >>confdefs.h <<\_ACEOF
8422 echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
8423 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6
8424 if test "${ac_cv_type_getgroups+set}" = set; then
8425 echo $ECHO_N "(cached) $ECHO_C" >&6
8427 if test "$cross_compiling" = yes; then
8428 ac_cv_type_getgroups=cross
8430 cat >conftest.$ac_ext <<_ACEOF
8433 cat confdefs.h >>conftest.$ac_ext
8434 cat >>conftest.$ac_ext <<_ACEOF
8435 /* end confdefs.h. */
8436 /* Thanks to Mike Rendell for this test. */
8437 #include <sys/types.h>
8440 #define MAX(x, y) ((x) > (y) ? (x) : (y))
8447 union { gid_t gval; long lval; } val;
8450 for (i = 0; i < NGID; i++)
8451 gidset[i] = val.gval;
8452 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
8454 /* Exit non-zero if getgroups seems to require an array of ints. This
8455 happens when gid_t is short but getgroups modifies an array of ints. */
8456 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
8459 rm -f conftest$ac_exeext
8460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8461 (eval $ac_link) 2>&5
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; }; then
8470 ac_cv_type_getgroups=gid_t
8472 echo "$as_me: program exited with status $ac_status" >&5
8473 echo "$as_me: failed program was:" >&5
8474 sed 's/^/| /' conftest.$ac_ext >&5
8477 ac_cv_type_getgroups=int
8479 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8481 if test $ac_cv_type_getgroups = cross; then
8482 cat >conftest.$ac_ext <<_ACEOF
8485 cat confdefs.h >>conftest.$ac_ext
8486 cat >>conftest.$ac_ext <<_ACEOF
8487 /* end confdefs.h. */
8491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8492 $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
8493 ac_cv_type_getgroups=gid_t
8495 ac_cv_type_getgroups=int
8501 echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
8502 echo "${ECHO_T}$ac_cv_type_getgroups" >&6
8504 cat >>confdefs.h <<_ACEOF
8505 #define GETGROUPS_T $ac_cv_type_getgroups
8510 echo "$as_me:$LINENO: checking for long long" >&5
8511 echo $ECHO_N "checking for long long... $ECHO_C" >&6
8512 if test "${ac_cv_type_long_long+set}" = set; then
8513 echo $ECHO_N "(cached) $ECHO_C" >&6
8515 cat >conftest.$ac_ext <<_ACEOF
8518 cat confdefs.h >>conftest.$ac_ext
8519 cat >>conftest.$ac_ext <<_ACEOF
8520 /* end confdefs.h. */
8521 long long ll = 1LL; int i = 63;
8525 long long llmax = (long long) -1;
8526 return ll << i | ll >> i | llmax / ll | llmax % ll;
8531 rm -f conftest.$ac_objext conftest$ac_exeext
8532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8533 (eval $ac_link) 2>conftest.er1
8535 grep -v '^ *+' conftest.er1 >conftest.err
8537 cat conftest.err >&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); } &&
8540 { ac_try='test -z "$ac_c_werror_flag"
8541 || test ! -s conftest.err'
8542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); }; } &&
8547 { ac_try='test -s conftest$ac_exeext'
8548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8552 (exit $ac_status); }; }; then
8553 ac_cv_type_long_long=yes
8555 echo "$as_me: failed program was:" >&5
8556 sed 's/^/| /' conftest.$ac_ext >&5
8558 ac_cv_type_long_long=no
8560 rm -f conftest.err conftest.$ac_objext \
8561 conftest$ac_exeext conftest.$ac_ext
8563 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8564 echo "${ECHO_T}$ac_cv_type_long_long" >&6
8565 if test $ac_cv_type_long_long = yes; then
8567 cat >>confdefs.h <<\_ACEOF
8568 #define HAVE_LONG_LONG 1
8574 echo "$as_me:$LINENO: checking for unsigned long long" >&5
8575 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
8576 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
8577 echo $ECHO_N "(cached) $ECHO_C" >&6
8579 cat >conftest.$ac_ext <<_ACEOF
8582 cat confdefs.h >>conftest.$ac_ext
8583 cat >>conftest.$ac_ext <<_ACEOF
8584 /* end confdefs.h. */
8585 unsigned long long ull = 1ULL; int i = 63;
8589 unsigned long long ullmax = (unsigned long long) -1;
8590 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
8595 rm -f conftest.$ac_objext conftest$ac_exeext
8596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8597 (eval $ac_link) 2>conftest.er1
8599 grep -v '^ *+' conftest.er1 >conftest.err
8601 cat conftest.err >&5
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); } &&
8604 { ac_try='test -z "$ac_c_werror_flag"
8605 || test ! -s conftest.err'
8606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); }; } &&
8611 { ac_try='test -s conftest$ac_exeext'
8612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); }; }; then
8617 ac_cv_type_unsigned_long_long=yes
8619 echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.$ac_ext >&5
8622 ac_cv_type_unsigned_long_long=no
8624 rm -f conftest.err conftest.$ac_objext \
8625 conftest$ac_exeext conftest.$ac_ext
8627 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
8628 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
8629 if test $ac_cv_type_unsigned_long_long = yes; then
8631 cat >>confdefs.h <<\_ACEOF
8632 #define HAVE_UNSIGNED_LONG_LONG 1
8638 echo "$as_me:$LINENO: checking for inttypes.h" >&5
8639 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
8640 if test "${gl_cv_header_inttypes_h+set}" = set; then
8641 echo $ECHO_N "(cached) $ECHO_C" >&6
8643 cat >conftest.$ac_ext <<_ACEOF
8646 cat confdefs.h >>conftest.$ac_ext
8647 cat >>conftest.$ac_ext <<_ACEOF
8648 /* end confdefs.h. */
8649 #include <sys/types.h>
8650 #include <inttypes.h>
8654 uintmax_t i = (uintmax_t) -1;
8659 rm -f conftest.$ac_objext
8660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8661 (eval $ac_compile) 2>conftest.er1
8663 grep -v '^ *+' conftest.er1 >conftest.err
8665 cat conftest.err >&5
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); } &&
8668 { ac_try='test -z "$ac_c_werror_flag"
8669 || test ! -s conftest.err'
8670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); }; } &&
8675 { ac_try='test -s conftest.$ac_objext'
8676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); }; }; then
8681 gl_cv_header_inttypes_h=yes
8683 echo "$as_me: failed program was:" >&5
8684 sed 's/^/| /' conftest.$ac_ext >&5
8686 gl_cv_header_inttypes_h=no
8688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8690 echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
8691 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6
8692 if test $gl_cv_header_inttypes_h = yes; then
8694 cat >>confdefs.h <<_ACEOF
8695 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8701 echo "$as_me:$LINENO: checking for stdint.h" >&5
8702 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
8703 if test "${gl_cv_header_stdint_h+set}" = set; then
8704 echo $ECHO_N "(cached) $ECHO_C" >&6
8706 cat >conftest.$ac_ext <<_ACEOF
8709 cat confdefs.h >>conftest.$ac_ext
8710 cat >>conftest.$ac_ext <<_ACEOF
8711 /* end confdefs.h. */
8712 #include <sys/types.h>
8717 uintmax_t i = (uintmax_t) -1;
8722 rm -f conftest.$ac_objext
8723 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8724 (eval $ac_compile) 2>conftest.er1
8726 grep -v '^ *+' conftest.er1 >conftest.err
8728 cat conftest.err >&5
8729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8730 (exit $ac_status); } &&
8731 { ac_try='test -z "$ac_c_werror_flag"
8732 || test ! -s conftest.err'
8733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); }; } &&
8738 { ac_try='test -s conftest.$ac_objext'
8739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 (exit $ac_status); }; }; then
8744 gl_cv_header_stdint_h=yes
8746 echo "$as_me: failed program was:" >&5
8747 sed 's/^/| /' conftest.$ac_ext >&5
8749 gl_cv_header_stdint_h=no
8751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8753 echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8754 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6
8755 if test $gl_cv_header_stdint_h = yes; then
8757 cat >>confdefs.h <<_ACEOF
8758 #define HAVE_STDINT_H_WITH_UINTMAX 1
8766 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
8768 test $ac_cv_type_long_long = yes \
8769 && ac_type='long long' \
8772 cat >>confdefs.h <<_ACEOF
8773 #define intmax_t $ac_type
8778 cat >>confdefs.h <<\_ACEOF
8779 #define HAVE_INTMAX_T 1
8787 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
8789 test $ac_cv_type_unsigned_long_long = yes \
8790 && ac_type='unsigned long long' \
8791 || ac_type='unsigned long'
8793 cat >>confdefs.h <<_ACEOF
8794 #define uintmax_t $ac_type
8799 cat >>confdefs.h <<\_ACEOF
8800 #define HAVE_UINTMAX_T 1
8805 echo "$as_me:$LINENO: checking for ssize_t" >&5
8806 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
8807 if test "${ac_cv_type_ssize_t+set}" = set; then
8808 echo $ECHO_N "(cached) $ECHO_C" >&6
8810 cat >conftest.$ac_ext <<_ACEOF
8813 cat confdefs.h >>conftest.$ac_ext
8814 cat >>conftest.$ac_ext <<_ACEOF
8815 /* end confdefs.h. */
8816 $ac_includes_default
8822 if (sizeof (ssize_t))
8828 rm -f conftest.$ac_objext
8829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8830 (eval $ac_compile) 2>conftest.er1
8832 grep -v '^ *+' conftest.er1 >conftest.err
8834 cat conftest.err >&5
8835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8836 (exit $ac_status); } &&
8837 { ac_try='test -z "$ac_c_werror_flag"
8838 || test ! -s conftest.err'
8839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; } &&
8844 { ac_try='test -s conftest.$ac_objext'
8845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); }; }; then
8850 ac_cv_type_ssize_t=yes
8852 echo "$as_me: failed program was:" >&5
8853 sed 's/^/| /' conftest.$ac_ext >&5
8855 ac_cv_type_ssize_t=no
8857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8859 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
8860 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
8861 if test $ac_cv_type_ssize_t = yes; then
8865 cat >>confdefs.h <<_ACEOF
8871 echo "$as_me:$LINENO: checking for unsigned int" >&5
8872 echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6
8873 if test "${ac_cv_type_unsigned_int+set}" = set; then
8874 echo $ECHO_N "(cached) $ECHO_C" >&6
8876 cat >conftest.$ac_ext <<_ACEOF
8879 cat confdefs.h >>conftest.$ac_ext
8880 cat >>conftest.$ac_ext <<_ACEOF
8881 /* end confdefs.h. */
8882 $ac_includes_default
8886 if ((unsigned int *) 0)
8888 if (sizeof (unsigned int))
8894 rm -f conftest.$ac_objext
8895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8896 (eval $ac_compile) 2>conftest.er1
8898 grep -v '^ *+' conftest.er1 >conftest.err
8900 cat conftest.err >&5
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); } &&
8903 { ac_try='test -z "$ac_c_werror_flag"
8904 || test ! -s conftest.err'
8905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); }; } &&
8910 { ac_try='test -s conftest.$ac_objext'
8911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); }; }; then
8916 ac_cv_type_unsigned_int=yes
8918 echo "$as_me: failed program was:" >&5
8919 sed 's/^/| /' conftest.$ac_ext >&5
8921 ac_cv_type_unsigned_int=no
8923 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8925 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
8926 echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6
8928 echo "$as_me:$LINENO: checking size of unsigned int" >&5
8929 echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6
8930 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
8931 echo $ECHO_N "(cached) $ECHO_C" >&6
8933 if test "$ac_cv_type_unsigned_int" = yes; then
8934 # The cast to unsigned long works around a bug in the HP C Compiler
8935 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8936 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8937 # This bug is HP SR number 8606223364.
8938 if test "$cross_compiling" = yes; then
8939 # Depending upon the size, compute the lo and hi bounds.
8940 cat >conftest.$ac_ext <<_ACEOF
8943 cat confdefs.h >>conftest.$ac_ext
8944 cat >>conftest.$ac_ext <<_ACEOF
8945 /* end confdefs.h. */
8946 $ac_includes_default
8950 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= 0)];
8957 rm -f conftest.$ac_objext
8958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8959 (eval $ac_compile) 2>conftest.er1
8961 grep -v '^ *+' conftest.er1 >conftest.err
8963 cat conftest.err >&5
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); } &&
8966 { ac_try='test -z "$ac_c_werror_flag"
8967 || test ! -s conftest.err'
8968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); }; } &&
8973 { ac_try='test -s conftest.$ac_objext'
8974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); }; }; then
8981 cat >conftest.$ac_ext <<_ACEOF
8984 cat confdefs.h >>conftest.$ac_ext
8985 cat >>conftest.$ac_ext <<_ACEOF
8986 /* end confdefs.h. */
8987 $ac_includes_default
8991 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
8998 rm -f conftest.$ac_objext
8999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9000 (eval $ac_compile) 2>conftest.er1
9002 grep -v '^ *+' conftest.er1 >conftest.err
9004 cat conftest.err >&5
9005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9006 (exit $ac_status); } &&
9007 { ac_try='test -z "$ac_c_werror_flag"
9008 || test ! -s conftest.err'
9009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); }; } &&
9014 { ac_try='test -s conftest.$ac_objext'
9015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); }; }; then
9020 ac_hi=$ac_mid; break
9022 echo "$as_me: failed program was:" >&5
9023 sed 's/^/| /' conftest.$ac_ext >&5
9025 ac_lo=`expr $ac_mid + 1`
9026 if test $ac_lo -le $ac_mid; then
9030 ac_mid=`expr 2 '*' $ac_mid + 1`
9032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9035 echo "$as_me: failed program was:" >&5
9036 sed 's/^/| /' conftest.$ac_ext >&5
9038 cat >conftest.$ac_ext <<_ACEOF
9041 cat confdefs.h >>conftest.$ac_ext
9042 cat >>conftest.$ac_ext <<_ACEOF
9043 /* end confdefs.h. */
9044 $ac_includes_default
9048 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) < 0)];
9055 rm -f conftest.$ac_objext
9056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9057 (eval $ac_compile) 2>conftest.er1
9059 grep -v '^ *+' conftest.er1 >conftest.err
9061 cat conftest.err >&5
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); } &&
9064 { ac_try='test -z "$ac_c_werror_flag"
9065 || test ! -s conftest.err'
9066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); }; } &&
9071 { ac_try='test -s conftest.$ac_objext'
9072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076 (exit $ac_status); }; }; then
9079 cat >conftest.$ac_ext <<_ACEOF
9082 cat confdefs.h >>conftest.$ac_ext
9083 cat >>conftest.$ac_ext <<_ACEOF
9084 /* end confdefs.h. */
9085 $ac_includes_default
9089 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= $ac_mid)];
9096 rm -f conftest.$ac_objext
9097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9098 (eval $ac_compile) 2>conftest.er1
9100 grep -v '^ *+' conftest.er1 >conftest.err
9102 cat conftest.err >&5
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); } &&
9105 { ac_try='test -z "$ac_c_werror_flag"
9106 || test ! -s conftest.err'
9107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); }; } &&
9112 { ac_try='test -s conftest.$ac_objext'
9113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); }; }; then
9118 ac_lo=$ac_mid; break
9120 echo "$as_me: failed program was:" >&5
9121 sed 's/^/| /' conftest.$ac_ext >&5
9123 ac_hi=`expr '(' $ac_mid ')' - 1`
9124 if test $ac_mid -le $ac_hi; then
9128 ac_mid=`expr 2 '*' $ac_mid`
9130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9133 echo "$as_me: failed program was:" >&5
9134 sed 's/^/| /' conftest.$ac_ext >&5
9138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9141 # Binary search between lo and hi bounds.
9142 while test "x$ac_lo" != "x$ac_hi"; do
9143 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9144 cat >conftest.$ac_ext <<_ACEOF
9147 cat confdefs.h >>conftest.$ac_ext
9148 cat >>conftest.$ac_ext <<_ACEOF
9149 /* end confdefs.h. */
9150 $ac_includes_default
9154 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
9161 rm -f conftest.$ac_objext
9162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9163 (eval $ac_compile) 2>conftest.er1
9165 grep -v '^ *+' conftest.er1 >conftest.err
9167 cat conftest.err >&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); } &&
9170 { ac_try='test -z "$ac_c_werror_flag"
9171 || test ! -s conftest.err'
9172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176 (exit $ac_status); }; } &&
9177 { ac_try='test -s conftest.$ac_objext'
9178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); }; }; then
9185 echo "$as_me: failed program was:" >&5
9186 sed 's/^/| /' conftest.$ac_ext >&5
9188 ac_lo=`expr '(' $ac_mid ')' + 1`
9190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9193 ?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
9194 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
9195 See \`config.log' for more details." >&5
9196 echo "$as_me: error: cannot compute sizeof (unsigned int), 77
9197 See \`config.log' for more details." >&2;}
9198 { (exit 1); exit 1; }; } ;;
9201 if test "$cross_compiling" = yes; then
9202 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9203 See \`config.log' for more details." >&5
9204 echo "$as_me: error: cannot run test program while cross compiling
9205 See \`config.log' for more details." >&2;}
9206 { (exit 1); exit 1; }; }
9208 cat >conftest.$ac_ext <<_ACEOF
9211 cat confdefs.h >>conftest.$ac_ext
9212 cat >>conftest.$ac_ext <<_ACEOF
9213 /* end confdefs.h. */
9214 $ac_includes_default
9215 long longval () { return (long) (sizeof (unsigned int)); }
9216 unsigned long ulongval () { return (long) (sizeof (unsigned int)); }
9223 FILE *f = fopen ("conftest.val", "w");
9226 if (((long) (sizeof (unsigned int))) < 0)
9228 long i = longval ();
9229 if (i != ((long) (sizeof (unsigned int))))
9231 fprintf (f, "%ld\n", i);
9235 unsigned long i = ulongval ();
9236 if (i != ((long) (sizeof (unsigned int))))
9238 fprintf (f, "%lu\n", i);
9240 exit (ferror (f) || fclose (f) != 0);
9246 rm -f conftest$ac_exeext
9247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9248 (eval $ac_link) 2>&5
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); }; }; then
9257 ac_cv_sizeof_unsigned_int=`cat conftest.val`
9259 echo "$as_me: program exited with status $ac_status" >&5
9260 echo "$as_me: failed program was:" >&5
9261 sed 's/^/| /' conftest.$ac_ext >&5
9264 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
9265 See \`config.log' for more details." >&5
9266 echo "$as_me: error: cannot compute sizeof (unsigned int), 77
9267 See \`config.log' for more details." >&2;}
9268 { (exit 1); exit 1; }; }
9270 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9275 ac_cv_sizeof_unsigned_int=0
9278 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
9279 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
9280 cat >>confdefs.h <<_ACEOF
9281 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
9285 echo "$as_me:$LINENO: checking for unsigned long" >&5
9286 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
9287 if test "${ac_cv_type_unsigned_long+set}" = set; then
9288 echo $ECHO_N "(cached) $ECHO_C" >&6
9290 cat >conftest.$ac_ext <<_ACEOF
9293 cat confdefs.h >>conftest.$ac_ext
9294 cat >>conftest.$ac_ext <<_ACEOF
9295 /* end confdefs.h. */
9296 $ac_includes_default
9300 if ((unsigned long *) 0)
9302 if (sizeof (unsigned long))
9308 rm -f conftest.$ac_objext
9309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9310 (eval $ac_compile) 2>conftest.er1
9312 grep -v '^ *+' conftest.er1 >conftest.err
9314 cat conftest.err >&5
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); } &&
9317 { ac_try='test -z "$ac_c_werror_flag"
9318 || test ! -s conftest.err'
9319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); }; } &&
9324 { ac_try='test -s conftest.$ac_objext'
9325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); }; }; then
9330 ac_cv_type_unsigned_long=yes
9332 echo "$as_me: failed program was:" >&5
9333 sed 's/^/| /' conftest.$ac_ext >&5
9335 ac_cv_type_unsigned_long=no
9337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9339 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
9340 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
9342 echo "$as_me:$LINENO: checking size of unsigned long" >&5
9343 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
9344 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
9345 echo $ECHO_N "(cached) $ECHO_C" >&6
9347 if test "$ac_cv_type_unsigned_long" = yes; then
9348 # The cast to unsigned long works around a bug in the HP C Compiler
9349 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9350 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9351 # This bug is HP SR number 8606223364.
9352 if test "$cross_compiling" = yes; then
9353 # Depending upon the size, compute the lo and hi bounds.
9354 cat >conftest.$ac_ext <<_ACEOF
9357 cat confdefs.h >>conftest.$ac_ext
9358 cat >>conftest.$ac_ext <<_ACEOF
9359 /* end confdefs.h. */
9360 $ac_includes_default
9364 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
9371 rm -f conftest.$ac_objext
9372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9373 (eval $ac_compile) 2>conftest.er1
9375 grep -v '^ *+' conftest.er1 >conftest.err
9377 cat conftest.err >&5
9378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379 (exit $ac_status); } &&
9380 { ac_try='test -z "$ac_c_werror_flag"
9381 || test ! -s conftest.err'
9382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); }; } &&
9387 { ac_try='test -s conftest.$ac_objext'
9388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); }; }; then
9395 cat >conftest.$ac_ext <<_ACEOF
9398 cat confdefs.h >>conftest.$ac_ext
9399 cat >>conftest.$ac_ext <<_ACEOF
9400 /* end confdefs.h. */
9401 $ac_includes_default
9405 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
9412 rm -f conftest.$ac_objext
9413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9414 (eval $ac_compile) 2>conftest.er1
9416 grep -v '^ *+' conftest.er1 >conftest.err
9418 cat conftest.err >&5
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); } &&
9421 { ac_try='test -z "$ac_c_werror_flag"
9422 || test ! -s conftest.err'
9423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); }; } &&
9428 { ac_try='test -s conftest.$ac_objext'
9429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); }; }; then
9434 ac_hi=$ac_mid; break
9436 echo "$as_me: failed program was:" >&5
9437 sed 's/^/| /' conftest.$ac_ext >&5
9439 ac_lo=`expr $ac_mid + 1`
9440 if test $ac_lo -le $ac_mid; then
9444 ac_mid=`expr 2 '*' $ac_mid + 1`
9446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9449 echo "$as_me: failed program was:" >&5
9450 sed 's/^/| /' conftest.$ac_ext >&5
9452 cat >conftest.$ac_ext <<_ACEOF
9455 cat confdefs.h >>conftest.$ac_ext
9456 cat >>conftest.$ac_ext <<_ACEOF
9457 /* end confdefs.h. */
9458 $ac_includes_default
9462 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
9469 rm -f conftest.$ac_objext
9470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9471 (eval $ac_compile) 2>conftest.er1
9473 grep -v '^ *+' conftest.er1 >conftest.err
9475 cat conftest.err >&5
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); } &&
9478 { ac_try='test -z "$ac_c_werror_flag"
9479 || test ! -s conftest.err'
9480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484 (exit $ac_status); }; } &&
9485 { ac_try='test -s conftest.$ac_objext'
9486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); }; }; then
9493 cat >conftest.$ac_ext <<_ACEOF
9496 cat confdefs.h >>conftest.$ac_ext
9497 cat >>conftest.$ac_ext <<_ACEOF
9498 /* end confdefs.h. */
9499 $ac_includes_default
9503 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
9510 rm -f conftest.$ac_objext
9511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9512 (eval $ac_compile) 2>conftest.er1
9514 grep -v '^ *+' conftest.er1 >conftest.err
9516 cat conftest.err >&5
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); } &&
9519 { ac_try='test -z "$ac_c_werror_flag"
9520 || test ! -s conftest.err'
9521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9525 (exit $ac_status); }; } &&
9526 { ac_try='test -s conftest.$ac_objext'
9527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); }; }; then
9532 ac_lo=$ac_mid; break
9534 echo "$as_me: failed program was:" >&5
9535 sed 's/^/| /' conftest.$ac_ext >&5
9537 ac_hi=`expr '(' $ac_mid ')' - 1`
9538 if test $ac_mid -le $ac_hi; then
9542 ac_mid=`expr 2 '*' $ac_mid`
9544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9547 echo "$as_me: failed program was:" >&5
9548 sed 's/^/| /' conftest.$ac_ext >&5
9552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9555 # Binary search between lo and hi bounds.
9556 while test "x$ac_lo" != "x$ac_hi"; do
9557 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9558 cat >conftest.$ac_ext <<_ACEOF
9561 cat confdefs.h >>conftest.$ac_ext
9562 cat >>conftest.$ac_ext <<_ACEOF
9563 /* end confdefs.h. */
9564 $ac_includes_default
9568 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
9575 rm -f conftest.$ac_objext
9576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9577 (eval $ac_compile) 2>conftest.er1
9579 grep -v '^ *+' conftest.er1 >conftest.err
9581 cat conftest.err >&5
9582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9583 (exit $ac_status); } &&
9584 { ac_try='test -z "$ac_c_werror_flag"
9585 || test ! -s conftest.err'
9586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); }; } &&
9591 { ac_try='test -s conftest.$ac_objext'
9592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); }; }; then
9599 echo "$as_me: failed program was:" >&5
9600 sed 's/^/| /' conftest.$ac_ext >&5
9602 ac_lo=`expr '(' $ac_mid ')' + 1`
9604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9607 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
9608 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
9609 See \`config.log' for more details." >&5
9610 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
9611 See \`config.log' for more details." >&2;}
9612 { (exit 1); exit 1; }; } ;;
9615 if test "$cross_compiling" = yes; then
9616 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9617 See \`config.log' for more details." >&5
9618 echo "$as_me: error: cannot run test program while cross compiling
9619 See \`config.log' for more details." >&2;}
9620 { (exit 1); exit 1; }; }
9622 cat >conftest.$ac_ext <<_ACEOF
9625 cat confdefs.h >>conftest.$ac_ext
9626 cat >>conftest.$ac_ext <<_ACEOF
9627 /* end confdefs.h. */
9628 $ac_includes_default
9629 long longval () { return (long) (sizeof (unsigned long)); }
9630 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
9637 FILE *f = fopen ("conftest.val", "w");
9640 if (((long) (sizeof (unsigned long))) < 0)
9642 long i = longval ();
9643 if (i != ((long) (sizeof (unsigned long))))
9645 fprintf (f, "%ld\n", i);
9649 unsigned long i = ulongval ();
9650 if (i != ((long) (sizeof (unsigned long))))
9652 fprintf (f, "%lu\n", i);
9654 exit (ferror (f) || fclose (f) != 0);
9660 rm -f conftest$ac_exeext
9661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9662 (eval $ac_link) 2>&5
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); }; }; then
9671 ac_cv_sizeof_unsigned_long=`cat conftest.val`
9673 echo "$as_me: program exited with status $ac_status" >&5
9674 echo "$as_me: failed program was:" >&5
9675 sed 's/^/| /' conftest.$ac_ext >&5
9678 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
9679 See \`config.log' for more details." >&5
9680 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
9681 See \`config.log' for more details." >&2;}
9682 { (exit 1); exit 1; }; }
9684 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9689 ac_cv_sizeof_unsigned_long=0
9692 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
9693 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
9694 cat >>confdefs.h <<_ACEOF
9695 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
9699 cat >conftest.$ac_ext <<_ACEOF
9702 cat confdefs.h >>conftest.$ac_ext
9703 cat >>conftest.$ac_ext <<_ACEOF
9704 /* end confdefs.h. */
9708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9709 $EGREP "int.*sprintf" >/dev/null 2>&1; then
9711 cat >>confdefs.h <<\_ACEOF
9712 #define SPRINTF_RET int
9716 cat >>confdefs.h <<\_ACEOF
9717 #define SPRINTF_RET char *
9723 cat >conftest.$ac_ext <<_ACEOF
9726 cat confdefs.h >>conftest.$ac_ext
9727 cat >>conftest.$ac_ext <<_ACEOF
9728 /* end confdefs.h. */
9729 #include <sys/types.h>
9741 rm -f conftest.$ac_objext
9742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9743 (eval $ac_compile) 2>conftest.er1
9745 grep -v '^ *+' conftest.er1 >conftest.err
9747 cat conftest.err >&5
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); } &&
9750 { ac_try='test -z "$ac_c_werror_flag"
9751 || test ! -s conftest.err'
9752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756 (exit $ac_status); }; } &&
9757 { ac_try='test -s conftest.$ac_objext'
9758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762 (exit $ac_status); }; }; then
9764 cat >>confdefs.h <<\_ACEOF
9765 #define TIME_T_IN_SYS_TYPES_H 1
9769 echo "$as_me: failed program was:" >&5
9770 sed 's/^/| /' conftest.$ac_ext >&5
9773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9774 cat >conftest.$ac_ext <<_ACEOF
9777 cat confdefs.h >>conftest.$ac_ext
9778 cat >>conftest.$ac_ext <<_ACEOF
9779 /* end confdefs.h. */
9792 rm -f conftest.$ac_objext
9793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9794 (eval $ac_compile) 2>conftest.er1
9796 grep -v '^ *+' conftest.er1 >conftest.err
9798 cat conftest.err >&5
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); } &&
9801 { ac_try='test -z "$ac_c_werror_flag"
9802 || test ! -s conftest.err'
9803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); }; } &&
9808 { ac_try='test -s conftest.$ac_objext'
9809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); }; }; then
9815 cat >>confdefs.h <<\_ACEOF
9816 #define HAVE_WCTYPE_T 1
9820 echo "$as_me: failed program was:" >&5
9821 sed 's/^/| /' conftest.$ac_ext >&5
9824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9825 cat >conftest.$ac_ext <<_ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h. */
9843 rm -f conftest.$ac_objext
9844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9845 (eval $ac_compile) 2>conftest.er1
9847 grep -v '^ *+' conftest.er1 >conftest.err
9849 cat conftest.err >&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 (exit $ac_status); } &&
9852 { ac_try='test -z "$ac_c_werror_flag"
9853 || test ! -s conftest.err'
9854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9858 (exit $ac_status); }; } &&
9859 { ac_try='test -s conftest.$ac_objext'
9860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); }; }; then
9866 cat >>confdefs.h <<\_ACEOF
9867 #define HAVE_WINT_T 1
9871 echo "$as_me: failed program was:" >&5
9872 sed 's/^/| /' conftest.$ac_ext >&5
9875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9882 echo "$as_me:$LINENO: checking for socklen_t" >&5
9883 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
9884 if test "${ac_cv_type_socklen_t+set}" = set; then
9885 echo $ECHO_N "(cached) $ECHO_C" >&6
9887 cat >conftest.$ac_ext <<_ACEOF
9890 cat confdefs.h >>conftest.$ac_ext
9891 cat >>conftest.$ac_ext <<_ACEOF
9892 /* end confdefs.h. */
9893 #include <sys/types.h>
9894 #include <sys/socket.h>
9899 if ((socklen_t *) 0)
9901 if (sizeof (socklen_t))
9907 rm -f conftest.$ac_objext
9908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9909 (eval $ac_compile) 2>conftest.er1
9911 grep -v '^ *+' conftest.er1 >conftest.err
9913 cat conftest.err >&5
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); } &&
9916 { ac_try='test -z "$ac_c_werror_flag"
9917 || test ! -s conftest.err'
9918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); }; } &&
9923 { ac_try='test -s conftest.$ac_objext'
9924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9928 (exit $ac_status); }; }; then
9929 ac_cv_type_socklen_t=yes
9931 echo "$as_me: failed program was:" >&5
9932 sed 's/^/| /' conftest.$ac_ext >&5
9934 ac_cv_type_socklen_t=no
9936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9938 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
9939 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
9940 if test $ac_cv_type_socklen_t = yes; then
9944 echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
9945 echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
9946 if test "${rsync_cv_socklen_t_equiv+set}" = set; then
9947 echo $ECHO_N "(cached) $ECHO_C" >&6
9950 # Systems have either "struct sockaddr *" or
9951 # "void *" as the second argument to getpeername
9952 rsync_cv_socklen_t_equiv=
9953 for arg2 in "struct sockaddr" void; do
9954 for t in int size_t unsigned long "unsigned long"; do
9955 cat >conftest.$ac_ext <<_ACEOF
9958 cat confdefs.h >>conftest.$ac_ext
9959 cat >>conftest.$ac_ext <<_ACEOF
9960 /* end confdefs.h. */
9962 #include <sys/types.h>
9963 #include <sys/socket.h>
9965 int getpeername (int, $arg2 *, $t *);
9972 getpeername(0,0,&len);
9978 rm -f conftest.$ac_objext
9979 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9980 (eval $ac_compile) 2>conftest.er1
9982 grep -v '^ *+' conftest.er1 >conftest.err
9984 cat conftest.err >&5
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); } &&
9987 { ac_try='test -z "$ac_c_werror_flag"
9988 || test ! -s conftest.err'
9989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9993 (exit $ac_status); }; } &&
9994 { ac_try='test -s conftest.$ac_objext'
9995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); }; }; then
10001 rsync_cv_socklen_t_equiv="$t"
10005 echo "$as_me: failed program was:" >&5
10006 sed 's/^/| /' conftest.$ac_ext >&5
10009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10013 if test "x$rsync_cv_socklen_t_equiv" = x; then
10014 rsync_cv_socklen_t_equiv=int
10019 echo "$as_me:$LINENO: result: $rsync_cv_socklen_t_equiv" >&5
10020 echo "${ECHO_T}$rsync_cv_socklen_t_equiv" >&6
10022 cat >>confdefs.h <<_ACEOF
10023 #define socklen_t $rsync_cv_socklen_t_equiv
10031 for ac_func in vprintf
10033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10034 echo "$as_me:$LINENO: checking for $ac_func" >&5
10035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10036 if eval "test \"\${$as_ac_var+set}\" = set"; then
10037 echo $ECHO_N "(cached) $ECHO_C" >&6
10039 cat >conftest.$ac_ext <<_ACEOF
10042 cat confdefs.h >>conftest.$ac_ext
10043 cat >>conftest.$ac_ext <<_ACEOF
10044 /* end confdefs.h. */
10045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10047 #define $ac_func innocuous_$ac_func
10049 /* System header to define __stub macros and hopefully few prototypes,
10050 which can conflict with char $ac_func (); below.
10051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10052 <limits.h> exists even on freestanding compilers. */
10055 # include <limits.h>
10057 # include <assert.h>
10062 /* Override any gcc2 internal prototype to avoid an error. */
10067 /* We use char because int might match the return type of a gcc2
10068 builtin and then its argument prototype would still apply. */
10070 /* The GNU C library defines this for functions which it implements
10071 to always fail with ENOSYS. Some functions are actually named
10072 something starting with __ and the normal name is an alias. */
10073 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10076 char (*f) () = $ac_func;
10085 return f != $ac_func;
10090 rm -f conftest.$ac_objext conftest$ac_exeext
10091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10092 (eval $ac_link) 2>conftest.er1
10094 grep -v '^ *+' conftest.er1 >conftest.err
10096 cat conftest.err >&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); } &&
10099 { ac_try='test -z "$ac_c_werror_flag"
10100 || test ! -s conftest.err'
10101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10102 (eval $ac_try) 2>&5
10104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105 (exit $ac_status); }; } &&
10106 { ac_try='test -s conftest$ac_exeext'
10107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108 (eval $ac_try) 2>&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); }; }; then
10112 eval "$as_ac_var=yes"
10114 echo "$as_me: failed program was:" >&5
10115 sed 's/^/| /' conftest.$ac_ext >&5
10117 eval "$as_ac_var=no"
10119 rm -f conftest.err conftest.$ac_objext \
10120 conftest$ac_exeext conftest.$ac_ext
10122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10124 if test `eval echo '${'$as_ac_var'}'` = yes; then
10125 cat >>confdefs.h <<_ACEOF
10126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10129 echo "$as_me:$LINENO: checking for _doprnt" >&5
10130 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
10131 if test "${ac_cv_func__doprnt+set}" = set; then
10132 echo $ECHO_N "(cached) $ECHO_C" >&6
10134 cat >conftest.$ac_ext <<_ACEOF
10137 cat confdefs.h >>conftest.$ac_ext
10138 cat >>conftest.$ac_ext <<_ACEOF
10139 /* end confdefs.h. */
10140 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
10141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10142 #define _doprnt innocuous__doprnt
10144 /* System header to define __stub macros and hopefully few prototypes,
10145 which can conflict with char _doprnt (); below.
10146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10147 <limits.h> exists even on freestanding compilers. */
10150 # include <limits.h>
10152 # include <assert.h>
10157 /* Override any gcc2 internal prototype to avoid an error. */
10162 /* We use char because int might match the return type of a gcc2
10163 builtin and then its argument prototype would still apply. */
10165 /* The GNU C library defines this for functions which it implements
10166 to always fail with ENOSYS. Some functions are actually named
10167 something starting with __ and the normal name is an alias. */
10168 #if defined (__stub__doprnt) || defined (__stub____doprnt)
10171 char (*f) () = _doprnt;
10180 return f != _doprnt;
10185 rm -f conftest.$ac_objext conftest$ac_exeext
10186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10187 (eval $ac_link) 2>conftest.er1
10189 grep -v '^ *+' conftest.er1 >conftest.err
10191 cat conftest.err >&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } &&
10194 { ac_try='test -z "$ac_c_werror_flag"
10195 || test ! -s conftest.err'
10196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197 (eval $ac_try) 2>&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); }; } &&
10201 { ac_try='test -s conftest$ac_exeext'
10202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10203 (eval $ac_try) 2>&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); }; }; then
10207 ac_cv_func__doprnt=yes
10209 echo "$as_me: failed program was:" >&5
10210 sed 's/^/| /' conftest.$ac_ext >&5
10212 ac_cv_func__doprnt=no
10214 rm -f conftest.err conftest.$ac_objext \
10215 conftest$ac_exeext conftest.$ac_ext
10217 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
10218 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
10219 if test $ac_cv_func__doprnt = yes; then
10221 cat >>confdefs.h <<\_ACEOF
10222 #define HAVE_DOPRNT 1
10233 for ac_header in stdlib.h
10235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10237 echo "$as_me:$LINENO: checking for $ac_header" >&5
10238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10240 echo $ECHO_N "(cached) $ECHO_C" >&6
10242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10245 # Is the header compilable?
10246 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10247 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10248 cat >conftest.$ac_ext <<_ACEOF
10251 cat confdefs.h >>conftest.$ac_ext
10252 cat >>conftest.$ac_ext <<_ACEOF
10253 /* end confdefs.h. */
10254 $ac_includes_default
10255 #include <$ac_header>
10257 rm -f conftest.$ac_objext
10258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10259 (eval $ac_compile) 2>conftest.er1
10261 grep -v '^ *+' conftest.er1 >conftest.err
10263 cat conftest.err >&5
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); } &&
10266 { ac_try='test -z "$ac_c_werror_flag"
10267 || test ! -s conftest.err'
10268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10269 (eval $ac_try) 2>&5
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); }; } &&
10273 { ac_try='test -s conftest.$ac_objext'
10274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10275 (eval $ac_try) 2>&5
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); }; }; then
10279 ac_header_compiler=yes
10281 echo "$as_me: failed program was:" >&5
10282 sed 's/^/| /' conftest.$ac_ext >&5
10284 ac_header_compiler=no
10286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10287 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10288 echo "${ECHO_T}$ac_header_compiler" >&6
10290 # Is the header present?
10291 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10292 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10293 cat >conftest.$ac_ext <<_ACEOF
10296 cat confdefs.h >>conftest.$ac_ext
10297 cat >>conftest.$ac_ext <<_ACEOF
10298 /* end confdefs.h. */
10299 #include <$ac_header>
10301 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10304 grep -v '^ *+' conftest.er1 >conftest.err
10306 cat conftest.err >&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); } >/dev/null; then
10309 if test -s conftest.err; then
10310 ac_cpp_err=$ac_c_preproc_warn_flag
10311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10318 if test -z "$ac_cpp_err"; then
10319 ac_header_preproc=yes
10321 echo "$as_me: failed program was:" >&5
10322 sed 's/^/| /' conftest.$ac_ext >&5
10324 ac_header_preproc=no
10326 rm -f conftest.err conftest.$ac_ext
10327 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10328 echo "${ECHO_T}$ac_header_preproc" >&6
10330 # So? What about this header?
10331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10336 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10337 ac_header_preproc=yes
10340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10341 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10343 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10345 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10347 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10351 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10354 ## ------------------------------- ##
10355 ## Report this to bug-gawk@gnu.org ##
10356 ## ------------------------------- ##
10359 sed "s/^/$as_me: WARNING: /" >&2
10362 echo "$as_me:$LINENO: checking for $ac_header" >&5
10363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10365 echo $ECHO_N "(cached) $ECHO_C" >&6
10367 eval "$as_ac_Header=\$ac_header_preproc"
10369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10373 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10374 cat >>confdefs.h <<_ACEOF
10375 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10383 for ac_func in strtod
10385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10386 echo "$as_me:$LINENO: checking for $ac_func" >&5
10387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10388 if eval "test \"\${$as_ac_var+set}\" = set"; then
10389 echo $ECHO_N "(cached) $ECHO_C" >&6
10391 cat >conftest.$ac_ext <<_ACEOF
10394 cat confdefs.h >>conftest.$ac_ext
10395 cat >>conftest.$ac_ext <<_ACEOF
10396 /* end confdefs.h. */
10397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10399 #define $ac_func innocuous_$ac_func
10401 /* System header to define __stub macros and hopefully few prototypes,
10402 which can conflict with char $ac_func (); below.
10403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10404 <limits.h> exists even on freestanding compilers. */
10407 # include <limits.h>
10409 # include <assert.h>
10414 /* Override any gcc2 internal prototype to avoid an error. */
10419 /* We use char because int might match the return type of a gcc2
10420 builtin and then its argument prototype would still apply. */
10422 /* The GNU C library defines this for functions which it implements
10423 to always fail with ENOSYS. Some functions are actually named
10424 something starting with __ and the normal name is an alias. */
10425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10428 char (*f) () = $ac_func;
10437 return f != $ac_func;
10442 rm -f conftest.$ac_objext conftest$ac_exeext
10443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10444 (eval $ac_link) 2>conftest.er1
10446 grep -v '^ *+' conftest.er1 >conftest.err
10448 cat conftest.err >&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } &&
10451 { ac_try='test -z "$ac_c_werror_flag"
10452 || test ! -s conftest.err'
10453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10454 (eval $ac_try) 2>&5
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); }; } &&
10458 { ac_try='test -s conftest$ac_exeext'
10459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10460 (eval $ac_try) 2>&5
10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10463 (exit $ac_status); }; }; then
10464 eval "$as_ac_var=yes"
10466 echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10469 eval "$as_ac_var=no"
10471 rm -f conftest.err conftest.$ac_objext \
10472 conftest$ac_exeext conftest.$ac_ext
10474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10475 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10476 if test `eval echo '${'$as_ac_var'}'` = yes; then
10477 cat >>confdefs.h <<_ACEOF
10478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10484 echo "$as_me:$LINENO: checking for strtod with C89 semantics" >&5
10485 echo $ECHO_N "checking for strtod with C89 semantics... $ECHO_C" >&6
10486 if test "${gawk_ac_cv_func_strtod_c89+set}" = set; then
10487 echo $ECHO_N "(cached) $ECHO_C" >&6
10489 if test "$cross_compiling" = yes; then
10490 gawk_ac_cv_func_strtod_c89=no
10492 cat >conftest.$ac_ext <<_ACEOF
10495 cat confdefs.h >>conftest.$ac_ext
10496 cat >>conftest.$ac_ext <<_ACEOF
10497 /* end confdefs.h. */
10498 /* Test program from Arnold Robbins (arnold@skeeve.com) */
10500 #include <stdlib.h>
10502 extern double strtod();
10512 char *str = "0x345a";
10514 d = strtod(str, 0);
10522 rm -f conftest$ac_exeext
10523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10524 (eval $ac_link) 2>&5
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10529 (eval $ac_try) 2>&5
10531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10532 (exit $ac_status); }; }; then
10533 gawk_ac_cv_func_strtod_c89=yes
10535 echo "$as_me: program exited with status $ac_status" >&5
10536 echo "$as_me: failed program was:" >&5
10537 sed 's/^/| /' conftest.$ac_ext >&5
10539 ( exit $ac_status )
10540 gawk_ac_cv_func_strtod_c89=no
10542 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10545 echo "$as_me:$LINENO: result: $gawk_ac_cv_func_strtod_c89" >&5
10546 echo "${ECHO_T}$gawk_ac_cv_func_strtod_c89" >&6
10547 if test $gawk_ac_cv_func_strtod_c89 = no; then
10549 cat >>confdefs.h <<\_ACEOF
10550 #define STRTOD_NOT_C89 1
10558 for ac_header in stdlib.h sys/time.h unistd.h
10560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10562 echo "$as_me:$LINENO: checking for $ac_header" >&5
10563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10565 echo $ECHO_N "(cached) $ECHO_C" >&6
10567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10570 # Is the header compilable?
10571 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10573 cat >conftest.$ac_ext <<_ACEOF
10576 cat confdefs.h >>conftest.$ac_ext
10577 cat >>conftest.$ac_ext <<_ACEOF
10578 /* end confdefs.h. */
10579 $ac_includes_default
10580 #include <$ac_header>
10582 rm -f conftest.$ac_objext
10583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10584 (eval $ac_compile) 2>conftest.er1
10586 grep -v '^ *+' conftest.er1 >conftest.err
10588 cat conftest.err >&5
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); } &&
10591 { ac_try='test -z "$ac_c_werror_flag"
10592 || test ! -s conftest.err'
10593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10594 (eval $ac_try) 2>&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); }; } &&
10598 { ac_try='test -s conftest.$ac_objext'
10599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10600 (eval $ac_try) 2>&5
10602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603 (exit $ac_status); }; }; then
10604 ac_header_compiler=yes
10606 echo "$as_me: failed program was:" >&5
10607 sed 's/^/| /' conftest.$ac_ext >&5
10609 ac_header_compiler=no
10611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10612 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10613 echo "${ECHO_T}$ac_header_compiler" >&6
10615 # Is the header present?
10616 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10618 cat >conftest.$ac_ext <<_ACEOF
10621 cat confdefs.h >>conftest.$ac_ext
10622 cat >>conftest.$ac_ext <<_ACEOF
10623 /* end confdefs.h. */
10624 #include <$ac_header>
10626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10627 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10629 grep -v '^ *+' conftest.er1 >conftest.err
10631 cat conftest.err >&5
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); } >/dev/null; then
10634 if test -s conftest.err; then
10635 ac_cpp_err=$ac_c_preproc_warn_flag
10636 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10643 if test -z "$ac_cpp_err"; then
10644 ac_header_preproc=yes
10646 echo "$as_me: failed program was:" >&5
10647 sed 's/^/| /' conftest.$ac_ext >&5
10649 ac_header_preproc=no
10651 rm -f conftest.err conftest.$ac_ext
10652 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10653 echo "${ECHO_T}$ac_header_preproc" >&6
10655 # So? What about this header?
10656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10658 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10662 ac_header_preproc=yes
10665 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10667 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10668 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10669 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10671 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10672 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10675 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10679 ## ------------------------------- ##
10680 ## Report this to bug-gawk@gnu.org ##
10681 ## ------------------------------- ##
10684 sed "s/^/$as_me: WARNING: /" >&2
10687 echo "$as_me:$LINENO: checking for $ac_header" >&5
10688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10689 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10690 echo $ECHO_N "(cached) $ECHO_C" >&6
10692 eval "$as_ac_Header=\$ac_header_preproc"
10694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10695 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10699 cat >>confdefs.h <<_ACEOF
10700 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10708 for ac_func in alarm
10710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10711 echo "$as_me:$LINENO: checking for $ac_func" >&5
10712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10713 if eval "test \"\${$as_ac_var+set}\" = set"; then
10714 echo $ECHO_N "(cached) $ECHO_C" >&6
10716 cat >conftest.$ac_ext <<_ACEOF
10719 cat confdefs.h >>conftest.$ac_ext
10720 cat >>conftest.$ac_ext <<_ACEOF
10721 /* end confdefs.h. */
10722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10724 #define $ac_func innocuous_$ac_func
10726 /* System header to define __stub macros and hopefully few prototypes,
10727 which can conflict with char $ac_func (); below.
10728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10729 <limits.h> exists even on freestanding compilers. */
10732 # include <limits.h>
10734 # include <assert.h>
10739 /* Override any gcc2 internal prototype to avoid an error. */
10744 /* We use char because int might match the return type of a gcc2
10745 builtin and then its argument prototype would still apply. */
10747 /* The GNU C library defines this for functions which it implements
10748 to always fail with ENOSYS. Some functions are actually named
10749 something starting with __ and the normal name is an alias. */
10750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10753 char (*f) () = $ac_func;
10762 return f != $ac_func;
10767 rm -f conftest.$ac_objext conftest$ac_exeext
10768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10769 (eval $ac_link) 2>conftest.er1
10771 grep -v '^ *+' conftest.er1 >conftest.err
10773 cat conftest.err >&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); } &&
10776 { ac_try='test -z "$ac_c_werror_flag"
10777 || test ! -s conftest.err'
10778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779 (eval $ac_try) 2>&5
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); }; } &&
10783 { ac_try='test -s conftest$ac_exeext'
10784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10785 (eval $ac_try) 2>&5
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); }; }; then
10789 eval "$as_ac_var=yes"
10791 echo "$as_me: failed program was:" >&5
10792 sed 's/^/| /' conftest.$ac_ext >&5
10794 eval "$as_ac_var=no"
10796 rm -f conftest.err conftest.$ac_objext \
10797 conftest$ac_exeext conftest.$ac_ext
10799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10800 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10801 if test `eval echo '${'$as_ac_var'}'` = yes; then
10802 cat >>confdefs.h <<_ACEOF
10803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10809 echo "$as_me:$LINENO: checking for working mktime" >&5
10810 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
10811 if test "${ac_cv_func_working_mktime+set}" = set; then
10812 echo $ECHO_N "(cached) $ECHO_C" >&6
10814 if test "$cross_compiling" = yes; then
10815 ac_cv_func_working_mktime=no
10817 cat >conftest.$ac_ext <<_ACEOF
10820 cat confdefs.h >>conftest.$ac_ext
10821 cat >>conftest.$ac_ext <<_ACEOF
10822 /* end confdefs.h. */
10823 /* Test program from Paul Eggert and Tony Leneis. */
10824 #if TIME_WITH_SYS_TIME
10825 # include <sys/time.h>
10828 # if HAVE_SYS_TIME_H
10829 # include <sys/time.h>
10836 # include <stdlib.h>
10840 # include <unistd.h>
10844 # define alarm(X) /* empty */
10847 /* Work around redefinition to rpl_putenv by other config tests. */
10850 static time_t time_t_max;
10851 static time_t time_t_min;
10853 /* Values we'll use to set the TZ environment variable. */
10854 static char *tz_strings[] = {
10855 (char *) 0, "TZ=GMT0", "TZ=JST-9",
10856 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
10858 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
10860 /* Fail if mktime fails to convert a date in the spring-forward gap.
10861 Based on a problem report from Andreas Jaeger. */
10863 spring_forward_gap ()
10865 /* glibc (up to about 1998-10-07) failed this test. */
10868 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
10869 instead of "TZ=America/Vancouver" in order to detect the bug even
10870 on systems that don't support the Olson extension, or don't have the
10871 full zoneinfo tables installed. */
10872 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
10881 if (mktime (&tm) == (time_t)-1)
10890 if ((lt = localtime (&now)) && mktime (lt) != now)
10898 mktime_test1 (now);
10899 mktime_test1 ((time_t) (time_t_max - now));
10900 mktime_test1 ((time_t) (time_t_min + now));
10906 /* Based on code from Ariel Faigon. */
10916 if (tm.tm_mon != 2 || tm.tm_mday != 31)
10926 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
10927 now = mktime (&tm);
10928 if (now != (time_t) -1)
10930 struct tm *lt = localtime (&now);
10932 && lt->tm_year == tm.tm_year
10933 && lt->tm_mon == tm.tm_mon
10934 && lt->tm_mday == tm.tm_mday
10935 && lt->tm_hour == tm.tm_hour
10936 && lt->tm_min == tm.tm_min
10937 && lt->tm_sec == tm.tm_sec
10938 && lt->tm_yday == tm.tm_yday
10939 && lt->tm_wday == tm.tm_wday
10940 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
10941 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
10952 /* This test makes some buggy mktime implementations loop.
10953 Give up after 60 seconds; a mktime slower than that
10954 isn't worth using anyway. */
10957 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
10960 if ((time_t) -1 < 0)
10961 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
10963 delta = time_t_max / 997; /* a suitable prime number */
10964 for (i = 0; i < N_STRINGS; i++)
10967 putenv (tz_strings[i]);
10969 for (t = 0; t <= time_t_max - delta; t += delta)
10971 mktime_test ((time_t) 1);
10972 mktime_test ((time_t) (60 * 60));
10973 mktime_test ((time_t) (60 * 60 * 24));
10975 for (j = 1; 0 < j; j *= 2)
10977 bigtime_test (j - 1);
10980 spring_forward_gap ();
10984 rm -f conftest$ac_exeext
10985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10986 (eval $ac_link) 2>&5
10988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10991 (eval $ac_try) 2>&5
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); }; }; then
10995 ac_cv_func_working_mktime=yes
10997 echo "$as_me: program exited with status $ac_status" >&5
10998 echo "$as_me: failed program was:" >&5
10999 sed 's/^/| /' conftest.$ac_ext >&5
11001 ( exit $ac_status )
11002 ac_cv_func_working_mktime=no
11004 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11007 echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11008 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
11009 if test $ac_cv_func_working_mktime = no; then
11011 "mktime.$ac_objext" | \
11012 *" mktime.$ac_objext" | \
11013 "mktime.$ac_objext "* | \
11014 *" mktime.$ac_objext "* ) ;;
11015 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
11020 case "$ac_cv_func_working_mktime" in
11022 cat >>confdefs.h <<\_ACEOF
11023 #define HAVE_MKTIME 1
11030 echo "$as_me:$LINENO: checking for fmod in -lm" >&5
11031 echo $ECHO_N "checking for fmod in -lm... $ECHO_C" >&6
11032 if test "${ac_cv_lib_m_fmod+set}" = set; then
11033 echo $ECHO_N "(cached) $ECHO_C" >&6
11035 ac_check_lib_save_LIBS=$LIBS
11037 cat >conftest.$ac_ext <<_ACEOF
11040 cat confdefs.h >>conftest.$ac_ext
11041 cat >>conftest.$ac_ext <<_ACEOF
11042 /* end confdefs.h. */
11044 /* Override any gcc2 internal prototype to avoid an error. */
11048 /* We use char because int might match the return type of a gcc2
11049 builtin and then its argument prototype would still apply. */
11059 rm -f conftest.$ac_objext conftest$ac_exeext
11060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11061 (eval $ac_link) 2>conftest.er1
11063 grep -v '^ *+' conftest.er1 >conftest.err
11065 cat conftest.err >&5
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); } &&
11068 { ac_try='test -z "$ac_c_werror_flag"
11069 || test ! -s conftest.err'
11070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11071 (eval $ac_try) 2>&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); }; } &&
11075 { ac_try='test -s conftest$ac_exeext'
11076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11077 (eval $ac_try) 2>&5
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); }; }; then
11081 ac_cv_lib_m_fmod=yes
11083 echo "$as_me: failed program was:" >&5
11084 sed 's/^/| /' conftest.$ac_ext >&5
11086 ac_cv_lib_m_fmod=no
11088 rm -f conftest.err conftest.$ac_objext \
11089 conftest$ac_exeext conftest.$ac_ext
11090 LIBS=$ac_check_lib_save_LIBS
11092 echo "$as_me:$LINENO: result: $ac_cv_lib_m_fmod" >&5
11093 echo "${ECHO_T}$ac_cv_lib_m_fmod" >&6
11094 if test $ac_cv_lib_m_fmod = yes; then
11095 cat >>confdefs.h <<_ACEOF
11096 #define HAVE_LIBM 1
11133 for ac_func in fmod getgrent getgroups grantpt iswctype mbrlen \
11134 memcmp memcpy memmove memset setlocale snprintf strchr \
11135 strerror strftime strncasecmp strtod strtoul system tzset \
11137 iswlower iswupper towlower towupper \
11138 wcrtomb wcscoll wcscoll wctype
11140 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11141 echo "$as_me:$LINENO: checking for $ac_func" >&5
11142 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11143 if eval "test \"\${$as_ac_var+set}\" = set"; then
11144 echo $ECHO_N "(cached) $ECHO_C" >&6
11146 cat >conftest.$ac_ext <<_ACEOF
11149 cat confdefs.h >>conftest.$ac_ext
11150 cat >>conftest.$ac_ext <<_ACEOF
11151 /* end confdefs.h. */
11152 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11154 #define $ac_func innocuous_$ac_func
11156 /* System header to define __stub macros and hopefully few prototypes,
11157 which can conflict with char $ac_func (); below.
11158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11159 <limits.h> exists even on freestanding compilers. */
11162 # include <limits.h>
11164 # include <assert.h>
11169 /* Override any gcc2 internal prototype to avoid an error. */
11174 /* We use char because int might match the return type of a gcc2
11175 builtin and then its argument prototype would still apply. */
11177 /* The GNU C library defines this for functions which it implements
11178 to always fail with ENOSYS. Some functions are actually named
11179 something starting with __ and the normal name is an alias. */
11180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11183 char (*f) () = $ac_func;
11192 return f != $ac_func;
11197 rm -f conftest.$ac_objext conftest$ac_exeext
11198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11199 (eval $ac_link) 2>conftest.er1
11201 grep -v '^ *+' conftest.er1 >conftest.err
11203 cat conftest.err >&5
11204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); } &&
11206 { ac_try='test -z "$ac_c_werror_flag"
11207 || test ! -s conftest.err'
11208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11209 (eval $ac_try) 2>&5
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); }; } &&
11213 { ac_try='test -s conftest$ac_exeext'
11214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11215 (eval $ac_try) 2>&5
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); }; }; then
11219 eval "$as_ac_var=yes"
11221 echo "$as_me: failed program was:" >&5
11222 sed 's/^/| /' conftest.$ac_ext >&5
11224 eval "$as_ac_var=no"
11226 rm -f conftest.err conftest.$ac_objext \
11227 conftest$ac_exeext conftest.$ac_ext
11229 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11230 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11231 if test `eval echo '${'$as_ac_var'}'` = yes; then
11232 cat >>confdefs.h <<_ACEOF
11233 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11240 echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
11241 echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6
11242 if test "${ac_cv_func_mbrtowc+set}" = set; then
11243 echo $ECHO_N "(cached) $ECHO_C" >&6
11245 cat >conftest.$ac_ext <<_ACEOF
11248 cat confdefs.h >>conftest.$ac_ext
11249 cat >>conftest.$ac_ext <<_ACEOF
11250 /* end confdefs.h. */
11255 mbstate_t state; return ! (sizeof state && mbrtowc);
11260 rm -f conftest.$ac_objext conftest$ac_exeext
11261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11262 (eval $ac_link) 2>conftest.er1
11264 grep -v '^ *+' conftest.er1 >conftest.err
11266 cat conftest.err >&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } &&
11269 { ac_try='test -z "$ac_c_werror_flag"
11270 || test ! -s conftest.err'
11271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11272 (eval $ac_try) 2>&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; } &&
11276 { ac_try='test -s conftest$ac_exeext'
11277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11278 (eval $ac_try) 2>&5
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); }; }; then
11282 ac_cv_func_mbrtowc=yes
11284 echo "$as_me: failed program was:" >&5
11285 sed 's/^/| /' conftest.$ac_ext >&5
11287 ac_cv_func_mbrtowc=no
11289 rm -f conftest.err conftest.$ac_objext \
11290 conftest$ac_exeext conftest.$ac_ext
11292 echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
11293 echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6
11294 if test $ac_cv_func_mbrtowc = yes; then
11296 cat >>confdefs.h <<\_ACEOF
11297 #define HAVE_MBRTOWC 1
11303 if test "${ac_cv_header_dlfcn_h+set}" = set; then
11304 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
11305 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
11306 if test "${ac_cv_header_dlfcn_h+set}" = set; then
11307 echo $ECHO_N "(cached) $ECHO_C" >&6
11309 echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
11310 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
11312 # Is the header compilable?
11313 echo "$as_me:$LINENO: checking dlfcn.h usability" >&5
11314 echo $ECHO_N "checking dlfcn.h usability... $ECHO_C" >&6
11315 cat >conftest.$ac_ext <<_ACEOF
11318 cat confdefs.h >>conftest.$ac_ext
11319 cat >>conftest.$ac_ext <<_ACEOF
11320 /* end confdefs.h. */
11321 $ac_includes_default
11324 rm -f conftest.$ac_objext
11325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11326 (eval $ac_compile) 2>conftest.er1
11328 grep -v '^ *+' conftest.er1 >conftest.err
11330 cat conftest.err >&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); } &&
11333 { ac_try='test -z "$ac_c_werror_flag"
11334 || test ! -s conftest.err'
11335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11336 (eval $ac_try) 2>&5
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); }; } &&
11340 { ac_try='test -s conftest.$ac_objext'
11341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11342 (eval $ac_try) 2>&5
11344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11345 (exit $ac_status); }; }; then
11346 ac_header_compiler=yes
11348 echo "$as_me: failed program was:" >&5
11349 sed 's/^/| /' conftest.$ac_ext >&5
11351 ac_header_compiler=no
11353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11354 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11355 echo "${ECHO_T}$ac_header_compiler" >&6
11357 # Is the header present?
11358 echo "$as_me:$LINENO: checking dlfcn.h presence" >&5
11359 echo $ECHO_N "checking dlfcn.h presence... $ECHO_C" >&6
11360 cat >conftest.$ac_ext <<_ACEOF
11363 cat confdefs.h >>conftest.$ac_ext
11364 cat >>conftest.$ac_ext <<_ACEOF
11365 /* end confdefs.h. */
11368 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11371 grep -v '^ *+' conftest.er1 >conftest.err
11373 cat conftest.err >&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } >/dev/null; then
11376 if test -s conftest.err; then
11377 ac_cpp_err=$ac_c_preproc_warn_flag
11378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11385 if test -z "$ac_cpp_err"; then
11386 ac_header_preproc=yes
11388 echo "$as_me: failed program was:" >&5
11389 sed 's/^/| /' conftest.$ac_ext >&5
11391 ac_header_preproc=no
11393 rm -f conftest.err conftest.$ac_ext
11394 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11395 echo "${ECHO_T}$ac_header_preproc" >&6
11397 # So? What about this header?
11398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11400 { echo "$as_me:$LINENO: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&5
11401 echo "$as_me: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11402 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the compiler's result" >&5
11403 echo "$as_me: WARNING: dlfcn.h: proceeding with the compiler's result" >&2;}
11404 ac_header_preproc=yes
11407 { echo "$as_me:$LINENO: WARNING: dlfcn.h: present but cannot be compiled" >&5
11408 echo "$as_me: WARNING: dlfcn.h: present but cannot be compiled" >&2;}
11409 { echo "$as_me:$LINENO: WARNING: dlfcn.h: check for missing prerequisite headers?" >&5
11410 echo "$as_me: WARNING: dlfcn.h: check for missing prerequisite headers?" >&2;}
11411 { echo "$as_me:$LINENO: WARNING: dlfcn.h: see the Autoconf documentation" >&5
11412 echo "$as_me: WARNING: dlfcn.h: see the Autoconf documentation" >&2;}
11413 { echo "$as_me:$LINENO: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&5
11414 echo "$as_me: WARNING: dlfcn.h: section \"Present But Cannot Be Compiled\"" >&2;}
11415 { echo "$as_me:$LINENO: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&5
11416 echo "$as_me: WARNING: dlfcn.h: proceeding with the preprocessor's result" >&2;}
11417 { echo "$as_me:$LINENO: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&5
11418 echo "$as_me: WARNING: dlfcn.h: in the future, the compiler will take precedence" >&2;}
11421 ## ------------------------------- ##
11422 ## Report this to bug-gawk@gnu.org ##
11423 ## ------------------------------- ##
11426 sed "s/^/$as_me: WARNING: /" >&2
11429 echo "$as_me:$LINENO: checking for dlfcn.h" >&5
11430 echo $ECHO_N "checking for dlfcn.h... $ECHO_C" >&6
11431 if test "${ac_cv_header_dlfcn_h+set}" = set; then
11432 echo $ECHO_N "(cached) $ECHO_C" >&6
11434 ac_cv_header_dlfcn_h=$ac_header_preproc
11436 echo "$as_me:$LINENO: result: $ac_cv_header_dlfcn_h" >&5
11437 echo "${ECHO_T}$ac_cv_header_dlfcn_h" >&6
11440 if test $ac_cv_header_dlfcn_h = yes; then
11442 cat >>confdefs.h <<\_ACEOF
11446 if test "$GCC" = yes
11448 # Add others here as appropriate,
11449 # one day use GNU libtool.
11450 if uname | $EGREP -i 'linux|freebsd|cygwin' > /dev/null
11452 LDFLAGS="$LDFLAGS -export-dynamic"
11456 # Check this separately. Some systems have dlopen
11457 # in libc. Notably freebsd and cygwin.
11459 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11460 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11461 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11462 echo $ECHO_N "(cached) $ECHO_C" >&6
11464 ac_check_lib_save_LIBS=$LIBS
11466 cat >conftest.$ac_ext <<_ACEOF
11469 cat confdefs.h >>conftest.$ac_ext
11470 cat >>conftest.$ac_ext <<_ACEOF
11471 /* end confdefs.h. */
11473 /* Override any gcc2 internal prototype to avoid an error. */
11477 /* We use char because int might match the return type of a gcc2
11478 builtin and then its argument prototype would still apply. */
11488 rm -f conftest.$ac_objext conftest$ac_exeext
11489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11490 (eval $ac_link) 2>conftest.er1
11492 grep -v '^ *+' conftest.er1 >conftest.err
11494 cat conftest.err >&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); } &&
11497 { ac_try='test -z "$ac_c_werror_flag"
11498 || test ! -s conftest.err'
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; } &&
11504 { ac_try='test -s conftest$ac_exeext'
11505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11506 (eval $ac_try) 2>&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); }; }; then
11510 ac_cv_lib_dl_dlopen=yes
11512 echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11515 ac_cv_lib_dl_dlopen=no
11517 rm -f conftest.err conftest.$ac_objext \
11518 conftest$ac_exeext conftest.$ac_ext
11519 LIBS=$ac_check_lib_save_LIBS
11521 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11522 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11523 if test $ac_cv_lib_dl_dlopen = yes; then
11524 cat >>confdefs.h <<_ACEOF
11525 #define HAVE_LIBDL 1
11537 case `(uname) 2> /dev/null` in
11538 *VMS*|*BeOS*|*OS/2*|*MS-DOS*)
11540 cat >>confdefs.h <<\_ACEOF
11541 #define GETPGRP_VOID 1
11545 *) echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
11546 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6
11547 if test "${ac_cv_func_getpgrp_void+set}" = set; then
11548 echo $ECHO_N "(cached) $ECHO_C" >&6
11550 # Use it with a single arg.
11551 cat >conftest.$ac_ext <<_ACEOF
11554 cat confdefs.h >>conftest.$ac_ext
11555 cat >>conftest.$ac_ext <<_ACEOF
11556 /* end confdefs.h. */
11557 $ac_includes_default
11566 rm -f conftest.$ac_objext
11567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11568 (eval $ac_compile) 2>conftest.er1
11570 grep -v '^ *+' conftest.er1 >conftest.err
11572 cat conftest.err >&5
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); } &&
11575 { ac_try='test -z "$ac_c_werror_flag"
11576 || test ! -s conftest.err'
11577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11578 (eval $ac_try) 2>&5
11580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); }; } &&
11582 { ac_try='test -s conftest.$ac_objext'
11583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11584 (eval $ac_try) 2>&5
11586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11587 (exit $ac_status); }; }; then
11588 ac_cv_func_getpgrp_void=no
11590 echo "$as_me: failed program was:" >&5
11591 sed 's/^/| /' conftest.$ac_ext >&5
11593 ac_cv_func_getpgrp_void=yes
11595 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11598 echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
11599 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6
11600 if test $ac_cv_func_getpgrp_void = yes; then
11602 cat >>confdefs.h <<\_ACEOF
11603 #define GETPGRP_VOID 1
11611 echo "$as_me:$LINENO: checking for printf %F format" >&5
11612 echo $ECHO_N "checking for printf %F format... $ECHO_C" >&6
11613 if test "$cross_compiling" = yes; then
11616 cat >conftest.$ac_ext <<_ACEOF
11624 sprintf(buf, "%F", 123.45);
11626 if (strcmp(buf, "123.450000") == 0)
11633 rm -f conftest$ac_exeext
11634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11635 (eval $ac_link) 2>&5
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11640 (eval $ac_try) 2>&5
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); }; }; then
11646 echo "$as_me: program exited with status $ac_status" >&5
11647 echo "$as_me: failed program was:" >&5
11648 sed 's/^/| /' conftest.$ac_ext >&5
11650 ( exit $ac_status )
11653 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11655 if test "$has_f_format" = yes; then
11657 cat >>confdefs.h <<\_ACEOF
11658 #define PRINTF_HAS_F_FORMAT 1
11662 echo "$as_me:$LINENO: result: $has_f_format" >&5
11663 echo "${ECHO_T}$has_f_format" >&6
11666 gawk_have_sockets=no
11667 # Check for system-dependent location of socket libraries
11670 if test "$ISC" = yes; then
11671 SOCKET_LIBS="-lnsl_s -linet"
11673 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
11674 # libraries were built with DECnet support. And karl@cs.umb.edu says
11675 # the Alpha needs dnet_stub (dnet does not exist).
11677 # ADR: Is this needed just for sockets???
11678 # AC_CHECK_LIB(dnet, dnet_ntoa, [SOCKET_LIBS="$SOCKET_LIBS -ldnet"])
11679 # if test $ac_cv_lib_dnet_ntoa = no; then
11680 # AC_CHECK_LIB(dnet_stub, dnet_ntoa,
11681 # [SOCKET_LIBS="$SOCKET_LIBS -ldnet_stub"])
11684 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
11685 # to get the SysV transport functions.
11686 # chad@anasazi.com says the Pyramid MIS-ES running DC/OSx (SVR4)
11688 # The nsl library prevents programs from opening the X display
11689 # on Irix 5.2, according to dickey@clark.net.
11690 echo "$as_me:$LINENO: checking for gethostbyname" >&5
11691 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
11692 if test "${ac_cv_func_gethostbyname+set}" = set; then
11693 echo $ECHO_N "(cached) $ECHO_C" >&6
11695 cat >conftest.$ac_ext <<_ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h. */
11701 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
11702 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11703 #define gethostbyname innocuous_gethostbyname
11705 /* System header to define __stub macros and hopefully few prototypes,
11706 which can conflict with char gethostbyname (); below.
11707 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11708 <limits.h> exists even on freestanding compilers. */
11711 # include <limits.h>
11713 # include <assert.h>
11716 #undef gethostbyname
11718 /* Override any gcc2 internal prototype to avoid an error. */
11723 /* We use char because int might match the return type of a gcc2
11724 builtin and then its argument prototype would still apply. */
11725 char gethostbyname ();
11726 /* The GNU C library defines this for functions which it implements
11727 to always fail with ENOSYS. Some functions are actually named
11728 something starting with __ and the normal name is an alias. */
11729 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
11732 char (*f) () = gethostbyname;
11741 return f != gethostbyname;
11746 rm -f conftest.$ac_objext conftest$ac_exeext
11747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11748 (eval $ac_link) 2>conftest.er1
11750 grep -v '^ *+' conftest.er1 >conftest.err
11752 cat conftest.err >&5
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); } &&
11755 { ac_try='test -z "$ac_c_werror_flag"
11756 || test ! -s conftest.err'
11757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11758 (eval $ac_try) 2>&5
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); }; } &&
11762 { ac_try='test -s conftest$ac_exeext'
11763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11764 (eval $ac_try) 2>&5
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); }; }; then
11768 ac_cv_func_gethostbyname=yes
11770 echo "$as_me: failed program was:" >&5
11771 sed 's/^/| /' conftest.$ac_ext >&5
11773 ac_cv_func_gethostbyname=no
11775 rm -f conftest.err conftest.$ac_objext \
11776 conftest$ac_exeext conftest.$ac_ext
11778 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
11779 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
11781 if test $ac_cv_func_gethostbyname = no; then
11782 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
11783 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
11784 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
11785 echo $ECHO_N "(cached) $ECHO_C" >&6
11787 ac_check_lib_save_LIBS=$LIBS
11789 cat >conftest.$ac_ext <<_ACEOF
11792 cat confdefs.h >>conftest.$ac_ext
11793 cat >>conftest.$ac_ext <<_ACEOF
11794 /* end confdefs.h. */
11796 /* Override any gcc2 internal prototype to avoid an error. */
11800 /* We use char because int might match the return type of a gcc2
11801 builtin and then its argument prototype would still apply. */
11802 char gethostbyname ();
11811 rm -f conftest.$ac_objext conftest$ac_exeext
11812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11813 (eval $ac_link) 2>conftest.er1
11815 grep -v '^ *+' conftest.er1 >conftest.err
11817 cat conftest.err >&5
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 (exit $ac_status); } &&
11820 { ac_try='test -z "$ac_c_werror_flag"
11821 || test ! -s conftest.err'
11822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11823 (eval $ac_try) 2>&5
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); }; } &&
11827 { ac_try='test -s conftest$ac_exeext'
11828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11829 (eval $ac_try) 2>&5
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); }; }; then
11833 ac_cv_lib_nsl_gethostbyname=yes
11835 echo "$as_me: failed program was:" >&5
11836 sed 's/^/| /' conftest.$ac_ext >&5
11838 ac_cv_lib_nsl_gethostbyname=no
11840 rm -f conftest.err conftest.$ac_objext \
11841 conftest$ac_exeext conftest.$ac_ext
11842 LIBS=$ac_check_lib_save_LIBS
11844 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
11845 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
11846 if test $ac_cv_lib_nsl_gethostbyname = yes; then
11847 SOCKET_LIBS="$SOCKET_LIBS -lnsl"
11852 # lieder@skyler.mavd.honeywell.com says without -lsocket,
11853 # socket/setsockopt and other routines are undefined under SCO ODT
11854 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
11855 # on later versions), says simon@lia.di.epfl.ch: it contains
11856 # gethostby* variants that don't use the nameserver (or something).
11857 # -lsocket must be given before -lnsl if both are needed.
11858 # We assume that if connect needs -lnsl, so does gethostbyname.
11859 echo "$as_me:$LINENO: checking for connect" >&5
11860 echo $ECHO_N "checking for connect... $ECHO_C" >&6
11861 if test "${ac_cv_func_connect+set}" = set; then
11862 echo $ECHO_N "(cached) $ECHO_C" >&6
11864 cat >conftest.$ac_ext <<_ACEOF
11867 cat confdefs.h >>conftest.$ac_ext
11868 cat >>conftest.$ac_ext <<_ACEOF
11869 /* end confdefs.h. */
11870 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
11871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11872 #define connect innocuous_connect
11874 /* System header to define __stub macros and hopefully few prototypes,
11875 which can conflict with char connect (); below.
11876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11877 <limits.h> exists even on freestanding compilers. */
11880 # include <limits.h>
11882 # include <assert.h>
11887 /* Override any gcc2 internal prototype to avoid an error. */
11892 /* We use char because int might match the return type of a gcc2
11893 builtin and then its argument prototype would still apply. */
11895 /* The GNU C library defines this for functions which it implements
11896 to always fail with ENOSYS. Some functions are actually named
11897 something starting with __ and the normal name is an alias. */
11898 #if defined (__stub_connect) || defined (__stub___connect)
11901 char (*f) () = connect;
11910 return f != connect;
11915 rm -f conftest.$ac_objext conftest$ac_exeext
11916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11917 (eval $ac_link) 2>conftest.er1
11919 grep -v '^ *+' conftest.er1 >conftest.err
11921 cat conftest.err >&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); } &&
11924 { ac_try='test -z "$ac_c_werror_flag"
11925 || test ! -s conftest.err'
11926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11927 (eval $ac_try) 2>&5
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); }; } &&
11931 { ac_try='test -s conftest$ac_exeext'
11932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11933 (eval $ac_try) 2>&5
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); }; }; then
11937 ac_cv_func_connect=yes
11939 echo "$as_me: failed program was:" >&5
11940 sed 's/^/| /' conftest.$ac_ext >&5
11942 ac_cv_func_connect=no
11944 rm -f conftest.err conftest.$ac_objext \
11945 conftest$ac_exeext conftest.$ac_ext
11947 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
11948 echo "${ECHO_T}$ac_cv_func_connect" >&6
11950 if test $ac_cv_func_connect = no; then
11951 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
11952 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
11953 if test "${ac_cv_lib_socket_connect+set}" = set; then
11954 echo $ECHO_N "(cached) $ECHO_C" >&6
11956 ac_check_lib_save_LIBS=$LIBS
11957 LIBS="-lsocket $SOCKET_LIBS $LIBS"
11958 cat >conftest.$ac_ext <<_ACEOF
11961 cat confdefs.h >>conftest.$ac_ext
11962 cat >>conftest.$ac_ext <<_ACEOF
11963 /* end confdefs.h. */
11965 /* Override any gcc2 internal prototype to avoid an error. */
11969 /* We use char because int might match the return type of a gcc2
11970 builtin and then its argument prototype would still apply. */
11980 rm -f conftest.$ac_objext conftest$ac_exeext
11981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11982 (eval $ac_link) 2>conftest.er1
11984 grep -v '^ *+' conftest.er1 >conftest.err
11986 cat conftest.err >&5
11987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11988 (exit $ac_status); } &&
11989 { ac_try='test -z "$ac_c_werror_flag"
11990 || test ! -s conftest.err'
11991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11992 (eval $ac_try) 2>&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); }; } &&
11996 { ac_try='test -s conftest$ac_exeext'
11997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11998 (eval $ac_try) 2>&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); }; }; then
12002 ac_cv_lib_socket_connect=yes
12004 echo "$as_me: failed program was:" >&5
12005 sed 's/^/| /' conftest.$ac_ext >&5
12007 ac_cv_lib_socket_connect=no
12009 rm -f conftest.err conftest.$ac_objext \
12010 conftest$ac_exeext conftest.$ac_ext
12011 LIBS=$ac_check_lib_save_LIBS
12013 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
12014 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
12015 if test $ac_cv_lib_socket_connect = yes; then
12016 SOCKET_LIBS="-lsocket $SOCKET_LIBS"
12017 gawk_have_sockets=yes
12021 gawk_have_sockets=yes
12025 if test "${gawk_have_sockets}" = "yes"
12027 echo "$as_me:$LINENO: checking where to find the socket library calls" >&5
12028 echo $ECHO_N "checking where to find the socket library calls... $ECHO_C" >&6
12029 case "${SOCKET_LIBS}" in
12030 ?*) gawk_lib_loc="${SOCKET_LIBS}" ;;
12031 *) gawk_lib_loc="the standard library" ;;
12033 echo "$as_me:$LINENO: result: ${gawk_lib_loc}" >&5
12034 echo "${ECHO_T}${gawk_lib_loc}" >&6
12037 cat >>confdefs.h <<\_ACEOF
12038 #define HAVE_SOCKETS 1
12045 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
12046 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
12047 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12050 cat >conftest.$ac_ext <<_ACEOF
12053 cat confdefs.h >>conftest.$ac_ext
12054 cat >>conftest.$ac_ext <<_ACEOF
12055 /* end confdefs.h. */
12056 $ac_includes_default
12060 static struct stat ac_aggr;
12061 if (ac_aggr.st_blksize)
12067 rm -f conftest.$ac_objext
12068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12069 (eval $ac_compile) 2>conftest.er1
12071 grep -v '^ *+' conftest.er1 >conftest.err
12073 cat conftest.err >&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); } &&
12076 { ac_try='test -z "$ac_c_werror_flag"
12077 || test ! -s conftest.err'
12078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079 (eval $ac_try) 2>&5
12081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082 (exit $ac_status); }; } &&
12083 { ac_try='test -s conftest.$ac_objext'
12084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12085 (eval $ac_try) 2>&5
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); }; }; then
12089 ac_cv_member_struct_stat_st_blksize=yes
12091 echo "$as_me: failed program was:" >&5
12092 sed 's/^/| /' conftest.$ac_ext >&5
12094 cat >conftest.$ac_ext <<_ACEOF
12097 cat confdefs.h >>conftest.$ac_ext
12098 cat >>conftest.$ac_ext <<_ACEOF
12099 /* end confdefs.h. */
12100 $ac_includes_default
12104 static struct stat ac_aggr;
12105 if (sizeof ac_aggr.st_blksize)
12111 rm -f conftest.$ac_objext
12112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12113 (eval $ac_compile) 2>conftest.er1
12115 grep -v '^ *+' conftest.er1 >conftest.err
12117 cat conftest.err >&5
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); } &&
12120 { ac_try='test -z "$ac_c_werror_flag"
12121 || test ! -s conftest.err'
12122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12123 (eval $ac_try) 2>&5
12125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12126 (exit $ac_status); }; } &&
12127 { ac_try='test -s conftest.$ac_objext'
12128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12129 (eval $ac_try) 2>&5
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); }; }; then
12133 ac_cv_member_struct_stat_st_blksize=yes
12135 echo "$as_me: failed program was:" >&5
12136 sed 's/^/| /' conftest.$ac_ext >&5
12138 ac_cv_member_struct_stat_st_blksize=no
12140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12144 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
12145 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
12146 if test $ac_cv_member_struct_stat_st_blksize = yes; then
12148 cat >>confdefs.h <<_ACEOF
12149 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12153 cat >>confdefs.h <<\_ACEOF
12154 #define HAVE_ST_BLKSIZE 1
12160 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12161 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
12162 if test "${ac_cv_header_time+set}" = set; then
12163 echo $ECHO_N "(cached) $ECHO_C" >&6
12165 cat >conftest.$ac_ext <<_ACEOF
12168 cat confdefs.h >>conftest.$ac_ext
12169 cat >>conftest.$ac_ext <<_ACEOF
12170 /* end confdefs.h. */
12171 #include <sys/types.h>
12172 #include <sys/time.h>
12178 if ((struct tm *) 0)
12184 rm -f conftest.$ac_objext
12185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12186 (eval $ac_compile) 2>conftest.er1
12188 grep -v '^ *+' conftest.er1 >conftest.err
12190 cat conftest.err >&5
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); } &&
12193 { ac_try='test -z "$ac_c_werror_flag"
12194 || test ! -s conftest.err'
12195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12196 (eval $ac_try) 2>&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); }; } &&
12200 { ac_try='test -s conftest.$ac_objext'
12201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202 (eval $ac_try) 2>&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; }; then
12206 ac_cv_header_time=yes
12208 echo "$as_me: failed program was:" >&5
12209 sed 's/^/| /' conftest.$ac_ext >&5
12211 ac_cv_header_time=no
12213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12215 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12216 echo "${ECHO_T}$ac_cv_header_time" >&6
12217 if test $ac_cv_header_time = yes; then
12219 cat >>confdefs.h <<\_ACEOF
12220 #define TIME_WITH_SYS_TIME 1
12225 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12226 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12227 if test "${ac_cv_struct_tm+set}" = set; then
12228 echo $ECHO_N "(cached) $ECHO_C" >&6
12230 cat >conftest.$ac_ext <<_ACEOF
12233 cat confdefs.h >>conftest.$ac_ext
12234 cat >>conftest.$ac_ext <<_ACEOF
12235 /* end confdefs.h. */
12236 #include <sys/types.h>
12242 struct tm *tp; tp->tm_sec;
12247 rm -f conftest.$ac_objext
12248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12249 (eval $ac_compile) 2>conftest.er1
12251 grep -v '^ *+' conftest.er1 >conftest.err
12253 cat conftest.err >&5
12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); } &&
12256 { ac_try='test -z "$ac_c_werror_flag"
12257 || test ! -s conftest.err'
12258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12259 (eval $ac_try) 2>&5
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); }; } &&
12263 { ac_try='test -s conftest.$ac_objext'
12264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12265 (eval $ac_try) 2>&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); }; }; then
12269 ac_cv_struct_tm=time.h
12271 echo "$as_me: failed program was:" >&5
12272 sed 's/^/| /' conftest.$ac_ext >&5
12274 ac_cv_struct_tm=sys/time.h
12276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12278 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12279 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12280 if test $ac_cv_struct_tm = sys/time.h; then
12282 cat >>confdefs.h <<\_ACEOF
12283 #define TM_IN_SYS_TIME 1
12288 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12289 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
12290 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12291 echo $ECHO_N "(cached) $ECHO_C" >&6
12293 cat >conftest.$ac_ext <<_ACEOF
12296 cat confdefs.h >>conftest.$ac_ext
12297 cat >>conftest.$ac_ext <<_ACEOF
12298 /* end confdefs.h. */
12299 #include <sys/types.h>
12300 #include <$ac_cv_struct_tm>
12306 static struct tm ac_aggr;
12307 if (ac_aggr.tm_zone)
12313 rm -f conftest.$ac_objext
12314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12315 (eval $ac_compile) 2>conftest.er1
12317 grep -v '^ *+' conftest.er1 >conftest.err
12319 cat conftest.err >&5
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); } &&
12322 { ac_try='test -z "$ac_c_werror_flag"
12323 || test ! -s conftest.err'
12324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12325 (eval $ac_try) 2>&5
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); }; } &&
12329 { ac_try='test -s conftest.$ac_objext'
12330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12331 (eval $ac_try) 2>&5
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); }; }; then
12335 ac_cv_member_struct_tm_tm_zone=yes
12337 echo "$as_me: failed program was:" >&5
12338 sed 's/^/| /' conftest.$ac_ext >&5
12340 cat >conftest.$ac_ext <<_ACEOF
12343 cat confdefs.h >>conftest.$ac_ext
12344 cat >>conftest.$ac_ext <<_ACEOF
12345 /* end confdefs.h. */
12346 #include <sys/types.h>
12347 #include <$ac_cv_struct_tm>
12353 static struct tm ac_aggr;
12354 if (sizeof ac_aggr.tm_zone)
12360 rm -f conftest.$ac_objext
12361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12362 (eval $ac_compile) 2>conftest.er1
12364 grep -v '^ *+' conftest.er1 >conftest.err
12366 cat conftest.err >&5
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); } &&
12369 { ac_try='test -z "$ac_c_werror_flag"
12370 || test ! -s conftest.err'
12371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12372 (eval $ac_try) 2>&5
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; } &&
12376 { ac_try='test -s conftest.$ac_objext'
12377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12378 (eval $ac_try) 2>&5
12380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381 (exit $ac_status); }; }; then
12382 ac_cv_member_struct_tm_tm_zone=yes
12384 echo "$as_me: failed program was:" >&5
12385 sed 's/^/| /' conftest.$ac_ext >&5
12387 ac_cv_member_struct_tm_tm_zone=no
12389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12391 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12393 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12394 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
12395 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12397 cat >>confdefs.h <<_ACEOF
12398 #define HAVE_STRUCT_TM_TM_ZONE 1
12404 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12406 cat >>confdefs.h <<\_ACEOF
12407 #define HAVE_TM_ZONE 1
12411 echo "$as_me:$LINENO: checking for tzname" >&5
12412 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
12413 if test "${ac_cv_var_tzname+set}" = set; then
12414 echo $ECHO_N "(cached) $ECHO_C" >&6
12416 cat >conftest.$ac_ext <<_ACEOF
12419 cat confdefs.h >>conftest.$ac_ext
12420 cat >>conftest.$ac_ext <<_ACEOF
12421 /* end confdefs.h. */
12423 #ifndef tzname /* For SGI. */
12424 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
12435 rm -f conftest.$ac_objext conftest$ac_exeext
12436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12437 (eval $ac_link) 2>conftest.er1
12439 grep -v '^ *+' conftest.er1 >conftest.err
12441 cat conftest.err >&5
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); } &&
12444 { ac_try='test -z "$ac_c_werror_flag"
12445 || test ! -s conftest.err'
12446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12447 (eval $ac_try) 2>&5
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); }; } &&
12451 { ac_try='test -s conftest$ac_exeext'
12452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12453 (eval $ac_try) 2>&5
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); }; }; then
12457 ac_cv_var_tzname=yes
12459 echo "$as_me: failed program was:" >&5
12460 sed 's/^/| /' conftest.$ac_ext >&5
12462 ac_cv_var_tzname=no
12464 rm -f conftest.err conftest.$ac_objext \
12465 conftest$ac_exeext conftest.$ac_ext
12467 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
12468 echo "${ECHO_T}$ac_cv_var_tzname" >&6
12469 if test $ac_cv_var_tzname = yes; then
12471 cat >>confdefs.h <<\_ACEOF
12472 #define HAVE_TZNAME 1
12480 echo "$as_me:$LINENO: checking whether char is unsigned" >&5
12481 echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
12482 if test "${ac_cv_c_char_unsigned+set}" = set; then
12483 echo $ECHO_N "(cached) $ECHO_C" >&6
12485 cat >conftest.$ac_ext <<_ACEOF
12488 cat confdefs.h >>conftest.$ac_ext
12489 cat >>conftest.$ac_ext <<_ACEOF
12490 /* end confdefs.h. */
12491 $ac_includes_default
12495 static int test_array [1 - 2 * !(((char) -1) < 0)];
12502 rm -f conftest.$ac_objext
12503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12504 (eval $ac_compile) 2>conftest.er1
12506 grep -v '^ *+' conftest.er1 >conftest.err
12508 cat conftest.err >&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); } &&
12511 { ac_try='test -z "$ac_c_werror_flag"
12512 || test ! -s conftest.err'
12513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514 (eval $ac_try) 2>&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); }; } &&
12518 { ac_try='test -s conftest.$ac_objext'
12519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12520 (eval $ac_try) 2>&5
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); }; }; then
12524 ac_cv_c_char_unsigned=no
12526 echo "$as_me: failed program was:" >&5
12527 sed 's/^/| /' conftest.$ac_ext >&5
12529 ac_cv_c_char_unsigned=yes
12531 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12533 echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
12534 echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
12535 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
12536 cat >>confdefs.h <<\_ACEOF
12537 #define __CHAR_UNSIGNED__ 1
12542 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12543 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12544 if test "${ac_cv_c_const+set}" = set; then
12545 echo $ECHO_N "(cached) $ECHO_C" >&6
12547 cat >conftest.$ac_ext <<_ACEOF
12550 cat confdefs.h >>conftest.$ac_ext
12551 cat >>conftest.$ac_ext <<_ACEOF
12552 /* end confdefs.h. */
12557 /* FIXME: Include the comments suggested by Paul. */
12558 #ifndef __cplusplus
12559 /* Ultrix mips cc rejects this. */
12560 typedef int charset[2];
12562 /* SunOS 4.1.1 cc rejects this. */
12563 char const *const *ccp;
12565 /* NEC SVR4.0.2 mips cc rejects this. */
12566 struct point {int x, y;};
12567 static struct point const zero = {0,0};
12568 /* AIX XL C 1.02.0.0 rejects this.
12569 It does not let you subtract one const X* pointer from another in
12570 an arm of an if-expression whose if-part is not a constant
12572 const char *g = "string";
12573 ccp = &g + (g ? g-g : 0);
12574 /* HPUX 7.0 cc rejects these. */
12577 ccp = (char const *const *) p;
12578 { /* SCO 3.2v4 cc rejects this. */
12580 char const *s = 0 ? (char *) 0 : (char const *) 0;
12584 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12585 int x[] = {25, 17};
12586 const int *foo = &x[0];
12589 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12590 typedef const int *iptr;
12594 { /* AIX XL C 1.02.0.0 rejects this saying
12595 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12596 struct s { int j; const int *ap[3]; };
12597 struct s *b; b->j = 5;
12599 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12600 const int foo = 10;
12608 rm -f conftest.$ac_objext
12609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12610 (eval $ac_compile) 2>conftest.er1
12612 grep -v '^ *+' conftest.er1 >conftest.err
12614 cat conftest.err >&5
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); } &&
12617 { ac_try='test -z "$ac_c_werror_flag"
12618 || test ! -s conftest.err'
12619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12620 (eval $ac_try) 2>&5
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); }; } &&
12624 { ac_try='test -s conftest.$ac_objext'
12625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12626 (eval $ac_try) 2>&5
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); }; }; then
12632 echo "$as_me: failed program was:" >&5
12633 sed 's/^/| /' conftest.$ac_ext >&5
12637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12639 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12640 echo "${ECHO_T}$ac_cv_c_const" >&6
12641 if test $ac_cv_c_const = no; then
12643 cat >>confdefs.h <<\_ACEOF
12649 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
12650 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
12651 if test "${ac_cv_c_restrict+set}" = set; then
12652 echo $ECHO_N "(cached) $ECHO_C" >&6
12654 ac_cv_c_restrict=no
12655 # Try the official restrict keyword, then gcc's __restrict, and
12656 # the less common variants.
12657 for ac_kw in restrict __restrict __restrict__ _Restrict; do
12658 cat >conftest.$ac_ext <<_ACEOF
12661 cat confdefs.h >>conftest.$ac_ext
12662 cat >>conftest.$ac_ext <<_ACEOF
12663 /* end confdefs.h. */
12666 rm -f conftest.$ac_objext
12667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12668 (eval $ac_compile) 2>conftest.er1
12670 grep -v '^ *+' conftest.er1 >conftest.err
12672 cat conftest.err >&5
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); } &&
12675 { ac_try='test -z "$ac_c_werror_flag"
12676 || test ! -s conftest.err'
12677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12678 (eval $ac_try) 2>&5
12680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); }; } &&
12682 { ac_try='test -s conftest.$ac_objext'
12683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12684 (eval $ac_try) 2>&5
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); }; }; then
12688 ac_cv_c_restrict=$ac_kw; break
12690 echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12698 echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
12699 echo "${ECHO_T}$ac_cv_c_restrict" >&6
12700 case $ac_cv_c_restrict in
12703 cat >>confdefs.h <<\_ACEOF
12707 *) cat >>confdefs.h <<_ACEOF
12708 #define restrict $ac_cv_c_restrict
12713 echo "$as_me:$LINENO: checking for inline" >&5
12714 echo $ECHO_N "checking for inline... $ECHO_C" >&6
12715 if test "${ac_cv_c_inline+set}" = set; then
12716 echo $ECHO_N "(cached) $ECHO_C" >&6
12719 for ac_kw in inline __inline__ __inline; do
12720 cat >conftest.$ac_ext <<_ACEOF
12723 cat confdefs.h >>conftest.$ac_ext
12724 cat >>conftest.$ac_ext <<_ACEOF
12725 /* end confdefs.h. */
12726 #ifndef __cplusplus
12728 static $ac_kw foo_t static_foo () {return 0; }
12729 $ac_kw foo_t foo () {return 0; }
12733 rm -f conftest.$ac_objext
12734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12735 (eval $ac_compile) 2>conftest.er1
12737 grep -v '^ *+' conftest.er1 >conftest.err
12739 cat conftest.err >&5
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); } &&
12742 { ac_try='test -z "$ac_c_werror_flag"
12743 || test ! -s conftest.err'
12744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12745 (eval $ac_try) 2>&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); }; } &&
12749 { ac_try='test -s conftest.$ac_objext'
12750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12751 (eval $ac_try) 2>&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); }; }; then
12755 ac_cv_c_inline=$ac_kw; break
12757 echo "$as_me: failed program was:" >&5
12758 sed 's/^/| /' conftest.$ac_ext >&5
12761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12765 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
12766 echo "${ECHO_T}$ac_cv_c_inline" >&6
12769 case $ac_cv_c_inline in
12772 case $ac_cv_c_inline in
12774 *) ac_val=$ac_cv_c_inline;;
12776 cat >>confdefs.h <<_ACEOF
12777 #ifndef __cplusplus
12778 #define inline $ac_val
12784 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
12785 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
12786 if test "${ac_cv_c_stringize+set}" = set; then
12787 echo $ECHO_N "(cached) $ECHO_C" >&6
12789 cat >conftest.$ac_ext <<_ACEOF
12792 cat confdefs.h >>conftest.$ac_ext
12793 cat >>conftest.$ac_ext <<_ACEOF
12794 /* end confdefs.h. */
12797 char *s = x(teststring);
12799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12800 $EGREP "#teststring" >/dev/null 2>&1; then
12801 ac_cv_c_stringize=no
12803 ac_cv_c_stringize=yes
12808 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
12809 echo "${ECHO_T}$ac_cv_c_stringize" >&6
12810 if test $ac_cv_c_stringize = yes; then
12812 cat >>confdefs.h <<\_ACEOF
12813 #define HAVE_STRINGIZE 1
12819 ac_config_headers="$ac_config_headers config.h:configh.in"
12824 ac_config_files="$ac_config_files Makefile awklib/Makefile doc/Makefile po/Makefile.in test/Makefile version.c:version.in"
12834 cat >confcache <<\_ACEOF
12835 # This file is a shell script that caches the results of configure
12836 # tests run on this system so they can be shared between configure
12837 # scripts and configure runs, see configure's option --config-cache.
12838 # It is not useful on other systems. If it contains results you don't
12839 # want to keep, you may remove or edit it.
12841 # config.status only pays attention to the cache file if you give it
12842 # the --recheck option to rerun configure.
12844 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12845 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12846 # following values.
12850 # The following way of writing the cache mishandles newlines in values,
12851 # but we know of no workaround that is simple, portable, and efficient.
12852 # So, don't put newlines in cache variables' values.
12853 # Ultrix sh set writes to stderr and can't be redirected directly,
12854 # and sets the high bit in the cache file unless we assign to the vars.
12857 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12859 # `set' does not quote correctly, so add quotes (double-quote
12860 # substitution turns \\\\ into \\, and sed turns \\ into \).
12863 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12866 # `set' quotes correctly as required by POSIX, so do not add quotes.
12868 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12875 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12877 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12879 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12880 if test -w $cache_file; then
12881 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12882 cat confcache >$cache_file
12884 echo "not updating unwritable cache $cache_file"
12889 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12890 # Let make expand exec_prefix.
12891 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12893 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12894 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12895 # trailing colons and then remove the whole line if VPATH becomes empty
12896 # (actually we leave an empty line to preserve line numbers).
12897 if test "x$srcdir" = x.; then
12898 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12899 s/:*\$(srcdir):*/:/;
12900 s/:*\${srcdir}:*/:/;
12902 s/^\([^=]*=[ ]*\):*/\1/;
12908 DEFS=-DHAVE_CONFIG_H
12912 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12913 # 1. Remove the extension, and $U if already installed.
12914 ac_i=`echo "$ac_i" |
12915 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
12917 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
12918 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
12920 LIBOBJS=$ac_libobjs
12922 LTLIBOBJS=$ac_ltlibobjs
12925 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12926 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
12927 Usually this means the macro was only invoked conditionally." >&5
12928 echo "$as_me: error: conditional \"AMDEP\" was never defined.
12929 Usually this means the macro was only invoked conditionally." >&2;}
12930 { (exit 1); exit 1; }; }
12932 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12933 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12934 Usually this means the macro was only invoked conditionally." >&5
12935 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12936 Usually this means the macro was only invoked conditionally." >&2;}
12937 { (exit 1); exit 1; }; }
12939 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12940 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
12941 Usually this means the macro was only invoked conditionally." >&5
12942 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
12943 Usually this means the macro was only invoked conditionally." >&2;}
12944 { (exit 1); exit 1; }; }
12947 : ${CONFIG_STATUS=./config.status}
12948 ac_clean_files_save=$ac_clean_files
12949 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12950 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12951 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12952 cat >$CONFIG_STATUS <<_ACEOF
12954 # Generated by $as_me.
12955 # Run this file to recreate the current configuration.
12956 # Compiler output produced by configure, useful for debugging
12957 # configure, is in config.log if it exists.
12960 ac_cs_recheck=false
12962 SHELL=\${CONFIG_SHELL-$SHELL}
12965 cat >>$CONFIG_STATUS <<\_ACEOF
12966 ## --------------------- ##
12967 ## M4sh Initialization. ##
12968 ## --------------------- ##
12970 # Be Bourne compatible
12971 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12974 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12975 # is contrary to our usage. Disable this feature.
12976 alias -g '${1+"$@"}'='"$@"'
12977 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
12980 DUALCASE=1; export DUALCASE # for MKS sh
12982 # Support unset when possible.
12983 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12990 # Work around bugs in pre-3.0 UWIN ksh.
12991 $as_unset ENV MAIL MAILPATH
12998 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12999 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13000 LC_TELEPHONE LC_TIME
13002 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13003 eval $as_var=C; export $as_var
13009 # Required to use basename.
13010 if expr a : '\(a\)' >/dev/null 2>&1; then
13016 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13017 as_basename=basename
13023 # Name of the executable.
13024 as_me=`$as_basename "$0" ||
13025 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13026 X"$0" : 'X\(//\)$' \| \
13027 X"$0" : 'X\(/\)$' \| \
13028 . : '\(.\)' 2>/dev/null ||
13030 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13031 /^X\/\(\/\/\)$/{ s//\1/; q; }
13032 /^X\/\(\/\).*/{ s//\1/; q; }
13036 # PATH needs CR, and LINENO needs CR and PATH.
13037 # Avoid depending upon Character Ranges.
13038 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13039 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13040 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13041 as_cr_digits='0123456789'
13042 as_cr_alnum=$as_cr_Letters$as_cr_digits
13044 # The user is always right.
13045 if test "${PATH_SEPARATOR+set}" != set; then
13046 echo "#! /bin/sh" >conf$$.sh
13047 echo "exit 0" >>conf$$.sh
13049 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13058 as_lineno_1=$LINENO
13059 as_lineno_2=$LINENO
13060 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13061 test "x$as_lineno_1" != "x$as_lineno_2" &&
13062 test "x$as_lineno_3" = "x$as_lineno_2" || {
13063 # Find who we are. Look in the path if we contain no path at all
13066 *[\\/]* ) as_myself=$0 ;;
13067 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13068 for as_dir in $PATH
13071 test -z "$as_dir" && as_dir=.
13072 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13077 # We did not find ourselves, most probably we were run as `sh COMMAND'
13078 # in which case we are not to be found in the path.
13079 if test "x$as_myself" = x; then
13082 if test ! -f "$as_myself"; then
13083 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13084 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13085 { (exit 1); exit 1; }; }
13087 case $CONFIG_SHELL in
13089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13090 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13093 test -z "$as_dir" && as_dir=.
13094 for as_base in sh bash ksh sh5; do
13097 if ("$as_dir/$as_base" -c '
13098 as_lineno_1=$LINENO
13099 as_lineno_2=$LINENO
13100 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13101 test "x$as_lineno_1" != "x$as_lineno_2" &&
13102 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13103 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13104 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13105 CONFIG_SHELL=$as_dir/$as_base
13106 export CONFIG_SHELL
13107 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13115 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13116 # uniformly replaced by the line number. The first 'sed' inserts a
13117 # line-number line before each line; the second 'sed' does the real
13118 # work. The second script uses 'N' to pair each line-number line
13119 # with the numbered line, and appends trailing '-' during
13120 # substitution so that $LINENO is not a special case at line end.
13121 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13122 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13123 sed '=' <$as_myself |
13128 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13131 s,^['$as_cr_digits']*\n,,
13132 ' >$as_me.lineno &&
13133 chmod +x $as_me.lineno ||
13134 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13135 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13136 { (exit 1); exit 1; }; }
13138 # Don't try to exec as it changes $[0], causing all sort of problems
13139 # (the dirname of $[0] is not the place where we might find the
13140 # original and so on. Autoconf is especially sensible to this).
13142 # Exit status is that of the last command.
13147 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13148 *c*,-n*) ECHO_N= ECHO_C='
13150 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13151 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13154 if expr a : '\(a\)' >/dev/null 2>&1; then
13160 rm -f conf$$ conf$$.exe conf$$.file
13162 if ln -s conf$$.file conf$$ 2>/dev/null; then
13163 # We could just check for DJGPP; but this test a) works b) is more generic
13164 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13165 if test -f conf$$.exe; then
13166 # Don't use ln at all; we don't have any links
13171 elif ln conf$$.file conf$$ 2>/dev/null; then
13176 rm -f conf$$ conf$$.exe conf$$.file
13178 if mkdir -p . 2>/dev/null; then
13181 test -d ./-p && rmdir ./-p
13185 as_executable_p="test -f"
13187 # Sed expression to map a string onto a valid CPP name.
13188 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13190 # Sed expression to map a string onto a valid variable name.
13191 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13195 # We need space, tab and new line, in precisely that order.
13205 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13206 # report actual input values of CONFIG_FILES etc. instead of their
13207 # values after options handling. Logging --version etc. is OK.
13211 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13212 ## Running $as_me. ##
13217 This file was extended by GNU Awk $as_me 3.1.5, which was
13218 generated by GNU Autoconf 2.59. Invocation command line was
13220 CONFIG_FILES = $CONFIG_FILES
13221 CONFIG_HEADERS = $CONFIG_HEADERS
13222 CONFIG_LINKS = $CONFIG_LINKS
13223 CONFIG_COMMANDS = $CONFIG_COMMANDS
13227 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13231 # Files that config.status was made for.
13232 if test -n "$ac_config_files"; then
13233 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13236 if test -n "$ac_config_headers"; then
13237 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13240 if test -n "$ac_config_links"; then
13241 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13244 if test -n "$ac_config_commands"; then
13245 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13248 cat >>$CONFIG_STATUS <<\_ACEOF
13251 \`$as_me' instantiates files from templates according to the
13252 current configuration.
13254 Usage: $0 [OPTIONS] [FILE]...
13256 -h, --help print this help, then exit
13257 -V, --version print version number, then exit
13258 -q, --quiet do not print progress messages
13259 -d, --debug don't remove temporary files
13260 --recheck update $as_me by reconfiguring in the same conditions
13261 --file=FILE[:TEMPLATE]
13262 instantiate the configuration file FILE
13263 --header=FILE[:TEMPLATE]
13264 instantiate the configuration header FILE
13266 Configuration files:
13269 Configuration headers:
13272 Configuration commands:
13275 Report bugs to <bug-autoconf@gnu.org>."
13278 cat >>$CONFIG_STATUS <<_ACEOF
13280 GNU Awk config.status 3.1.5
13281 configured by $0, generated by GNU Autoconf 2.59,
13282 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13284 Copyright (C) 2003 Free Software Foundation, Inc.
13285 This config.status script is free software; the Free Software Foundation
13286 gives unlimited permission to copy, distribute and modify it."
13291 cat >>$CONFIG_STATUS <<\_ACEOF
13292 # If no file are specified by the user, then we need to provide default
13293 # value. By we need to know if files were specified by the user.
13299 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13300 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13308 *) # This is not an option, so the user has probably given explicit
13311 ac_need_defaults=false;;
13315 # Handling of the options.
13317 cat >>$CONFIG_STATUS <<\_ACEOF
13318 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13320 --version | --vers* | -V )
13321 echo "$ac_cs_version"; exit 0 ;;
13323 # Conflict between --help and --header
13324 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13325 Try \`$0 --help' for more information." >&5
13326 echo "$as_me: error: ambiguous option: $1
13327 Try \`$0 --help' for more information." >&2;}
13328 { (exit 1); exit 1; }; };;
13329 --help | --hel | -h )
13330 echo "$ac_cs_usage"; exit 0 ;;
13331 --debug | --d* | -d )
13333 --file | --fil | --fi | --f )
13335 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13336 ac_need_defaults=false;;
13337 --header | --heade | --head | --hea )
13339 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13340 ac_need_defaults=false;;
13341 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13342 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13345 # This is an error.
13346 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13347 Try \`$0 --help' for more information." >&5
13348 echo "$as_me: error: unrecognized option: $1
13349 Try \`$0 --help' for more information." >&2;}
13350 { (exit 1); exit 1; }; } ;;
13352 *) ac_config_targets="$ac_config_targets $1" ;;
13358 ac_configure_extra_args=
13360 if $ac_cs_silent; then
13362 ac_configure_extra_args="$ac_configure_extra_args --silent"
13366 cat >>$CONFIG_STATUS <<_ACEOF
13367 if \$ac_cs_recheck; then
13368 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13369 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13374 cat >>$CONFIG_STATUS <<_ACEOF
13376 # INIT-COMMANDS section.
13379 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13380 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
13381 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
13383 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13384 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13385 LINGUAS="${LINGUAS-%UNSET%}"
13392 cat >>$CONFIG_STATUS <<\_ACEOF
13393 for ac_config_target in $ac_config_targets
13395 case "$ac_config_target" in
13396 # Handling of arguments.
13397 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13398 "awklib/Makefile" ) CONFIG_FILES="$CONFIG_FILES awklib/Makefile" ;;
13399 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13400 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
13401 "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
13402 "version.c" ) CONFIG_FILES="$CONFIG_FILES version.c:version.in" ;;
13403 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13404 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13405 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:configh.in" ;;
13406 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13407 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13408 { (exit 1); exit 1; }; };;
13412 # If the user did not use the arguments to specify the items to instantiate,
13413 # then the envvar interface is used. Set only those that are not.
13414 # We use the long form for the default assignment because of an extremely
13415 # bizarre bug on SunOS 4.1.3.
13416 if $ac_need_defaults; then
13417 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13418 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13419 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13422 # Have a temporary directory for convenience. Make it in the build tree
13423 # simply because there is no reason to put it here, and in addition,
13424 # creating and moving files from /tmp can sometimes cause problems.
13425 # Create a temporary directory, and hook for its removal unless debugging.
13428 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13429 trap '{ (exit 1); exit 1; }' 1 2 13 15
13432 # Create a (secure) tmp directory for tmp files.
13435 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13436 test -n "$tmp" && test -d "$tmp"
13439 tmp=./confstat$$-$RANDOM
13440 (umask 077 && mkdir $tmp)
13443 echo "$me: cannot create a temporary directory in ." >&2
13444 { (exit 1); exit 1; }
13449 cat >>$CONFIG_STATUS <<_ACEOF
13452 # CONFIG_FILES section.
13455 # No need to generate the scripts if there are no CONFIG_FILES.
13456 # This happens for instance when ./config.status config.h
13457 if test -n "\$CONFIG_FILES"; then
13458 # Protect against being on the right side of a sed subst in config.status.
13459 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
13460 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
13461 s,@SHELL@,$SHELL,;t t
13462 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
13463 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
13464 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
13465 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13466 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13467 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13468 s,@exec_prefix@,$exec_prefix,;t t
13469 s,@prefix@,$prefix,;t t
13470 s,@program_transform_name@,$program_transform_name,;t t
13471 s,@bindir@,$bindir,;t t
13472 s,@sbindir@,$sbindir,;t t
13473 s,@libexecdir@,$libexecdir,;t t
13474 s,@datadir@,$datadir,;t t
13475 s,@sysconfdir@,$sysconfdir,;t t
13476 s,@sharedstatedir@,$sharedstatedir,;t t
13477 s,@localstatedir@,$localstatedir,;t t
13478 s,@libdir@,$libdir,;t t
13479 s,@includedir@,$includedir,;t t
13480 s,@oldincludedir@,$oldincludedir,;t t
13481 s,@infodir@,$infodir,;t t
13482 s,@mandir@,$mandir,;t t
13483 s,@build_alias@,$build_alias,;t t
13484 s,@host_alias@,$host_alias,;t t
13485 s,@target_alias@,$target_alias,;t t
13486 s,@DEFS@,$DEFS,;t t
13487 s,@ECHO_C@,$ECHO_C,;t t
13488 s,@ECHO_N@,$ECHO_N,;t t
13489 s,@ECHO_T@,$ECHO_T,;t t
13490 s,@LIBS@,$LIBS,;t t
13491 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13492 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13493 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13494 s,@CYGPATH_W@,$CYGPATH_W,;t t
13495 s,@PACKAGE@,$PACKAGE,;t t
13496 s,@VERSION@,$VERSION,;t t
13497 s,@ACLOCAL@,$ACLOCAL,;t t
13498 s,@AUTOCONF@,$AUTOCONF,;t t
13499 s,@AUTOMAKE@,$AUTOMAKE,;t t
13500 s,@AUTOHEADER@,$AUTOHEADER,;t t
13501 s,@MAKEINFO@,$MAKEINFO,;t t
13502 s,@install_sh@,$install_sh,;t t
13503 s,@STRIP@,$STRIP,;t t
13504 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
13505 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
13506 s,@mkdir_p@,$mkdir_p,;t t
13508 s,@SET_MAKE@,$SET_MAKE,;t t
13509 s,@am__leading_dot@,$am__leading_dot,;t t
13510 s,@AMTAR@,$AMTAR,;t t
13511 s,@am__tar@,$am__tar,;t t
13512 s,@am__untar@,$am__untar,;t t
13513 s,@EGREP@,$EGREP,;t t
13514 s,@YACC@,$YACC,;t t
13515 s,@LN_S@,$LN_S,;t t
13517 s,@CFLAGS@,$CFLAGS,;t t
13518 s,@LDFLAGS@,$LDFLAGS,;t t
13519 s,@CPPFLAGS@,$CPPFLAGS,;t t
13520 s,@ac_ct_CC@,$ac_ct_CC,;t t
13521 s,@EXEEXT@,$EXEEXT,;t t
13522 s,@OBJEXT@,$OBJEXT,;t t
13523 s,@DEPDIR@,$DEPDIR,;t t
13524 s,@am__include@,$am__include,;t t
13525 s,@am__quote@,$am__quote,;t t
13526 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
13527 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
13528 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
13529 s,@CCDEPMODE@,$CCDEPMODE,;t t
13530 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
13531 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
13533 s,@RANLIB@,$RANLIB,;t t
13534 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
13536 s,@ANSI2KNR@,$ANSI2KNR,;t t
13537 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
13538 s,@USE_NLS@,$USE_NLS,;t t
13539 s,@MSGFMT@,$MSGFMT,;t t
13540 s,@GMSGFMT@,$GMSGFMT,;t t
13541 s,@XGETTEXT@,$XGETTEXT,;t t
13542 s,@MSGMERGE@,$MSGMERGE,;t t
13543 s,@build@,$build,;t t
13544 s,@build_cpu@,$build_cpu,;t t
13545 s,@build_vendor@,$build_vendor,;t t
13546 s,@build_os@,$build_os,;t t
13547 s,@host@,$host,;t t
13548 s,@host_cpu@,$host_cpu,;t t
13549 s,@host_vendor@,$host_vendor,;t t
13550 s,@host_os@,$host_os,;t t
13551 s,@INTL_MACOSX_LIBS@,$INTL_MACOSX_LIBS,;t t
13552 s,@LIBICONV@,$LIBICONV,;t t
13553 s,@LTLIBICONV@,$LTLIBICONV,;t t
13554 s,@INTLLIBS@,$INTLLIBS,;t t
13555 s,@LIBINTL@,$LIBINTL,;t t
13556 s,@LTLIBINTL@,$LTLIBINTL,;t t
13557 s,@POSUB@,$POSUB,;t t
13558 s,@LIBOBJS@,$LIBOBJS,;t t
13559 s,@SOCKET_LIBS@,$SOCKET_LIBS,;t t
13560 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13565 cat >>$CONFIG_STATUS <<\_ACEOF
13566 # Split the substitutions into bite-sized pieces for seds with
13567 # small command number limits, like on Digital OSF/1 and HP-UX.
13568 ac_max_sed_lines=48
13569 ac_sed_frag=1 # Number of current file.
13570 ac_beg=1 # First line for current file.
13571 ac_end=$ac_max_sed_lines # Line after last line for current file.
13574 while $ac_more_lines; do
13575 if test $ac_beg -gt 1; then
13576 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13578 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13580 if test ! -s $tmp/subs.frag; then
13581 ac_more_lines=false
13583 # The purpose of the label and of the branching condition is to
13584 # speed up the sed processing (if there are no `@' at all, there
13585 # is no need to browse any of the substitutions).
13586 # These are the two extra sed commands mentioned above.
13588 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13589 if test -z "$ac_sed_cmds"; then
13590 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13592 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13594 ac_sed_frag=`expr $ac_sed_frag + 1`
13596 ac_end=`expr $ac_end + $ac_max_sed_lines`
13599 if test -z "$ac_sed_cmds"; then
13602 fi # test -n "$CONFIG_FILES"
13605 cat >>$CONFIG_STATUS <<\_ACEOF
13606 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13607 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13609 - | *:- | *:-:* ) # input from stdin
13611 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13612 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13613 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13614 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13615 * ) ac_file_in=$ac_file.in ;;
13618 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
13619 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13620 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13621 X"$ac_file" : 'X\(//\)[^/]' \| \
13622 X"$ac_file" : 'X\(//\)$' \| \
13623 X"$ac_file" : 'X\(/\)' \| \
13624 . : '\(.\)' 2>/dev/null ||
13626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13627 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13628 /^X\(\/\/\)$/{ s//\1/; q; }
13629 /^X\(\/\).*/{ s//\1/; q; }
13631 { if $as_mkdir_p; then
13636 while test ! -d "$as_dir"; do
13637 as_dirs="$as_dir $as_dirs"
13638 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13639 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13640 X"$as_dir" : 'X\(//\)[^/]' \| \
13641 X"$as_dir" : 'X\(//\)$' \| \
13642 X"$as_dir" : 'X\(/\)' \| \
13643 . : '\(.\)' 2>/dev/null ||
13645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13646 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13647 /^X\(\/\/\)$/{ s//\1/; q; }
13648 /^X\(\/\).*/{ s//\1/; q; }
13651 test ! -n "$as_dirs" || mkdir $as_dirs
13652 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13653 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13654 { (exit 1); exit 1; }; }; }
13658 if test "$ac_dir" != .; then
13659 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13660 # A "../" for each directory in $ac_dir_suffix.
13661 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13663 ac_dir_suffix= ac_top_builddir=
13667 .) # No --srcdir option. We are building in place.
13669 if test -z "$ac_top_builddir"; then
13672 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13674 [\\/]* | ?:[\\/]* ) # Absolute path.
13675 ac_srcdir=$srcdir$ac_dir_suffix;
13676 ac_top_srcdir=$srcdir ;;
13677 *) # Relative path.
13678 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13679 ac_top_srcdir=$ac_top_builddir$srcdir ;;
13682 # Do not use `cd foo && pwd` to compute absolute paths, because
13683 # the directories may not exist.
13685 .) ac_abs_builddir="$ac_dir";;
13688 .) ac_abs_builddir=`pwd`;;
13689 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13690 *) ac_abs_builddir=`pwd`/"$ac_dir";;
13693 case $ac_abs_builddir in
13694 .) ac_abs_top_builddir=${ac_top_builddir}.;;
13696 case ${ac_top_builddir}. in
13697 .) ac_abs_top_builddir=$ac_abs_builddir;;
13698 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13699 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13702 case $ac_abs_builddir in
13703 .) ac_abs_srcdir=$ac_srcdir;;
13706 .) ac_abs_srcdir=$ac_abs_builddir;;
13707 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13708 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13711 case $ac_abs_builddir in
13712 .) ac_abs_top_srcdir=$ac_top_srcdir;;
13714 case $ac_top_srcdir in
13715 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13716 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13717 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13723 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13724 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
13727 if test x"$ac_file" != x-; then
13728 { echo "$as_me:$LINENO: creating $ac_file" >&5
13729 echo "$as_me: creating $ac_file" >&6;}
13732 # Let's still pretend it is `configure' which instantiates (i.e., don't
13733 # use $as_me), people would be surprised to read:
13734 # /* config.h. Generated by config.status. */
13735 if test x"$ac_file" = x-; then
13738 configure_input="$ac_file. "
13740 configure_input=$configure_input"Generated from `echo $ac_file_in |
13741 sed 's,.*/,,'` by configure."
13743 # First look for the input files in the build tree, otherwise in the
13745 ac_file_inputs=`IFS=:
13746 for f in $ac_file_in; do
13748 -) echo $tmp/stdin ;;
13750 # Absolute (can't be DOS-style, as IFS=:)
13751 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13752 echo "$as_me: error: cannot find input file: $f" >&2;}
13753 { (exit 1); exit 1; }; }
13756 if test -f "$f"; then
13759 elif test -f "$srcdir/$f"; then
13764 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13765 echo "$as_me: error: cannot find input file: $f" >&2;}
13766 { (exit 1); exit 1; }; }
13769 done` || { (exit 1); exit 1; }
13771 cat >>$CONFIG_STATUS <<_ACEOF
13775 cat >>$CONFIG_STATUS <<\_ACEOF
13777 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13778 s,@configure_input@,$configure_input,;t t
13779 s,@srcdir@,$ac_srcdir,;t t
13780 s,@abs_srcdir@,$ac_abs_srcdir,;t t
13781 s,@top_srcdir@,$ac_top_srcdir,;t t
13782 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
13783 s,@builddir@,$ac_builddir,;t t
13784 s,@abs_builddir@,$ac_abs_builddir,;t t
13785 s,@top_builddir@,$ac_top_builddir,;t t
13786 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
13787 s,@INSTALL@,$ac_INSTALL,;t t
13788 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
13790 if test x"$ac_file" != x-; then
13791 mv $tmp/out $ac_file
13799 cat >>$CONFIG_STATUS <<\_ACEOF
13802 # CONFIG_HEADER section.
13805 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13806 # NAME is the cpp macro being defined and VALUE is the value it is being given.
13808 # ac_d sets the value in "#define NAME VALUE" lines.
13809 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13810 ac_dB='[ ].*$,\1#\2'
13813 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13814 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13815 ac_uB='$,\1#\2define\3'
13819 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13820 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13822 - | *:- | *:-:* ) # input from stdin
13824 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13825 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13826 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13827 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13828 * ) ac_file_in=$ac_file.in ;;
13831 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13832 echo "$as_me: creating $ac_file" >&6;}
13834 # First look for the input files in the build tree, otherwise in the
13836 ac_file_inputs=`IFS=:
13837 for f in $ac_file_in; do
13839 -) echo $tmp/stdin ;;
13841 # Absolute (can't be DOS-style, as IFS=:)
13842 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13843 echo "$as_me: error: cannot find input file: $f" >&2;}
13844 { (exit 1); exit 1; }; }
13845 # Do quote $f, to prevent DOS paths from being IFS'd.
13848 if test -f "$f"; then
13851 elif test -f "$srcdir/$f"; then
13856 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13857 echo "$as_me: error: cannot find input file: $f" >&2;}
13858 { (exit 1); exit 1; }; }
13861 done` || { (exit 1); exit 1; }
13862 # Remove the trailing spaces.
13863 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13867 # Transform confdefs.h into two sed scripts, `conftest.defines' and
13868 # `conftest.undefs', that substitutes the proper values into
13869 # config.h.in to produce config.h. The first handles `#define'
13870 # templates, and the second `#undef' templates.
13871 # And first: Protect against being on the right side of a sed subst in
13872 # config.status. Protect against being in an unquoted here document
13873 # in config.status.
13874 rm -f conftest.defines conftest.undefs
13875 # Using a here document instead of a string reduces the quoting nightmare.
13876 # Putting comments in sed scripts is not portable.
13878 # `end' is used to avoid that the second main sed command (meant for
13879 # 0-ary CPP macros) applies to n-ary macro definitions.
13880 # See the Autoconf documentation for `clear'.
13881 cat >confdef2sed.sed <<\_ACEOF
13886 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
13888 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
13891 # If some macros were called several times there might be several times
13892 # the same #defines, which is useless. Nevertheless, we may not want to
13893 # sort them, since we want the *last* AC-DEFINE to be honored.
13894 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
13895 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
13896 rm -f confdef2sed.sed
13898 # This sed command replaces #undef with comments. This is necessary, for
13899 # example, in the case of _POSIX_SOURCE, which is predefined and required
13900 # on some systems where configure will not decide to define it.
13901 cat >>conftest.undefs <<\_ACEOF
13902 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
13905 # Break up conftest.defines because some shells have a limit on the size
13906 # of here documents, and old seds have small limits too (100 cmds).
13907 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
13908 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
13909 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
13910 echo ' :' >>$CONFIG_STATUS
13911 rm -f conftest.tail
13912 while grep . conftest.defines >/dev/null
13914 # Write a limited-size here document to $tmp/defines.sed.
13915 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
13916 # Speed up: don't consider the non `#define' lines.
13917 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
13918 # Work around the forget-to-reset-the-flag bug.
13919 echo 't clr' >>$CONFIG_STATUS
13920 echo ': clr' >>$CONFIG_STATUS
13921 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
13923 sed -f $tmp/defines.sed $tmp/in >$tmp/out
13925 mv $tmp/out $tmp/in
13927 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
13928 rm -f conftest.defines
13929 mv conftest.tail conftest.defines
13931 rm -f conftest.defines
13932 echo ' fi # grep' >>$CONFIG_STATUS
13933 echo >>$CONFIG_STATUS
13935 # Break up conftest.undefs because some shells have a limit on the size
13936 # of here documents, and old seds have small limits too (100 cmds).
13937 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
13938 rm -f conftest.tail
13939 while grep . conftest.undefs >/dev/null
13941 # Write a limited-size here document to $tmp/undefs.sed.
13942 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
13943 # Speed up: don't consider the non `#undef'
13944 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
13945 # Work around the forget-to-reset-the-flag bug.
13946 echo 't clr' >>$CONFIG_STATUS
13947 echo ': clr' >>$CONFIG_STATUS
13948 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
13950 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
13952 mv $tmp/out $tmp/in
13954 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
13955 rm -f conftest.undefs
13956 mv conftest.tail conftest.undefs
13958 rm -f conftest.undefs
13960 cat >>$CONFIG_STATUS <<\_ACEOF
13961 # Let's still pretend it is `configure' which instantiates (i.e., don't
13962 # use $as_me), people would be surprised to read:
13963 # /* config.h. Generated by config.status. */
13964 if test x"$ac_file" = x-; then
13965 echo "/* Generated by configure. */" >$tmp/config.h
13967 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
13969 cat $tmp/in >>$tmp/config.h
13971 if test x"$ac_file" != x-; then
13972 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
13973 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13974 echo "$as_me: $ac_file is unchanged" >&6;}
13976 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13977 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13978 X"$ac_file" : 'X\(//\)[^/]' \| \
13979 X"$ac_file" : 'X\(//\)$' \| \
13980 X"$ac_file" : 'X\(/\)' \| \
13981 . : '\(.\)' 2>/dev/null ||
13983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13984 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13985 /^X\(\/\/\)$/{ s//\1/; q; }
13986 /^X\(\/\).*/{ s//\1/; q; }
13988 { if $as_mkdir_p; then
13993 while test ! -d "$as_dir"; do
13994 as_dirs="$as_dir $as_dirs"
13995 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13996 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13997 X"$as_dir" : 'X\(//\)[^/]' \| \
13998 X"$as_dir" : 'X\(//\)$' \| \
13999 X"$as_dir" : 'X\(/\)' \| \
14000 . : '\(.\)' 2>/dev/null ||
14002 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14003 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14004 /^X\(\/\/\)$/{ s//\1/; q; }
14005 /^X\(\/\).*/{ s//\1/; q; }
14008 test ! -n "$as_dirs" || mkdir $as_dirs
14009 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14010 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14011 { (exit 1); exit 1; }; }; }
14014 mv $tmp/config.h $ac_file
14018 rm -f $tmp/config.h
14020 # Compute $ac_file's index in $config_headers.
14022 for _am_header in $config_headers :; do
14023 case $_am_header in
14024 $ac_file | $ac_file:* )
14027 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14030 echo "timestamp for $ac_file" >`(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 ||
14037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14038 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14039 /^X\(\/\/\)$/{ s//\1/; q; }
14040 /^X\(\/\).*/{ s//\1/; q; }
14041 s/.*/./; q'`/stamp-h$_am_stamp_count
14044 cat >>$CONFIG_STATUS <<\_ACEOF
14047 # CONFIG_COMMANDS section.
14049 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14050 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14051 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14052 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14053 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14054 X"$ac_dest" : 'X\(//\)[^/]' \| \
14055 X"$ac_dest" : 'X\(//\)$' \| \
14056 X"$ac_dest" : 'X\(/\)' \| \
14057 . : '\(.\)' 2>/dev/null ||
14059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14060 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14061 /^X\(\/\/\)$/{ s//\1/; q; }
14062 /^X\(\/\).*/{ s//\1/; q; }
14064 { if $as_mkdir_p; then
14069 while test ! -d "$as_dir"; do
14070 as_dirs="$as_dir $as_dirs"
14071 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14072 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14073 X"$as_dir" : 'X\(//\)[^/]' \| \
14074 X"$as_dir" : 'X\(//\)$' \| \
14075 X"$as_dir" : 'X\(/\)' \| \
14076 . : '\(.\)' 2>/dev/null ||
14078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14079 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14080 /^X\(\/\/\)$/{ s//\1/; q; }
14081 /^X\(\/\).*/{ s//\1/; q; }
14084 test ! -n "$as_dirs" || mkdir $as_dirs
14085 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14086 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14087 { (exit 1); exit 1; }; }; }
14091 if test "$ac_dir" != .; then
14092 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14093 # A "../" for each directory in $ac_dir_suffix.
14094 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14096 ac_dir_suffix= ac_top_builddir=
14100 .) # No --srcdir option. We are building in place.
14102 if test -z "$ac_top_builddir"; then
14105 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14107 [\\/]* | ?:[\\/]* ) # Absolute path.
14108 ac_srcdir=$srcdir$ac_dir_suffix;
14109 ac_top_srcdir=$srcdir ;;
14110 *) # Relative path.
14111 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14112 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14115 # Do not use `cd foo && pwd` to compute absolute paths, because
14116 # the directories may not exist.
14118 .) ac_abs_builddir="$ac_dir";;
14121 .) ac_abs_builddir=`pwd`;;
14122 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14123 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14126 case $ac_abs_builddir in
14127 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14129 case ${ac_top_builddir}. in
14130 .) ac_abs_top_builddir=$ac_abs_builddir;;
14131 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14132 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14135 case $ac_abs_builddir in
14136 .) ac_abs_srcdir=$ac_srcdir;;
14139 .) ac_abs_srcdir=$ac_abs_builddir;;
14140 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14141 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14144 case $ac_abs_builddir in
14145 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14147 case $ac_top_srcdir in
14148 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14149 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14150 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14155 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14156 echo "$as_me: executing $ac_dest commands" >&6;}
14158 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14159 # Strip MF so we end up with the name of the file.
14160 mf=`echo "$mf" | sed -e 's/:.*$//'`
14161 # Check whether this is an Automake generated Makefile or not.
14162 # We used to match only the files named `Makefile.in', but
14163 # some people rename them; so instead we look at the file content.
14164 # Grep'ing the first line is not enough: some people post-process
14165 # each Makefile.in and add a new line on top of each file to say so.
14166 # So let's grep whole file.
14167 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14168 dirpart=`(dirname "$mf") 2>/dev/null ||
14169 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14170 X"$mf" : 'X\(//\)[^/]' \| \
14171 X"$mf" : 'X\(//\)$' \| \
14172 X"$mf" : 'X\(/\)' \| \
14173 . : '\(.\)' 2>/dev/null ||
14175 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14176 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14177 /^X\(\/\/\)$/{ s//\1/; q; }
14178 /^X\(\/\).*/{ s//\1/; q; }
14183 # Extract the definition of DEPDIR, am__include, and am__quote
14184 # from the Makefile without running `make'.
14185 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14186 test -z "$DEPDIR" && continue
14187 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14188 test -z "am__include" && continue
14189 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14190 # When using ansi2knr, U may be empty or an underscore; expand it
14191 U=`sed -n 's/^U = //p' < "$mf"`
14192 # Find all dependency output files, they are included files with
14193 # $(DEPDIR) in their names. We invoke sed twice because it is the
14194 # simplest approach to changing $(DEPDIR) to its actual value in the
14196 for file in `sed -n "
14197 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14198 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14199 # Make sure the directory exists.
14200 test -f "$dirpart/$file" && continue
14201 fdir=`(dirname "$file") 2>/dev/null ||
14202 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14203 X"$file" : 'X\(//\)[^/]' \| \
14204 X"$file" : 'X\(//\)$' \| \
14205 X"$file" : 'X\(/\)' \| \
14206 . : '\(.\)' 2>/dev/null ||
14208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14209 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14210 /^X\(\/\/\)$/{ s//\1/; q; }
14211 /^X\(\/\).*/{ s//\1/; q; }
14213 { if $as_mkdir_p; then
14214 mkdir -p $dirpart/$fdir
14216 as_dir=$dirpart/$fdir
14218 while test ! -d "$as_dir"; do
14219 as_dirs="$as_dir $as_dirs"
14220 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14221 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14222 X"$as_dir" : 'X\(//\)[^/]' \| \
14223 X"$as_dir" : 'X\(//\)$' \| \
14224 X"$as_dir" : 'X\(/\)' \| \
14225 . : '\(.\)' 2>/dev/null ||
14227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14228 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14229 /^X\(\/\/\)$/{ s//\1/; q; }
14230 /^X\(\/\).*/{ s//\1/; q; }
14233 test ! -n "$as_dirs" || mkdir $as_dirs
14234 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14235 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14236 { (exit 1); exit 1; }; }; }
14238 # echo "creating $dirpart/$file"
14239 echo '# dummy' > "$dirpart/$file"
14244 for ac_file in $CONFIG_FILES; do
14245 # Support "outfile[:infile[:infile...]]"
14247 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14249 # PO directories have a Makefile.in generated from Makefile.in.in.
14250 case "$ac_file" in */Makefile.in)
14251 # Adjust a relative srcdir.
14252 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14253 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
14254 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14255 # In autoconf-2.13 it is called $ac_given_srcdir.
14256 # In autoconf-2.50 it is called $srcdir.
14257 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14258 case "$ac_given_srcdir" in
14259 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14260 /*) top_srcdir="$ac_given_srcdir" ;;
14261 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14263 # Treat a directory as a PO directory if and only if it has a
14264 # POTFILES.in file. This allows packages to have multiple PO
14265 # directories under different names or in different locations.
14266 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14267 rm -f "$ac_dir/POTFILES"
14268 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14269 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
14270 POMAKEFILEDEPS="POTFILES.in"
14271 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
14272 # on $ac_dir but don't depend on user-specified configuration
14274 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14275 # The LINGUAS file contains the set of available languages.
14276 if test -n "$OBSOLETE_ALL_LINGUAS"; then
14277 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14279 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14280 # Hide the ALL_LINGUAS assigment from automake.
14281 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14282 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14284 # The set of available languages was given in configure.in.
14285 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14288 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14289 # Compute UPDATEPOFILES
14290 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14291 # Compute DUMMYPOFILES
14292 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14294 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
14295 case "$ac_given_srcdir" in
14297 *) srcdirpre='$(srcdir)/' ;;
14303 for lang in $ALL_LINGUAS; do
14304 POFILES="$POFILES $srcdirpre$lang.po"
14305 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14306 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14307 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14309 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14310 # environment variable.
14312 if test -n "$ALL_LINGUAS"; then
14313 for presentlang in $ALL_LINGUAS; do
14315 if test "%UNSET%" != "$LINGUAS"; then
14316 desiredlanguages="$LINGUAS"
14318 desiredlanguages="$ALL_LINGUAS"
14320 for desiredlang in $desiredlanguages; do
14321 # Use the presentlang catalog if desiredlang is
14322 # a. equal to presentlang, or
14323 # b. a variant of presentlang (because in this case,
14324 # presentlang can be used as a fallback for messages
14325 # which are not translated in the desiredlang catalog).
14326 case "$desiredlang" in
14327 "$presentlang"*) useit=yes;;
14330 if test $useit = yes; then
14331 INST_LINGUAS="$INST_LINGUAS $presentlang"
14336 if test -n "$INST_LINGUAS"; then
14337 for lang in $INST_LINGUAS; do
14338 CATALOGS="$CATALOGS $lang.gmo"
14341 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14342 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"
14343 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14344 if test -f "$f"; then
14346 *.orig | *.bak | *~) ;;
14347 *) cat "$f" >> "$ac_dir/Makefile" ;;
14359 cat >>$CONFIG_STATUS <<\_ACEOF
14361 { (exit 0); exit 0; }
14363 chmod +x $CONFIG_STATUS
14364 ac_clean_files=$ac_clean_files_save
14367 echo $as_me: fixing Makefile to keep version.c\
14368 sed "/CONFIG_CLEAN_FILES/s/version.c//" < Makefile > $$.Makefile\
14369 mv $$.Makefile Makefile
14370 ' < $CONFIG_STATUS > $$.gawk-hack
14371 mv $$.gawk-hack $CONFIG_STATUS
14373 # configure is writing to config.log, and then calls config.status.
14374 # config.status does its own redirection, appending to config.log.
14375 # Unfortunately, on DOS this fails, as config.log is still kept open
14376 # by configure, so config.status won't be able to write to it; its
14377 # output is simply discarded. So we exec the FD to /dev/null,
14378 # effectively closing config.log, so it can be properly (re)opened and
14379 # appended to by config.status. When coming back to configure, we
14380 # need to make the FD available again.
14381 if test "$no_create" != yes; then
14383 ac_config_status_args=
14384 test "$silent" = yes &&
14385 ac_config_status_args="$ac_config_status_args --quiet"
14387 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14389 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14390 # would make configure fail if this is the last instruction.
14391 $ac_cs_success || { (exit 1); exit 1; }