2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.58 for pspp 0.3.1.
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.
269 PACKAGE_TARNAME='pspp'
270 PACKAGE_VERSION='0.3.1'
271 PACKAGE_STRING='pspp 0.3.1'
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 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 MKINSTALLDIRS USE_NLS MSGFMT GMSGFMT XGETTEXT MSGMERGE build build_cpu build_vendor build_os host host_cpu host_vendor host_os RANLIB ac_ct_RANLIB CPP EGREP ALLOCA GLIBC21 LIBICONV LTLIBICONV INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT DATADIRNAME INSTOBJEXT GENCAT INTLOBJS INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB LIBOBJS LN_S LTLIBOBJS'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
780 \`configure' configures pspp 0.3.1 to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
834 --program-prefix=PREFIX prepend PREFIX to installed program names
835 --program-suffix=SUFFIX append SUFFIX to installed program names
836 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839 --build=BUILD configure for building on BUILD [guessed]
840 --host=HOST cross-compile to build programs to run on HOST [BUILD]
844 if test -n "$ac_init_help"; then
845 case $ac_init_help in
846 short | recursive ) echo "Configuration of pspp 0.3.1:";;
851 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
852 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
853 --disable-dependency-tracking Speeds up one-time builds
854 --enable-dependency-tracking Do not reject slow dependency extractors
855 --disable-nls do not use Native Language Support
856 --disable-rpath do not hardcode runtime library paths
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:
874 linker flags, e.g. -L<lib dir> if you have
875 libraries in a nonstandard directory <lib dir>
877 C/C++ preprocessor flags, e.g. -I<include dir> if you
878 have headers in a nonstandard directory <include dir>
882 Use these variables to override the choices made by `configure' or to help
883 it to find libraries and programs with nonstandard names/locations.
888 if test "$ac_init_help" = "recursive"; then
889 # If there are subdirs, report their specific --help.
891 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
892 test -d $ac_dir || continue
895 if test "$ac_dir" != .; then
896 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
897 # A "../" for each directory in $ac_dir_suffix.
898 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
900 ac_dir_suffix= ac_top_builddir=
904 .) # No --srcdir option. We are building in place.
906 if test -z "$ac_top_builddir"; then
909 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
911 [\\/]* | ?:[\\/]* ) # Absolute path.
912 ac_srcdir=$srcdir$ac_dir_suffix;
913 ac_top_srcdir=$srcdir ;;
915 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
916 ac_top_srcdir=$ac_top_builddir$srcdir ;;
919 # Do not use `cd foo && pwd` to compute absolute paths, because
920 # the directories may not exist.
922 .) ac_abs_builddir="$ac_dir";;
925 .) ac_abs_builddir=`pwd`;;
926 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
927 *) ac_abs_builddir=`pwd`/"$ac_dir";;
930 case $ac_abs_builddir in
931 .) ac_abs_top_builddir=${ac_top_builddir}.;;
933 case ${ac_top_builddir}. in
934 .) ac_abs_top_builddir=$ac_abs_builddir;;
935 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
936 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
939 case $ac_abs_builddir in
940 .) ac_abs_srcdir=$ac_srcdir;;
943 .) ac_abs_srcdir=$ac_abs_builddir;;
944 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
945 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
948 case $ac_abs_builddir in
949 .) ac_abs_top_srcdir=$ac_top_srcdir;;
951 case $ac_top_srcdir in
952 .) ac_abs_top_srcdir=$ac_abs_builddir;;
953 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
954 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
959 # Check for guested configure; otherwise get Cygnus style configure.
960 if test -f $ac_srcdir/configure.gnu; then
962 $SHELL $ac_srcdir/configure.gnu --help=recursive
963 elif test -f $ac_srcdir/configure; then
965 $SHELL $ac_srcdir/configure --help=recursive
966 elif test -f $ac_srcdir/configure.ac ||
967 test -f $ac_srcdir/configure.in; then
971 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
977 test -n "$ac_init_help" && exit 0
978 if $ac_init_version; then
981 generated by GNU Autoconf 2.58
983 Copyright (C) 2003 Free Software Foundation, Inc.
984 This configure script is free software; the Free Software Foundation
985 gives unlimited permission to copy, distribute and modify it.
991 This file contains any messages produced by compilers while
992 running configure, to aid debugging if configure makes a mistake.
994 It was created by pspp $as_me 0.3.1, which was
995 generated by GNU Autoconf 2.58. Invocation command line was
1006 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1007 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1008 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1009 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1010 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1012 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1013 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1015 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1016 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1017 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1018 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1019 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1020 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1021 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1029 test -z "$as_dir" && as_dir=.
1030 echo "PATH: $as_dir"
1045 # Keep a trace of the command line.
1046 # Strip out --no-create and --no-recursion so they do not pile up.
1047 # Strip out --silent because we don't want to record it for future runs.
1048 # Also quote any args containing shell meta-characters.
1049 # Make two passes to allow for proper duplicate-argument suppression.
1054 ac_must_keep_next=false
1060 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1064 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1065 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1068 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1070 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1071 if test $ac_must_keep_next = true; then
1072 ac_must_keep_next=false # Got value, back to normal.
1075 *=* | --config-cache | -C | -disable-* | --disable-* \
1076 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1077 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1078 | -with-* | --with-* | -without-* | --without-* | --x)
1079 case "$ac_configure_args0 " in
1080 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1083 -* ) ac_must_keep_next=true ;;
1086 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1087 # Get rid of the leading space.
1093 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1094 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1096 # When interrupted or exit'd, cleanup temporary files, and complete
1097 # config.log. We remove comments because anyway the quotes in there
1098 # would cause problems or look ugly.
1099 # WARNING: Be sure not to use single quotes in there, as some shells,
1100 # such as our DU 5.0 friend, will then `close' the trap.
1101 trap 'exit_status=$?
1102 # Save into config.log some information that might help in debugging.
1107 ## ---------------- ##
1108 ## Cache variables. ##
1109 ## ---------------- ##
1112 # The following way of writing the cache mishandles newlines in values,
1115 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1118 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1119 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1123 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1130 ## ----------------- ##
1131 ## Output variables. ##
1132 ## ----------------- ##
1135 for ac_var in $ac_subst_vars
1137 eval ac_val=$`echo $ac_var`
1138 echo "$ac_var='"'"'$ac_val'"'"'"
1142 if test -n "$ac_subst_files"; then
1149 for ac_var in $ac_subst_files
1151 eval ac_val=$`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1157 if test -s confdefs.h; then
1164 sed "/^$/d" confdefs.h | sort
1167 test "$ac_signal" != 0 &&
1168 echo "$as_me: caught signal $ac_signal"
1169 echo "$as_me: exit $exit_status"
1171 rm -f core *.core &&
1172 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1175 for ac_signal in 1 2 13 15; do
1176 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1180 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1181 rm -rf conftest* confdefs.h
1182 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1185 # Predefined preprocessor variables.
1187 cat >>confdefs.h <<_ACEOF
1188 #define PACKAGE_NAME "$PACKAGE_NAME"
1192 cat >>confdefs.h <<_ACEOF
1193 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1197 cat >>confdefs.h <<_ACEOF
1198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1202 cat >>confdefs.h <<_ACEOF
1203 #define PACKAGE_STRING "$PACKAGE_STRING"
1207 cat >>confdefs.h <<_ACEOF
1208 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1212 # Let the site file select an alternate cache file if it wants to.
1213 # Prefer explicitly selected file to automatically selected ones.
1214 if test -z "$CONFIG_SITE"; then
1215 if test "x$prefix" != xNONE; then
1216 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1218 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1221 for ac_site_file in $CONFIG_SITE; do
1222 if test -r "$ac_site_file"; then
1223 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1224 echo "$as_me: loading site script $ac_site_file" >&6;}
1225 sed 's/^/| /' "$ac_site_file" >&5
1230 if test -r "$cache_file"; then
1231 # Some versions of bash will fail to source /dev/null (special
1232 # files actually), so we avoid doing that.
1233 if test -f "$cache_file"; then
1234 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1235 echo "$as_me: loading cache $cache_file" >&6;}
1237 [\\/]* | ?:[\\/]* ) . $cache_file;;
1238 *) . ./$cache_file;;
1242 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1243 echo "$as_me: creating cache $cache_file" >&6;}
1247 # Check that the precious variables saved in the cache have kept the same
1249 ac_cache_corrupted=false
1250 for ac_var in `(set) 2>&1 |
1251 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1252 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1253 eval ac_new_set=\$ac_env_${ac_var}_set
1254 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1255 eval ac_new_val="\$ac_env_${ac_var}_value"
1256 case $ac_old_set,$ac_new_set in
1258 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1259 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1260 ac_cache_corrupted=: ;;
1262 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1263 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1264 ac_cache_corrupted=: ;;
1267 if test "x$ac_old_val" != "x$ac_new_val"; then
1268 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1269 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1270 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1271 echo "$as_me: former value: $ac_old_val" >&2;}
1272 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1273 echo "$as_me: current value: $ac_new_val" >&2;}
1274 ac_cache_corrupted=:
1277 # Pass precious variables to config.status.
1278 if test "$ac_new_set" = set; then
1280 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1281 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1282 *) ac_arg=$ac_var=$ac_new_val ;;
1284 case " $ac_configure_args " in
1285 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1286 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1290 if $ac_cache_corrupted; then
1291 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1292 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1293 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1294 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1295 { (exit 1); exit 1; }; }
1299 ac_cpp='$CPP $CPPFLAGS'
1300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1330 ac_config_headers="$ac_config_headers config.h"
1332 am__api_version="1.7"
1334 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1335 if test -f $ac_dir/install-sh; then
1337 ac_install_sh="$ac_aux_dir/install-sh -c"
1339 elif test -f $ac_dir/install.sh; then
1341 ac_install_sh="$ac_aux_dir/install.sh -c"
1343 elif test -f $ac_dir/shtool; then
1345 ac_install_sh="$ac_aux_dir/shtool install -c"
1349 if test -z "$ac_aux_dir"; then
1350 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1351 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1352 { (exit 1); exit 1; }; }
1354 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1355 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1356 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1358 # Find a good install program. We prefer a C program (faster),
1359 # so one script is as good as another. But avoid the broken or
1360 # incompatible versions:
1361 # SysV /etc/install, /usr/sbin/install
1362 # SunOS /usr/etc/install
1363 # IRIX /sbin/install
1365 # AmigaOS /C/install, which installs bootblocks on floppy discs
1366 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1367 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1368 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1369 # OS/2's system install, which has a completely different semantic
1370 # ./install, which can be erroneously created by make from ./install.sh.
1371 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1372 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1373 if test -z "$INSTALL"; then
1374 if test "${ac_cv_path_install+set}" = set; then
1375 echo $ECHO_N "(cached) $ECHO_C" >&6
1377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1381 test -z "$as_dir" && as_dir=.
1382 # Account for people who put trailing slashes in PATH elements.
1384 ./ | .// | /cC/* | \
1385 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1386 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1389 # OSF1 and SCO ODT 3.0 have their own names for install.
1390 # Don't use installbsd from OSF since it installs stuff as root
1392 for ac_prog in ginstall scoinst install; do
1393 for ac_exec_ext in '' $ac_executable_extensions; do
1394 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1395 if test $ac_prog = install &&
1396 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1397 # AIX install. It has an incompatible calling convention.
1399 elif test $ac_prog = install &&
1400 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1401 # program-specific install script used by HP pwplus--don't use.
1404 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1416 if test "${ac_cv_path_install+set}" = set; then
1417 INSTALL=$ac_cv_path_install
1419 # As a last resort, use the slow shell script. We don't cache a
1420 # path for INSTALL within a source directory, because that will
1421 # break other packages using the cache if that directory is
1422 # removed, or if the path is relative.
1423 INSTALL=$ac_install_sh
1426 echo "$as_me:$LINENO: result: $INSTALL" >&5
1427 echo "${ECHO_T}$INSTALL" >&6
1429 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1430 # It thinks the first close brace ends the variable substitution.
1431 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1433 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1435 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1437 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1438 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1441 echo timestamp > conftest.file
1442 # Do `set' in a subshell so we don't clobber the current shell's
1443 # arguments. Must try -L first in case configure is actually a
1444 # symlink; some systems play weird games with the mod time of symlinks
1445 # (eg FreeBSD returns the mod time of the symlink's containing
1448 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1449 if test "$*" = "X"; then
1451 set X `ls -t $srcdir/configure conftest.file`
1454 if test "$*" != "X $srcdir/configure conftest.file" \
1455 && test "$*" != "X conftest.file $srcdir/configure"; then
1457 # If neither matched, then we have a broken ls. This can happen
1458 # if, for instance, CONFIG_SHELL is bash and it inherits a
1459 # broken ls alias from the environment. This has actually
1460 # happened. Such a system could not be considered "sane".
1461 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1462 alias in your environment" >&5
1463 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1464 alias in your environment" >&2;}
1465 { (exit 1); exit 1; }; }
1468 test "$2" = conftest.file
1474 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1475 Check your system clock" >&5
1476 echo "$as_me: error: newly created file is older than distributed files!
1477 Check your system clock" >&2;}
1478 { (exit 1); exit 1; }; }
1480 echo "$as_me:$LINENO: result: yes" >&5
1481 echo "${ECHO_T}yes" >&6
1482 test "$program_prefix" != NONE &&
1483 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1484 # Use a double $ so make ignores it.
1485 test "$program_suffix" != NONE &&
1486 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1487 # Double any \ or $. echo might interpret backslashes.
1488 # By default was `s,x,x', remove it if useless.
1489 cat <<\_ACEOF >conftest.sed
1490 s/[\\$]/&&/g;s/;s,x,x,$//
1492 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1496 # expand $ac_aux_dir to an absolute path
1497 am_aux_dir=`cd $ac_aux_dir && pwd`
1499 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1500 # Use eval to expand $SHELL
1501 if eval "$MISSING --run true"; then
1502 am_missing_run="$MISSING --run "
1505 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1506 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1509 for ac_prog in gawk mawk nawk awk
1511 # Extract the first word of "$ac_prog", so it can be a program name with args.
1512 set dummy $ac_prog; ac_word=$2
1513 echo "$as_me:$LINENO: checking for $ac_word" >&5
1514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1515 if test "${ac_cv_prog_AWK+set}" = set; then
1516 echo $ECHO_N "(cached) $ECHO_C" >&6
1518 if test -n "$AWK"; then
1519 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1525 test -z "$as_dir" && as_dir=.
1526 for ac_exec_ext in '' $ac_executable_extensions; do
1527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1528 ac_cv_prog_AWK="$ac_prog"
1529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1538 if test -n "$AWK"; then
1539 echo "$as_me:$LINENO: result: $AWK" >&5
1540 echo "${ECHO_T}$AWK" >&6
1542 echo "$as_me:$LINENO: result: no" >&5
1543 echo "${ECHO_T}no" >&6
1546 test -n "$AWK" && break
1549 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1550 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1551 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1552 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1553 echo $ECHO_N "(cached) $ECHO_C" >&6
1555 cat >conftest.make <<\_ACEOF
1557 @echo 'ac_maketemp="$(MAKE)"'
1559 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1560 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1561 if test -n "$ac_maketemp"; then
1562 eval ac_cv_prog_make_${ac_make}_set=yes
1564 eval ac_cv_prog_make_${ac_make}_set=no
1568 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1569 echo "$as_me:$LINENO: result: yes" >&5
1570 echo "${ECHO_T}yes" >&6
1573 echo "$as_me:$LINENO: result: no" >&5
1574 echo "${ECHO_T}no" >&6
1575 SET_MAKE="MAKE=${MAKE-make}"
1578 rm -rf .tst 2>/dev/null
1579 mkdir .tst 2>/dev/null
1580 if test -d .tst; then
1585 rmdir .tst 2>/dev/null
1587 # test to see if srcdir already configured
1588 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1589 test -f $srcdir/config.status; then
1590 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1591 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1592 { (exit 1); exit 1; }; }
1595 # test whether we have cygpath
1596 if test -z "$CYGPATH_W"; then
1597 if (cygpath --version) >/dev/null 2>/dev/null; then
1598 CYGPATH_W='cygpath -w'
1605 # Define the identity of the package.
1610 cat >>confdefs.h <<_ACEOF
1611 #define PACKAGE "$PACKAGE"
1615 cat >>confdefs.h <<_ACEOF
1616 #define VERSION "$VERSION"
1619 # Some tools Automake needs.
1621 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1624 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1627 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1630 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1633 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1636 AMTAR=${AMTAR-"${am_missing_run}tar"}
1638 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1640 # Installed binaries are usually stripped using `strip' when the user
1641 # run `make install-strip'. However `strip' might not be the right
1642 # tool to use in cross-compilation environments, therefore Automake
1643 # will honor the `STRIP' environment variable to overrule this program.
1644 if test "$cross_compiling" != no; then
1645 if test -n "$ac_tool_prefix"; then
1646 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1647 set dummy ${ac_tool_prefix}strip; ac_word=$2
1648 echo "$as_me:$LINENO: checking for $ac_word" >&5
1649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1650 if test "${ac_cv_prog_STRIP+set}" = set; then
1651 echo $ECHO_N "(cached) $ECHO_C" >&6
1653 if test -n "$STRIP"; then
1654 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1660 test -z "$as_dir" && as_dir=.
1661 for ac_exec_ext in '' $ac_executable_extensions; do
1662 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1663 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1672 STRIP=$ac_cv_prog_STRIP
1673 if test -n "$STRIP"; then
1674 echo "$as_me:$LINENO: result: $STRIP" >&5
1675 echo "${ECHO_T}$STRIP" >&6
1677 echo "$as_me:$LINENO: result: no" >&5
1678 echo "${ECHO_T}no" >&6
1682 if test -z "$ac_cv_prog_STRIP"; then
1684 # Extract the first word of "strip", so it can be a program name with args.
1685 set dummy strip; ac_word=$2
1686 echo "$as_me:$LINENO: checking for $ac_word" >&5
1687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1688 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1689 echo $ECHO_N "(cached) $ECHO_C" >&6
1691 if test -n "$ac_ct_STRIP"; then
1692 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1698 test -z "$as_dir" && as_dir=.
1699 for ac_exec_ext in '' $ac_executable_extensions; do
1700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1701 ac_cv_prog_ac_ct_STRIP="strip"
1702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1708 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1711 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1712 if test -n "$ac_ct_STRIP"; then
1713 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1714 echo "${ECHO_T}$ac_ct_STRIP" >&6
1716 echo "$as_me:$LINENO: result: no" >&5
1717 echo "${ECHO_T}no" >&6
1722 STRIP="$ac_cv_prog_STRIP"
1726 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1728 # We need awk for the "check" target. The system "awk" is bad on
1735 cat >>confdefs.h <<\_ACEOF
1736 #define _GNU_SOURCE 1
1741 ac_cpp='$CPP $CPPFLAGS'
1742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1745 if test -n "$ac_tool_prefix"; then
1746 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1747 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1748 echo "$as_me:$LINENO: checking for $ac_word" >&5
1749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750 if test "${ac_cv_prog_CC+set}" = set; then
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1753 if test -n "$CC"; then
1754 ac_cv_prog_CC="$CC" # Let the user override the test.
1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1760 test -z "$as_dir" && as_dir=.
1761 for ac_exec_ext in '' $ac_executable_extensions; do
1762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1773 if test -n "$CC"; then
1774 echo "$as_me:$LINENO: result: $CC" >&5
1775 echo "${ECHO_T}$CC" >&6
1777 echo "$as_me:$LINENO: result: no" >&5
1778 echo "${ECHO_T}no" >&6
1782 if test -z "$ac_cv_prog_CC"; then
1784 # Extract the first word of "gcc", so it can be a program name with args.
1785 set dummy gcc; ac_word=$2
1786 echo "$as_me:$LINENO: checking for $ac_word" >&5
1787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1788 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1789 echo $ECHO_N "(cached) $ECHO_C" >&6
1791 if test -n "$ac_ct_CC"; then
1792 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1798 test -z "$as_dir" && as_dir=.
1799 for ac_exec_ext in '' $ac_executable_extensions; do
1800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1801 ac_cv_prog_ac_ct_CC="gcc"
1802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1811 if test -n "$ac_ct_CC"; then
1812 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1813 echo "${ECHO_T}$ac_ct_CC" >&6
1815 echo "$as_me:$LINENO: result: no" >&5
1816 echo "${ECHO_T}no" >&6
1824 if test -z "$CC"; then
1825 if test -n "$ac_tool_prefix"; then
1826 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1827 set dummy ${ac_tool_prefix}cc; ac_word=$2
1828 echo "$as_me:$LINENO: checking for $ac_word" >&5
1829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830 if test "${ac_cv_prog_CC+set}" = set; then
1831 echo $ECHO_N "(cached) $ECHO_C" >&6
1833 if test -n "$CC"; then
1834 ac_cv_prog_CC="$CC" # Let the user override the test.
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840 test -z "$as_dir" && as_dir=.
1841 for ac_exec_ext in '' $ac_executable_extensions; do
1842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843 ac_cv_prog_CC="${ac_tool_prefix}cc"
1844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1853 if test -n "$CC"; then
1854 echo "$as_me:$LINENO: result: $CC" >&5
1855 echo "${ECHO_T}$CC" >&6
1857 echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1862 if test -z "$ac_cv_prog_CC"; then
1864 # Extract the first word of "cc", so it can be a program name with args.
1865 set dummy cc; ac_word=$2
1866 echo "$as_me:$LINENO: checking for $ac_word" >&5
1867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1868 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1869 echo $ECHO_N "(cached) $ECHO_C" >&6
1871 if test -n "$ac_ct_CC"; then
1872 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878 test -z "$as_dir" && as_dir=.
1879 for ac_exec_ext in '' $ac_executable_extensions; do
1880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1881 ac_cv_prog_ac_ct_CC="cc"
1882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1890 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1891 if test -n "$ac_ct_CC"; then
1892 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1893 echo "${ECHO_T}$ac_ct_CC" >&6
1895 echo "$as_me:$LINENO: result: no" >&5
1896 echo "${ECHO_T}no" >&6
1905 if test -z "$CC"; then
1906 # Extract the first word of "cc", so it can be a program name with args.
1907 set dummy cc; ac_word=$2
1908 echo "$as_me:$LINENO: checking for $ac_word" >&5
1909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1910 if test "${ac_cv_prog_CC+set}" = set; then
1911 echo $ECHO_N "(cached) $ECHO_C" >&6
1913 if test -n "$CC"; then
1914 ac_cv_prog_CC="$CC" # Let the user override the test.
1917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1921 test -z "$as_dir" && as_dir=.
1922 for ac_exec_ext in '' $ac_executable_extensions; do
1923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1924 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1925 ac_prog_rejected=yes
1929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1935 if test $ac_prog_rejected = yes; then
1936 # We found a bogon in the path, so make sure we never use it.
1937 set dummy $ac_cv_prog_CC
1939 if test $# != 0; then
1940 # We chose a different compiler from the bogus one.
1941 # However, it has the same basename, so the bogon will be chosen
1942 # first if we set CC to just the basename; use the full file name.
1944 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1950 if test -n "$CC"; then
1951 echo "$as_me:$LINENO: result: $CC" >&5
1952 echo "${ECHO_T}$CC" >&6
1954 echo "$as_me:$LINENO: result: no" >&5
1955 echo "${ECHO_T}no" >&6
1959 if test -z "$CC"; then
1960 if test -n "$ac_tool_prefix"; then
1963 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1964 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1965 echo "$as_me:$LINENO: checking for $ac_word" >&5
1966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967 if test "${ac_cv_prog_CC+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 if test -n "$CC"; then
1971 ac_cv_prog_CC="$CC" # Let the user override the test.
1973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977 test -z "$as_dir" && as_dir=.
1978 for ac_exec_ext in '' $ac_executable_extensions; do
1979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1980 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990 if test -n "$CC"; then
1991 echo "$as_me:$LINENO: result: $CC" >&5
1992 echo "${ECHO_T}$CC" >&6
1994 echo "$as_me:$LINENO: result: no" >&5
1995 echo "${ECHO_T}no" >&6
1998 test -n "$CC" && break
2001 if test -z "$CC"; then
2005 # Extract the first word of "$ac_prog", so it can be a program name with args.
2006 set dummy $ac_prog; ac_word=$2
2007 echo "$as_me:$LINENO: checking for $ac_word" >&5
2008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2009 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2010 echo $ECHO_N "(cached) $ECHO_C" >&6
2012 if test -n "$ac_ct_CC"; then
2013 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2019 test -z "$as_dir" && as_dir=.
2020 for ac_exec_ext in '' $ac_executable_extensions; do
2021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2022 ac_cv_prog_ac_ct_CC="$ac_prog"
2023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2031 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2032 if test -n "$ac_ct_CC"; then
2033 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2034 echo "${ECHO_T}$ac_ct_CC" >&6
2036 echo "$as_me:$LINENO: result: no" >&5
2037 echo "${ECHO_T}no" >&6
2040 test -n "$ac_ct_CC" && break
2049 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2050 See \`config.log' for more details." >&5
2051 echo "$as_me: error: no acceptable C compiler found in \$PATH
2052 See \`config.log' for more details." >&2;}
2053 { (exit 1); exit 1; }; }
2055 # Provide some information about the compiler.
2056 echo "$as_me:$LINENO:" \
2057 "checking for C compiler version" >&5
2058 ac_compiler=`set X $ac_compile; echo $2`
2059 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2060 (eval $ac_compiler --version </dev/null >&5) 2>&5
2062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2063 (exit $ac_status); }
2064 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2065 (eval $ac_compiler -v </dev/null >&5) 2>&5
2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068 (exit $ac_status); }
2069 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2070 (eval $ac_compiler -V </dev/null >&5) 2>&5
2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 (exit $ac_status); }
2075 cat >conftest.$ac_ext <<_ACEOF
2078 cat confdefs.h >>conftest.$ac_ext
2079 cat >>conftest.$ac_ext <<_ACEOF
2080 /* end confdefs.h. */
2090 ac_clean_files_save=$ac_clean_files
2091 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2092 # Try to create an executable without -o first, disregard a.out.
2093 # It will help us diagnose broken compilers, and finding out an intuition
2095 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2096 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2097 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2098 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2099 (eval $ac_link_default) 2>&5
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }; then
2103 # Find the output, starting from the most likely. This scheme is
2104 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2107 # Be careful to initialize this variable, since it used to be cached.
2108 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2110 # b.out is created by i960 compilers.
2111 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2113 test -f "$ac_file" || continue
2115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2118 # This is the source file.
2121 # We found the default executable, but exeext='' is most
2125 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2126 # FIXME: I believe we export ac_cv_exeext for Libtool,
2127 # but it would be cool to find out if it's true. Does anybody
2128 # maintain Libtool? --akim.
2136 echo "$as_me: failed program was:" >&5
2137 sed 's/^/| /' conftest.$ac_ext >&5
2139 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2140 See \`config.log' for more details." >&5
2141 echo "$as_me: error: C compiler cannot create executables
2142 See \`config.log' for more details." >&2;}
2143 { (exit 77); exit 77; }; }
2146 ac_exeext=$ac_cv_exeext
2147 echo "$as_me:$LINENO: result: $ac_file" >&5
2148 echo "${ECHO_T}$ac_file" >&6
2150 # Check the compiler produces executables we can run. If not, either
2151 # the compiler is broken, or we cross compile.
2152 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2153 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2154 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2155 # If not cross compiling, check that we can run a simple program.
2156 if test "$cross_compiling" != yes; then
2157 if { ac_try='./$ac_file'
2158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }; }; then
2165 if test "$cross_compiling" = maybe; then
2168 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2169 If you meant to cross compile, use \`--host'.
2170 See \`config.log' for more details." >&5
2171 echo "$as_me: error: cannot run C compiled programs.
2172 If you meant to cross compile, use \`--host'.
2173 See \`config.log' for more details." >&2;}
2174 { (exit 1); exit 1; }; }
2178 echo "$as_me:$LINENO: result: yes" >&5
2179 echo "${ECHO_T}yes" >&6
2181 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2182 ac_clean_files=$ac_clean_files_save
2183 # Check the compiler produces executables we can run. If not, either
2184 # the compiler is broken, or we cross compile.
2185 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2186 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2187 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2188 echo "${ECHO_T}$cross_compiling" >&6
2190 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2191 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2193 (eval $ac_link) 2>&5
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); }; then
2197 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2198 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2199 # work properly (i.e., refer to `conftest.exe'), while it won't with
2201 for ac_file in conftest.exe conftest conftest.*; do
2202 test -f "$ac_file" || continue
2204 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2205 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2212 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2213 See \`config.log' for more details." >&5
2214 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2215 See \`config.log' for more details." >&2;}
2216 { (exit 1); exit 1; }; }
2219 rm -f conftest$ac_cv_exeext
2220 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2221 echo "${ECHO_T}$ac_cv_exeext" >&6
2223 rm -f conftest.$ac_ext
2224 EXEEXT=$ac_cv_exeext
2226 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2227 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2228 if test "${ac_cv_objext+set}" = set; then
2229 echo $ECHO_N "(cached) $ECHO_C" >&6
2231 cat >conftest.$ac_ext <<_ACEOF
2234 cat confdefs.h >>conftest.$ac_ext
2235 cat >>conftest.$ac_ext <<_ACEOF
2236 /* end confdefs.h. */
2246 rm -f conftest.o conftest.obj
2247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2248 (eval $ac_compile) 2>&5
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); }; then
2252 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2254 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2255 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2260 echo "$as_me: failed program was:" >&5
2261 sed 's/^/| /' conftest.$ac_ext >&5
2263 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2264 See \`config.log' for more details." >&5
2265 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2266 See \`config.log' for more details." >&2;}
2267 { (exit 1); exit 1; }; }
2270 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2272 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2273 echo "${ECHO_T}$ac_cv_objext" >&6
2274 OBJEXT=$ac_cv_objext
2276 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2277 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2278 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2279 echo $ECHO_N "(cached) $ECHO_C" >&6
2281 cat >conftest.$ac_ext <<_ACEOF
2284 cat confdefs.h >>conftest.$ac_ext
2285 cat >>conftest.$ac_ext <<_ACEOF
2286 /* end confdefs.h. */
2299 rm -f conftest.$ac_objext
2300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2301 (eval $ac_compile) 2>conftest.er1
2303 grep -v '^ *+' conftest.er1 >conftest.err
2305 cat conftest.err >&5
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); } &&
2308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }; } &&
2314 { ac_try='test -s conftest.$ac_objext'
2315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; }; then
2322 echo "$as_me: failed program was:" >&5
2323 sed 's/^/| /' conftest.$ac_ext >&5
2327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2328 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2331 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2332 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2333 GCC=`test $ac_compiler_gnu = yes && echo yes`
2334 ac_test_CFLAGS=${CFLAGS+set}
2335 ac_save_CFLAGS=$CFLAGS
2337 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2338 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2339 if test "${ac_cv_prog_cc_g+set}" = set; then
2340 echo $ECHO_N "(cached) $ECHO_C" >&6
2342 cat >conftest.$ac_ext <<_ACEOF
2345 cat confdefs.h >>conftest.$ac_ext
2346 cat >>conftest.$ac_ext <<_ACEOF
2347 /* end confdefs.h. */
2357 rm -f conftest.$ac_objext
2358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2359 (eval $ac_compile) 2>conftest.er1
2361 grep -v '^ *+' conftest.er1 >conftest.err
2363 cat conftest.err >&5
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); } &&
2366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); }; } &&
2372 { ac_try='test -s conftest.$ac_objext'
2373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2377 (exit $ac_status); }; }; then
2380 echo "$as_me: failed program was:" >&5
2381 sed 's/^/| /' conftest.$ac_ext >&5
2385 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2387 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2388 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2389 if test "$ac_test_CFLAGS" = set; then
2390 CFLAGS=$ac_save_CFLAGS
2391 elif test $ac_cv_prog_cc_g = yes; then
2392 if test "$GCC" = yes; then
2398 if test "$GCC" = yes; then
2404 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2405 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2406 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2407 echo $ECHO_N "(cached) $ECHO_C" >&6
2409 ac_cv_prog_cc_stdc=no
2411 cat >conftest.$ac_ext <<_ACEOF
2414 cat confdefs.h >>conftest.$ac_ext
2415 cat >>conftest.$ac_ext <<_ACEOF
2416 /* end confdefs.h. */
2419 #include <sys/types.h>
2420 #include <sys/stat.h>
2421 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2422 struct buf { int x; };
2423 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2424 static char *e (p, i)
2430 static char *f (char * (*g) (char **, int), char **p, ...)
2435 s = g (p, va_arg (v,int));
2440 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2441 function prototypes and stuff, but not '\xHH' hex character constants.
2442 These don't provoke an error unfortunately, instead are silently treated
2443 as 'x'. The following induces an error, until -std1 is added to get
2444 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2445 array size at least. It's necessary to write '\x00'==0 to get something
2446 that's true only with -std1. */
2447 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2449 int test (int i, double x);
2450 struct s1 {int (*f) (int a);};
2451 struct s2 {int (*f) (double a);};
2452 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2458 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2463 # Don't try gcc -ansi; that turns off useful extensions and
2464 # breaks some systems' header files.
2465 # AIX -qlanglvl=ansi
2466 # Ultrix and OSF/1 -std1
2467 # HP-UX 10.20 and later -Ae
2468 # HP-UX older versions -Aa -D_HPUX_SOURCE
2469 # SVR4 -Xc -D__EXTENSIONS__
2470 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2472 CC="$ac_save_CC $ac_arg"
2473 rm -f conftest.$ac_objext
2474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2475 (eval $ac_compile) 2>conftest.er1
2477 grep -v '^ *+' conftest.er1 >conftest.err
2479 cat conftest.err >&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); } &&
2482 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }; } &&
2488 { ac_try='test -s conftest.$ac_objext'
2489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); }; }; then
2494 ac_cv_prog_cc_stdc=$ac_arg
2497 echo "$as_me: failed program was:" >&5
2498 sed 's/^/| /' conftest.$ac_ext >&5
2501 rm -f conftest.err conftest.$ac_objext
2503 rm -f conftest.$ac_ext conftest.$ac_objext
2508 case "x$ac_cv_prog_cc_stdc" in
2510 echo "$as_me:$LINENO: result: none needed" >&5
2511 echo "${ECHO_T}none needed" >&6 ;;
2513 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2514 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2515 CC="$CC $ac_cv_prog_cc_stdc" ;;
2518 # Some people use a C++ compiler to compile C. Since we use `exit',
2519 # in C++ we need to declare it. In case someone uses the same compiler
2520 # for both compiling C and C++ we need to have the C++ compiler decide
2521 # the declaration of exit, since it's the most demanding environment.
2522 cat >conftest.$ac_ext <<_ACEOF
2527 rm -f conftest.$ac_objext
2528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2529 (eval $ac_compile) 2>conftest.er1
2531 grep -v '^ *+' conftest.er1 >conftest.err
2533 cat conftest.err >&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); } &&
2536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; } &&
2542 { ac_try='test -s conftest.$ac_objext'
2543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; }; then
2548 for ac_declaration in \
2550 'extern "C" void std::exit (int) throw (); using std::exit;' \
2551 'extern "C" void std::exit (int); using std::exit;' \
2552 'extern "C" void exit (int) throw ();' \
2553 'extern "C" void exit (int);' \
2556 cat >conftest.$ac_ext <<_ACEOF
2559 cat confdefs.h >>conftest.$ac_ext
2560 cat >>conftest.$ac_ext <<_ACEOF
2561 /* end confdefs.h. */
2572 rm -f conftest.$ac_objext
2573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2574 (eval $ac_compile) 2>conftest.er1
2576 grep -v '^ *+' conftest.er1 >conftest.err
2578 cat conftest.err >&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); } &&
2581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; } &&
2587 { ac_try='test -s conftest.$ac_objext'
2588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; }; then
2595 echo "$as_me: failed program was:" >&5
2596 sed 's/^/| /' conftest.$ac_ext >&5
2600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2601 cat >conftest.$ac_ext <<_ACEOF
2604 cat confdefs.h >>conftest.$ac_ext
2605 cat >>conftest.$ac_ext <<_ACEOF
2606 /* end confdefs.h. */
2616 rm -f conftest.$ac_objext
2617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2618 (eval $ac_compile) 2>conftest.er1
2620 grep -v '^ *+' conftest.er1 >conftest.err
2622 cat conftest.err >&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); } &&
2625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2630 (exit $ac_status); }; } &&
2631 { ac_try='test -s conftest.$ac_objext'
2632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); }; }; then
2639 echo "$as_me: failed program was:" >&5
2640 sed 's/^/| /' conftest.$ac_ext >&5
2643 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2646 if test -n "$ac_declaration"; then
2647 echo '#ifdef __cplusplus' >>confdefs.h
2648 echo $ac_declaration >>confdefs.h
2649 echo '#endif' >>confdefs.h
2653 echo "$as_me: failed program was:" >&5
2654 sed 's/^/| /' conftest.$ac_ext >&5
2657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2659 ac_cpp='$CPP $CPPFLAGS'
2660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2663 DEPDIR="${am__leading_dot}deps"
2665 ac_config_commands="$ac_config_commands depfiles"
2668 am_make=${MAKE-make}
2669 cat > confinc << 'END'
2674 # If we don't find an include directive, just comment out the code.
2675 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2676 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2680 # First try GNU make style include.
2681 echo "include confinc" > confmf
2682 # We grep out `Entering directory' and `Leaving directory'
2683 # messages which can occur if `w' ends up in MAKEFLAGS.
2684 # In particular we don't look at `^make:' because GNU make might
2685 # be invoked under some other name (usually "gmake"), in which
2686 # case it prints its new name instead of `make'.
2687 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2692 # Now try BSD make style include.
2693 if test "$am__include" = "#"; then
2694 echo '.include "confinc"' > confmf
2695 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2696 am__include=.include
2703 echo "$as_me:$LINENO: result: $_am_result" >&5
2704 echo "${ECHO_T}$_am_result" >&6
2705 rm -f confinc confmf
2707 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2708 if test "${enable_dependency_tracking+set}" = set; then
2709 enableval="$enable_dependency_tracking"
2712 if test "x$enable_dependency_tracking" != xno; then
2713 am_depcomp="$ac_aux_dir/depcomp"
2718 if test "x$enable_dependency_tracking" != xno; then
2729 depcc="$CC" am_compiler_list=
2731 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2732 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2733 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2736 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2737 # We make a subdir and do the tests there. Otherwise we can end up
2738 # making bogus files that we don't know about and never remove. For
2739 # instance it was reported that on HP-UX the gcc test will end up
2740 # making a dummy file named `D' -- because `-MD' means `put the output
2743 # Copy depcomp to subdir because otherwise we won't find it if we're
2744 # using a relative directory.
2745 cp "$am_depcomp" conftest.dir
2747 # We will build objects and dependencies in a subdirectory because
2748 # it helps to detect inapplicable dependency modes. For instance
2749 # both Tru64's cc and ICC support -MD to output dependencies as a
2750 # side effect of compilation, but ICC will put the dependencies in
2751 # the current directory while Tru64 will put them in the object
2755 am_cv_CC_dependencies_compiler_type=none
2756 if test "$am_compiler_list" = ""; then
2757 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2759 for depmode in $am_compiler_list; do
2760 # Setup a source with many dependencies, because some compilers
2761 # like to wrap large dependency lists on column 80 (with \), and
2762 # we should not choose a depcomp mode which is confused by this.
2764 # We need to recreate these files for each test, as the compiler may
2765 # overwrite some of them when testing with obscure command lines.
2766 # This happens at least with the AIX C compiler.
2768 for i in 1 2 3 4 5 6; do
2769 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2772 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2776 # after this tag, mechanisms are not by side-effect, so they'll
2777 # only be used when explicitly requested
2778 if test "x$enable_dependency_tracking" = xyes; then
2786 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2787 # mode. It turns out that the SunPro C++ compiler does not properly
2788 # handle `-M -o', and we need to detect this.
2789 if depmode=$depmode \
2790 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2791 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2792 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2793 >/dev/null 2>conftest.err &&
2794 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2795 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2796 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2797 # icc doesn't choke on unknown options, it will just issue warnings
2798 # (even with -Werror). So we grep stderr for any message
2799 # that says an option was ignored.
2800 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2801 am_cv_CC_dependencies_compiler_type=$depmode
2810 am_cv_CC_dependencies_compiler_type=none
2814 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2815 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2816 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2821 test "x$enable_dependency_tracking" != xno \
2822 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2824 am__fastdepCC_FALSE='#'
2826 am__fastdepCC_TRUE='#'
2827 am__fastdepCC_FALSE=
2834 if test -n "$ac_aux_dir"; then
2835 case "$ac_aux_dir" in
2836 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
2837 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
2840 if test -z "$MKINSTALLDIRS"; then
2841 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2846 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
2847 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
2848 # Check whether --enable-nls or --disable-nls was given.
2849 if test "${enable_nls+set}" = set; then
2850 enableval="$enable_nls"
2855 echo "$as_me:$LINENO: result: $USE_NLS" >&5
2856 echo "${ECHO_T}$USE_NLS" >&6
2863 # Prepare PATH_SEPARATOR.
2864 # The user is always right.
2865 if test "${PATH_SEPARATOR+set}" != set; then
2866 echo "#! /bin/sh" >conf$$.sh
2867 echo "exit 0" >>conf$$.sh
2869 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2877 # Find out how to test for executable files. Don't use a zero-byte file,
2878 # as systems may use methods other than mode bits to determine executability.
2879 cat >conf$$.file <<_ASEOF
2883 chmod +x conf$$.file
2884 if test -x conf$$.file >/dev/null 2>&1; then
2885 ac_executable_p="test -x"
2887 ac_executable_p="test -f"
2891 # Extract the first word of "msgfmt", so it can be a program name with args.
2892 set dummy msgfmt; ac_word=$2
2893 echo "$as_me:$LINENO: checking for $ac_word" >&5
2894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2895 if test "${ac_cv_path_MSGFMT+set}" = set; then
2896 echo $ECHO_N "(cached) $ECHO_C" >&6
2900 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2903 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2904 for ac_dir in $PATH; do
2906 test -z "$ac_dir" && ac_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2909 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
2910 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2911 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
2918 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2922 MSGFMT="$ac_cv_path_MSGFMT"
2923 if test "$MSGFMT" != ":"; then
2924 echo "$as_me:$LINENO: result: $MSGFMT" >&5
2925 echo "${ECHO_T}$MSGFMT" >&6
2927 echo "$as_me:$LINENO: result: no" >&5
2928 echo "${ECHO_T}no" >&6
2931 # Extract the first word of "gmsgfmt", so it can be a program name with args.
2932 set dummy gmsgfmt; ac_word=$2
2933 echo "$as_me:$LINENO: checking for $ac_word" >&5
2934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2935 if test "${ac_cv_path_GMSGFMT+set}" = set; then
2936 echo $ECHO_N "(cached) $ECHO_C" >&6
2940 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947 test -z "$as_dir" && as_dir=.
2948 for ac_exec_ext in '' $ac_executable_extensions; do
2949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2950 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
2951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2957 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2961 GMSGFMT=$ac_cv_path_GMSGFMT
2963 if test -n "$GMSGFMT"; then
2964 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
2965 echo "${ECHO_T}$GMSGFMT" >&6
2967 echo "$as_me:$LINENO: result: no" >&5
2968 echo "${ECHO_T}no" >&6
2973 # Prepare PATH_SEPARATOR.
2974 # The user is always right.
2975 if test "${PATH_SEPARATOR+set}" != set; then
2976 echo "#! /bin/sh" >conf$$.sh
2977 echo "exit 0" >>conf$$.sh
2979 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2987 # Find out how to test for executable files. Don't use a zero-byte file,
2988 # as systems may use methods other than mode bits to determine executability.
2989 cat >conf$$.file <<_ASEOF
2993 chmod +x conf$$.file
2994 if test -x conf$$.file >/dev/null 2>&1; then
2995 ac_executable_p="test -x"
2997 ac_executable_p="test -f"
3001 # Extract the first word of "xgettext", so it can be a program name with args.
3002 set dummy xgettext; ac_word=$2
3003 echo "$as_me:$LINENO: checking for $ac_word" >&5
3004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3005 if test "${ac_cv_path_XGETTEXT+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
3010 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3013 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3014 for ac_dir in $PATH; do
3016 test -z "$ac_dir" && ac_dir=.
3017 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3019 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3020 (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
3021 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
3028 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3032 XGETTEXT="$ac_cv_path_XGETTEXT"
3033 if test "$XGETTEXT" != ":"; then
3034 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
3035 echo "${ECHO_T}$XGETTEXT" >&6
3037 echo "$as_me:$LINENO: result: no" >&5
3038 echo "${ECHO_T}no" >&6
3044 # Prepare PATH_SEPARATOR.
3045 # The user is always right.
3046 if test "${PATH_SEPARATOR+set}" != set; then
3047 echo "#! /bin/sh" >conf$$.sh
3048 echo "exit 0" >>conf$$.sh
3050 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3058 # Find out how to test for executable files. Don't use a zero-byte file,
3059 # as systems may use methods other than mode bits to determine executability.
3060 cat >conf$$.file <<_ASEOF
3064 chmod +x conf$$.file
3065 if test -x conf$$.file >/dev/null 2>&1; then
3066 ac_executable_p="test -x"
3068 ac_executable_p="test -f"
3072 # Extract the first word of "msgmerge", so it can be a program name with args.
3073 set dummy msgmerge; ac_word=$2
3074 echo "$as_me:$LINENO: checking for $ac_word" >&5
3075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3076 if test "${ac_cv_path_MSGMERGE+set}" = set; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3081 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
3084 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
3085 for ac_dir in $PATH; do
3087 test -z "$ac_dir" && ac_dir=.
3088 for ac_exec_ext in '' $ac_executable_extensions; do
3089 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3090 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3091 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3098 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3102 MSGMERGE="$ac_cv_path_MSGMERGE"
3103 if test "$MSGMERGE" != ":"; then
3104 echo "$as_me:$LINENO: result: $MSGMERGE" >&5
3105 echo "${ECHO_T}$MSGMERGE" >&6
3107 echo "$as_me:$LINENO: result: no" >&5
3108 echo "${ECHO_T}no" >&6
3112 if test "$GMSGFMT" != ":"; then
3113 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3114 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3117 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3118 echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
3119 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
3124 if test "$XGETTEXT" != ":"; then
3125 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
3126 (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
3129 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
3130 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
3136 ac_config_commands="$ac_config_commands default-1"
3139 # Make sure we can run config.sub.
3140 $ac_config_sub sun4 >/dev/null 2>&1 ||
3141 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3142 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3143 { (exit 1); exit 1; }; }
3145 echo "$as_me:$LINENO: checking build system type" >&5
3146 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3147 if test "${ac_cv_build+set}" = set; then
3148 echo $ECHO_N "(cached) $ECHO_C" >&6
3150 ac_cv_build_alias=$build_alias
3151 test -z "$ac_cv_build_alias" &&
3152 ac_cv_build_alias=`$ac_config_guess`
3153 test -z "$ac_cv_build_alias" &&
3154 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3155 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3156 { (exit 1); exit 1; }; }
3157 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3158 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3159 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3160 { (exit 1); exit 1; }; }
3163 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3164 echo "${ECHO_T}$ac_cv_build" >&6
3166 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3167 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3168 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3171 echo "$as_me:$LINENO: checking host system type" >&5
3172 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3173 if test "${ac_cv_host+set}" = set; then
3174 echo $ECHO_N "(cached) $ECHO_C" >&6
3176 ac_cv_host_alias=$host_alias
3177 test -z "$ac_cv_host_alias" &&
3178 ac_cv_host_alias=$ac_cv_build_alias
3179 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3180 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3181 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3182 { (exit 1); exit 1; }; }
3185 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3186 echo "${ECHO_T}$ac_cv_host" >&6
3188 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3189 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3190 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3193 if test -n "$ac_tool_prefix"; then
3194 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3195 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3196 echo "$as_me:$LINENO: checking for $ac_word" >&5
3197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3198 if test "${ac_cv_prog_RANLIB+set}" = set; then
3199 echo $ECHO_N "(cached) $ECHO_C" >&6
3201 if test -n "$RANLIB"; then
3202 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 test -z "$as_dir" && as_dir=.
3209 for ac_exec_ext in '' $ac_executable_extensions; do
3210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3211 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3220 RANLIB=$ac_cv_prog_RANLIB
3221 if test -n "$RANLIB"; then
3222 echo "$as_me:$LINENO: result: $RANLIB" >&5
3223 echo "${ECHO_T}$RANLIB" >&6
3225 echo "$as_me:$LINENO: result: no" >&5
3226 echo "${ECHO_T}no" >&6
3230 if test -z "$ac_cv_prog_RANLIB"; then
3231 ac_ct_RANLIB=$RANLIB
3232 # Extract the first word of "ranlib", so it can be a program name with args.
3233 set dummy ranlib; ac_word=$2
3234 echo "$as_me:$LINENO: checking for $ac_word" >&5
3235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3236 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3237 echo $ECHO_N "(cached) $ECHO_C" >&6
3239 if test -n "$ac_ct_RANLIB"; then
3240 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246 test -z "$as_dir" && as_dir=.
3247 for ac_exec_ext in '' $ac_executable_extensions; do
3248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3249 ac_cv_prog_ac_ct_RANLIB="ranlib"
3250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3256 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3259 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3260 if test -n "$ac_ct_RANLIB"; then
3261 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3262 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3264 echo "$as_me:$LINENO: result: no" >&5
3265 echo "${ECHO_T}no" >&6
3268 RANLIB=$ac_ct_RANLIB
3270 RANLIB="$ac_cv_prog_RANLIB"
3275 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3276 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3277 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3280 ac_check_lib_save_LIBS=$LIBS
3281 LIBS="-lcposix $LIBS"
3282 cat >conftest.$ac_ext <<_ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3289 /* Override any gcc2 internal prototype to avoid an error. */
3293 /* We use char because int might match the return type of a gcc2
3294 builtin and then its argument prototype would still apply. */
3304 rm -f conftest.$ac_objext conftest$ac_exeext
3305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3306 (eval $ac_link) 2>conftest.er1
3308 grep -v '^ *+' conftest.er1 >conftest.err
3310 cat conftest.err >&5
3311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3312 (exit $ac_status); } &&
3313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3318 (exit $ac_status); }; } &&
3319 { ac_try='test -s conftest$ac_exeext'
3320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324 (exit $ac_status); }; }; then
3325 ac_cv_lib_cposix_strerror=yes
3327 echo "$as_me: failed program was:" >&5
3328 sed 's/^/| /' conftest.$ac_ext >&5
3330 ac_cv_lib_cposix_strerror=no
3332 rm -f conftest.err conftest.$ac_objext \
3333 conftest$ac_exeext conftest.$ac_ext
3334 LIBS=$ac_check_lib_save_LIBS
3336 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3337 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3338 if test $ac_cv_lib_cposix_strerror = yes; then
3339 LIBS="$LIBS -lcposix"
3345 ac_cpp='$CPP $CPPFLAGS'
3346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3349 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3350 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3351 # On Suns, sometimes $CPP names a directory.
3352 if test -n "$CPP" && test -d "$CPP"; then
3355 if test -z "$CPP"; then
3356 if test "${ac_cv_prog_CPP+set}" = set; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3359 # Double quotes because CPP needs to be expanded
3360 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3363 for ac_c_preproc_warn_flag in '' yes
3365 # Use a header file that comes with gcc, so configuring glibc
3366 # with a fresh cross-compiler works.
3367 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3368 # <limits.h> exists even on freestanding compilers.
3369 # On the NeXT, cc -E runs the code through the compiler's parser,
3370 # not just through cpp. "Syntax error" is here to catch this case.
3371 cat >conftest.$ac_ext <<_ACEOF
3374 cat confdefs.h >>conftest.$ac_ext
3375 cat >>conftest.$ac_ext <<_ACEOF
3376 /* end confdefs.h. */
3378 # include <limits.h>
3380 # include <assert.h>
3384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3385 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3387 grep -v '^ *+' conftest.er1 >conftest.err
3389 cat conftest.err >&5
3390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391 (exit $ac_status); } >/dev/null; then
3392 if test -s conftest.err; then
3393 ac_cpp_err=$ac_c_preproc_warn_flag
3394 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3401 if test -z "$ac_cpp_err"; then
3404 echo "$as_me: failed program was:" >&5
3405 sed 's/^/| /' conftest.$ac_ext >&5
3407 # Broken: fails on valid input.
3410 rm -f conftest.err conftest.$ac_ext
3412 # OK, works on sane cases. Now check whether non-existent headers
3413 # can be detected and how.
3414 cat >conftest.$ac_ext <<_ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3420 #include <ac_nonexistent.h>
3422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3425 grep -v '^ *+' conftest.er1 >conftest.err
3427 cat conftest.err >&5
3428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); } >/dev/null; then
3430 if test -s conftest.err; then
3431 ac_cpp_err=$ac_c_preproc_warn_flag
3432 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3439 if test -z "$ac_cpp_err"; then
3440 # Broken: success on invalid input.
3443 echo "$as_me: failed program was:" >&5
3444 sed 's/^/| /' conftest.$ac_ext >&5
3446 # Passes both tests.
3450 rm -f conftest.err conftest.$ac_ext
3453 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3454 rm -f conftest.err conftest.$ac_ext
3455 if $ac_preproc_ok; then
3467 echo "$as_me:$LINENO: result: $CPP" >&5
3468 echo "${ECHO_T}$CPP" >&6
3470 for ac_c_preproc_warn_flag in '' yes
3472 # Use a header file that comes with gcc, so configuring glibc
3473 # with a fresh cross-compiler works.
3474 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3475 # <limits.h> exists even on freestanding compilers.
3476 # On the NeXT, cc -E runs the code through the compiler's parser,
3477 # not just through cpp. "Syntax error" is here to catch this case.
3478 cat >conftest.$ac_ext <<_ACEOF
3481 cat confdefs.h >>conftest.$ac_ext
3482 cat >>conftest.$ac_ext <<_ACEOF
3483 /* end confdefs.h. */
3485 # include <limits.h>
3487 # include <assert.h>
3491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3492 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3494 grep -v '^ *+' conftest.er1 >conftest.err
3496 cat conftest.err >&5
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); } >/dev/null; then
3499 if test -s conftest.err; then
3500 ac_cpp_err=$ac_c_preproc_warn_flag
3501 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3508 if test -z "$ac_cpp_err"; then
3511 echo "$as_me: failed program was:" >&5
3512 sed 's/^/| /' conftest.$ac_ext >&5
3514 # Broken: fails on valid input.
3517 rm -f conftest.err conftest.$ac_ext
3519 # OK, works on sane cases. Now check whether non-existent headers
3520 # can be detected and how.
3521 cat >conftest.$ac_ext <<_ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h. */
3527 #include <ac_nonexistent.h>
3529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3532 grep -v '^ *+' conftest.er1 >conftest.err
3534 cat conftest.err >&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); } >/dev/null; then
3537 if test -s conftest.err; then
3538 ac_cpp_err=$ac_c_preproc_warn_flag
3539 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3546 if test -z "$ac_cpp_err"; then
3547 # Broken: success on invalid input.
3550 echo "$as_me: failed program was:" >&5
3551 sed 's/^/| /' conftest.$ac_ext >&5
3553 # Passes both tests.
3557 rm -f conftest.err conftest.$ac_ext
3560 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3561 rm -f conftest.err conftest.$ac_ext
3562 if $ac_preproc_ok; then
3565 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3566 See \`config.log' for more details." >&5
3567 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3568 See \`config.log' for more details." >&2;}
3569 { (exit 1); exit 1; }; }
3573 ac_cpp='$CPP $CPPFLAGS'
3574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3579 echo "$as_me:$LINENO: checking for egrep" >&5
3580 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3581 if test "${ac_cv_prog_egrep+set}" = set; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3584 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3585 then ac_cv_prog_egrep='grep -E'
3586 else ac_cv_prog_egrep='egrep'
3589 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3590 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3591 EGREP=$ac_cv_prog_egrep
3594 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3595 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3596 if test "${ac_cv_header_stdc+set}" = set; then
3597 echo $ECHO_N "(cached) $ECHO_C" >&6
3599 cat >conftest.$ac_ext <<_ACEOF
3602 cat confdefs.h >>conftest.$ac_ext
3603 cat >>conftest.$ac_ext <<_ACEOF
3604 /* end confdefs.h. */
3618 rm -f conftest.$ac_objext
3619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3620 (eval $ac_compile) 2>conftest.er1
3622 grep -v '^ *+' conftest.er1 >conftest.err
3624 cat conftest.err >&5
3625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3626 (exit $ac_status); } &&
3627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3632 (exit $ac_status); }; } &&
3633 { ac_try='test -s conftest.$ac_objext'
3634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); }; }; then
3639 ac_cv_header_stdc=yes
3641 echo "$as_me: failed program was:" >&5
3642 sed 's/^/| /' conftest.$ac_ext >&5
3644 ac_cv_header_stdc=no
3646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3648 if test $ac_cv_header_stdc = yes; then
3649 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3650 cat >conftest.$ac_ext <<_ACEOF
3653 cat confdefs.h >>conftest.$ac_ext
3654 cat >>conftest.$ac_ext <<_ACEOF
3655 /* end confdefs.h. */
3659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3660 $EGREP "memchr" >/dev/null 2>&1; then
3663 ac_cv_header_stdc=no
3669 if test $ac_cv_header_stdc = yes; then
3670 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3671 cat >conftest.$ac_ext <<_ACEOF
3674 cat confdefs.h >>conftest.$ac_ext
3675 cat >>conftest.$ac_ext <<_ACEOF
3676 /* end confdefs.h. */
3680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3681 $EGREP "free" >/dev/null 2>&1; then
3684 ac_cv_header_stdc=no
3690 if test $ac_cv_header_stdc = yes; then
3691 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3692 if test "$cross_compiling" = yes; then
3695 cat >conftest.$ac_ext <<_ACEOF
3698 cat confdefs.h >>conftest.$ac_ext
3699 cat >>conftest.$ac_ext <<_ACEOF
3700 /* end confdefs.h. */
3702 #if ((' ' & 0x0FF) == 0x020)
3703 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3704 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3706 # define ISLOWER(c) \
3707 (('a' <= (c) && (c) <= 'i') \
3708 || ('j' <= (c) && (c) <= 'r') \
3709 || ('s' <= (c) && (c) <= 'z'))
3710 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3713 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3718 for (i = 0; i < 256; i++)
3719 if (XOR (islower (i), ISLOWER (i))
3720 || toupper (i) != TOUPPER (i))
3725 rm -f conftest$ac_exeext
3726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3727 (eval $ac_link) 2>&5
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); }; }; then
3738 echo "$as_me: program exited with status $ac_status" >&5
3739 echo "$as_me: failed program was:" >&5
3740 sed 's/^/| /' conftest.$ac_ext >&5
3743 ac_cv_header_stdc=no
3745 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3749 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3750 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3751 if test $ac_cv_header_stdc = yes; then
3753 cat >>confdefs.h <<\_ACEOF
3754 #define STDC_HEADERS 1
3759 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3760 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3761 if test "${ac_cv_c_const+set}" = set; then
3762 echo $ECHO_N "(cached) $ECHO_C" >&6
3764 cat >conftest.$ac_ext <<_ACEOF
3767 cat confdefs.h >>conftest.$ac_ext
3768 cat >>conftest.$ac_ext <<_ACEOF
3769 /* end confdefs.h. */
3774 /* FIXME: Include the comments suggested by Paul. */
3776 /* Ultrix mips cc rejects this. */
3777 typedef int charset[2];
3779 /* SunOS 4.1.1 cc rejects this. */
3780 char const *const *ccp;
3782 /* NEC SVR4.0.2 mips cc rejects this. */
3783 struct point {int x, y;};
3784 static struct point const zero = {0,0};
3785 /* AIX XL C 1.02.0.0 rejects this.
3786 It does not let you subtract one const X* pointer from another in
3787 an arm of an if-expression whose if-part is not a constant
3789 const char *g = "string";
3790 ccp = &g + (g ? g-g : 0);
3791 /* HPUX 7.0 cc rejects these. */
3794 ccp = (char const *const *) p;
3795 { /* SCO 3.2v4 cc rejects this. */
3797 char const *s = 0 ? (char *) 0 : (char const *) 0;
3801 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
3803 const int *foo = &x[0];
3806 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3807 typedef const int *iptr;
3811 { /* AIX XL C 1.02.0.0 rejects this saying
3812 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3813 struct s { int j; const int *ap[3]; };
3814 struct s *b; b->j = 5;
3816 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3825 rm -f conftest.$ac_objext
3826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3827 (eval $ac_compile) 2>conftest.er1
3829 grep -v '^ *+' conftest.er1 >conftest.err
3831 cat conftest.err >&5
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); } &&
3834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); }; } &&
3840 { ac_try='test -s conftest.$ac_objext'
3841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); }; }; then
3848 echo "$as_me: failed program was:" >&5
3849 sed 's/^/| /' conftest.$ac_ext >&5
3853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3855 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3856 echo "${ECHO_T}$ac_cv_c_const" >&6
3857 if test $ac_cv_c_const = no; then
3859 cat >>confdefs.h <<\_ACEOF
3865 echo "$as_me:$LINENO: checking for inline" >&5
3866 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3867 if test "${ac_cv_c_inline+set}" = set; then
3868 echo $ECHO_N "(cached) $ECHO_C" >&6
3871 for ac_kw in inline __inline__ __inline; do
3872 cat >conftest.$ac_ext <<_ACEOF
3875 cat confdefs.h >>conftest.$ac_ext
3876 cat >>conftest.$ac_ext <<_ACEOF
3877 /* end confdefs.h. */
3880 static $ac_kw foo_t static_foo () {return 0; }
3881 $ac_kw foo_t foo () {return 0; }
3885 rm -f conftest.$ac_objext
3886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3887 (eval $ac_compile) 2>conftest.er1
3889 grep -v '^ *+' conftest.er1 >conftest.err
3891 cat conftest.err >&5
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); } &&
3894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); }; } &&
3900 { ac_try='test -s conftest.$ac_objext'
3901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); }; }; then
3906 ac_cv_c_inline=$ac_kw; break
3908 echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3916 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3917 echo "${ECHO_T}$ac_cv_c_inline" >&6
3920 case $ac_cv_c_inline in
3923 case $ac_cv_c_inline in
3925 *) ac_val=$ac_cv_c_inline;;
3927 cat >>confdefs.h <<_ACEOF
3929 #define inline $ac_val
3935 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3945 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3946 inttypes.h stdint.h unistd.h
3948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3949 echo "$as_me:$LINENO: checking for $ac_header" >&5
3950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3952 echo $ECHO_N "(cached) $ECHO_C" >&6
3954 cat >conftest.$ac_ext <<_ACEOF
3957 cat confdefs.h >>conftest.$ac_ext
3958 cat >>conftest.$ac_ext <<_ACEOF
3959 /* end confdefs.h. */
3960 $ac_includes_default
3962 #include <$ac_header>
3964 rm -f conftest.$ac_objext
3965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3966 (eval $ac_compile) 2>conftest.er1
3968 grep -v '^ *+' conftest.er1 >conftest.err
3970 cat conftest.err >&5
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); } &&
3973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); }; } &&
3979 { ac_try='test -s conftest.$ac_objext'
3980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); }; }; then
3985 eval "$as_ac_Header=yes"
3987 echo "$as_me: failed program was:" >&5
3988 sed 's/^/| /' conftest.$ac_ext >&5
3990 eval "$as_ac_Header=no"
3992 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3995 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3996 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3997 cat >>confdefs.h <<_ACEOF
3998 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4006 echo "$as_me:$LINENO: checking for off_t" >&5
4007 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
4008 if test "${ac_cv_type_off_t+set}" = set; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4011 cat >conftest.$ac_ext <<_ACEOF
4014 cat confdefs.h >>conftest.$ac_ext
4015 cat >>conftest.$ac_ext <<_ACEOF
4016 /* end confdefs.h. */
4017 $ac_includes_default
4029 rm -f conftest.$ac_objext
4030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4031 (eval $ac_compile) 2>conftest.er1
4033 grep -v '^ *+' conftest.er1 >conftest.err
4035 cat conftest.err >&5
4036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4037 (exit $ac_status); } &&
4038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043 (exit $ac_status); }; } &&
4044 { ac_try='test -s conftest.$ac_objext'
4045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); }; }; then
4050 ac_cv_type_off_t=yes
4052 echo "$as_me: failed program was:" >&5
4053 sed 's/^/| /' conftest.$ac_ext >&5
4057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4059 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
4060 echo "${ECHO_T}$ac_cv_type_off_t" >&6
4061 if test $ac_cv_type_off_t = yes; then
4065 cat >>confdefs.h <<_ACEOF
4071 echo "$as_me:$LINENO: checking for size_t" >&5
4072 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4073 if test "${ac_cv_type_size_t+set}" = set; then
4074 echo $ECHO_N "(cached) $ECHO_C" >&6
4076 cat >conftest.$ac_ext <<_ACEOF
4079 cat confdefs.h >>conftest.$ac_ext
4080 cat >>conftest.$ac_ext <<_ACEOF
4081 /* end confdefs.h. */
4082 $ac_includes_default
4088 if (sizeof (size_t))
4094 rm -f conftest.$ac_objext
4095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4096 (eval $ac_compile) 2>conftest.er1
4098 grep -v '^ *+' conftest.er1 >conftest.err
4100 cat conftest.err >&5
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); } &&
4103 { ac_try='test -z "$ac_c_werror_flag" || 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_size_t=yes
4117 echo "$as_me: failed program was:" >&5
4118 sed 's/^/| /' conftest.$ac_ext >&5
4120 ac_cv_type_size_t=no
4122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4124 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4125 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4126 if test $ac_cv_type_size_t = yes; then
4130 cat >>confdefs.h <<_ACEOF
4131 #define size_t unsigned
4136 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4137 # for constant arguments. Useless!
4138 echo "$as_me:$LINENO: checking for working alloca.h" >&5
4139 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
4140 if test "${ac_cv_working_alloca_h+set}" = set; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
4143 cat >conftest.$ac_ext <<_ACEOF
4146 cat confdefs.h >>conftest.$ac_ext
4147 cat >>conftest.$ac_ext <<_ACEOF
4148 /* end confdefs.h. */
4153 char *p = (char *) alloca (2 * sizeof (int));
4158 rm -f conftest.$ac_objext conftest$ac_exeext
4159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4160 (eval $ac_link) 2>conftest.er1
4162 grep -v '^ *+' conftest.er1 >conftest.err
4164 cat conftest.err >&5
4165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166 (exit $ac_status); } &&
4167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); }; } &&
4173 { ac_try='test -s conftest$ac_exeext'
4174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; }; then
4179 ac_cv_working_alloca_h=yes
4181 echo "$as_me: failed program was:" >&5
4182 sed 's/^/| /' conftest.$ac_ext >&5
4184 ac_cv_working_alloca_h=no
4186 rm -f conftest.err conftest.$ac_objext \
4187 conftest$ac_exeext conftest.$ac_ext
4189 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4190 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4191 if test $ac_cv_working_alloca_h = yes; then
4193 cat >>confdefs.h <<\_ACEOF
4194 #define HAVE_ALLOCA_H 1
4199 echo "$as_me:$LINENO: checking for alloca" >&5
4200 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4201 if test "${ac_cv_func_alloca_works+set}" = set; then
4202 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 cat >conftest.$ac_ext <<_ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4211 # define alloca __builtin_alloca
4214 # include <malloc.h>
4215 # define alloca _alloca
4218 # include <alloca.h>
4223 # ifndef alloca /* predefined by HP cc +Olibcalls */
4234 char *p = (char *) alloca (1);
4239 rm -f conftest.$ac_objext conftest$ac_exeext
4240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4241 (eval $ac_link) 2>conftest.er1
4243 grep -v '^ *+' conftest.er1 >conftest.err
4245 cat conftest.err >&5
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); } &&
4248 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); }; } &&
4254 { ac_try='test -s conftest$ac_exeext'
4255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); }; }; then
4260 ac_cv_func_alloca_works=yes
4262 echo "$as_me: failed program was:" >&5
4263 sed 's/^/| /' conftest.$ac_ext >&5
4265 ac_cv_func_alloca_works=no
4267 rm -f conftest.err conftest.$ac_objext \
4268 conftest$ac_exeext conftest.$ac_ext
4270 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4271 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4273 if test $ac_cv_func_alloca_works = yes; then
4275 cat >>confdefs.h <<\_ACEOF
4276 #define HAVE_ALLOCA 1
4280 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4281 # that cause trouble. Some versions do not even contain alloca or
4282 # contain a buggy version. If you still want to use their alloca,
4283 # use ar to extract alloca.o from them instead of compiling alloca.c.
4285 ALLOCA=alloca.$ac_objext
4287 cat >>confdefs.h <<\_ACEOF
4292 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4293 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4294 if test "${ac_cv_os_cray+set}" = set; then
4295 echo $ECHO_N "(cached) $ECHO_C" >&6
4297 cat >conftest.$ac_ext <<_ACEOF
4300 cat confdefs.h >>conftest.$ac_ext
4301 cat >>conftest.$ac_ext <<_ACEOF
4302 /* end confdefs.h. */
4303 #if defined(CRAY) && ! defined(CRAY2)
4310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4311 $EGREP "webecray" >/dev/null 2>&1; then
4319 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4320 echo "${ECHO_T}$ac_cv_os_cray" >&6
4321 if test $ac_cv_os_cray = yes; then
4322 for ac_func in _getb67 GETB67 getb67; do
4323 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4324 echo "$as_me:$LINENO: checking for $ac_func" >&5
4325 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4326 if eval "test \"\${$as_ac_var+set}\" = set"; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4329 cat >conftest.$ac_ext <<_ACEOF
4332 cat confdefs.h >>conftest.$ac_ext
4333 cat >>conftest.$ac_ext <<_ACEOF
4334 /* end confdefs.h. */
4335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4337 #define $ac_func innocuous_$ac_func
4339 /* System header to define __stub macros and hopefully few prototypes,
4340 which can conflict with char $ac_func (); below.
4341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4342 <limits.h> exists even on freestanding compilers. */
4345 # include <limits.h>
4347 # include <assert.h>
4352 /* Override any gcc2 internal prototype to avoid an error. */
4357 /* We use char because int might match the return type of a gcc2
4358 builtin and then its argument prototype would still apply. */
4360 /* The GNU C library defines this for functions which it implements
4361 to always fail with ENOSYS. Some functions are actually named
4362 something starting with __ and the normal name is an alias. */
4363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4366 char (*f) () = $ac_func;
4375 return f != $ac_func;
4380 rm -f conftest.$ac_objext conftest$ac_exeext
4381 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4382 (eval $ac_link) 2>conftest.er1
4384 grep -v '^ *+' conftest.er1 >conftest.err
4386 cat conftest.err >&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); } &&
4389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); }; } &&
4395 { ac_try='test -s conftest$ac_exeext'
4396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400 (exit $ac_status); }; }; then
4401 eval "$as_ac_var=yes"
4403 echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.$ac_ext >&5
4406 eval "$as_ac_var=no"
4408 rm -f conftest.err conftest.$ac_objext \
4409 conftest$ac_exeext conftest.$ac_ext
4411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4412 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4413 if test `eval echo '${'$as_ac_var'}'` = yes; then
4415 cat >>confdefs.h <<_ACEOF
4416 #define CRAY_STACKSEG_END $ac_func
4425 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4426 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4427 if test "${ac_cv_c_stack_direction+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4430 if test "$cross_compiling" = yes; then
4431 ac_cv_c_stack_direction=0
4433 cat >conftest.$ac_ext <<_ACEOF
4436 cat confdefs.h >>conftest.$ac_ext
4437 cat >>conftest.$ac_ext <<_ACEOF
4438 /* end confdefs.h. */
4440 find_stack_direction ()
4442 static char *addr = 0;
4447 return find_stack_direction ();
4450 return (&dummy > addr) ? 1 : -1;
4456 exit (find_stack_direction () < 0);
4459 rm -f conftest$ac_exeext
4460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4461 (eval $ac_link) 2>&5
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; }; then
4470 ac_cv_c_stack_direction=1
4472 echo "$as_me: program exited with status $ac_status" >&5
4473 echo "$as_me: failed program was:" >&5
4474 sed 's/^/| /' conftest.$ac_ext >&5
4477 ac_cv_c_stack_direction=-1
4479 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4482 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4483 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4485 cat >>confdefs.h <<_ACEOF
4486 #define STACK_DIRECTION $ac_cv_c_stack_direction
4494 for ac_header in stdlib.h unistd.h
4496 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4498 echo "$as_me:$LINENO: checking for $ac_header" >&5
4499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4504 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4506 # Is the header compilable?
4507 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4508 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4509 cat >conftest.$ac_ext <<_ACEOF
4512 cat confdefs.h >>conftest.$ac_ext
4513 cat >>conftest.$ac_ext <<_ACEOF
4514 /* end confdefs.h. */
4515 $ac_includes_default
4516 #include <$ac_header>
4518 rm -f conftest.$ac_objext
4519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4520 (eval $ac_compile) 2>conftest.er1
4522 grep -v '^ *+' conftest.er1 >conftest.err
4524 cat conftest.err >&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); } &&
4527 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; } &&
4533 { ac_try='test -s conftest.$ac_objext'
4534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538 (exit $ac_status); }; }; then
4539 ac_header_compiler=yes
4541 echo "$as_me: failed program was:" >&5
4542 sed 's/^/| /' conftest.$ac_ext >&5
4544 ac_header_compiler=no
4546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4547 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4548 echo "${ECHO_T}$ac_header_compiler" >&6
4550 # Is the header present?
4551 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4552 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4553 cat >conftest.$ac_ext <<_ACEOF
4556 cat confdefs.h >>conftest.$ac_ext
4557 cat >>conftest.$ac_ext <<_ACEOF
4558 /* end confdefs.h. */
4559 #include <$ac_header>
4561 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4562 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4564 grep -v '^ *+' conftest.er1 >conftest.err
4566 cat conftest.err >&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } >/dev/null; then
4569 if test -s conftest.err; then
4570 ac_cpp_err=$ac_c_preproc_warn_flag
4571 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4578 if test -z "$ac_cpp_err"; then
4579 ac_header_preproc=yes
4581 echo "$as_me: failed program was:" >&5
4582 sed 's/^/| /' conftest.$ac_ext >&5
4584 ac_header_preproc=no
4586 rm -f conftest.err conftest.$ac_ext
4587 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4588 echo "${ECHO_T}$ac_header_preproc" >&6
4590 # So? What about this header?
4591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4593 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4594 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4595 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4596 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4597 ac_header_preproc=yes
4600 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4601 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4602 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4603 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4604 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4605 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4606 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4607 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4608 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4609 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4610 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4611 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4614 ## ------------------------------- ##
4615 ## Report this to the pspp lists. ##
4616 ## ------------------------------- ##
4619 sed "s/^/$as_me: WARNING: /" >&2
4622 echo "$as_me:$LINENO: checking for $ac_header" >&5
4623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4624 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4627 eval "$as_ac_Header=\$ac_header_preproc"
4629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4634 cat >>confdefs.h <<_ACEOF
4635 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4643 for ac_func in getpagesize
4645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4646 echo "$as_me:$LINENO: checking for $ac_func" >&5
4647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4648 if eval "test \"\${$as_ac_var+set}\" = set"; then
4649 echo $ECHO_N "(cached) $ECHO_C" >&6
4651 cat >conftest.$ac_ext <<_ACEOF
4654 cat confdefs.h >>conftest.$ac_ext
4655 cat >>conftest.$ac_ext <<_ACEOF
4656 /* end confdefs.h. */
4657 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4659 #define $ac_func innocuous_$ac_func
4661 /* System header to define __stub macros and hopefully few prototypes,
4662 which can conflict with char $ac_func (); below.
4663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4664 <limits.h> exists even on freestanding compilers. */
4667 # include <limits.h>
4669 # include <assert.h>
4674 /* Override any gcc2 internal prototype to avoid an error. */
4679 /* We use char because int might match the return type of a gcc2
4680 builtin and then its argument prototype would still apply. */
4682 /* The GNU C library defines this for functions which it implements
4683 to always fail with ENOSYS. Some functions are actually named
4684 something starting with __ and the normal name is an alias. */
4685 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4688 char (*f) () = $ac_func;
4697 return f != $ac_func;
4702 rm -f conftest.$ac_objext conftest$ac_exeext
4703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4704 (eval $ac_link) 2>conftest.er1
4706 grep -v '^ *+' conftest.er1 >conftest.err
4708 cat conftest.err >&5
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); } &&
4711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; } &&
4717 { ac_try='test -s conftest$ac_exeext'
4718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722 (exit $ac_status); }; }; then
4723 eval "$as_ac_var=yes"
4725 echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.$ac_ext >&5
4728 eval "$as_ac_var=no"
4730 rm -f conftest.err conftest.$ac_objext \
4731 conftest$ac_exeext conftest.$ac_ext
4733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4734 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4735 if test `eval echo '${'$as_ac_var'}'` = yes; then
4736 cat >>confdefs.h <<_ACEOF
4737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4743 echo "$as_me:$LINENO: checking for working mmap" >&5
4744 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4745 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4748 if test "$cross_compiling" = yes; then
4749 ac_cv_func_mmap_fixed_mapped=no
4751 cat >conftest.$ac_ext <<_ACEOF
4754 cat confdefs.h >>conftest.$ac_ext
4755 cat >>conftest.$ac_ext <<_ACEOF
4756 /* end confdefs.h. */
4757 $ac_includes_default
4758 /* malloc might have been renamed as rpl_malloc. */
4761 /* Thanks to Mike Haertel and Jim Avera for this test.
4762 Here is a matrix of mmap possibilities:
4763 mmap private not fixed
4764 mmap private fixed at somewhere currently unmapped
4765 mmap private fixed at somewhere already mapped
4766 mmap shared not fixed
4767 mmap shared fixed at somewhere currently unmapped
4768 mmap shared fixed at somewhere already mapped
4769 For private mappings, we should verify that changes cannot be read()
4770 back from the file, nor mmap's back from the file at a different
4771 address. (There have been systems where private was not correctly
4772 implemented like the infamous i386 svr4.0, and systems where the
4773 VM page cache was not coherent with the file system buffer cache
4774 like early versions of FreeBSD and possibly contemporary NetBSD.)
4775 For shared mappings, we should conversely verify that changes get
4776 propagated back to all the places they're supposed to be.
4778 Grep wants private fixed already mapped.
4779 The main things grep needs to know about mmap are:
4780 * does it exist and is it safe to write into the mmap'd area
4781 * how to use it (BSD variants) */
4784 #include <sys/mman.h>
4786 #if !STDC_HEADERS && !HAVE_STDLIB_H
4790 /* This mess was copied from the GNU getpagesize.h. */
4791 #if !HAVE_GETPAGESIZE
4792 /* Assume that all systems that can run configure have sys/param.h. */
4793 # if !HAVE_SYS_PARAM_H
4794 # define HAVE_SYS_PARAM_H 1
4797 # ifdef _SC_PAGESIZE
4798 # define getpagesize() sysconf(_SC_PAGESIZE)
4799 # else /* no _SC_PAGESIZE */
4800 # if HAVE_SYS_PARAM_H
4801 # include <sys/param.h>
4802 # ifdef EXEC_PAGESIZE
4803 # define getpagesize() EXEC_PAGESIZE
4804 # else /* no EXEC_PAGESIZE */
4806 # define getpagesize() NBPG * CLSIZE
4809 # endif /* no CLSIZE */
4810 # else /* no NBPG */
4812 # define getpagesize() NBPC
4813 # else /* no NBPC */
4815 # define getpagesize() PAGESIZE
4816 # endif /* PAGESIZE */
4817 # endif /* no NBPC */
4818 # endif /* no NBPG */
4819 # endif /* no EXEC_PAGESIZE */
4820 # else /* no HAVE_SYS_PARAM_H */
4821 # define getpagesize() 8192 /* punt totally */
4822 # endif /* no HAVE_SYS_PARAM_H */
4823 # endif /* no _SC_PAGESIZE */
4825 #endif /* no HAVE_GETPAGESIZE */
4830 char *data, *data2, *data3;
4834 pagesize = getpagesize ();
4836 /* First, make a file with some known garbage in it. */
4837 data = (char *) malloc (pagesize);
4840 for (i = 0; i < pagesize; ++i)
4841 *(data + i) = rand ();
4843 fd = creat ("conftest.mmap", 0600);
4846 if (write (fd, data, pagesize) != pagesize)
4850 /* Next, try to mmap the file at a fixed address which already has
4851 something else allocated at it. If we can, also make sure that
4852 we see the same garbage. */
4853 fd = open ("conftest.mmap", O_RDWR);
4856 data2 = (char *) malloc (2 * pagesize);
4859 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4860 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4861 MAP_PRIVATE | MAP_FIXED, fd, 0L))
4863 for (i = 0; i < pagesize; ++i)
4864 if (*(data + i) != *(data2 + i))
4867 /* Finally, make sure that changes to the mapped area do not
4868 percolate back to the file as seen by read(). (This is a bug on
4869 some variants of i386 svr4.0.) */
4870 for (i = 0; i < pagesize; ++i)
4871 *(data2 + i) = *(data2 + i) + 1;
4872 data3 = (char *) malloc (pagesize);
4875 if (read (fd, data3, pagesize) != pagesize)
4877 for (i = 0; i < pagesize; ++i)
4878 if (*(data + i) != *(data3 + i))
4884 rm -f conftest$ac_exeext
4885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4886 (eval $ac_link) 2>&5
4888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); }; }; then
4895 ac_cv_func_mmap_fixed_mapped=yes
4897 echo "$as_me: program exited with status $ac_status" >&5
4898 echo "$as_me: failed program was:" >&5
4899 sed 's/^/| /' conftest.$ac_ext >&5
4902 ac_cv_func_mmap_fixed_mapped=no
4904 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4907 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4908 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4909 if test $ac_cv_func_mmap_fixed_mapped = yes; then
4911 cat >>confdefs.h <<\_ACEOF
4919 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
4920 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
4921 if test "${ac_cv_gnu_library_2_1+set}" = set; then
4922 echo $ECHO_N "(cached) $ECHO_C" >&6
4924 cat >conftest.$ac_ext <<_ACEOF
4927 cat confdefs.h >>conftest.$ac_ext
4928 cat >>conftest.$ac_ext <<_ACEOF
4929 /* end confdefs.h. */
4931 #include <features.h>
4932 #ifdef __GNU_LIBRARY__
4933 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
4939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4940 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
4941 ac_cv_gnu_library_2_1=yes
4943 ac_cv_gnu_library_2_1=no
4950 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
4951 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
4953 GLIBC21="$ac_cv_gnu_library_2_1"
4958 echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
4959 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
4960 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
4961 echo $ECHO_N "(cached) $ECHO_C" >&6
4964 if test "$cross_compiling" = yes; then
4966 # Guess based on the CPU.
4968 alpha* | i3456786 | m68k | s390*)
4969 gt_cv_int_divbyzero_sigfpe="guessing yes";;
4971 gt_cv_int_divbyzero_sigfpe="guessing no";;
4975 cat >conftest.$ac_ext <<_ACEOF
4978 cat confdefs.h >>conftest.$ac_ext
4979 cat >>conftest.$ac_ext <<_ACEOF
4980 /* end confdefs.h. */
4987 sigfpe_handler (int sig)
4989 sigfpe_handler (sig) int sig;
4992 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
4993 exit (sig != SIGFPE);
5003 signal (SIGFPE, sigfpe_handler);
5004 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
5005 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
5006 signal (SIGTRAP, sigfpe_handler);
5008 /* Linux/SPARC yields signal SIGILL. */
5009 #if defined (__sparc__) && defined (__linux__)
5010 signal (SIGILL, sigfpe_handler);
5019 rm -f conftest$ac_exeext
5020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5021 (eval $ac_link) 2>&5
5023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5024 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5029 (exit $ac_status); }; }; then
5030 gt_cv_int_divbyzero_sigfpe=yes
5032 echo "$as_me: program exited with status $ac_status" >&5
5033 echo "$as_me: failed program was:" >&5
5034 sed 's/^/| /' conftest.$ac_ext >&5
5037 gt_cv_int_divbyzero_sigfpe=no
5039 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5043 echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
5044 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
5045 case "$gt_cv_int_divbyzero_sigfpe" in
5050 cat >>confdefs.h <<_ACEOF
5051 #define INTDIV0_RAISES_SIGFPE $value
5056 echo "$as_me:$LINENO: checking for inttypes.h" >&5
5057 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
5058 if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5059 echo $ECHO_N "(cached) $ECHO_C" >&6
5061 cat >conftest.$ac_ext <<_ACEOF
5064 cat confdefs.h >>conftest.$ac_ext
5065 cat >>conftest.$ac_ext <<_ACEOF
5066 /* end confdefs.h. */
5067 #include <sys/types.h>
5068 #include <inttypes.h>
5072 uintmax_t i = (uintmax_t) -1;
5077 rm -f conftest.$ac_objext
5078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5079 (eval $ac_compile) 2>conftest.er1
5081 grep -v '^ *+' conftest.er1 >conftest.err
5083 cat conftest.err >&5
5084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); } &&
5086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); }; } &&
5092 { ac_try='test -s conftest.$ac_objext'
5093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); }; }; then
5098 jm_ac_cv_header_inttypes_h=yes
5100 echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.$ac_ext >&5
5103 jm_ac_cv_header_inttypes_h=no
5105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5107 echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5108 echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
5109 if test $jm_ac_cv_header_inttypes_h = yes; then
5111 cat >>confdefs.h <<_ACEOF
5112 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
5118 echo "$as_me:$LINENO: checking for stdint.h" >&5
5119 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
5120 if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5121 echo $ECHO_N "(cached) $ECHO_C" >&6
5123 cat >conftest.$ac_ext <<_ACEOF
5126 cat confdefs.h >>conftest.$ac_ext
5127 cat >>conftest.$ac_ext <<_ACEOF
5128 /* end confdefs.h. */
5129 #include <sys/types.h>
5134 uintmax_t i = (uintmax_t) -1;
5139 rm -f conftest.$ac_objext
5140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5141 (eval $ac_compile) 2>conftest.er1
5143 grep -v '^ *+' conftest.er1 >conftest.err
5145 cat conftest.err >&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); } &&
5148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); }; } &&
5154 { ac_try='test -s conftest.$ac_objext'
5155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); }; }; then
5160 jm_ac_cv_header_stdint_h=yes
5162 echo "$as_me: failed program was:" >&5
5163 sed 's/^/| /' conftest.$ac_ext >&5
5165 jm_ac_cv_header_stdint_h=no
5167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5169 echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5170 echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
5171 if test $jm_ac_cv_header_stdint_h = yes; then
5173 cat >>confdefs.h <<_ACEOF
5174 #define HAVE_STDINT_H_WITH_UINTMAX 1
5180 echo "$as_me:$LINENO: checking for unsigned long long" >&5
5181 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
5182 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5185 cat >conftest.$ac_ext <<_ACEOF
5188 cat confdefs.h >>conftest.$ac_ext
5189 cat >>conftest.$ac_ext <<_ACEOF
5190 /* end confdefs.h. */
5191 unsigned long long ull = 1; int i = 63;
5195 unsigned long long ullmax = (unsigned long long) -1;
5196 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
5201 rm -f conftest.$ac_objext conftest$ac_exeext
5202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5203 (eval $ac_link) 2>conftest.er1
5205 grep -v '^ *+' conftest.er1 >conftest.err
5207 cat conftest.err >&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); } &&
5210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215 (exit $ac_status); }; } &&
5216 { ac_try='test -s conftest$ac_exeext'
5217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5221 (exit $ac_status); }; }; then
5222 ac_cv_type_unsigned_long_long=yes
5224 echo "$as_me: failed program was:" >&5
5225 sed 's/^/| /' conftest.$ac_ext >&5
5227 ac_cv_type_unsigned_long_long=no
5229 rm -f conftest.err conftest.$ac_objext \
5230 conftest$ac_exeext conftest.$ac_ext
5232 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
5233 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
5234 if test $ac_cv_type_unsigned_long_long = yes; then
5236 cat >>confdefs.h <<\_ACEOF
5237 #define HAVE_UNSIGNED_LONG_LONG 1
5245 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
5247 test $ac_cv_type_unsigned_long_long = yes \
5248 && ac_type='unsigned long long' \
5249 || ac_type='unsigned long'
5251 cat >>confdefs.h <<_ACEOF
5252 #define uintmax_t $ac_type
5257 cat >>confdefs.h <<\_ACEOF
5258 #define HAVE_UINTMAX_T 1
5264 echo "$as_me:$LINENO: checking for inttypes.h" >&5
5265 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
5266 if test "${gt_cv_header_inttypes_h+set}" = set; then
5267 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. */
5276 #include <sys/types.h>
5277 #include <inttypes.h>
5286 rm -f conftest.$ac_objext
5287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5288 (eval $ac_compile) 2>conftest.er1
5290 grep -v '^ *+' conftest.er1 >conftest.err
5292 cat conftest.err >&5
5293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5294 (exit $ac_status); } &&
5295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); }; } &&
5301 { ac_try='test -s conftest.$ac_objext'
5302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }; }; then
5307 gt_cv_header_inttypes_h=yes
5309 echo "$as_me: failed program was:" >&5
5310 sed 's/^/| /' conftest.$ac_ext >&5
5312 gt_cv_header_inttypes_h=no
5314 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5317 echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
5318 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
5319 if test $gt_cv_header_inttypes_h = yes; then
5321 cat >>confdefs.h <<_ACEOF
5322 #define HAVE_INTTYPES_H 1
5329 if test $gt_cv_header_inttypes_h = yes; then
5330 echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
5331 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
5332 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
5333 echo $ECHO_N "(cached) $ECHO_C" >&6
5336 cat >conftest.$ac_ext <<_ACEOF
5339 cat confdefs.h >>conftest.$ac_ext
5340 cat >>conftest.$ac_ext <<_ACEOF
5341 /* end confdefs.h. */
5342 #include <inttypes.h>
5355 rm -f conftest.$ac_objext
5356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5357 (eval $ac_compile) 2>conftest.er1
5359 grep -v '^ *+' conftest.er1 >conftest.err
5361 cat conftest.err >&5
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); } &&
5364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; } &&
5370 { ac_try='test -s conftest.$ac_objext'
5371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); }; }; then
5376 gt_cv_inttypes_pri_broken=no
5378 echo "$as_me: failed program was:" >&5
5379 sed 's/^/| /' conftest.$ac_ext >&5
5381 gt_cv_inttypes_pri_broken=yes
5383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5386 echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
5387 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
5389 if test "$gt_cv_inttypes_pri_broken" = yes; then
5391 cat >>confdefs.h <<_ACEOF
5392 #define PRI_MACROS_BROKEN 1
5398 if test "X$prefix" = "XNONE"; then
5399 acl_final_prefix="$ac_default_prefix"
5401 acl_final_prefix="$prefix"
5403 if test "X$exec_prefix" = "XNONE"; then
5404 acl_final_exec_prefix='${prefix}'
5406 acl_final_exec_prefix="$exec_prefix"
5408 acl_save_prefix="$prefix"
5409 prefix="$acl_final_prefix"
5410 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5411 prefix="$acl_save_prefix"
5414 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5415 if test "${with_gnu_ld+set}" = set; then
5416 withval="$with_gnu_ld"
5417 test "$withval" = no || with_gnu_ld=yes
5421 # Prepare PATH_SEPARATOR.
5422 # The user is always right.
5423 if test "${PATH_SEPARATOR+set}" != set; then
5424 echo "#! /bin/sh" >conf$$.sh
5425 echo "exit 0" >>conf$$.sh
5427 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5435 if test "$GCC" = yes; then
5436 # Check if gcc -print-prog-name=ld gives a path.
5437 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5438 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5441 # gcc leaves a trailing carriage return which upsets mingw
5442 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5444 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5447 # Accept absolute paths.
5448 [\\/]* | [A-Za-z]:[\\/]*)
5449 re_direlt='/[^/][^/]*/\.\./'
5450 # Canonicalize the path of ld
5451 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5452 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5453 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5455 test -z "$LD" && LD="$ac_prog"
5458 # If it fails, then pretend we aren't using GCC.
5462 # If it is relative, then search for the first ld in PATH.
5466 elif test "$with_gnu_ld" = yes; then
5467 echo "$as_me:$LINENO: checking for GNU ld" >&5
5468 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5470 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5471 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5473 if test "${acl_cv_path_LD+set}" = set; then
5474 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 if test -z "$LD"; then
5477 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5478 for ac_dir in $PATH; do
5479 test -z "$ac_dir" && ac_dir=.
5480 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5481 acl_cv_path_LD="$ac_dir/$ac_prog"
5482 # Check to see if the program is GNU ld. I'd rather use --version,
5483 # but apparently some GNU ld's only accept -v.
5484 # Break only if it was the GNU/non-GNU ld that we prefer.
5485 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
5486 test "$with_gnu_ld" != no && break
5488 test "$with_gnu_ld" != yes && break
5494 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5498 LD="$acl_cv_path_LD"
5499 if test -n "$LD"; then
5500 echo "$as_me:$LINENO: result: $LD" >&5
5501 echo "${ECHO_T}$LD" >&6
5503 echo "$as_me:$LINENO: result: no" >&5
5504 echo "${ECHO_T}no" >&6
5506 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5507 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5508 { (exit 1); exit 1; }; }
5509 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5510 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5511 if test "${acl_cv_prog_gnu_ld+set}" = set; then
5512 echo $ECHO_N "(cached) $ECHO_C" >&6
5514 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5515 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5516 acl_cv_prog_gnu_ld=yes
5518 acl_cv_prog_gnu_ld=no
5521 echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5522 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5523 with_gnu_ld=$acl_cv_prog_gnu_ld
5527 echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5528 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5529 if test "${acl_cv_rpath+set}" = set; then
5530 echo $ECHO_N "(cached) $ECHO_C" >&6
5533 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5534 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5540 echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5541 echo "${ECHO_T}$acl_cv_rpath" >&6
5543 libext="$acl_cv_libext"
5544 shlibext="$acl_cv_shlibext"
5545 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5546 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5547 hardcode_direct="$acl_cv_hardcode_direct"
5548 hardcode_minus_L="$acl_cv_hardcode_minus_L"
5549 # Check whether --enable-rpath or --disable-rpath was given.
5550 if test "${enable_rpath+set}" = set; then
5551 enableval="$enable_rpath"
5565 acl_save_prefix="$prefix"
5566 prefix="$acl_final_prefix"
5567 acl_save_exec_prefix="$exec_prefix"
5568 exec_prefix="$acl_final_exec_prefix"
5570 eval additional_includedir=\"$includedir\"
5571 eval additional_libdir=\"$libdir\"
5573 exec_prefix="$acl_save_exec_prefix"
5574 prefix="$acl_save_prefix"
5577 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5578 if test "${with_libiconv_prefix+set}" = set; then
5579 withval="$with_libiconv_prefix"
5581 if test "X$withval" = "Xno"; then
5584 if test "X$withval" = "X"; then
5586 acl_save_prefix="$prefix"
5587 prefix="$acl_final_prefix"
5588 acl_save_exec_prefix="$exec_prefix"
5589 exec_prefix="$acl_final_exec_prefix"
5591 eval additional_includedir=\"$includedir\"
5592 eval additional_libdir=\"$libdir\"
5594 exec_prefix="$acl_save_exec_prefix"
5595 prefix="$acl_save_prefix"
5598 additional_includedir="$withval/include"
5599 additional_libdir="$withval/lib"
5609 names_already_handled=
5610 names_next_round='iconv '
5611 while test -n "$names_next_round"; do
5612 names_this_round="$names_next_round"
5614 for name in $names_this_round; do
5616 for n in $names_already_handled; do
5617 if test "$n" = "$name"; then
5622 if test -z "$already_handled"; then
5623 names_already_handled="$names_already_handled $name"
5624 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5625 eval value=\"\$HAVE_LIB$uppername\"
5626 if test -n "$value"; then
5627 if test "$value" = yes; then
5628 eval value=\"\$LIB$uppername\"
5629 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5630 eval value=\"\$LTLIB$uppername\"
5631 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5640 if test $use_additional = yes; then
5641 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5642 found_dir="$additional_libdir"
5643 found_so="$additional_libdir/lib$name.$shlibext"
5644 if test -f "$additional_libdir/lib$name.la"; then
5645 found_la="$additional_libdir/lib$name.la"
5648 if test -f "$additional_libdir/lib$name.$libext"; then
5649 found_dir="$additional_libdir"
5650 found_a="$additional_libdir/lib$name.$libext"
5651 if test -f "$additional_libdir/lib$name.la"; then
5652 found_la="$additional_libdir/lib$name.la"
5657 if test "X$found_dir" = "X"; then
5658 for x in $LDFLAGS $LTLIBICONV; do
5660 acl_save_prefix="$prefix"
5661 prefix="$acl_final_prefix"
5662 acl_save_exec_prefix="$exec_prefix"
5663 exec_prefix="$acl_final_exec_prefix"
5665 exec_prefix="$acl_save_exec_prefix"
5666 prefix="$acl_save_prefix"
5670 dir=`echo "X$x" | sed -e 's/^X-L//'`
5671 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5673 found_so="$dir/lib$name.$shlibext"
5674 if test -f "$dir/lib$name.la"; then
5675 found_la="$dir/lib$name.la"
5678 if test -f "$dir/lib$name.$libext"; then
5680 found_a="$dir/lib$name.$libext"
5681 if test -f "$dir/lib$name.la"; then
5682 found_la="$dir/lib$name.la"
5688 if test "X$found_dir" != "X"; then
5693 if test "X$found_dir" != "X"; then
5694 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5695 if test "X$found_so" != "X"; then
5696 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5697 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5700 for x in $ltrpathdirs; do
5701 if test "X$x" = "X$found_dir"; then
5706 if test -z "$haveit"; then
5707 ltrpathdirs="$ltrpathdirs $found_dir"
5709 if test "$hardcode_direct" = yes; then
5710 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5712 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5713 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5715 for x in $rpathdirs; do
5716 if test "X$x" = "X$found_dir"; then
5721 if test -z "$haveit"; then
5722 rpathdirs="$rpathdirs $found_dir"
5726 for x in $LDFLAGS $LIBICONV; do
5728 acl_save_prefix="$prefix"
5729 prefix="$acl_final_prefix"
5730 acl_save_exec_prefix="$exec_prefix"
5731 exec_prefix="$acl_final_exec_prefix"
5733 exec_prefix="$acl_save_exec_prefix"
5734 prefix="$acl_save_prefix"
5736 if test "X$x" = "X-L$found_dir"; then
5741 if test -z "$haveit"; then
5742 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5744 if test "$hardcode_minus_L" != no; then
5745 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5747 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5753 if test "X$found_a" != "X"; then
5754 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5756 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5759 additional_includedir=
5760 case "$found_dir" in
5762 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5763 additional_includedir="$basedir/include"
5766 if test "X$additional_includedir" != "X"; then
5767 if test "X$additional_includedir" != "X/usr/include"; then
5769 if test "X$additional_includedir" = "X/usr/local/include"; then
5770 if test -n "$GCC"; then
5772 linux*) haveit=yes;;
5776 if test -z "$haveit"; then
5777 for x in $CPPFLAGS $INCICONV; do
5779 acl_save_prefix="$prefix"
5780 prefix="$acl_final_prefix"
5781 acl_save_exec_prefix="$exec_prefix"
5782 exec_prefix="$acl_final_exec_prefix"
5784 exec_prefix="$acl_save_exec_prefix"
5785 prefix="$acl_save_prefix"
5787 if test "X$x" = "X-I$additional_includedir"; then
5792 if test -z "$haveit"; then
5793 if test -d "$additional_includedir"; then
5794 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5800 if test -n "$found_la"; then
5801 save_libdir="$libdir"
5803 */* | *\\*) . "$found_la" ;;
5804 *) . "./$found_la" ;;
5806 libdir="$save_libdir"
5807 for dep in $dependency_libs; do
5810 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5811 if test "X$additional_libdir" != "X/usr/lib"; then
5813 if test "X$additional_libdir" = "X/usr/local/lib"; then
5814 if test -n "$GCC"; then
5816 linux*) haveit=yes;;
5820 if test -z "$haveit"; then
5822 for x in $LDFLAGS $LIBICONV; do
5824 acl_save_prefix="$prefix"
5825 prefix="$acl_final_prefix"
5826 acl_save_exec_prefix="$exec_prefix"
5827 exec_prefix="$acl_final_exec_prefix"
5829 exec_prefix="$acl_save_exec_prefix"
5830 prefix="$acl_save_prefix"
5832 if test "X$x" = "X-L$additional_libdir"; then
5837 if test -z "$haveit"; then
5838 if test -d "$additional_libdir"; then
5839 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5843 for x in $LDFLAGS $LTLIBICONV; do
5845 acl_save_prefix="$prefix"
5846 prefix="$acl_final_prefix"
5847 acl_save_exec_prefix="$exec_prefix"
5848 exec_prefix="$acl_final_exec_prefix"
5850 exec_prefix="$acl_save_exec_prefix"
5851 prefix="$acl_save_prefix"
5853 if test "X$x" = "X-L$additional_libdir"; then
5858 if test -z "$haveit"; then
5859 if test -d "$additional_libdir"; then
5860 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5867 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5868 if test "$enable_rpath" != no; then
5870 for x in $rpathdirs; do
5871 if test "X$x" = "X$dir"; then
5876 if test -z "$haveit"; then
5877 rpathdirs="$rpathdirs $dir"
5880 for x in $ltrpathdirs; do
5881 if test "X$x" = "X$dir"; then
5886 if test -z "$haveit"; then
5887 ltrpathdirs="$ltrpathdirs $dir"
5892 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5895 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5898 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5899 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5905 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5906 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5912 if test "X$rpathdirs" != "X"; then
5913 if test -n "$hardcode_libdir_separator"; then
5915 for found_dir in $rpathdirs; do
5916 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5918 acl_save_libdir="$libdir"
5920 eval flag=\"$hardcode_libdir_flag_spec\"
5921 libdir="$acl_save_libdir"
5922 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5924 for found_dir in $rpathdirs; do
5925 acl_save_libdir="$libdir"
5927 eval flag=\"$hardcode_libdir_flag_spec\"
5928 libdir="$acl_save_libdir"
5929 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5933 if test "X$ltrpathdirs" != "X"; then
5934 for found_dir in $ltrpathdirs; do
5935 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5952 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
5953 stdlib.h string.h unistd.h sys/param.h
5955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5957 echo "$as_me:$LINENO: checking for $ac_header" >&5
5958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5960 echo $ECHO_N "(cached) $ECHO_C" >&6
5962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5963 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5965 # Is the header compilable?
5966 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5968 cat >conftest.$ac_ext <<_ACEOF
5971 cat confdefs.h >>conftest.$ac_ext
5972 cat >>conftest.$ac_ext <<_ACEOF
5973 /* end confdefs.h. */
5974 $ac_includes_default
5975 #include <$ac_header>
5977 rm -f conftest.$ac_objext
5978 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5979 (eval $ac_compile) 2>conftest.er1
5981 grep -v '^ *+' conftest.er1 >conftest.err
5983 cat conftest.err >&5
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); } &&
5986 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); }; } &&
5992 { ac_try='test -s conftest.$ac_objext'
5993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); }; }; then
5998 ac_header_compiler=yes
6000 echo "$as_me: failed program was:" >&5
6001 sed 's/^/| /' conftest.$ac_ext >&5
6003 ac_header_compiler=no
6005 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6006 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6007 echo "${ECHO_T}$ac_header_compiler" >&6
6009 # Is the header present?
6010 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6011 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6012 cat >conftest.$ac_ext <<_ACEOF
6015 cat confdefs.h >>conftest.$ac_ext
6016 cat >>conftest.$ac_ext <<_ACEOF
6017 /* end confdefs.h. */
6018 #include <$ac_header>
6020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6023 grep -v '^ *+' conftest.er1 >conftest.err
6025 cat conftest.err >&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); } >/dev/null; then
6028 if test -s conftest.err; then
6029 ac_cpp_err=$ac_c_preproc_warn_flag
6030 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6037 if test -z "$ac_cpp_err"; then
6038 ac_header_preproc=yes
6040 echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.$ac_ext >&5
6043 ac_header_preproc=no
6045 rm -f conftest.err conftest.$ac_ext
6046 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6047 echo "${ECHO_T}$ac_header_preproc" >&6
6049 # So? What about this header?
6050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6052 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6053 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6055 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6056 ac_header_preproc=yes
6059 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6060 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6061 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6062 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6063 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6064 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6065 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6066 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6069 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6070 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6073 ## ------------------------------- ##
6074 ## Report this to the pspp lists. ##
6075 ## ------------------------------- ##
6078 sed "s/^/$as_me: WARNING: /" >&2
6081 echo "$as_me:$LINENO: checking for $ac_header" >&5
6082 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6083 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6086 eval "$as_ac_Header=\$ac_header_preproc"
6088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6093 cat >>confdefs.h <<_ACEOF
6094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6123 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
6124 geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
6125 strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
6128 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6129 echo "$as_me:$LINENO: checking for $ac_func" >&5
6130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6131 if eval "test \"\${$as_ac_var+set}\" = set"; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
6134 cat >conftest.$ac_ext <<_ACEOF
6137 cat confdefs.h >>conftest.$ac_ext
6138 cat >>conftest.$ac_ext <<_ACEOF
6139 /* end confdefs.h. */
6140 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6141 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6142 #define $ac_func innocuous_$ac_func
6144 /* System header to define __stub macros and hopefully few prototypes,
6145 which can conflict with char $ac_func (); below.
6146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6147 <limits.h> exists even on freestanding compilers. */
6150 # include <limits.h>
6152 # include <assert.h>
6157 /* Override any gcc2 internal prototype to avoid an error. */
6162 /* We use char because int might match the return type of a gcc2
6163 builtin and then its argument prototype would still apply. */
6165 /* The GNU C library defines this for functions which it implements
6166 to always fail with ENOSYS. Some functions are actually named
6167 something starting with __ and the normal name is an alias. */
6168 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6171 char (*f) () = $ac_func;
6180 return f != $ac_func;
6185 rm -f conftest.$ac_objext conftest$ac_exeext
6186 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6187 (eval $ac_link) 2>conftest.er1
6189 grep -v '^ *+' conftest.er1 >conftest.err
6191 cat conftest.err >&5
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); } &&
6194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); }; } &&
6200 { ac_try='test -s conftest$ac_exeext'
6201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205 (exit $ac_status); }; }; then
6206 eval "$as_ac_var=yes"
6208 echo "$as_me: failed program was:" >&5
6209 sed 's/^/| /' conftest.$ac_ext >&5
6211 eval "$as_ac_var=no"
6213 rm -f conftest.err conftest.$ac_objext \
6214 conftest$ac_exeext conftest.$ac_ext
6216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6217 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6218 if test `eval echo '${'$as_ac_var'}'` = yes; then
6219 cat >>confdefs.h <<_ACEOF
6220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6232 am_save_CPPFLAGS="$CPPFLAGS"
6234 for element in $INCICONV; do
6236 for x in $CPPFLAGS; do
6238 acl_save_prefix="$prefix"
6239 prefix="$acl_final_prefix"
6240 acl_save_exec_prefix="$exec_prefix"
6241 exec_prefix="$acl_final_exec_prefix"
6243 exec_prefix="$acl_save_exec_prefix"
6244 prefix="$acl_save_prefix"
6246 if test "X$x" = "X$element"; then
6251 if test -z "$haveit"; then
6252 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6257 echo "$as_me:$LINENO: checking for iconv" >&5
6258 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
6259 if test "${am_cv_func_iconv+set}" = set; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
6263 am_cv_func_iconv="no, consider installing GNU libiconv"
6265 cat >conftest.$ac_ext <<_ACEOF
6268 cat confdefs.h >>conftest.$ac_ext
6269 cat >>conftest.$ac_ext <<_ACEOF
6270 /* end confdefs.h. */
6276 iconv_t cd = iconv_open("","");
6277 iconv(cd,NULL,NULL,NULL,NULL);
6283 rm -f conftest.$ac_objext conftest$ac_exeext
6284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6285 (eval $ac_link) 2>conftest.er1
6287 grep -v '^ *+' conftest.er1 >conftest.err
6289 cat conftest.err >&5
6290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6291 (exit $ac_status); } &&
6292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); }; } &&
6298 { ac_try='test -s conftest$ac_exeext'
6299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); }; }; then
6304 am_cv_func_iconv=yes
6306 echo "$as_me: failed program was:" >&5
6307 sed 's/^/| /' conftest.$ac_ext >&5
6310 rm -f conftest.err conftest.$ac_objext \
6311 conftest$ac_exeext conftest.$ac_ext
6312 if test "$am_cv_func_iconv" != yes; then
6313 am_save_LIBS="$LIBS"
6314 LIBS="$LIBS $LIBICONV"
6315 cat >conftest.$ac_ext <<_ACEOF
6318 cat confdefs.h >>conftest.$ac_ext
6319 cat >>conftest.$ac_ext <<_ACEOF
6320 /* end confdefs.h. */
6326 iconv_t cd = iconv_open("","");
6327 iconv(cd,NULL,NULL,NULL,NULL);
6333 rm -f conftest.$ac_objext conftest$ac_exeext
6334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6335 (eval $ac_link) 2>conftest.er1
6337 grep -v '^ *+' conftest.er1 >conftest.err
6339 cat conftest.err >&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } &&
6342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }; } &&
6348 { ac_try='test -s conftest$ac_exeext'
6349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; }; then
6355 am_cv_func_iconv=yes
6357 echo "$as_me: failed program was:" >&5
6358 sed 's/^/| /' conftest.$ac_ext >&5
6361 rm -f conftest.err conftest.$ac_objext \
6362 conftest$ac_exeext conftest.$ac_ext
6363 LIBS="$am_save_LIBS"
6367 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6368 echo "${ECHO_T}$am_cv_func_iconv" >&6
6369 if test "$am_cv_func_iconv" = yes; then
6371 cat >>confdefs.h <<\_ACEOF
6372 #define HAVE_ICONV 1
6376 if test "$am_cv_lib_iconv" = yes; then
6377 echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6378 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6379 echo "$as_me:$LINENO: result: $LIBICONV" >&5
6380 echo "${ECHO_T}$LIBICONV" >&6
6382 CPPFLAGS="$am_save_CPPFLAGS"
6389 if test "$am_cv_func_iconv" = yes; then
6390 echo "$as_me:$LINENO: checking for iconv declaration" >&5
6391 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
6392 if test "${am_cv_proto_iconv+set}" = set; then
6393 echo $ECHO_N "(cached) $ECHO_C" >&6
6396 cat >conftest.$ac_ext <<_ACEOF
6399 cat confdefs.h >>conftest.$ac_ext
6400 cat >>conftest.$ac_ext <<_ACEOF
6401 /* end confdefs.h. */
6409 #if defined(__STDC__) || defined(__cplusplus)
6410 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6423 rm -f conftest.$ac_objext
6424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6425 (eval $ac_compile) 2>conftest.er1
6427 grep -v '^ *+' conftest.er1 >conftest.err
6429 cat conftest.err >&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); } &&
6432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; } &&
6438 { ac_try='test -s conftest.$ac_objext'
6439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); }; }; then
6444 am_cv_proto_iconv_arg1=""
6446 echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6449 am_cv_proto_iconv_arg1="const"
6451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6452 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);"
6455 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6456 echo "$as_me:$LINENO: result: ${ac_t:-
6457 }$am_cv_proto_iconv" >&5
6458 echo "${ECHO_T}${ac_t:-
6459 }$am_cv_proto_iconv" >&6
6461 cat >>confdefs.h <<_ACEOF
6462 #define ICONV_CONST $am_cv_proto_iconv_arg1
6468 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
6469 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
6470 if test "${am_cv_langinfo_codeset+set}" = set; then
6471 echo $ECHO_N "(cached) $ECHO_C" >&6
6473 cat >conftest.$ac_ext <<_ACEOF
6476 cat confdefs.h >>conftest.$ac_ext
6477 cat >>conftest.$ac_ext <<_ACEOF
6478 /* end confdefs.h. */
6479 #include <langinfo.h>
6483 char* cs = nl_langinfo(CODESET);
6488 rm -f conftest.$ac_objext conftest$ac_exeext
6489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6490 (eval $ac_link) 2>conftest.er1
6492 grep -v '^ *+' conftest.er1 >conftest.err
6494 cat conftest.err >&5
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); } &&
6497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); }; } &&
6503 { ac_try='test -s conftest$ac_exeext'
6504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6508 (exit $ac_status); }; }; then
6509 am_cv_langinfo_codeset=yes
6511 echo "$as_me: failed program was:" >&5
6512 sed 's/^/| /' conftest.$ac_ext >&5
6514 am_cv_langinfo_codeset=no
6516 rm -f conftest.err conftest.$ac_objext \
6517 conftest$ac_exeext conftest.$ac_ext
6520 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
6521 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
6522 if test $am_cv_langinfo_codeset = yes; then
6524 cat >>confdefs.h <<\_ACEOF
6525 #define HAVE_LANGINFO_CODESET 1
6530 if test $ac_cv_header_locale_h = yes; then
6532 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
6533 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
6534 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6535 echo $ECHO_N "(cached) $ECHO_C" >&6
6537 cat >conftest.$ac_ext <<_ACEOF
6540 cat confdefs.h >>conftest.$ac_ext
6541 cat >>conftest.$ac_ext <<_ACEOF
6542 /* end confdefs.h. */
6552 rm -f conftest.$ac_objext conftest$ac_exeext
6553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6554 (eval $ac_link) 2>conftest.er1
6556 grep -v '^ *+' conftest.er1 >conftest.err
6558 cat conftest.err >&5
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); } &&
6561 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); }; } &&
6567 { ac_try='test -s conftest$ac_exeext'
6568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); }; }; then
6573 am_cv_val_LC_MESSAGES=yes
6575 echo "$as_me: failed program was:" >&5
6576 sed 's/^/| /' conftest.$ac_ext >&5
6578 am_cv_val_LC_MESSAGES=no
6580 rm -f conftest.err conftest.$ac_objext \
6581 conftest$ac_exeext conftest.$ac_ext
6583 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
6584 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
6585 if test $am_cv_val_LC_MESSAGES = yes; then
6587 cat >>confdefs.h <<\_ACEOF
6588 #define HAVE_LC_MESSAGES 1
6595 for ac_prog in bison
6597 # Extract the first word of "$ac_prog", so it can be a program name with args.
6598 set dummy $ac_prog; ac_word=$2
6599 echo "$as_me:$LINENO: checking for $ac_word" >&5
6600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6601 if test "${ac_cv_prog_INTLBISON+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6604 if test -n "$INTLBISON"; then
6605 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
6607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6611 test -z "$as_dir" && as_dir=.
6612 for ac_exec_ext in '' $ac_executable_extensions; do
6613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6614 ac_cv_prog_INTLBISON="$ac_prog"
6615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6623 INTLBISON=$ac_cv_prog_INTLBISON
6624 if test -n "$INTLBISON"; then
6625 echo "$as_me:$LINENO: result: $INTLBISON" >&5
6626 echo "${ECHO_T}$INTLBISON" >&6
6628 echo "$as_me:$LINENO: result: no" >&5
6629 echo "${ECHO_T}no" >&6
6632 test -n "$INTLBISON" && break
6635 if test -z "$INTLBISON"; then
6638 echo "$as_me:$LINENO: checking version of bison" >&5
6639 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
6640 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
6641 case $ac_prog_version in
6642 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
6643 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
6644 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
6645 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
6647 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
6648 echo "${ECHO_T}$ac_prog_version" >&6
6650 if test $ac_verc_fail = yes; then
6669 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6670 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
6671 # Check whether --enable-nls or --disable-nls was given.
6672 if test "${enable_nls+set}" = set; then
6673 enableval="$enable_nls"
6678 echo "$as_me:$LINENO: result: $USE_NLS" >&5
6679 echo "${ECHO_T}$USE_NLS" >&6
6684 BUILD_INCLUDED_LIBINTL=no
6685 USE_INCLUDED_LIBINTL=no
6691 if test "$USE_NLS" = "yes"; then
6692 gt_use_preinstalled_gnugettext=no
6694 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
6695 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
6697 # Check whether --with-included-gettext or --without-included-gettext was given.
6698 if test "${with_included_gettext+set}" = set; then
6699 withval="$with_included_gettext"
6700 nls_cv_force_use_gnu_gettext=$withval
6702 nls_cv_force_use_gnu_gettext=no
6704 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
6705 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
6707 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
6708 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
6715 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6716 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
6717 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6718 echo $ECHO_N "(cached) $ECHO_C" >&6
6720 cat >conftest.$ac_ext <<_ACEOF
6723 cat confdefs.h >>conftest.$ac_ext
6724 cat >>conftest.$ac_ext <<_ACEOF
6725 /* end confdefs.h. */
6726 #include <libintl.h>
6727 extern int _nl_msg_cat_cntr;
6728 extern int *_nl_domain_bindings;
6732 bindtextdomain ("", "");
6733 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6738 rm -f conftest.$ac_objext conftest$ac_exeext
6739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6740 (eval $ac_link) 2>conftest.er1
6742 grep -v '^ *+' conftest.er1 >conftest.err
6744 cat conftest.err >&5
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6746 (exit $ac_status); } &&
6747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); }; } &&
6753 { ac_try='test -s conftest$ac_exeext'
6754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); }; }; then
6759 gt_cv_func_gnugettext1_libc=yes
6761 echo "$as_me: failed program was:" >&5
6762 sed 's/^/| /' conftest.$ac_ext >&5
6764 gt_cv_func_gnugettext1_libc=no
6766 rm -f conftest.err conftest.$ac_objext \
6767 conftest$ac_exeext conftest.$ac_ext
6769 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6770 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
6772 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6778 acl_save_prefix="$prefix"
6779 prefix="$acl_final_prefix"
6780 acl_save_exec_prefix="$exec_prefix"
6781 exec_prefix="$acl_final_exec_prefix"
6783 eval additional_includedir=\"$includedir\"
6784 eval additional_libdir=\"$libdir\"
6786 exec_prefix="$acl_save_exec_prefix"
6787 prefix="$acl_save_prefix"
6790 # Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6791 if test "${with_libintl_prefix+set}" = set; then
6792 withval="$with_libintl_prefix"
6794 if test "X$withval" = "Xno"; then
6797 if test "X$withval" = "X"; then
6799 acl_save_prefix="$prefix"
6800 prefix="$acl_final_prefix"
6801 acl_save_exec_prefix="$exec_prefix"
6802 exec_prefix="$acl_final_exec_prefix"
6804 eval additional_includedir=\"$includedir\"
6805 eval additional_libdir=\"$libdir\"
6807 exec_prefix="$acl_save_exec_prefix"
6808 prefix="$acl_save_prefix"
6811 additional_includedir="$withval/include"
6812 additional_libdir="$withval/lib"
6822 names_already_handled=
6823 names_next_round='intl '
6824 while test -n "$names_next_round"; do
6825 names_this_round="$names_next_round"
6827 for name in $names_this_round; do
6829 for n in $names_already_handled; do
6830 if test "$n" = "$name"; then
6835 if test -z "$already_handled"; then
6836 names_already_handled="$names_already_handled $name"
6837 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6838 eval value=\"\$HAVE_LIB$uppername\"
6839 if test -n "$value"; then
6840 if test "$value" = yes; then
6841 eval value=\"\$LIB$uppername\"
6842 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6843 eval value=\"\$LTLIB$uppername\"
6844 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6853 if test $use_additional = yes; then
6854 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6855 found_dir="$additional_libdir"
6856 found_so="$additional_libdir/lib$name.$shlibext"
6857 if test -f "$additional_libdir/lib$name.la"; then
6858 found_la="$additional_libdir/lib$name.la"
6861 if test -f "$additional_libdir/lib$name.$libext"; then
6862 found_dir="$additional_libdir"
6863 found_a="$additional_libdir/lib$name.$libext"
6864 if test -f "$additional_libdir/lib$name.la"; then
6865 found_la="$additional_libdir/lib$name.la"
6870 if test "X$found_dir" = "X"; then
6871 for x in $LDFLAGS $LTLIBINTL; do
6873 acl_save_prefix="$prefix"
6874 prefix="$acl_final_prefix"
6875 acl_save_exec_prefix="$exec_prefix"
6876 exec_prefix="$acl_final_exec_prefix"
6878 exec_prefix="$acl_save_exec_prefix"
6879 prefix="$acl_save_prefix"
6883 dir=`echo "X$x" | sed -e 's/^X-L//'`
6884 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6886 found_so="$dir/lib$name.$shlibext"
6887 if test -f "$dir/lib$name.la"; then
6888 found_la="$dir/lib$name.la"
6891 if test -f "$dir/lib$name.$libext"; then
6893 found_a="$dir/lib$name.$libext"
6894 if test -f "$dir/lib$name.la"; then
6895 found_la="$dir/lib$name.la"
6901 if test "X$found_dir" != "X"; then
6906 if test "X$found_dir" != "X"; then
6907 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6908 if test "X$found_so" != "X"; then
6909 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6910 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6913 for x in $ltrpathdirs; do
6914 if test "X$x" = "X$found_dir"; then
6919 if test -z "$haveit"; then
6920 ltrpathdirs="$ltrpathdirs $found_dir"
6922 if test "$hardcode_direct" = yes; then
6923 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6925 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6926 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6928 for x in $rpathdirs; do
6929 if test "X$x" = "X$found_dir"; then
6934 if test -z "$haveit"; then
6935 rpathdirs="$rpathdirs $found_dir"
6939 for x in $LDFLAGS $LIBINTL; do
6941 acl_save_prefix="$prefix"
6942 prefix="$acl_final_prefix"
6943 acl_save_exec_prefix="$exec_prefix"
6944 exec_prefix="$acl_final_exec_prefix"
6946 exec_prefix="$acl_save_exec_prefix"
6947 prefix="$acl_save_prefix"
6949 if test "X$x" = "X-L$found_dir"; then
6954 if test -z "$haveit"; then
6955 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6957 if test "$hardcode_minus_L" != no; then
6958 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6960 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6966 if test "X$found_a" != "X"; then
6967 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6969 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6972 additional_includedir=
6973 case "$found_dir" in
6975 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6976 additional_includedir="$basedir/include"
6979 if test "X$additional_includedir" != "X"; then
6980 if test "X$additional_includedir" != "X/usr/include"; then
6982 if test "X$additional_includedir" = "X/usr/local/include"; then
6983 if test -n "$GCC"; then
6985 linux*) haveit=yes;;
6989 if test -z "$haveit"; then
6990 for x in $CPPFLAGS $INCINTL; do
6992 acl_save_prefix="$prefix"
6993 prefix="$acl_final_prefix"
6994 acl_save_exec_prefix="$exec_prefix"
6995 exec_prefix="$acl_final_exec_prefix"
6997 exec_prefix="$acl_save_exec_prefix"
6998 prefix="$acl_save_prefix"
7000 if test "X$x" = "X-I$additional_includedir"; then
7005 if test -z "$haveit"; then
7006 if test -d "$additional_includedir"; then
7007 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7013 if test -n "$found_la"; then
7014 save_libdir="$libdir"
7016 */* | *\\*) . "$found_la" ;;
7017 *) . "./$found_la" ;;
7019 libdir="$save_libdir"
7020 for dep in $dependency_libs; do
7023 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7024 if test "X$additional_libdir" != "X/usr/lib"; then
7026 if test "X$additional_libdir" = "X/usr/local/lib"; then
7027 if test -n "$GCC"; then
7029 linux*) haveit=yes;;
7033 if test -z "$haveit"; then
7035 for x in $LDFLAGS $LIBINTL; do
7037 acl_save_prefix="$prefix"
7038 prefix="$acl_final_prefix"
7039 acl_save_exec_prefix="$exec_prefix"
7040 exec_prefix="$acl_final_exec_prefix"
7042 exec_prefix="$acl_save_exec_prefix"
7043 prefix="$acl_save_prefix"
7045 if test "X$x" = "X-L$additional_libdir"; then
7050 if test -z "$haveit"; then
7051 if test -d "$additional_libdir"; then
7052 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7056 for x in $LDFLAGS $LTLIBINTL; do
7058 acl_save_prefix="$prefix"
7059 prefix="$acl_final_prefix"
7060 acl_save_exec_prefix="$exec_prefix"
7061 exec_prefix="$acl_final_exec_prefix"
7063 exec_prefix="$acl_save_exec_prefix"
7064 prefix="$acl_save_prefix"
7066 if test "X$x" = "X-L$additional_libdir"; then
7071 if test -z "$haveit"; then
7072 if test -d "$additional_libdir"; then
7073 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7080 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7081 if test "$enable_rpath" != no; then
7083 for x in $rpathdirs; do
7084 if test "X$x" = "X$dir"; then
7089 if test -z "$haveit"; then
7090 rpathdirs="$rpathdirs $dir"
7093 for x in $ltrpathdirs; do
7094 if test "X$x" = "X$dir"; then
7099 if test -z "$haveit"; then
7100 ltrpathdirs="$ltrpathdirs $dir"
7105 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7108 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7111 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7112 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7118 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7119 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7125 if test "X$rpathdirs" != "X"; then
7126 if test -n "$hardcode_libdir_separator"; then
7128 for found_dir in $rpathdirs; do
7129 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7131 acl_save_libdir="$libdir"
7133 eval flag=\"$hardcode_libdir_flag_spec\"
7134 libdir="$acl_save_libdir"
7135 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7137 for found_dir in $rpathdirs; do
7138 acl_save_libdir="$libdir"
7140 eval flag=\"$hardcode_libdir_flag_spec\"
7141 libdir="$acl_save_libdir"
7142 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7146 if test "X$ltrpathdirs" != "X"; then
7147 for found_dir in $ltrpathdirs; do
7148 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7152 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7153 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
7154 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7155 echo $ECHO_N "(cached) $ECHO_C" >&6
7157 gt_save_CPPFLAGS="$CPPFLAGS"
7158 CPPFLAGS="$CPPFLAGS $INCINTL"
7159 gt_save_LIBS="$LIBS"
7160 LIBS="$LIBS $LIBINTL"
7161 cat >conftest.$ac_ext <<_ACEOF
7164 cat confdefs.h >>conftest.$ac_ext
7165 cat >>conftest.$ac_ext <<_ACEOF
7166 /* end confdefs.h. */
7167 #include <libintl.h>
7168 extern int _nl_msg_cat_cntr;
7173 const char *_nl_expand_alias ();
7177 bindtextdomain ("", "");
7178 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
7183 rm -f conftest.$ac_objext conftest$ac_exeext
7184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7185 (eval $ac_link) 2>conftest.er1
7187 grep -v '^ *+' conftest.er1 >conftest.err
7189 cat conftest.err >&5
7190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191 (exit $ac_status); } &&
7192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); }; } &&
7198 { ac_try='test -s conftest$ac_exeext'
7199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); }; }; then
7204 gt_cv_func_gnugettext1_libintl=yes
7206 echo "$as_me: failed program was:" >&5
7207 sed 's/^/| /' conftest.$ac_ext >&5
7209 gt_cv_func_gnugettext1_libintl=no
7211 rm -f conftest.err conftest.$ac_objext \
7212 conftest$ac_exeext conftest.$ac_ext
7213 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7214 LIBS="$LIBS $LIBICONV"
7215 cat >conftest.$ac_ext <<_ACEOF
7218 cat confdefs.h >>conftest.$ac_ext
7219 cat >>conftest.$ac_ext <<_ACEOF
7220 /* end confdefs.h. */
7221 #include <libintl.h>
7222 extern int _nl_msg_cat_cntr;
7227 const char *_nl_expand_alias ();
7231 bindtextdomain ("", "");
7232 return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
7237 rm -f conftest.$ac_objext conftest$ac_exeext
7238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7239 (eval $ac_link) 2>conftest.er1
7241 grep -v '^ *+' conftest.er1 >conftest.err
7243 cat conftest.err >&5
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); } &&
7246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); }; } &&
7252 { ac_try='test -s conftest$ac_exeext'
7253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7257 (exit $ac_status); }; }; then
7258 LIBINTL="$LIBINTL $LIBICONV"
7259 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7260 gt_cv_func_gnugettext1_libintl=yes
7263 echo "$as_me: failed program was:" >&5
7264 sed 's/^/| /' conftest.$ac_ext >&5
7267 rm -f conftest.err conftest.$ac_objext \
7268 conftest$ac_exeext conftest.$ac_ext
7270 CPPFLAGS="$gt_save_CPPFLAGS"
7271 LIBS="$gt_save_LIBS"
7273 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7274 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
7277 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7278 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7279 && test "$PACKAGE" != gettext-runtime \
7280 && test "$PACKAGE" != gettext-tools; }; then
7281 gt_use_preinstalled_gnugettext=yes
7289 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
7290 nls_cv_use_gnu_gettext=yes
7294 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7295 BUILD_INCLUDED_LIBINTL=yes
7296 USE_INCLUDED_LIBINTL=yes
7297 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
7298 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
7299 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
7302 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7303 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7308 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7309 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7311 cat >>confdefs.h <<\_ACEOF
7312 #define ENABLE_NLS 1
7320 echo "$as_me:$LINENO: checking whether to use NLS" >&5
7321 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6
7322 echo "$as_me:$LINENO: result: $USE_NLS" >&5
7323 echo "${ECHO_T}$USE_NLS" >&6
7324 if test "$USE_NLS" = "yes"; then
7325 echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7326 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6
7327 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7328 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7329 gt_source="external libintl"
7334 gt_source="included intl directory"
7336 echo "$as_me:$LINENO: result: $gt_source" >&5
7337 echo "${ECHO_T}$gt_source" >&6
7340 if test "$USE_NLS" = "yes"; then
7342 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7343 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7344 echo "$as_me:$LINENO: checking how to link with libintl" >&5
7345 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
7346 echo "$as_me:$LINENO: result: $LIBINTL" >&5
7347 echo "${ECHO_T}$LIBINTL" >&6
7349 for element in $INCINTL; do
7351 for x in $CPPFLAGS; do
7353 acl_save_prefix="$prefix"
7354 prefix="$acl_final_prefix"
7355 acl_save_exec_prefix="$exec_prefix"
7356 exec_prefix="$acl_final_exec_prefix"
7358 exec_prefix="$acl_save_exec_prefix"
7359 prefix="$acl_save_prefix"
7361 if test "X$x" = "X$element"; then
7366 if test -z "$haveit"; then
7367 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7374 cat >>confdefs.h <<\_ACEOF
7375 #define HAVE_GETTEXT 1
7379 cat >>confdefs.h <<\_ACEOF
7380 #define HAVE_DCGETTEXT 1
7389 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
7390 BUILD_INCLUDED_LIBINTL=yes
7398 nls_cv_header_libgt=
7409 if test "$USE_INCLUDED_LIBINTL" = yes; then
7410 INTLOBJS="\$(GETTOBJS)"
7414 INTL_LIBTOOL_SUFFIX_PREFIX=
7427 echo "$as_me:$LINENO: checking for sin in -lm" >&5
7428 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6
7429 if test "${ac_cv_lib_m_sin+set}" = set; then
7430 echo $ECHO_N "(cached) $ECHO_C" >&6
7432 ac_check_lib_save_LIBS=$LIBS
7434 cat >conftest.$ac_ext <<_ACEOF
7437 cat confdefs.h >>conftest.$ac_ext
7438 cat >>conftest.$ac_ext <<_ACEOF
7439 /* end confdefs.h. */
7441 /* Override any gcc2 internal prototype to avoid an error. */
7445 /* We use char because int might match the return type of a gcc2
7446 builtin and then its argument prototype would still apply. */
7456 rm -f conftest.$ac_objext conftest$ac_exeext
7457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7458 (eval $ac_link) 2>conftest.er1
7460 grep -v '^ *+' conftest.er1 >conftest.err
7462 cat conftest.err >&5
7463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464 (exit $ac_status); } &&
7465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470 (exit $ac_status); }; } &&
7471 { ac_try='test -s conftest$ac_exeext'
7472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7476 (exit $ac_status); }; }; then
7479 echo "$as_me: failed program was:" >&5
7480 sed 's/^/| /' conftest.$ac_ext >&5
7484 rm -f conftest.err conftest.$ac_objext \
7485 conftest$ac_exeext conftest.$ac_ext
7486 LIBS=$ac_check_lib_save_LIBS
7488 echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
7489 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6
7490 if test $ac_cv_lib_m_sin = yes; then
7491 cat >>confdefs.h <<_ACEOF
7499 echo "$as_me:$LINENO: checking for mpf_get_str in -lgmp" >&5
7500 echo $ECHO_N "checking for mpf_get_str in -lgmp... $ECHO_C" >&6
7501 if test "${ac_cv_lib_gmp_mpf_get_str+set}" = set; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7504 ac_check_lib_save_LIBS=$LIBS
7506 cat >conftest.$ac_ext <<_ACEOF
7509 cat confdefs.h >>conftest.$ac_ext
7510 cat >>conftest.$ac_ext <<_ACEOF
7511 /* end confdefs.h. */
7513 /* Override any gcc2 internal prototype to avoid an error. */
7517 /* We use char because int might match the return type of a gcc2
7518 builtin and then its argument prototype would still apply. */
7519 char mpf_get_str ();
7528 rm -f conftest.$ac_objext conftest$ac_exeext
7529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7530 (eval $ac_link) 2>conftest.er1
7532 grep -v '^ *+' conftest.er1 >conftest.err
7534 cat conftest.err >&5
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); } &&
7537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); }; } &&
7543 { ac_try='test -s conftest$ac_exeext'
7544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); }; }; then
7549 ac_cv_lib_gmp_mpf_get_str=yes
7551 echo "$as_me: failed program was:" >&5
7552 sed 's/^/| /' conftest.$ac_ext >&5
7554 ac_cv_lib_gmp_mpf_get_str=no
7556 rm -f conftest.err conftest.$ac_objext \
7557 conftest$ac_exeext conftest.$ac_ext
7558 LIBS=$ac_check_lib_save_LIBS
7560 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp_mpf_get_str" >&5
7561 echo "${ECHO_T}$ac_cv_lib_gmp_mpf_get_str" >&6
7562 if test $ac_cv_lib_gmp_mpf_get_str = yes; then
7565 echo "$as_me:$LINENO: checking for __gmpf_get_str in -lgmp" >&5
7566 echo $ECHO_N "checking for __gmpf_get_str in -lgmp... $ECHO_C" >&6
7567 if test "${ac_cv_lib_gmp___gmpf_get_str+set}" = set; then
7568 echo $ECHO_N "(cached) $ECHO_C" >&6
7570 ac_check_lib_save_LIBS=$LIBS
7572 cat >conftest.$ac_ext <<_ACEOF
7575 cat confdefs.h >>conftest.$ac_ext
7576 cat >>conftest.$ac_ext <<_ACEOF
7577 /* end confdefs.h. */
7579 /* Override any gcc2 internal prototype to avoid an error. */
7583 /* We use char because int might match the return type of a gcc2
7584 builtin and then its argument prototype would still apply. */
7585 char __gmpf_get_str ();
7594 rm -f conftest.$ac_objext conftest$ac_exeext
7595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7596 (eval $ac_link) 2>conftest.er1
7598 grep -v '^ *+' conftest.er1 >conftest.err
7600 cat conftest.err >&5
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); } &&
7603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); }; } &&
7609 { ac_try='test -s conftest$ac_exeext'
7610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); }; }; then
7615 ac_cv_lib_gmp___gmpf_get_str=yes
7617 echo "$as_me: failed program was:" >&5
7618 sed 's/^/| /' conftest.$ac_ext >&5
7620 ac_cv_lib_gmp___gmpf_get_str=no
7622 rm -f conftest.err conftest.$ac_objext \
7623 conftest$ac_exeext conftest.$ac_ext
7624 LIBS=$ac_check_lib_save_LIBS
7626 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpf_get_str" >&5
7627 echo "${ECHO_T}$ac_cv_lib_gmp___gmpf_get_str" >&6
7628 if test $ac_cv_lib_gmp___gmpf_get_str = yes; then
7635 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
7636 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
7637 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
7638 echo $ECHO_N "(cached) $ECHO_C" >&6
7640 ac_check_lib_save_LIBS=$LIBS
7641 LIBS="-lncurses $LIBS"
7642 cat >conftest.$ac_ext <<_ACEOF
7645 cat confdefs.h >>conftest.$ac_ext
7646 cat >>conftest.$ac_ext <<_ACEOF
7647 /* end confdefs.h. */
7649 /* Override any gcc2 internal prototype to avoid an error. */
7653 /* We use char because int might match the return type of a gcc2
7654 builtin and then its argument prototype would still apply. */
7664 rm -f conftest.$ac_objext conftest$ac_exeext
7665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7666 (eval $ac_link) 2>conftest.er1
7668 grep -v '^ *+' conftest.er1 >conftest.err
7670 cat conftest.err >&5
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); } &&
7673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678 (exit $ac_status); }; } &&
7679 { ac_try='test -s conftest$ac_exeext'
7680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684 (exit $ac_status); }; }; then
7685 ac_cv_lib_ncurses_tgetent=yes
7687 echo "$as_me: failed program was:" >&5
7688 sed 's/^/| /' conftest.$ac_ext >&5
7690 ac_cv_lib_ncurses_tgetent=no
7692 rm -f conftest.err conftest.$ac_objext \
7693 conftest$ac_exeext conftest.$ac_ext
7694 LIBS=$ac_check_lib_save_LIBS
7696 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
7697 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
7698 if test $ac_cv_lib_ncurses_tgetent = yes; then
7699 LIBS="-lncurses $LIBS" termcap=yes
7701 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
7702 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
7703 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
7704 echo $ECHO_N "(cached) $ECHO_C" >&6
7706 ac_check_lib_save_LIBS=$LIBS
7707 LIBS="-ltermcap $LIBS"
7708 cat >conftest.$ac_ext <<_ACEOF
7711 cat confdefs.h >>conftest.$ac_ext
7712 cat >>conftest.$ac_ext <<_ACEOF
7713 /* end confdefs.h. */
7715 /* Override any gcc2 internal prototype to avoid an error. */
7719 /* We use char because int might match the return type of a gcc2
7720 builtin and then its argument prototype would still apply. */
7730 rm -f conftest.$ac_objext conftest$ac_exeext
7731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7732 (eval $ac_link) 2>conftest.er1
7734 grep -v '^ *+' conftest.er1 >conftest.err
7736 cat conftest.err >&5
7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7738 (exit $ac_status); } &&
7739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); }; } &&
7745 { ac_try='test -s conftest$ac_exeext'
7746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7750 (exit $ac_status); }; }; then
7751 ac_cv_lib_termcap_tgetent=yes
7753 echo "$as_me: failed program was:" >&5
7754 sed 's/^/| /' conftest.$ac_ext >&5
7756 ac_cv_lib_termcap_tgetent=no
7758 rm -f conftest.err conftest.$ac_objext \
7759 conftest$ac_exeext conftest.$ac_ext
7760 LIBS=$ac_check_lib_save_LIBS
7762 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
7763 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
7764 if test $ac_cv_lib_termcap_tgetent = yes; then
7765 LIBS="-ltermcap $LIBS" termcap=yes
7772 if test "$termcap" = yes; then
7774 for ac_header in termcap.h
7776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7778 echo "$as_me:$LINENO: checking for $ac_header" >&5
7779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6
7783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7784 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7786 # Is the header compilable?
7787 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7788 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7789 cat >conftest.$ac_ext <<_ACEOF
7792 cat confdefs.h >>conftest.$ac_ext
7793 cat >>conftest.$ac_ext <<_ACEOF
7794 /* end confdefs.h. */
7795 $ac_includes_default
7796 #include <$ac_header>
7798 rm -f conftest.$ac_objext
7799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7800 (eval $ac_compile) 2>conftest.er1
7802 grep -v '^ *+' conftest.er1 >conftest.err
7804 cat conftest.err >&5
7805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806 (exit $ac_status); } &&
7807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); }; } &&
7813 { ac_try='test -s conftest.$ac_objext'
7814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); }; }; then
7819 ac_header_compiler=yes
7821 echo "$as_me: failed program was:" >&5
7822 sed 's/^/| /' conftest.$ac_ext >&5
7824 ac_header_compiler=no
7826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7827 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7828 echo "${ECHO_T}$ac_header_compiler" >&6
7830 # Is the header present?
7831 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7833 cat >conftest.$ac_ext <<_ACEOF
7836 cat confdefs.h >>conftest.$ac_ext
7837 cat >>conftest.$ac_ext <<_ACEOF
7838 /* end confdefs.h. */
7839 #include <$ac_header>
7841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7842 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7844 grep -v '^ *+' conftest.er1 >conftest.err
7846 cat conftest.err >&5
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); } >/dev/null; then
7849 if test -s conftest.err; then
7850 ac_cpp_err=$ac_c_preproc_warn_flag
7851 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7858 if test -z "$ac_cpp_err"; then
7859 ac_header_preproc=yes
7861 echo "$as_me: failed program was:" >&5
7862 sed 's/^/| /' conftest.$ac_ext >&5
7864 ac_header_preproc=no
7866 rm -f conftest.err conftest.$ac_ext
7867 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7868 echo "${ECHO_T}$ac_header_preproc" >&6
7870 # So? What about this header?
7871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7876 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7877 ac_header_preproc=yes
7880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7883 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7884 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7885 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7886 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7887 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7890 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7891 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7894 ## ------------------------------- ##
7895 ## Report this to the pspp lists. ##
7896 ## ------------------------------- ##
7899 sed "s/^/$as_me: WARNING: /" >&2
7902 echo "$as_me:$LINENO: checking for $ac_header" >&5
7903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7905 echo $ECHO_N "(cached) $ECHO_C" >&6
7907 eval "$as_ac_Header=\$ac_header_preproc"
7909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7914 cat >>confdefs.h <<_ACEOF
7915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7923 cat >>confdefs.h <<\_ACEOF
7924 #define HAVE_LIBTERMCAP 1
7930 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
7931 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
7932 if test "${ac_cv_lib_readline_readline+set}" = set; then
7933 echo $ECHO_N "(cached) $ECHO_C" >&6
7935 ac_check_lib_save_LIBS=$LIBS
7936 LIBS="-lreadline $LIBS"
7937 cat >conftest.$ac_ext <<_ACEOF
7940 cat confdefs.h >>conftest.$ac_ext
7941 cat >>conftest.$ac_ext <<_ACEOF
7942 /* end confdefs.h. */
7944 /* Override any gcc2 internal prototype to avoid an error. */
7948 /* We use char because int might match the return type of a gcc2
7949 builtin and then its argument prototype would still apply. */
7959 rm -f conftest.$ac_objext conftest$ac_exeext
7960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7961 (eval $ac_link) 2>conftest.er1
7963 grep -v '^ *+' conftest.er1 >conftest.err
7965 cat conftest.err >&5
7966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7967 (exit $ac_status); } &&
7968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); }; } &&
7974 { ac_try='test -s conftest$ac_exeext'
7975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); }; }; then
7980 ac_cv_lib_readline_readline=yes
7982 echo "$as_me: failed program was:" >&5
7983 sed 's/^/| /' conftest.$ac_ext >&5
7985 ac_cv_lib_readline_readline=no
7987 rm -f conftest.err conftest.$ac_objext \
7988 conftest$ac_exeext conftest.$ac_ext
7989 LIBS=$ac_check_lib_save_LIBS
7991 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
7992 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
7993 if test $ac_cv_lib_readline_readline = yes; then
7994 cat >>confdefs.h <<_ACEOF
7995 #define HAVE_LIBREADLINE 1
7998 LIBS="-lreadline $LIBS"
8002 if test "$ac_cv_lib_readline_readline" = yes; then
8004 for ac_header in readline/readline.h
8006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8008 echo "$as_me:$LINENO: checking for $ac_header" >&5
8009 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8010 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8011 echo $ECHO_N "(cached) $ECHO_C" >&6
8013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8014 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8016 # Is the header compilable?
8017 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8018 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8019 cat >conftest.$ac_ext <<_ACEOF
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h. */
8025 $ac_includes_default
8026 #include <$ac_header>
8028 rm -f conftest.$ac_objext
8029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8030 (eval $ac_compile) 2>conftest.er1
8032 grep -v '^ *+' conftest.er1 >conftest.err
8034 cat conftest.err >&5
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); } &&
8037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); }; } &&
8043 { ac_try='test -s conftest.$ac_objext'
8044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); }; }; then
8049 ac_header_compiler=yes
8051 echo "$as_me: failed program was:" >&5
8052 sed 's/^/| /' conftest.$ac_ext >&5
8054 ac_header_compiler=no
8056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8057 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8058 echo "${ECHO_T}$ac_header_compiler" >&6
8060 # Is the header present?
8061 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8062 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8063 cat >conftest.$ac_ext <<_ACEOF
8066 cat confdefs.h >>conftest.$ac_ext
8067 cat >>conftest.$ac_ext <<_ACEOF
8068 /* end confdefs.h. */
8069 #include <$ac_header>
8071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8072 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8074 grep -v '^ *+' conftest.er1 >conftest.err
8076 cat conftest.err >&5
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); } >/dev/null; then
8079 if test -s conftest.err; then
8080 ac_cpp_err=$ac_c_preproc_warn_flag
8081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8088 if test -z "$ac_cpp_err"; then
8089 ac_header_preproc=yes
8091 echo "$as_me: failed program was:" >&5
8092 sed 's/^/| /' conftest.$ac_ext >&5
8094 ac_header_preproc=no
8096 rm -f conftest.err conftest.$ac_ext
8097 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8098 echo "${ECHO_T}$ac_header_preproc" >&6
8100 # So? What about this header?
8101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8103 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8104 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8106 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8107 ac_header_preproc=yes
8110 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8111 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8112 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8113 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8114 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8115 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8116 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8117 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8120 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8121 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8124 ## ------------------------------- ##
8125 ## Report this to the pspp lists. ##
8126 ## ------------------------------- ##
8129 sed "s/^/$as_me: WARNING: /" >&2
8132 echo "$as_me:$LINENO: checking for $ac_header" >&5
8133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8134 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8135 echo $ECHO_N "(cached) $ECHO_C" >&6
8137 eval "$as_ac_Header=\$ac_header_preproc"
8139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8140 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8144 cat >>confdefs.h <<_ACEOF
8145 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8152 echo "$as_me:$LINENO: checking for add_history in -lreadline" >&5
8153 echo $ECHO_N "checking for add_history in -lreadline... $ECHO_C" >&6
8154 if test "${ac_cv_lib_readline_add_history+set}" = set; then
8155 echo $ECHO_N "(cached) $ECHO_C" >&6
8157 ac_check_lib_save_LIBS=$LIBS
8158 LIBS="-lreadline $LIBS"
8159 cat >conftest.$ac_ext <<_ACEOF
8162 cat confdefs.h >>conftest.$ac_ext
8163 cat >>conftest.$ac_ext <<_ACEOF
8164 /* end confdefs.h. */
8166 /* Override any gcc2 internal prototype to avoid an error. */
8170 /* We use char because int might match the return type of a gcc2
8171 builtin and then its argument prototype would still apply. */
8172 char add_history ();
8181 rm -f conftest.$ac_objext conftest$ac_exeext
8182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8183 (eval $ac_link) 2>conftest.er1
8185 grep -v '^ *+' conftest.er1 >conftest.err
8187 cat conftest.err >&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); } &&
8190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); }; } &&
8196 { ac_try='test -s conftest$ac_exeext'
8197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); }; }; then
8202 ac_cv_lib_readline_add_history=yes
8204 echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.$ac_ext >&5
8207 ac_cv_lib_readline_add_history=no
8209 rm -f conftest.err conftest.$ac_objext \
8210 conftest$ac_exeext conftest.$ac_ext
8211 LIBS=$ac_check_lib_save_LIBS
8213 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_add_history" >&5
8214 echo "${ECHO_T}$ac_cv_lib_readline_add_history" >&6
8215 if test $ac_cv_lib_readline_add_history = yes; then
8218 echo "$as_me:$LINENO: checking for add_history in -lhistory" >&5
8219 echo $ECHO_N "checking for add_history in -lhistory... $ECHO_C" >&6
8220 if test "${ac_cv_lib_history_add_history+set}" = set; then
8221 echo $ECHO_N "(cached) $ECHO_C" >&6
8223 ac_check_lib_save_LIBS=$LIBS
8224 LIBS="-lhistory $LIBS"
8225 cat >conftest.$ac_ext <<_ACEOF
8228 cat confdefs.h >>conftest.$ac_ext
8229 cat >>conftest.$ac_ext <<_ACEOF
8230 /* end confdefs.h. */
8232 /* Override any gcc2 internal prototype to avoid an error. */
8236 /* We use char because int might match the return type of a gcc2
8237 builtin and then its argument prototype would still apply. */
8238 char add_history ();
8247 rm -f conftest.$ac_objext conftest$ac_exeext
8248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8249 (eval $ac_link) 2>conftest.er1
8251 grep -v '^ *+' conftest.er1 >conftest.err
8253 cat conftest.err >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); } &&
8256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); }; } &&
8262 { ac_try='test -s conftest$ac_exeext'
8263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); }; }; then
8268 ac_cv_lib_history_add_history=yes
8270 echo "$as_me: failed program was:" >&5
8271 sed 's/^/| /' conftest.$ac_ext >&5
8273 ac_cv_lib_history_add_history=no
8275 rm -f conftest.err conftest.$ac_objext \
8276 conftest$ac_exeext conftest.$ac_ext
8277 LIBS=$ac_check_lib_save_LIBS
8279 echo "$as_me:$LINENO: result: $ac_cv_lib_history_add_history" >&5
8280 echo "${ECHO_T}$ac_cv_lib_history_add_history" >&6
8281 if test $ac_cv_lib_history_add_history = yes; then
8282 LIBS="-lhistory" history=yes
8289 if test "$history" = yes; then
8291 for ac_header in readline/history.h
8293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8295 echo "$as_me:$LINENO: checking for $ac_header" >&5
8296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8298 echo $ECHO_N "(cached) $ECHO_C" >&6
8300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8303 # Is the header compilable?
8304 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8305 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8306 cat >conftest.$ac_ext <<_ACEOF
8309 cat confdefs.h >>conftest.$ac_ext
8310 cat >>conftest.$ac_ext <<_ACEOF
8311 /* end confdefs.h. */
8312 $ac_includes_default
8313 #include <$ac_header>
8315 rm -f conftest.$ac_objext
8316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8317 (eval $ac_compile) 2>conftest.er1
8319 grep -v '^ *+' conftest.er1 >conftest.err
8321 cat conftest.err >&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); } &&
8324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); }; } &&
8330 { ac_try='test -s conftest.$ac_objext'
8331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); }; }; then
8336 ac_header_compiler=yes
8338 echo "$as_me: failed program was:" >&5
8339 sed 's/^/| /' conftest.$ac_ext >&5
8341 ac_header_compiler=no
8343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8344 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8345 echo "${ECHO_T}$ac_header_compiler" >&6
8347 # Is the header present?
8348 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8349 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8350 cat >conftest.$ac_ext <<_ACEOF
8353 cat confdefs.h >>conftest.$ac_ext
8354 cat >>conftest.$ac_ext <<_ACEOF
8355 /* end confdefs.h. */
8356 #include <$ac_header>
8358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8361 grep -v '^ *+' conftest.er1 >conftest.err
8363 cat conftest.err >&5
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); } >/dev/null; then
8366 if test -s conftest.err; then
8367 ac_cpp_err=$ac_c_preproc_warn_flag
8368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8375 if test -z "$ac_cpp_err"; then
8376 ac_header_preproc=yes
8378 echo "$as_me: failed program was:" >&5
8379 sed 's/^/| /' conftest.$ac_ext >&5
8381 ac_header_preproc=no
8383 rm -f conftest.err conftest.$ac_ext
8384 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8385 echo "${ECHO_T}$ac_header_preproc" >&6
8387 # So? What about this header?
8388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8390 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8391 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8392 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8393 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8394 ac_header_preproc=yes
8397 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8398 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8399 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8400 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8401 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8402 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8403 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8404 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8407 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8408 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8411 ## ------------------------------- ##
8412 ## Report this to the pspp lists. ##
8413 ## ------------------------------- ##
8416 sed "s/^/$as_me: WARNING: /" >&2
8419 echo "$as_me:$LINENO: checking for $ac_header" >&5
8420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8422 echo $ECHO_N "(cached) $ECHO_C" >&6
8424 eval "$as_ac_Header=\$ac_header_preproc"
8426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8431 cat >>confdefs.h <<_ACEOF
8432 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8440 cat >>confdefs.h <<\_ACEOF
8441 #define HAVE_LIBHISTORY 1
8457 for ac_header in limits.h memory.h sys/stat.h sys/time.h sys/types.h \
8458 fpu_control.h sys/mman.h sys/wait.h ieeefp.h fenv.h
8460 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8461 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8462 echo "$as_me:$LINENO: checking for $ac_header" >&5
8463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8464 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8465 echo $ECHO_N "(cached) $ECHO_C" >&6
8467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8470 # Is the header compilable?
8471 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8472 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8473 cat >conftest.$ac_ext <<_ACEOF
8476 cat confdefs.h >>conftest.$ac_ext
8477 cat >>conftest.$ac_ext <<_ACEOF
8478 /* end confdefs.h. */
8479 $ac_includes_default
8480 #include <$ac_header>
8482 rm -f conftest.$ac_objext
8483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8484 (eval $ac_compile) 2>conftest.er1
8486 grep -v '^ *+' conftest.er1 >conftest.err
8488 cat conftest.err >&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); } &&
8491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); }; } &&
8497 { ac_try='test -s conftest.$ac_objext'
8498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); }; }; then
8503 ac_header_compiler=yes
8505 echo "$as_me: failed program was:" >&5
8506 sed 's/^/| /' conftest.$ac_ext >&5
8508 ac_header_compiler=no
8510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8511 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8512 echo "${ECHO_T}$ac_header_compiler" >&6
8514 # Is the header present?
8515 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8516 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8517 cat >conftest.$ac_ext <<_ACEOF
8520 cat confdefs.h >>conftest.$ac_ext
8521 cat >>conftest.$ac_ext <<_ACEOF
8522 /* end confdefs.h. */
8523 #include <$ac_header>
8525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8526 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
8533 if test -s conftest.err; then
8534 ac_cpp_err=$ac_c_preproc_warn_flag
8535 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8542 if test -z "$ac_cpp_err"; then
8543 ac_header_preproc=yes
8545 echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.$ac_ext >&5
8548 ac_header_preproc=no
8550 rm -f conftest.err conftest.$ac_ext
8551 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8552 echo "${ECHO_T}$ac_header_preproc" >&6
8554 # So? What about this header?
8555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8561 ac_header_preproc=yes
8564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8567 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8568 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8569 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8570 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8571 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8574 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8575 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8578 ## ------------------------------- ##
8579 ## Report this to the pspp lists. ##
8580 ## ------------------------------- ##
8583 sed "s/^/$as_me: WARNING: /" >&2
8586 echo "$as_me:$LINENO: checking for $ac_header" >&5
8587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8588 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
8591 eval "$as_ac_Header=\$ac_header_preproc"
8593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8594 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8598 cat >>confdefs.h <<_ACEOF
8599 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8606 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
8607 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
8608 if test "${ac_cv_header_stat_broken+set}" = set; then
8609 echo $ECHO_N "(cached) $ECHO_C" >&6
8611 cat >conftest.$ac_ext <<_ACEOF
8614 cat confdefs.h >>conftest.$ac_ext
8615 cat >>conftest.$ac_ext <<_ACEOF
8616 /* end confdefs.h. */
8617 #include <sys/types.h>
8618 #include <sys/stat.h>
8620 #if defined(S_ISBLK) && defined(S_IFDIR)
8621 # if S_ISBLK (S_IFDIR)
8626 #if defined(S_ISBLK) && defined(S_IFCHR)
8627 # if S_ISBLK (S_IFCHR)
8632 #if defined(S_ISLNK) && defined(S_IFREG)
8633 # if S_ISLNK (S_IFREG)
8638 #if defined(S_ISSOCK) && defined(S_IFREG)
8639 # if S_ISSOCK (S_IFREG)
8645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8646 $EGREP "You lose" >/dev/null 2>&1; then
8647 ac_cv_header_stat_broken=yes
8649 ac_cv_header_stat_broken=no
8654 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
8655 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
8656 if test $ac_cv_header_stat_broken = yes; then
8658 cat >>confdefs.h <<\_ACEOF
8659 #define STAT_MACROS_BROKEN 1
8664 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8665 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8666 if test "${ac_cv_header_stdc+set}" = set; then
8667 echo $ECHO_N "(cached) $ECHO_C" >&6
8669 cat >conftest.$ac_ext <<_ACEOF
8672 cat confdefs.h >>conftest.$ac_ext
8673 cat >>conftest.$ac_ext <<_ACEOF
8674 /* end confdefs.h. */
8688 rm -f conftest.$ac_objext
8689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8690 (eval $ac_compile) 2>conftest.er1
8692 grep -v '^ *+' conftest.er1 >conftest.err
8694 cat conftest.err >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } &&
8697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702 (exit $ac_status); }; } &&
8703 { ac_try='test -s conftest.$ac_objext'
8704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); }; }; then
8709 ac_cv_header_stdc=yes
8711 echo "$as_me: failed program was:" >&5
8712 sed 's/^/| /' conftest.$ac_ext >&5
8714 ac_cv_header_stdc=no
8716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8718 if test $ac_cv_header_stdc = yes; then
8719 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8720 cat >conftest.$ac_ext <<_ACEOF
8723 cat confdefs.h >>conftest.$ac_ext
8724 cat >>conftest.$ac_ext <<_ACEOF
8725 /* end confdefs.h. */
8729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8730 $EGREP "memchr" >/dev/null 2>&1; then
8733 ac_cv_header_stdc=no
8739 if test $ac_cv_header_stdc = yes; then
8740 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8741 cat >conftest.$ac_ext <<_ACEOF
8744 cat confdefs.h >>conftest.$ac_ext
8745 cat >>conftest.$ac_ext <<_ACEOF
8746 /* end confdefs.h. */
8750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8751 $EGREP "free" >/dev/null 2>&1; then
8754 ac_cv_header_stdc=no
8760 if test $ac_cv_header_stdc = yes; then
8761 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8762 if test "$cross_compiling" = yes; then
8765 cat >conftest.$ac_ext <<_ACEOF
8768 cat confdefs.h >>conftest.$ac_ext
8769 cat >>conftest.$ac_ext <<_ACEOF
8770 /* end confdefs.h. */
8772 #if ((' ' & 0x0FF) == 0x020)
8773 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8774 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8776 # define ISLOWER(c) \
8777 (('a' <= (c) && (c) <= 'i') \
8778 || ('j' <= (c) && (c) <= 'r') \
8779 || ('s' <= (c) && (c) <= 'z'))
8780 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8783 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8788 for (i = 0; i < 256; i++)
8789 if (XOR (islower (i), ISLOWER (i))
8790 || toupper (i) != TOUPPER (i))
8795 rm -f conftest$ac_exeext
8796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8797 (eval $ac_link) 2>&5
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805 (exit $ac_status); }; }; then
8808 echo "$as_me: program exited with status $ac_status" >&5
8809 echo "$as_me: failed program was:" >&5
8810 sed 's/^/| /' conftest.$ac_ext >&5
8813 ac_cv_header_stdc=no
8815 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8819 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8820 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8821 if test $ac_cv_header_stdc = yes; then
8823 cat >>confdefs.h <<\_ACEOF
8824 #define STDC_HEADERS 1
8829 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
8830 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
8831 if test "${ac_cv_header_time+set}" = set; then
8832 echo $ECHO_N "(cached) $ECHO_C" >&6
8834 cat >conftest.$ac_ext <<_ACEOF
8837 cat confdefs.h >>conftest.$ac_ext
8838 cat >>conftest.$ac_ext <<_ACEOF
8839 /* end confdefs.h. */
8840 #include <sys/types.h>
8841 #include <sys/time.h>
8847 if ((struct tm *) 0)
8853 rm -f conftest.$ac_objext
8854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8855 (eval $ac_compile) 2>conftest.er1
8857 grep -v '^ *+' conftest.er1 >conftest.err
8859 cat conftest.err >&5
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); } &&
8862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); }; } &&
8868 { ac_try='test -s conftest.$ac_objext'
8869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 (exit $ac_status); }; }; then
8874 ac_cv_header_time=yes
8876 echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.$ac_ext >&5
8879 ac_cv_header_time=no
8881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8883 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
8884 echo "${ECHO_T}$ac_cv_header_time" >&6
8885 if test $ac_cv_header_time = yes; then
8887 cat >>confdefs.h <<\_ACEOF
8888 #define TIME_WITH_SYS_TIME 1
8894 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8895 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8896 if test "${ac_cv_c_const+set}" = set; then
8897 echo $ECHO_N "(cached) $ECHO_C" >&6
8899 cat >conftest.$ac_ext <<_ACEOF
8902 cat confdefs.h >>conftest.$ac_ext
8903 cat >>conftest.$ac_ext <<_ACEOF
8904 /* end confdefs.h. */
8909 /* FIXME: Include the comments suggested by Paul. */
8911 /* Ultrix mips cc rejects this. */
8912 typedef int charset[2];
8914 /* SunOS 4.1.1 cc rejects this. */
8915 char const *const *ccp;
8917 /* NEC SVR4.0.2 mips cc rejects this. */
8918 struct point {int x, y;};
8919 static struct point const zero = {0,0};
8920 /* AIX XL C 1.02.0.0 rejects this.
8921 It does not let you subtract one const X* pointer from another in
8922 an arm of an if-expression whose if-part is not a constant
8924 const char *g = "string";
8925 ccp = &g + (g ? g-g : 0);
8926 /* HPUX 7.0 cc rejects these. */
8929 ccp = (char const *const *) p;
8930 { /* SCO 3.2v4 cc rejects this. */
8932 char const *s = 0 ? (char *) 0 : (char const *) 0;
8936 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8938 const int *foo = &x[0];
8941 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8942 typedef const int *iptr;
8946 { /* AIX XL C 1.02.0.0 rejects this saying
8947 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8948 struct s { int j; const int *ap[3]; };
8949 struct s *b; b->j = 5;
8951 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8960 rm -f conftest.$ac_objext
8961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8962 (eval $ac_compile) 2>conftest.er1
8964 grep -v '^ *+' conftest.er1 >conftest.err
8966 cat conftest.err >&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 (exit $ac_status); } &&
8969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); }; } &&
8975 { ac_try='test -s conftest.$ac_objext'
8976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); }; }; then
8983 echo "$as_me: failed program was:" >&5
8984 sed 's/^/| /' conftest.$ac_ext >&5
8988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8990 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8991 echo "${ECHO_T}$ac_cv_c_const" >&6
8992 if test $ac_cv_c_const = no; then
8994 cat >>confdefs.h <<\_ACEOF
9000 echo "$as_me:$LINENO: checking for inline" >&5
9001 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9002 if test "${ac_cv_c_inline+set}" = set; then
9003 echo $ECHO_N "(cached) $ECHO_C" >&6
9006 for ac_kw in inline __inline__ __inline; do
9007 cat >conftest.$ac_ext <<_ACEOF
9010 cat confdefs.h >>conftest.$ac_ext
9011 cat >>conftest.$ac_ext <<_ACEOF
9012 /* end confdefs.h. */
9015 static $ac_kw foo_t static_foo () {return 0; }
9016 $ac_kw foo_t foo () {return 0; }
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" || test ! -s conftest.err'
9030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); }; } &&
9035 { ac_try='test -s conftest.$ac_objext'
9036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); }; }; then
9041 ac_cv_c_inline=$ac_kw; break
9043 echo "$as_me: failed program was:" >&5
9044 sed 's/^/| /' conftest.$ac_ext >&5
9047 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9051 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9052 echo "${ECHO_T}$ac_cv_c_inline" >&6
9055 case $ac_cv_c_inline in
9058 case $ac_cv_c_inline in
9060 *) ac_val=$ac_cv_c_inline;;
9062 cat >>confdefs.h <<_ACEOF
9064 #define inline $ac_val
9070 echo "$as_me:$LINENO: checking for size_t" >&5
9071 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9072 if test "${ac_cv_type_size_t+set}" = set; then
9073 echo $ECHO_N "(cached) $ECHO_C" >&6
9075 cat >conftest.$ac_ext <<_ACEOF
9078 cat confdefs.h >>conftest.$ac_ext
9079 cat >>conftest.$ac_ext <<_ACEOF
9080 /* end confdefs.h. */
9081 $ac_includes_default
9087 if (sizeof (size_t))
9093 rm -f conftest.$ac_objext
9094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9095 (eval $ac_compile) 2>conftest.er1
9097 grep -v '^ *+' conftest.er1 >conftest.err
9099 cat conftest.err >&5
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); } &&
9102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); }; } &&
9108 { ac_try='test -s conftest.$ac_objext'
9109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); }; }; then
9114 ac_cv_type_size_t=yes
9116 echo "$as_me: failed program was:" >&5
9117 sed 's/^/| /' conftest.$ac_ext >&5
9119 ac_cv_type_size_t=no
9121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9123 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9124 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9125 if test $ac_cv_type_size_t = yes; then
9129 cat >>confdefs.h <<_ACEOF
9130 #define size_t unsigned
9135 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9136 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9137 if test "${ac_cv_struct_tm+set}" = set; then
9138 echo $ECHO_N "(cached) $ECHO_C" >&6
9140 cat >conftest.$ac_ext <<_ACEOF
9143 cat confdefs.h >>conftest.$ac_ext
9144 cat >>conftest.$ac_ext <<_ACEOF
9145 /* end confdefs.h. */
9146 #include <sys/types.h>
9152 struct tm *tp; tp->tm_sec;
9157 rm -f conftest.$ac_objext
9158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9159 (eval $ac_compile) 2>conftest.er1
9161 grep -v '^ *+' conftest.er1 >conftest.err
9163 cat conftest.err >&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); } &&
9166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); }; } &&
9172 { ac_try='test -s conftest.$ac_objext'
9173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 (exit $ac_status); }; }; then
9178 ac_cv_struct_tm=time.h
9180 echo "$as_me: failed program was:" >&5
9181 sed 's/^/| /' conftest.$ac_ext >&5
9183 ac_cv_struct_tm=sys/time.h
9185 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9187 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9188 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9189 if test $ac_cv_struct_tm = sys/time.h; then
9191 cat >>confdefs.h <<\_ACEOF
9192 #define TM_IN_SYS_TIME 1
9198 echo "$as_me:$LINENO: checking for short" >&5
9199 echo $ECHO_N "checking for short... $ECHO_C" >&6
9200 if test "${ac_cv_type_short+set}" = set; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
9203 cat >conftest.$ac_ext <<_ACEOF
9206 cat confdefs.h >>conftest.$ac_ext
9207 cat >>conftest.$ac_ext <<_ACEOF
9208 /* end confdefs.h. */
9209 $ac_includes_default
9221 rm -f conftest.$ac_objext
9222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9223 (eval $ac_compile) 2>conftest.er1
9225 grep -v '^ *+' conftest.er1 >conftest.err
9227 cat conftest.err >&5
9228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9229 (exit $ac_status); } &&
9230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9235 (exit $ac_status); }; } &&
9236 { ac_try='test -s conftest.$ac_objext'
9237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); }; }; then
9242 ac_cv_type_short=yes
9244 echo "$as_me: failed program was:" >&5
9245 sed 's/^/| /' conftest.$ac_ext >&5
9249 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9251 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
9252 echo "${ECHO_T}$ac_cv_type_short" >&6
9254 echo "$as_me:$LINENO: checking size of short" >&5
9255 echo $ECHO_N "checking size of short... $ECHO_C" >&6
9256 if test "${ac_cv_sizeof_short+set}" = set; then
9257 echo $ECHO_N "(cached) $ECHO_C" >&6
9259 if test "$ac_cv_type_short" = yes; then
9260 # The cast to unsigned long works around a bug in the HP C Compiler
9261 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9262 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9263 # This bug is HP SR number 8606223364.
9264 if test "$cross_compiling" = yes; then
9265 # Depending upon the size, compute the lo and hi bounds.
9266 cat >conftest.$ac_ext <<_ACEOF
9269 cat confdefs.h >>conftest.$ac_ext
9270 cat >>conftest.$ac_ext <<_ACEOF
9271 /* end confdefs.h. */
9272 $ac_includes_default
9276 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
9283 rm -f conftest.$ac_objext
9284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9285 (eval $ac_compile) 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" || test ! -s conftest.err'
9293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); }; } &&
9298 { ac_try='test -s conftest.$ac_objext'
9299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); }; }; then
9306 cat >conftest.$ac_ext <<_ACEOF
9309 cat confdefs.h >>conftest.$ac_ext
9310 cat >>conftest.$ac_ext <<_ACEOF
9311 /* end confdefs.h. */
9312 $ac_includes_default
9316 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
9323 rm -f conftest.$ac_objext
9324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9325 (eval $ac_compile) 2>conftest.er1
9327 grep -v '^ *+' conftest.er1 >conftest.err
9329 cat conftest.err >&5
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); } &&
9332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 (exit $ac_status); }; } &&
9338 { ac_try='test -s conftest.$ac_objext'
9339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343 (exit $ac_status); }; }; then
9344 ac_hi=$ac_mid; break
9346 echo "$as_me: failed program was:" >&5
9347 sed 's/^/| /' conftest.$ac_ext >&5
9349 ac_lo=`expr $ac_mid + 1`
9350 if test $ac_lo -le $ac_mid; then
9354 ac_mid=`expr 2 '*' $ac_mid + 1`
9356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9359 echo "$as_me: failed program was:" >&5
9360 sed 's/^/| /' conftest.$ac_ext >&5
9362 cat >conftest.$ac_ext <<_ACEOF
9365 cat confdefs.h >>conftest.$ac_ext
9366 cat >>conftest.$ac_ext <<_ACEOF
9367 /* end confdefs.h. */
9368 $ac_includes_default
9372 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
9379 rm -f conftest.$ac_objext
9380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9381 (eval $ac_compile) 2>conftest.er1
9383 grep -v '^ *+' conftest.er1 >conftest.err
9385 cat conftest.err >&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); } &&
9388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; } &&
9394 { ac_try='test -s conftest.$ac_objext'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; }; then
9402 cat >conftest.$ac_ext <<_ACEOF
9405 cat confdefs.h >>conftest.$ac_ext
9406 cat >>conftest.$ac_ext <<_ACEOF
9407 /* end confdefs.h. */
9408 $ac_includes_default
9412 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
9419 rm -f conftest.$ac_objext
9420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9421 (eval $ac_compile) 2>conftest.er1
9423 grep -v '^ *+' conftest.er1 >conftest.err
9425 cat conftest.err >&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); } &&
9428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); }; } &&
9434 { ac_try='test -s conftest.$ac_objext'
9435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9439 (exit $ac_status); }; }; then
9440 ac_lo=$ac_mid; break
9442 echo "$as_me: failed program was:" >&5
9443 sed 's/^/| /' conftest.$ac_ext >&5
9445 ac_hi=`expr '(' $ac_mid ')' - 1`
9446 if test $ac_mid -le $ac_hi; then
9450 ac_mid=`expr 2 '*' $ac_mid`
9452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9455 echo "$as_me: failed program was:" >&5
9456 sed 's/^/| /' conftest.$ac_ext >&5
9460 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9463 # Binary search between lo and hi bounds.
9464 while test "x$ac_lo" != "x$ac_hi"; do
9465 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9466 cat >conftest.$ac_ext <<_ACEOF
9469 cat confdefs.h >>conftest.$ac_ext
9470 cat >>conftest.$ac_ext <<_ACEOF
9471 /* end confdefs.h. */
9472 $ac_includes_default
9476 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
9483 rm -f conftest.$ac_objext
9484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9485 (eval $ac_compile) 2>conftest.er1
9487 grep -v '^ *+' conftest.er1 >conftest.err
9489 cat conftest.err >&5
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); } &&
9492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); }; } &&
9498 { ac_try='test -s conftest.$ac_objext'
9499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); }; }; then
9506 echo "$as_me: failed program was:" >&5
9507 sed 's/^/| /' conftest.$ac_ext >&5
9509 ac_lo=`expr '(' $ac_mid ')' + 1`
9511 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9514 ?*) ac_cv_sizeof_short=$ac_lo;;
9515 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
9516 See \`config.log' for more details." >&5
9517 echo "$as_me: error: cannot compute sizeof (short), 77
9518 See \`config.log' for more details." >&2;}
9519 { (exit 1); exit 1; }; } ;;
9522 if test "$cross_compiling" = yes; then
9523 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9524 See \`config.log' for more details." >&5
9525 echo "$as_me: error: cannot run test program while cross compiling
9526 See \`config.log' for more details." >&2;}
9527 { (exit 1); exit 1; }; }
9529 cat >conftest.$ac_ext <<_ACEOF
9532 cat confdefs.h >>conftest.$ac_ext
9533 cat >>conftest.$ac_ext <<_ACEOF
9534 /* end confdefs.h. */
9535 $ac_includes_default
9536 long longval () { return (long) (sizeof (short)); }
9537 unsigned long ulongval () { return (long) (sizeof (short)); }
9544 FILE *f = fopen ("conftest.val", "w");
9547 if (((long) (sizeof (short))) < 0)
9549 long i = longval ();
9550 if (i != ((long) (sizeof (short))))
9552 fprintf (f, "%ld\n", i);
9556 unsigned long i = ulongval ();
9557 if (i != ((long) (sizeof (short))))
9559 fprintf (f, "%lu\n", i);
9561 exit (ferror (f) || fclose (f) != 0);
9567 rm -f conftest$ac_exeext
9568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9569 (eval $ac_link) 2>&5
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); } && { ac_try='./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 ac_cv_sizeof_short=`cat conftest.val`
9580 echo "$as_me: program exited with status $ac_status" >&5
9581 echo "$as_me: failed program was:" >&5
9582 sed 's/^/| /' conftest.$ac_ext >&5
9585 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
9586 See \`config.log' for more details." >&5
9587 echo "$as_me: error: cannot compute sizeof (short), 77
9588 See \`config.log' for more details." >&2;}
9589 { (exit 1); exit 1; }; }
9591 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9596 ac_cv_sizeof_short=0
9599 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
9600 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
9601 cat >>confdefs.h <<_ACEOF
9602 #define SIZEOF_SHORT $ac_cv_sizeof_short
9606 echo "$as_me:$LINENO: checking for int" >&5
9607 echo $ECHO_N "checking for int... $ECHO_C" >&6
9608 if test "${ac_cv_type_int+set}" = set; then
9609 echo $ECHO_N "(cached) $ECHO_C" >&6
9611 cat >conftest.$ac_ext <<_ACEOF
9614 cat confdefs.h >>conftest.$ac_ext
9615 cat >>conftest.$ac_ext <<_ACEOF
9616 /* end confdefs.h. */
9617 $ac_includes_default
9629 rm -f conftest.$ac_objext
9630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9631 (eval $ac_compile) 2>conftest.er1
9633 grep -v '^ *+' conftest.er1 >conftest.err
9635 cat conftest.err >&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); } &&
9638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); }; } &&
9644 { ac_try='test -s conftest.$ac_objext'
9645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); }; }; then
9652 echo "$as_me: failed program was:" >&5
9653 sed 's/^/| /' conftest.$ac_ext >&5
9657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9659 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
9660 echo "${ECHO_T}$ac_cv_type_int" >&6
9662 echo "$as_me:$LINENO: checking size of int" >&5
9663 echo $ECHO_N "checking size of int... $ECHO_C" >&6
9664 if test "${ac_cv_sizeof_int+set}" = set; then
9665 echo $ECHO_N "(cached) $ECHO_C" >&6
9667 if test "$ac_cv_type_int" = yes; then
9668 # The cast to unsigned long works around a bug in the HP C Compiler
9669 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9670 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9671 # This bug is HP SR number 8606223364.
9672 if test "$cross_compiling" = yes; then
9673 # Depending upon the size, compute the lo and hi bounds.
9674 cat >conftest.$ac_ext <<_ACEOF
9677 cat confdefs.h >>conftest.$ac_ext
9678 cat >>conftest.$ac_ext <<_ACEOF
9679 /* end confdefs.h. */
9680 $ac_includes_default
9684 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
9691 rm -f conftest.$ac_objext
9692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9693 (eval $ac_compile) 2>conftest.er1
9695 grep -v '^ *+' conftest.er1 >conftest.err
9697 cat conftest.err >&5
9698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699 (exit $ac_status); } &&
9700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); }; } &&
9706 { ac_try='test -s conftest.$ac_objext'
9707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); }; }; then
9714 cat >conftest.$ac_ext <<_ACEOF
9717 cat confdefs.h >>conftest.$ac_ext
9718 cat >>conftest.$ac_ext <<_ACEOF
9719 /* end confdefs.h. */
9720 $ac_includes_default
9724 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
9731 rm -f conftest.$ac_objext
9732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9733 (eval $ac_compile) 2>conftest.er1
9735 grep -v '^ *+' conftest.er1 >conftest.err
9737 cat conftest.err >&5
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); } &&
9740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); }; } &&
9746 { ac_try='test -s conftest.$ac_objext'
9747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); }; }; then
9752 ac_hi=$ac_mid; break
9754 echo "$as_me: failed program was:" >&5
9755 sed 's/^/| /' conftest.$ac_ext >&5
9757 ac_lo=`expr $ac_mid + 1`
9758 if test $ac_lo -le $ac_mid; then
9762 ac_mid=`expr 2 '*' $ac_mid + 1`
9764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9767 echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9770 cat >conftest.$ac_ext <<_ACEOF
9773 cat confdefs.h >>conftest.$ac_ext
9774 cat >>conftest.$ac_ext <<_ACEOF
9775 /* end confdefs.h. */
9776 $ac_includes_default
9780 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
9787 rm -f conftest.$ac_objext
9788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9789 (eval $ac_compile) 2>conftest.er1
9791 grep -v '^ *+' conftest.er1 >conftest.err
9793 cat conftest.err >&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } &&
9796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); }; } &&
9802 { ac_try='test -s conftest.$ac_objext'
9803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9807 (exit $ac_status); }; }; then
9810 cat >conftest.$ac_ext <<_ACEOF
9813 cat confdefs.h >>conftest.$ac_ext
9814 cat >>conftest.$ac_ext <<_ACEOF
9815 /* end confdefs.h. */
9816 $ac_includes_default
9820 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
9827 rm -f conftest.$ac_objext
9828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9829 (eval $ac_compile) 2>conftest.er1
9831 grep -v '^ *+' conftest.er1 >conftest.err
9833 cat conftest.err >&5
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); } &&
9836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9841 (exit $ac_status); }; } &&
9842 { ac_try='test -s conftest.$ac_objext'
9843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9847 (exit $ac_status); }; }; then
9848 ac_lo=$ac_mid; break
9850 echo "$as_me: failed program was:" >&5
9851 sed 's/^/| /' conftest.$ac_ext >&5
9853 ac_hi=`expr '(' $ac_mid ')' - 1`
9854 if test $ac_mid -le $ac_hi; then
9858 ac_mid=`expr 2 '*' $ac_mid`
9860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9863 echo "$as_me: failed program was:" >&5
9864 sed 's/^/| /' conftest.$ac_ext >&5
9868 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9871 # Binary search between lo and hi bounds.
9872 while test "x$ac_lo" != "x$ac_hi"; do
9873 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9874 cat >conftest.$ac_ext <<_ACEOF
9877 cat confdefs.h >>conftest.$ac_ext
9878 cat >>conftest.$ac_ext <<_ACEOF
9879 /* end confdefs.h. */
9880 $ac_includes_default
9884 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
9891 rm -f conftest.$ac_objext
9892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9893 (eval $ac_compile) 2>conftest.er1
9895 grep -v '^ *+' conftest.er1 >conftest.err
9897 cat conftest.err >&5
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); } &&
9900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; } &&
9906 { ac_try='test -s conftest.$ac_objext'
9907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; }; then
9914 echo "$as_me: failed program was:" >&5
9915 sed 's/^/| /' conftest.$ac_ext >&5
9917 ac_lo=`expr '(' $ac_mid ')' + 1`
9919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9922 ?*) ac_cv_sizeof_int=$ac_lo;;
9923 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
9924 See \`config.log' for more details." >&5
9925 echo "$as_me: error: cannot compute sizeof (int), 77
9926 See \`config.log' for more details." >&2;}
9927 { (exit 1); exit 1; }; } ;;
9930 if test "$cross_compiling" = yes; then
9931 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9932 See \`config.log' for more details." >&5
9933 echo "$as_me: error: cannot run test program while cross compiling
9934 See \`config.log' for more details." >&2;}
9935 { (exit 1); exit 1; }; }
9937 cat >conftest.$ac_ext <<_ACEOF
9940 cat confdefs.h >>conftest.$ac_ext
9941 cat >>conftest.$ac_ext <<_ACEOF
9942 /* end confdefs.h. */
9943 $ac_includes_default
9944 long longval () { return (long) (sizeof (int)); }
9945 unsigned long ulongval () { return (long) (sizeof (int)); }
9952 FILE *f = fopen ("conftest.val", "w");
9955 if (((long) (sizeof (int))) < 0)
9957 long i = longval ();
9958 if (i != ((long) (sizeof (int))))
9960 fprintf (f, "%ld\n", i);
9964 unsigned long i = ulongval ();
9965 if (i != ((long) (sizeof (int))))
9967 fprintf (f, "%lu\n", i);
9969 exit (ferror (f) || fclose (f) != 0);
9975 rm -f conftest$ac_exeext
9976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9977 (eval $ac_link) 2>&5
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9985 (exit $ac_status); }; }; then
9986 ac_cv_sizeof_int=`cat conftest.val`
9988 echo "$as_me: program exited with status $ac_status" >&5
9989 echo "$as_me: failed program was:" >&5
9990 sed 's/^/| /' conftest.$ac_ext >&5
9993 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
9994 See \`config.log' for more details." >&5
9995 echo "$as_me: error: cannot compute sizeof (int), 77
9996 See \`config.log' for more details." >&2;}
9997 { (exit 1); exit 1; }; }
9999 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10007 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
10008 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
10009 cat >>confdefs.h <<_ACEOF
10010 #define SIZEOF_INT $ac_cv_sizeof_int
10014 echo "$as_me:$LINENO: checking for long" >&5
10015 echo $ECHO_N "checking for long... $ECHO_C" >&6
10016 if test "${ac_cv_type_long+set}" = set; then
10017 echo $ECHO_N "(cached) $ECHO_C" >&6
10019 cat >conftest.$ac_ext <<_ACEOF
10022 cat confdefs.h >>conftest.$ac_ext
10023 cat >>conftest.$ac_ext <<_ACEOF
10024 /* end confdefs.h. */
10025 $ac_includes_default
10037 rm -f conftest.$ac_objext
10038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10039 (eval $ac_compile) 2>conftest.er1
10041 grep -v '^ *+' conftest.er1 >conftest.err
10043 cat conftest.err >&5
10044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045 (exit $ac_status); } &&
10046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10048 (eval $ac_try) 2>&5
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); }; } &&
10052 { ac_try='test -s conftest.$ac_objext'
10053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10054 (eval $ac_try) 2>&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); }; }; then
10058 ac_cv_type_long=yes
10060 echo "$as_me: failed program was:" >&5
10061 sed 's/^/| /' conftest.$ac_ext >&5
10065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10067 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
10068 echo "${ECHO_T}$ac_cv_type_long" >&6
10070 echo "$as_me:$LINENO: checking size of long" >&5
10071 echo $ECHO_N "checking size of long... $ECHO_C" >&6
10072 if test "${ac_cv_sizeof_long+set}" = set; then
10073 echo $ECHO_N "(cached) $ECHO_C" >&6
10075 if test "$ac_cv_type_long" = yes; then
10076 # The cast to unsigned long works around a bug in the HP C Compiler
10077 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10078 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10079 # This bug is HP SR number 8606223364.
10080 if test "$cross_compiling" = yes; then
10081 # Depending upon the size, compute the lo and hi bounds.
10082 cat >conftest.$ac_ext <<_ACEOF
10085 cat confdefs.h >>conftest.$ac_ext
10086 cat >>conftest.$ac_ext <<_ACEOF
10087 /* end confdefs.h. */
10088 $ac_includes_default
10092 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
10099 rm -f conftest.$ac_objext
10100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10101 (eval $ac_compile) 2>conftest.er1
10103 grep -v '^ *+' conftest.er1 >conftest.err
10105 cat conftest.err >&5
10106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10107 (exit $ac_status); } &&
10108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10110 (eval $ac_try) 2>&5
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); }; } &&
10114 { ac_try='test -s conftest.$ac_objext'
10115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10116 (eval $ac_try) 2>&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); }; }; then
10122 cat >conftest.$ac_ext <<_ACEOF
10125 cat confdefs.h >>conftest.$ac_ext
10126 cat >>conftest.$ac_ext <<_ACEOF
10127 /* end confdefs.h. */
10128 $ac_includes_default
10132 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
10139 rm -f conftest.$ac_objext
10140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10141 (eval $ac_compile) 2>conftest.er1
10143 grep -v '^ *+' conftest.er1 >conftest.err
10145 cat conftest.err >&5
10146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10147 (exit $ac_status); } &&
10148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10150 (eval $ac_try) 2>&5
10152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10153 (exit $ac_status); }; } &&
10154 { ac_try='test -s conftest.$ac_objext'
10155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10156 (eval $ac_try) 2>&5
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); }; }; then
10160 ac_hi=$ac_mid; break
10162 echo "$as_me: failed program was:" >&5
10163 sed 's/^/| /' conftest.$ac_ext >&5
10165 ac_lo=`expr $ac_mid + 1`
10166 if test $ac_lo -le $ac_mid; then
10170 ac_mid=`expr 2 '*' $ac_mid + 1`
10172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10175 echo "$as_me: failed program was:" >&5
10176 sed 's/^/| /' conftest.$ac_ext >&5
10178 cat >conftest.$ac_ext <<_ACEOF
10181 cat confdefs.h >>conftest.$ac_ext
10182 cat >>conftest.$ac_ext <<_ACEOF
10183 /* end confdefs.h. */
10184 $ac_includes_default
10188 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
10195 rm -f conftest.$ac_objext
10196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10197 (eval $ac_compile) 2>conftest.er1
10199 grep -v '^ *+' conftest.er1 >conftest.err
10201 cat conftest.err >&5
10202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10203 (exit $ac_status); } &&
10204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10206 (eval $ac_try) 2>&5
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); }; } &&
10210 { ac_try='test -s conftest.$ac_objext'
10211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10212 (eval $ac_try) 2>&5
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); }; }; then
10218 cat >conftest.$ac_ext <<_ACEOF
10221 cat confdefs.h >>conftest.$ac_ext
10222 cat >>conftest.$ac_ext <<_ACEOF
10223 /* end confdefs.h. */
10224 $ac_includes_default
10228 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
10235 rm -f conftest.$ac_objext
10236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10237 (eval $ac_compile) 2>conftest.er1
10239 grep -v '^ *+' conftest.er1 >conftest.err
10241 cat conftest.err >&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); } &&
10244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10246 (eval $ac_try) 2>&5
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); }; } &&
10250 { ac_try='test -s conftest.$ac_objext'
10251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10252 (eval $ac_try) 2>&5
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); }; }; then
10256 ac_lo=$ac_mid; break
10258 echo "$as_me: failed program was:" >&5
10259 sed 's/^/| /' conftest.$ac_ext >&5
10261 ac_hi=`expr '(' $ac_mid ')' - 1`
10262 if test $ac_mid -le $ac_hi; then
10266 ac_mid=`expr 2 '*' $ac_mid`
10268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10271 echo "$as_me: failed program was:" >&5
10272 sed 's/^/| /' conftest.$ac_ext >&5
10276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10279 # Binary search between lo and hi bounds.
10280 while test "x$ac_lo" != "x$ac_hi"; do
10281 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10282 cat >conftest.$ac_ext <<_ACEOF
10285 cat confdefs.h >>conftest.$ac_ext
10286 cat >>conftest.$ac_ext <<_ACEOF
10287 /* end confdefs.h. */
10288 $ac_includes_default
10292 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
10299 rm -f conftest.$ac_objext
10300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10301 (eval $ac_compile) 2>conftest.er1
10303 grep -v '^ *+' conftest.er1 >conftest.err
10305 cat conftest.err >&5
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); } &&
10308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310 (eval $ac_try) 2>&5
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); }; } &&
10314 { ac_try='test -s conftest.$ac_objext'
10315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10316 (eval $ac_try) 2>&5
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); }; }; then
10322 echo "$as_me: failed program was:" >&5
10323 sed 's/^/| /' conftest.$ac_ext >&5
10325 ac_lo=`expr '(' $ac_mid ')' + 1`
10327 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10330 ?*) ac_cv_sizeof_long=$ac_lo;;
10331 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
10332 See \`config.log' for more details." >&5
10333 echo "$as_me: error: cannot compute sizeof (long), 77
10334 See \`config.log' for more details." >&2;}
10335 { (exit 1); exit 1; }; } ;;
10338 if test "$cross_compiling" = yes; then
10339 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10340 See \`config.log' for more details." >&5
10341 echo "$as_me: error: cannot run test program while cross compiling
10342 See \`config.log' for more details." >&2;}
10343 { (exit 1); exit 1; }; }
10345 cat >conftest.$ac_ext <<_ACEOF
10348 cat confdefs.h >>conftest.$ac_ext
10349 cat >>conftest.$ac_ext <<_ACEOF
10350 /* end confdefs.h. */
10351 $ac_includes_default
10352 long longval () { return (long) (sizeof (long)); }
10353 unsigned long ulongval () { return (long) (sizeof (long)); }
10355 #include <stdlib.h>
10360 FILE *f = fopen ("conftest.val", "w");
10363 if (((long) (sizeof (long))) < 0)
10365 long i = longval ();
10366 if (i != ((long) (sizeof (long))))
10368 fprintf (f, "%ld\n", i);
10372 unsigned long i = ulongval ();
10373 if (i != ((long) (sizeof (long))))
10375 fprintf (f, "%lu\n", i);
10377 exit (ferror (f) || fclose (f) != 0);
10383 rm -f conftest$ac_exeext
10384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10385 (eval $ac_link) 2>&5
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10390 (eval $ac_try) 2>&5
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); }; }; then
10394 ac_cv_sizeof_long=`cat conftest.val`
10396 echo "$as_me: program exited with status $ac_status" >&5
10397 echo "$as_me: failed program was:" >&5
10398 sed 's/^/| /' conftest.$ac_ext >&5
10400 ( exit $ac_status )
10401 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
10402 See \`config.log' for more details." >&5
10403 echo "$as_me: error: cannot compute sizeof (long), 77
10404 See \`config.log' for more details." >&2;}
10405 { (exit 1); exit 1; }; }
10407 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10412 ac_cv_sizeof_long=0
10415 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
10416 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
10417 cat >>confdefs.h <<_ACEOF
10418 #define SIZEOF_LONG $ac_cv_sizeof_long
10422 echo "$as_me:$LINENO: checking for long long" >&5
10423 echo $ECHO_N "checking for long long... $ECHO_C" >&6
10424 if test "${ac_cv_type_long_long+set}" = set; then
10425 echo $ECHO_N "(cached) $ECHO_C" >&6
10427 cat >conftest.$ac_ext <<_ACEOF
10430 cat confdefs.h >>conftest.$ac_ext
10431 cat >>conftest.$ac_ext <<_ACEOF
10432 /* end confdefs.h. */
10433 $ac_includes_default
10437 if ((long long *) 0)
10439 if (sizeof (long long))
10445 rm -f conftest.$ac_objext
10446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10447 (eval $ac_compile) 2>conftest.er1
10449 grep -v '^ *+' conftest.er1 >conftest.err
10451 cat conftest.err >&5
10452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10453 (exit $ac_status); } &&
10454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10456 (eval $ac_try) 2>&5
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); }; } &&
10460 { ac_try='test -s conftest.$ac_objext'
10461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10462 (eval $ac_try) 2>&5
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); }; }; then
10466 ac_cv_type_long_long=yes
10468 echo "$as_me: failed program was:" >&5
10469 sed 's/^/| /' conftest.$ac_ext >&5
10471 ac_cv_type_long_long=no
10473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10475 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
10476 echo "${ECHO_T}$ac_cv_type_long_long" >&6
10478 echo "$as_me:$LINENO: checking size of long long" >&5
10479 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
10480 if test "${ac_cv_sizeof_long_long+set}" = set; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
10483 if test "$ac_cv_type_long_long" = yes; then
10484 # The cast to unsigned long works around a bug in the HP C Compiler
10485 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10486 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10487 # This bug is HP SR number 8606223364.
10488 if test "$cross_compiling" = yes; then
10489 # Depending upon the size, compute the lo and hi bounds.
10490 cat >conftest.$ac_ext <<_ACEOF
10493 cat confdefs.h >>conftest.$ac_ext
10494 cat >>conftest.$ac_ext <<_ACEOF
10495 /* end confdefs.h. */
10496 $ac_includes_default
10500 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
10507 rm -f conftest.$ac_objext
10508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10509 (eval $ac_compile) 2>conftest.er1
10511 grep -v '^ *+' conftest.er1 >conftest.err
10513 cat conftest.err >&5
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); } &&
10516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10518 (eval $ac_try) 2>&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); }; } &&
10522 { ac_try='test -s conftest.$ac_objext'
10523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10524 (eval $ac_try) 2>&5
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); }; }; then
10530 cat >conftest.$ac_ext <<_ACEOF
10533 cat confdefs.h >>conftest.$ac_ext
10534 cat >>conftest.$ac_ext <<_ACEOF
10535 /* end confdefs.h. */
10536 $ac_includes_default
10540 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
10547 rm -f conftest.$ac_objext
10548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10549 (eval $ac_compile) 2>conftest.er1
10551 grep -v '^ *+' conftest.er1 >conftest.err
10553 cat conftest.err >&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); } &&
10556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10558 (eval $ac_try) 2>&5
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); }; } &&
10562 { ac_try='test -s conftest.$ac_objext'
10563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10564 (eval $ac_try) 2>&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); }; }; then
10568 ac_hi=$ac_mid; break
10570 echo "$as_me: failed program was:" >&5
10571 sed 's/^/| /' conftest.$ac_ext >&5
10573 ac_lo=`expr $ac_mid + 1`
10574 if test $ac_lo -le $ac_mid; then
10578 ac_mid=`expr 2 '*' $ac_mid + 1`
10580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10583 echo "$as_me: failed program was:" >&5
10584 sed 's/^/| /' conftest.$ac_ext >&5
10586 cat >conftest.$ac_ext <<_ACEOF
10589 cat confdefs.h >>conftest.$ac_ext
10590 cat >>conftest.$ac_ext <<_ACEOF
10591 /* end confdefs.h. */
10592 $ac_includes_default
10596 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
10603 rm -f conftest.$ac_objext
10604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10605 (eval $ac_compile) 2>conftest.er1
10607 grep -v '^ *+' conftest.er1 >conftest.err
10609 cat conftest.err >&5
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); } &&
10612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10614 (eval $ac_try) 2>&5
10616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10617 (exit $ac_status); }; } &&
10618 { ac_try='test -s conftest.$ac_objext'
10619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10620 (eval $ac_try) 2>&5
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); }; }; then
10626 cat >conftest.$ac_ext <<_ACEOF
10629 cat confdefs.h >>conftest.$ac_ext
10630 cat >>conftest.$ac_ext <<_ACEOF
10631 /* end confdefs.h. */
10632 $ac_includes_default
10636 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
10643 rm -f conftest.$ac_objext
10644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10645 (eval $ac_compile) 2>conftest.er1
10647 grep -v '^ *+' conftest.er1 >conftest.err
10649 cat conftest.err >&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); } &&
10652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10654 (eval $ac_try) 2>&5
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); }; } &&
10658 { ac_try='test -s conftest.$ac_objext'
10659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10660 (eval $ac_try) 2>&5
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); }; }; then
10664 ac_lo=$ac_mid; break
10666 echo "$as_me: failed program was:" >&5
10667 sed 's/^/| /' conftest.$ac_ext >&5
10669 ac_hi=`expr '(' $ac_mid ')' - 1`
10670 if test $ac_mid -le $ac_hi; then
10674 ac_mid=`expr 2 '*' $ac_mid`
10676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10679 echo "$as_me: failed program was:" >&5
10680 sed 's/^/| /' conftest.$ac_ext >&5
10684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10687 # Binary search between lo and hi bounds.
10688 while test "x$ac_lo" != "x$ac_hi"; do
10689 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10690 cat >conftest.$ac_ext <<_ACEOF
10693 cat confdefs.h >>conftest.$ac_ext
10694 cat >>conftest.$ac_ext <<_ACEOF
10695 /* end confdefs.h. */
10696 $ac_includes_default
10700 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
10707 rm -f conftest.$ac_objext
10708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10709 (eval $ac_compile) 2>conftest.er1
10711 grep -v '^ *+' conftest.er1 >conftest.err
10713 cat conftest.err >&5
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); } &&
10716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10718 (eval $ac_try) 2>&5
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); }; } &&
10722 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
10730 echo "$as_me: failed program was:" >&5
10731 sed 's/^/| /' conftest.$ac_ext >&5
10733 ac_lo=`expr '(' $ac_mid ')' + 1`
10735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10738 ?*) ac_cv_sizeof_long_long=$ac_lo;;
10739 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10740 See \`config.log' for more details." >&5
10741 echo "$as_me: error: cannot compute sizeof (long long), 77
10742 See \`config.log' for more details." >&2;}
10743 { (exit 1); exit 1; }; } ;;
10746 if test "$cross_compiling" = yes; then
10747 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
10748 See \`config.log' for more details." >&5
10749 echo "$as_me: error: cannot run test program while cross compiling
10750 See \`config.log' for more details." >&2;}
10751 { (exit 1); exit 1; }; }
10753 cat >conftest.$ac_ext <<_ACEOF
10756 cat confdefs.h >>conftest.$ac_ext
10757 cat >>conftest.$ac_ext <<_ACEOF
10758 /* end confdefs.h. */
10759 $ac_includes_default
10760 long longval () { return (long) (sizeof (long long)); }
10761 unsigned long ulongval () { return (long) (sizeof (long long)); }
10763 #include <stdlib.h>
10768 FILE *f = fopen ("conftest.val", "w");
10771 if (((long) (sizeof (long long))) < 0)
10773 long i = longval ();
10774 if (i != ((long) (sizeof (long long))))
10776 fprintf (f, "%ld\n", i);
10780 unsigned long i = ulongval ();
10781 if (i != ((long) (sizeof (long long))))
10783 fprintf (f, "%lu\n", i);
10785 exit (ferror (f) || fclose (f) != 0);
10791 rm -f conftest$ac_exeext
10792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10793 (eval $ac_link) 2>&5
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10798 (eval $ac_try) 2>&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); }; }; then
10802 ac_cv_sizeof_long_long=`cat conftest.val`
10804 echo "$as_me: program exited with status $ac_status" >&5
10805 echo "$as_me: failed program was:" >&5
10806 sed 's/^/| /' conftest.$ac_ext >&5
10808 ( exit $ac_status )
10809 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
10810 See \`config.log' for more details." >&5
10811 echo "$as_me: error: cannot compute sizeof (long long), 77
10812 See \`config.log' for more details." >&2;}
10813 { (exit 1); exit 1; }; }
10815 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10820 ac_cv_sizeof_long_long=0
10823 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
10824 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
10825 cat >>confdefs.h <<_ACEOF
10826 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10830 echo "$as_me:$LINENO: checking for float" >&5
10831 echo $ECHO_N "checking for float... $ECHO_C" >&6
10832 if test "${ac_cv_type_float+set}" = set; then
10833 echo $ECHO_N "(cached) $ECHO_C" >&6
10835 cat >conftest.$ac_ext <<_ACEOF
10838 cat confdefs.h >>conftest.$ac_ext
10839 cat >>conftest.$ac_ext <<_ACEOF
10840 /* end confdefs.h. */
10841 $ac_includes_default
10847 if (sizeof (float))
10853 rm -f conftest.$ac_objext
10854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10855 (eval $ac_compile) 2>conftest.er1
10857 grep -v '^ *+' conftest.er1 >conftest.err
10859 cat conftest.err >&5
10860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10861 (exit $ac_status); } &&
10862 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10864 (eval $ac_try) 2>&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); }; } &&
10868 { ac_try='test -s conftest.$ac_objext'
10869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10870 (eval $ac_try) 2>&5
10872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); }; }; then
10874 ac_cv_type_float=yes
10876 echo "$as_me: failed program was:" >&5
10877 sed 's/^/| /' conftest.$ac_ext >&5
10879 ac_cv_type_float=no
10881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10883 echo "$as_me:$LINENO: result: $ac_cv_type_float" >&5
10884 echo "${ECHO_T}$ac_cv_type_float" >&6
10886 echo "$as_me:$LINENO: checking size of float" >&5
10887 echo $ECHO_N "checking size of float... $ECHO_C" >&6
10888 if test "${ac_cv_sizeof_float+set}" = set; then
10889 echo $ECHO_N "(cached) $ECHO_C" >&6
10891 if test "$ac_cv_type_float" = yes; then
10892 # The cast to unsigned long works around a bug in the HP C Compiler
10893 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10894 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10895 # This bug is HP SR number 8606223364.
10896 if test "$cross_compiling" = yes; then
10897 # Depending upon the size, compute the lo and hi bounds.
10898 cat >conftest.$ac_ext <<_ACEOF
10901 cat confdefs.h >>conftest.$ac_ext
10902 cat >>conftest.$ac_ext <<_ACEOF
10903 /* end confdefs.h. */
10904 $ac_includes_default
10908 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= 0)];
10915 rm -f conftest.$ac_objext
10916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10917 (eval $ac_compile) 2>conftest.er1
10919 grep -v '^ *+' conftest.er1 >conftest.err
10921 cat conftest.err >&5
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); } &&
10924 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10926 (eval $ac_try) 2>&5
10928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929 (exit $ac_status); }; } &&
10930 { ac_try='test -s conftest.$ac_objext'
10931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10932 (eval $ac_try) 2>&5
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); }; }; then
10938 cat >conftest.$ac_ext <<_ACEOF
10941 cat confdefs.h >>conftest.$ac_ext
10942 cat >>conftest.$ac_ext <<_ACEOF
10943 /* end confdefs.h. */
10944 $ac_includes_default
10948 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
10955 rm -f conftest.$ac_objext
10956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10957 (eval $ac_compile) 2>conftest.er1
10959 grep -v '^ *+' conftest.er1 >conftest.err
10961 cat conftest.err >&5
10962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10963 (exit $ac_status); } &&
10964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10966 (eval $ac_try) 2>&5
10968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10969 (exit $ac_status); }; } &&
10970 { ac_try='test -s conftest.$ac_objext'
10971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10972 (eval $ac_try) 2>&5
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); }; }; then
10976 ac_hi=$ac_mid; break
10978 echo "$as_me: failed program was:" >&5
10979 sed 's/^/| /' conftest.$ac_ext >&5
10981 ac_lo=`expr $ac_mid + 1`
10982 if test $ac_lo -le $ac_mid; then
10986 ac_mid=`expr 2 '*' $ac_mid + 1`
10988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10991 echo "$as_me: failed program was:" >&5
10992 sed 's/^/| /' conftest.$ac_ext >&5
10994 cat >conftest.$ac_ext <<_ACEOF
10997 cat confdefs.h >>conftest.$ac_ext
10998 cat >>conftest.$ac_ext <<_ACEOF
10999 /* end confdefs.h. */
11000 $ac_includes_default
11004 static int test_array [1 - 2 * !(((long) (sizeof (float))) < 0)];
11011 rm -f conftest.$ac_objext
11012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11013 (eval $ac_compile) 2>conftest.er1
11015 grep -v '^ *+' conftest.er1 >conftest.err
11017 cat conftest.err >&5
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); } &&
11020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11022 (eval $ac_try) 2>&5
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); }; } &&
11026 { ac_try='test -s conftest.$ac_objext'
11027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11028 (eval $ac_try) 2>&5
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); }; }; then
11034 cat >conftest.$ac_ext <<_ACEOF
11037 cat confdefs.h >>conftest.$ac_ext
11038 cat >>conftest.$ac_ext <<_ACEOF
11039 /* end confdefs.h. */
11040 $ac_includes_default
11044 static int test_array [1 - 2 * !(((long) (sizeof (float))) >= $ac_mid)];
11051 rm -f conftest.$ac_objext
11052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11053 (eval $ac_compile) 2>conftest.er1
11055 grep -v '^ *+' conftest.er1 >conftest.err
11057 cat conftest.err >&5
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); } &&
11060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11062 (eval $ac_try) 2>&5
11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065 (exit $ac_status); }; } &&
11066 { ac_try='test -s conftest.$ac_objext'
11067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11068 (eval $ac_try) 2>&5
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); }; }; then
11072 ac_lo=$ac_mid; break
11074 echo "$as_me: failed program was:" >&5
11075 sed 's/^/| /' conftest.$ac_ext >&5
11077 ac_hi=`expr '(' $ac_mid ')' - 1`
11078 if test $ac_mid -le $ac_hi; then
11082 ac_mid=`expr 2 '*' $ac_mid`
11084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11087 echo "$as_me: failed program was:" >&5
11088 sed 's/^/| /' conftest.$ac_ext >&5
11092 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11095 # Binary search between lo and hi bounds.
11096 while test "x$ac_lo" != "x$ac_hi"; do
11097 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11098 cat >conftest.$ac_ext <<_ACEOF
11101 cat confdefs.h >>conftest.$ac_ext
11102 cat >>conftest.$ac_ext <<_ACEOF
11103 /* end confdefs.h. */
11104 $ac_includes_default
11108 static int test_array [1 - 2 * !(((long) (sizeof (float))) <= $ac_mid)];
11115 rm -f conftest.$ac_objext
11116 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11117 (eval $ac_compile) 2>conftest.er1
11119 grep -v '^ *+' conftest.er1 >conftest.err
11121 cat conftest.err >&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); } &&
11124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11126 (eval $ac_try) 2>&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); }; } &&
11130 { ac_try='test -s conftest.$ac_objext'
11131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11132 (eval $ac_try) 2>&5
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); }; }; then
11138 echo "$as_me: failed program was:" >&5
11139 sed 's/^/| /' conftest.$ac_ext >&5
11141 ac_lo=`expr '(' $ac_mid ')' + 1`
11143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11146 ?*) ac_cv_sizeof_float=$ac_lo;;
11147 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
11148 See \`config.log' for more details." >&5
11149 echo "$as_me: error: cannot compute sizeof (float), 77
11150 See \`config.log' for more details." >&2;}
11151 { (exit 1); exit 1; }; } ;;
11154 if test "$cross_compiling" = yes; then
11155 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11156 See \`config.log' for more details." >&5
11157 echo "$as_me: error: cannot run test program while cross compiling
11158 See \`config.log' for more details." >&2;}
11159 { (exit 1); exit 1; }; }
11161 cat >conftest.$ac_ext <<_ACEOF
11164 cat confdefs.h >>conftest.$ac_ext
11165 cat >>conftest.$ac_ext <<_ACEOF
11166 /* end confdefs.h. */
11167 $ac_includes_default
11168 long longval () { return (long) (sizeof (float)); }
11169 unsigned long ulongval () { return (long) (sizeof (float)); }
11171 #include <stdlib.h>
11176 FILE *f = fopen ("conftest.val", "w");
11179 if (((long) (sizeof (float))) < 0)
11181 long i = longval ();
11182 if (i != ((long) (sizeof (float))))
11184 fprintf (f, "%ld\n", i);
11188 unsigned long i = ulongval ();
11189 if (i != ((long) (sizeof (float))))
11191 fprintf (f, "%lu\n", i);
11193 exit (ferror (f) || fclose (f) != 0);
11199 rm -f conftest$ac_exeext
11200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11201 (eval $ac_link) 2>&5
11203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11206 (eval $ac_try) 2>&5
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); }; }; then
11210 ac_cv_sizeof_float=`cat conftest.val`
11212 echo "$as_me: program exited with status $ac_status" >&5
11213 echo "$as_me: failed program was:" >&5
11214 sed 's/^/| /' conftest.$ac_ext >&5
11216 ( exit $ac_status )
11217 { { echo "$as_me:$LINENO: error: cannot compute sizeof (float), 77
11218 See \`config.log' for more details." >&5
11219 echo "$as_me: error: cannot compute sizeof (float), 77
11220 See \`config.log' for more details." >&2;}
11221 { (exit 1); exit 1; }; }
11223 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11228 ac_cv_sizeof_float=0
11231 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
11232 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
11233 cat >>confdefs.h <<_ACEOF
11234 #define SIZEOF_FLOAT $ac_cv_sizeof_float
11238 echo "$as_me:$LINENO: checking for double" >&5
11239 echo $ECHO_N "checking for double... $ECHO_C" >&6
11240 if test "${ac_cv_type_double+set}" = set; then
11241 echo $ECHO_N "(cached) $ECHO_C" >&6
11243 cat >conftest.$ac_ext <<_ACEOF
11246 cat confdefs.h >>conftest.$ac_ext
11247 cat >>conftest.$ac_ext <<_ACEOF
11248 /* end confdefs.h. */
11249 $ac_includes_default
11255 if (sizeof (double))
11261 rm -f conftest.$ac_objext
11262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11263 (eval $ac_compile) 2>conftest.er1
11265 grep -v '^ *+' conftest.er1 >conftest.err
11267 cat conftest.err >&5
11268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11269 (exit $ac_status); } &&
11270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11272 (eval $ac_try) 2>&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; } &&
11276 { ac_try='test -s conftest.$ac_objext'
11277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11278 (eval $ac_try) 2>&5
11280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); }; }; then
11282 ac_cv_type_double=yes
11284 echo "$as_me: failed program was:" >&5
11285 sed 's/^/| /' conftest.$ac_ext >&5
11287 ac_cv_type_double=no
11289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11291 echo "$as_me:$LINENO: result: $ac_cv_type_double" >&5
11292 echo "${ECHO_T}$ac_cv_type_double" >&6
11294 echo "$as_me:$LINENO: checking size of double" >&5
11295 echo $ECHO_N "checking size of double... $ECHO_C" >&6
11296 if test "${ac_cv_sizeof_double+set}" = set; then
11297 echo $ECHO_N "(cached) $ECHO_C" >&6
11299 if test "$ac_cv_type_double" = yes; then
11300 # The cast to unsigned long works around a bug in the HP C Compiler
11301 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11302 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11303 # This bug is HP SR number 8606223364.
11304 if test "$cross_compiling" = yes; then
11305 # Depending upon the size, compute the lo and hi bounds.
11306 cat >conftest.$ac_ext <<_ACEOF
11309 cat confdefs.h >>conftest.$ac_ext
11310 cat >>conftest.$ac_ext <<_ACEOF
11311 /* end confdefs.h. */
11312 $ac_includes_default
11316 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= 0)];
11323 rm -f conftest.$ac_objext
11324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11325 (eval $ac_compile) 2>conftest.er1
11327 grep -v '^ *+' conftest.er1 >conftest.err
11329 cat conftest.err >&5
11330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331 (exit $ac_status); } &&
11332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11334 (eval $ac_try) 2>&5
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); }; } &&
11338 { ac_try='test -s conftest.$ac_objext'
11339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11340 (eval $ac_try) 2>&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); }; }; then
11346 cat >conftest.$ac_ext <<_ACEOF
11349 cat confdefs.h >>conftest.$ac_ext
11350 cat >>conftest.$ac_ext <<_ACEOF
11351 /* end confdefs.h. */
11352 $ac_includes_default
11356 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
11363 rm -f conftest.$ac_objext
11364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11365 (eval $ac_compile) 2>conftest.er1
11367 grep -v '^ *+' conftest.er1 >conftest.err
11369 cat conftest.err >&5
11370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11371 (exit $ac_status); } &&
11372 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11374 (eval $ac_try) 2>&5
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); }; } &&
11378 { ac_try='test -s conftest.$ac_objext'
11379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11380 (eval $ac_try) 2>&5
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); }; }; then
11384 ac_hi=$ac_mid; break
11386 echo "$as_me: failed program was:" >&5
11387 sed 's/^/| /' conftest.$ac_ext >&5
11389 ac_lo=`expr $ac_mid + 1`
11390 if test $ac_lo -le $ac_mid; then
11394 ac_mid=`expr 2 '*' $ac_mid + 1`
11396 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11399 echo "$as_me: failed program was:" >&5
11400 sed 's/^/| /' conftest.$ac_ext >&5
11402 cat >conftest.$ac_ext <<_ACEOF
11405 cat confdefs.h >>conftest.$ac_ext
11406 cat >>conftest.$ac_ext <<_ACEOF
11407 /* end confdefs.h. */
11408 $ac_includes_default
11412 static int test_array [1 - 2 * !(((long) (sizeof (double))) < 0)];
11419 rm -f conftest.$ac_objext
11420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11421 (eval $ac_compile) 2>conftest.er1
11423 grep -v '^ *+' conftest.er1 >conftest.err
11425 cat conftest.err >&5
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); } &&
11428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11430 (eval $ac_try) 2>&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); }; } &&
11434 { ac_try='test -s conftest.$ac_objext'
11435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11436 (eval $ac_try) 2>&5
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); }; }; then
11442 cat >conftest.$ac_ext <<_ACEOF
11445 cat confdefs.h >>conftest.$ac_ext
11446 cat >>conftest.$ac_ext <<_ACEOF
11447 /* end confdefs.h. */
11448 $ac_includes_default
11452 static int test_array [1 - 2 * !(((long) (sizeof (double))) >= $ac_mid)];
11459 rm -f conftest.$ac_objext
11460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11461 (eval $ac_compile) 2>conftest.er1
11463 grep -v '^ *+' conftest.er1 >conftest.err
11465 cat conftest.err >&5
11466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467 (exit $ac_status); } &&
11468 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11470 (eval $ac_try) 2>&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); }; } &&
11474 { ac_try='test -s conftest.$ac_objext'
11475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11476 (eval $ac_try) 2>&5
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); }; }; then
11480 ac_lo=$ac_mid; break
11482 echo "$as_me: failed program was:" >&5
11483 sed 's/^/| /' conftest.$ac_ext >&5
11485 ac_hi=`expr '(' $ac_mid ')' - 1`
11486 if test $ac_mid -le $ac_hi; then
11490 ac_mid=`expr 2 '*' $ac_mid`
11492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11495 echo "$as_me: failed program was:" >&5
11496 sed 's/^/| /' conftest.$ac_ext >&5
11500 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11502 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11503 # Binary search between lo and hi bounds.
11504 while test "x$ac_lo" != "x$ac_hi"; do
11505 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11506 cat >conftest.$ac_ext <<_ACEOF
11509 cat confdefs.h >>conftest.$ac_ext
11510 cat >>conftest.$ac_ext <<_ACEOF
11511 /* end confdefs.h. */
11512 $ac_includes_default
11516 static int test_array [1 - 2 * !(((long) (sizeof (double))) <= $ac_mid)];
11523 rm -f conftest.$ac_objext
11524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11525 (eval $ac_compile) 2>conftest.er1
11527 grep -v '^ *+' conftest.er1 >conftest.err
11529 cat conftest.err >&5
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); } &&
11532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11534 (eval $ac_try) 2>&5
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); }; } &&
11538 { ac_try='test -s conftest.$ac_objext'
11539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11540 (eval $ac_try) 2>&5
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); }; }; then
11546 echo "$as_me: failed program was:" >&5
11547 sed 's/^/| /' conftest.$ac_ext >&5
11549 ac_lo=`expr '(' $ac_mid ')' + 1`
11551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11554 ?*) ac_cv_sizeof_double=$ac_lo;;
11555 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
11556 See \`config.log' for more details." >&5
11557 echo "$as_me: error: cannot compute sizeof (double), 77
11558 See \`config.log' for more details." >&2;}
11559 { (exit 1); exit 1; }; } ;;
11562 if test "$cross_compiling" = yes; then
11563 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11564 See \`config.log' for more details." >&5
11565 echo "$as_me: error: cannot run test program while cross compiling
11566 See \`config.log' for more details." >&2;}
11567 { (exit 1); exit 1; }; }
11569 cat >conftest.$ac_ext <<_ACEOF
11572 cat confdefs.h >>conftest.$ac_ext
11573 cat >>conftest.$ac_ext <<_ACEOF
11574 /* end confdefs.h. */
11575 $ac_includes_default
11576 long longval () { return (long) (sizeof (double)); }
11577 unsigned long ulongval () { return (long) (sizeof (double)); }
11579 #include <stdlib.h>
11584 FILE *f = fopen ("conftest.val", "w");
11587 if (((long) (sizeof (double))) < 0)
11589 long i = longval ();
11590 if (i != ((long) (sizeof (double))))
11592 fprintf (f, "%ld\n", i);
11596 unsigned long i = ulongval ();
11597 if (i != ((long) (sizeof (double))))
11599 fprintf (f, "%lu\n", i);
11601 exit (ferror (f) || fclose (f) != 0);
11607 rm -f conftest$ac_exeext
11608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11609 (eval $ac_link) 2>&5
11611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11614 (eval $ac_try) 2>&5
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); }; }; then
11618 ac_cv_sizeof_double=`cat conftest.val`
11620 echo "$as_me: program exited with status $ac_status" >&5
11621 echo "$as_me: failed program was:" >&5
11622 sed 's/^/| /' conftest.$ac_ext >&5
11624 ( exit $ac_status )
11625 { { echo "$as_me:$LINENO: error: cannot compute sizeof (double), 77
11626 See \`config.log' for more details." >&5
11627 echo "$as_me: error: cannot compute sizeof (double), 77
11628 See \`config.log' for more details." >&2;}
11629 { (exit 1); exit 1; }; }
11631 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11636 ac_cv_sizeof_double=0
11639 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
11640 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
11641 cat >>confdefs.h <<_ACEOF
11642 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
11646 echo "$as_me:$LINENO: checking for long double" >&5
11647 echo $ECHO_N "checking for long double... $ECHO_C" >&6
11648 if test "${ac_cv_type_long_double+set}" = set; then
11649 echo $ECHO_N "(cached) $ECHO_C" >&6
11651 cat >conftest.$ac_ext <<_ACEOF
11654 cat confdefs.h >>conftest.$ac_ext
11655 cat >>conftest.$ac_ext <<_ACEOF
11656 /* end confdefs.h. */
11657 $ac_includes_default
11661 if ((long double *) 0)
11663 if (sizeof (long double))
11669 rm -f conftest.$ac_objext
11670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11671 (eval $ac_compile) 2>conftest.er1
11673 grep -v '^ *+' conftest.er1 >conftest.err
11675 cat conftest.err >&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); } &&
11678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11680 (eval $ac_try) 2>&5
11682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11683 (exit $ac_status); }; } &&
11684 { ac_try='test -s conftest.$ac_objext'
11685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11686 (eval $ac_try) 2>&5
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); }; }; then
11690 ac_cv_type_long_double=yes
11692 echo "$as_me: failed program was:" >&5
11693 sed 's/^/| /' conftest.$ac_ext >&5
11695 ac_cv_type_long_double=no
11697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11699 echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
11700 echo "${ECHO_T}$ac_cv_type_long_double" >&6
11702 echo "$as_me:$LINENO: checking size of long double" >&5
11703 echo $ECHO_N "checking size of long double... $ECHO_C" >&6
11704 if test "${ac_cv_sizeof_long_double+set}" = set; then
11705 echo $ECHO_N "(cached) $ECHO_C" >&6
11707 if test "$ac_cv_type_long_double" = yes; then
11708 # The cast to unsigned long works around a bug in the HP C Compiler
11709 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11710 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11711 # This bug is HP SR number 8606223364.
11712 if test "$cross_compiling" = yes; then
11713 # Depending upon the size, compute the lo and hi bounds.
11714 cat >conftest.$ac_ext <<_ACEOF
11717 cat confdefs.h >>conftest.$ac_ext
11718 cat >>conftest.$ac_ext <<_ACEOF
11719 /* end confdefs.h. */
11720 $ac_includes_default
11724 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= 0)];
11731 rm -f conftest.$ac_objext
11732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11733 (eval $ac_compile) 2>conftest.er1
11735 grep -v '^ *+' conftest.er1 >conftest.err
11737 cat conftest.err >&5
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); } &&
11740 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11742 (eval $ac_try) 2>&5
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); }; } &&
11746 { ac_try='test -s conftest.$ac_objext'
11747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11748 (eval $ac_try) 2>&5
11750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751 (exit $ac_status); }; }; then
11754 cat >conftest.$ac_ext <<_ACEOF
11757 cat confdefs.h >>conftest.$ac_ext
11758 cat >>conftest.$ac_ext <<_ACEOF
11759 /* end confdefs.h. */
11760 $ac_includes_default
11764 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
11771 rm -f conftest.$ac_objext
11772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11773 (eval $ac_compile) 2>conftest.er1
11775 grep -v '^ *+' conftest.er1 >conftest.err
11777 cat conftest.err >&5
11778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11779 (exit $ac_status); } &&
11780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11782 (eval $ac_try) 2>&5
11784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11785 (exit $ac_status); }; } &&
11786 { ac_try='test -s conftest.$ac_objext'
11787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11788 (eval $ac_try) 2>&5
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); }; }; then
11792 ac_hi=$ac_mid; break
11794 echo "$as_me: failed program was:" >&5
11795 sed 's/^/| /' conftest.$ac_ext >&5
11797 ac_lo=`expr $ac_mid + 1`
11798 if test $ac_lo -le $ac_mid; then
11802 ac_mid=`expr 2 '*' $ac_mid + 1`
11804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11807 echo "$as_me: failed program was:" >&5
11808 sed 's/^/| /' conftest.$ac_ext >&5
11810 cat >conftest.$ac_ext <<_ACEOF
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h. */
11816 $ac_includes_default
11820 static int test_array [1 - 2 * !(((long) (sizeof (long double))) < 0)];
11827 rm -f conftest.$ac_objext
11828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11829 (eval $ac_compile) 2>conftest.er1
11831 grep -v '^ *+' conftest.er1 >conftest.err
11833 cat conftest.err >&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); } &&
11836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11838 (eval $ac_try) 2>&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); }; } &&
11842 { ac_try='test -s conftest.$ac_objext'
11843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11844 (eval $ac_try) 2>&5
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; }; then
11850 cat >conftest.$ac_ext <<_ACEOF
11853 cat confdefs.h >>conftest.$ac_ext
11854 cat >>conftest.$ac_ext <<_ACEOF
11855 /* end confdefs.h. */
11856 $ac_includes_default
11860 static int test_array [1 - 2 * !(((long) (sizeof (long double))) >= $ac_mid)];
11867 rm -f conftest.$ac_objext
11868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11869 (eval $ac_compile) 2>conftest.er1
11871 grep -v '^ *+' conftest.er1 >conftest.err
11873 cat conftest.err >&5
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); } &&
11876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11878 (eval $ac_try) 2>&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); }; } &&
11882 { ac_try='test -s conftest.$ac_objext'
11883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11884 (eval $ac_try) 2>&5
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); }; }; then
11888 ac_lo=$ac_mid; break
11890 echo "$as_me: failed program was:" >&5
11891 sed 's/^/| /' conftest.$ac_ext >&5
11893 ac_hi=`expr '(' $ac_mid ')' - 1`
11894 if test $ac_mid -le $ac_hi; then
11898 ac_mid=`expr 2 '*' $ac_mid`
11900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11903 echo "$as_me: failed program was:" >&5
11904 sed 's/^/| /' conftest.$ac_ext >&5
11908 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11910 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11911 # Binary search between lo and hi bounds.
11912 while test "x$ac_lo" != "x$ac_hi"; do
11913 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11914 cat >conftest.$ac_ext <<_ACEOF
11917 cat confdefs.h >>conftest.$ac_ext
11918 cat >>conftest.$ac_ext <<_ACEOF
11919 /* end confdefs.h. */
11920 $ac_includes_default
11924 static int test_array [1 - 2 * !(((long) (sizeof (long double))) <= $ac_mid)];
11931 rm -f conftest.$ac_objext
11932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11933 (eval $ac_compile) 2>conftest.er1
11935 grep -v '^ *+' conftest.er1 >conftest.err
11937 cat conftest.err >&5
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); } &&
11940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11942 (eval $ac_try) 2>&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); }; } &&
11946 { ac_try='test -s conftest.$ac_objext'
11947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11948 (eval $ac_try) 2>&5
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); }; }; then
11954 echo "$as_me: failed program was:" >&5
11955 sed 's/^/| /' conftest.$ac_ext >&5
11957 ac_lo=`expr '(' $ac_mid ')' + 1`
11959 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11962 ?*) ac_cv_sizeof_long_double=$ac_lo;;
11963 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
11964 See \`config.log' for more details." >&5
11965 echo "$as_me: error: cannot compute sizeof (long double), 77
11966 See \`config.log' for more details." >&2;}
11967 { (exit 1); exit 1; }; } ;;
11970 if test "$cross_compiling" = yes; then
11971 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11972 See \`config.log' for more details." >&5
11973 echo "$as_me: error: cannot run test program while cross compiling
11974 See \`config.log' for more details." >&2;}
11975 { (exit 1); exit 1; }; }
11977 cat >conftest.$ac_ext <<_ACEOF
11980 cat confdefs.h >>conftest.$ac_ext
11981 cat >>conftest.$ac_ext <<_ACEOF
11982 /* end confdefs.h. */
11983 $ac_includes_default
11984 long longval () { return (long) (sizeof (long double)); }
11985 unsigned long ulongval () { return (long) (sizeof (long double)); }
11987 #include <stdlib.h>
11992 FILE *f = fopen ("conftest.val", "w");
11995 if (((long) (sizeof (long double))) < 0)
11997 long i = longval ();
11998 if (i != ((long) (sizeof (long double))))
12000 fprintf (f, "%ld\n", i);
12004 unsigned long i = ulongval ();
12005 if (i != ((long) (sizeof (long double))))
12007 fprintf (f, "%lu\n", i);
12009 exit (ferror (f) || fclose (f) != 0);
12015 rm -f conftest$ac_exeext
12016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12017 (eval $ac_link) 2>&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12022 (eval $ac_try) 2>&5
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); }; }; then
12026 ac_cv_sizeof_long_double=`cat conftest.val`
12028 echo "$as_me: program exited with status $ac_status" >&5
12029 echo "$as_me: failed program was:" >&5
12030 sed 's/^/| /' conftest.$ac_ext >&5
12032 ( exit $ac_status )
12033 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long double), 77
12034 See \`config.log' for more details." >&5
12035 echo "$as_me: error: cannot compute sizeof (long double), 77
12036 See \`config.log' for more details." >&2;}
12037 { (exit 1); exit 1; }; }
12039 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12044 ac_cv_sizeof_long_double=0
12047 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_double" >&5
12048 echo "${ECHO_T}$ac_cv_sizeof_long_double" >&6
12049 cat >>confdefs.h <<_ACEOF
12050 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
12056 cat >>confdefs.h <<\_ACEOF
12057 #define FPREP_IEEE754 1
12061 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
12062 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
12063 if test "${ac_cv_c_bigendian+set}" = set; then
12064 echo $ECHO_N "(cached) $ECHO_C" >&6
12066 # See if sys/param.h defines the BYTE_ORDER macro.
12067 cat >conftest.$ac_ext <<_ACEOF
12070 cat confdefs.h >>conftest.$ac_ext
12071 cat >>conftest.$ac_ext <<_ACEOF
12072 /* end confdefs.h. */
12073 #include <sys/types.h>
12074 #include <sys/param.h>
12079 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12080 bogus endian macros
12087 rm -f conftest.$ac_objext
12088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12089 (eval $ac_compile) 2>conftest.er1
12091 grep -v '^ *+' conftest.er1 >conftest.err
12093 cat conftest.err >&5
12094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095 (exit $ac_status); } &&
12096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12098 (eval $ac_try) 2>&5
12100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12101 (exit $ac_status); }; } &&
12102 { ac_try='test -s conftest.$ac_objext'
12103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12104 (eval $ac_try) 2>&5
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); }; }; then
12108 # It does; now see whether it defined to BIG_ENDIAN or not.
12109 cat >conftest.$ac_ext <<_ACEOF
12112 cat confdefs.h >>conftest.$ac_ext
12113 cat >>conftest.$ac_ext <<_ACEOF
12114 /* end confdefs.h. */
12115 #include <sys/types.h>
12116 #include <sys/param.h>
12121 #if BYTE_ORDER != BIG_ENDIAN
12129 rm -f conftest.$ac_objext
12130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12131 (eval $ac_compile) 2>conftest.er1
12133 grep -v '^ *+' conftest.er1 >conftest.err
12135 cat conftest.err >&5
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); } &&
12138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12140 (eval $ac_try) 2>&5
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); }; } &&
12144 { ac_try='test -s conftest.$ac_objext'
12145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12146 (eval $ac_try) 2>&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); }; }; then
12150 ac_cv_c_bigendian=yes
12152 echo "$as_me: failed program was:" >&5
12153 sed 's/^/| /' conftest.$ac_ext >&5
12155 ac_cv_c_bigendian=no
12157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12159 echo "$as_me: failed program was:" >&5
12160 sed 's/^/| /' conftest.$ac_ext >&5
12162 # It does not; compile a test program.
12163 if test "$cross_compiling" = yes; then
12164 # try to guess the endianness by grepping values into an object file
12165 ac_cv_c_bigendian=unknown
12166 cat >conftest.$ac_ext <<_ACEOF
12169 cat confdefs.h >>conftest.$ac_ext
12170 cat >>conftest.$ac_ext <<_ACEOF
12171 /* end confdefs.h. */
12172 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12173 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12174 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
12175 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12176 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12177 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
12181 _ascii (); _ebcdic ();
12186 rm -f conftest.$ac_objext
12187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12188 (eval $ac_compile) 2>conftest.er1
12190 grep -v '^ *+' conftest.er1 >conftest.err
12192 cat conftest.err >&5
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); } &&
12195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12197 (eval $ac_try) 2>&5
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); }; } &&
12201 { ac_try='test -s conftest.$ac_objext'
12202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12203 (eval $ac_try) 2>&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); }; }; then
12207 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
12208 ac_cv_c_bigendian=yes
12210 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12211 if test "$ac_cv_c_bigendian" = unknown; then
12212 ac_cv_c_bigendian=no
12214 # finding both strings is unlikely to happen, but who knows?
12215 ac_cv_c_bigendian=unknown
12219 echo "$as_me: failed program was:" >&5
12220 sed 's/^/| /' conftest.$ac_ext >&5
12223 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12225 cat >conftest.$ac_ext <<_ACEOF
12228 cat confdefs.h >>conftest.$ac_ext
12229 cat >>conftest.$ac_ext <<_ACEOF
12230 /* end confdefs.h. */
12234 /* Are we little or big endian? From Harbison&Steele. */
12238 char c[sizeof (long)];
12241 exit (u.c[sizeof (long) - 1] == 1);
12244 rm -f conftest$ac_exeext
12245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12246 (eval $ac_link) 2>&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12251 (eval $ac_try) 2>&5
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); }; }; then
12255 ac_cv_c_bigendian=no
12257 echo "$as_me: program exited with status $ac_status" >&5
12258 echo "$as_me: failed program was:" >&5
12259 sed 's/^/| /' conftest.$ac_ext >&5
12261 ( exit $ac_status )
12262 ac_cv_c_bigendian=yes
12264 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12269 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
12270 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
12271 case $ac_cv_c_bigendian in
12274 cat >>confdefs.h <<\_ACEOF
12275 #define WORDS_BIGENDIAN 1
12281 { { echo "$as_me:$LINENO: error: unknown endianness
12282 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
12283 echo "$as_me: error: unknown endianness
12284 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
12285 { (exit 1); exit 1; }; } ;;
12290 echo "$as_me:$LINENO: checking if sprintf returns a char count" >&5
12291 echo $ECHO_N "checking if sprintf returns a char count... $ECHO_C" >&6
12292 if test "${blp_is_sprintf_good+set}" = set; then
12293 echo $ECHO_N "(cached) $ECHO_C" >&6
12295 if test "$cross_compiling" = yes; then
12296 eval "blp_is_sprintf_good=no"
12298 cat >conftest.$ac_ext <<_ACEOF
12301 cat confdefs.h >>conftest.$ac_ext
12302 cat >>conftest.$ac_ext <<_ACEOF
12303 /* end confdefs.h. */
12309 exit((int)sprintf(s, "abcdefg")!=7);
12313 rm -f conftest$ac_exeext
12314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12315 (eval $ac_link) 2>&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12320 (eval $ac_try) 2>&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); }; }; then
12324 eval "blp_is_sprintf_good=yes"
12326 echo "$as_me: program exited with status $ac_status" >&5
12327 echo "$as_me: failed program was:" >&5
12328 sed 's/^/| /' conftest.$ac_ext >&5
12330 ( exit $ac_status )
12331 eval "blp_is_sprintf_good=no"
12333 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12338 if test "$blp_is_sprintf_good" = yes; then
12340 cat >>confdefs.h <<\_ACEOF
12341 #define HAVE_GOOD_SPRINTF 1
12344 echo "$as_me:$LINENO: result: yes" >&5
12345 echo "${ECHO_T}yes" >&6
12347 echo "$as_me:$LINENO: result: no" >&5
12348 echo "${ECHO_T}no" >&6
12352 echo "$as_me:$LINENO: checking number of digits in LONG_MIN (incl. sign)" >&5
12353 echo $ECHO_N "checking number of digits in LONG_MIN (incl. sign)... $ECHO_C" >&6
12354 if test "${blp_int_digits+set}" = set; then
12355 echo $ECHO_N "(cached) $ECHO_C" >&6
12357 if test "$cross_compiling" = yes; then
12358 eval "blp_int_digits=19"
12360 cat >conftest.$ac_ext <<_ACEOF
12363 cat confdefs.h >>conftest.$ac_ext
12364 cat >>conftest.$ac_ext <<_ACEOF
12365 /* end confdefs.h. */
12367 #include <limits.h>
12373 sprintf(s, "%ld", LONG_MAX);
12375 sprintf(s, "%ld", LONG_MIN);
12376 if(strlen(s)>len) len=strlen(s);
12377 sprintf(s, "%lu", ULONG_MAX);
12378 if(strlen(s)>len) len=strlen(s);
12383 rm -f conftest$ac_exeext
12384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12385 (eval $ac_link) 2>&5
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12390 (eval $ac_try) 2>&5
12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12393 (exit $ac_status); }; }; then
12394 eval "blp_int_digits=19"
12396 echo "$as_me: program exited with status $ac_status" >&5
12397 echo "$as_me: failed program was:" >&5
12398 sed 's/^/| /' conftest.$ac_ext >&5
12400 ( exit $ac_status )
12401 eval "blp_int_digits=$?"
12402 if test "$blp_int_digits" -lt 11; then
12406 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12412 cat >>confdefs.h <<_ACEOF
12413 #define INT_DIGITS $blp_int_digits
12416 echo "$as_me:$LINENO: result: $blp_int_digits" >&5
12417 echo "${ECHO_T}$blp_int_digits" >&6
12419 echo "$as_me:$LINENO: checking random number generator" >&5
12420 echo $ECHO_N "checking random number generator... $ECHO_C" >&6
12421 if test "${blp_random_good+set}" = set; then
12422 echo $ECHO_N "(cached) $ECHO_C" >&6
12424 cat >conftest.$ac_ext <<_ACEOF
12427 cat confdefs.h >>conftest.$ac_ext
12428 cat >>conftest.$ac_ext <<_ACEOF
12429 /* end confdefs.h. */
12430 #include <stdlib.h>
12439 rm -f conftest.$ac_objext
12440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12441 (eval $ac_compile) 2>conftest.er1
12443 grep -v '^ *+' conftest.er1 >conftest.err
12445 cat conftest.err >&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } &&
12448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450 (eval $ac_try) 2>&5
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; } &&
12454 { ac_try='test -s conftest.$ac_objext'
12455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12456 (eval $ac_try) 2>&5
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); }; }; then
12460 blp_random_good=yes
12462 echo "$as_me: failed program was:" >&5
12463 sed 's/^/| /' conftest.$ac_ext >&5
12467 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12470 if test "$blp_random_good" = yes; then
12472 cat >>confdefs.h <<\_ACEOF
12473 #define HAVE_GOOD_RANDOM 1
12476 echo "$as_me:$LINENO: result: good" >&5
12477 echo "${ECHO_T}good" >&6
12479 echo "$as_me:$LINENO: result: bad" >&5
12480 echo "${ECHO_T}bad" >&6
12484 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
12485 # for constant arguments. Useless!
12486 echo "$as_me:$LINENO: checking for working alloca.h" >&5
12487 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
12488 if test "${ac_cv_working_alloca_h+set}" = set; then
12489 echo $ECHO_N "(cached) $ECHO_C" >&6
12491 cat >conftest.$ac_ext <<_ACEOF
12494 cat confdefs.h >>conftest.$ac_ext
12495 cat >>conftest.$ac_ext <<_ACEOF
12496 /* end confdefs.h. */
12497 #include <alloca.h>
12501 char *p = (char *) alloca (2 * sizeof (int));
12506 rm -f conftest.$ac_objext conftest$ac_exeext
12507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12508 (eval $ac_link) 2>conftest.er1
12510 grep -v '^ *+' conftest.er1 >conftest.err
12512 cat conftest.err >&5
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); } &&
12515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12517 (eval $ac_try) 2>&5
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); }; } &&
12521 { ac_try='test -s conftest$ac_exeext'
12522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12523 (eval $ac_try) 2>&5
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); }; }; then
12527 ac_cv_working_alloca_h=yes
12529 echo "$as_me: failed program was:" >&5
12530 sed 's/^/| /' conftest.$ac_ext >&5
12532 ac_cv_working_alloca_h=no
12534 rm -f conftest.err conftest.$ac_objext \
12535 conftest$ac_exeext conftest.$ac_ext
12537 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
12538 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
12539 if test $ac_cv_working_alloca_h = yes; then
12541 cat >>confdefs.h <<\_ACEOF
12542 #define HAVE_ALLOCA_H 1
12547 echo "$as_me:$LINENO: checking for alloca" >&5
12548 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
12549 if test "${ac_cv_func_alloca_works+set}" = set; then
12550 echo $ECHO_N "(cached) $ECHO_C" >&6
12552 cat >conftest.$ac_ext <<_ACEOF
12555 cat confdefs.h >>conftest.$ac_ext
12556 cat >>conftest.$ac_ext <<_ACEOF
12557 /* end confdefs.h. */
12559 # define alloca __builtin_alloca
12562 # include <malloc.h>
12563 # define alloca _alloca
12566 # include <alloca.h>
12571 # ifndef alloca /* predefined by HP cc +Olibcalls */
12582 char *p = (char *) alloca (1);
12587 rm -f conftest.$ac_objext conftest$ac_exeext
12588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12589 (eval $ac_link) 2>conftest.er1
12591 grep -v '^ *+' conftest.er1 >conftest.err
12593 cat conftest.err >&5
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); } &&
12596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12598 (eval $ac_try) 2>&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); }; } &&
12602 { ac_try='test -s conftest$ac_exeext'
12603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12604 (eval $ac_try) 2>&5
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); }; }; then
12608 ac_cv_func_alloca_works=yes
12610 echo "$as_me: failed program was:" >&5
12611 sed 's/^/| /' conftest.$ac_ext >&5
12613 ac_cv_func_alloca_works=no
12615 rm -f conftest.err conftest.$ac_objext \
12616 conftest$ac_exeext conftest.$ac_ext
12618 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12619 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12621 if test $ac_cv_func_alloca_works = yes; then
12623 cat >>confdefs.h <<\_ACEOF
12624 #define HAVE_ALLOCA 1
12628 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12629 # that cause trouble. Some versions do not even contain alloca or
12630 # contain a buggy version. If you still want to use their alloca,
12631 # use ar to extract alloca.o from them instead of compiling alloca.c.
12633 ALLOCA=alloca.$ac_objext
12635 cat >>confdefs.h <<\_ACEOF
12640 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12641 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12642 if test "${ac_cv_os_cray+set}" = set; then
12643 echo $ECHO_N "(cached) $ECHO_C" >&6
12645 cat >conftest.$ac_ext <<_ACEOF
12648 cat confdefs.h >>conftest.$ac_ext
12649 cat >>conftest.$ac_ext <<_ACEOF
12650 /* end confdefs.h. */
12651 #if defined(CRAY) && ! defined(CRAY2)
12658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12659 $EGREP "webecray" >/dev/null 2>&1; then
12667 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12668 echo "${ECHO_T}$ac_cv_os_cray" >&6
12669 if test $ac_cv_os_cray = yes; then
12670 for ac_func in _getb67 GETB67 getb67; do
12671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12672 echo "$as_me:$LINENO: checking for $ac_func" >&5
12673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12674 if eval "test \"\${$as_ac_var+set}\" = set"; then
12675 echo $ECHO_N "(cached) $ECHO_C" >&6
12677 cat >conftest.$ac_ext <<_ACEOF
12680 cat confdefs.h >>conftest.$ac_ext
12681 cat >>conftest.$ac_ext <<_ACEOF
12682 /* end confdefs.h. */
12683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12685 #define $ac_func innocuous_$ac_func
12687 /* System header to define __stub macros and hopefully few prototypes,
12688 which can conflict with char $ac_func (); below.
12689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12690 <limits.h> exists even on freestanding compilers. */
12693 # include <limits.h>
12695 # include <assert.h>
12700 /* Override any gcc2 internal prototype to avoid an error. */
12705 /* We use char because int might match the return type of a gcc2
12706 builtin and then its argument prototype would still apply. */
12708 /* The GNU C library defines this for functions which it implements
12709 to always fail with ENOSYS. Some functions are actually named
12710 something starting with __ and the normal name is an alias. */
12711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12714 char (*f) () = $ac_func;
12723 return f != $ac_func;
12728 rm -f conftest.$ac_objext conftest$ac_exeext
12729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12730 (eval $ac_link) 2>conftest.er1
12732 grep -v '^ *+' conftest.er1 >conftest.err
12734 cat conftest.err >&5
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); } &&
12737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12739 (eval $ac_try) 2>&5
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); }; } &&
12743 { ac_try='test -s conftest$ac_exeext'
12744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12745 (eval $ac_try) 2>&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); }; }; then
12749 eval "$as_ac_var=yes"
12751 echo "$as_me: failed program was:" >&5
12752 sed 's/^/| /' conftest.$ac_ext >&5
12754 eval "$as_ac_var=no"
12756 rm -f conftest.err conftest.$ac_objext \
12757 conftest$ac_exeext conftest.$ac_ext
12759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12760 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12761 if test `eval echo '${'$as_ac_var'}'` = yes; then
12763 cat >>confdefs.h <<_ACEOF
12764 #define CRAY_STACKSEG_END $ac_func
12773 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12774 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12775 if test "${ac_cv_c_stack_direction+set}" = set; then
12776 echo $ECHO_N "(cached) $ECHO_C" >&6
12778 if test "$cross_compiling" = yes; then
12779 ac_cv_c_stack_direction=0
12781 cat >conftest.$ac_ext <<_ACEOF
12784 cat confdefs.h >>conftest.$ac_ext
12785 cat >>conftest.$ac_ext <<_ACEOF
12786 /* end confdefs.h. */
12788 find_stack_direction ()
12790 static char *addr = 0;
12795 return find_stack_direction ();
12798 return (&dummy > addr) ? 1 : -1;
12804 exit (find_stack_direction () < 0);
12807 rm -f conftest$ac_exeext
12808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12809 (eval $ac_link) 2>&5
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12814 (eval $ac_try) 2>&5
12816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817 (exit $ac_status); }; }; then
12818 ac_cv_c_stack_direction=1
12820 echo "$as_me: program exited with status $ac_status" >&5
12821 echo "$as_me: failed program was:" >&5
12822 sed 's/^/| /' conftest.$ac_ext >&5
12824 ( exit $ac_status )
12825 ac_cv_c_stack_direction=-1
12827 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12830 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12831 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12833 cat >>confdefs.h <<_ACEOF
12834 #define STACK_DIRECTION $ac_cv_c_stack_direction
12840 echo "$as_me:$LINENO: checking for working memcmp" >&5
12841 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
12842 if test "${ac_cv_func_memcmp_working+set}" = set; then
12843 echo $ECHO_N "(cached) $ECHO_C" >&6
12845 if test "$cross_compiling" = yes; then
12846 ac_cv_func_memcmp_working=no
12848 cat >conftest.$ac_ext <<_ACEOF
12851 cat confdefs.h >>conftest.$ac_ext
12852 cat >>conftest.$ac_ext <<_ACEOF
12853 /* end confdefs.h. */
12854 $ac_includes_default
12859 /* Some versions of memcmp are not 8-bit clean. */
12860 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
12861 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
12864 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
12865 or more and with at least one buffer not starting on a 4-byte boundary.
12866 William Lewis provided this test program. */
12871 for (i = 0; i < 4; i++)
12875 strcpy (a, "--------01111111");
12876 strcpy (b, "--------10000000");
12877 if (memcmp (a, b, 16) >= 0)
12887 rm -f conftest$ac_exeext
12888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12889 (eval $ac_link) 2>&5
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12894 (eval $ac_try) 2>&5
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); }; }; then
12898 ac_cv_func_memcmp_working=yes
12900 echo "$as_me: program exited with status $ac_status" >&5
12901 echo "$as_me: failed program was:" >&5
12902 sed 's/^/| /' conftest.$ac_ext >&5
12904 ( exit $ac_status )
12905 ac_cv_func_memcmp_working=no
12907 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12910 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
12911 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
12912 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
12913 "memcmp.$ac_objext" | \
12914 *" memcmp.$ac_objext" | \
12915 "memcmp.$ac_objext "* | \
12916 *" memcmp.$ac_objext "* ) ;;
12917 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
12922 for ac_func in vprintf
12924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12925 echo "$as_me:$LINENO: checking for $ac_func" >&5
12926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12927 if eval "test \"\${$as_ac_var+set}\" = set"; then
12928 echo $ECHO_N "(cached) $ECHO_C" >&6
12930 cat >conftest.$ac_ext <<_ACEOF
12933 cat confdefs.h >>conftest.$ac_ext
12934 cat >>conftest.$ac_ext <<_ACEOF
12935 /* end confdefs.h. */
12936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12938 #define $ac_func innocuous_$ac_func
12940 /* System header to define __stub macros and hopefully few prototypes,
12941 which can conflict with char $ac_func (); below.
12942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12943 <limits.h> exists even on freestanding compilers. */
12946 # include <limits.h>
12948 # include <assert.h>
12953 /* Override any gcc2 internal prototype to avoid an error. */
12958 /* We use char because int might match the return type of a gcc2
12959 builtin and then its argument prototype would still apply. */
12961 /* The GNU C library defines this for functions which it implements
12962 to always fail with ENOSYS. Some functions are actually named
12963 something starting with __ and the normal name is an alias. */
12964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12967 char (*f) () = $ac_func;
12976 return f != $ac_func;
12981 rm -f conftest.$ac_objext conftest$ac_exeext
12982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12983 (eval $ac_link) 2>conftest.er1
12985 grep -v '^ *+' conftest.er1 >conftest.err
12987 cat conftest.err >&5
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); } &&
12990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12992 (eval $ac_try) 2>&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; } &&
12996 { ac_try='test -s conftest$ac_exeext'
12997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12998 (eval $ac_try) 2>&5
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); }; }; then
13002 eval "$as_ac_var=yes"
13004 echo "$as_me: failed program was:" >&5
13005 sed 's/^/| /' conftest.$ac_ext >&5
13007 eval "$as_ac_var=no"
13009 rm -f conftest.err conftest.$ac_objext \
13010 conftest$ac_exeext conftest.$ac_ext
13012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13013 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13014 if test `eval echo '${'$as_ac_var'}'` = yes; then
13015 cat >>confdefs.h <<_ACEOF
13016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13019 echo "$as_me:$LINENO: checking for _doprnt" >&5
13020 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
13021 if test "${ac_cv_func__doprnt+set}" = set; then
13022 echo $ECHO_N "(cached) $ECHO_C" >&6
13024 cat >conftest.$ac_ext <<_ACEOF
13027 cat confdefs.h >>conftest.$ac_ext
13028 cat >>conftest.$ac_ext <<_ACEOF
13029 /* end confdefs.h. */
13030 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13032 #define _doprnt innocuous__doprnt
13034 /* System header to define __stub macros and hopefully few prototypes,
13035 which can conflict with char _doprnt (); below.
13036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13037 <limits.h> exists even on freestanding compilers. */
13040 # include <limits.h>
13042 # include <assert.h>
13047 /* Override any gcc2 internal prototype to avoid an error. */
13052 /* We use char because int might match the return type of a gcc2
13053 builtin and then its argument prototype would still apply. */
13055 /* The GNU C library defines this for functions which it implements
13056 to always fail with ENOSYS. Some functions are actually named
13057 something starting with __ and the normal name is an alias. */
13058 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13061 char (*f) () = _doprnt;
13070 return f != _doprnt;
13075 rm -f conftest.$ac_objext conftest$ac_exeext
13076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13077 (eval $ac_link) 2>conftest.er1
13079 grep -v '^ *+' conftest.er1 >conftest.err
13081 cat conftest.err >&5
13082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083 (exit $ac_status); } &&
13084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13086 (eval $ac_try) 2>&5
13088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); }; } &&
13090 { ac_try='test -s conftest$ac_exeext'
13091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13092 (eval $ac_try) 2>&5
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); }; }; then
13096 ac_cv_func__doprnt=yes
13098 echo "$as_me: failed program was:" >&5
13099 sed 's/^/| /' conftest.$ac_ext >&5
13101 ac_cv_func__doprnt=no
13103 rm -f conftest.err conftest.$ac_objext \
13104 conftest$ac_exeext conftest.$ac_ext
13106 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13107 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
13108 if test $ac_cv_func__doprnt = yes; then
13110 cat >>confdefs.h <<\_ACEOF
13111 #define HAVE_DOPRNT 1
13134 for ac_func in memmove memset stpcpy strpbrk strerror strtol strtoul \
13135 memchr getline getdelim strcasecmp strncasecmp memmem \
13138 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13139 echo "$as_me:$LINENO: checking for $ac_func" >&5
13140 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13141 if eval "test \"\${$as_ac_var+set}\" = set"; then
13142 echo $ECHO_N "(cached) $ECHO_C" >&6
13144 cat >conftest.$ac_ext <<_ACEOF
13147 cat confdefs.h >>conftest.$ac_ext
13148 cat >>conftest.$ac_ext <<_ACEOF
13149 /* end confdefs.h. */
13150 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13152 #define $ac_func innocuous_$ac_func
13154 /* System header to define __stub macros and hopefully few prototypes,
13155 which can conflict with char $ac_func (); below.
13156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13157 <limits.h> exists even on freestanding compilers. */
13160 # include <limits.h>
13162 # include <assert.h>
13167 /* Override any gcc2 internal prototype to avoid an error. */
13172 /* We use char because int might match the return type of a gcc2
13173 builtin and then its argument prototype would still apply. */
13175 /* The GNU C library defines this for functions which it implements
13176 to always fail with ENOSYS. Some functions are actually named
13177 something starting with __ and the normal name is an alias. */
13178 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13181 char (*f) () = $ac_func;
13190 return f != $ac_func;
13195 rm -f conftest.$ac_objext conftest$ac_exeext
13196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13197 (eval $ac_link) 2>conftest.er1
13199 grep -v '^ *+' conftest.er1 >conftest.err
13201 cat conftest.err >&5
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); } &&
13204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13206 (eval $ac_try) 2>&5
13208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13209 (exit $ac_status); }; } &&
13210 { ac_try='test -s conftest$ac_exeext'
13211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13212 (eval $ac_try) 2>&5
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); }; }; then
13216 eval "$as_ac_var=yes"
13218 echo "$as_me: failed program was:" >&5
13219 sed 's/^/| /' conftest.$ac_ext >&5
13221 eval "$as_ac_var=no"
13223 rm -f conftest.err conftest.$ac_objext \
13224 conftest$ac_exeext conftest.$ac_ext
13226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13227 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13228 if test `eval echo '${'$as_ac_var'}'` = yes; then
13229 cat >>confdefs.h <<_ACEOF
13230 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13235 "$ac_func.$ac_objext" | \
13236 *" $ac_func.$ac_objext" | \
13237 "$ac_func.$ac_objext "* | \
13238 *" $ac_func.$ac_objext "* ) ;;
13239 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
13255 for ac_func in gethostname strstr strtod __setfpucw isinf isnan finite \
13256 getpid feholdexcept
13258 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13259 echo "$as_me:$LINENO: checking for $ac_func" >&5
13260 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13261 if eval "test \"\${$as_ac_var+set}\" = set"; then
13262 echo $ECHO_N "(cached) $ECHO_C" >&6
13264 cat >conftest.$ac_ext <<_ACEOF
13267 cat confdefs.h >>conftest.$ac_ext
13268 cat >>conftest.$ac_ext <<_ACEOF
13269 /* end confdefs.h. */
13270 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13272 #define $ac_func innocuous_$ac_func
13274 /* System header to define __stub macros and hopefully few prototypes,
13275 which can conflict with char $ac_func (); below.
13276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13277 <limits.h> exists even on freestanding compilers. */
13280 # include <limits.h>
13282 # include <assert.h>
13287 /* Override any gcc2 internal prototype to avoid an error. */
13292 /* We use char because int might match the return type of a gcc2
13293 builtin and then its argument prototype would still apply. */
13295 /* The GNU C library defines this for functions which it implements
13296 to always fail with ENOSYS. Some functions are actually named
13297 something starting with __ and the normal name is an alias. */
13298 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13301 char (*f) () = $ac_func;
13310 return f != $ac_func;
13315 rm -f conftest.$ac_objext conftest$ac_exeext
13316 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13317 (eval $ac_link) 2>conftest.er1
13319 grep -v '^ *+' conftest.er1 >conftest.err
13321 cat conftest.err >&5
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 (exit $ac_status); } &&
13324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13326 (eval $ac_try) 2>&5
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); }; } &&
13330 { ac_try='test -s conftest$ac_exeext'
13331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13332 (eval $ac_try) 2>&5
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); }; }; then
13336 eval "$as_ac_var=yes"
13338 echo "$as_me: failed program was:" >&5
13339 sed 's/^/| /' conftest.$ac_ext >&5
13341 eval "$as_ac_var=no"
13343 rm -f conftest.err conftest.$ac_objext \
13344 conftest$ac_exeext conftest.$ac_ext
13346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13347 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13348 if test `eval echo '${'$as_ac_var'}'` = yes; then
13349 cat >>confdefs.h <<_ACEOF
13350 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13357 echo "$as_me:$LINENO: checking whether ln -s works" >&5
13358 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
13360 if test "$LN_S" = "ln -s"; then
13361 echo "$as_me:$LINENO: result: yes" >&5
13362 echo "${ECHO_T}yes" >&6
13364 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
13365 echo "${ECHO_T}no, using $LN_S" >&6
13369 if test "$ac_cv_c_compiler_gnu" = yes; then
13370 CFLAGS="-g -Wall -W -Wno-uninitialized -Wwrite-strings \
13371 -Wstrict-prototypes -Wpointer-arith -Wno-sign-compare"
13372 if test "$CC_OPTIONS" != ""; then
13373 CFLAGS="$CFLAGS $CC_OPTIONS"
13381 ac_config_files="$ac_config_files Makefile po/Makefile.in m4/Makefile intl/Makefile lib/Makefile lib/julcal/Makefile lib/misc/Makefile lib/dcdflib/Makefile doc/Makefile src/Makefile config/Makefile tests/Makefile"
13383 ac_config_commands="$ac_config_commands pref.h"
13385 cat >confcache <<\_ACEOF
13386 # This file is a shell script that caches the results of configure
13387 # tests run on this system so they can be shared between configure
13388 # scripts and configure runs, see configure's option --config-cache.
13389 # It is not useful on other systems. If it contains results you don't
13390 # want to keep, you may remove or edit it.
13392 # config.status only pays attention to the cache file if you give it
13393 # the --recheck option to rerun configure.
13395 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13396 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13397 # following values.
13401 # The following way of writing the cache mishandles newlines in values,
13402 # but we know of no workaround that is simple, portable, and efficient.
13403 # So, don't put newlines in cache variables' values.
13404 # Ultrix sh set writes to stderr and can't be redirected directly,
13405 # and sets the high bit in the cache file unless we assign to the vars.
13408 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13410 # `set' does not quote correctly, so add quotes (double-quote
13411 # substitution turns \\\\ into \\, and sed turns \\ into \).
13414 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13417 # `set' quotes correctly as required by POSIX, so do not add quotes.
13419 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13426 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13428 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13430 if diff $cache_file confcache >/dev/null 2>&1; then :; else
13431 if test -w $cache_file; then
13432 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
13433 cat confcache >$cache_file
13435 echo "not updating unwritable cache $cache_file"
13440 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13441 # Let make expand exec_prefix.
13442 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13444 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13445 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13446 # trailing colons and then remove the whole line if VPATH becomes empty
13447 # (actually we leave an empty line to preserve line numbers).
13448 if test "x$srcdir" = x.; then
13449 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13450 s/:*\$(srcdir):*/:/;
13451 s/:*\${srcdir}:*/:/;
13453 s/^\([^=]*=[ ]*\):*/\1/;
13459 DEFS=-DHAVE_CONFIG_H
13463 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13464 # 1. Remove the extension, and $U if already installed.
13465 ac_i=`echo "$ac_i" |
13466 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
13468 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
13469 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
13471 LIBOBJS=$ac_libobjs
13473 LTLIBOBJS=$ac_ltlibobjs
13476 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13477 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
13478 Usually this means the macro was only invoked conditionally." >&5
13479 echo "$as_me: error: conditional \"AMDEP\" was never defined.
13480 Usually this means the macro was only invoked conditionally." >&2;}
13481 { (exit 1); exit 1; }; }
13483 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13484 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
13485 Usually this means the macro was only invoked conditionally." >&5
13486 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
13487 Usually this means the macro was only invoked conditionally." >&2;}
13488 { (exit 1); exit 1; }; }
13491 : ${CONFIG_STATUS=./config.status}
13492 ac_clean_files_save=$ac_clean_files
13493 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13494 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13495 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13496 cat >$CONFIG_STATUS <<_ACEOF
13498 # Generated by $as_me.
13499 # Run this file to recreate the current configuration.
13500 # Compiler output produced by configure, useful for debugging
13501 # configure, is in config.log if it exists.
13504 ac_cs_recheck=false
13506 SHELL=\${CONFIG_SHELL-$SHELL}
13509 cat >>$CONFIG_STATUS <<\_ACEOF
13510 ## --------------------- ##
13511 ## M4sh Initialization. ##
13512 ## --------------------- ##
13514 # Be Bourne compatible
13515 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13518 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13519 # is contrary to our usage. Disable this feature.
13520 alias -g '${1+"$@"}'='"$@"'
13521 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
13524 DUALCASE=1; export DUALCASE # for MKS sh
13526 # Support unset when possible.
13527 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13534 # Work around bugs in pre-3.0 UWIN ksh.
13535 $as_unset ENV MAIL MAILPATH
13542 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13543 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13544 LC_TELEPHONE LC_TIME
13546 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13547 eval $as_var=C; export $as_var
13553 # Required to use basename.
13554 if expr a : '\(a\)' >/dev/null 2>&1; then
13560 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
13561 as_basename=basename
13567 # Name of the executable.
13568 as_me=`$as_basename "$0" ||
13569 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13570 X"$0" : 'X\(//\)$' \| \
13571 X"$0" : 'X\(/\)$' \| \
13572 . : '\(.\)' 2>/dev/null ||
13574 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
13575 /^X\/\(\/\/\)$/{ s//\1/; q; }
13576 /^X\/\(\/\).*/{ s//\1/; q; }
13580 # PATH needs CR, and LINENO needs CR and PATH.
13581 # Avoid depending upon Character Ranges.
13582 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13583 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13584 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13585 as_cr_digits='0123456789'
13586 as_cr_alnum=$as_cr_Letters$as_cr_digits
13588 # The user is always right.
13589 if test "${PATH_SEPARATOR+set}" != set; then
13590 echo "#! /bin/sh" >conf$$.sh
13591 echo "exit 0" >>conf$$.sh
13593 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13602 as_lineno_1=$LINENO
13603 as_lineno_2=$LINENO
13604 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13605 test "x$as_lineno_1" != "x$as_lineno_2" &&
13606 test "x$as_lineno_3" = "x$as_lineno_2" || {
13607 # Find who we are. Look in the path if we contain no path at all
13610 *[\\/]* ) as_myself=$0 ;;
13611 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13612 for as_dir in $PATH
13615 test -z "$as_dir" && as_dir=.
13616 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13621 # We did not find ourselves, most probably we were run as `sh COMMAND'
13622 # in which case we are not to be found in the path.
13623 if test "x$as_myself" = x; then
13626 if test ! -f "$as_myself"; then
13627 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13628 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13629 { (exit 1); exit 1; }; }
13631 case $CONFIG_SHELL in
13633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13634 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13637 test -z "$as_dir" && as_dir=.
13638 for as_base in sh bash ksh sh5; do
13641 if ("$as_dir/$as_base" -c '
13642 as_lineno_1=$LINENO
13643 as_lineno_2=$LINENO
13644 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
13645 test "x$as_lineno_1" != "x$as_lineno_2" &&
13646 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
13647 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
13648 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
13649 CONFIG_SHELL=$as_dir/$as_base
13650 export CONFIG_SHELL
13651 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
13659 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13660 # uniformly replaced by the line number. The first 'sed' inserts a
13661 # line-number line before each line; the second 'sed' does the real
13662 # work. The second script uses 'N' to pair each line-number line
13663 # with the numbered line, and appends trailing '-' during
13664 # substitution so that $LINENO is not a special case at line end.
13665 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13666 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13667 sed '=' <$as_myself |
13672 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13675 s,^['$as_cr_digits']*\n,,
13676 ' >$as_me.lineno &&
13677 chmod +x $as_me.lineno ||
13678 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13679 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13680 { (exit 1); exit 1; }; }
13682 # Don't try to exec as it changes $[0], causing all sort of problems
13683 # (the dirname of $[0] is not the place where we might find the
13684 # original and so on. Autoconf is especially sensible to this).
13686 # Exit status is that of the last command.
13691 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13692 *c*,-n*) ECHO_N= ECHO_C='
13694 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13695 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13698 if expr a : '\(a\)' >/dev/null 2>&1; then
13704 rm -f conf$$ conf$$.exe conf$$.file
13706 if ln -s conf$$.file conf$$ 2>/dev/null; then
13707 # We could just check for DJGPP; but this test a) works b) is more generic
13708 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13709 if test -f conf$$.exe; then
13710 # Don't use ln at all; we don't have any links
13715 elif ln conf$$.file conf$$ 2>/dev/null; then
13720 rm -f conf$$ conf$$.exe conf$$.file
13722 if mkdir -p . 2>/dev/null; then
13725 test -d ./-p && rmdir ./-p
13729 as_executable_p="test -f"
13731 # Sed expression to map a string onto a valid CPP name.
13732 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13734 # Sed expression to map a string onto a valid variable name.
13735 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13739 # We need space, tab and new line, in precisely that order.
13749 # Open the log real soon, to keep \$[0] and so on meaningful, and to
13750 # report actual input values of CONFIG_FILES etc. instead of their
13751 # values after options handling. Logging --version etc. is OK.
13755 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13756 ## Running $as_me. ##
13761 This file was extended by pspp $as_me 0.3.1, which was
13762 generated by GNU Autoconf 2.58. Invocation command line was
13764 CONFIG_FILES = $CONFIG_FILES
13765 CONFIG_HEADERS = $CONFIG_HEADERS
13766 CONFIG_LINKS = $CONFIG_LINKS
13767 CONFIG_COMMANDS = $CONFIG_COMMANDS
13771 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
13775 # Files that config.status was made for.
13776 if test -n "$ac_config_files"; then
13777 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
13780 if test -n "$ac_config_headers"; then
13781 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13784 if test -n "$ac_config_links"; then
13785 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13788 if test -n "$ac_config_commands"; then
13789 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13792 cat >>$CONFIG_STATUS <<\_ACEOF
13795 \`$as_me' instantiates files from templates according to the
13796 current configuration.
13798 Usage: $0 [OPTIONS] [FILE]...
13800 -h, --help print this help, then exit
13801 -V, --version print version number, then exit
13802 -q, --quiet do not print progress messages
13803 -d, --debug don't remove temporary files
13804 --recheck update $as_me by reconfiguring in the same conditions
13805 --file=FILE[:TEMPLATE]
13806 instantiate the configuration file FILE
13807 --header=FILE[:TEMPLATE]
13808 instantiate the configuration header FILE
13810 Configuration files:
13813 Configuration headers:
13816 Configuration commands:
13819 Report bugs to <bug-autoconf@gnu.org>."
13822 cat >>$CONFIG_STATUS <<_ACEOF
13824 pspp config.status 0.3.1
13825 configured by $0, generated by GNU Autoconf 2.58,
13826 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
13828 Copyright (C) 2003 Free Software Foundation, Inc.
13829 This config.status script is free software; the Free Software Foundation
13830 gives unlimited permission to copy, distribute and modify it."
13835 cat >>$CONFIG_STATUS <<\_ACEOF
13836 # If no file are specified by the user, then we need to provide default
13837 # value. By we need to know if files were specified by the user.
13843 ac_option=`expr "x$1" : 'x\([^=]*\)='`
13844 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
13852 *) # This is not an option, so the user has probably given explicit
13855 ac_need_defaults=false;;
13859 # Handling of the options.
13861 cat >>$CONFIG_STATUS <<\_ACEOF
13862 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13864 --version | --vers* | -V )
13865 echo "$ac_cs_version"; exit 0 ;;
13867 # Conflict between --help and --header
13868 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13869 Try \`$0 --help' for more information." >&5
13870 echo "$as_me: error: ambiguous option: $1
13871 Try \`$0 --help' for more information." >&2;}
13872 { (exit 1); exit 1; }; };;
13873 --help | --hel | -h )
13874 echo "$ac_cs_usage"; exit 0 ;;
13875 --debug | --d* | -d )
13877 --file | --fil | --fi | --f )
13879 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13880 ac_need_defaults=false;;
13881 --header | --heade | --head | --hea )
13883 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13884 ac_need_defaults=false;;
13885 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13886 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13889 # This is an error.
13890 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
13891 Try \`$0 --help' for more information." >&5
13892 echo "$as_me: error: unrecognized option: $1
13893 Try \`$0 --help' for more information." >&2;}
13894 { (exit 1); exit 1; }; } ;;
13896 *) ac_config_targets="$ac_config_targets $1" ;;
13902 ac_configure_extra_args=
13904 if $ac_cs_silent; then
13906 ac_configure_extra_args="$ac_configure_extra_args --silent"
13910 cat >>$CONFIG_STATUS <<_ACEOF
13911 if \$ac_cs_recheck; then
13912 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13913 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13918 cat >>$CONFIG_STATUS <<_ACEOF
13920 # INIT-COMMANDS section.
13923 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13924 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
13925 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
13927 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13928 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13929 LINGUAS="${LINGUAS-%UNSET%}"
13936 cat >>$CONFIG_STATUS <<\_ACEOF
13937 for ac_config_target in $ac_config_targets
13939 case "$ac_config_target" in
13940 # Handling of arguments.
13941 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13942 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
13943 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
13944 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
13945 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
13946 "lib/julcal/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/julcal/Makefile" ;;
13947 "lib/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/misc/Makefile" ;;
13948 "lib/dcdflib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/dcdflib/Makefile" ;;
13949 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13950 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13951 "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
13952 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13953 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13954 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
13955 "pref.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS pref.h" ;;
13956 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13957 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13958 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13959 { (exit 1); exit 1; }; };;
13963 # If the user did not use the arguments to specify the items to instantiate,
13964 # then the envvar interface is used. Set only those that are not.
13965 # We use the long form for the default assignment because of an extremely
13966 # bizarre bug on SunOS 4.1.3.
13967 if $ac_need_defaults; then
13968 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13969 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13970 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13973 # Have a temporary directory for convenience. Make it in the build tree
13974 # simply because there is no reason to put it here, and in addition,
13975 # creating and moving files from /tmp can sometimes cause problems.
13976 # Create a temporary directory, and hook for its removal unless debugging.
13979 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
13980 trap '{ (exit 1); exit 1; }' 1 2 13 15
13983 # Create a (secure) tmp directory for tmp files.
13986 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
13987 test -n "$tmp" && test -d "$tmp"
13990 tmp=./confstat$$-$RANDOM
13991 (umask 077 && mkdir $tmp)
13994 echo "$me: cannot create a temporary directory in ." >&2
13995 { (exit 1); exit 1; }
14000 cat >>$CONFIG_STATUS <<_ACEOF
14003 # CONFIG_FILES section.
14006 # No need to generate the scripts if there are no CONFIG_FILES.
14007 # This happens for instance when ./config.status config.h
14008 if test -n "\$CONFIG_FILES"; then
14009 # Protect against being on the right side of a sed subst in config.status.
14010 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14011 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14012 s,@SHELL@,$SHELL,;t t
14013 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14014 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14015 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14016 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14017 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14018 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14019 s,@exec_prefix@,$exec_prefix,;t t
14020 s,@prefix@,$prefix,;t t
14021 s,@program_transform_name@,$program_transform_name,;t t
14022 s,@bindir@,$bindir,;t t
14023 s,@sbindir@,$sbindir,;t t
14024 s,@libexecdir@,$libexecdir,;t t
14025 s,@datadir@,$datadir,;t t
14026 s,@sysconfdir@,$sysconfdir,;t t
14027 s,@sharedstatedir@,$sharedstatedir,;t t
14028 s,@localstatedir@,$localstatedir,;t t
14029 s,@libdir@,$libdir,;t t
14030 s,@includedir@,$includedir,;t t
14031 s,@oldincludedir@,$oldincludedir,;t t
14032 s,@infodir@,$infodir,;t t
14033 s,@mandir@,$mandir,;t t
14034 s,@build_alias@,$build_alias,;t t
14035 s,@host_alias@,$host_alias,;t t
14036 s,@target_alias@,$target_alias,;t t
14037 s,@DEFS@,$DEFS,;t t
14038 s,@ECHO_C@,$ECHO_C,;t t
14039 s,@ECHO_N@,$ECHO_N,;t t
14040 s,@ECHO_T@,$ECHO_T,;t t
14041 s,@LIBS@,$LIBS,;t t
14042 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14043 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14044 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14045 s,@CYGPATH_W@,$CYGPATH_W,;t t
14046 s,@PACKAGE@,$PACKAGE,;t t
14047 s,@VERSION@,$VERSION,;t t
14048 s,@ACLOCAL@,$ACLOCAL,;t t
14049 s,@AUTOCONF@,$AUTOCONF,;t t
14050 s,@AUTOMAKE@,$AUTOMAKE,;t t
14051 s,@AUTOHEADER@,$AUTOHEADER,;t t
14052 s,@MAKEINFO@,$MAKEINFO,;t t
14053 s,@AMTAR@,$AMTAR,;t t
14054 s,@install_sh@,$install_sh,;t t
14055 s,@STRIP@,$STRIP,;t t
14056 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14057 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
14059 s,@SET_MAKE@,$SET_MAKE,;t t
14060 s,@am__leading_dot@,$am__leading_dot,;t t
14062 s,@CFLAGS@,$CFLAGS,;t t
14063 s,@LDFLAGS@,$LDFLAGS,;t t
14064 s,@CPPFLAGS@,$CPPFLAGS,;t t
14065 s,@ac_ct_CC@,$ac_ct_CC,;t t
14066 s,@EXEEXT@,$EXEEXT,;t t
14067 s,@OBJEXT@,$OBJEXT,;t t
14068 s,@DEPDIR@,$DEPDIR,;t t
14069 s,@am__include@,$am__include,;t t
14070 s,@am__quote@,$am__quote,;t t
14071 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
14072 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
14073 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
14074 s,@CCDEPMODE@,$CCDEPMODE,;t t
14075 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
14076 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
14077 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
14078 s,@USE_NLS@,$USE_NLS,;t t
14079 s,@MSGFMT@,$MSGFMT,;t t
14080 s,@GMSGFMT@,$GMSGFMT,;t t
14081 s,@XGETTEXT@,$XGETTEXT,;t t
14082 s,@MSGMERGE@,$MSGMERGE,;t t
14083 s,@build@,$build,;t t
14084 s,@build_cpu@,$build_cpu,;t t
14085 s,@build_vendor@,$build_vendor,;t t
14086 s,@build_os@,$build_os,;t t
14087 s,@host@,$host,;t t
14088 s,@host_cpu@,$host_cpu,;t t
14089 s,@host_vendor@,$host_vendor,;t t
14090 s,@host_os@,$host_os,;t t
14091 s,@RANLIB@,$RANLIB,;t t
14092 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14094 s,@EGREP@,$EGREP,;t t
14095 s,@ALLOCA@,$ALLOCA,;t t
14096 s,@GLIBC21@,$GLIBC21,;t t
14097 s,@LIBICONV@,$LIBICONV,;t t
14098 s,@LTLIBICONV@,$LTLIBICONV,;t t
14099 s,@INTLBISON@,$INTLBISON,;t t
14100 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
14101 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
14102 s,@CATOBJEXT@,$CATOBJEXT,;t t
14103 s,@DATADIRNAME@,$DATADIRNAME,;t t
14104 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
14105 s,@GENCAT@,$GENCAT,;t t
14106 s,@INTLOBJS@,$INTLOBJS,;t t
14107 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
14108 s,@INTLLIBS@,$INTLLIBS,;t t
14109 s,@LIBINTL@,$LIBINTL,;t t
14110 s,@LTLIBINTL@,$LTLIBINTL,;t t
14111 s,@POSUB@,$POSUB,;t t
14112 s,@LIBOBJS@,$LIBOBJS,;t t
14113 s,@LN_S@,$LN_S,;t t
14114 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14119 cat >>$CONFIG_STATUS <<\_ACEOF
14120 # Split the substitutions into bite-sized pieces for seds with
14121 # small command number limits, like on Digital OSF/1 and HP-UX.
14122 ac_max_sed_lines=48
14123 ac_sed_frag=1 # Number of current file.
14124 ac_beg=1 # First line for current file.
14125 ac_end=$ac_max_sed_lines # Line after last line for current file.
14128 while $ac_more_lines; do
14129 if test $ac_beg -gt 1; then
14130 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14132 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14134 if test ! -s $tmp/subs.frag; then
14135 ac_more_lines=false
14137 # The purpose of the label and of the branching condition is to
14138 # speed up the sed processing (if there are no `@' at all, there
14139 # is no need to browse any of the substitutions).
14140 # These are the two extra sed commands mentioned above.
14142 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14143 if test -z "$ac_sed_cmds"; then
14144 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14146 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14148 ac_sed_frag=`expr $ac_sed_frag + 1`
14150 ac_end=`expr $ac_end + $ac_max_sed_lines`
14153 if test -z "$ac_sed_cmds"; then
14156 fi # test -n "$CONFIG_FILES"
14159 cat >>$CONFIG_STATUS <<\_ACEOF
14160 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14161 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14163 - | *:- | *:-:* ) # input from stdin
14165 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14166 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14167 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14168 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14169 * ) ac_file_in=$ac_file.in ;;
14172 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14173 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14174 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14175 X"$ac_file" : 'X\(//\)[^/]' \| \
14176 X"$ac_file" : 'X\(//\)$' \| \
14177 X"$ac_file" : 'X\(/\)' \| \
14178 . : '\(.\)' 2>/dev/null ||
14180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14181 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14182 /^X\(\/\/\)$/{ s//\1/; q; }
14183 /^X\(\/\).*/{ s//\1/; q; }
14185 { if $as_mkdir_p; then
14190 while test ! -d "$as_dir"; do
14191 as_dirs="$as_dir $as_dirs"
14192 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14193 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14194 X"$as_dir" : 'X\(//\)[^/]' \| \
14195 X"$as_dir" : 'X\(//\)$' \| \
14196 X"$as_dir" : 'X\(/\)' \| \
14197 . : '\(.\)' 2>/dev/null ||
14199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14200 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14201 /^X\(\/\/\)$/{ s//\1/; q; }
14202 /^X\(\/\).*/{ s//\1/; q; }
14205 test ! -n "$as_dirs" || mkdir $as_dirs
14206 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14207 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14208 { (exit 1); exit 1; }; }; }
14212 if test "$ac_dir" != .; then
14213 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14214 # A "../" for each directory in $ac_dir_suffix.
14215 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14217 ac_dir_suffix= ac_top_builddir=
14221 .) # No --srcdir option. We are building in place.
14223 if test -z "$ac_top_builddir"; then
14226 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14228 [\\/]* | ?:[\\/]* ) # Absolute path.
14229 ac_srcdir=$srcdir$ac_dir_suffix;
14230 ac_top_srcdir=$srcdir ;;
14231 *) # Relative path.
14232 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14233 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14236 # Do not use `cd foo && pwd` to compute absolute paths, because
14237 # the directories may not exist.
14239 .) ac_abs_builddir="$ac_dir";;
14242 .) ac_abs_builddir=`pwd`;;
14243 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14244 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14247 case $ac_abs_builddir in
14248 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14250 case ${ac_top_builddir}. in
14251 .) ac_abs_top_builddir=$ac_abs_builddir;;
14252 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14253 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14256 case $ac_abs_builddir in
14257 .) ac_abs_srcdir=$ac_srcdir;;
14260 .) ac_abs_srcdir=$ac_abs_builddir;;
14261 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14262 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14265 case $ac_abs_builddir in
14266 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14268 case $ac_top_srcdir in
14269 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14270 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14271 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14277 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14278 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
14281 if test x"$ac_file" != x-; then
14282 { echo "$as_me:$LINENO: creating $ac_file" >&5
14283 echo "$as_me: creating $ac_file" >&6;}
14286 # Let's still pretend it is `configure' which instantiates (i.e., don't
14287 # use $as_me), people would be surprised to read:
14288 # /* config.h. Generated by config.status. */
14289 if test x"$ac_file" = x-; then
14292 configure_input="$ac_file. "
14294 configure_input=$configure_input"Generated from `echo $ac_file_in |
14295 sed 's,.*/,,'` by configure."
14297 # First look for the input files in the build tree, otherwise in the
14299 ac_file_inputs=`IFS=:
14300 for f in $ac_file_in; do
14302 -) echo $tmp/stdin ;;
14304 # Absolute (can't be DOS-style, as IFS=:)
14305 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14306 echo "$as_me: error: cannot find input file: $f" >&2;}
14307 { (exit 1); exit 1; }; }
14310 if test -f "$f"; then
14313 elif test -f "$srcdir/$f"; then
14318 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14319 echo "$as_me: error: cannot find input file: $f" >&2;}
14320 { (exit 1); exit 1; }; }
14323 done` || { (exit 1); exit 1; }
14325 cat >>$CONFIG_STATUS <<_ACEOF
14329 cat >>$CONFIG_STATUS <<\_ACEOF
14331 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14332 s,@configure_input@,$configure_input,;t t
14333 s,@srcdir@,$ac_srcdir,;t t
14334 s,@abs_srcdir@,$ac_abs_srcdir,;t t
14335 s,@top_srcdir@,$ac_top_srcdir,;t t
14336 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
14337 s,@builddir@,$ac_builddir,;t t
14338 s,@abs_builddir@,$ac_abs_builddir,;t t
14339 s,@top_builddir@,$ac_top_builddir,;t t
14340 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
14341 s,@INSTALL@,$ac_INSTALL,;t t
14342 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
14344 if test x"$ac_file" != x-; then
14345 mv $tmp/out $ac_file
14353 cat >>$CONFIG_STATUS <<\_ACEOF
14356 # CONFIG_HEADER section.
14359 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
14360 # NAME is the cpp macro being defined and VALUE is the value it is being given.
14362 # ac_d sets the value in "#define NAME VALUE" lines.
14363 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
14364 ac_dB='[ ].*$,\1#\2'
14367 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
14368 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
14369 ac_uB='$,\1#\2define\3'
14373 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
14374 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14376 - | *:- | *:-:* ) # input from stdin
14378 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14379 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14380 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14381 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14382 * ) ac_file_in=$ac_file.in ;;
14385 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
14386 echo "$as_me: creating $ac_file" >&6;}
14388 # First look for the input files in the build tree, otherwise in the
14390 ac_file_inputs=`IFS=:
14391 for f in $ac_file_in; do
14393 -) echo $tmp/stdin ;;
14395 # Absolute (can't be DOS-style, as IFS=:)
14396 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14397 echo "$as_me: error: cannot find input file: $f" >&2;}
14398 { (exit 1); exit 1; }; }
14399 # Do quote $f, to prevent DOS paths from being IFS'd.
14402 if test -f "$f"; then
14405 elif test -f "$srcdir/$f"; then
14410 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
14411 echo "$as_me: error: cannot find input file: $f" >&2;}
14412 { (exit 1); exit 1; }; }
14415 done` || { (exit 1); exit 1; }
14416 # Remove the trailing spaces.
14417 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
14421 # Transform confdefs.h into two sed scripts, `conftest.defines' and
14422 # `conftest.undefs', that substitutes the proper values into
14423 # config.h.in to produce config.h. The first handles `#define'
14424 # templates, and the second `#undef' templates.
14425 # And first: Protect against being on the right side of a sed subst in
14426 # config.status. Protect against being in an unquoted here document
14427 # in config.status.
14428 rm -f conftest.defines conftest.undefs
14429 # Using a here document instead of a string reduces the quoting nightmare.
14430 # Putting comments in sed scripts is not portable.
14432 # `end' is used to avoid that the second main sed command (meant for
14433 # 0-ary CPP macros) applies to n-ary macro definitions.
14434 # See the Autoconf documentation for `clear'.
14435 cat >confdef2sed.sed <<\_ACEOF
14440 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14442 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14445 # If some macros were called several times there might be several times
14446 # the same #defines, which is useless. Nevertheless, we may not want to
14447 # sort them, since we want the *last* AC-DEFINE to be honored.
14448 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14449 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14450 rm -f confdef2sed.sed
14452 # This sed command replaces #undef with comments. This is necessary, for
14453 # example, in the case of _POSIX_SOURCE, which is predefined and required
14454 # on some systems where configure will not decide to define it.
14455 cat >>conftest.undefs <<\_ACEOF
14456 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14459 # Break up conftest.defines because some shells have a limit on the size
14460 # of here documents, and old seds have small limits too (100 cmds).
14461 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14462 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14463 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14464 echo ' :' >>$CONFIG_STATUS
14465 rm -f conftest.tail
14466 while grep . conftest.defines >/dev/null
14468 # Write a limited-size here document to $tmp/defines.sed.
14469 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14470 # Speed up: don't consider the non `#define' lines.
14471 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14472 # Work around the forget-to-reset-the-flag bug.
14473 echo 't clr' >>$CONFIG_STATUS
14474 echo ': clr' >>$CONFIG_STATUS
14475 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14477 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14479 mv $tmp/out $tmp/in
14481 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14482 rm -f conftest.defines
14483 mv conftest.tail conftest.defines
14485 rm -f conftest.defines
14486 echo ' fi # grep' >>$CONFIG_STATUS
14487 echo >>$CONFIG_STATUS
14489 # Break up conftest.undefs because some shells have a limit on the size
14490 # of here documents, and old seds have small limits too (100 cmds).
14491 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14492 rm -f conftest.tail
14493 while grep . conftest.undefs >/dev/null
14495 # Write a limited-size here document to $tmp/undefs.sed.
14496 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14497 # Speed up: don't consider the non `#undef'
14498 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14499 # Work around the forget-to-reset-the-flag bug.
14500 echo 't clr' >>$CONFIG_STATUS
14501 echo ': clr' >>$CONFIG_STATUS
14502 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14504 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14506 mv $tmp/out $tmp/in
14508 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14509 rm -f conftest.undefs
14510 mv conftest.tail conftest.undefs
14512 rm -f conftest.undefs
14514 cat >>$CONFIG_STATUS <<\_ACEOF
14515 # Let's still pretend it is `configure' which instantiates (i.e., don't
14516 # use $as_me), people would be surprised to read:
14517 # /* config.h. Generated by config.status. */
14518 if test x"$ac_file" = x-; then
14519 echo "/* Generated by configure. */" >$tmp/config.h
14521 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14523 cat $tmp/in >>$tmp/config.h
14525 if test x"$ac_file" != x-; then
14526 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
14527 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14528 echo "$as_me: $ac_file is unchanged" >&6;}
14530 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14531 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14532 X"$ac_file" : 'X\(//\)[^/]' \| \
14533 X"$ac_file" : 'X\(//\)$' \| \
14534 X"$ac_file" : 'X\(/\)' \| \
14535 . : '\(.\)' 2>/dev/null ||
14537 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14538 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14539 /^X\(\/\/\)$/{ s//\1/; q; }
14540 /^X\(\/\).*/{ s//\1/; q; }
14542 { if $as_mkdir_p; then
14547 while test ! -d "$as_dir"; do
14548 as_dirs="$as_dir $as_dirs"
14549 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14550 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14551 X"$as_dir" : 'X\(//\)[^/]' \| \
14552 X"$as_dir" : 'X\(//\)$' \| \
14553 X"$as_dir" : 'X\(/\)' \| \
14554 . : '\(.\)' 2>/dev/null ||
14556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14557 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14558 /^X\(\/\/\)$/{ s//\1/; q; }
14559 /^X\(\/\).*/{ s//\1/; q; }
14562 test ! -n "$as_dirs" || mkdir $as_dirs
14563 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14564 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14565 { (exit 1); exit 1; }; }; }
14568 mv $tmp/config.h $ac_file
14572 rm -f $tmp/config.h
14574 # Compute $ac_file's index in $config_headers.
14576 for _am_header in $config_headers :; do
14577 case $_am_header in
14578 $ac_file | $ac_file:* )
14581 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14584 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
14585 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14586 X$ac_file : 'X\(//\)[^/]' \| \
14587 X$ac_file : 'X\(//\)$' \| \
14588 X$ac_file : 'X\(/\)' \| \
14589 . : '\(.\)' 2>/dev/null ||
14591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14592 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14593 /^X\(\/\/\)$/{ s//\1/; q; }
14594 /^X\(\/\).*/{ s//\1/; q; }
14595 s/.*/./; q'`/stamp-h$_am_stamp_count
14598 cat >>$CONFIG_STATUS <<\_ACEOF
14601 # CONFIG_COMMANDS section.
14603 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
14604 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
14605 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
14606 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
14607 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14608 X"$ac_dest" : 'X\(//\)[^/]' \| \
14609 X"$ac_dest" : 'X\(//\)$' \| \
14610 X"$ac_dest" : 'X\(/\)' \| \
14611 . : '\(.\)' 2>/dev/null ||
14613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14614 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14615 /^X\(\/\/\)$/{ s//\1/; q; }
14616 /^X\(\/\).*/{ s//\1/; q; }
14618 { if $as_mkdir_p; then
14623 while test ! -d "$as_dir"; do
14624 as_dirs="$as_dir $as_dirs"
14625 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14626 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14627 X"$as_dir" : 'X\(//\)[^/]' \| \
14628 X"$as_dir" : 'X\(//\)$' \| \
14629 X"$as_dir" : 'X\(/\)' \| \
14630 . : '\(.\)' 2>/dev/null ||
14632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14633 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14634 /^X\(\/\/\)$/{ s//\1/; q; }
14635 /^X\(\/\).*/{ s//\1/; q; }
14638 test ! -n "$as_dirs" || mkdir $as_dirs
14639 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14640 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14641 { (exit 1); exit 1; }; }; }
14645 if test "$ac_dir" != .; then
14646 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14647 # A "../" for each directory in $ac_dir_suffix.
14648 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
14650 ac_dir_suffix= ac_top_builddir=
14654 .) # No --srcdir option. We are building in place.
14656 if test -z "$ac_top_builddir"; then
14659 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
14661 [\\/]* | ?:[\\/]* ) # Absolute path.
14662 ac_srcdir=$srcdir$ac_dir_suffix;
14663 ac_top_srcdir=$srcdir ;;
14664 *) # Relative path.
14665 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
14666 ac_top_srcdir=$ac_top_builddir$srcdir ;;
14669 # Do not use `cd foo && pwd` to compute absolute paths, because
14670 # the directories may not exist.
14672 .) ac_abs_builddir="$ac_dir";;
14675 .) ac_abs_builddir=`pwd`;;
14676 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
14677 *) ac_abs_builddir=`pwd`/"$ac_dir";;
14680 case $ac_abs_builddir in
14681 .) ac_abs_top_builddir=${ac_top_builddir}.;;
14683 case ${ac_top_builddir}. in
14684 .) ac_abs_top_builddir=$ac_abs_builddir;;
14685 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
14686 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
14689 case $ac_abs_builddir in
14690 .) ac_abs_srcdir=$ac_srcdir;;
14693 .) ac_abs_srcdir=$ac_abs_builddir;;
14694 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
14695 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
14698 case $ac_abs_builddir in
14699 .) ac_abs_top_srcdir=$ac_top_srcdir;;
14701 case $ac_top_srcdir in
14702 .) ac_abs_top_srcdir=$ac_abs_builddir;;
14703 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
14704 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
14709 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
14710 echo "$as_me: executing $ac_dest commands" >&6;}
14712 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14713 # Strip MF so we end up with the name of the file.
14714 mf=`echo "$mf" | sed -e 's/:.*$//'`
14715 # Check whether this is an Automake generated Makefile or not.
14716 # We used to match only the files named `Makefile.in', but
14717 # some people rename them; so instead we look at the file content.
14718 # Grep'ing the first line is not enough: some people post-process
14719 # each Makefile.in and add a new line on top of each file to say so.
14720 # So let's grep whole file.
14721 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
14722 dirpart=`(dirname "$mf") 2>/dev/null ||
14723 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14724 X"$mf" : 'X\(//\)[^/]' \| \
14725 X"$mf" : 'X\(//\)$' \| \
14726 X"$mf" : 'X\(/\)' \| \
14727 . : '\(.\)' 2>/dev/null ||
14729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14730 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14731 /^X\(\/\/\)$/{ s//\1/; q; }
14732 /^X\(\/\).*/{ s//\1/; q; }
14737 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
14738 # Extract the definition of DEP_FILES from the Makefile without
14740 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
14741 test -z "$DEPDIR" && continue
14742 # When using ansi2knr, U may be empty or an underscore; expand it
14743 U=`sed -n -e '/^U = / s///p' < "$mf"`
14744 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
14745 # We invoke sed twice because it is the simplest approach to
14746 # changing $(DEPDIR) to its actual value in the expansion.
14747 for file in `sed -n -e '
14748 /^DEP_FILES = .*\\\\$/ {
14757 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
14758 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14759 # Make sure the directory exists.
14760 test -f "$dirpart/$file" && continue
14761 fdir=`(dirname "$file") 2>/dev/null ||
14762 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14763 X"$file" : 'X\(//\)[^/]' \| \
14764 X"$file" : 'X\(//\)$' \| \
14765 X"$file" : 'X\(/\)' \| \
14766 . : '\(.\)' 2>/dev/null ||
14768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14769 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14770 /^X\(\/\/\)$/{ s//\1/; q; }
14771 /^X\(\/\).*/{ s//\1/; q; }
14773 { if $as_mkdir_p; then
14774 mkdir -p $dirpart/$fdir
14776 as_dir=$dirpart/$fdir
14778 while test ! -d "$as_dir"; do
14779 as_dirs="$as_dir $as_dirs"
14780 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14781 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14782 X"$as_dir" : 'X\(//\)[^/]' \| \
14783 X"$as_dir" : 'X\(//\)$' \| \
14784 X"$as_dir" : 'X\(/\)' \| \
14785 . : '\(.\)' 2>/dev/null ||
14787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14788 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14789 /^X\(\/\/\)$/{ s//\1/; q; }
14790 /^X\(\/\).*/{ s//\1/; q; }
14793 test ! -n "$as_dirs" || mkdir $as_dirs
14794 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
14795 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
14796 { (exit 1); exit 1; }; }; }
14798 # echo "creating $dirpart/$file"
14799 echo '# dummy' > "$dirpart/$file"
14804 for ac_file in $CONFIG_FILES; do
14805 # Support "outfile[:infile[:infile...]]"
14807 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14809 # PO directories have a Makefile.in generated from Makefile.in.in.
14810 case "$ac_file" in */Makefile.in)
14811 # Adjust a relative srcdir.
14812 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14813 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
14814 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14815 # In autoconf-2.13 it is called $ac_given_srcdir.
14816 # In autoconf-2.50 it is called $srcdir.
14817 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14818 case "$ac_given_srcdir" in
14819 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14820 /*) top_srcdir="$ac_given_srcdir" ;;
14821 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14823 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14824 rm -f "$ac_dir/POTFILES"
14825 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14826 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
14827 POMAKEFILEDEPS="POTFILES.in"
14828 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
14829 # on $ac_dir but don't depend on user-specified configuration
14831 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14832 # The LINGUAS file contains the set of available languages.
14833 if test -n "$OBSOLETE_ALL_LINGUAS"; then
14834 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14836 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
14837 # Hide the ALL_LINGUAS assigment from automake.
14838 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
14839 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14841 # The set of available languages was given in configure.in.
14842 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
14844 case "$ac_given_srcdir" in
14846 *) srcdirpre='$(srcdir)/' ;;
14852 for lang in $ALL_LINGUAS; do
14853 POFILES="$POFILES $srcdirpre$lang.po"
14854 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
14855 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14856 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
14858 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14859 # environment variable.
14861 if test -n "$ALL_LINGUAS"; then
14862 for presentlang in $ALL_LINGUAS; do
14864 if test "%UNSET%" != "$LINGUAS"; then
14865 desiredlanguages="$LINGUAS"
14867 desiredlanguages="$ALL_LINGUAS"
14869 for desiredlang in $desiredlanguages; do
14870 # Use the presentlang catalog if desiredlang is
14871 # a. equal to presentlang, or
14872 # b. a variant of presentlang (because in this case,
14873 # presentlang can be used as a fallback for messages
14874 # which are not translated in the desiredlang catalog).
14875 case "$desiredlang" in
14876 "$presentlang"*) useit=yes;;
14879 if test $useit = yes; then
14880 INST_LINGUAS="$INST_LINGUAS $presentlang"
14885 if test -n "$INST_LINGUAS"; then
14886 for lang in $INST_LINGUAS; do
14887 CATALOGS="$CATALOGS $lang.gmo"
14890 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
14891 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
14892 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14893 if test -f "$f"; then
14895 *.orig | *.bak | *~) ;;
14896 *) cat "$f" >> "$ac_dir/Makefile" ;;
14905 # Copy pref.h from pref.h.orig if prudent
14906 if test ! -f pref.h; then
14907 echo "creating pref.h"
14908 cp $ac_given_srcdir/pref.h.orig pref.h
14909 elif test "`ls -t pref.h.orig pref.h 2>/dev/null | sed 1q`" = pref.h.orig; then
14910 echo "replacing pref.h with newer pref.h.orig"
14911 cp $ac_given_srcdir/pref.h.orig pref.h
14913 echo "pref.h exists"
14915 if test -f pref.h; then touch pref.h; fi
14921 cat >>$CONFIG_STATUS <<\_ACEOF
14923 { (exit 0); exit 0; }
14925 chmod +x $CONFIG_STATUS
14926 ac_clean_files=$ac_clean_files_save
14929 # configure is writing to config.log, and then calls config.status.
14930 # config.status does its own redirection, appending to config.log.
14931 # Unfortunately, on DOS this fails, as config.log is still kept open
14932 # by configure, so config.status won't be able to write to it; its
14933 # output is simply discarded. So we exec the FD to /dev/null,
14934 # effectively closing config.log, so it can be properly (re)opened and
14935 # appended to by config.status. When coming back to configure, we
14936 # need to make the FD available again.
14937 if test "$no_create" != yes; then
14939 ac_config_status_args=
14940 test "$silent" = yes &&
14941 ac_config_status_args="$ac_config_status_args --quiet"
14943 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14945 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14946 # would make configure fail if this is the last instruction.
14947 $ac_cs_success || { (exit 1); exit 1; }