2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="lib/snmp.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 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 AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB CPP EGREP LIBOBJS MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os ALLOCA GLIBC21 HAVE_POSIX_PRINTF HAVE_ASPRINTF HAVE_SNPRINTF HAVE_WPRINTF LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
845 if test -n "$ac_init_help"; then
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --disable-dependency-tracking Speeds up one-time builds
853 --enable-dependency-tracking Do not reject slow dependency extractors
854 --disable-nls do not use Native Language Support
855 --disable-rpath do not hardcode runtime library paths
856 --disable-regdomain disable regulation domain channel restrictions
859 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
860 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
861 --with-gnu-ld assume the C compiler uses GNU ld default=no
862 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
863 --without-libiconv-prefix don't search for libiconv in includedir and libdir
864 --with-included-gettext use the GNU gettext library included here
865 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
866 --without-libintl-prefix don't search for libintl in includedir and libdir
868 Some influential environment variables:
869 CC C compiler command
870 CFLAGS C compiler flags
871 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
872 nonstandard directory <lib dir>
873 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
874 headers in a nonstandard directory <include dir>
877 Use these variables to override the choices made by `configure' or to help
878 it to find libraries and programs with nonstandard names/locations.
883 if test "$ac_init_help" = "recursive"; then
884 # If there are subdirs, report their specific --help.
886 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
887 test -d $ac_dir || continue
890 if test "$ac_dir" != .; then
891 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
892 # A "../" for each directory in $ac_dir_suffix.
893 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
895 ac_dir_suffix= ac_top_builddir=
899 .) # No --srcdir option. We are building in place.
901 if test -z "$ac_top_builddir"; then
904 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
906 [\\/]* | ?:[\\/]* ) # Absolute path.
907 ac_srcdir=$srcdir$ac_dir_suffix;
908 ac_top_srcdir=$srcdir ;;
910 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
911 ac_top_srcdir=$ac_top_builddir$srcdir ;;
914 # Do not use `cd foo && pwd` to compute absolute paths, because
915 # the directories may not exist.
917 .) ac_abs_builddir="$ac_dir";;
920 .) ac_abs_builddir=`pwd`;;
921 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
922 *) ac_abs_builddir=`pwd`/"$ac_dir";;
925 case $ac_abs_builddir in
926 .) ac_abs_top_builddir=${ac_top_builddir}.;;
928 case ${ac_top_builddir}. in
929 .) ac_abs_top_builddir=$ac_abs_builddir;;
930 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
931 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
934 case $ac_abs_builddir in
935 .) ac_abs_srcdir=$ac_srcdir;;
938 .) ac_abs_srcdir=$ac_abs_builddir;;
939 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
940 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
943 case $ac_abs_builddir in
944 .) ac_abs_top_srcdir=$ac_top_srcdir;;
946 case $ac_top_srcdir in
947 .) ac_abs_top_srcdir=$ac_abs_builddir;;
948 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
949 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
954 # Check for guested configure; otherwise get Cygnus style configure.
955 if test -f $ac_srcdir/configure.gnu; then
957 $SHELL $ac_srcdir/configure.gnu --help=recursive
958 elif test -f $ac_srcdir/configure; then
960 $SHELL $ac_srcdir/configure --help=recursive
961 elif test -f $ac_srcdir/configure.ac ||
962 test -f $ac_srcdir/configure.in; then
966 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
972 test -n "$ac_init_help" && exit 0
973 if $ac_init_version; then
976 Copyright (C) 2003 Free Software Foundation, Inc.
977 This configure script is free software; the Free Software Foundation
978 gives unlimited permission to copy, distribute and modify it.
984 This file contains any messages produced by compilers while
985 running configure, to aid debugging if configure makes a mistake.
987 It was created by $as_me, which was
988 generated by GNU Autoconf 2.59. Invocation command line was
999 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1000 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1001 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1002 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1003 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1005 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1006 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1008 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1009 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1010 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1011 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1012 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1013 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1014 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1022 test -z "$as_dir" && as_dir=.
1023 echo "PATH: $as_dir"
1038 # Keep a trace of the command line.
1039 # Strip out --no-create and --no-recursion so they do not pile up.
1040 # Strip out --silent because we don't want to record it for future runs.
1041 # Also quote any args containing shell meta-characters.
1042 # Make two passes to allow for proper duplicate-argument suppression.
1047 ac_must_keep_next=false
1053 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1054 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1055 | -silent | --silent | --silen | --sile | --sil)
1057 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1058 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1061 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1063 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1064 if test $ac_must_keep_next = true; then
1065 ac_must_keep_next=false # Got value, back to normal.
1068 *=* | --config-cache | -C | -disable-* | --disable-* \
1069 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1070 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1071 | -with-* | --with-* | -without-* | --without-* | --x)
1072 case "$ac_configure_args0 " in
1073 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1076 -* ) ac_must_keep_next=true ;;
1079 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1080 # Get rid of the leading space.
1086 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1087 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1089 # When interrupted or exit'd, cleanup temporary files, and complete
1090 # config.log. We remove comments because anyway the quotes in there
1091 # would cause problems or look ugly.
1092 # WARNING: Be sure not to use single quotes in there, as some shells,
1093 # such as our DU 5.0 friend, will then `close' the trap.
1094 trap 'exit_status=$?
1095 # Save into config.log some information that might help in debugging.
1100 ## ---------------- ##
1101 ## Cache variables. ##
1102 ## ---------------- ##
1105 # The following way of writing the cache mishandles newlines in values,
1108 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1111 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1116 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1123 ## ----------------- ##
1124 ## Output variables. ##
1125 ## ----------------- ##
1128 for ac_var in $ac_subst_vars
1130 eval ac_val=$`echo $ac_var`
1131 echo "$ac_var='"'"'$ac_val'"'"'"
1135 if test -n "$ac_subst_files"; then
1142 for ac_var in $ac_subst_files
1144 eval ac_val=$`echo $ac_var`
1145 echo "$ac_var='"'"'$ac_val'"'"'"
1150 if test -s confdefs.h; then
1157 sed "/^$/d" confdefs.h | sort
1160 test "$ac_signal" != 0 &&
1161 echo "$as_me: caught signal $ac_signal"
1162 echo "$as_me: exit $exit_status"
1164 rm -f core *.core &&
1165 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1168 for ac_signal in 1 2 13 15; do
1169 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1173 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1174 rm -rf conftest* confdefs.h
1175 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1178 # Predefined preprocessor variables.
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_NAME "$PACKAGE_NAME"
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_STRING "$PACKAGE_STRING"
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1205 # Let the site file select an alternate cache file if it wants to.
1206 # Prefer explicitly selected file to automatically selected ones.
1207 if test -z "$CONFIG_SITE"; then
1208 if test "x$prefix" != xNONE; then
1209 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1211 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1214 for ac_site_file in $CONFIG_SITE; do
1215 if test -r "$ac_site_file"; then
1216 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1217 echo "$as_me: loading site script $ac_site_file" >&6;}
1218 sed 's/^/| /' "$ac_site_file" >&5
1223 if test -r "$cache_file"; then
1224 # Some versions of bash will fail to source /dev/null (special
1225 # files actually), so we avoid doing that.
1226 if test -f "$cache_file"; then
1227 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1228 echo "$as_me: loading cache $cache_file" >&6;}
1230 [\\/]* | ?:[\\/]* ) . $cache_file;;
1231 *) . ./$cache_file;;
1235 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1236 echo "$as_me: creating cache $cache_file" >&6;}
1240 # Check that the precious variables saved in the cache have kept the same
1242 ac_cache_corrupted=false
1243 for ac_var in `(set) 2>&1 |
1244 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1245 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1246 eval ac_new_set=\$ac_env_${ac_var}_set
1247 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1248 eval ac_new_val="\$ac_env_${ac_var}_value"
1249 case $ac_old_set,$ac_new_set in
1251 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1252 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1253 ac_cache_corrupted=: ;;
1255 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1256 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1257 ac_cache_corrupted=: ;;
1260 if test "x$ac_old_val" != "x$ac_new_val"; then
1261 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1262 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1263 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1264 echo "$as_me: former value: $ac_old_val" >&2;}
1265 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1266 echo "$as_me: current value: $ac_new_val" >&2;}
1267 ac_cache_corrupted=:
1270 # Pass precious variables to config.status.
1271 if test "$ac_new_set" = set; then
1273 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1274 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1275 *) ac_arg=$ac_var=$ac_new_val ;;
1277 case " $ac_configure_args " in
1278 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1279 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1283 if $ac_cache_corrupted; then
1284 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1285 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1286 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1287 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1288 { (exit 1); exit 1; }; }
1292 ac_cpp='$CPP $CPPFLAGS'
1293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1316 for ac_dir in config $srcdir/config; do
1317 if test -f $ac_dir/install-sh; then
1319 ac_install_sh="$ac_aux_dir/install-sh -c"
1321 elif test -f $ac_dir/install.sh; then
1323 ac_install_sh="$ac_aux_dir/install.sh -c"
1325 elif test -f $ac_dir/shtool; then
1327 ac_install_sh="$ac_aux_dir/shtool install -c"
1331 if test -z "$ac_aux_dir"; then
1332 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1333 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1334 { (exit 1); exit 1; }; }
1336 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1337 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1338 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1340 am__api_version="1.7"
1341 # Find a good install program. We prefer a C program (faster),
1342 # so one script is as good as another. But avoid the broken or
1343 # incompatible versions:
1344 # SysV /etc/install, /usr/sbin/install
1345 # SunOS /usr/etc/install
1346 # IRIX /sbin/install
1348 # AmigaOS /C/install, which installs bootblocks on floppy discs
1349 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1350 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1351 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1352 # OS/2's system install, which has a completely different semantic
1353 # ./install, which can be erroneously created by make from ./install.sh.
1354 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1355 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1356 if test -z "$INSTALL"; then
1357 if test "${ac_cv_path_install+set}" = set; then
1358 echo $ECHO_N "(cached) $ECHO_C" >&6
1360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1364 test -z "$as_dir" && as_dir=.
1365 # Account for people who put trailing slashes in PATH elements.
1367 ./ | .// | /cC/* | \
1368 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1369 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1372 # OSF1 and SCO ODT 3.0 have their own names for install.
1373 # Don't use installbsd from OSF since it installs stuff as root
1375 for ac_prog in ginstall scoinst install; do
1376 for ac_exec_ext in '' $ac_executable_extensions; do
1377 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1378 if test $ac_prog = install &&
1379 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1380 # AIX install. It has an incompatible calling convention.
1382 elif test $ac_prog = install &&
1383 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1384 # program-specific install script used by HP pwplus--don't use.
1387 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1399 if test "${ac_cv_path_install+set}" = set; then
1400 INSTALL=$ac_cv_path_install
1402 # As a last resort, use the slow shell script. We don't cache a
1403 # path for INSTALL within a source directory, because that will
1404 # break other packages using the cache if that directory is
1405 # removed, or if the path is relative.
1406 INSTALL=$ac_install_sh
1409 echo "$as_me:$LINENO: result: $INSTALL" >&5
1410 echo "${ECHO_T}$INSTALL" >&6
1412 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1413 # It thinks the first close brace ends the variable substitution.
1414 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1416 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1418 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1420 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1421 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1424 echo timestamp > conftest.file
1425 # Do `set' in a subshell so we don't clobber the current shell's
1426 # arguments. Must try -L first in case configure is actually a
1427 # symlink; some systems play weird games with the mod time of symlinks
1428 # (eg FreeBSD returns the mod time of the symlink's containing
1431 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1432 if test "$*" = "X"; then
1434 set X `ls -t $srcdir/configure conftest.file`
1437 if test "$*" != "X $srcdir/configure conftest.file" \
1438 && test "$*" != "X conftest.file $srcdir/configure"; then
1440 # If neither matched, then we have a broken ls. This can happen
1441 # if, for instance, CONFIG_SHELL is bash and it inherits a
1442 # broken ls alias from the environment. This has actually
1443 # happened. Such a system could not be considered "sane".
1444 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1445 alias in your environment" >&5
1446 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1447 alias in your environment" >&2;}
1448 { (exit 1); exit 1; }; }
1451 test "$2" = conftest.file
1457 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1458 Check your system clock" >&5
1459 echo "$as_me: error: newly created file is older than distributed files!
1460 Check your system clock" >&2;}
1461 { (exit 1); exit 1; }; }
1463 echo "$as_me:$LINENO: result: yes" >&5
1464 echo "${ECHO_T}yes" >&6
1465 test "$program_prefix" != NONE &&
1466 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1467 # Use a double $ so make ignores it.
1468 test "$program_suffix" != NONE &&
1469 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1470 # Double any \ or $. echo might interpret backslashes.
1471 # By default was `s,x,x', remove it if useless.
1472 cat <<\_ACEOF >conftest.sed
1473 s/[\\$]/&&/g;s/;s,x,x,$//
1475 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1479 # expand $ac_aux_dir to an absolute path
1480 am_aux_dir=`cd $ac_aux_dir && pwd`
1482 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1483 # Use eval to expand $SHELL
1484 if eval "$MISSING --run true"; then
1485 am_missing_run="$MISSING --run "
1488 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1489 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1492 for ac_prog in gawk mawk nawk awk
1494 # Extract the first word of "$ac_prog", so it can be a program name with args.
1495 set dummy $ac_prog; ac_word=$2
1496 echo "$as_me:$LINENO: checking for $ac_word" >&5
1497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1498 if test "${ac_cv_prog_AWK+set}" = set; then
1499 echo $ECHO_N "(cached) $ECHO_C" >&6
1501 if test -n "$AWK"; then
1502 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1508 test -z "$as_dir" && as_dir=.
1509 for ac_exec_ext in '' $ac_executable_extensions; do
1510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1511 ac_cv_prog_AWK="$ac_prog"
1512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1521 if test -n "$AWK"; then
1522 echo "$as_me:$LINENO: result: $AWK" >&5
1523 echo "${ECHO_T}$AWK" >&6
1525 echo "$as_me:$LINENO: result: no" >&5
1526 echo "${ECHO_T}no" >&6
1529 test -n "$AWK" && break
1532 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1533 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1534 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1535 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1536 echo $ECHO_N "(cached) $ECHO_C" >&6
1538 cat >conftest.make <<\_ACEOF
1540 @echo 'ac_maketemp="$(MAKE)"'
1542 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1543 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1544 if test -n "$ac_maketemp"; then
1545 eval ac_cv_prog_make_${ac_make}_set=yes
1547 eval ac_cv_prog_make_${ac_make}_set=no
1551 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1552 echo "$as_me:$LINENO: result: yes" >&5
1553 echo "${ECHO_T}yes" >&6
1556 echo "$as_me:$LINENO: result: no" >&5
1557 echo "${ECHO_T}no" >&6
1558 SET_MAKE="MAKE=${MAKE-make}"
1561 rm -rf .tst 2>/dev/null
1562 mkdir .tst 2>/dev/null
1563 if test -d .tst; then
1568 rmdir .tst 2>/dev/null
1570 # test to see if srcdir already configured
1571 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1572 test -f $srcdir/config.status; then
1573 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1574 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1575 { (exit 1); exit 1; }; }
1578 # test whether we have cygpath
1579 if test -z "$CYGPATH_W"; then
1580 if (cygpath --version) >/dev/null 2>/dev/null; then
1581 CYGPATH_W='cygpath -w'
1588 # Define the identity of the package.
1593 cat >>confdefs.h <<_ACEOF
1594 #define PACKAGE "$PACKAGE"
1598 cat >>confdefs.h <<_ACEOF
1599 #define VERSION "$VERSION"
1602 # Some tools Automake needs.
1604 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1607 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1610 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1613 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1616 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1619 AMTAR=${AMTAR-"${am_missing_run}tar"}
1621 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1623 # Installed binaries are usually stripped using `strip' when the user
1624 # run `make install-strip'. However `strip' might not be the right
1625 # tool to use in cross-compilation environments, therefore Automake
1626 # will honor the `STRIP' environment variable to overrule this program.
1627 if test "$cross_compiling" != no; then
1628 if test -n "$ac_tool_prefix"; then
1629 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1630 set dummy ${ac_tool_prefix}strip; ac_word=$2
1631 echo "$as_me:$LINENO: checking for $ac_word" >&5
1632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1633 if test "${ac_cv_prog_STRIP+set}" = set; then
1634 echo $ECHO_N "(cached) $ECHO_C" >&6
1636 if test -n "$STRIP"; then
1637 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1643 test -z "$as_dir" && as_dir=.
1644 for ac_exec_ext in '' $ac_executable_extensions; do
1645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1646 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655 STRIP=$ac_cv_prog_STRIP
1656 if test -n "$STRIP"; then
1657 echo "$as_me:$LINENO: result: $STRIP" >&5
1658 echo "${ECHO_T}$STRIP" >&6
1660 echo "$as_me:$LINENO: result: no" >&5
1661 echo "${ECHO_T}no" >&6
1665 if test -z "$ac_cv_prog_STRIP"; then
1667 # Extract the first word of "strip", so it can be a program name with args.
1668 set dummy strip; ac_word=$2
1669 echo "$as_me:$LINENO: checking for $ac_word" >&5
1670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1671 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1672 echo $ECHO_N "(cached) $ECHO_C" >&6
1674 if test -n "$ac_ct_STRIP"; then
1675 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1681 test -z "$as_dir" && as_dir=.
1682 for ac_exec_ext in '' $ac_executable_extensions; do
1683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1684 ac_cv_prog_ac_ct_STRIP="strip"
1685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1691 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1694 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1695 if test -n "$ac_ct_STRIP"; then
1696 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1697 echo "${ECHO_T}$ac_ct_STRIP" >&6
1699 echo "$as_me:$LINENO: result: no" >&5
1700 echo "${ECHO_T}no" >&6
1705 STRIP="$ac_cv_prog_STRIP"
1709 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1711 # We need awk for the "check" target. The system "awk" is bad on
1716 ac_config_headers="$ac_config_headers config.h"
1720 ac_config_guess=config/config.guess
1721 ac_config_sub=config/config.sub
1723 # Checks for programs.
1725 ac_cpp='$CPP $CPPFLAGS'
1726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1729 if test -n "$ac_tool_prefix"; then
1730 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1731 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1732 echo "$as_me:$LINENO: checking for $ac_word" >&5
1733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1734 if test "${ac_cv_prog_CC+set}" = set; then
1735 echo $ECHO_N "(cached) $ECHO_C" >&6
1737 if test -n "$CC"; then
1738 ac_cv_prog_CC="$CC" # Let the user override the test.
1740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1744 test -z "$as_dir" && as_dir=.
1745 for ac_exec_ext in '' $ac_executable_extensions; do
1746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1747 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1757 if test -n "$CC"; then
1758 echo "$as_me:$LINENO: result: $CC" >&5
1759 echo "${ECHO_T}$CC" >&6
1761 echo "$as_me:$LINENO: result: no" >&5
1762 echo "${ECHO_T}no" >&6
1766 if test -z "$ac_cv_prog_CC"; then
1768 # Extract the first word of "gcc", so it can be a program name with args.
1769 set dummy gcc; ac_word=$2
1770 echo "$as_me:$LINENO: checking for $ac_word" >&5
1771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1775 if test -n "$ac_ct_CC"; then
1776 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1782 test -z "$as_dir" && as_dir=.
1783 for ac_exec_ext in '' $ac_executable_extensions; do
1784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1785 ac_cv_prog_ac_ct_CC="gcc"
1786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1794 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1795 if test -n "$ac_ct_CC"; then
1796 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1797 echo "${ECHO_T}$ac_ct_CC" >&6
1799 echo "$as_me:$LINENO: result: no" >&5
1800 echo "${ECHO_T}no" >&6
1808 if test -z "$CC"; then
1809 if test -n "$ac_tool_prefix"; then
1810 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1811 set dummy ${ac_tool_prefix}cc; ac_word=$2
1812 echo "$as_me:$LINENO: checking for $ac_word" >&5
1813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1814 if test "${ac_cv_prog_CC+set}" = set; then
1815 echo $ECHO_N "(cached) $ECHO_C" >&6
1817 if test -n "$CC"; then
1818 ac_cv_prog_CC="$CC" # Let the user override the test.
1820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1824 test -z "$as_dir" && as_dir=.
1825 for ac_exec_ext in '' $ac_executable_extensions; do
1826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1827 ac_cv_prog_CC="${ac_tool_prefix}cc"
1828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1837 if test -n "$CC"; then
1838 echo "$as_me:$LINENO: result: $CC" >&5
1839 echo "${ECHO_T}$CC" >&6
1841 echo "$as_me:$LINENO: result: no" >&5
1842 echo "${ECHO_T}no" >&6
1846 if test -z "$ac_cv_prog_CC"; then
1848 # Extract the first word of "cc", so it can be a program name with args.
1849 set dummy cc; ac_word=$2
1850 echo "$as_me:$LINENO: checking for $ac_word" >&5
1851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1852 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1853 echo $ECHO_N "(cached) $ECHO_C" >&6
1855 if test -n "$ac_ct_CC"; then
1856 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1862 test -z "$as_dir" && as_dir=.
1863 for ac_exec_ext in '' $ac_executable_extensions; do
1864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1865 ac_cv_prog_ac_ct_CC="cc"
1866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1874 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1875 if test -n "$ac_ct_CC"; then
1876 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1877 echo "${ECHO_T}$ac_ct_CC" >&6
1879 echo "$as_me:$LINENO: result: no" >&5
1880 echo "${ECHO_T}no" >&6
1889 if test -z "$CC"; then
1890 # Extract the first word of "cc", so it can be a program name with args.
1891 set dummy cc; ac_word=$2
1892 echo "$as_me:$LINENO: checking for $ac_word" >&5
1893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1894 if test "${ac_cv_prog_CC+set}" = set; then
1895 echo $ECHO_N "(cached) $ECHO_C" >&6
1897 if test -n "$CC"; then
1898 ac_cv_prog_CC="$CC" # Let the user override the test.
1901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1905 test -z "$as_dir" && as_dir=.
1906 for ac_exec_ext in '' $ac_executable_extensions; do
1907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1908 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1909 ac_prog_rejected=yes
1913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1919 if test $ac_prog_rejected = yes; then
1920 # We found a bogon in the path, so make sure we never use it.
1921 set dummy $ac_cv_prog_CC
1923 if test $# != 0; then
1924 # We chose a different compiler from the bogus one.
1925 # However, it has the same basename, so the bogon will be chosen
1926 # first if we set CC to just the basename; use the full file name.
1928 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1934 if test -n "$CC"; then
1935 echo "$as_me:$LINENO: result: $CC" >&5
1936 echo "${ECHO_T}$CC" >&6
1938 echo "$as_me:$LINENO: result: no" >&5
1939 echo "${ECHO_T}no" >&6
1943 if test -z "$CC"; then
1944 if test -n "$ac_tool_prefix"; then
1947 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1948 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1949 echo "$as_me:$LINENO: checking for $ac_word" >&5
1950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1951 if test "${ac_cv_prog_CC+set}" = set; then
1952 echo $ECHO_N "(cached) $ECHO_C" >&6
1954 if test -n "$CC"; then
1955 ac_cv_prog_CC="$CC" # Let the user override the test.
1957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1961 test -z "$as_dir" && as_dir=.
1962 for ac_exec_ext in '' $ac_executable_extensions; do
1963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1964 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1974 if test -n "$CC"; then
1975 echo "$as_me:$LINENO: result: $CC" >&5
1976 echo "${ECHO_T}$CC" >&6
1978 echo "$as_me:$LINENO: result: no" >&5
1979 echo "${ECHO_T}no" >&6
1982 test -n "$CC" && break
1985 if test -z "$CC"; then
1989 # Extract the first word of "$ac_prog", so it can be a program name with args.
1990 set dummy $ac_prog; ac_word=$2
1991 echo "$as_me:$LINENO: checking for $ac_word" >&5
1992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1993 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1994 echo $ECHO_N "(cached) $ECHO_C" >&6
1996 if test -n "$ac_ct_CC"; then
1997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2003 test -z "$as_dir" && as_dir=.
2004 for ac_exec_ext in '' $ac_executable_extensions; do
2005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2006 ac_cv_prog_ac_ct_CC="$ac_prog"
2007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2015 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2016 if test -n "$ac_ct_CC"; then
2017 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2018 echo "${ECHO_T}$ac_ct_CC" >&6
2020 echo "$as_me:$LINENO: result: no" >&5
2021 echo "${ECHO_T}no" >&6
2024 test -n "$ac_ct_CC" && break
2033 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2034 See \`config.log' for more details." >&5
2035 echo "$as_me: error: no acceptable C compiler found in \$PATH
2036 See \`config.log' for more details." >&2;}
2037 { (exit 1); exit 1; }; }
2039 # Provide some information about the compiler.
2040 echo "$as_me:$LINENO:" \
2041 "checking for C compiler version" >&5
2042 ac_compiler=`set X $ac_compile; echo $2`
2043 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2044 (eval $ac_compiler --version </dev/null >&5) 2>&5
2046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2047 (exit $ac_status); }
2048 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2049 (eval $ac_compiler -v </dev/null >&5) 2>&5
2051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052 (exit $ac_status); }
2053 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2054 (eval $ac_compiler -V </dev/null >&5) 2>&5
2056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2057 (exit $ac_status); }
2059 cat >conftest.$ac_ext <<_ACEOF
2062 cat confdefs.h >>conftest.$ac_ext
2063 cat >>conftest.$ac_ext <<_ACEOF
2064 /* end confdefs.h. */
2074 ac_clean_files_save=$ac_clean_files
2075 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2076 # Try to create an executable without -o first, disregard a.out.
2077 # It will help us diagnose broken compilers, and finding out an intuition
2079 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2080 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2081 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2082 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2083 (eval $ac_link_default) 2>&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); }; then
2087 # Find the output, starting from the most likely. This scheme is
2088 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2091 # Be careful to initialize this variable, since it used to be cached.
2092 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2094 # b.out is created by i960 compilers.
2095 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2097 test -f "$ac_file" || continue
2099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2102 # This is the source file.
2105 # We found the default executable, but exeext='' is most
2109 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2110 # FIXME: I believe we export ac_cv_exeext for Libtool,
2111 # but it would be cool to find out if it's true. Does anybody
2112 # maintain Libtool? --akim.
2120 echo "$as_me: failed program was:" >&5
2121 sed 's/^/| /' conftest.$ac_ext >&5
2123 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2124 See \`config.log' for more details." >&5
2125 echo "$as_me: error: C compiler cannot create executables
2126 See \`config.log' for more details." >&2;}
2127 { (exit 77); exit 77; }; }
2130 ac_exeext=$ac_cv_exeext
2131 echo "$as_me:$LINENO: result: $ac_file" >&5
2132 echo "${ECHO_T}$ac_file" >&6
2134 # Check the compiler produces executables we can run. If not, either
2135 # the compiler is broken, or we cross compile.
2136 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2137 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2138 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2139 # If not cross compiling, check that we can run a simple program.
2140 if test "$cross_compiling" != yes; then
2141 if { ac_try='./$ac_file'
2142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); }; }; then
2149 if test "$cross_compiling" = maybe; then
2152 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2153 If you meant to cross compile, use \`--host'.
2154 See \`config.log' for more details." >&5
2155 echo "$as_me: error: cannot run C compiled programs.
2156 If you meant to cross compile, use \`--host'.
2157 See \`config.log' for more details." >&2;}
2158 { (exit 1); exit 1; }; }
2162 echo "$as_me:$LINENO: result: yes" >&5
2163 echo "${ECHO_T}yes" >&6
2165 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2166 ac_clean_files=$ac_clean_files_save
2167 # Check the compiler produces executables we can run. If not, either
2168 # the compiler is broken, or we cross compile.
2169 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2170 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2171 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2172 echo "${ECHO_T}$cross_compiling" >&6
2174 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2175 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2177 (eval $ac_link) 2>&5
2179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180 (exit $ac_status); }; then
2181 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2182 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2183 # work properly (i.e., refer to `conftest.exe'), while it won't with
2185 for ac_file in conftest.exe conftest conftest.*; do
2186 test -f "$ac_file" || continue
2188 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2189 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2196 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2197 See \`config.log' for more details." >&5
2198 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2199 See \`config.log' for more details." >&2;}
2200 { (exit 1); exit 1; }; }
2203 rm -f conftest$ac_cv_exeext
2204 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2205 echo "${ECHO_T}$ac_cv_exeext" >&6
2207 rm -f conftest.$ac_ext
2208 EXEEXT=$ac_cv_exeext
2210 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2211 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2212 if test "${ac_cv_objext+set}" = set; then
2213 echo $ECHO_N "(cached) $ECHO_C" >&6
2215 cat >conftest.$ac_ext <<_ACEOF
2218 cat confdefs.h >>conftest.$ac_ext
2219 cat >>conftest.$ac_ext <<_ACEOF
2220 /* end confdefs.h. */
2230 rm -f conftest.o conftest.obj
2231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2232 (eval $ac_compile) 2>&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); }; then
2236 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2238 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2239 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2244 echo "$as_me: failed program was:" >&5
2245 sed 's/^/| /' conftest.$ac_ext >&5
2247 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2248 See \`config.log' for more details." >&5
2249 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2250 See \`config.log' for more details." >&2;}
2251 { (exit 1); exit 1; }; }
2254 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2256 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2257 echo "${ECHO_T}$ac_cv_objext" >&6
2258 OBJEXT=$ac_cv_objext
2260 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2261 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2262 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2263 echo $ECHO_N "(cached) $ECHO_C" >&6
2265 cat >conftest.$ac_ext <<_ACEOF
2268 cat confdefs.h >>conftest.$ac_ext
2269 cat >>conftest.$ac_ext <<_ACEOF
2270 /* end confdefs.h. */
2283 rm -f conftest.$ac_objext
2284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2285 (eval $ac_compile) 2>conftest.er1
2287 grep -v '^ *+' conftest.er1 >conftest.err
2289 cat conftest.err >&5
2290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2291 (exit $ac_status); } &&
2292 { ac_try='test -z "$ac_c_werror_flag"
2293 || test ! -s conftest.err'
2294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); }; } &&
2299 { ac_try='test -s conftest.$ac_objext'
2300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }; }; then
2307 echo "$as_me: failed program was:" >&5
2308 sed 's/^/| /' conftest.$ac_ext >&5
2312 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2313 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2316 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2317 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2318 GCC=`test $ac_compiler_gnu = yes && echo yes`
2319 ac_test_CFLAGS=${CFLAGS+set}
2320 ac_save_CFLAGS=$CFLAGS
2322 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2323 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2324 if test "${ac_cv_prog_cc_g+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 cat >conftest.$ac_ext <<_ACEOF
2330 cat confdefs.h >>conftest.$ac_ext
2331 cat >>conftest.$ac_ext <<_ACEOF
2332 /* end confdefs.h. */
2342 rm -f conftest.$ac_objext
2343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2344 (eval $ac_compile) 2>conftest.er1
2346 grep -v '^ *+' conftest.er1 >conftest.err
2348 cat conftest.err >&5
2349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350 (exit $ac_status); } &&
2351 { ac_try='test -z "$ac_c_werror_flag"
2352 || test ! -s conftest.err'
2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; } &&
2358 { ac_try='test -s conftest.$ac_objext'
2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; }; then
2366 echo "$as_me: failed program was:" >&5
2367 sed 's/^/| /' conftest.$ac_ext >&5
2371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2373 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2374 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2375 if test "$ac_test_CFLAGS" = set; then
2376 CFLAGS=$ac_save_CFLAGS
2377 elif test $ac_cv_prog_cc_g = yes; then
2378 if test "$GCC" = yes; then
2384 if test "$GCC" = yes; then
2390 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2391 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2392 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
2395 ac_cv_prog_cc_stdc=no
2397 cat >conftest.$ac_ext <<_ACEOF
2400 cat confdefs.h >>conftest.$ac_ext
2401 cat >>conftest.$ac_ext <<_ACEOF
2402 /* end confdefs.h. */
2405 #include <sys/types.h>
2406 #include <sys/stat.h>
2407 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2408 struct buf { int x; };
2409 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2410 static char *e (p, i)
2416 static char *f (char * (*g) (char **, int), char **p, ...)
2421 s = g (p, va_arg (v,int));
2426 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2427 function prototypes and stuff, but not '\xHH' hex character constants.
2428 These don't provoke an error unfortunately, instead are silently treated
2429 as 'x'. The following induces an error, until -std1 is added to get
2430 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2431 array size at least. It's necessary to write '\x00'==0 to get something
2432 that's true only with -std1. */
2433 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2435 int test (int i, double x);
2436 struct s1 {int (*f) (int a);};
2437 struct s2 {int (*f) (double a);};
2438 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2444 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2449 # Don't try gcc -ansi; that turns off useful extensions and
2450 # breaks some systems' header files.
2451 # AIX -qlanglvl=ansi
2452 # Ultrix and OSF/1 -std1
2453 # HP-UX 10.20 and later -Ae
2454 # HP-UX older versions -Aa -D_HPUX_SOURCE
2455 # SVR4 -Xc -D__EXTENSIONS__
2456 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2458 CC="$ac_save_CC $ac_arg"
2459 rm -f conftest.$ac_objext
2460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2461 (eval $ac_compile) 2>conftest.er1
2463 grep -v '^ *+' conftest.er1 >conftest.err
2465 cat conftest.err >&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); } &&
2468 { ac_try='test -z "$ac_c_werror_flag"
2469 || test ! -s conftest.err'
2470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; } &&
2475 { ac_try='test -s conftest.$ac_objext'
2476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; }; then
2481 ac_cv_prog_cc_stdc=$ac_arg
2484 echo "$as_me: failed program was:" >&5
2485 sed 's/^/| /' conftest.$ac_ext >&5
2488 rm -f conftest.err conftest.$ac_objext
2490 rm -f conftest.$ac_ext conftest.$ac_objext
2495 case "x$ac_cv_prog_cc_stdc" in
2497 echo "$as_me:$LINENO: result: none needed" >&5
2498 echo "${ECHO_T}none needed" >&6 ;;
2500 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2501 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2502 CC="$CC $ac_cv_prog_cc_stdc" ;;
2505 # Some people use a C++ compiler to compile C. Since we use `exit',
2506 # in C++ we need to declare it. In case someone uses the same compiler
2507 # for both compiling C and C++ we need to have the C++ compiler decide
2508 # the declaration of exit, since it's the most demanding environment.
2509 cat >conftest.$ac_ext <<_ACEOF
2514 rm -f conftest.$ac_objext
2515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2516 (eval $ac_compile) 2>conftest.er1
2518 grep -v '^ *+' conftest.er1 >conftest.err
2520 cat conftest.err >&5
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); } &&
2523 { ac_try='test -z "$ac_c_werror_flag"
2524 || test ! -s conftest.err'
2525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; } &&
2530 { ac_try='test -s conftest.$ac_objext'
2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; }; then
2536 for ac_declaration in \
2538 'extern "C" void std::exit (int) throw (); using std::exit;' \
2539 'extern "C" void std::exit (int); using std::exit;' \
2540 'extern "C" void exit (int) throw ();' \
2541 'extern "C" void exit (int);' \
2544 cat >conftest.$ac_ext <<_ACEOF
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h. */
2560 rm -f conftest.$ac_objext
2561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2562 (eval $ac_compile) 2>conftest.er1
2564 grep -v '^ *+' conftest.er1 >conftest.err
2566 cat conftest.err >&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); } &&
2569 { ac_try='test -z "$ac_c_werror_flag"
2570 || test ! -s conftest.err'
2571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); }; } &&
2576 { ac_try='test -s conftest.$ac_objext'
2577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }; }; then
2584 echo "$as_me: failed program was:" >&5
2585 sed 's/^/| /' conftest.$ac_ext >&5
2589 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2590 cat >conftest.$ac_ext <<_ACEOF
2593 cat confdefs.h >>conftest.$ac_ext
2594 cat >>conftest.$ac_ext <<_ACEOF
2595 /* end confdefs.h. */
2605 rm -f conftest.$ac_objext
2606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2607 (eval $ac_compile) 2>conftest.er1
2609 grep -v '^ *+' conftest.er1 >conftest.err
2611 cat conftest.err >&5
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); } &&
2614 { ac_try='test -z "$ac_c_werror_flag"
2615 || test ! -s conftest.err'
2616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); }; } &&
2621 { ac_try='test -s conftest.$ac_objext'
2622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; }; then
2629 echo "$as_me: failed program was:" >&5
2630 sed 's/^/| /' conftest.$ac_ext >&5
2633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2636 if test -n "$ac_declaration"; then
2637 echo '#ifdef __cplusplus' >>confdefs.h
2638 echo $ac_declaration >>confdefs.h
2639 echo '#endif' >>confdefs.h
2643 echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2649 ac_cpp='$CPP $CPPFLAGS'
2650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2653 DEPDIR="${am__leading_dot}deps"
2655 ac_config_commands="$ac_config_commands depfiles"
2658 am_make=${MAKE-make}
2659 cat > confinc << 'END'
2664 # If we don't find an include directive, just comment out the code.
2665 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2666 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2670 # First try GNU make style include.
2671 echo "include confinc" > confmf
2672 # We grep out `Entering directory' and `Leaving directory'
2673 # messages which can occur if `w' ends up in MAKEFLAGS.
2674 # In particular we don't look at `^make:' because GNU make might
2675 # be invoked under some other name (usually "gmake"), in which
2676 # case it prints its new name instead of `make'.
2677 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2682 # Now try BSD make style include.
2683 if test "$am__include" = "#"; then
2684 echo '.include "confinc"' > confmf
2685 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2686 am__include=.include
2693 echo "$as_me:$LINENO: result: $_am_result" >&5
2694 echo "${ECHO_T}$_am_result" >&6
2695 rm -f confinc confmf
2697 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2698 if test "${enable_dependency_tracking+set}" = set; then
2699 enableval="$enable_dependency_tracking"
2702 if test "x$enable_dependency_tracking" != xno; then
2703 am_depcomp="$ac_aux_dir/depcomp"
2708 if test "x$enable_dependency_tracking" != xno; then
2719 depcc="$CC" am_compiler_list=
2721 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2722 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2723 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2724 echo $ECHO_N "(cached) $ECHO_C" >&6
2726 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2727 # We make a subdir and do the tests there. Otherwise we can end up
2728 # making bogus files that we don't know about and never remove. For
2729 # instance it was reported that on HP-UX the gcc test will end up
2730 # making a dummy file named `D' -- because `-MD' means `put the output
2733 # Copy depcomp to subdir because otherwise we won't find it if we're
2734 # using a relative directory.
2735 cp "$am_depcomp" conftest.dir
2737 # We will build objects and dependencies in a subdirectory because
2738 # it helps to detect inapplicable dependency modes. For instance
2739 # both Tru64's cc and ICC support -MD to output dependencies as a
2740 # side effect of compilation, but ICC will put the dependencies in
2741 # the current directory while Tru64 will put them in the object
2745 am_cv_CC_dependencies_compiler_type=none
2746 if test "$am_compiler_list" = ""; then
2747 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2749 for depmode in $am_compiler_list; do
2750 # Setup a source with many dependencies, because some compilers
2751 # like to wrap large dependency lists on column 80 (with \), and
2752 # we should not choose a depcomp mode which is confused by this.
2754 # We need to recreate these files for each test, as the compiler may
2755 # overwrite some of them when testing with obscure command lines.
2756 # This happens at least with the AIX C compiler.
2758 for i in 1 2 3 4 5 6; do
2759 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2762 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2766 # after this tag, mechanisms are not by side-effect, so they'll
2767 # only be used when explicitly requested
2768 if test "x$enable_dependency_tracking" = xyes; then
2776 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2777 # mode. It turns out that the SunPro C++ compiler does not properly
2778 # handle `-M -o', and we need to detect this.
2779 if depmode=$depmode \
2780 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2781 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2782 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2783 >/dev/null 2>conftest.err &&
2784 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2785 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2786 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2787 # icc doesn't choke on unknown options, it will just issue warnings
2788 # (even with -Werror). So we grep stderr for any message
2789 # that says an option was ignored.
2790 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2791 am_cv_CC_dependencies_compiler_type=$depmode
2800 am_cv_CC_dependencies_compiler_type=none
2804 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2805 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2806 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2811 test "x$enable_dependency_tracking" != xno \
2812 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2814 am__fastdepCC_FALSE='#'
2816 am__fastdepCC_TRUE='#'
2817 am__fastdepCC_FALSE=
2821 if test -n "$ac_tool_prefix"; then
2822 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2823 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2824 echo "$as_me:$LINENO: checking for $ac_word" >&5
2825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2826 if test "${ac_cv_prog_RANLIB+set}" = set; then
2827 echo $ECHO_N "(cached) $ECHO_C" >&6
2829 if test -n "$RANLIB"; then
2830 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2839 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2848 RANLIB=$ac_cv_prog_RANLIB
2849 if test -n "$RANLIB"; then
2850 echo "$as_me:$LINENO: result: $RANLIB" >&5
2851 echo "${ECHO_T}$RANLIB" >&6
2853 echo "$as_me:$LINENO: result: no" >&5
2854 echo "${ECHO_T}no" >&6
2858 if test -z "$ac_cv_prog_RANLIB"; then
2859 ac_ct_RANLIB=$RANLIB
2860 # Extract the first word of "ranlib", so it can be a program name with args.
2861 set dummy ranlib; ac_word=$2
2862 echo "$as_me:$LINENO: checking for $ac_word" >&5
2863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2864 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2867 if test -n "$ac_ct_RANLIB"; then
2868 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 test -z "$as_dir" && as_dir=.
2875 for ac_exec_ext in '' $ac_executable_extensions; do
2876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2877 ac_cv_prog_ac_ct_RANLIB="ranlib"
2878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2884 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2887 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2888 if test -n "$ac_ct_RANLIB"; then
2889 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2890 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2892 echo "$as_me:$LINENO: result: no" >&5
2893 echo "${ECHO_T}no" >&6
2896 RANLIB=$ac_ct_RANLIB
2898 RANLIB="$ac_cv_prog_RANLIB"
2902 # Checks for header files.
2905 ac_cpp='$CPP $CPPFLAGS'
2906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2909 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2910 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2911 # On Suns, sometimes $CPP names a directory.
2912 if test -n "$CPP" && test -d "$CPP"; then
2915 if test -z "$CPP"; then
2916 if test "${ac_cv_prog_CPP+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2919 # Double quotes because CPP needs to be expanded
2920 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2923 for ac_c_preproc_warn_flag in '' yes
2925 # Use a header file that comes with gcc, so configuring glibc
2926 # with a fresh cross-compiler works.
2927 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2928 # <limits.h> exists even on freestanding compilers.
2929 # On the NeXT, cc -E runs the code through the compiler's parser,
2930 # not just through cpp. "Syntax error" is here to catch this case.
2931 cat >conftest.$ac_ext <<_ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h. */
2938 # include <limits.h>
2940 # include <assert.h>
2944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2947 grep -v '^ *+' conftest.er1 >conftest.err
2949 cat conftest.err >&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); } >/dev/null; then
2952 if test -s conftest.err; then
2953 ac_cpp_err=$ac_c_preproc_warn_flag
2954 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2961 if test -z "$ac_cpp_err"; then
2964 echo "$as_me: failed program was:" >&5
2965 sed 's/^/| /' conftest.$ac_ext >&5
2967 # Broken: fails on valid input.
2970 rm -f conftest.err conftest.$ac_ext
2972 # OK, works on sane cases. Now check whether non-existent headers
2973 # can be detected and how.
2974 cat >conftest.$ac_ext <<_ACEOF
2977 cat confdefs.h >>conftest.$ac_ext
2978 cat >>conftest.$ac_ext <<_ACEOF
2979 /* end confdefs.h. */
2980 #include <ac_nonexistent.h>
2982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2985 grep -v '^ *+' conftest.er1 >conftest.err
2987 cat conftest.err >&5
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); } >/dev/null; then
2990 if test -s conftest.err; then
2991 ac_cpp_err=$ac_c_preproc_warn_flag
2992 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2999 if test -z "$ac_cpp_err"; then
3000 # Broken: success on invalid input.
3003 echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3006 # Passes both tests.
3010 rm -f conftest.err conftest.$ac_ext
3013 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3014 rm -f conftest.err conftest.$ac_ext
3015 if $ac_preproc_ok; then
3027 echo "$as_me:$LINENO: result: $CPP" >&5
3028 echo "${ECHO_T}$CPP" >&6
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
3125 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3126 See \`config.log' for more details." >&5
3127 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3128 See \`config.log' for more details." >&2;}
3129 { (exit 1); exit 1; }; }
3133 ac_cpp='$CPP $CPPFLAGS'
3134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3139 echo "$as_me:$LINENO: checking for egrep" >&5
3140 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3141 if test "${ac_cv_prog_egrep+set}" = set; then
3142 echo $ECHO_N "(cached) $ECHO_C" >&6
3144 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3145 then ac_cv_prog_egrep='grep -E'
3146 else ac_cv_prog_egrep='egrep'
3149 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3150 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3151 EGREP=$ac_cv_prog_egrep
3154 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3155 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3156 if test "${ac_cv_header_stdc+set}" = set; then
3157 echo $ECHO_N "(cached) $ECHO_C" >&6
3159 cat >conftest.$ac_ext <<_ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h. */
3178 rm -f conftest.$ac_objext
3179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3180 (eval $ac_compile) 2>conftest.er1
3182 grep -v '^ *+' conftest.er1 >conftest.err
3184 cat conftest.err >&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); } &&
3187 { ac_try='test -z "$ac_c_werror_flag"
3188 || test ! -s conftest.err'
3189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); }; } &&
3194 { ac_try='test -s conftest.$ac_objext'
3195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); }; }; then
3200 ac_cv_header_stdc=yes
3202 echo "$as_me: failed program was:" >&5
3203 sed 's/^/| /' conftest.$ac_ext >&5
3205 ac_cv_header_stdc=no
3207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3209 if test $ac_cv_header_stdc = yes; then
3210 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3211 cat >conftest.$ac_ext <<_ACEOF
3214 cat confdefs.h >>conftest.$ac_ext
3215 cat >>conftest.$ac_ext <<_ACEOF
3216 /* end confdefs.h. */
3220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3221 $EGREP "memchr" >/dev/null 2>&1; then
3224 ac_cv_header_stdc=no
3230 if test $ac_cv_header_stdc = yes; then
3231 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3232 cat >conftest.$ac_ext <<_ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h. */
3241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3242 $EGREP "free" >/dev/null 2>&1; then
3245 ac_cv_header_stdc=no
3251 if test $ac_cv_header_stdc = yes; then
3252 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3253 if test "$cross_compiling" = yes; then
3256 cat >conftest.$ac_ext <<_ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h. */
3263 #if ((' ' & 0x0FF) == 0x020)
3264 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3265 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3267 # define ISLOWER(c) \
3268 (('a' <= (c) && (c) <= 'i') \
3269 || ('j' <= (c) && (c) <= 'r') \
3270 || ('s' <= (c) && (c) <= 'z'))
3271 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3274 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3279 for (i = 0; i < 256; i++)
3280 if (XOR (islower (i), ISLOWER (i))
3281 || toupper (i) != TOUPPER (i))
3286 rm -f conftest$ac_exeext
3287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3288 (eval $ac_link) 2>&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }; }; then
3299 echo "$as_me: program exited with status $ac_status" >&5
3300 echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3304 ac_cv_header_stdc=no
3306 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3310 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3311 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3312 if test $ac_cv_header_stdc = yes; then
3314 cat >>confdefs.h <<\_ACEOF
3315 #define STDC_HEADERS 1
3320 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
3321 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
3322 if test "${ac_cv_header_sys_wait_h+set}" = set; then
3323 echo $ECHO_N "(cached) $ECHO_C" >&6
3325 cat >conftest.$ac_ext <<_ACEOF
3328 cat confdefs.h >>conftest.$ac_ext
3329 cat >>conftest.$ac_ext <<_ACEOF
3330 /* end confdefs.h. */
3331 #include <sys/types.h>
3332 #include <sys/wait.h>
3334 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
3337 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
3345 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
3350 rm -f conftest.$ac_objext
3351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3352 (eval $ac_compile) 2>conftest.er1
3354 grep -v '^ *+' conftest.er1 >conftest.err
3356 cat conftest.err >&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); } &&
3359 { ac_try='test -z "$ac_c_werror_flag"
3360 || test ! -s conftest.err'
3361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); }; } &&
3366 { ac_try='test -s conftest.$ac_objext'
3367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; }; then
3372 ac_cv_header_sys_wait_h=yes
3374 echo "$as_me: failed program was:" >&5
3375 sed 's/^/| /' conftest.$ac_ext >&5
3377 ac_cv_header_sys_wait_h=no
3379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3381 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
3382 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
3383 if test $ac_cv_header_sys_wait_h = yes; then
3385 cat >>confdefs.h <<\_ACEOF
3386 #define HAVE_SYS_WAIT_H 1
3391 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3401 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3402 inttypes.h stdint.h unistd.h
3404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3405 echo "$as_me:$LINENO: checking for $ac_header" >&5
3406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 cat >conftest.$ac_ext <<_ACEOF
3413 cat confdefs.h >>conftest.$ac_ext
3414 cat >>conftest.$ac_ext <<_ACEOF
3415 /* end confdefs.h. */
3416 $ac_includes_default
3418 #include <$ac_header>
3420 rm -f conftest.$ac_objext
3421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3422 (eval $ac_compile) 2>conftest.er1
3424 grep -v '^ *+' conftest.er1 >conftest.err
3426 cat conftest.err >&5
3427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3428 (exit $ac_status); } &&
3429 { ac_try='test -z "$ac_c_werror_flag"
3430 || test ! -s conftest.err'
3431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435 (exit $ac_status); }; } &&
3436 { ac_try='test -s conftest.$ac_objext'
3437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441 (exit $ac_status); }; }; then
3442 eval "$as_ac_Header=yes"
3444 echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3447 eval "$as_ac_Header=no"
3449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3451 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3452 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3454 cat >>confdefs.h <<_ACEOF
3455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3473 for ac_header in arpa/inet.h fcntl.h malloc.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h syslog.h unistd.h
3475 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3477 echo "$as_me:$LINENO: checking for $ac_header" >&5
3478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3480 echo $ECHO_N "(cached) $ECHO_C" >&6
3482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3485 # Is the header compilable?
3486 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3488 cat >conftest.$ac_ext <<_ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h. */
3494 $ac_includes_default
3495 #include <$ac_header>
3497 rm -f conftest.$ac_objext
3498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3499 (eval $ac_compile) 2>conftest.er1
3501 grep -v '^ *+' conftest.er1 >conftest.err
3503 cat conftest.err >&5
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); } &&
3506 { ac_try='test -z "$ac_c_werror_flag"
3507 || test ! -s conftest.err'
3508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); }; } &&
3513 { ac_try='test -s conftest.$ac_objext'
3514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518 (exit $ac_status); }; }; then
3519 ac_header_compiler=yes
3521 echo "$as_me: failed program was:" >&5
3522 sed 's/^/| /' conftest.$ac_ext >&5
3524 ac_header_compiler=no
3526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3527 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3528 echo "${ECHO_T}$ac_header_compiler" >&6
3530 # Is the header present?
3531 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3532 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3533 cat >conftest.$ac_ext <<_ACEOF
3536 cat confdefs.h >>conftest.$ac_ext
3537 cat >>conftest.$ac_ext <<_ACEOF
3538 /* end confdefs.h. */
3539 #include <$ac_header>
3541 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3542 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3544 grep -v '^ *+' conftest.er1 >conftest.err
3546 cat conftest.err >&5
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); } >/dev/null; then
3549 if test -s conftest.err; then
3550 ac_cpp_err=$ac_c_preproc_warn_flag
3551 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3558 if test -z "$ac_cpp_err"; then
3559 ac_header_preproc=yes
3561 echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3564 ac_header_preproc=no
3566 rm -f conftest.err conftest.$ac_ext
3567 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3568 echo "${ECHO_T}$ac_header_preproc" >&6
3570 # So? What about this header?
3571 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3573 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3574 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3576 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3577 ac_header_preproc=yes
3580 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3581 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3582 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3583 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3584 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3585 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3586 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3587 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3589 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3590 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3591 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3594 ## ------------------------------------------ ##
3595 ## Report this to the AC_PACKAGE_NAME lists. ##
3596 ## ------------------------------------------ ##
3599 sed "s/^/$as_me: WARNING: /" >&2
3602 echo "$as_me:$LINENO: checking for $ac_header" >&5
3603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3605 echo $ECHO_N "(cached) $ECHO_C" >&6
3607 eval "$as_ac_Header=\$ac_header_preproc"
3609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3614 cat >>confdefs.h <<_ACEOF
3615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3623 # Checks for typedefs, structures, and compiler characteristics.
3624 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3625 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3626 if test "${ac_cv_c_const+set}" = set; then
3627 echo $ECHO_N "(cached) $ECHO_C" >&6
3629 cat >conftest.$ac_ext <<_ACEOF
3632 cat confdefs.h >>conftest.$ac_ext
3633 cat >>conftest.$ac_ext <<_ACEOF
3634 /* end confdefs.h. */
3639 /* FIXME: Include the comments suggested by Paul. */
3641 /* Ultrix mips cc rejects this. */
3642 typedef int charset[2];
3644 /* SunOS 4.1.1 cc rejects this. */
3645 char const *const *ccp;
3647 /* NEC SVR4.0.2 mips cc rejects this. */
3648 struct point {int x, y;};
3649 static struct point const zero = {0,0};
3650 /* AIX XL C 1.02.0.0 rejects this.
3651 It does not let you subtract one const X* pointer from another in
3652 an arm of an if-expression whose if-part is not a constant
3654 const char *g = "string";
3655 ccp = &g + (g ? g-g : 0);
3656 /* HPUX 7.0 cc rejects these. */
3659 ccp = (char const *const *) p;
3660 { /* SCO 3.2v4 cc rejects this. */
3662 char const *s = 0 ? (char *) 0 : (char const *) 0;
3666 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3668 const int *foo = &x[0];
3671 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3672 typedef const int *iptr;
3676 { /* AIX XL C 1.02.0.0 rejects this saying
3677 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3678 struct s { int j; const int *ap[3]; };
3679 struct s *b; b->j = 5;
3681 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3690 rm -f conftest.$ac_objext
3691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3692 (eval $ac_compile) 2>conftest.er1
3694 grep -v '^ *+' conftest.er1 >conftest.err
3696 cat conftest.err >&5
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); } &&
3699 { ac_try='test -z "$ac_c_werror_flag"
3700 || test ! -s conftest.err'
3701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); }; } &&
3706 { ac_try='test -s conftest.$ac_objext'
3707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); }; }; then
3714 echo "$as_me: failed program was:" >&5
3715 sed 's/^/| /' conftest.$ac_ext >&5
3719 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3721 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3722 echo "${ECHO_T}$ac_cv_c_const" >&6
3723 if test $ac_cv_c_const = no; then
3725 cat >>confdefs.h <<\_ACEOF
3731 echo "$as_me:$LINENO: checking for pid_t" >&5
3732 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
3733 if test "${ac_cv_type_pid_t+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3736 cat >conftest.$ac_ext <<_ACEOF
3739 cat confdefs.h >>conftest.$ac_ext
3740 cat >>conftest.$ac_ext <<_ACEOF
3741 /* end confdefs.h. */
3742 $ac_includes_default
3754 rm -f conftest.$ac_objext
3755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3756 (eval $ac_compile) 2>conftest.er1
3758 grep -v '^ *+' conftest.er1 >conftest.err
3760 cat conftest.err >&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); } &&
3763 { ac_try='test -z "$ac_c_werror_flag"
3764 || test ! -s conftest.err'
3765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); }; } &&
3770 { ac_try='test -s conftest.$ac_objext'
3771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); }; }; then
3776 ac_cv_type_pid_t=yes
3778 echo "$as_me: failed program was:" >&5
3779 sed 's/^/| /' conftest.$ac_ext >&5
3783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3785 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
3786 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
3787 if test $ac_cv_type_pid_t = yes; then
3791 cat >>confdefs.h <<_ACEOF
3797 echo "$as_me:$LINENO: checking for size_t" >&5
3798 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3799 if test "${ac_cv_type_size_t+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3802 cat >conftest.$ac_ext <<_ACEOF
3805 cat confdefs.h >>conftest.$ac_ext
3806 cat >>conftest.$ac_ext <<_ACEOF
3807 /* end confdefs.h. */
3808 $ac_includes_default
3814 if (sizeof (size_t))
3820 rm -f conftest.$ac_objext
3821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3822 (eval $ac_compile) 2>conftest.er1
3824 grep -v '^ *+' conftest.er1 >conftest.err
3826 cat conftest.err >&5
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); } &&
3829 { ac_try='test -z "$ac_c_werror_flag"
3830 || test ! -s conftest.err'
3831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); }; } &&
3836 { ac_try='test -s conftest.$ac_objext'
3837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); }; }; then
3842 ac_cv_type_size_t=yes
3844 echo "$as_me: failed program was:" >&5
3845 sed 's/^/| /' conftest.$ac_ext >&5
3847 ac_cv_type_size_t=no
3849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3851 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3852 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3853 if test $ac_cv_type_size_t = yes; then
3857 cat >>confdefs.h <<_ACEOF
3858 #define size_t unsigned
3863 echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
3864 echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
3865 if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 cat >conftest.$ac_ext <<_ACEOF
3871 cat confdefs.h >>conftest.$ac_ext
3872 cat >>conftest.$ac_ext <<_ACEOF
3873 /* end confdefs.h. */
3875 #include <sys/types.h>
3876 #include <sys/socket.h>
3882 static struct sockaddr ac_aggr;
3889 rm -f conftest.$ac_objext
3890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3891 (eval $ac_compile) 2>conftest.er1
3893 grep -v '^ *+' conftest.er1 >conftest.err
3895 cat conftest.err >&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); } &&
3898 { ac_try='test -z "$ac_c_werror_flag"
3899 || test ! -s conftest.err'
3900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); }; } &&
3905 { ac_try='test -s conftest.$ac_objext'
3906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); }; }; then
3911 ac_cv_member_struct_sockaddr_sa_len=yes
3913 echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.$ac_ext >&5
3916 cat >conftest.$ac_ext <<_ACEOF
3919 cat confdefs.h >>conftest.$ac_ext
3920 cat >>conftest.$ac_ext <<_ACEOF
3921 /* end confdefs.h. */
3923 #include <sys/types.h>
3924 #include <sys/socket.h>
3930 static struct sockaddr ac_aggr;
3931 if (sizeof ac_aggr.sa_len)
3937 rm -f conftest.$ac_objext
3938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3939 (eval $ac_compile) 2>conftest.er1
3941 grep -v '^ *+' conftest.er1 >conftest.err
3943 cat conftest.err >&5
3944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945 (exit $ac_status); } &&
3946 { ac_try='test -z "$ac_c_werror_flag"
3947 || test ! -s conftest.err'
3948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); }; } &&
3953 { ac_try='test -s conftest.$ac_objext'
3954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); }; }; then
3959 ac_cv_member_struct_sockaddr_sa_len=yes
3961 echo "$as_me: failed program was:" >&5
3962 sed 's/^/| /' conftest.$ac_ext >&5
3964 ac_cv_member_struct_sockaddr_sa_len=no
3966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3970 echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
3971 echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
3972 if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
3974 cat >>confdefs.h <<\_ACEOF
3975 #define HAVE_SA_LEN 1
3981 # Checks for library functions.
3982 echo "$as_me:$LINENO: checking for working memcmp" >&5
3983 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
3984 if test "${ac_cv_func_memcmp_working+set}" = set; then
3985 echo $ECHO_N "(cached) $ECHO_C" >&6
3987 if test "$cross_compiling" = yes; then
3988 ac_cv_func_memcmp_working=no
3990 cat >conftest.$ac_ext <<_ACEOF
3993 cat confdefs.h >>conftest.$ac_ext
3994 cat >>conftest.$ac_ext <<_ACEOF
3995 /* end confdefs.h. */
3996 $ac_includes_default
4001 /* Some versions of memcmp are not 8-bit clean. */
4002 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
4003 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
4006 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
4007 or more and with at least one buffer not starting on a 4-byte boundary.
4008 William Lewis provided this test program. */
4013 for (i = 0; i < 4; i++)
4017 strcpy (a, "--------01111111");
4018 strcpy (b, "--------10000000");
4019 if (memcmp (a, b, 16) >= 0)
4029 rm -f conftest$ac_exeext
4030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4031 (eval $ac_link) 2>&5
4033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); }; }; then
4040 ac_cv_func_memcmp_working=yes
4042 echo "$as_me: program exited with status $ac_status" >&5
4043 echo "$as_me: failed program was:" >&5
4044 sed 's/^/| /' conftest.$ac_ext >&5
4047 ac_cv_func_memcmp_working=no
4049 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4052 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
4053 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
4054 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
4055 "memcmp.$ac_objext" | \
4056 *" memcmp.$ac_objext" | \
4057 "memcmp.$ac_objext "* | \
4058 *" memcmp.$ac_objext "* ) ;;
4059 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
4063 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4064 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4065 if test "${ac_cv_type_signal+set}" = set; then
4066 echo $ECHO_N "(cached) $ECHO_C" >&6
4068 cat >conftest.$ac_ext <<_ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h. */
4074 #include <sys/types.h>
4080 extern "C" void (*signal (int, void (*)(int)))(int);
4082 void (*signal ()) ();
4093 rm -f conftest.$ac_objext
4094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4095 (eval $ac_compile) 2>conftest.er1
4097 grep -v '^ *+' conftest.er1 >conftest.err
4099 cat conftest.err >&5
4100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4101 (exit $ac_status); } &&
4102 { ac_try='test -z "$ac_c_werror_flag"
4103 || test ! -s conftest.err'
4104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4108 (exit $ac_status); }; } &&
4109 { ac_try='test -s conftest.$ac_objext'
4110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); }; }; then
4115 ac_cv_type_signal=void
4117 echo "$as_me: failed program was:" >&5
4118 sed 's/^/| /' conftest.$ac_ext >&5
4120 ac_cv_type_signal=int
4122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4124 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4125 echo "${ECHO_T}$ac_cv_type_signal" >&6
4127 cat >>confdefs.h <<_ACEOF
4128 #define RETSIGTYPE $ac_cv_type_signal
4140 for ac_func in alarm inet_ntoa socket strtol sysinfo fork malloc free
4142 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4143 echo "$as_me:$LINENO: checking for $ac_func" >&5
4144 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4145 if eval "test \"\${$as_ac_var+set}\" = set"; then
4146 echo $ECHO_N "(cached) $ECHO_C" >&6
4148 cat >conftest.$ac_ext <<_ACEOF
4151 cat confdefs.h >>conftest.$ac_ext
4152 cat >>conftest.$ac_ext <<_ACEOF
4153 /* end confdefs.h. */
4154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4156 #define $ac_func innocuous_$ac_func
4158 /* System header to define __stub macros and hopefully few prototypes,
4159 which can conflict with char $ac_func (); below.
4160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4161 <limits.h> exists even on freestanding compilers. */
4164 # include <limits.h>
4166 # include <assert.h>
4171 /* Override any gcc2 internal prototype to avoid an error. */
4176 /* We use char because int might match the return type of a gcc2
4177 builtin and then its argument prototype would still apply. */
4179 /* The GNU C library defines this for functions which it implements
4180 to always fail with ENOSYS. Some functions are actually named
4181 something starting with __ and the normal name is an alias. */
4182 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4185 char (*f) () = $ac_func;
4194 return f != $ac_func;
4199 rm -f conftest.$ac_objext conftest$ac_exeext
4200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4201 (eval $ac_link) 2>conftest.er1
4203 grep -v '^ *+' conftest.er1 >conftest.err
4205 cat conftest.err >&5
4206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4207 (exit $ac_status); } &&
4208 { ac_try='test -z "$ac_c_werror_flag"
4209 || test ! -s conftest.err'
4210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4214 (exit $ac_status); }; } &&
4215 { ac_try='test -s conftest$ac_exeext'
4216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220 (exit $ac_status); }; }; then
4221 eval "$as_ac_var=yes"
4223 echo "$as_me: failed program was:" >&5
4224 sed 's/^/| /' conftest.$ac_ext >&5
4226 eval "$as_ac_var=no"
4228 rm -f conftest.err conftest.$ac_objext \
4229 conftest$ac_exeext conftest.$ac_ext
4231 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4232 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4233 if test `eval echo '${'$as_ac_var'}'` = yes; then
4234 cat >>confdefs.h <<_ACEOF
4235 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4242 ALL_LINGUAS="uk fr pl ro nl tr"
4246 if test -n "$ac_aux_dir"; then
4247 case "$ac_aux_dir" in
4248 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4249 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4252 if test -z "$MKINSTALLDIRS"; then
4253 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4258 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4259 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
4260 # Check whether --enable-nls or --disable-nls was given.
4261 if test "${enable_nls+set}" = set; then
4262 enableval="$enable_nls"
4267 echo "$as_me:$LINENO: result: $USE_NLS" >&5
4268 echo "${ECHO_T}$USE_NLS" >&6
4275 # Prepare PATH_SEPARATOR.
4276 # The user is always right.
4277 if test "${PATH_SEPARATOR+set}" != set; then
4278 echo "#! /bin/sh" >conf$$.sh
4279 echo "exit 0" >>conf$$.sh
4281 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4289 # Find out how to test for executable files. Don't use a zero-byte file,
4290 # as systems may use methods other than mode bits to determine executability.
4291 cat >conf$$.file <<_ASEOF
4295 chmod +x conf$$.file
4296 if test -x conf$$.file >/dev/null 2>&1; then
4297 ac_executable_p="test -x"
4299 ac_executable_p="test -f"
4303 # Extract the first word of "msgfmt", so it can be a program name with args.
4304 set dummy msgfmt; ac_word=$2
4305 echo "$as_me:$LINENO: checking for $ac_word" >&5
4306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4307 if test "${ac_cv_path_MSGFMT+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4312 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4315 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4316 for ac_dir in $PATH; do
4318 test -z "$ac_dir" && ac_dir=.
4319 for ac_exec_ext in '' $ac_executable_extensions; do
4320 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4321 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4322 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4323 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4330 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4334 MSGFMT="$ac_cv_path_MSGFMT"
4335 if test "$MSGFMT" != ":"; then
4336 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4337 echo "${ECHO_T}$MSGFMT" >&6
4339 echo "$as_me:$LINENO: result: no" >&5
4340 echo "${ECHO_T}no" >&6
4343 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4344 set dummy gmsgfmt; ac_word=$2
4345 echo "$as_me:$LINENO: checking for $ac_word" >&5
4346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4347 if test "${ac_cv_path_GMSGFMT+set}" = set; then
4348 echo $ECHO_N "(cached) $ECHO_C" >&6
4352 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 test -z "$as_dir" && as_dir=.
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4362 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4373 GMSGFMT=$ac_cv_path_GMSGFMT
4375 if test -n "$GMSGFMT"; then
4376 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4377 echo "${ECHO_T}$GMSGFMT" >&6
4379 echo "$as_me:$LINENO: result: no" >&5
4380 echo "${ECHO_T}no" >&6
4385 # Prepare PATH_SEPARATOR.
4386 # The user is always right.
4387 if test "${PATH_SEPARATOR+set}" != set; then
4388 echo "#! /bin/sh" >conf$$.sh
4389 echo "exit 0" >>conf$$.sh
4391 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4399 # Find out how to test for executable files. Don't use a zero-byte file,
4400 # as systems may use methods other than mode bits to determine executability.
4401 cat >conf$$.file <<_ASEOF
4405 chmod +x conf$$.file
4406 if test -x conf$$.file >/dev/null 2>&1; then
4407 ac_executable_p="test -x"
4409 ac_executable_p="test -f"
4413 # Extract the first word of "xgettext", so it can be a program name with args.
4414 set dummy xgettext; ac_word=$2
4415 echo "$as_me:$LINENO: checking for $ac_word" >&5
4416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4417 if test "${ac_cv_path_XGETTEXT+set}" = set; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
4422 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4425 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4426 for ac_dir in $PATH; do
4428 test -z "$ac_dir" && ac_dir=.
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4431 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4432 (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
4433 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4440 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4444 XGETTEXT="$ac_cv_path_XGETTEXT"
4445 if test "$XGETTEXT" != ":"; then
4446 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4447 echo "${ECHO_T}$XGETTEXT" >&6
4449 echo "$as_me:$LINENO: result: no" >&5
4450 echo "${ECHO_T}no" >&6
4456 # Prepare PATH_SEPARATOR.
4457 # The user is always right.
4458 if test "${PATH_SEPARATOR+set}" != set; then
4459 echo "#! /bin/sh" >conf$$.sh
4460 echo "exit 0" >>conf$$.sh
4462 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4470 # Find out how to test for executable files. Don't use a zero-byte file,
4471 # as systems may use methods other than mode bits to determine executability.
4472 cat >conf$$.file <<_ASEOF
4476 chmod +x conf$$.file
4477 if test -x conf$$.file >/dev/null 2>&1; then
4478 ac_executable_p="test -x"
4480 ac_executable_p="test -f"
4484 # Extract the first word of "msgmerge", so it can be a program name with args.
4485 set dummy msgmerge; ac_word=$2
4486 echo "$as_me:$LINENO: checking for $ac_word" >&5
4487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4488 if test "${ac_cv_path_MSGMERGE+set}" = set; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4493 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4496 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4497 for ac_dir in $PATH; do
4499 test -z "$ac_dir" && ac_dir=.
4500 for ac_exec_ext in '' $ac_executable_extensions; do
4501 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4502 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4503 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4510 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4514 MSGMERGE="$ac_cv_path_MSGMERGE"
4515 if test "$MSGMERGE" != ":"; then
4516 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4517 echo "${ECHO_T}$MSGMERGE" >&6
4519 echo "$as_me:$LINENO: result: no" >&5
4520 echo "${ECHO_T}no" >&6
4524 if test "$GMSGFMT" != ":"; then
4525 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4526 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4529 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
4530 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4531 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
4536 if test "$XGETTEXT" != ":"; then
4537 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4538 (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
4541 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4542 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
4548 ac_config_commands="$ac_config_commands default-1"
4551 # Make sure we can run config.sub.
4552 $ac_config_sub sun4 >/dev/null 2>&1 ||
4553 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4554 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4555 { (exit 1); exit 1; }; }
4557 echo "$as_me:$LINENO: checking build system type" >&5
4558 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4559 if test "${ac_cv_build+set}" = set; then
4560 echo $ECHO_N "(cached) $ECHO_C" >&6
4562 ac_cv_build_alias=$build_alias
4563 test -z "$ac_cv_build_alias" &&
4564 ac_cv_build_alias=`$ac_config_guess`
4565 test -z "$ac_cv_build_alias" &&
4566 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4567 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4568 { (exit 1); exit 1; }; }
4569 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4570 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4571 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4572 { (exit 1); exit 1; }; }
4575 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4576 echo "${ECHO_T}$ac_cv_build" >&6
4578 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4579 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4580 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4583 echo "$as_me:$LINENO: checking host system type" >&5
4584 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4585 if test "${ac_cv_host+set}" = set; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4588 ac_cv_host_alias=$host_alias
4589 test -z "$ac_cv_host_alias" &&
4590 ac_cv_host_alias=$ac_cv_build_alias
4591 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4592 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4593 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4594 { (exit 1); exit 1; }; }
4597 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4598 echo "${ECHO_T}$ac_cv_host" >&6
4600 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4601 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4602 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4606 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4607 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
4608 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4611 ac_check_lib_save_LIBS=$LIBS
4612 LIBS="-lcposix $LIBS"
4613 cat >conftest.$ac_ext <<_ACEOF
4616 cat confdefs.h >>conftest.$ac_ext
4617 cat >>conftest.$ac_ext <<_ACEOF
4618 /* end confdefs.h. */
4620 /* Override any gcc2 internal prototype to avoid an error. */
4624 /* We use char because int might match the return type of a gcc2
4625 builtin and then its argument prototype would still apply. */
4635 rm -f conftest.$ac_objext conftest$ac_exeext
4636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4637 (eval $ac_link) 2>conftest.er1
4639 grep -v '^ *+' conftest.er1 >conftest.err
4641 cat conftest.err >&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); } &&
4644 { ac_try='test -z "$ac_c_werror_flag"
4645 || test ! -s conftest.err'
4646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4650 (exit $ac_status); }; } &&
4651 { ac_try='test -s conftest$ac_exeext'
4652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; }; then
4657 ac_cv_lib_cposix_strerror=yes
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4662 ac_cv_lib_cposix_strerror=no
4664 rm -f conftest.err conftest.$ac_objext \
4665 conftest$ac_exeext conftest.$ac_ext
4666 LIBS=$ac_check_lib_save_LIBS
4668 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4669 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
4670 if test $ac_cv_lib_cposix_strerror = yes; then
4671 LIBS="$LIBS -lcposix"
4677 echo "$as_me:$LINENO: checking for signed" >&5
4678 echo $ECHO_N "checking for signed... $ECHO_C" >&6
4679 if test "${bh_cv_c_signed+set}" = set; then
4680 echo $ECHO_N "(cached) $ECHO_C" >&6
4682 cat >conftest.$ac_ext <<_ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4697 rm -f conftest.$ac_objext
4698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4699 (eval $ac_compile) 2>conftest.er1
4701 grep -v '^ *+' conftest.er1 >conftest.err
4703 cat conftest.err >&5
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); } &&
4706 { ac_try='test -z "$ac_c_werror_flag"
4707 || test ! -s conftest.err'
4708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4712 (exit $ac_status); }; } &&
4713 { ac_try='test -s conftest.$ac_objext'
4714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); }; }; then
4721 echo "$as_me: failed program was:" >&5
4722 sed 's/^/| /' conftest.$ac_ext >&5
4726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4728 echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
4729 echo "${ECHO_T}$bh_cv_c_signed" >&6
4730 if test $bh_cv_c_signed = no; then
4732 cat >>confdefs.h <<\_ACEOF
4738 echo "$as_me:$LINENO: checking for inline" >&5
4739 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4740 if test "${ac_cv_c_inline+set}" = set; then
4741 echo $ECHO_N "(cached) $ECHO_C" >&6
4744 for ac_kw in inline __inline__ __inline; do
4745 cat >conftest.$ac_ext <<_ACEOF
4748 cat confdefs.h >>conftest.$ac_ext
4749 cat >>conftest.$ac_ext <<_ACEOF
4750 /* end confdefs.h. */
4753 static $ac_kw foo_t static_foo () {return 0; }
4754 $ac_kw foo_t foo () {return 0; }
4758 rm -f conftest.$ac_objext
4759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4760 (eval $ac_compile) 2>conftest.er1
4762 grep -v '^ *+' conftest.er1 >conftest.err
4764 cat conftest.err >&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); } &&
4767 { ac_try='test -z "$ac_c_werror_flag"
4768 || test ! -s conftest.err'
4769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); }; } &&
4774 { ac_try='test -s conftest.$ac_objext'
4775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); }; }; then
4780 ac_cv_c_inline=$ac_kw; break
4782 echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4790 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4791 echo "${ECHO_T}$ac_cv_c_inline" >&6
4794 case $ac_cv_c_inline in
4797 case $ac_cv_c_inline in
4799 *) ac_val=$ac_cv_c_inline;;
4801 cat >>confdefs.h <<_ACEOF
4803 #define inline $ac_val
4809 echo "$as_me:$LINENO: checking for off_t" >&5
4810 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4811 if test "${ac_cv_type_off_t+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4814 cat >conftest.$ac_ext <<_ACEOF
4817 cat confdefs.h >>conftest.$ac_ext
4818 cat >>conftest.$ac_ext <<_ACEOF
4819 /* end confdefs.h. */
4820 $ac_includes_default
4832 rm -f conftest.$ac_objext
4833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4834 (eval $ac_compile) 2>conftest.er1
4836 grep -v '^ *+' conftest.er1 >conftest.err
4838 cat conftest.err >&5
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); } &&
4841 { ac_try='test -z "$ac_c_werror_flag"
4842 || test ! -s conftest.err'
4843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); }; } &&
4848 { ac_try='test -s conftest.$ac_objext'
4849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); }; }; then
4854 ac_cv_type_off_t=yes
4856 echo "$as_me: failed program was:" >&5
4857 sed 's/^/| /' conftest.$ac_ext >&5
4861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4863 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4864 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4865 if test $ac_cv_type_off_t = yes; then
4869 cat >>confdefs.h <<_ACEOF
4876 echo "$as_me:$LINENO: checking for long long" >&5
4877 echo $ECHO_N "checking for long long... $ECHO_C" >&6
4878 if test "${ac_cv_type_long_long+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4881 cat >conftest.$ac_ext <<_ACEOF
4884 cat confdefs.h >>conftest.$ac_ext
4885 cat >>conftest.$ac_ext <<_ACEOF
4886 /* end confdefs.h. */
4887 long long ll = 1LL; int i = 63;
4891 long long llmax = (long long) -1;
4892 return ll << i | ll >> i | llmax / ll | llmax % ll;
4897 rm -f conftest.$ac_objext conftest$ac_exeext
4898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4899 (eval $ac_link) 2>conftest.er1
4901 grep -v '^ *+' conftest.er1 >conftest.err
4903 cat conftest.err >&5
4904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4905 (exit $ac_status); } &&
4906 { ac_try='test -z "$ac_c_werror_flag"
4907 || test ! -s conftest.err'
4908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); }; } &&
4913 { ac_try='test -s conftest$ac_exeext'
4914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); }; }; then
4919 ac_cv_type_long_long=yes
4921 echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.$ac_ext >&5
4924 ac_cv_type_long_long=no
4926 rm -f conftest.err conftest.$ac_objext \
4927 conftest$ac_exeext conftest.$ac_ext
4929 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
4930 echo "${ECHO_T}$ac_cv_type_long_long" >&6
4931 if test $ac_cv_type_long_long = yes; then
4933 cat >>confdefs.h <<\_ACEOF
4934 #define HAVE_LONG_LONG 1
4940 echo "$as_me:$LINENO: checking for long double" >&5
4941 echo $ECHO_N "checking for long double... $ECHO_C" >&6
4942 if test "${gt_cv_c_long_double+set}" = set; then
4943 echo $ECHO_N "(cached) $ECHO_C" >&6
4945 if test "$GCC" = yes; then
4946 gt_cv_c_long_double=yes
4948 cat >conftest.$ac_ext <<_ACEOF
4951 cat confdefs.h >>conftest.$ac_ext
4952 cat >>conftest.$ac_ext <<_ACEOF
4953 /* end confdefs.h. */
4955 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
4956 long double foo = 0.0;
4957 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
4958 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
4968 rm -f conftest.$ac_objext
4969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4970 (eval $ac_compile) 2>conftest.er1
4972 grep -v '^ *+' conftest.er1 >conftest.err
4974 cat conftest.err >&5
4975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4976 (exit $ac_status); } &&
4977 { ac_try='test -z "$ac_c_werror_flag"
4978 || test ! -s conftest.err'
4979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); }; } &&
4984 { ac_try='test -s conftest.$ac_objext'
4985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }; }; then
4990 gt_cv_c_long_double=yes
4992 echo "$as_me: failed program was:" >&5
4993 sed 's/^/| /' conftest.$ac_ext >&5
4995 gt_cv_c_long_double=no
4997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5000 echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5001 echo "${ECHO_T}$gt_cv_c_long_double" >&6
5002 if test $gt_cv_c_long_double = yes; then
5004 cat >>confdefs.h <<\_ACEOF
5005 #define HAVE_LONG_DOUBLE 1
5011 echo "$as_me:$LINENO: checking for wchar_t" >&5
5012 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
5013 if test "${gt_cv_c_wchar_t+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5016 cat >conftest.$ac_ext <<_ACEOF
5019 cat confdefs.h >>conftest.$ac_ext
5020 cat >>conftest.$ac_ext <<_ACEOF
5021 /* end confdefs.h. */
5023 wchar_t foo = (wchar_t)'\0';
5032 rm -f conftest.$ac_objext
5033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5034 (eval $ac_compile) 2>conftest.er1
5036 grep -v '^ *+' conftest.er1 >conftest.err
5038 cat conftest.err >&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); } &&
5041 { ac_try='test -z "$ac_c_werror_flag"
5042 || test ! -s conftest.err'
5043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047 (exit $ac_status); }; } &&
5048 { ac_try='test -s conftest.$ac_objext'
5049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); }; }; then
5056 echo "$as_me: failed program was:" >&5
5057 sed 's/^/| /' conftest.$ac_ext >&5
5061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5063 echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5064 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6
5065 if test $gt_cv_c_wchar_t = yes; then
5067 cat >>confdefs.h <<\_ACEOF
5068 #define HAVE_WCHAR_T 1
5074 echo "$as_me:$LINENO: checking for wint_t" >&5
5075 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
5076 if test "${gt_cv_c_wint_t+set}" = set; then
5077 echo $ECHO_N "(cached) $ECHO_C" >&6
5079 cat >conftest.$ac_ext <<_ACEOF
5082 cat confdefs.h >>conftest.$ac_ext
5083 cat >>conftest.$ac_ext <<_ACEOF
5084 /* end confdefs.h. */
5086 wint_t foo = (wchar_t)'\0';
5095 rm -f conftest.$ac_objext
5096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5097 (eval $ac_compile) 2>conftest.er1
5099 grep -v '^ *+' conftest.er1 >conftest.err
5101 cat conftest.err >&5
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); } &&
5104 { ac_try='test -z "$ac_c_werror_flag"
5105 || test ! -s conftest.err'
5106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); }; } &&
5111 { ac_try='test -s conftest.$ac_objext'
5112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); }; }; then
5119 echo "$as_me: failed program was:" >&5
5120 sed 's/^/| /' conftest.$ac_ext >&5
5124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5126 echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5127 echo "${ECHO_T}$gt_cv_c_wint_t" >&6
5128 if test $gt_cv_c_wint_t = yes; then
5130 cat >>confdefs.h <<\_ACEOF
5131 #define HAVE_WINT_T 1
5137 echo "$as_me:$LINENO: checking for inttypes.h" >&5
5138 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
5139 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5140 echo $ECHO_N "(cached) $ECHO_C" >&6
5142 cat >conftest.$ac_ext <<_ACEOF
5145 cat confdefs.h >>conftest.$ac_ext
5146 cat >>conftest.$ac_ext <<_ACEOF
5147 /* end confdefs.h. */
5148 #include <sys/types.h>
5149 #include <inttypes.h>
5153 uintmax_t i = (uintmax_t) -1;
5158 rm -f conftest.$ac_objext
5159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5160 (eval $ac_compile) 2>conftest.er1
5162 grep -v '^ *+' conftest.er1 >conftest.err
5164 cat conftest.err >&5
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); } &&
5167 { ac_try='test -z "$ac_c_werror_flag"
5168 || test ! -s conftest.err'
5169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); }; } &&
5174 { ac_try='test -s conftest.$ac_objext'
5175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5179 (exit $ac_status); }; }; then
5180 jm_ac_cv_header_inttypes_h=yes
5182 echo "$as_me: failed program was:" >&5
5183 sed 's/^/| /' conftest.$ac_ext >&5
5185 jm_ac_cv_header_inttypes_h=no
5187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5189 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5190 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
5191 if test $jm_ac_cv_header_inttypes_h = yes; then
5193 cat >>confdefs.h <<_ACEOF
5194 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5200 echo "$as_me:$LINENO: checking for stdint.h" >&5
5201 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
5202 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5205 cat >conftest.$ac_ext <<_ACEOF
5208 cat confdefs.h >>conftest.$ac_ext
5209 cat >>conftest.$ac_ext <<_ACEOF
5210 /* end confdefs.h. */
5211 #include <sys/types.h>
5216 uintmax_t i = (uintmax_t) -1;
5221 rm -f conftest.$ac_objext
5222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5223 (eval $ac_compile) 2>conftest.er1
5225 grep -v '^ *+' conftest.er1 >conftest.err
5227 cat conftest.err >&5
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); } &&
5230 { ac_try='test -z "$ac_c_werror_flag"
5231 || test ! -s conftest.err'
5232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); }; } &&
5237 { ac_try='test -s conftest.$ac_objext'
5238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5242 (exit $ac_status); }; }; then
5243 jm_ac_cv_header_stdint_h=yes
5245 echo "$as_me: failed program was:" >&5
5246 sed 's/^/| /' conftest.$ac_ext >&5
5248 jm_ac_cv_header_stdint_h=no
5250 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5252 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5253 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
5254 if test $jm_ac_cv_header_stdint_h = yes; then
5256 cat >>confdefs.h <<_ACEOF
5257 #define HAVE_STDINT_H_WITH_UINTMAX 1
5265 echo "$as_me:$LINENO: checking for intmax_t" >&5
5266 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
5267 if test "${gt_cv_c_intmax_t+set}" = set; then
5268 echo $ECHO_N "(cached) $ECHO_C" >&6
5270 cat >conftest.$ac_ext <<_ACEOF
5273 cat confdefs.h >>conftest.$ac_ext
5274 cat >>conftest.$ac_ext <<_ACEOF
5275 /* end confdefs.h. */
5279 #if HAVE_STDINT_H_WITH_UINTMAX
5282 #if HAVE_INTTYPES_H_WITH_UINTMAX
5283 #include <inttypes.h>
5294 rm -f conftest.$ac_objext
5295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5296 (eval $ac_compile) 2>conftest.er1
5298 grep -v '^ *+' conftest.er1 >conftest.err
5300 cat conftest.err >&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); } &&
5303 { ac_try='test -z "$ac_c_werror_flag"
5304 || test ! -s conftest.err'
5305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); }; } &&
5310 { ac_try='test -s conftest.$ac_objext'
5311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315 (exit $ac_status); }; }; then
5316 gt_cv_c_intmax_t=yes
5318 echo "$as_me: failed program was:" >&5
5319 sed 's/^/| /' conftest.$ac_ext >&5
5323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5325 echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5326 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6
5327 if test $gt_cv_c_intmax_t = yes; then
5329 cat >>confdefs.h <<\_ACEOF
5330 #define HAVE_INTMAX_T 1
5337 echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5338 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6
5339 if test "${gt_cv_func_printf_posix+set}" = set; then
5340 echo $ECHO_N "(cached) $ECHO_C" >&6
5343 if test "$cross_compiling" = yes; then
5345 cat >conftest.$ac_ext <<_ACEOF
5348 cat confdefs.h >>conftest.$ac_ext
5349 cat >>conftest.$ac_ext <<_ACEOF
5350 /* end confdefs.h. */
5352 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5358 $EGREP "notposix" >/dev/null 2>&1; then
5359 gt_cv_func_printf_posix="guessing no"
5361 gt_cv_func_printf_posix="guessing yes"
5367 cat >conftest.$ac_ext <<_ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h. */
5376 /* The string "%2$d %1$d", with dollar characters protected from the shell's
5377 dollar expansion (possibly an autoconf bug). */
5378 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5379 static char buf[100];
5382 sprintf (buf, format, 33, 55);
5383 return (strcmp (buf, "55 33") != 0);
5386 rm -f conftest$ac_exeext
5387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5388 (eval $ac_link) 2>&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); }; }; then
5397 gt_cv_func_printf_posix=yes
5399 echo "$as_me: program exited with status $ac_status" >&5
5400 echo "$as_me: failed program was:" >&5
5401 sed 's/^/| /' conftest.$ac_ext >&5
5404 gt_cv_func_printf_posix=no
5406 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5410 echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5411 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6
5412 case $gt_cv_func_printf_posix in
5415 cat >>confdefs.h <<\_ACEOF
5416 #define HAVE_POSIX_PRINTF 1
5422 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5423 # for constant arguments. Useless!
5424 echo "$as_me:$LINENO: checking for working alloca.h" >&5
5425 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
5426 if test "${ac_cv_working_alloca_h+set}" = set; then
5427 echo $ECHO_N "(cached) $ECHO_C" >&6
5429 cat >conftest.$ac_ext <<_ACEOF
5432 cat confdefs.h >>conftest.$ac_ext
5433 cat >>conftest.$ac_ext <<_ACEOF
5434 /* end confdefs.h. */
5439 char *p = (char *) alloca (2 * sizeof (int));
5444 rm -f conftest.$ac_objext conftest$ac_exeext
5445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5446 (eval $ac_link) 2>conftest.er1
5448 grep -v '^ *+' conftest.er1 >conftest.err
5450 cat conftest.err >&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); } &&
5453 { ac_try='test -z "$ac_c_werror_flag"
5454 || test ! -s conftest.err'
5455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459 (exit $ac_status); }; } &&
5460 { ac_try='test -s conftest$ac_exeext'
5461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465 (exit $ac_status); }; }; then
5466 ac_cv_working_alloca_h=yes
5468 echo "$as_me: failed program was:" >&5
5469 sed 's/^/| /' conftest.$ac_ext >&5
5471 ac_cv_working_alloca_h=no
5473 rm -f conftest.err conftest.$ac_objext \
5474 conftest$ac_exeext conftest.$ac_ext
5476 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5477 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
5478 if test $ac_cv_working_alloca_h = yes; then
5480 cat >>confdefs.h <<\_ACEOF
5481 #define HAVE_ALLOCA_H 1
5486 echo "$as_me:$LINENO: checking for alloca" >&5
5487 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
5488 if test "${ac_cv_func_alloca_works+set}" = set; then
5489 echo $ECHO_N "(cached) $ECHO_C" >&6
5491 cat >conftest.$ac_ext <<_ACEOF
5494 cat confdefs.h >>conftest.$ac_ext
5495 cat >>conftest.$ac_ext <<_ACEOF
5496 /* end confdefs.h. */
5498 # define alloca __builtin_alloca
5501 # include <malloc.h>
5502 # define alloca _alloca
5505 # include <alloca.h>
5510 # ifndef alloca /* predefined by HP cc +Olibcalls */
5521 char *p = (char *) alloca (1);
5526 rm -f conftest.$ac_objext conftest$ac_exeext
5527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5528 (eval $ac_link) 2>conftest.er1
5530 grep -v '^ *+' conftest.er1 >conftest.err
5532 cat conftest.err >&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); } &&
5535 { ac_try='test -z "$ac_c_werror_flag"
5536 || test ! -s conftest.err'
5537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); }; } &&
5542 { ac_try='test -s conftest$ac_exeext'
5543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); }; }; then
5548 ac_cv_func_alloca_works=yes
5550 echo "$as_me: failed program was:" >&5
5551 sed 's/^/| /' conftest.$ac_ext >&5
5553 ac_cv_func_alloca_works=no
5555 rm -f conftest.err conftest.$ac_objext \
5556 conftest$ac_exeext conftest.$ac_ext
5558 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5559 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
5561 if test $ac_cv_func_alloca_works = yes; then
5563 cat >>confdefs.h <<\_ACEOF
5564 #define HAVE_ALLOCA 1
5568 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5569 # that cause trouble. Some versions do not even contain alloca or
5570 # contain a buggy version. If you still want to use their alloca,
5571 # use ar to extract alloca.o from them instead of compiling alloca.c.
5573 ALLOCA=alloca.$ac_objext
5575 cat >>confdefs.h <<\_ACEOF
5580 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5581 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
5582 if test "${ac_cv_os_cray+set}" = set; then
5583 echo $ECHO_N "(cached) $ECHO_C" >&6
5585 cat >conftest.$ac_ext <<_ACEOF
5588 cat confdefs.h >>conftest.$ac_ext
5589 cat >>conftest.$ac_ext <<_ACEOF
5590 /* end confdefs.h. */
5591 #if defined(CRAY) && ! defined(CRAY2)
5598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5599 $EGREP "webecray" >/dev/null 2>&1; then
5607 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5608 echo "${ECHO_T}$ac_cv_os_cray" >&6
5609 if test $ac_cv_os_cray = yes; then
5610 for ac_func in _getb67 GETB67 getb67; do
5611 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5612 echo "$as_me:$LINENO: checking for $ac_func" >&5
5613 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5614 if eval "test \"\${$as_ac_var+set}\" = set"; then
5615 echo $ECHO_N "(cached) $ECHO_C" >&6
5617 cat >conftest.$ac_ext <<_ACEOF
5620 cat confdefs.h >>conftest.$ac_ext
5621 cat >>conftest.$ac_ext <<_ACEOF
5622 /* end confdefs.h. */
5623 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5625 #define $ac_func innocuous_$ac_func
5627 /* System header to define __stub macros and hopefully few prototypes,
5628 which can conflict with char $ac_func (); below.
5629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5630 <limits.h> exists even on freestanding compilers. */
5633 # include <limits.h>
5635 # include <assert.h>
5640 /* Override any gcc2 internal prototype to avoid an error. */
5645 /* We use char because int might match the return type of a gcc2
5646 builtin and then its argument prototype would still apply. */
5648 /* The GNU C library defines this for functions which it implements
5649 to always fail with ENOSYS. Some functions are actually named
5650 something starting with __ and the normal name is an alias. */
5651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5654 char (*f) () = $ac_func;
5663 return f != $ac_func;
5668 rm -f conftest.$ac_objext conftest$ac_exeext
5669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5670 (eval $ac_link) 2>conftest.er1
5672 grep -v '^ *+' conftest.er1 >conftest.err
5674 cat conftest.err >&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); } &&
5677 { ac_try='test -z "$ac_c_werror_flag"
5678 || test ! -s conftest.err'
5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; } &&
5684 { ac_try='test -s conftest$ac_exeext'
5685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); }; }; then
5690 eval "$as_ac_var=yes"
5692 echo "$as_me: failed program was:" >&5
5693 sed 's/^/| /' conftest.$ac_ext >&5
5695 eval "$as_ac_var=no"
5697 rm -f conftest.err conftest.$ac_objext \
5698 conftest$ac_exeext conftest.$ac_ext
5700 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5701 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5702 if test `eval echo '${'$as_ac_var'}'` = yes; then
5704 cat >>confdefs.h <<_ACEOF
5705 #define CRAY_STACKSEG_END $ac_func
5714 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
5715 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
5716 if test "${ac_cv_c_stack_direction+set}" = set; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
5719 if test "$cross_compiling" = yes; then
5720 ac_cv_c_stack_direction=0
5722 cat >conftest.$ac_ext <<_ACEOF
5725 cat confdefs.h >>conftest.$ac_ext
5726 cat >>conftest.$ac_ext <<_ACEOF
5727 /* end confdefs.h. */
5729 find_stack_direction ()
5731 static char *addr = 0;
5736 return find_stack_direction ();
5739 return (&dummy > addr) ? 1 : -1;
5745 exit (find_stack_direction () < 0);
5748 rm -f conftest$ac_exeext
5749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5750 (eval $ac_link) 2>&5
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); }; }; then
5759 ac_cv_c_stack_direction=1
5761 echo "$as_me: program exited with status $ac_status" >&5
5762 echo "$as_me: failed program was:" >&5
5763 sed 's/^/| /' conftest.$ac_ext >&5
5766 ac_cv_c_stack_direction=-1
5768 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5771 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
5772 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
5774 cat >>confdefs.h <<_ACEOF
5775 #define STACK_DIRECTION $ac_cv_c_stack_direction
5783 for ac_header in stdlib.h unistd.h
5785 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5787 echo "$as_me:$LINENO: checking for $ac_header" >&5
5788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5795 # Is the header compilable?
5796 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5797 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5798 cat >conftest.$ac_ext <<_ACEOF
5801 cat confdefs.h >>conftest.$ac_ext
5802 cat >>conftest.$ac_ext <<_ACEOF
5803 /* end confdefs.h. */
5804 $ac_includes_default
5805 #include <$ac_header>
5807 rm -f conftest.$ac_objext
5808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5809 (eval $ac_compile) 2>conftest.er1
5811 grep -v '^ *+' conftest.er1 >conftest.err
5813 cat conftest.err >&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); } &&
5816 { ac_try='test -z "$ac_c_werror_flag"
5817 || test ! -s conftest.err'
5818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); }; } &&
5823 { ac_try='test -s conftest.$ac_objext'
5824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); }; }; then
5829 ac_header_compiler=yes
5831 echo "$as_me: failed program was:" >&5
5832 sed 's/^/| /' conftest.$ac_ext >&5
5834 ac_header_compiler=no
5836 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5837 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5838 echo "${ECHO_T}$ac_header_compiler" >&6
5840 # Is the header present?
5841 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5842 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5843 cat >conftest.$ac_ext <<_ACEOF
5846 cat confdefs.h >>conftest.$ac_ext
5847 cat >>conftest.$ac_ext <<_ACEOF
5848 /* end confdefs.h. */
5849 #include <$ac_header>
5851 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5854 grep -v '^ *+' conftest.er1 >conftest.err
5856 cat conftest.err >&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); } >/dev/null; then
5859 if test -s conftest.err; then
5860 ac_cpp_err=$ac_c_preproc_warn_flag
5861 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5868 if test -z "$ac_cpp_err"; then
5869 ac_header_preproc=yes
5871 echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5874 ac_header_preproc=no
5876 rm -f conftest.err conftest.$ac_ext
5877 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5878 echo "${ECHO_T}$ac_header_preproc" >&6
5880 # So? What about this header?
5881 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5883 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5884 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5886 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5887 ac_header_preproc=yes
5890 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5891 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5892 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5893 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5894 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5895 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5896 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5897 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5899 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5900 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5901 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5904 ## ------------------------------------------ ##
5905 ## Report this to the AC_PACKAGE_NAME lists. ##
5906 ## ------------------------------------------ ##
5909 sed "s/^/$as_me: WARNING: /" >&2
5912 echo "$as_me:$LINENO: checking for $ac_header" >&5
5913 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5914 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5917 eval "$as_ac_Header=\$ac_header_preproc"
5919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5920 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5923 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5924 cat >>confdefs.h <<_ACEOF
5925 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5933 for ac_func in getpagesize
5935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5936 echo "$as_me:$LINENO: checking for $ac_func" >&5
5937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5938 if eval "test \"\${$as_ac_var+set}\" = set"; then
5939 echo $ECHO_N "(cached) $ECHO_C" >&6
5941 cat >conftest.$ac_ext <<_ACEOF
5944 cat confdefs.h >>conftest.$ac_ext
5945 cat >>conftest.$ac_ext <<_ACEOF
5946 /* end confdefs.h. */
5947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5949 #define $ac_func innocuous_$ac_func
5951 /* System header to define __stub macros and hopefully few prototypes,
5952 which can conflict with char $ac_func (); below.
5953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5954 <limits.h> exists even on freestanding compilers. */
5957 # include <limits.h>
5959 # include <assert.h>
5964 /* Override any gcc2 internal prototype to avoid an error. */
5969 /* We use char because int might match the return type of a gcc2
5970 builtin and then its argument prototype would still apply. */
5972 /* The GNU C library defines this for functions which it implements
5973 to always fail with ENOSYS. Some functions are actually named
5974 something starting with __ and the normal name is an alias. */
5975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5978 char (*f) () = $ac_func;
5987 return f != $ac_func;
5992 rm -f conftest.$ac_objext conftest$ac_exeext
5993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5994 (eval $ac_link) 2>conftest.er1
5996 grep -v '^ *+' conftest.er1 >conftest.err
5998 cat conftest.err >&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); } &&
6001 { ac_try='test -z "$ac_c_werror_flag"
6002 || test ! -s conftest.err'
6003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6007 (exit $ac_status); }; } &&
6008 { ac_try='test -s conftest$ac_exeext'
6009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); }; }; then
6014 eval "$as_ac_var=yes"
6016 echo "$as_me: failed program was:" >&5
6017 sed 's/^/| /' conftest.$ac_ext >&5
6019 eval "$as_ac_var=no"
6021 rm -f conftest.err conftest.$ac_objext \
6022 conftest$ac_exeext conftest.$ac_ext
6024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6025 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6026 if test `eval echo '${'$as_ac_var'}'` = yes; then
6027 cat >>confdefs.h <<_ACEOF
6028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6034 echo "$as_me:$LINENO: checking for working mmap" >&5
6035 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
6036 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
6039 if test "$cross_compiling" = yes; then
6040 ac_cv_func_mmap_fixed_mapped=no
6042 cat >conftest.$ac_ext <<_ACEOF
6045 cat confdefs.h >>conftest.$ac_ext
6046 cat >>conftest.$ac_ext <<_ACEOF
6047 /* end confdefs.h. */
6048 $ac_includes_default
6049 /* malloc might have been renamed as rpl_malloc. */
6052 /* Thanks to Mike Haertel and Jim Avera for this test.
6053 Here is a matrix of mmap possibilities:
6054 mmap private not fixed
6055 mmap private fixed at somewhere currently unmapped
6056 mmap private fixed at somewhere already mapped
6057 mmap shared not fixed
6058 mmap shared fixed at somewhere currently unmapped
6059 mmap shared fixed at somewhere already mapped
6060 For private mappings, we should verify that changes cannot be read()
6061 back from the file, nor mmap's back from the file at a different
6062 address. (There have been systems where private was not correctly
6063 implemented like the infamous i386 svr4.0, and systems where the
6064 VM page cache was not coherent with the file system buffer cache
6065 like early versions of FreeBSD and possibly contemporary NetBSD.)
6066 For shared mappings, we should conversely verify that changes get
6067 propagated back to all the places they're supposed to be.
6069 Grep wants private fixed already mapped.
6070 The main things grep needs to know about mmap are:
6071 * does it exist and is it safe to write into the mmap'd area
6072 * how to use it (BSD variants) */
6075 #include <sys/mman.h>
6077 #if !STDC_HEADERS && !HAVE_STDLIB_H
6081 /* This mess was copied from the GNU getpagesize.h. */
6082 #if !HAVE_GETPAGESIZE
6083 /* Assume that all systems that can run configure have sys/param.h. */
6084 # if !HAVE_SYS_PARAM_H
6085 # define HAVE_SYS_PARAM_H 1
6088 # ifdef _SC_PAGESIZE
6089 # define getpagesize() sysconf(_SC_PAGESIZE)
6090 # else /* no _SC_PAGESIZE */
6091 # if HAVE_SYS_PARAM_H
6092 # include <sys/param.h>
6093 # ifdef EXEC_PAGESIZE
6094 # define getpagesize() EXEC_PAGESIZE
6095 # else /* no EXEC_PAGESIZE */
6097 # define getpagesize() NBPG * CLSIZE
6100 # endif /* no CLSIZE */
6101 # else /* no NBPG */
6103 # define getpagesize() NBPC
6104 # else /* no NBPC */
6106 # define getpagesize() PAGESIZE
6107 # endif /* PAGESIZE */
6108 # endif /* no NBPC */
6109 # endif /* no NBPG */
6110 # endif /* no EXEC_PAGESIZE */
6111 # else /* no HAVE_SYS_PARAM_H */
6112 # define getpagesize() 8192 /* punt totally */
6113 # endif /* no HAVE_SYS_PARAM_H */
6114 # endif /* no _SC_PAGESIZE */
6116 #endif /* no HAVE_GETPAGESIZE */
6121 char *data, *data2, *data3;
6125 pagesize = getpagesize ();
6127 /* First, make a file with some known garbage in it. */
6128 data = (char *) malloc (pagesize);
6131 for (i = 0; i < pagesize; ++i)
6132 *(data + i) = rand ();
6134 fd = creat ("conftest.mmap", 0600);
6137 if (write (fd, data, pagesize) != pagesize)
6141 /* Next, try to mmap the file at a fixed address which already has
6142 something else allocated at it. If we can, also make sure that
6143 we see the same garbage. */
6144 fd = open ("conftest.mmap", O_RDWR);
6147 data2 = (char *) malloc (2 * pagesize);
6150 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
6151 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6152 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6154 for (i = 0; i < pagesize; ++i)
6155 if (*(data + i) != *(data2 + i))
6158 /* Finally, make sure that changes to the mapped area do not
6159 percolate back to the file as seen by read(). (This is a bug on
6160 some variants of i386 svr4.0.) */
6161 for (i = 0; i < pagesize; ++i)
6162 *(data2 + i) = *(data2 + i) + 1;
6163 data3 = (char *) malloc (pagesize);
6166 if (read (fd, data3, pagesize) != pagesize)
6168 for (i = 0; i < pagesize; ++i)
6169 if (*(data + i) != *(data3 + i))
6175 rm -f conftest$ac_exeext
6176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6177 (eval $ac_link) 2>&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); }; }; then
6186 ac_cv_func_mmap_fixed_mapped=yes
6188 echo "$as_me: program exited with status $ac_status" >&5
6189 echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.$ac_ext >&5
6193 ac_cv_func_mmap_fixed_mapped=no
6195 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6198 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6199 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
6200 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6202 cat >>confdefs.h <<\_ACEOF
6210 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6211 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
6212 if test "${ac_cv_gnu_library_2_1+set}" = set; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6215 cat >conftest.$ac_ext <<_ACEOF
6218 cat confdefs.h >>conftest.$ac_ext
6219 cat >>conftest.$ac_ext <<_ACEOF
6220 /* end confdefs.h. */
6222 #include <features.h>
6223 #ifdef __GNU_LIBRARY__
6224 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6231 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
6232 ac_cv_gnu_library_2_1=yes
6234 ac_cv_gnu_library_2_1=no
6241 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6242 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
6244 GLIBC21="$ac_cv_gnu_library_2_1"
6249 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6250 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
6251 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6252 echo $ECHO_N "(cached) $ECHO_C" >&6
6255 if test "$cross_compiling" = yes; then
6257 # Guess based on the CPU.
6259 alpha* | i3456786 | m68k | s390*)
6260 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6262 gt_cv_int_divbyzero_sigfpe="guessing no";;
6266 cat >conftest.$ac_ext <<_ACEOF
6269 cat confdefs.h >>conftest.$ac_ext
6270 cat >>conftest.$ac_ext <<_ACEOF
6271 /* end confdefs.h. */
6278 sigfpe_handler (int sig)
6280 sigfpe_handler (sig) int sig;
6283 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6284 exit (sig != SIGFPE);
6294 signal (SIGFPE, sigfpe_handler);
6295 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6296 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6297 signal (SIGTRAP, sigfpe_handler);
6299 /* Linux/SPARC yields signal SIGILL. */
6300 #if defined (__sparc__) && defined (__linux__)
6301 signal (SIGILL, sigfpe_handler);
6310 rm -f conftest$ac_exeext
6311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6312 (eval $ac_link) 2>&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; }; then
6321 gt_cv_int_divbyzero_sigfpe=yes
6323 echo "$as_me: program exited with status $ac_status" >&5
6324 echo "$as_me: failed program was:" >&5
6325 sed 's/^/| /' conftest.$ac_ext >&5
6328 gt_cv_int_divbyzero_sigfpe=no
6330 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6334 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6335 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
6336 case "$gt_cv_int_divbyzero_sigfpe" in
6341 cat >>confdefs.h <<_ACEOF
6342 #define INTDIV0_RAISES_SIGFPE $value
6347 echo "$as_me:$LINENO: checking for unsigned long long" >&5
6348 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
6349 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6350 echo $ECHO_N "(cached) $ECHO_C" >&6
6352 cat >conftest.$ac_ext <<_ACEOF
6355 cat confdefs.h >>conftest.$ac_ext
6356 cat >>conftest.$ac_ext <<_ACEOF
6357 /* end confdefs.h. */
6358 unsigned long long ull = 1ULL; int i = 63;
6362 unsigned long long ullmax = (unsigned long long) -1;
6363 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6368 rm -f conftest.$ac_objext conftest$ac_exeext
6369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6370 (eval $ac_link) 2>conftest.er1
6372 grep -v '^ *+' conftest.er1 >conftest.err
6374 cat conftest.err >&5
6375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376 (exit $ac_status); } &&
6377 { ac_try='test -z "$ac_c_werror_flag"
6378 || test ! -s conftest.err'
6379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383 (exit $ac_status); }; } &&
6384 { ac_try='test -s conftest$ac_exeext'
6385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); }; }; then
6390 ac_cv_type_unsigned_long_long=yes
6392 echo "$as_me: failed program was:" >&5
6393 sed 's/^/| /' conftest.$ac_ext >&5
6395 ac_cv_type_unsigned_long_long=no
6397 rm -f conftest.err conftest.$ac_objext \
6398 conftest$ac_exeext conftest.$ac_ext
6400 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6401 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
6402 if test $ac_cv_type_unsigned_long_long = yes; then
6404 cat >>confdefs.h <<\_ACEOF
6405 #define HAVE_UNSIGNED_LONG_LONG 1
6413 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
6415 test $ac_cv_type_unsigned_long_long = yes \
6416 && ac_type='unsigned long long' \
6417 || ac_type='unsigned long'
6419 cat >>confdefs.h <<_ACEOF
6420 #define uintmax_t $ac_type
6425 cat >>confdefs.h <<\_ACEOF
6426 #define HAVE_UINTMAX_T 1
6432 echo "$as_me:$LINENO: checking for inttypes.h" >&5
6433 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
6434 if test "${gt_cv_header_inttypes_h+set}" = set; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6438 cat >conftest.$ac_ext <<_ACEOF
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h. */
6444 #include <sys/types.h>
6445 #include <inttypes.h>
6454 rm -f conftest.$ac_objext
6455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6456 (eval $ac_compile) 2>conftest.er1
6458 grep -v '^ *+' conftest.er1 >conftest.err
6460 cat conftest.err >&5
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); } &&
6463 { ac_try='test -z "$ac_c_werror_flag"
6464 || test ! -s conftest.err'
6465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); }; } &&
6470 { ac_try='test -s conftest.$ac_objext'
6471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); }; }; then
6476 gt_cv_header_inttypes_h=yes
6478 echo "$as_me: failed program was:" >&5
6479 sed 's/^/| /' conftest.$ac_ext >&5
6481 gt_cv_header_inttypes_h=no
6483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6486 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6487 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
6488 if test $gt_cv_header_inttypes_h = yes; then
6490 cat >>confdefs.h <<_ACEOF
6491 #define HAVE_INTTYPES_H 1
6498 if test $gt_cv_header_inttypes_h = yes; then
6499 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6500 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
6501 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6505 cat >conftest.$ac_ext <<_ACEOF
6508 cat confdefs.h >>conftest.$ac_ext
6509 cat >>conftest.$ac_ext <<_ACEOF
6510 /* end confdefs.h. */
6511 #include <inttypes.h>
6524 rm -f conftest.$ac_objext
6525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6526 (eval $ac_compile) 2>conftest.er1
6528 grep -v '^ *+' conftest.er1 >conftest.err
6530 cat conftest.err >&5
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); } &&
6533 { ac_try='test -z "$ac_c_werror_flag"
6534 || test ! -s conftest.err'
6535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); }; } &&
6540 { ac_try='test -s conftest.$ac_objext'
6541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); }; }; then
6546 gt_cv_inttypes_pri_broken=no
6548 echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.$ac_ext >&5
6551 gt_cv_inttypes_pri_broken=yes
6553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6556 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6557 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
6559 if test "$gt_cv_inttypes_pri_broken" = yes; then
6561 cat >>confdefs.h <<_ACEOF
6562 #define PRI_MACROS_BROKEN 1
6569 for ac_header in stdint.h
6571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6572 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6573 echo "$as_me:$LINENO: checking for $ac_header" >&5
6574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6578 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6579 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6581 # Is the header compilable?
6582 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6583 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6584 cat >conftest.$ac_ext <<_ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h. */
6590 $ac_includes_default
6591 #include <$ac_header>
6593 rm -f conftest.$ac_objext
6594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6595 (eval $ac_compile) 2>conftest.er1
6597 grep -v '^ *+' conftest.er1 >conftest.err
6599 cat conftest.err >&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); } &&
6602 { ac_try='test -z "$ac_c_werror_flag"
6603 || test ! -s conftest.err'
6604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; } &&
6609 { ac_try='test -s conftest.$ac_objext'
6610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); }; }; then
6615 ac_header_compiler=yes
6617 echo "$as_me: failed program was:" >&5
6618 sed 's/^/| /' conftest.$ac_ext >&5
6620 ac_header_compiler=no
6622 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6623 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6624 echo "${ECHO_T}$ac_header_compiler" >&6
6626 # Is the header present?
6627 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6629 cat >conftest.$ac_ext <<_ACEOF
6632 cat confdefs.h >>conftest.$ac_ext
6633 cat >>conftest.$ac_ext <<_ACEOF
6634 /* end confdefs.h. */
6635 #include <$ac_header>
6637 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6638 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6640 grep -v '^ *+' conftest.er1 >conftest.err
6642 cat conftest.err >&5
6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); } >/dev/null; then
6645 if test -s conftest.err; then
6646 ac_cpp_err=$ac_c_preproc_warn_flag
6647 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6654 if test -z "$ac_cpp_err"; then
6655 ac_header_preproc=yes
6657 echo "$as_me: failed program was:" >&5
6658 sed 's/^/| /' conftest.$ac_ext >&5
6660 ac_header_preproc=no
6662 rm -f conftest.err conftest.$ac_ext
6663 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6664 echo "${ECHO_T}$ac_header_preproc" >&6
6666 # So? What about this header?
6667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6669 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6673 ac_header_preproc=yes
6676 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6678 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6679 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6680 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6682 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6683 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6686 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6690 ## ------------------------------------------ ##
6691 ## Report this to the AC_PACKAGE_NAME lists. ##
6692 ## ------------------------------------------ ##
6695 sed "s/^/$as_me: WARNING: /" >&2
6698 echo "$as_me:$LINENO: checking for $ac_header" >&5
6699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6703 eval "$as_ac_Header=\$ac_header_preproc"
6705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6710 cat >>confdefs.h <<_ACEOF
6711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6718 echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
6719 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6
6721 cat >conftest.$ac_ext <<_ACEOF
6724 cat confdefs.h >>conftest.$ac_ext
6725 cat >>conftest.$ac_ext <<_ACEOF
6726 /* end confdefs.h. */
6737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6738 $EGREP "Found it" >/dev/null 2>&1; then
6743 if test -z "$result"; then
6744 if test "$cross_compiling" = yes; then
6745 # Depending upon the size, compute the lo and hi bounds.
6746 cat >conftest.$ac_ext <<_ACEOF
6749 cat confdefs.h >>conftest.$ac_ext
6750 cat >>conftest.$ac_ext <<_ACEOF
6751 /* end confdefs.h. */
6756 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
6763 rm -f conftest.$ac_objext
6764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6765 (eval $ac_compile) 2>conftest.er1
6767 grep -v '^ *+' conftest.er1 >conftest.err
6769 cat conftest.err >&5
6770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771 (exit $ac_status); } &&
6772 { ac_try='test -z "$ac_c_werror_flag"
6773 || test ! -s conftest.err'
6774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); }; } &&
6779 { ac_try='test -s conftest.$ac_objext'
6780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); }; }; then
6787 cat >conftest.$ac_ext <<_ACEOF
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h. */
6797 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6804 rm -f conftest.$ac_objext
6805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6806 (eval $ac_compile) 2>conftest.er1
6808 grep -v '^ *+' conftest.er1 >conftest.err
6810 cat conftest.err >&5
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); } &&
6813 { ac_try='test -z "$ac_c_werror_flag"
6814 || test ! -s conftest.err'
6815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); }; } &&
6820 { ac_try='test -s conftest.$ac_objext'
6821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6825 (exit $ac_status); }; }; then
6826 ac_hi=$ac_mid; break
6828 echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.$ac_ext >&5
6831 ac_lo=`expr $ac_mid + 1`
6832 if test $ac_lo -le $ac_mid; then
6836 ac_mid=`expr 2 '*' $ac_mid + 1`
6838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6841 echo "$as_me: failed program was:" >&5
6842 sed 's/^/| /' conftest.$ac_ext >&5
6844 cat >conftest.$ac_ext <<_ACEOF
6847 cat confdefs.h >>conftest.$ac_ext
6848 cat >>conftest.$ac_ext <<_ACEOF
6849 /* end confdefs.h. */
6854 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
6861 rm -f conftest.$ac_objext
6862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6863 (eval $ac_compile) 2>conftest.er1
6865 grep -v '^ *+' conftest.er1 >conftest.err
6867 cat conftest.err >&5
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); } &&
6870 { ac_try='test -z "$ac_c_werror_flag"
6871 || test ! -s conftest.err'
6872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); }; } &&
6877 { ac_try='test -s conftest.$ac_objext'
6878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); }; }; then
6885 cat >conftest.$ac_ext <<_ACEOF
6888 cat confdefs.h >>conftest.$ac_ext
6889 cat >>conftest.$ac_ext <<_ACEOF
6890 /* end confdefs.h. */
6895 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
6902 rm -f conftest.$ac_objext
6903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6904 (eval $ac_compile) 2>conftest.er1
6906 grep -v '^ *+' conftest.er1 >conftest.err
6908 cat conftest.err >&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } &&
6911 { ac_try='test -z "$ac_c_werror_flag"
6912 || test ! -s conftest.err'
6913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); }; } &&
6918 { ac_try='test -s conftest.$ac_objext'
6919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); }; }; then
6924 ac_lo=$ac_mid; break
6926 echo "$as_me: failed program was:" >&5
6927 sed 's/^/| /' conftest.$ac_ext >&5
6929 ac_hi=`expr '(' $ac_mid ')' - 1`
6930 if test $ac_mid -le $ac_hi; then
6934 ac_mid=`expr 2 '*' $ac_mid`
6936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6939 echo "$as_me: failed program was:" >&5
6940 sed 's/^/| /' conftest.$ac_ext >&5
6944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6946 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6947 # Binary search between lo and hi bounds.
6948 while test "x$ac_lo" != "x$ac_hi"; do
6949 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6950 cat >conftest.$ac_ext <<_ACEOF
6953 cat confdefs.h >>conftest.$ac_ext
6954 cat >>conftest.$ac_ext <<_ACEOF
6955 /* end confdefs.h. */
6960 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
6967 rm -f conftest.$ac_objext
6968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6969 (eval $ac_compile) 2>conftest.er1
6971 grep -v '^ *+' conftest.er1 >conftest.err
6973 cat conftest.err >&5
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); } &&
6976 { ac_try='test -z "$ac_c_werror_flag"
6977 || test ! -s conftest.err'
6978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); }; } &&
6983 { ac_try='test -s conftest.$ac_objext'
6984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 (exit $ac_status); }; }; then
6991 echo "$as_me: failed program was:" >&5
6992 sed 's/^/| /' conftest.$ac_ext >&5
6994 ac_lo=`expr '(' $ac_mid ')' + 1`
6996 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7003 if test "$cross_compiling" = yes; then
7004 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7005 See \`config.log' for more details." >&5
7006 echo "$as_me: error: cannot run test program while cross compiling
7007 See \`config.log' for more details." >&2;}
7008 { (exit 1); exit 1; }; }
7010 cat >conftest.$ac_ext <<_ACEOF
7013 cat confdefs.h >>conftest.$ac_ext
7014 cat >>conftest.$ac_ext <<_ACEOF
7015 /* end confdefs.h. */
7017 long longval () { return ~(size_t)0 / 10; }
7018 unsigned long ulongval () { return ~(size_t)0 / 10; }
7025 FILE *f = fopen ("conftest.val", "w");
7028 if ((~(size_t)0 / 10) < 0)
7030 long i = longval ();
7031 if (i != (~(size_t)0 / 10))
7033 fprintf (f, "%ld\n", i);
7037 unsigned long i = ulongval ();
7038 if (i != (~(size_t)0 / 10))
7040 fprintf (f, "%lu\n", i);
7042 exit (ferror (f) || fclose (f) != 0);
7048 rm -f conftest$ac_exeext
7049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7050 (eval $ac_link) 2>&5
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); }; }; then
7059 res_hi=`cat conftest.val`
7061 echo "$as_me: program exited with status $ac_status" >&5
7062 echo "$as_me: failed program was:" >&5
7063 sed 's/^/| /' conftest.$ac_ext >&5
7068 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7072 if test "$cross_compiling" = yes; then
7073 # Depending upon the size, compute the lo and hi bounds.
7074 cat >conftest.$ac_ext <<_ACEOF
7077 cat confdefs.h >>conftest.$ac_ext
7078 cat >>conftest.$ac_ext <<_ACEOF
7079 /* end confdefs.h. */
7084 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7091 rm -f conftest.$ac_objext
7092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7093 (eval $ac_compile) 2>conftest.er1
7095 grep -v '^ *+' conftest.er1 >conftest.err
7097 cat conftest.err >&5
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); } &&
7100 { ac_try='test -z "$ac_c_werror_flag"
7101 || test ! -s conftest.err'
7102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106 (exit $ac_status); }; } &&
7107 { ac_try='test -s conftest.$ac_objext'
7108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); }; }; then
7115 cat >conftest.$ac_ext <<_ACEOF
7118 cat confdefs.h >>conftest.$ac_ext
7119 cat >>conftest.$ac_ext <<_ACEOF
7120 /* end confdefs.h. */
7125 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7132 rm -f conftest.$ac_objext
7133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7134 (eval $ac_compile) 2>conftest.er1
7136 grep -v '^ *+' conftest.er1 >conftest.err
7138 cat conftest.err >&5
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); } &&
7141 { ac_try='test -z "$ac_c_werror_flag"
7142 || test ! -s conftest.err'
7143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); }; } &&
7148 { ac_try='test -s conftest.$ac_objext'
7149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); }; }; then
7154 ac_hi=$ac_mid; break
7156 echo "$as_me: failed program was:" >&5
7157 sed 's/^/| /' conftest.$ac_ext >&5
7159 ac_lo=`expr $ac_mid + 1`
7160 if test $ac_lo -le $ac_mid; then
7164 ac_mid=`expr 2 '*' $ac_mid + 1`
7166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7169 echo "$as_me: failed program was:" >&5
7170 sed 's/^/| /' conftest.$ac_ext >&5
7172 cat >conftest.$ac_ext <<_ACEOF
7175 cat confdefs.h >>conftest.$ac_ext
7176 cat >>conftest.$ac_ext <<_ACEOF
7177 /* end confdefs.h. */
7182 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7189 rm -f conftest.$ac_objext
7190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7191 (eval $ac_compile) 2>conftest.er1
7193 grep -v '^ *+' conftest.er1 >conftest.err
7195 cat conftest.err >&5
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); } &&
7198 { ac_try='test -z "$ac_c_werror_flag"
7199 || test ! -s conftest.err'
7200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }; } &&
7205 { ac_try='test -s conftest.$ac_objext'
7206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); }; }; then
7213 cat >conftest.$ac_ext <<_ACEOF
7216 cat confdefs.h >>conftest.$ac_ext
7217 cat >>conftest.$ac_ext <<_ACEOF
7218 /* end confdefs.h. */
7223 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7230 rm -f conftest.$ac_objext
7231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7232 (eval $ac_compile) 2>conftest.er1
7234 grep -v '^ *+' conftest.er1 >conftest.err
7236 cat conftest.err >&5
7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); } &&
7239 { ac_try='test -z "$ac_c_werror_flag"
7240 || test ! -s conftest.err'
7241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); }; } &&
7246 { ac_try='test -s conftest.$ac_objext'
7247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); }; }; then
7252 ac_lo=$ac_mid; break
7254 echo "$as_me: failed program was:" >&5
7255 sed 's/^/| /' conftest.$ac_ext >&5
7257 ac_hi=`expr '(' $ac_mid ')' - 1`
7258 if test $ac_mid -le $ac_hi; then
7262 ac_mid=`expr 2 '*' $ac_mid`
7264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7267 echo "$as_me: failed program was:" >&5
7268 sed 's/^/| /' conftest.$ac_ext >&5
7272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7275 # Binary search between lo and hi bounds.
7276 while test "x$ac_lo" != "x$ac_hi"; do
7277 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7278 cat >conftest.$ac_ext <<_ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h. */
7288 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7295 rm -f conftest.$ac_objext
7296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7297 (eval $ac_compile) 2>conftest.er1
7299 grep -v '^ *+' conftest.er1 >conftest.err
7301 cat conftest.err >&5
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); } &&
7304 { ac_try='test -z "$ac_c_werror_flag"
7305 || test ! -s conftest.err'
7306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); }; } &&
7311 { ac_try='test -s conftest.$ac_objext'
7312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316 (exit $ac_status); }; }; then
7319 echo "$as_me: failed program was:" >&5
7320 sed 's/^/| /' conftest.$ac_ext >&5
7322 ac_lo=`expr '(' $ac_mid ')' + 1`
7324 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7331 if test "$cross_compiling" = yes; then
7332 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7333 See \`config.log' for more details." >&5
7334 echo "$as_me: error: cannot run test program while cross compiling
7335 See \`config.log' for more details." >&2;}
7336 { (exit 1); exit 1; }; }
7338 cat >conftest.$ac_ext <<_ACEOF
7341 cat confdefs.h >>conftest.$ac_ext
7342 cat >>conftest.$ac_ext <<_ACEOF
7343 /* end confdefs.h. */
7345 long longval () { return ~(size_t)0 % 10; }
7346 unsigned long ulongval () { return ~(size_t)0 % 10; }
7353 FILE *f = fopen ("conftest.val", "w");
7356 if ((~(size_t)0 % 10) < 0)
7358 long i = longval ();
7359 if (i != (~(size_t)0 % 10))
7361 fprintf (f, "%ld\n", i);
7365 unsigned long i = ulongval ();
7366 if (i != (~(size_t)0 % 10))
7368 fprintf (f, "%lu\n", i);
7370 exit (ferror (f) || fclose (f) != 0);
7376 rm -f conftest$ac_exeext
7377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7378 (eval $ac_link) 2>&5
7380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7386 (exit $ac_status); }; }; then
7387 res_lo=`cat conftest.val`
7389 echo "$as_me: program exited with status $ac_status" >&5
7390 echo "$as_me: failed program was:" >&5
7391 sed 's/^/| /' conftest.$ac_ext >&5
7396 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7400 if test "$cross_compiling" = yes; then
7401 # Depending upon the size, compute the lo and hi bounds.
7402 cat >conftest.$ac_ext <<_ACEOF
7405 cat confdefs.h >>conftest.$ac_ext
7406 cat >>conftest.$ac_ext <<_ACEOF
7407 /* end confdefs.h. */
7412 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7419 rm -f conftest.$ac_objext
7420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7421 (eval $ac_compile) 2>conftest.er1
7423 grep -v '^ *+' conftest.er1 >conftest.err
7425 cat conftest.err >&5
7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); } &&
7428 { ac_try='test -z "$ac_c_werror_flag"
7429 || test ! -s conftest.err'
7430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); }; } &&
7435 { ac_try='test -s conftest.$ac_objext'
7436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); }; }; then
7443 cat >conftest.$ac_ext <<_ACEOF
7446 cat confdefs.h >>conftest.$ac_ext
7447 cat >>conftest.$ac_ext <<_ACEOF
7448 /* end confdefs.h. */
7453 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7460 rm -f conftest.$ac_objext
7461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7462 (eval $ac_compile) 2>conftest.er1
7464 grep -v '^ *+' conftest.er1 >conftest.err
7466 cat conftest.err >&5
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); } &&
7469 { ac_try='test -z "$ac_c_werror_flag"
7470 || test ! -s conftest.err'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; } &&
7476 { ac_try='test -s conftest.$ac_objext'
7477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); }; }; then
7482 ac_hi=$ac_mid; break
7484 echo "$as_me: failed program was:" >&5
7485 sed 's/^/| /' conftest.$ac_ext >&5
7487 ac_lo=`expr $ac_mid + 1`
7488 if test $ac_lo -le $ac_mid; then
7492 ac_mid=`expr 2 '*' $ac_mid + 1`
7494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7497 echo "$as_me: failed program was:" >&5
7498 sed 's/^/| /' conftest.$ac_ext >&5
7500 cat >conftest.$ac_ext <<_ACEOF
7503 cat confdefs.h >>conftest.$ac_ext
7504 cat >>conftest.$ac_ext <<_ACEOF
7505 /* end confdefs.h. */
7510 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7517 rm -f conftest.$ac_objext
7518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7519 (eval $ac_compile) 2>conftest.er1
7521 grep -v '^ *+' conftest.er1 >conftest.err
7523 cat conftest.err >&5
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); } &&
7526 { ac_try='test -z "$ac_c_werror_flag"
7527 || test ! -s conftest.err'
7528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); }; } &&
7533 { ac_try='test -s conftest.$ac_objext'
7534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); }; }; then
7541 cat >conftest.$ac_ext <<_ACEOF
7544 cat confdefs.h >>conftest.$ac_ext
7545 cat >>conftest.$ac_ext <<_ACEOF
7546 /* end confdefs.h. */
7551 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7558 rm -f conftest.$ac_objext
7559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7560 (eval $ac_compile) 2>conftest.er1
7562 grep -v '^ *+' conftest.er1 >conftest.err
7564 cat conftest.err >&5
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); } &&
7567 { ac_try='test -z "$ac_c_werror_flag"
7568 || test ! -s conftest.err'
7569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); }; } &&
7574 { ac_try='test -s conftest.$ac_objext'
7575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); }; }; then
7580 ac_lo=$ac_mid; break
7582 echo "$as_me: failed program was:" >&5
7583 sed 's/^/| /' conftest.$ac_ext >&5
7585 ac_hi=`expr '(' $ac_mid ')' - 1`
7586 if test $ac_mid -le $ac_hi; then
7590 ac_mid=`expr 2 '*' $ac_mid`
7592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7595 echo "$as_me: failed program was:" >&5
7596 sed 's/^/| /' conftest.$ac_ext >&5
7600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7603 # Binary search between lo and hi bounds.
7604 while test "x$ac_lo" != "x$ac_hi"; do
7605 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7606 cat >conftest.$ac_ext <<_ACEOF
7609 cat confdefs.h >>conftest.$ac_ext
7610 cat >>conftest.$ac_ext <<_ACEOF
7611 /* end confdefs.h. */
7616 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7623 rm -f conftest.$ac_objext
7624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7625 (eval $ac_compile) 2>conftest.er1
7627 grep -v '^ *+' conftest.er1 >conftest.err
7629 cat conftest.err >&5
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); } &&
7632 { ac_try='test -z "$ac_c_werror_flag"
7633 || test ! -s conftest.err'
7634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); }; } &&
7639 { ac_try='test -s conftest.$ac_objext'
7640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); }; }; then
7647 echo "$as_me: failed program was:" >&5
7648 sed 's/^/| /' conftest.$ac_ext >&5
7650 ac_lo=`expr '(' $ac_mid ')' + 1`
7652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7655 ?*) fits_in_uint=$ac_lo;;
7659 if test "$cross_compiling" = yes; then
7660 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7661 See \`config.log' for more details." >&5
7662 echo "$as_me: error: cannot run test program while cross compiling
7663 See \`config.log' for more details." >&2;}
7664 { (exit 1); exit 1; }; }
7666 cat >conftest.$ac_ext <<_ACEOF
7669 cat confdefs.h >>conftest.$ac_ext
7670 cat >>conftest.$ac_ext <<_ACEOF
7671 /* end confdefs.h. */
7673 long longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7674 unsigned long ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
7681 FILE *f = fopen ("conftest.val", "w");
7684 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7686 long i = longval ();
7687 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7689 fprintf (f, "%ld\n", i);
7693 unsigned long i = ulongval ();
7694 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
7696 fprintf (f, "%lu\n", i);
7698 exit (ferror (f) || fclose (f) != 0);
7704 rm -f conftest$ac_exeext
7705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7706 (eval $ac_link) 2>&5
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); }; }; then
7715 fits_in_uint=`cat conftest.val`
7717 echo "$as_me: program exited with status $ac_status" >&5
7718 echo "$as_me: failed program was:" >&5
7719 sed 's/^/| /' conftest.$ac_ext >&5
7724 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7728 if test "$fits_in_uint" = 1; then
7729 cat >conftest.$ac_ext <<_ACEOF
7732 cat confdefs.h >>conftest.$ac_ext
7733 cat >>conftest.$ac_ext <<_ACEOF
7734 /* end confdefs.h. */
7737 extern unsigned long foo;
7747 rm -f conftest.$ac_objext
7748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7749 (eval $ac_compile) 2>conftest.er1
7751 grep -v '^ *+' conftest.er1 >conftest.err
7753 cat conftest.err >&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); } &&
7756 { ac_try='test -z "$ac_c_werror_flag"
7757 || test ! -s conftest.err'
7758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); }; } &&
7763 { ac_try='test -s conftest.$ac_objext'
7764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); }; }; then
7771 echo "$as_me: failed program was:" >&5
7772 sed 's/^/| /' conftest.$ac_ext >&5
7775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7777 if test -z "$result"; then
7778 if test "$fits_in_uint" = 1; then
7779 result="$res_hi$res_lo"U
7781 result="$res_hi$res_lo"UL
7787 echo "$as_me:$LINENO: result: $result" >&5
7788 echo "${ECHO_T}$result" >&6
7789 if test "$result" != yes; then
7791 cat >>confdefs.h <<_ACEOF
7792 #define SIZE_MAX $result
7800 for ac_header in stdint.h
7802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7804 echo "$as_me:$LINENO: checking for $ac_header" >&5
7805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7806 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7812 # Is the header compilable?
7813 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7814 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7815 cat >conftest.$ac_ext <<_ACEOF
7818 cat confdefs.h >>conftest.$ac_ext
7819 cat >>conftest.$ac_ext <<_ACEOF
7820 /* end confdefs.h. */
7821 $ac_includes_default
7822 #include <$ac_header>
7824 rm -f conftest.$ac_objext
7825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7826 (eval $ac_compile) 2>conftest.er1
7828 grep -v '^ *+' conftest.er1 >conftest.err
7830 cat conftest.err >&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); } &&
7833 { ac_try='test -z "$ac_c_werror_flag"
7834 || test ! -s conftest.err'
7835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); }; } &&
7840 { ac_try='test -s conftest.$ac_objext'
7841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); }; }; then
7846 ac_header_compiler=yes
7848 echo "$as_me: failed program was:" >&5
7849 sed 's/^/| /' conftest.$ac_ext >&5
7851 ac_header_compiler=no
7853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7854 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7855 echo "${ECHO_T}$ac_header_compiler" >&6
7857 # Is the header present?
7858 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7860 cat >conftest.$ac_ext <<_ACEOF
7863 cat confdefs.h >>conftest.$ac_ext
7864 cat >>conftest.$ac_ext <<_ACEOF
7865 /* end confdefs.h. */
7866 #include <$ac_header>
7868 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7871 grep -v '^ *+' conftest.er1 >conftest.err
7873 cat conftest.err >&5
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); } >/dev/null; then
7876 if test -s conftest.err; then
7877 ac_cpp_err=$ac_c_preproc_warn_flag
7878 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7885 if test -z "$ac_cpp_err"; then
7886 ac_header_preproc=yes
7888 echo "$as_me: failed program was:" >&5
7889 sed 's/^/| /' conftest.$ac_ext >&5
7891 ac_header_preproc=no
7893 rm -f conftest.err conftest.$ac_ext
7894 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7895 echo "${ECHO_T}$ac_header_preproc" >&6
7897 # So? What about this header?
7898 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7900 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7901 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7903 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7904 ac_header_preproc=yes
7907 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7908 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7909 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7910 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7911 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7912 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7913 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7914 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7916 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7917 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7918 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7921 ## ------------------------------------------ ##
7922 ## Report this to the AC_PACKAGE_NAME lists. ##
7923 ## ------------------------------------------ ##
7926 sed "s/^/$as_me: WARNING: /" >&2
7929 echo "$as_me:$LINENO: checking for $ac_header" >&5
7930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7932 echo $ECHO_N "(cached) $ECHO_C" >&6
7934 eval "$as_ac_Header=\$ac_header_preproc"
7936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7941 cat >>confdefs.h <<_ACEOF
7942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7951 if test "X$prefix" = "XNONE"; then
7952 acl_final_prefix="$ac_default_prefix"
7954 acl_final_prefix="$prefix"
7956 if test "X$exec_prefix" = "XNONE"; then
7957 acl_final_exec_prefix='${prefix}'
7959 acl_final_exec_prefix="$exec_prefix"
7961 acl_save_prefix="$prefix"
7962 prefix="$acl_final_prefix"
7963 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7964 prefix="$acl_save_prefix"
7967 # Check whether --with-gnu-ld or --without-gnu-ld was given.
7968 if test "${with_gnu_ld+set}" = set; then
7969 withval="$with_gnu_ld"
7970 test "$withval" = no || with_gnu_ld=yes
7974 # Prepare PATH_SEPARATOR.
7975 # The user is always right.
7976 if test "${PATH_SEPARATOR+set}" != set; then
7977 echo "#! /bin/sh" >conf$$.sh
7978 echo "exit 0" >>conf$$.sh
7980 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7988 if test "$GCC" = yes; then
7989 # Check if gcc -print-prog-name=ld gives a path.
7990 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7991 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
7994 # gcc leaves a trailing carriage return which upsets mingw
7995 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7997 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8000 # Accept absolute paths.
8001 [\\/]* | [A-Za-z]:[\\/]*)
8002 re_direlt='/[^/][^/]*/\.\./'
8003 # Canonicalize the path of ld
8004 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8005 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8006 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8008 test -z "$LD" && LD="$ac_prog"
8011 # If it fails, then pretend we aren't using GCC.
8015 # If it is relative, then search for the first ld in PATH.
8019 elif test "$with_gnu_ld" = yes; then
8020 echo "$as_me:$LINENO: checking for GNU ld" >&5
8021 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
8023 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8024 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
8026 if test "${acl_cv_path_LD+set}" = set; then
8027 echo $ECHO_N "(cached) $ECHO_C" >&6
8029 if test -z "$LD"; then
8030 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8031 for ac_dir in $PATH; do
8032 test -z "$ac_dir" && ac_dir=.
8033 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8034 acl_cv_path_LD="$ac_dir/$ac_prog"
8035 # Check to see if the program is GNU ld. I'd rather use --version,
8036 # but apparently some GNU ld's only accept -v.
8037 # Break only if it was the GNU/non-GNU ld that we prefer.
8038 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8039 *GNU* | *'with BFD'*)
8040 test "$with_gnu_ld" != no && break ;;
8042 test "$with_gnu_ld" != yes && break ;;
8048 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8052 LD="$acl_cv_path_LD"
8053 if test -n "$LD"; then
8054 echo "$as_me:$LINENO: result: $LD" >&5
8055 echo "${ECHO_T}$LD" >&6
8057 echo "$as_me:$LINENO: result: no" >&5
8058 echo "${ECHO_T}no" >&6
8060 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8061 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8062 { (exit 1); exit 1; }; }
8063 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8064 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
8065 if test "${acl_cv_prog_gnu_ld+set}" = set; then
8066 echo $ECHO_N "(cached) $ECHO_C" >&6
8068 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8069 case `$LD -v 2>&1 </dev/null` in
8070 *GNU* | *'with BFD'*)
8071 acl_cv_prog_gnu_ld=yes ;;
8073 acl_cv_prog_gnu_ld=no ;;
8076 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8077 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
8078 with_gnu_ld=$acl_cv_prog_gnu_ld
8082 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8083 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
8084 if test "${acl_cv_rpath+set}" = set; then
8085 echo $ECHO_N "(cached) $ECHO_C" >&6
8088 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8089 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8095 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8096 echo "${ECHO_T}$acl_cv_rpath" >&6
8098 libext="$acl_cv_libext"
8099 shlibext="$acl_cv_shlibext"
8100 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8101 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8102 hardcode_direct="$acl_cv_hardcode_direct"
8103 hardcode_minus_L="$acl_cv_hardcode_minus_L"
8104 # Check whether --enable-rpath or --disable-rpath was given.
8105 if test "${enable_rpath+set}" = set; then
8106 enableval="$enable_rpath"
8120 acl_save_prefix="$prefix"
8121 prefix="$acl_final_prefix"
8122 acl_save_exec_prefix="$exec_prefix"
8123 exec_prefix="$acl_final_exec_prefix"
8125 eval additional_includedir=\"$includedir\"
8126 eval additional_libdir=\"$libdir\"
8128 exec_prefix="$acl_save_exec_prefix"
8129 prefix="$acl_save_prefix"
8132 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
8133 if test "${with_libiconv_prefix+set}" = set; then
8134 withval="$with_libiconv_prefix"
8136 if test "X$withval" = "Xno"; then
8139 if test "X$withval" = "X"; then
8141 acl_save_prefix="$prefix"
8142 prefix="$acl_final_prefix"
8143 acl_save_exec_prefix="$exec_prefix"
8144 exec_prefix="$acl_final_exec_prefix"
8146 eval additional_includedir=\"$includedir\"
8147 eval additional_libdir=\"$libdir\"
8149 exec_prefix="$acl_save_exec_prefix"
8150 prefix="$acl_save_prefix"
8153 additional_includedir="$withval/include"
8154 additional_libdir="$withval/lib"
8164 names_already_handled=
8165 names_next_round='iconv '
8166 while test -n "$names_next_round"; do
8167 names_this_round="$names_next_round"
8169 for name in $names_this_round; do
8171 for n in $names_already_handled; do
8172 if test "$n" = "$name"; then
8177 if test -z "$already_handled"; then
8178 names_already_handled="$names_already_handled $name"
8179 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8180 eval value=\"\$HAVE_LIB$uppername\"
8181 if test -n "$value"; then
8182 if test "$value" = yes; then
8183 eval value=\"\$LIB$uppername\"
8184 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8185 eval value=\"\$LTLIB$uppername\"
8186 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8195 if test $use_additional = yes; then
8196 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8197 found_dir="$additional_libdir"
8198 found_so="$additional_libdir/lib$name.$shlibext"
8199 if test -f "$additional_libdir/lib$name.la"; then
8200 found_la="$additional_libdir/lib$name.la"
8203 if test -f "$additional_libdir/lib$name.$libext"; then
8204 found_dir="$additional_libdir"
8205 found_a="$additional_libdir/lib$name.$libext"
8206 if test -f "$additional_libdir/lib$name.la"; then
8207 found_la="$additional_libdir/lib$name.la"
8212 if test "X$found_dir" = "X"; then
8213 for x in $LDFLAGS $LTLIBICONV; do
8215 acl_save_prefix="$prefix"
8216 prefix="$acl_final_prefix"
8217 acl_save_exec_prefix="$exec_prefix"
8218 exec_prefix="$acl_final_exec_prefix"
8220 exec_prefix="$acl_save_exec_prefix"
8221 prefix="$acl_save_prefix"
8225 dir=`echo "X$x" | sed -e 's/^X-L//'`
8226 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8228 found_so="$dir/lib$name.$shlibext"
8229 if test -f "$dir/lib$name.la"; then
8230 found_la="$dir/lib$name.la"
8233 if test -f "$dir/lib$name.$libext"; then
8235 found_a="$dir/lib$name.$libext"
8236 if test -f "$dir/lib$name.la"; then
8237 found_la="$dir/lib$name.la"
8243 if test "X$found_dir" != "X"; then
8248 if test "X$found_dir" != "X"; then
8249 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8250 if test "X$found_so" != "X"; then
8251 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8252 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8255 for x in $ltrpathdirs; do
8256 if test "X$x" = "X$found_dir"; then
8261 if test -z "$haveit"; then
8262 ltrpathdirs="$ltrpathdirs $found_dir"
8264 if test "$hardcode_direct" = yes; then
8265 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8267 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8268 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8270 for x in $rpathdirs; do
8271 if test "X$x" = "X$found_dir"; then
8276 if test -z "$haveit"; then
8277 rpathdirs="$rpathdirs $found_dir"
8281 for x in $LDFLAGS $LIBICONV; do
8283 acl_save_prefix="$prefix"
8284 prefix="$acl_final_prefix"
8285 acl_save_exec_prefix="$exec_prefix"
8286 exec_prefix="$acl_final_exec_prefix"
8288 exec_prefix="$acl_save_exec_prefix"
8289 prefix="$acl_save_prefix"
8291 if test "X$x" = "X-L$found_dir"; then
8296 if test -z "$haveit"; then
8297 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8299 if test "$hardcode_minus_L" != no; then
8300 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8302 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8308 if test "X$found_a" != "X"; then
8309 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8311 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8314 additional_includedir=
8315 case "$found_dir" in
8317 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8318 additional_includedir="$basedir/include"
8321 if test "X$additional_includedir" != "X"; then
8322 if test "X$additional_includedir" != "X/usr/include"; then
8324 if test "X$additional_includedir" = "X/usr/local/include"; then
8325 if test -n "$GCC"; then
8327 linux*) haveit=yes;;
8331 if test -z "$haveit"; then
8332 for x in $CPPFLAGS $INCICONV; do
8334 acl_save_prefix="$prefix"
8335 prefix="$acl_final_prefix"
8336 acl_save_exec_prefix="$exec_prefix"
8337 exec_prefix="$acl_final_exec_prefix"
8339 exec_prefix="$acl_save_exec_prefix"
8340 prefix="$acl_save_prefix"
8342 if test "X$x" = "X-I$additional_includedir"; then
8347 if test -z "$haveit"; then
8348 if test -d "$additional_includedir"; then
8349 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8355 if test -n "$found_la"; then
8356 save_libdir="$libdir"
8358 */* | *\\*) . "$found_la" ;;
8359 *) . "./$found_la" ;;
8361 libdir="$save_libdir"
8362 for dep in $dependency_libs; do
8365 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8366 if test "X$additional_libdir" != "X/usr/lib"; then
8368 if test "X$additional_libdir" = "X/usr/local/lib"; then
8369 if test -n "$GCC"; then
8371 linux*) haveit=yes;;
8375 if test -z "$haveit"; then
8377 for x in $LDFLAGS $LIBICONV; do
8379 acl_save_prefix="$prefix"
8380 prefix="$acl_final_prefix"
8381 acl_save_exec_prefix="$exec_prefix"
8382 exec_prefix="$acl_final_exec_prefix"
8384 exec_prefix="$acl_save_exec_prefix"
8385 prefix="$acl_save_prefix"
8387 if test "X$x" = "X-L$additional_libdir"; then
8392 if test -z "$haveit"; then
8393 if test -d "$additional_libdir"; then
8394 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8398 for x in $LDFLAGS $LTLIBICONV; do
8400 acl_save_prefix="$prefix"
8401 prefix="$acl_final_prefix"
8402 acl_save_exec_prefix="$exec_prefix"
8403 exec_prefix="$acl_final_exec_prefix"
8405 exec_prefix="$acl_save_exec_prefix"
8406 prefix="$acl_save_prefix"
8408 if test "X$x" = "X-L$additional_libdir"; then
8413 if test -z "$haveit"; then
8414 if test -d "$additional_libdir"; then
8415 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8422 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8423 if test "$enable_rpath" != no; then
8425 for x in $rpathdirs; do
8426 if test "X$x" = "X$dir"; then
8431 if test -z "$haveit"; then
8432 rpathdirs="$rpathdirs $dir"
8435 for x in $ltrpathdirs; do
8436 if test "X$x" = "X$dir"; then
8441 if test -z "$haveit"; then
8442 ltrpathdirs="$ltrpathdirs $dir"
8447 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8450 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8453 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8454 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8460 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8461 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8467 if test "X$rpathdirs" != "X"; then
8468 if test -n "$hardcode_libdir_separator"; then
8470 for found_dir in $rpathdirs; do
8471 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8473 acl_save_libdir="$libdir"
8475 eval flag=\"$hardcode_libdir_flag_spec\"
8476 libdir="$acl_save_libdir"
8477 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8479 for found_dir in $rpathdirs; do
8480 acl_save_libdir="$libdir"
8482 eval flag=\"$hardcode_libdir_flag_spec\"
8483 libdir="$acl_save_libdir"
8484 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8488 if test "X$ltrpathdirs" != "X"; then
8489 for found_dir in $ltrpathdirs; do
8490 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8501 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8502 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
8503 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8504 echo $ECHO_N "(cached) $ECHO_C" >&6
8506 cat >conftest.$ac_ext <<_ACEOF
8509 cat confdefs.h >>conftest.$ac_ext
8510 cat >>conftest.$ac_ext <<_ACEOF
8511 /* end confdefs.h. */
8512 $ac_includes_default
8516 if ((ptrdiff_t *) 0)
8518 if (sizeof (ptrdiff_t))
8524 rm -f conftest.$ac_objext
8525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8526 (eval $ac_compile) 2>conftest.er1
8528 grep -v '^ *+' conftest.er1 >conftest.err
8530 cat conftest.err >&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 (exit $ac_status); } &&
8533 { ac_try='test -z "$ac_c_werror_flag"
8534 || test ! -s conftest.err'
8535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); }; } &&
8540 { ac_try='test -s conftest.$ac_objext'
8541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; }; then
8546 ac_cv_type_ptrdiff_t=yes
8548 echo "$as_me: failed program was:" >&5
8549 sed 's/^/| /' conftest.$ac_ext >&5
8551 ac_cv_type_ptrdiff_t=no
8553 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8555 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8556 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
8557 if test $ac_cv_type_ptrdiff_t = yes; then
8561 cat >>confdefs.h <<\_ACEOF
8562 #define ptrdiff_t long
8578 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
8579 stdlib.h string.h unistd.h sys/param.h
8581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8582 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8583 echo "$as_me:$LINENO: checking for $ac_header" >&5
8584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8585 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8586 echo $ECHO_N "(cached) $ECHO_C" >&6
8588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8591 # Is the header compilable?
8592 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8593 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8594 cat >conftest.$ac_ext <<_ACEOF
8597 cat confdefs.h >>conftest.$ac_ext
8598 cat >>conftest.$ac_ext <<_ACEOF
8599 /* end confdefs.h. */
8600 $ac_includes_default
8601 #include <$ac_header>
8603 rm -f conftest.$ac_objext
8604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8605 (eval $ac_compile) 2>conftest.er1
8607 grep -v '^ *+' conftest.er1 >conftest.err
8609 cat conftest.err >&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); } &&
8612 { ac_try='test -z "$ac_c_werror_flag"
8613 || test ! -s conftest.err'
8614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; } &&
8619 { ac_try='test -s conftest.$ac_objext'
8620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); }; }; then
8625 ac_header_compiler=yes
8627 echo "$as_me: failed program was:" >&5
8628 sed 's/^/| /' conftest.$ac_ext >&5
8630 ac_header_compiler=no
8632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8633 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8634 echo "${ECHO_T}$ac_header_compiler" >&6
8636 # Is the header present?
8637 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8638 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8639 cat >conftest.$ac_ext <<_ACEOF
8642 cat confdefs.h >>conftest.$ac_ext
8643 cat >>conftest.$ac_ext <<_ACEOF
8644 /* end confdefs.h. */
8645 #include <$ac_header>
8647 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8648 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8650 grep -v '^ *+' conftest.er1 >conftest.err
8652 cat conftest.err >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } >/dev/null; then
8655 if test -s conftest.err; then
8656 ac_cpp_err=$ac_c_preproc_warn_flag
8657 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8664 if test -z "$ac_cpp_err"; then
8665 ac_header_preproc=yes
8667 echo "$as_me: failed program was:" >&5
8668 sed 's/^/| /' conftest.$ac_ext >&5
8670 ac_header_preproc=no
8672 rm -f conftest.err conftest.$ac_ext
8673 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8674 echo "${ECHO_T}$ac_header_preproc" >&6
8676 # So? What about this header?
8677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8679 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8680 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8682 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8683 ac_header_preproc=yes
8686 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8688 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8689 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8690 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8691 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8692 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8693 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8696 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8697 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8700 ## ------------------------------------------ ##
8701 ## Report this to the AC_PACKAGE_NAME lists. ##
8702 ## ------------------------------------------ ##
8705 sed "s/^/$as_me: WARNING: /" >&2
8708 echo "$as_me:$LINENO: checking for $ac_header" >&5
8709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8711 echo $ECHO_N "(cached) $ECHO_C" >&6
8713 eval "$as_ac_Header=\$ac_header_preproc"
8715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8720 cat >>confdefs.h <<_ACEOF
8721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8751 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8752 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8753 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8757 echo "$as_me:$LINENO: checking for $ac_func" >&5
8758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8759 if eval "test \"\${$as_ac_var+set}\" = set"; then
8760 echo $ECHO_N "(cached) $ECHO_C" >&6
8762 cat >conftest.$ac_ext <<_ACEOF
8765 cat confdefs.h >>conftest.$ac_ext
8766 cat >>conftest.$ac_ext <<_ACEOF
8767 /* end confdefs.h. */
8768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8770 #define $ac_func innocuous_$ac_func
8772 /* System header to define __stub macros and hopefully few prototypes,
8773 which can conflict with char $ac_func (); below.
8774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8775 <limits.h> exists even on freestanding compilers. */
8778 # include <limits.h>
8780 # include <assert.h>
8785 /* Override any gcc2 internal prototype to avoid an error. */
8790 /* We use char because int might match the return type of a gcc2
8791 builtin and then its argument prototype would still apply. */
8793 /* The GNU C library defines this for functions which it implements
8794 to always fail with ENOSYS. Some functions are actually named
8795 something starting with __ and the normal name is an alias. */
8796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8799 char (*f) () = $ac_func;
8808 return f != $ac_func;
8813 rm -f conftest.$ac_objext conftest$ac_exeext
8814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8815 (eval $ac_link) 2>conftest.er1
8817 grep -v '^ *+' conftest.er1 >conftest.err
8819 cat conftest.err >&5
8820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8821 (exit $ac_status); } &&
8822 { ac_try='test -z "$ac_c_werror_flag"
8823 || test ! -s conftest.err'
8824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); }; } &&
8829 { ac_try='test -s conftest$ac_exeext'
8830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); }; }; then
8835 eval "$as_ac_var=yes"
8837 echo "$as_me: failed program was:" >&5
8838 sed 's/^/| /' conftest.$ac_ext >&5
8840 eval "$as_ac_var=no"
8842 rm -f conftest.err conftest.$ac_objext \
8843 conftest$ac_exeext conftest.$ac_ext
8845 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8846 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8847 if test `eval echo '${'$as_ac_var'}'` = yes; then
8848 cat >>confdefs.h <<_ACEOF
8849 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8857 echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
8858 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6
8859 if test "${ac_cv_have_decl__snprintf+set}" = set; then
8860 echo $ECHO_N "(cached) $ECHO_C" >&6
8862 cat >conftest.$ac_ext <<_ACEOF
8865 cat confdefs.h >>conftest.$ac_ext
8866 cat >>conftest.$ac_ext <<_ACEOF
8867 /* end confdefs.h. */
8874 char *p = (char *) _snprintf;
8881 rm -f conftest.$ac_objext
8882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8883 (eval $ac_compile) 2>conftest.er1
8885 grep -v '^ *+' conftest.er1 >conftest.err
8887 cat conftest.err >&5
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); } &&
8890 { ac_try='test -z "$ac_c_werror_flag"
8891 || test ! -s conftest.err'
8892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); }; } &&
8897 { ac_try='test -s conftest.$ac_objext'
8898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); }; }; then
8903 ac_cv_have_decl__snprintf=yes
8905 echo "$as_me: failed program was:" >&5
8906 sed 's/^/| /' conftest.$ac_ext >&5
8908 ac_cv_have_decl__snprintf=no
8910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8912 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
8913 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6
8914 if test $ac_cv_have_decl__snprintf = yes; then
8920 cat >>confdefs.h <<_ACEOF
8921 #define HAVE_DECL__SNPRINTF $gt_value
8926 echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
8927 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6
8928 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
8929 echo $ECHO_N "(cached) $ECHO_C" >&6
8931 cat >conftest.$ac_ext <<_ACEOF
8934 cat confdefs.h >>conftest.$ac_ext
8935 cat >>conftest.$ac_ext <<_ACEOF
8936 /* end confdefs.h. */
8943 char *p = (char *) _snwprintf;
8950 rm -f conftest.$ac_objext
8951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8952 (eval $ac_compile) 2>conftest.er1
8954 grep -v '^ *+' conftest.er1 >conftest.err
8956 cat conftest.err >&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); } &&
8959 { ac_try='test -z "$ac_c_werror_flag"
8960 || test ! -s conftest.err'
8961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965 (exit $ac_status); }; } &&
8966 { ac_try='test -s conftest.$ac_objext'
8967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); }; }; then
8972 ac_cv_have_decl__snwprintf=yes
8974 echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8977 ac_cv_have_decl__snwprintf=no
8979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8981 echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
8982 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6
8983 if test $ac_cv_have_decl__snwprintf = yes; then
8989 cat >>confdefs.h <<_ACEOF
8990 #define HAVE_DECL__SNWPRINTF $gt_value
8996 echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
8997 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6
8998 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
8999 echo $ECHO_N "(cached) $ECHO_C" >&6
9001 cat >conftest.$ac_ext <<_ACEOF
9004 cat confdefs.h >>conftest.$ac_ext
9005 cat >>conftest.$ac_ext <<_ACEOF
9006 /* end confdefs.h. */
9012 #ifndef feof_unlocked
9013 char *p = (char *) feof_unlocked;
9020 rm -f conftest.$ac_objext
9021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9022 (eval $ac_compile) 2>conftest.er1
9024 grep -v '^ *+' conftest.er1 >conftest.err
9026 cat conftest.err >&5
9027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9028 (exit $ac_status); } &&
9029 { ac_try='test -z "$ac_c_werror_flag"
9030 || test ! -s conftest.err'
9031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 (exit $ac_status); }; } &&
9036 { ac_try='test -s conftest.$ac_objext'
9037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); }; }; then
9042 ac_cv_have_decl_feof_unlocked=yes
9044 echo "$as_me: failed program was:" >&5
9045 sed 's/^/| /' conftest.$ac_ext >&5
9047 ac_cv_have_decl_feof_unlocked=no
9049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9051 echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9052 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6
9053 if test $ac_cv_have_decl_feof_unlocked = yes; then
9059 cat >>confdefs.h <<_ACEOF
9060 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
9065 echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9066 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6
9067 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9068 echo $ECHO_N "(cached) $ECHO_C" >&6
9070 cat >conftest.$ac_ext <<_ACEOF
9073 cat confdefs.h >>conftest.$ac_ext
9074 cat >>conftest.$ac_ext <<_ACEOF
9075 /* end confdefs.h. */
9081 #ifndef fgets_unlocked
9082 char *p = (char *) fgets_unlocked;
9089 rm -f conftest.$ac_objext
9090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9091 (eval $ac_compile) 2>conftest.er1
9093 grep -v '^ *+' conftest.er1 >conftest.err
9095 cat conftest.err >&5
9096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9097 (exit $ac_status); } &&
9098 { ac_try='test -z "$ac_c_werror_flag"
9099 || test ! -s conftest.err'
9100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); }; } &&
9105 { ac_try='test -s conftest.$ac_objext'
9106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); }; }; then
9111 ac_cv_have_decl_fgets_unlocked=yes
9113 echo "$as_me: failed program was:" >&5
9114 sed 's/^/| /' conftest.$ac_ext >&5
9116 ac_cv_have_decl_fgets_unlocked=no
9118 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9120 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9121 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6
9122 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9128 cat >>confdefs.h <<_ACEOF
9129 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
9134 echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9135 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6
9136 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9137 echo $ECHO_N "(cached) $ECHO_C" >&6
9139 cat >conftest.$ac_ext <<_ACEOF
9142 cat confdefs.h >>conftest.$ac_ext
9143 cat >>conftest.$ac_ext <<_ACEOF
9144 /* end confdefs.h. */
9150 #ifndef getc_unlocked
9151 char *p = (char *) getc_unlocked;
9158 rm -f conftest.$ac_objext
9159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9160 (eval $ac_compile) 2>conftest.er1
9162 grep -v '^ *+' conftest.er1 >conftest.err
9164 cat conftest.err >&5
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); } &&
9167 { ac_try='test -z "$ac_c_werror_flag"
9168 || test ! -s conftest.err'
9169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173 (exit $ac_status); }; } &&
9174 { ac_try='test -s conftest.$ac_objext'
9175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); }; }; then
9180 ac_cv_have_decl_getc_unlocked=yes
9182 echo "$as_me: failed program was:" >&5
9183 sed 's/^/| /' conftest.$ac_ext >&5
9185 ac_cv_have_decl_getc_unlocked=no
9187 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9189 echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9190 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6
9191 if test $ac_cv_have_decl_getc_unlocked = yes; then
9197 cat >>confdefs.h <<_ACEOF
9198 #define HAVE_DECL_GETC_UNLOCKED $gt_value
9203 case $gt_cv_func_printf_posix in
9204 *yes) HAVE_POSIX_PRINTF=1 ;;
9205 *) HAVE_POSIX_PRINTF=0 ;;
9208 if test "$ac_cv_func_asprintf" = yes; then
9214 if test "$ac_cv_func_snprintf" = yes; then
9220 if test "$ac_cv_func_wprintf" = yes; then
9232 am_save_CPPFLAGS="$CPPFLAGS"
9234 for element in $INCICONV; do
9236 for x in $CPPFLAGS; do
9238 acl_save_prefix="$prefix"
9239 prefix="$acl_final_prefix"
9240 acl_save_exec_prefix="$exec_prefix"
9241 exec_prefix="$acl_final_exec_prefix"
9243 exec_prefix="$acl_save_exec_prefix"
9244 prefix="$acl_save_prefix"
9246 if test "X$x" = "X$element"; then
9251 if test -z "$haveit"; then
9252 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9257 echo "$as_me:$LINENO: checking for iconv" >&5
9258 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
9259 if test "${am_cv_func_iconv+set}" = set; then
9260 echo $ECHO_N "(cached) $ECHO_C" >&6
9263 am_cv_func_iconv="no, consider installing GNU libiconv"
9265 cat >conftest.$ac_ext <<_ACEOF
9268 cat confdefs.h >>conftest.$ac_ext
9269 cat >>conftest.$ac_ext <<_ACEOF
9270 /* end confdefs.h. */
9276 iconv_t cd = iconv_open("","");
9277 iconv(cd,NULL,NULL,NULL,NULL);
9283 rm -f conftest.$ac_objext conftest$ac_exeext
9284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9285 (eval $ac_link) 2>conftest.er1
9287 grep -v '^ *+' conftest.er1 >conftest.err
9289 cat conftest.err >&5
9290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 (exit $ac_status); } &&
9292 { ac_try='test -z "$ac_c_werror_flag"
9293 || test ! -s conftest.err'
9294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); }; } &&
9299 { ac_try='test -s conftest$ac_exeext'
9300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); }; }; then
9305 am_cv_func_iconv=yes
9307 echo "$as_me: failed program was:" >&5
9308 sed 's/^/| /' conftest.$ac_ext >&5
9311 rm -f conftest.err conftest.$ac_objext \
9312 conftest$ac_exeext conftest.$ac_ext
9313 if test "$am_cv_func_iconv" != yes; then
9314 am_save_LIBS="$LIBS"
9315 LIBS="$LIBS $LIBICONV"
9316 cat >conftest.$ac_ext <<_ACEOF
9319 cat confdefs.h >>conftest.$ac_ext
9320 cat >>conftest.$ac_ext <<_ACEOF
9321 /* end confdefs.h. */
9327 iconv_t cd = iconv_open("","");
9328 iconv(cd,NULL,NULL,NULL,NULL);
9334 rm -f conftest.$ac_objext conftest$ac_exeext
9335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9336 (eval $ac_link) 2>conftest.er1
9338 grep -v '^ *+' conftest.er1 >conftest.err
9340 cat conftest.err >&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); } &&
9343 { ac_try='test -z "$ac_c_werror_flag"
9344 || test ! -s conftest.err'
9345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); }; } &&
9350 { ac_try='test -s conftest$ac_exeext'
9351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); }; }; then
9357 am_cv_func_iconv=yes
9359 echo "$as_me: failed program was:" >&5
9360 sed 's/^/| /' conftest.$ac_ext >&5
9363 rm -f conftest.err conftest.$ac_objext \
9364 conftest$ac_exeext conftest.$ac_ext
9365 LIBS="$am_save_LIBS"
9369 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9370 echo "${ECHO_T}$am_cv_func_iconv" >&6
9371 if test "$am_cv_func_iconv" = yes; then
9373 cat >>confdefs.h <<\_ACEOF
9374 #define HAVE_ICONV 1
9378 if test "$am_cv_lib_iconv" = yes; then
9379 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9380 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
9381 echo "$as_me:$LINENO: result: $LIBICONV" >&5
9382 echo "${ECHO_T}$LIBICONV" >&6
9384 CPPFLAGS="$am_save_CPPFLAGS"
9391 if test "$am_cv_func_iconv" = yes; then
9392 echo "$as_me:$LINENO: checking for iconv declaration" >&5
9393 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
9394 if test "${am_cv_proto_iconv+set}" = set; then
9395 echo $ECHO_N "(cached) $ECHO_C" >&6
9398 cat >conftest.$ac_ext <<_ACEOF
9401 cat confdefs.h >>conftest.$ac_ext
9402 cat >>conftest.$ac_ext <<_ACEOF
9403 /* end confdefs.h. */
9411 #if defined(__STDC__) || defined(__cplusplus)
9412 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9425 rm -f conftest.$ac_objext
9426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9427 (eval $ac_compile) 2>conftest.er1
9429 grep -v '^ *+' conftest.er1 >conftest.err
9431 cat conftest.err >&5
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); } &&
9434 { ac_try='test -z "$ac_c_werror_flag"
9435 || test ! -s conftest.err'
9436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440 (exit $ac_status); }; } &&
9441 { ac_try='test -s conftest.$ac_objext'
9442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446 (exit $ac_status); }; }; then
9447 am_cv_proto_iconv_arg1=""
9449 echo "$as_me: failed program was:" >&5
9450 sed 's/^/| /' conftest.$ac_ext >&5
9452 am_cv_proto_iconv_arg1="const"
9454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9455 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
9458 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9459 echo "$as_me:$LINENO: result: ${ac_t:-
9460 }$am_cv_proto_iconv" >&5
9461 echo "${ECHO_T}${ac_t:-
9462 }$am_cv_proto_iconv" >&6
9464 cat >>confdefs.h <<_ACEOF
9465 #define ICONV_CONST $am_cv_proto_iconv_arg1
9471 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9472 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
9473 if test "${am_cv_langinfo_codeset+set}" = set; then
9474 echo $ECHO_N "(cached) $ECHO_C" >&6
9476 cat >conftest.$ac_ext <<_ACEOF
9479 cat confdefs.h >>conftest.$ac_ext
9480 cat >>conftest.$ac_ext <<_ACEOF
9481 /* end confdefs.h. */
9482 #include <langinfo.h>
9486 char* cs = nl_langinfo(CODESET);
9491 rm -f conftest.$ac_objext conftest$ac_exeext
9492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9493 (eval $ac_link) 2>conftest.er1
9495 grep -v '^ *+' conftest.er1 >conftest.err
9497 cat conftest.err >&5
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); } &&
9500 { ac_try='test -z "$ac_c_werror_flag"
9501 || test ! -s conftest.err'
9502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9506 (exit $ac_status); }; } &&
9507 { ac_try='test -s conftest$ac_exeext'
9508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9512 (exit $ac_status); }; }; then
9513 am_cv_langinfo_codeset=yes
9515 echo "$as_me: failed program was:" >&5
9516 sed 's/^/| /' conftest.$ac_ext >&5
9518 am_cv_langinfo_codeset=no
9520 rm -f conftest.err conftest.$ac_objext \
9521 conftest$ac_exeext conftest.$ac_ext
9524 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9525 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
9526 if test $am_cv_langinfo_codeset = yes; then
9528 cat >>confdefs.h <<\_ACEOF
9529 #define HAVE_LANGINFO_CODESET 1
9534 if test $ac_cv_header_locale_h = yes; then
9536 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9537 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
9538 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9539 echo $ECHO_N "(cached) $ECHO_C" >&6
9541 cat >conftest.$ac_ext <<_ACEOF
9544 cat confdefs.h >>conftest.$ac_ext
9545 cat >>conftest.$ac_ext <<_ACEOF
9546 /* end confdefs.h. */
9556 rm -f conftest.$ac_objext conftest$ac_exeext
9557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9558 (eval $ac_link) 2>conftest.er1
9560 grep -v '^ *+' conftest.er1 >conftest.err
9562 cat conftest.err >&5
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); } &&
9565 { ac_try='test -z "$ac_c_werror_flag"
9566 || test ! -s conftest.err'
9567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571 (exit $ac_status); }; } &&
9572 { ac_try='test -s conftest$ac_exeext'
9573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); }; }; then
9578 am_cv_val_LC_MESSAGES=yes
9580 echo "$as_me: failed program was:" >&5
9581 sed 's/^/| /' conftest.$ac_ext >&5
9583 am_cv_val_LC_MESSAGES=no
9585 rm -f conftest.err conftest.$ac_objext \
9586 conftest$ac_exeext conftest.$ac_ext
9588 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9589 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
9590 if test $am_cv_val_LC_MESSAGES = yes; then
9592 cat >>confdefs.h <<\_ACEOF
9593 #define HAVE_LC_MESSAGES 1
9600 for ac_prog in bison
9602 # Extract the first word of "$ac_prog", so it can be a program name with args.
9603 set dummy $ac_prog; ac_word=$2
9604 echo "$as_me:$LINENO: checking for $ac_word" >&5
9605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9606 if test "${ac_cv_prog_INTLBISON+set}" = set; then
9607 echo $ECHO_N "(cached) $ECHO_C" >&6
9609 if test -n "$INTLBISON"; then
9610 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9616 test -z "$as_dir" && as_dir=.
9617 for ac_exec_ext in '' $ac_executable_extensions; do
9618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9619 ac_cv_prog_INTLBISON="$ac_prog"
9620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9628 INTLBISON=$ac_cv_prog_INTLBISON
9629 if test -n "$INTLBISON"; then
9630 echo "$as_me:$LINENO: result: $INTLBISON" >&5
9631 echo "${ECHO_T}$INTLBISON" >&6
9633 echo "$as_me:$LINENO: result: no" >&5
9634 echo "${ECHO_T}no" >&6
9637 test -n "$INTLBISON" && break
9640 if test -z "$INTLBISON"; then
9643 echo "$as_me:$LINENO: checking version of bison" >&5
9644 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
9645 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9646 case $ac_prog_version in
9647 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9648 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9649 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9650 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9652 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9653 echo "${ECHO_T}$ac_prog_version" >&6
9655 if test $ac_verc_fail = yes; then
9674 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9675 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
9676 # Check whether --enable-nls or --disable-nls was given.
9677 if test "${enable_nls+set}" = set; then
9678 enableval="$enable_nls"
9683 echo "$as_me:$LINENO: result: $USE_NLS" >&5
9684 echo "${ECHO_T}$USE_NLS" >&6
9689 BUILD_INCLUDED_LIBINTL=no
9690 USE_INCLUDED_LIBINTL=no
9696 if test "$USE_NLS" = "yes"; then
9697 gt_use_preinstalled_gnugettext=no
9699 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9700 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
9702 # Check whether --with-included-gettext or --without-included-gettext was given.
9703 if test "${with_included_gettext+set}" = set; then
9704 withval="$with_included_gettext"
9705 nls_cv_force_use_gnu_gettext=$withval
9707 nls_cv_force_use_gnu_gettext=no
9709 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9710 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
9712 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9713 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
9720 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9721 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
9722 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9723 echo $ECHO_N "(cached) $ECHO_C" >&6
9725 cat >conftest.$ac_ext <<_ACEOF
9728 cat confdefs.h >>conftest.$ac_ext
9729 cat >>conftest.$ac_ext <<_ACEOF
9730 /* end confdefs.h. */
9731 #include <libintl.h>
9732 extern int _nl_msg_cat_cntr;
9733 extern int *_nl_domain_bindings;
9737 bindtextdomain ("", "");
9738 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
9743 rm -f conftest.$ac_objext conftest$ac_exeext
9744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9745 (eval $ac_link) 2>conftest.er1
9747 grep -v '^ *+' conftest.er1 >conftest.err
9749 cat conftest.err >&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); } &&
9752 { ac_try='test -z "$ac_c_werror_flag"
9753 || test ! -s conftest.err'
9754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); }; } &&
9759 { ac_try='test -s conftest$ac_exeext'
9760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); }; }; then
9765 gt_cv_func_gnugettext1_libc=yes
9767 echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9770 gt_cv_func_gnugettext1_libc=no
9772 rm -f conftest.err conftest.$ac_objext \
9773 conftest$ac_exeext conftest.$ac_ext
9775 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9776 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
9778 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
9784 acl_save_prefix="$prefix"
9785 prefix="$acl_final_prefix"
9786 acl_save_exec_prefix="$exec_prefix"
9787 exec_prefix="$acl_final_exec_prefix"
9789 eval additional_includedir=\"$includedir\"
9790 eval additional_libdir=\"$libdir\"
9792 exec_prefix="$acl_save_exec_prefix"
9793 prefix="$acl_save_prefix"
9796 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
9797 if test "${with_libintl_prefix+set}" = set; then
9798 withval="$with_libintl_prefix"
9800 if test "X$withval" = "Xno"; then
9803 if test "X$withval" = "X"; then
9805 acl_save_prefix="$prefix"
9806 prefix="$acl_final_prefix"
9807 acl_save_exec_prefix="$exec_prefix"
9808 exec_prefix="$acl_final_exec_prefix"
9810 eval additional_includedir=\"$includedir\"
9811 eval additional_libdir=\"$libdir\"
9813 exec_prefix="$acl_save_exec_prefix"
9814 prefix="$acl_save_prefix"
9817 additional_includedir="$withval/include"
9818 additional_libdir="$withval/lib"
9828 names_already_handled=
9829 names_next_round='intl '
9830 while test -n "$names_next_round"; do
9831 names_this_round="$names_next_round"
9833 for name in $names_this_round; do
9835 for n in $names_already_handled; do
9836 if test "$n" = "$name"; then
9841 if test -z "$already_handled"; then
9842 names_already_handled="$names_already_handled $name"
9843 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9844 eval value=\"\$HAVE_LIB$uppername\"
9845 if test -n "$value"; then
9846 if test "$value" = yes; then
9847 eval value=\"\$LIB$uppername\"
9848 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
9849 eval value=\"\$LTLIB$uppername\"
9850 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
9859 if test $use_additional = yes; then
9860 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9861 found_dir="$additional_libdir"
9862 found_so="$additional_libdir/lib$name.$shlibext"
9863 if test -f "$additional_libdir/lib$name.la"; then
9864 found_la="$additional_libdir/lib$name.la"
9867 if test -f "$additional_libdir/lib$name.$libext"; then
9868 found_dir="$additional_libdir"
9869 found_a="$additional_libdir/lib$name.$libext"
9870 if test -f "$additional_libdir/lib$name.la"; then
9871 found_la="$additional_libdir/lib$name.la"
9876 if test "X$found_dir" = "X"; then
9877 for x in $LDFLAGS $LTLIBINTL; do
9879 acl_save_prefix="$prefix"
9880 prefix="$acl_final_prefix"
9881 acl_save_exec_prefix="$exec_prefix"
9882 exec_prefix="$acl_final_exec_prefix"
9884 exec_prefix="$acl_save_exec_prefix"
9885 prefix="$acl_save_prefix"
9889 dir=`echo "X$x" | sed -e 's/^X-L//'`
9890 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9892 found_so="$dir/lib$name.$shlibext"
9893 if test -f "$dir/lib$name.la"; then
9894 found_la="$dir/lib$name.la"
9897 if test -f "$dir/lib$name.$libext"; then
9899 found_a="$dir/lib$name.$libext"
9900 if test -f "$dir/lib$name.la"; then
9901 found_la="$dir/lib$name.la"
9907 if test "X$found_dir" != "X"; then
9912 if test "X$found_dir" != "X"; then
9913 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9914 if test "X$found_so" != "X"; then
9915 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9916 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9919 for x in $ltrpathdirs; do
9920 if test "X$x" = "X$found_dir"; then
9925 if test -z "$haveit"; then
9926 ltrpathdirs="$ltrpathdirs $found_dir"
9928 if test "$hardcode_direct" = yes; then
9929 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9931 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9932 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9934 for x in $rpathdirs; do
9935 if test "X$x" = "X$found_dir"; then
9940 if test -z "$haveit"; then
9941 rpathdirs="$rpathdirs $found_dir"
9945 for x in $LDFLAGS $LIBINTL; do
9947 acl_save_prefix="$prefix"
9948 prefix="$acl_final_prefix"
9949 acl_save_exec_prefix="$exec_prefix"
9950 exec_prefix="$acl_final_exec_prefix"
9952 exec_prefix="$acl_save_exec_prefix"
9953 prefix="$acl_save_prefix"
9955 if test "X$x" = "X-L$found_dir"; then
9960 if test -z "$haveit"; then
9961 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9963 if test "$hardcode_minus_L" != no; then
9964 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9966 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9972 if test "X$found_a" != "X"; then
9973 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9975 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9978 additional_includedir=
9979 case "$found_dir" in
9981 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9982 additional_includedir="$basedir/include"
9985 if test "X$additional_includedir" != "X"; then
9986 if test "X$additional_includedir" != "X/usr/include"; then
9988 if test "X$additional_includedir" = "X/usr/local/include"; then
9989 if test -n "$GCC"; then
9991 linux*) haveit=yes;;
9995 if test -z "$haveit"; then
9996 for x in $CPPFLAGS $INCINTL; do
9998 acl_save_prefix="$prefix"
9999 prefix="$acl_final_prefix"
10000 acl_save_exec_prefix="$exec_prefix"
10001 exec_prefix="$acl_final_exec_prefix"
10003 exec_prefix="$acl_save_exec_prefix"
10004 prefix="$acl_save_prefix"
10006 if test "X$x" = "X-I$additional_includedir"; then
10011 if test -z "$haveit"; then
10012 if test -d "$additional_includedir"; then
10013 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10019 if test -n "$found_la"; then
10020 save_libdir="$libdir"
10021 case "$found_la" in
10022 */* | *\\*) . "$found_la" ;;
10023 *) . "./$found_la" ;;
10025 libdir="$save_libdir"
10026 for dep in $dependency_libs; do
10029 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10030 if test "X$additional_libdir" != "X/usr/lib"; then
10032 if test "X$additional_libdir" = "X/usr/local/lib"; then
10033 if test -n "$GCC"; then
10035 linux*) haveit=yes;;
10039 if test -z "$haveit"; then
10041 for x in $LDFLAGS $LIBINTL; do
10043 acl_save_prefix="$prefix"
10044 prefix="$acl_final_prefix"
10045 acl_save_exec_prefix="$exec_prefix"
10046 exec_prefix="$acl_final_exec_prefix"
10048 exec_prefix="$acl_save_exec_prefix"
10049 prefix="$acl_save_prefix"
10051 if test "X$x" = "X-L$additional_libdir"; then
10056 if test -z "$haveit"; then
10057 if test -d "$additional_libdir"; then
10058 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10062 for x in $LDFLAGS $LTLIBINTL; do
10064 acl_save_prefix="$prefix"
10065 prefix="$acl_final_prefix"
10066 acl_save_exec_prefix="$exec_prefix"
10067 exec_prefix="$acl_final_exec_prefix"
10069 exec_prefix="$acl_save_exec_prefix"
10070 prefix="$acl_save_prefix"
10072 if test "X$x" = "X-L$additional_libdir"; then
10077 if test -z "$haveit"; then
10078 if test -d "$additional_libdir"; then
10079 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10086 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10087 if test "$enable_rpath" != no; then
10089 for x in $rpathdirs; do
10090 if test "X$x" = "X$dir"; then
10095 if test -z "$haveit"; then
10096 rpathdirs="$rpathdirs $dir"
10099 for x in $ltrpathdirs; do
10100 if test "X$x" = "X$dir"; then
10105 if test -z "$haveit"; then
10106 ltrpathdirs="$ltrpathdirs $dir"
10111 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10114 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10117 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10118 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10124 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10125 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10131 if test "X$rpathdirs" != "X"; then
10132 if test -n "$hardcode_libdir_separator"; then
10134 for found_dir in $rpathdirs; do
10135 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10137 acl_save_libdir="$libdir"
10139 eval flag=\"$hardcode_libdir_flag_spec\"
10140 libdir="$acl_save_libdir"
10141 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10143 for found_dir in $rpathdirs; do
10144 acl_save_libdir="$libdir"
10145 libdir="$found_dir"
10146 eval flag=\"$hardcode_libdir_flag_spec\"
10147 libdir="$acl_save_libdir"
10148 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10152 if test "X$ltrpathdirs" != "X"; then
10153 for found_dir in $ltrpathdirs; do
10154 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10158 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10159 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
10160 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10161 echo $ECHO_N "(cached) $ECHO_C" >&6
10163 gt_save_CPPFLAGS="$CPPFLAGS"
10164 CPPFLAGS="$CPPFLAGS $INCINTL"
10165 gt_save_LIBS="$LIBS"
10166 LIBS="$LIBS $LIBINTL"
10167 cat >conftest.$ac_ext <<_ACEOF
10170 cat confdefs.h >>conftest.$ac_ext
10171 cat >>conftest.$ac_ext <<_ACEOF
10172 /* end confdefs.h. */
10173 #include <libintl.h>
10174 extern int _nl_msg_cat_cntr;
10179 const char *_nl_expand_alias ();
10183 bindtextdomain ("", "");
10184 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10189 rm -f conftest.$ac_objext conftest$ac_exeext
10190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10191 (eval $ac_link) 2>conftest.er1
10193 grep -v '^ *+' conftest.er1 >conftest.err
10195 cat conftest.err >&5
10196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10197 (exit $ac_status); } &&
10198 { ac_try='test -z "$ac_c_werror_flag"
10199 || test ! -s conftest.err'
10200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10201 (eval $ac_try) 2>&5
10203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10204 (exit $ac_status); }; } &&
10205 { ac_try='test -s conftest$ac_exeext'
10206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10207 (eval $ac_try) 2>&5
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); }; }; then
10211 gt_cv_func_gnugettext1_libintl=yes
10213 echo "$as_me: failed program was:" >&5
10214 sed 's/^/| /' conftest.$ac_ext >&5
10216 gt_cv_func_gnugettext1_libintl=no
10218 rm -f conftest.err conftest.$ac_objext \
10219 conftest$ac_exeext conftest.$ac_ext
10220 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10221 LIBS="$LIBS $LIBICONV"
10222 cat >conftest.$ac_ext <<_ACEOF
10225 cat confdefs.h >>conftest.$ac_ext
10226 cat >>conftest.$ac_ext <<_ACEOF
10227 /* end confdefs.h. */
10228 #include <libintl.h>
10229 extern int _nl_msg_cat_cntr;
10234 const char *_nl_expand_alias ();
10238 bindtextdomain ("", "");
10239 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
10244 rm -f conftest.$ac_objext conftest$ac_exeext
10245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10246 (eval $ac_link) 2>conftest.er1
10248 grep -v '^ *+' conftest.er1 >conftest.err
10250 cat conftest.err >&5
10251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); } &&
10253 { ac_try='test -z "$ac_c_werror_flag"
10254 || test ! -s conftest.err'
10255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10256 (eval $ac_try) 2>&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); }; } &&
10260 { ac_try='test -s conftest$ac_exeext'
10261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10262 (eval $ac_try) 2>&5
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); }; }; then
10266 LIBINTL="$LIBINTL $LIBICONV"
10267 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10268 gt_cv_func_gnugettext1_libintl=yes
10271 echo "$as_me: failed program was:" >&5
10272 sed 's/^/| /' conftest.$ac_ext >&5
10275 rm -f conftest.err conftest.$ac_objext \
10276 conftest$ac_exeext conftest.$ac_ext
10278 CPPFLAGS="$gt_save_CPPFLAGS"
10279 LIBS="$gt_save_LIBS"
10281 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10282 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
10285 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10286 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
10287 && test "$PACKAGE" != gettext-runtime \
10288 && test "$PACKAGE" != gettext-tools; }; then
10289 gt_use_preinstalled_gnugettext=yes
10297 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10298 nls_cv_use_gnu_gettext=yes
10302 if test "$nls_cv_use_gnu_gettext" = "yes"; then
10303 BUILD_INCLUDED_LIBINTL=yes
10304 USE_INCLUDED_LIBINTL=yes
10305 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10306 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10307 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
10310 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10311 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10316 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10317 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10319 cat >>confdefs.h <<\_ACEOF
10320 #define ENABLE_NLS 1
10328 echo "$as_me:$LINENO: checking whether to use NLS" >&5
10329 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
10330 echo "$as_me:$LINENO: result: $USE_NLS" >&5
10331 echo "${ECHO_T}$USE_NLS" >&6
10332 if test "$USE_NLS" = "yes"; then
10333 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10334 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
10335 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10336 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10337 gt_source="external libintl"
10342 gt_source="included intl directory"
10344 echo "$as_me:$LINENO: result: $gt_source" >&5
10345 echo "${ECHO_T}$gt_source" >&6
10348 if test "$USE_NLS" = "yes"; then
10350 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10351 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10352 echo "$as_me:$LINENO: checking how to link with libintl" >&5
10353 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
10354 echo "$as_me:$LINENO: result: $LIBINTL" >&5
10355 echo "${ECHO_T}$LIBINTL" >&6
10357 for element in $INCINTL; do
10359 for x in $CPPFLAGS; do
10361 acl_save_prefix="$prefix"
10362 prefix="$acl_final_prefix"
10363 acl_save_exec_prefix="$exec_prefix"
10364 exec_prefix="$acl_final_exec_prefix"
10366 exec_prefix="$acl_save_exec_prefix"
10367 prefix="$acl_save_prefix"
10369 if test "X$x" = "X$element"; then
10374 if test -z "$haveit"; then
10375 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10382 cat >>confdefs.h <<\_ACEOF
10383 #define HAVE_GETTEXT 1
10387 cat >>confdefs.h <<\_ACEOF
10388 #define HAVE_DCGETTEXT 1
10397 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
10398 BUILD_INCLUDED_LIBINTL=yes
10405 nls_cv_header_intl=
10406 nls_cv_header_libgt=
10417 if test "$USE_INCLUDED_LIBINTL" = yes; then
10418 INTLOBJS="\$(GETTOBJS)"
10422 INTL_LIBTOOL_SUFFIX_PREFIX=
10426 INTLLIBS="$LIBINTL"
10435 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
10436 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6
10437 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
10438 echo $ECHO_N "(cached) $ECHO_C" >&6
10440 ac_check_lib_save_LIBS=$LIBS
10441 LIBS="-lncurses $LIBS"
10442 cat >conftest.$ac_ext <<_ACEOF
10445 cat confdefs.h >>conftest.$ac_ext
10446 cat >>conftest.$ac_ext <<_ACEOF
10447 /* end confdefs.h. */
10449 /* Override any gcc2 internal prototype to avoid an error. */
10453 /* We use char because int might match the return type of a gcc2
10454 builtin and then its argument prototype would still apply. */
10464 rm -f conftest.$ac_objext conftest$ac_exeext
10465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10466 (eval $ac_link) 2>conftest.er1
10468 grep -v '^ *+' conftest.er1 >conftest.err
10470 cat conftest.err >&5
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); } &&
10473 { ac_try='test -z "$ac_c_werror_flag"
10474 || test ! -s conftest.err'
10475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10476 (eval $ac_try) 2>&5
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); }; } &&
10480 { ac_try='test -s conftest$ac_exeext'
10481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10482 (eval $ac_try) 2>&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); }; }; then
10486 ac_cv_lib_ncurses_initscr=yes
10488 echo "$as_me: failed program was:" >&5
10489 sed 's/^/| /' conftest.$ac_ext >&5
10491 ac_cv_lib_ncurses_initscr=no
10493 rm -f conftest.err conftest.$ac_objext \
10494 conftest$ac_exeext conftest.$ac_ext
10495 LIBS=$ac_check_lib_save_LIBS
10497 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
10498 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6
10499 if test $ac_cv_lib_ncurses_initscr = yes; then
10500 cat >>confdefs.h <<_ACEOF
10501 #define HAVE_LIBNCURSES 1
10504 LIBS="-lncurses $LIBS"
10510 if test "$NOCURSES" = yes; then
10512 echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
10513 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6
10514 if test "${ac_cv_lib_curses_initscr+set}" = set; then
10515 echo $ECHO_N "(cached) $ECHO_C" >&6
10517 ac_check_lib_save_LIBS=$LIBS
10518 LIBS="-lcurses $LIBS"
10519 cat >conftest.$ac_ext <<_ACEOF
10522 cat confdefs.h >>conftest.$ac_ext
10523 cat >>conftest.$ac_ext <<_ACEOF
10524 /* end confdefs.h. */
10526 /* Override any gcc2 internal prototype to avoid an error. */
10530 /* We use char because int might match the return type of a gcc2
10531 builtin and then its argument prototype would still apply. */
10541 rm -f conftest.$ac_objext conftest$ac_exeext
10542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10543 (eval $ac_link) 2>conftest.er1
10545 grep -v '^ *+' conftest.er1 >conftest.err
10547 cat conftest.err >&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); } &&
10550 { ac_try='test -z "$ac_c_werror_flag"
10551 || test ! -s conftest.err'
10552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10553 (eval $ac_try) 2>&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); }; } &&
10557 { ac_try='test -s conftest$ac_exeext'
10558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10559 (eval $ac_try) 2>&5
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); }; }; then
10563 ac_cv_lib_curses_initscr=yes
10565 echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.$ac_ext >&5
10568 ac_cv_lib_curses_initscr=no
10570 rm -f conftest.err conftest.$ac_objext \
10571 conftest$ac_exeext conftest.$ac_ext
10572 LIBS=$ac_check_lib_save_LIBS
10574 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
10575 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6
10576 if test $ac_cv_lib_curses_initscr = yes; then
10577 cat >>confdefs.h <<_ACEOF
10578 #define HAVE_LIBCURSES 1
10581 LIBS="-lcurses $LIBS"
10584 { { echo "$as_me:$LINENO: error: ap-utils requires installed ncurses or Sys V curses to build" >&5
10585 echo "$as_me: error: ap-utils requires installed ncurses or Sys V curses to build" >&2;}
10586 { (exit 1); exit 1; }; }
10591 # Check for OS and make OS define OS specific variables
10595 cat >>confdefs.h <<\_ACEOF
10601 ap_config_LDADD="-lncurses"
10602 CC="$CC -R/usr/pkg/lib -L/usr/pkg/lib -I/usr/pkg/include"
10608 cat >>confdefs.h <<\_ACEOF
10616 LIBS="$LIBS -lsocket"
10617 INSTALL="config/install-sh"
10622 CC="$CC -qcpluscmt -qmaxmem=16384"
10627 cat >>confdefs.h <<\_ACEOF
10628 #define OS_SOLARIS 1
10631 LIBS="$LIBS -lresolv -lnls"
10635 cat >>confdefs.h <<\_ACEOF
10639 CFLAGS="$CFLAGS -Wall -W"
10643 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
10644 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
10645 if test "${ac_cv_c_bigendian+set}" = set; then
10646 echo $ECHO_N "(cached) $ECHO_C" >&6
10648 # See if sys/param.h defines the BYTE_ORDER macro.
10649 cat >conftest.$ac_ext <<_ACEOF
10652 cat confdefs.h >>conftest.$ac_ext
10653 cat >>conftest.$ac_ext <<_ACEOF
10654 /* end confdefs.h. */
10655 #include <sys/types.h>
10656 #include <sys/param.h>
10661 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10662 bogus endian macros
10669 rm -f conftest.$ac_objext
10670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10671 (eval $ac_compile) 2>conftest.er1
10673 grep -v '^ *+' conftest.er1 >conftest.err
10675 cat conftest.err >&5
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); } &&
10678 { ac_try='test -z "$ac_c_werror_flag"
10679 || test ! -s conftest.err'
10680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10681 (eval $ac_try) 2>&5
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); }; } &&
10685 { ac_try='test -s conftest.$ac_objext'
10686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687 (eval $ac_try) 2>&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); }; }; then
10691 # It does; now see whether it defined to BIG_ENDIAN or not.
10692 cat >conftest.$ac_ext <<_ACEOF
10695 cat confdefs.h >>conftest.$ac_ext
10696 cat >>conftest.$ac_ext <<_ACEOF
10697 /* end confdefs.h. */
10698 #include <sys/types.h>
10699 #include <sys/param.h>
10704 #if BYTE_ORDER != BIG_ENDIAN
10712 rm -f conftest.$ac_objext
10713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10714 (eval $ac_compile) 2>conftest.er1
10716 grep -v '^ *+' conftest.er1 >conftest.err
10718 cat conftest.err >&5
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); } &&
10721 { ac_try='test -z "$ac_c_werror_flag"
10722 || test ! -s conftest.err'
10723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10724 (eval $ac_try) 2>&5
10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 (exit $ac_status); }; } &&
10728 { ac_try='test -s conftest.$ac_objext'
10729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10730 (eval $ac_try) 2>&5
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); }; }; then
10734 ac_cv_c_bigendian=yes
10736 echo "$as_me: failed program was:" >&5
10737 sed 's/^/| /' conftest.$ac_ext >&5
10739 ac_cv_c_bigendian=no
10741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10743 echo "$as_me: failed program was:" >&5
10744 sed 's/^/| /' conftest.$ac_ext >&5
10746 # It does not; compile a test program.
10747 if test "$cross_compiling" = yes; then
10748 # try to guess the endianness by grepping values into an object file
10749 ac_cv_c_bigendian=unknown
10750 cat >conftest.$ac_ext <<_ACEOF
10753 cat confdefs.h >>conftest.$ac_ext
10754 cat >>conftest.$ac_ext <<_ACEOF
10755 /* end confdefs.h. */
10756 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10757 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10758 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
10759 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10760 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10761 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
10765 _ascii (); _ebcdic ();
10770 rm -f conftest.$ac_objext
10771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10772 (eval $ac_compile) 2>conftest.er1
10774 grep -v '^ *+' conftest.er1 >conftest.err
10776 cat conftest.err >&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); } &&
10779 { ac_try='test -z "$ac_c_werror_flag"
10780 || test ! -s conftest.err'
10781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10782 (eval $ac_try) 2>&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); }; } &&
10786 { ac_try='test -s conftest.$ac_objext'
10787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10788 (eval $ac_try) 2>&5
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); }; }; then
10792 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
10793 ac_cv_c_bigendian=yes
10795 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10796 if test "$ac_cv_c_bigendian" = unknown; then
10797 ac_cv_c_bigendian=no
10799 # finding both strings is unlikely to happen, but who knows?
10800 ac_cv_c_bigendian=unknown
10804 echo "$as_me: failed program was:" >&5
10805 sed 's/^/| /' conftest.$ac_ext >&5
10808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10810 cat >conftest.$ac_ext <<_ACEOF
10813 cat confdefs.h >>conftest.$ac_ext
10814 cat >>conftest.$ac_ext <<_ACEOF
10815 /* end confdefs.h. */
10819 /* Are we little or big endian? From Harbison&Steele. */
10823 char c[sizeof (long)];
10826 exit (u.c[sizeof (long) - 1] == 1);
10829 rm -f conftest$ac_exeext
10830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10831 (eval $ac_link) 2>&5
10833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10836 (eval $ac_try) 2>&5
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); }; }; then
10840 ac_cv_c_bigendian=no
10842 echo "$as_me: program exited with status $ac_status" >&5
10843 echo "$as_me: failed program was:" >&5
10844 sed 's/^/| /' conftest.$ac_ext >&5
10846 ( exit $ac_status )
10847 ac_cv_c_bigendian=yes
10849 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10854 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
10855 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
10856 case $ac_cv_c_bigendian in
10859 cat >>confdefs.h <<\_ACEOF
10860 #define WORDS_BIGENDIAN 1
10866 { { echo "$as_me:$LINENO: error: unknown endianness
10867 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
10868 echo "$as_me: error: unknown endianness
10869 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
10870 { (exit 1); exit 1; }; } ;;
10874 # Check whether --enable-regdomain or --disable-regdomain was given.
10875 if test "${enable_regdomain+set}" = set; then
10876 enableval="$enable_regdomain"
10877 case "$enableval" in
10880 cat >>confdefs.h <<\_ACEOF
10881 #define NO_REG_DOMAIN 1
10889 ac_config_files="$ac_config_files Makefile src/Makefile ap-gl/Makefile lib/Makefile po/Makefile.in intl/Makefile Documentation/Makefile"
10890 cat >confcache <<\_ACEOF
10891 # This file is a shell script that caches the results of configure
10892 # tests run on this system so they can be shared between configure
10893 # scripts and configure runs, see configure's option --config-cache.
10894 # It is not useful on other systems. If it contains results you don't
10895 # want to keep, you may remove or edit it.
10897 # config.status only pays attention to the cache file if you give it
10898 # the --recheck option to rerun configure.
10900 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10901 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10902 # following values.
10906 # The following way of writing the cache mishandles newlines in values,
10907 # but we know of no workaround that is simple, portable, and efficient.
10908 # So, don't put newlines in cache variables' values.
10909 # Ultrix sh set writes to stderr and can't be redirected directly,
10910 # and sets the high bit in the cache file unless we assign to the vars.
10913 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10915 # `set' does not quote correctly, so add quotes (double-quote
10916 # substitution turns \\\\ into \\, and sed turns \\ into \).
10919 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10922 # `set' quotes correctly as required by POSIX, so do not add quotes.
10924 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10931 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10933 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10935 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10936 if test -w $cache_file; then
10937 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10938 cat confcache >$cache_file
10940 echo "not updating unwritable cache $cache_file"
10945 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10946 # Let make expand exec_prefix.
10947 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10949 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10950 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10951 # trailing colons and then remove the whole line if VPATH becomes empty
10952 # (actually we leave an empty line to preserve line numbers).
10953 if test "x$srcdir" = x.; then
10954 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10955 s/:*\$(srcdir):*/:/;
10956 s/:*\${srcdir}:*/:/;
10958 s/^\([^=]*=[ ]*\):*/\1/;
10964 DEFS=-DHAVE_CONFIG_H
10968 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10969 # 1. Remove the extension, and $U if already installed.
10970 ac_i=`echo "$ac_i" |
10971 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
10973 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
10974 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
10976 LIBOBJS=$ac_libobjs
10978 LTLIBOBJS=$ac_ltlibobjs
10981 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10982 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
10983 Usually this means the macro was only invoked conditionally." >&5
10984 echo "$as_me: error: conditional \"AMDEP\" was never defined.
10985 Usually this means the macro was only invoked conditionally." >&2;}
10986 { (exit 1); exit 1; }; }
10988 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10989 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
10990 Usually this means the macro was only invoked conditionally." >&5
10991 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
10992 Usually this means the macro was only invoked conditionally." >&2;}
10993 { (exit 1); exit 1; }; }
10996 : ${CONFIG_STATUS=./config.status}
10997 ac_clean_files_save=$ac_clean_files
10998 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10999 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11000 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11001 cat >$CONFIG_STATUS <<_ACEOF
11003 # Generated by $as_me.
11004 # Run this file to recreate the current configuration.
11005 # Compiler output produced by configure, useful for debugging
11006 # configure, is in config.log if it exists.
11009 ac_cs_recheck=false
11011 SHELL=\${CONFIG_SHELL-$SHELL}
11014 cat >>$CONFIG_STATUS <<\_ACEOF
11015 ## --------------------- ##
11016 ## M4sh Initialization. ##
11017 ## --------------------- ##
11019 # Be Bourne compatible
11020 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11023 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11024 # is contrary to our usage. Disable this feature.
11025 alias -g '${1+"$@"}'='"$@"'
11026 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11029 DUALCASE=1; export DUALCASE # for MKS sh
11031 # Support unset when possible.
11032 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11039 # Work around bugs in pre-3.0 UWIN ksh.
11040 $as_unset ENV MAIL MAILPATH
11047 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11048 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11049 LC_TELEPHONE LC_TIME
11051 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11052 eval $as_var=C; export $as_var
11058 # Required to use basename.
11059 if expr a : '\(a\)' >/dev/null 2>&1; then
11065 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11066 as_basename=basename
11072 # Name of the executable.
11073 as_me=`$as_basename "$0" ||
11074 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11075 X"$0" : 'X\(//\)$' \| \
11076 X"$0" : 'X\(/\)$' \| \
11077 . : '\(.\)' 2>/dev/null ||
11079 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11080 /^X\/\(\/\/\)$/{ s//\1/; q; }
11081 /^X\/\(\/\).*/{ s//\1/; q; }
11085 # PATH needs CR, and LINENO needs CR and PATH.
11086 # Avoid depending upon Character Ranges.
11087 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11088 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11089 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11090 as_cr_digits='0123456789'
11091 as_cr_alnum=$as_cr_Letters$as_cr_digits
11093 # The user is always right.
11094 if test "${PATH_SEPARATOR+set}" != set; then
11095 echo "#! /bin/sh" >conf$$.sh
11096 echo "exit 0" >>conf$$.sh
11098 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11107 as_lineno_1=$LINENO
11108 as_lineno_2=$LINENO
11109 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11110 test "x$as_lineno_1" != "x$as_lineno_2" &&
11111 test "x$as_lineno_3" = "x$as_lineno_2" || {
11112 # Find who we are. Look in the path if we contain no path at all
11115 *[\\/]* ) as_myself=$0 ;;
11116 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11117 for as_dir in $PATH
11120 test -z "$as_dir" && as_dir=.
11121 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11126 # We did not find ourselves, most probably we were run as `sh COMMAND'
11127 # in which case we are not to be found in the path.
11128 if test "x$as_myself" = x; then
11131 if test ! -f "$as_myself"; then
11132 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11133 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11134 { (exit 1); exit 1; }; }
11136 case $CONFIG_SHELL in
11138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11139 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11142 test -z "$as_dir" && as_dir=.
11143 for as_base in sh bash ksh sh5; do
11146 if ("$as_dir/$as_base" -c '
11147 as_lineno_1=$LINENO
11148 as_lineno_2=$LINENO
11149 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11150 test "x$as_lineno_1" != "x$as_lineno_2" &&
11151 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
11152 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11153 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11154 CONFIG_SHELL=$as_dir/$as_base
11155 export CONFIG_SHELL
11156 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11164 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11165 # uniformly replaced by the line number. The first 'sed' inserts a
11166 # line-number line before each line; the second 'sed' does the real
11167 # work. The second script uses 'N' to pair each line-number line
11168 # with the numbered line, and appends trailing '-' during
11169 # substitution so that $LINENO is not a special case at line end.
11170 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11171 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
11172 sed '=' <$as_myself |
11177 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11180 s,^['$as_cr_digits']*\n,,
11181 ' >$as_me.lineno &&
11182 chmod +x $as_me.lineno ||
11183 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11184 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11185 { (exit 1); exit 1; }; }
11187 # Don't try to exec as it changes $[0], causing all sort of problems
11188 # (the dirname of $[0] is not the place where we might find the
11189 # original and so on. Autoconf is especially sensible to this).
11191 # Exit status is that of the last command.
11196 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11197 *c*,-n*) ECHO_N= ECHO_C='
11199 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11200 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
11203 if expr a : '\(a\)' >/dev/null 2>&1; then
11209 rm -f conf$$ conf$$.exe conf$$.file
11211 if ln -s conf$$.file conf$$ 2>/dev/null; then
11212 # We could just check for DJGPP; but this test a) works b) is more generic
11213 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11214 if test -f conf$$.exe; then
11215 # Don't use ln at all; we don't have any links
11220 elif ln conf$$.file conf$$ 2>/dev/null; then
11225 rm -f conf$$ conf$$.exe conf$$.file
11227 if mkdir -p . 2>/dev/null; then
11230 test -d ./-p && rmdir ./-p
11234 as_executable_p="test -f"
11236 # Sed expression to map a string onto a valid CPP name.
11237 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11239 # Sed expression to map a string onto a valid variable name.
11240 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11244 # We need space, tab and new line, in precisely that order.
11254 # Open the log real soon, to keep \$[0] and so on meaningful, and to
11255 # report actual input values of CONFIG_FILES etc. instead of their
11256 # values after options handling. Logging --version etc. is OK.
11260 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11261 ## Running $as_me. ##
11266 This file was extended by $as_me, which was
11267 generated by GNU Autoconf 2.59. Invocation command line was
11269 CONFIG_FILES = $CONFIG_FILES
11270 CONFIG_HEADERS = $CONFIG_HEADERS
11271 CONFIG_LINKS = $CONFIG_LINKS
11272 CONFIG_COMMANDS = $CONFIG_COMMANDS
11276 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11280 # Files that config.status was made for.
11281 if test -n "$ac_config_files"; then
11282 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11285 if test -n "$ac_config_headers"; then
11286 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11289 if test -n "$ac_config_links"; then
11290 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11293 if test -n "$ac_config_commands"; then
11294 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11297 cat >>$CONFIG_STATUS <<\_ACEOF
11300 \`$as_me' instantiates files from templates according to the
11301 current configuration.
11303 Usage: $0 [OPTIONS] [FILE]...
11305 -h, --help print this help, then exit
11306 -V, --version print version number, then exit
11307 -q, --quiet do not print progress messages
11308 -d, --debug don't remove temporary files
11309 --recheck update $as_me by reconfiguring in the same conditions
11310 --file=FILE[:TEMPLATE]
11311 instantiate the configuration file FILE
11312 --header=FILE[:TEMPLATE]
11313 instantiate the configuration header FILE
11315 Configuration files:
11318 Configuration headers:
11321 Configuration commands:
11324 Report bugs to <bug-autoconf@gnu.org>."
11327 cat >>$CONFIG_STATUS <<_ACEOF
11330 configured by $0, generated by GNU Autoconf 2.59,
11331 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11333 Copyright (C) 2003 Free Software Foundation, Inc.
11334 This config.status script is free software; the Free Software Foundation
11335 gives unlimited permission to copy, distribute and modify it."
11340 cat >>$CONFIG_STATUS <<\_ACEOF
11341 # If no file are specified by the user, then we need to provide default
11342 # value. By we need to know if files were specified by the user.
11348 ac_option=`expr "x$1" : 'x\([^=]*\)='`
11349 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11357 *) # This is not an option, so the user has probably given explicit
11360 ac_need_defaults=false;;
11364 # Handling of the options.
11366 cat >>$CONFIG_STATUS <<\_ACEOF
11367 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11369 --version | --vers* | -V )
11370 echo "$ac_cs_version"; exit 0 ;;
11372 # Conflict between --help and --header
11373 { { echo "$as_me:$LINENO: error: ambiguous option: $1
11374 Try \`$0 --help' for more information." >&5
11375 echo "$as_me: error: ambiguous option: $1
11376 Try \`$0 --help' for more information." >&2;}
11377 { (exit 1); exit 1; }; };;
11378 --help | --hel | -h )
11379 echo "$ac_cs_usage"; exit 0 ;;
11380 --debug | --d* | -d )
11382 --file | --fil | --fi | --f )
11384 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11385 ac_need_defaults=false;;
11386 --header | --heade | --head | --hea )
11388 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11389 ac_need_defaults=false;;
11390 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11391 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11394 # This is an error.
11395 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11396 Try \`$0 --help' for more information." >&5
11397 echo "$as_me: error: unrecognized option: $1
11398 Try \`$0 --help' for more information." >&2;}
11399 { (exit 1); exit 1; }; } ;;
11401 *) ac_config_targets="$ac_config_targets $1" ;;
11407 ac_configure_extra_args=
11409 if $ac_cs_silent; then
11411 ac_configure_extra_args="$ac_configure_extra_args --silent"
11415 cat >>$CONFIG_STATUS <<_ACEOF
11416 if \$ac_cs_recheck; then
11417 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11418 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11423 cat >>$CONFIG_STATUS <<_ACEOF
11425 # INIT-COMMANDS section.
11428 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11429 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
11430 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
11432 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
11433 # Capture the value of LINGUAS because we need it to compute CATALOGS.
11434 LINGUAS="${LINGUAS-%UNSET%}"
11441 cat >>$CONFIG_STATUS <<\_ACEOF
11442 for ac_config_target in $ac_config_targets
11444 case "$ac_config_target" in
11445 # Handling of arguments.
11446 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11447 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11448 "ap-gl/Makefile" ) CONFIG_FILES="$CONFIG_FILES ap-gl/Makefile" ;;
11449 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
11450 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
11451 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
11452 "Documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES Documentation/Makefile" ;;
11453 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11454 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11455 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11456 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11457 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11458 { (exit 1); exit 1; }; };;
11462 # If the user did not use the arguments to specify the items to instantiate,
11463 # then the envvar interface is used. Set only those that are not.
11464 # We use the long form for the default assignment because of an extremely
11465 # bizarre bug on SunOS 4.1.3.
11466 if $ac_need_defaults; then
11467 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11468 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11469 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11472 # Have a temporary directory for convenience. Make it in the build tree
11473 # simply because there is no reason to put it here, and in addition,
11474 # creating and moving files from /tmp can sometimes cause problems.
11475 # Create a temporary directory, and hook for its removal unless debugging.
11478 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
11479 trap '{ (exit 1); exit 1; }' 1 2 13 15
11482 # Create a (secure) tmp directory for tmp files.
11485 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
11486 test -n "$tmp" && test -d "$tmp"
11489 tmp=./confstat$$-$RANDOM
11490 (umask 077 && mkdir $tmp)
11493 echo "$me: cannot create a temporary directory in ." >&2
11494 { (exit 1); exit 1; }
11499 cat >>$CONFIG_STATUS <<_ACEOF
11502 # CONFIG_FILES section.
11505 # No need to generate the scripts if there are no CONFIG_FILES.
11506 # This happens for instance when ./config.status config.h
11507 if test -n "\$CONFIG_FILES"; then
11508 # Protect against being on the right side of a sed subst in config.status.
11509 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
11510 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
11511 s,@SHELL@,$SHELL,;t t
11512 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
11513 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
11514 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
11515 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
11516 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
11517 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
11518 s,@exec_prefix@,$exec_prefix,;t t
11519 s,@prefix@,$prefix,;t t
11520 s,@program_transform_name@,$program_transform_name,;t t
11521 s,@bindir@,$bindir,;t t
11522 s,@sbindir@,$sbindir,;t t
11523 s,@libexecdir@,$libexecdir,;t t
11524 s,@datadir@,$datadir,;t t
11525 s,@sysconfdir@,$sysconfdir,;t t
11526 s,@sharedstatedir@,$sharedstatedir,;t t
11527 s,@localstatedir@,$localstatedir,;t t
11528 s,@libdir@,$libdir,;t t
11529 s,@includedir@,$includedir,;t t
11530 s,@oldincludedir@,$oldincludedir,;t t
11531 s,@infodir@,$infodir,;t t
11532 s,@mandir@,$mandir,;t t
11533 s,@build_alias@,$build_alias,;t t
11534 s,@host_alias@,$host_alias,;t t
11535 s,@target_alias@,$target_alias,;t t
11536 s,@DEFS@,$DEFS,;t t
11537 s,@ECHO_C@,$ECHO_C,;t t
11538 s,@ECHO_N@,$ECHO_N,;t t
11539 s,@ECHO_T@,$ECHO_T,;t t
11540 s,@LIBS@,$LIBS,;t t
11541 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
11542 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
11543 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
11544 s,@CYGPATH_W@,$CYGPATH_W,;t t
11545 s,@PACKAGE@,$PACKAGE,;t t
11546 s,@VERSION@,$VERSION,;t t
11547 s,@ACLOCAL@,$ACLOCAL,;t t
11548 s,@AUTOCONF@,$AUTOCONF,;t t
11549 s,@AUTOMAKE@,$AUTOMAKE,;t t
11550 s,@AUTOHEADER@,$AUTOHEADER,;t t
11551 s,@MAKEINFO@,$MAKEINFO,;t t
11552 s,@AMTAR@,$AMTAR,;t t
11553 s,@install_sh@,$install_sh,;t t
11554 s,@STRIP@,$STRIP,;t t
11555 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
11556 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
11558 s,@SET_MAKE@,$SET_MAKE,;t t
11559 s,@am__leading_dot@,$am__leading_dot,;t t
11561 s,@CFLAGS@,$CFLAGS,;t t
11562 s,@LDFLAGS@,$LDFLAGS,;t t
11563 s,@CPPFLAGS@,$CPPFLAGS,;t t
11564 s,@ac_ct_CC@,$ac_ct_CC,;t t
11565 s,@EXEEXT@,$EXEEXT,;t t
11566 s,@OBJEXT@,$OBJEXT,;t t
11567 s,@DEPDIR@,$DEPDIR,;t t
11568 s,@am__include@,$am__include,;t t
11569 s,@am__quote@,$am__quote,;t t
11570 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
11571 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
11572 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
11573 s,@CCDEPMODE@,$CCDEPMODE,;t t
11574 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
11575 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
11576 s,@RANLIB@,$RANLIB,;t t
11577 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
11579 s,@EGREP@,$EGREP,;t t
11580 s,@LIBOBJS@,$LIBOBJS,;t t
11581 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
11582 s,@USE_NLS@,$USE_NLS,;t t
11583 s,@MSGFMT@,$MSGFMT,;t t
11584 s,@GMSGFMT@,$GMSGFMT,;t t
11585 s,@XGETTEXT@,$XGETTEXT,;t t
11586 s,@MSGMERGE@,$MSGMERGE,;t t
11587 s,@build@,$build,;t t
11588 s,@build_cpu@,$build_cpu,;t t
11589 s,@build_vendor@,$build_vendor,;t t
11590 s,@build_os@,$build_os,;t t
11591 s,@host@,$host,;t t
11592 s,@host_cpu@,$host_cpu,;t t
11593 s,@host_vendor@,$host_vendor,;t t
11594 s,@host_os@,$host_os,;t t
11595 s,@ALLOCA@,$ALLOCA,;t t
11596 s,@GLIBC21@,$GLIBC21,;t t
11597 s,@HAVE_POSIX_PRINTF@,$HAVE_POSIX_PRINTF,;t t
11598 s,@HAVE_ASPRINTF@,$HAVE_ASPRINTF,;t t
11599 s,@HAVE_SNPRINTF@,$HAVE_SNPRINTF,;t t
11600 s,@HAVE_WPRINTF@,$HAVE_WPRINTF,;t t
11601 s,@LIBICONV@,$LIBICONV,;t t
11602 s,@LTLIBICONV@,$LTLIBICONV,;t t
11603 s,@INTLBISON@,$INTLBISON,;t t
11604 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
11605 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
11606 s,@CATOBJEXT@,$CATOBJEXT,;t t
11607 s,@DATADIRNAME@,$DATADIRNAME,;t t
11608 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
11609 s,@GENCAT@,$GENCAT,;t t
11610 s,@INTLOBJS@,$INTLOBJS,;t t
11611 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
11612 s,@INTLLIBS@,$INTLLIBS,;t t
11613 s,@LIBINTL@,$LIBINTL,;t t
11614 s,@LTLIBINTL@,$LTLIBINTL,;t t
11615 s,@POSUB@,$POSUB,;t t
11616 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
11621 cat >>$CONFIG_STATUS <<\_ACEOF
11622 # Split the substitutions into bite-sized pieces for seds with
11623 # small command number limits, like on Digital OSF/1 and HP-UX.
11624 ac_max_sed_lines=48
11625 ac_sed_frag=1 # Number of current file.
11626 ac_beg=1 # First line for current file.
11627 ac_end=$ac_max_sed_lines # Line after last line for current file.
11630 while $ac_more_lines; do
11631 if test $ac_beg -gt 1; then
11632 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11634 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
11636 if test ! -s $tmp/subs.frag; then
11637 ac_more_lines=false
11639 # The purpose of the label and of the branching condition is to
11640 # speed up the sed processing (if there are no `@' at all, there
11641 # is no need to browse any of the substitutions).
11642 # These are the two extra sed commands mentioned above.
11644 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
11645 if test -z "$ac_sed_cmds"; then
11646 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
11648 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
11650 ac_sed_frag=`expr $ac_sed_frag + 1`
11652 ac_end=`expr $ac_end + $ac_max_sed_lines`
11655 if test -z "$ac_sed_cmds"; then
11658 fi # test -n "$CONFIG_FILES"
11661 cat >>$CONFIG_STATUS <<\_ACEOF
11662 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
11663 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11665 - | *:- | *:-:* ) # input from stdin
11667 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11668 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11669 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11670 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11671 * ) ac_file_in=$ac_file.in ;;
11674 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
11675 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
11676 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11677 X"$ac_file" : 'X\(//\)[^/]' \| \
11678 X"$ac_file" : 'X\(//\)$' \| \
11679 X"$ac_file" : 'X\(/\)' \| \
11680 . : '\(.\)' 2>/dev/null ||
11682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11683 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11684 /^X\(\/\/\)$/{ s//\1/; q; }
11685 /^X\(\/\).*/{ s//\1/; q; }
11687 { if $as_mkdir_p; then
11692 while test ! -d "$as_dir"; do
11693 as_dirs="$as_dir $as_dirs"
11694 as_dir=`(dirname "$as_dir") 2>/dev/null ||
11695 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11696 X"$as_dir" : 'X\(//\)[^/]' \| \
11697 X"$as_dir" : 'X\(//\)$' \| \
11698 X"$as_dir" : 'X\(/\)' \| \
11699 . : '\(.\)' 2>/dev/null ||
11701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
11702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
11703 /^X\(\/\/\)$/{ s//\1/; q; }
11704 /^X\(\/\).*/{ s//\1/; q; }
11707 test ! -n "$as_dirs" || mkdir $as_dirs
11708 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
11709 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11710 { (exit 1); exit 1; }; }; }
11714 if test "$ac_dir" != .; then
11715 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11716 # A "../" for each directory in $ac_dir_suffix.
11717 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
11719 ac_dir_suffix= ac_top_builddir=
11723 .) # No --srcdir option. We are building in place.
11725 if test -z "$ac_top_builddir"; then
11728 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11730 [\\/]* | ?:[\\/]* ) # Absolute path.
11731 ac_srcdir=$srcdir$ac_dir_suffix;
11732 ac_top_srcdir=$srcdir ;;
11733 *) # Relative path.
11734 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11735 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11738 # Do not use `cd foo && pwd` to compute absolute paths, because
11739 # the directories may not exist.
11741 .) ac_abs_builddir="$ac_dir";;
11744 .) ac_abs_builddir=`pwd`;;
11745 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
11746 *) ac_abs_builddir=`pwd`/"$ac_dir";;
11749 case $ac_abs_builddir in
11750 .) ac_abs_top_builddir=${ac_top_builddir}.;;
11752 case ${ac_top_builddir}. in
11753 .) ac_abs_top_builddir=$ac_abs_builddir;;
11754 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
11755 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
11758 case $ac_abs_builddir in
11759 .) ac_abs_srcdir=$ac_srcdir;;
11762 .) ac_abs_srcdir=$ac_abs_builddir;;
11763 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
11764 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
11767 case $ac_abs_builddir in
11768 .) ac_abs_top_srcdir=$ac_top_srcdir;;
11770 case $ac_top_srcdir in
11771 .) ac_abs_top_srcdir=$ac_abs_builddir;;
11772 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
11773 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
11779 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11780 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
11783 if test x"$ac_file" != x-; then
11784 { echo "$as_me:$LINENO: creating $ac_file" >&5
11785 echo "$as_me: creating $ac_file" >&6;}
11788 # Let's still pretend it is `configure' which instantiates (i.e., don't
11789 # use $as_me), people would be surprised to read:
11790 # /* config.h. Generated by config.status. */
11791 if test x"$ac_file" = x-; then
11794 configure_input="$ac_file. "
11796 configure_input=$configure_input"Generated from `echo $ac_file_in |
11797 sed 's,.*/,,'` by configure."
11799 # First look for the input files in the build tree, otherwise in the
11801 ac_file_inputs=`IFS=:
11802 for f in $ac_file_in; do
11804 -) echo $tmp/stdin ;;
11806 # Absolute (can't be DOS-style, as IFS=:)
11807 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11808 echo "$as_me: error: cannot find input file: $f" >&2;}
11809 { (exit 1); exit 1; }; }
11812 if test -f "$f"; then
11815 elif test -f "$srcdir/$f"; then
11820 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11821 echo "$as_me: error: cannot find input file: $f" >&2;}
11822 { (exit 1); exit 1; }; }
11825 done` || { (exit 1); exit 1; }
11827 cat >>$CONFIG_STATUS <<_ACEOF
11831 cat >>$CONFIG_STATUS <<\_ACEOF
11833 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11834 s,@configure_input@,$configure_input,;t t
11835 s,@srcdir@,$ac_srcdir,;t t
11836 s,@abs_srcdir@,$ac_abs_srcdir,;t t
11837 s,@top_srcdir@,$ac_top_srcdir,;t t
11838 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11839 s,@builddir@,$ac_builddir,;t t
11840 s,@abs_builddir@,$ac_abs_builddir,;t t
11841 s,@top_builddir@,$ac_top_builddir,;t t
11842 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11843 s,@INSTALL@,$ac_INSTALL,;t t
11844 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
11846 if test x"$ac_file" != x-; then
11847 mv $tmp/out $ac_file
11855 cat >>$CONFIG_STATUS <<\_ACEOF
11858 # CONFIG_HEADER section.
11861 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
11862 # NAME is the cpp macro being defined and VALUE is the value it is being given.
11864 # ac_d sets the value in "#define NAME VALUE" lines.
11865 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
11866 ac_dB='[ ].*$,\1#\2'
11869 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
11870 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
11871 ac_uB='$,\1#\2define\3'
11875 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
11876 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
11878 - | *:- | *:-:* ) # input from stdin
11880 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11881 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11882 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
11883 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
11884 * ) ac_file_in=$ac_file.in ;;
11887 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
11888 echo "$as_me: creating $ac_file" >&6;}
11890 # First look for the input files in the build tree, otherwise in the
11892 ac_file_inputs=`IFS=:
11893 for f in $ac_file_in; do
11895 -) echo $tmp/stdin ;;
11897 # Absolute (can't be DOS-style, as IFS=:)
11898 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11899 echo "$as_me: error: cannot find input file: $f" >&2;}
11900 { (exit 1); exit 1; }; }
11901 # Do quote $f, to prevent DOS paths from being IFS'd.
11904 if test -f "$f"; then
11907 elif test -f "$srcdir/$f"; then
11912 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
11913 echo "$as_me: error: cannot find input file: $f" >&2;}
11914 { (exit 1); exit 1; }; }
11917 done` || { (exit 1); exit 1; }
11918 # Remove the trailing spaces.
11919 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
11923 # Transform confdefs.h into two sed scripts, `conftest.defines' and
11924 # `conftest.undefs', that substitutes the proper values into
11925 # config.h.in to produce config.h. The first handles `#define'
11926 # templates, and the second `#undef' templates.
11927 # And first: Protect against being on the right side of a sed subst in
11928 # config.status. Protect against being in an unquoted here document
11929 # in config.status.
11930 rm -f conftest.defines conftest.undefs
11931 # Using a here document instead of a string reduces the quoting nightmare.
11932 # Putting comments in sed scripts is not portable.
11934 # `end' is used to avoid that the second main sed command (meant for
11935 # 0-ary CPP macros) applies to n-ary macro definitions.
11936 # See the Autoconf documentation for `clear'.
11937 cat >confdef2sed.sed <<\_ACEOF
11942 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
11944 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
11947 # If some macros were called several times there might be several times
11948 # the same #defines, which is useless. Nevertheless, we may not want to
11949 # sort them, since we want the *last* AC-DEFINE to be honored.
11950 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
11951 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
11952 rm -f confdef2sed.sed
11954 # This sed command replaces #undef with comments. This is necessary, for
11955 # example, in the case of _POSIX_SOURCE, which is predefined and required
11956 # on some systems where configure will not decide to define it.
11957 cat >>conftest.undefs <<\_ACEOF
11958 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
11961 # Break up conftest.defines because some shells have a limit on the size
11962 # of here documents, and old seds have small limits too (100 cmds).
11963 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
11964 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
11965 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
11966 echo ' :' >>$CONFIG_STATUS
11967 rm -f conftest.tail
11968 while grep . conftest.defines >/dev/null
11970 # Write a limited-size here document to $tmp/defines.sed.
11971 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
11972 # Speed up: don't consider the non `#define' lines.
11973 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
11974 # Work around the forget-to-reset-the-flag bug.
11975 echo 't clr' >>$CONFIG_STATUS
11976 echo ': clr' >>$CONFIG_STATUS
11977 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
11979 sed -f $tmp/defines.sed $tmp/in >$tmp/out
11981 mv $tmp/out $tmp/in
11983 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
11984 rm -f conftest.defines
11985 mv conftest.tail conftest.defines
11987 rm -f conftest.defines
11988 echo ' fi # grep' >>$CONFIG_STATUS
11989 echo >>$CONFIG_STATUS
11991 # Break up conftest.undefs because some shells have a limit on the size
11992 # of here documents, and old seds have small limits too (100 cmds).
11993 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
11994 rm -f conftest.tail
11995 while grep . conftest.undefs >/dev/null
11997 # Write a limited-size here document to $tmp/undefs.sed.
11998 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
11999 # Speed up: don't consider the non `#undef'
12000 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
12001 # Work around the forget-to-reset-the-flag bug.
12002 echo 't clr' >>$CONFIG_STATUS
12003 echo ': clr' >>$CONFIG_STATUS
12004 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12006 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12008 mv $tmp/out $tmp/in
12010 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12011 rm -f conftest.undefs
12012 mv conftest.tail conftest.undefs
12014 rm -f conftest.undefs
12016 cat >>$CONFIG_STATUS <<\_ACEOF
12017 # Let's still pretend it is `configure' which instantiates (i.e., don't
12018 # use $as_me), people would be surprised to read:
12019 # /* config.h. Generated by config.status. */
12020 if test x"$ac_file" = x-; then
12021 echo "/* Generated by configure. */" >$tmp/config.h
12023 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
12025 cat $tmp/in >>$tmp/config.h
12027 if test x"$ac_file" != x-; then
12028 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12029 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12030 echo "$as_me: $ac_file is unchanged" >&6;}
12032 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12033 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12034 X"$ac_file" : 'X\(//\)[^/]' \| \
12035 X"$ac_file" : 'X\(//\)$' \| \
12036 X"$ac_file" : 'X\(/\)' \| \
12037 . : '\(.\)' 2>/dev/null ||
12039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12040 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12041 /^X\(\/\/\)$/{ s//\1/; q; }
12042 /^X\(\/\).*/{ s//\1/; q; }
12044 { if $as_mkdir_p; then
12049 while test ! -d "$as_dir"; do
12050 as_dirs="$as_dir $as_dirs"
12051 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12052 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12053 X"$as_dir" : 'X\(//\)[^/]' \| \
12054 X"$as_dir" : 'X\(//\)$' \| \
12055 X"$as_dir" : 'X\(/\)' \| \
12056 . : '\(.\)' 2>/dev/null ||
12058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12059 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12060 /^X\(\/\/\)$/{ s//\1/; q; }
12061 /^X\(\/\).*/{ s//\1/; q; }
12064 test ! -n "$as_dirs" || mkdir $as_dirs
12065 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12066 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12067 { (exit 1); exit 1; }; }; }
12070 mv $tmp/config.h $ac_file
12074 rm -f $tmp/config.h
12076 # Compute $ac_file's index in $config_headers.
12078 for _am_header in $config_headers :; do
12079 case $_am_header in
12080 $ac_file | $ac_file:* )
12083 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12086 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
12087 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12088 X$ac_file : 'X\(//\)[^/]' \| \
12089 X$ac_file : 'X\(//\)$' \| \
12090 X$ac_file : 'X\(/\)' \| \
12091 . : '\(.\)' 2>/dev/null ||
12093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12094 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12095 /^X\(\/\/\)$/{ s//\1/; q; }
12096 /^X\(\/\).*/{ s//\1/; q; }
12097 s/.*/./; q'`/stamp-h$_am_stamp_count
12100 cat >>$CONFIG_STATUS <<\_ACEOF
12103 # CONFIG_COMMANDS section.
12105 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12106 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12107 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12108 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12109 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12110 X"$ac_dest" : 'X\(//\)[^/]' \| \
12111 X"$ac_dest" : 'X\(//\)$' \| \
12112 X"$ac_dest" : 'X\(/\)' \| \
12113 . : '\(.\)' 2>/dev/null ||
12115 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12116 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12117 /^X\(\/\/\)$/{ s//\1/; q; }
12118 /^X\(\/\).*/{ s//\1/; q; }
12120 { if $as_mkdir_p; then
12125 while test ! -d "$as_dir"; do
12126 as_dirs="$as_dir $as_dirs"
12127 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12128 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12129 X"$as_dir" : 'X\(//\)[^/]' \| \
12130 X"$as_dir" : 'X\(//\)$' \| \
12131 X"$as_dir" : 'X\(/\)' \| \
12132 . : '\(.\)' 2>/dev/null ||
12134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12135 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12136 /^X\(\/\/\)$/{ s//\1/; q; }
12137 /^X\(\/\).*/{ s//\1/; q; }
12140 test ! -n "$as_dirs" || mkdir $as_dirs
12141 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12142 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12143 { (exit 1); exit 1; }; }; }
12147 if test "$ac_dir" != .; then
12148 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12149 # A "../" for each directory in $ac_dir_suffix.
12150 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12152 ac_dir_suffix= ac_top_builddir=
12156 .) # No --srcdir option. We are building in place.
12158 if test -z "$ac_top_builddir"; then
12161 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12163 [\\/]* | ?:[\\/]* ) # Absolute path.
12164 ac_srcdir=$srcdir$ac_dir_suffix;
12165 ac_top_srcdir=$srcdir ;;
12166 *) # Relative path.
12167 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12168 ac_top_srcdir=$ac_top_builddir$srcdir ;;
12171 # Do not use `cd foo && pwd` to compute absolute paths, because
12172 # the directories may not exist.
12174 .) ac_abs_builddir="$ac_dir";;
12177 .) ac_abs_builddir=`pwd`;;
12178 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12179 *) ac_abs_builddir=`pwd`/"$ac_dir";;
12182 case $ac_abs_builddir in
12183 .) ac_abs_top_builddir=${ac_top_builddir}.;;
12185 case ${ac_top_builddir}. in
12186 .) ac_abs_top_builddir=$ac_abs_builddir;;
12187 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12188 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12191 case $ac_abs_builddir in
12192 .) ac_abs_srcdir=$ac_srcdir;;
12195 .) ac_abs_srcdir=$ac_abs_builddir;;
12196 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12197 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12200 case $ac_abs_builddir in
12201 .) ac_abs_top_srcdir=$ac_top_srcdir;;
12203 case $ac_top_srcdir in
12204 .) ac_abs_top_srcdir=$ac_abs_builddir;;
12205 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12206 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12211 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12212 echo "$as_me: executing $ac_dest commands" >&6;}
12214 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12215 # Strip MF so we end up with the name of the file.
12216 mf=`echo "$mf" | sed -e 's/:.*$//'`
12217 # Check whether this is an Automake generated Makefile or not.
12218 # We used to match only the files named `Makefile.in', but
12219 # some people rename them; so instead we look at the file content.
12220 # Grep'ing the first line is not enough: some people post-process
12221 # each Makefile.in and add a new line on top of each file to say so.
12222 # So let's grep whole file.
12223 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12224 dirpart=`(dirname "$mf") 2>/dev/null ||
12225 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12226 X"$mf" : 'X\(//\)[^/]' \| \
12227 X"$mf" : 'X\(//\)$' \| \
12228 X"$mf" : 'X\(/\)' \| \
12229 . : '\(.\)' 2>/dev/null ||
12231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12232 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12233 /^X\(\/\/\)$/{ s//\1/; q; }
12234 /^X\(\/\).*/{ s//\1/; q; }
12239 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
12240 # Extract the definition of DEP_FILES from the Makefile without
12242 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
12243 test -z "$DEPDIR" && continue
12244 # When using ansi2knr, U may be empty or an underscore; expand it
12245 U=`sed -n -e '/^U = / s///p' < "$mf"`
12246 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
12247 # We invoke sed twice because it is the simplest approach to
12248 # changing $(DEPDIR) to its actual value in the expansion.
12249 for file in `sed -n -e '
12250 /^DEP_FILES = .*\\\\$/ {
12259 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
12260 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12261 # Make sure the directory exists.
12262 test -f "$dirpart/$file" && continue
12263 fdir=`(dirname "$file") 2>/dev/null ||
12264 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12265 X"$file" : 'X\(//\)[^/]' \| \
12266 X"$file" : 'X\(//\)$' \| \
12267 X"$file" : 'X\(/\)' \| \
12268 . : '\(.\)' 2>/dev/null ||
12270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12271 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12272 /^X\(\/\/\)$/{ s//\1/; q; }
12273 /^X\(\/\).*/{ s//\1/; q; }
12275 { if $as_mkdir_p; then
12276 mkdir -p $dirpart/$fdir
12278 as_dir=$dirpart/$fdir
12280 while test ! -d "$as_dir"; do
12281 as_dirs="$as_dir $as_dirs"
12282 as_dir=`(dirname "$as_dir") 2>/dev/null ||
12283 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12284 X"$as_dir" : 'X\(//\)[^/]' \| \
12285 X"$as_dir" : 'X\(//\)$' \| \
12286 X"$as_dir" : 'X\(/\)' \| \
12287 . : '\(.\)' 2>/dev/null ||
12289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12290 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12291 /^X\(\/\/\)$/{ s//\1/; q; }
12292 /^X\(\/\).*/{ s//\1/; q; }
12295 test ! -n "$as_dirs" || mkdir $as_dirs
12296 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
12297 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
12298 { (exit 1); exit 1; }; }; }
12300 # echo "creating $dirpart/$file"
12301 echo '# dummy' > "$dirpart/$file"
12306 for ac_file in $CONFIG_FILES; do
12307 # Support "outfile[:infile[:infile...]]"
12309 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12311 # PO directories have a Makefile.in generated from Makefile.in.in.
12312 case "$ac_file" in */Makefile.in)
12313 # Adjust a relative srcdir.
12314 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12315 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12316 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12317 # In autoconf-2.13 it is called $ac_given_srcdir.
12318 # In autoconf-2.50 it is called $srcdir.
12319 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12320 case "$ac_given_srcdir" in
12321 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12322 /*) top_srcdir="$ac_given_srcdir" ;;
12323 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12325 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12326 rm -f "$ac_dir/POTFILES"
12327 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12328 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12329 POMAKEFILEDEPS="POTFILES.in"
12330 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
12331 # on $ac_dir but don't depend on user-specified configuration
12333 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12334 # The LINGUAS file contains the set of available languages.
12335 if test -n "$OBSOLETE_ALL_LINGUAS"; then
12336 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12338 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12339 # Hide the ALL_LINGUAS assigment from automake.
12340 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12341 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12343 # The set of available languages was given in configure.in.
12344 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
12347 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12348 # Compute UPDATEPOFILES
12349 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12350 # Compute DUMMYPOFILES
12351 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12353 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
12354 case "$ac_given_srcdir" in
12356 *) srcdirpre='$(srcdir)/' ;;
12362 for lang in $ALL_LINGUAS; do
12363 POFILES="$POFILES $srcdirpre$lang.po"
12364 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12365 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12366 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12368 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12369 # environment variable.
12371 if test -n "$ALL_LINGUAS"; then
12372 for presentlang in $ALL_LINGUAS; do
12374 if test "%UNSET%" != "$LINGUAS"; then
12375 desiredlanguages="$LINGUAS"
12377 desiredlanguages="$ALL_LINGUAS"
12379 for desiredlang in $desiredlanguages; do
12380 # Use the presentlang catalog if desiredlang is
12381 # a. equal to presentlang, or
12382 # b. a variant of presentlang (because in this case,
12383 # presentlang can be used as a fallback for messages
12384 # which are not translated in the desiredlang catalog).
12385 case "$desiredlang" in
12386 "$presentlang"*) useit=yes;;
12389 if test $useit = yes; then
12390 INST_LINGUAS="$INST_LINGUAS $presentlang"
12395 if test -n "$INST_LINGUAS"; then
12396 for lang in $INST_LINGUAS; do
12397 CATALOGS="$CATALOGS $lang.gmo"
12400 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12401 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"
12402 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12403 if test -f "$f"; then
12405 *.orig | *.bak | *~) ;;
12406 *) cat "$f" >> "$ac_dir/Makefile" ;;
12418 cat >>$CONFIG_STATUS <<\_ACEOF
12420 { (exit 0); exit 0; }
12422 chmod +x $CONFIG_STATUS
12423 ac_clean_files=$ac_clean_files_save
12426 # configure is writing to config.log, and then calls config.status.
12427 # config.status does its own redirection, appending to config.log.
12428 # Unfortunately, on DOS this fails, as config.log is still kept open
12429 # by configure, so config.status won't be able to write to it; its
12430 # output is simply discarded. So we exec the FD to /dev/null,
12431 # effectively closing config.log, so it can be properly (re)opened and
12432 # appended to by config.status. When coming back to configure, we
12433 # need to make the FD available again.
12434 if test "$no_create" != yes; then
12436 ac_config_status_args=
12437 test "$silent" = yes &&
12438 ac_config_status_args="$ac_config_status_args --quiet"
12440 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12442 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12443 # would make configure fail if this is the last instruction.
12444 $ac_cs_success || { (exit 1); exit 1; }
12450 Thank you for using ap-utils.