2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="mutt.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP U ANSI2KNR RANLIB ac_ct_RANLIB AR ac_ct_AR DBX GDB SDB DEBUGGER SENDMAIL GPGME_CONFIG LIBGPGME_CFLAGS LIBGPGME_LIBS OPS PGPAUX_TARGET SMIMEAUX_TARGET SUBVERSION ISPELL LIBOBJS DOTLOCK_TARGET docdir DOTLOCK_GROUP DOTLOCK_PERMISSION BUILD_IMAP_TRUE BUILD_IMAP_FALSE KRB5CFGPATH USE_GSS_TRUE USE_GSS_FALSE USE_SSL_TRUE USE_SSL_FALSE USE_GNUTLS_TRUE USE_GNUTLS_FALSE LIBGNUTLS_CONFIG LIBGNUTLS_CFLAGS LIBGNUTLS_LIBS USE_SASL_TRUE USE_SASL_FALSE MUTTLIBS MUTT_LIB_OBJECTS LIBIMAP LIBIMAPDEPS ALLOCA GLIBC21 LIBICONV USE_NLS MSGFMT GMSGFMT XGETTEXT INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT GMOFILES INTLLIBS INTLOBJS POFILES POSUB DATADIRNAME INSTOBJEXT GENCAT MKINSTALLDIRS INTL_LIBTOOL_SUFFIX_PREFIX mutt_libesmtp_config_path LTLIBOBJS'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
775 # Report the --help message.
777 if test "$ac_init_help" = "long"; then
778 # Omit some internal or obsolete options to make the list less imposing.
779 # This message is too long to be a string in the A/UX 3.1 sh.
781 \`configure' configures this package to adapt to many kinds of systems.
783 Usage: $0 [OPTION]... [VAR=VALUE]...
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE. See below for descriptions of some of the useful variables.
788 Defaults for the options are specified in brackets.
791 -h, --help display this help and exit
792 --help=short display options specific to this package
793 --help=recursive display the short help of all the included packages
794 -V, --version display version information and exit
795 -q, --quiet, --silent do not print \`checking...' messages
796 --cache-file=FILE cache test results in FILE [disabled]
797 -C, --config-cache alias for \`--cache-file=config.cache'
798 -n, --no-create do not create output files
799 --srcdir=DIR find the sources in DIR [configure dir or \`..']
804 Installation directories:
805 --prefix=PREFIX install architecture-independent files in PREFIX
807 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
815 For better control, use the options below.
817 Fine tuning of the installation directories:
818 --bindir=DIR user executables [EPREFIX/bin]
819 --sbindir=DIR system admin executables [EPREFIX/sbin]
820 --libexecdir=DIR program executables [EPREFIX/libexec]
821 --datadir=DIR read-only architecture-independent data [PREFIX/share]
822 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
823 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
824 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
825 --libdir=DIR object code libraries [EPREFIX/lib]
826 --includedir=DIR C header files [PREFIX/include]
827 --oldincludedir=DIR C header files for non-gcc [/usr/include]
828 --infodir=DIR info documentation [PREFIX/info]
829 --mandir=DIR man documentation [PREFIX/man]
835 --program-prefix=PREFIX prepend PREFIX to installed program names
836 --program-suffix=SUFFIX append SUFFIX to installed program names
837 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
840 --build=BUILD configure for building on BUILD [guessed]
841 --host=HOST cross-compile to build programs to run on HOST [BUILD]
845 if test -n "$ac_init_help"; then
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852 --disable-dependency-tracking Speeds up one-time builds
853 --enable-dependency-tracking Do not reject slow dependency extractors
854 --disable-largefile omit support for large files
855 --enable-gpgme Enable GPGME support
856 --disable-pgp Disable PGP support
857 --disable-smime Disable SMIME support
858 --enable-external-dotlock
859 Force use of an external dotlock program
860 --enable-pop Enable POP3 support
861 --enable-imap Enable IMAP support
862 --enable-nntp Enable NNTP support
863 --enable-debug Enable debugging support
864 --enable-flock Use flock() to lock files
865 --disable-fcntl Do NOT use fcntl() to lock files
866 --enable-inodesort Read files in maildir folders sorted by inode.
867 --disable-warnings Turn off compiler warnings (not recommended)
868 --enable-nfs-fix Work around an NFS with broken attributes caching
869 --enable-buffy-size Use file size attribute instead of access time
870 --enable-mailtool Enable Sun mailtool attachments support
871 --enable-compressed Enable compressed folders support
872 --enable-locales-fix The result of isprint() is unreliable
873 --enable-exact-address Enable regeneration of email addresses
874 --enable-hcache Enable header caching
875 --disable-iconv Disable iconv support
876 --disable-nls Do not use Native Language Support
879 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
880 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
881 --with-gpgme-prefix=PFX prefix where GPGME is installed (optional)
882 --with-mixmaster=PATH Include Mixmaster support
883 --with-slang=DIR Use S-Lang instead of ncurses
884 --with-curses=DIR Where ncurses is installed
885 --with-regex Use the GNU regex library
886 --with-homespool=FILE File in user's directory where new mail is spooled
887 --with-mailpath=DIR Directory where spool mailboxes are located
888 --with-docdir=PATH Specify where to put the documentation
889 --with-domain=DOMAIN Specify your DNS domain name
890 --with-gss=PFX Compile in GSSAPI authentication for IMAP
891 --with-ssl=PFX Compile in SSL support for POP/IMAP
892 --with-gnutls=PFX Compile in GNU TLS support for POP/IMAP
893 --with-nss=PFX Compile in SSL support for POP/IMAP via NSS
894 --with-gnutls=PFX Enable SSL support using gnutls
895 --with-sasl=PFX Use Cyrus SASL library for POP/IMAP authentication
896 --with-sasl2=PFX Use Cyrus SASL library version 2 for POP/IMAP
898 --with-idn=PFX Use GNU libidn for domain names
899 --with-exec-shell=SHELL Specify alternate shell (ONLY if /bin/sh is broken)
900 --without-gdbm Don't use gdbm even if it is available
901 --with-bdb=DIR Use BerkeleyDB4 if gdbm is not available
902 --with-libiconv-prefix=DIR
903 Search for libiconv in DIR/include and DIR/lib
904 --with-included-gettext Use the GNU gettext library included here
905 --without-wc-funcs Do not use the system's wchar_t functions
906 --with-libesmtp=DIR Compile in support for libesmtp for the MTA
908 Some influential environment variables:
909 CC C compiler command
910 CFLAGS C compiler flags
911 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
912 nonstandard directory <lib dir>
913 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
914 headers in a nonstandard directory <include dir>
917 Use these variables to override the choices made by `configure' or to help
918 it to find libraries and programs with nonstandard names/locations.
923 if test "$ac_init_help" = "recursive"; then
924 # If there are subdirs, report their specific --help.
926 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
927 test -d $ac_dir || continue
930 if test "$ac_dir" != .; then
931 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
932 # A "../" for each directory in $ac_dir_suffix.
933 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
935 ac_dir_suffix= ac_top_builddir=
939 .) # No --srcdir option. We are building in place.
941 if test -z "$ac_top_builddir"; then
944 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
946 [\\/]* | ?:[\\/]* ) # Absolute path.
947 ac_srcdir=$srcdir$ac_dir_suffix;
948 ac_top_srcdir=$srcdir ;;
950 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
951 ac_top_srcdir=$ac_top_builddir$srcdir ;;
954 # Do not use `cd foo && pwd` to compute absolute paths, because
955 # the directories may not exist.
957 .) ac_abs_builddir="$ac_dir";;
960 .) ac_abs_builddir=`pwd`;;
961 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
962 *) ac_abs_builddir=`pwd`/"$ac_dir";;
965 case $ac_abs_builddir in
966 .) ac_abs_top_builddir=${ac_top_builddir}.;;
968 case ${ac_top_builddir}. in
969 .) ac_abs_top_builddir=$ac_abs_builddir;;
970 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
971 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
974 case $ac_abs_builddir in
975 .) ac_abs_srcdir=$ac_srcdir;;
978 .) ac_abs_srcdir=$ac_abs_builddir;;
979 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
980 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
983 case $ac_abs_builddir in
984 .) ac_abs_top_srcdir=$ac_top_srcdir;;
986 case $ac_top_srcdir in
987 .) ac_abs_top_srcdir=$ac_abs_builddir;;
988 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
989 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
994 # Check for guested configure; otherwise get Cygnus style configure.
995 if test -f $ac_srcdir/configure.gnu; then
997 $SHELL $ac_srcdir/configure.gnu --help=recursive
998 elif test -f $ac_srcdir/configure; then
1000 $SHELL $ac_srcdir/configure --help=recursive
1001 elif test -f $ac_srcdir/configure.ac ||
1002 test -f $ac_srcdir/configure.in; then
1004 $ac_configure --help
1006 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1012 test -n "$ac_init_help" && exit 0
1013 if $ac_init_version; then
1016 Copyright (C) 2003 Free Software Foundation, Inc.
1017 This configure script is free software; the Free Software Foundation
1018 gives unlimited permission to copy, distribute and modify it.
1024 This file contains any messages produced by compilers while
1025 running configure, to aid debugging if configure makes a mistake.
1027 It was created by $as_me, which was
1028 generated by GNU Autoconf 2.59. Invocation command line was
1039 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1040 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1041 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1042 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1043 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1045 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1046 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1048 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1049 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1050 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1051 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1052 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1053 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1054 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1062 test -z "$as_dir" && as_dir=.
1063 echo "PATH: $as_dir"
1078 # Keep a trace of the command line.
1079 # Strip out --no-create and --no-recursion so they do not pile up.
1080 # Strip out --silent because we don't want to record it for future runs.
1081 # Also quote any args containing shell meta-characters.
1082 # Make two passes to allow for proper duplicate-argument suppression.
1087 ac_must_keep_next=false
1093 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095 | -silent | --silent | --silen | --sile | --sil)
1097 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1098 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1101 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1103 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1104 if test $ac_must_keep_next = true; then
1105 ac_must_keep_next=false # Got value, back to normal.
1108 *=* | --config-cache | -C | -disable-* | --disable-* \
1109 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1110 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1111 | -with-* | --with-* | -without-* | --without-* | --x)
1112 case "$ac_configure_args0 " in
1113 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1116 -* ) ac_must_keep_next=true ;;
1119 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1120 # Get rid of the leading space.
1126 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1127 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1129 # When interrupted or exit'd, cleanup temporary files, and complete
1130 # config.log. We remove comments because anyway the quotes in there
1131 # would cause problems or look ugly.
1132 # WARNING: Be sure not to use single quotes in there, as some shells,
1133 # such as our DU 5.0 friend, will then `close' the trap.
1134 trap 'exit_status=$?
1135 # Save into config.log some information that might help in debugging.
1140 ## ---------------- ##
1141 ## Cache variables. ##
1142 ## ---------------- ##
1145 # The following way of writing the cache mishandles newlines in values,
1148 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1151 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1152 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1156 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1163 ## ----------------- ##
1164 ## Output variables. ##
1165 ## ----------------- ##
1168 for ac_var in $ac_subst_vars
1170 eval ac_val=$`echo $ac_var`
1171 echo "$ac_var='"'"'$ac_val'"'"'"
1175 if test -n "$ac_subst_files"; then
1182 for ac_var in $ac_subst_files
1184 eval ac_val=$`echo $ac_var`
1185 echo "$ac_var='"'"'$ac_val'"'"'"
1190 if test -s confdefs.h; then
1197 sed "/^$/d" confdefs.h | sort
1200 test "$ac_signal" != 0 &&
1201 echo "$as_me: caught signal $ac_signal"
1202 echo "$as_me: exit $exit_status"
1204 rm -f core *.core &&
1205 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1208 for ac_signal in 1 2 13 15; do
1209 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1213 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1214 rm -rf conftest* confdefs.h
1215 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1218 # Predefined preprocessor variables.
1220 cat >>confdefs.h <<_ACEOF
1221 #define PACKAGE_NAME "$PACKAGE_NAME"
1225 cat >>confdefs.h <<_ACEOF
1226 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1230 cat >>confdefs.h <<_ACEOF
1231 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1235 cat >>confdefs.h <<_ACEOF
1236 #define PACKAGE_STRING "$PACKAGE_STRING"
1240 cat >>confdefs.h <<_ACEOF
1241 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1245 # Let the site file select an alternate cache file if it wants to.
1246 # Prefer explicitly selected file to automatically selected ones.
1247 if test -z "$CONFIG_SITE"; then
1248 if test "x$prefix" != xNONE; then
1249 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1251 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1254 for ac_site_file in $CONFIG_SITE; do
1255 if test -r "$ac_site_file"; then
1256 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1257 echo "$as_me: loading site script $ac_site_file" >&6;}
1258 sed 's/^/| /' "$ac_site_file" >&5
1263 if test -r "$cache_file"; then
1264 # Some versions of bash will fail to source /dev/null (special
1265 # files actually), so we avoid doing that.
1266 if test -f "$cache_file"; then
1267 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1268 echo "$as_me: loading cache $cache_file" >&6;}
1270 [\\/]* | ?:[\\/]* ) . $cache_file;;
1271 *) . ./$cache_file;;
1275 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1276 echo "$as_me: creating cache $cache_file" >&6;}
1280 # Check that the precious variables saved in the cache have kept the same
1282 ac_cache_corrupted=false
1283 for ac_var in `(set) 2>&1 |
1284 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1285 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1286 eval ac_new_set=\$ac_env_${ac_var}_set
1287 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1288 eval ac_new_val="\$ac_env_${ac_var}_value"
1289 case $ac_old_set,$ac_new_set in
1291 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1292 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1293 ac_cache_corrupted=: ;;
1295 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1296 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1297 ac_cache_corrupted=: ;;
1300 if test "x$ac_old_val" != "x$ac_new_val"; then
1301 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1302 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1303 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1304 echo "$as_me: former value: $ac_old_val" >&2;}
1305 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1306 echo "$as_me: current value: $ac_new_val" >&2;}
1307 ac_cache_corrupted=:
1310 # Pass precious variables to config.status.
1311 if test "$ac_new_set" = set; then
1313 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1314 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1315 *) ac_arg=$ac_var=$ac_new_val ;;
1317 case " $ac_configure_args " in
1318 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1319 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1323 if $ac_cache_corrupted; then
1324 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1325 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1326 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1327 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1328 { (exit 1); exit 1; }; }
1332 ac_cpp='$CPP $CPPFLAGS'
1333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1355 ac_config_headers="$ac_config_headers config.h"
1358 mutt_cv_version=`cat $srcdir/VERSION`
1360 am__api_version="1.7"
1362 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1363 if test -f $ac_dir/install-sh; then
1365 ac_install_sh="$ac_aux_dir/install-sh -c"
1367 elif test -f $ac_dir/install.sh; then
1369 ac_install_sh="$ac_aux_dir/install.sh -c"
1371 elif test -f $ac_dir/shtool; then
1373 ac_install_sh="$ac_aux_dir/shtool install -c"
1377 if test -z "$ac_aux_dir"; then
1378 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1379 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1380 { (exit 1); exit 1; }; }
1382 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1383 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1384 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1386 # Find a good install program. We prefer a C program (faster),
1387 # so one script is as good as another. But avoid the broken or
1388 # incompatible versions:
1389 # SysV /etc/install, /usr/sbin/install
1390 # SunOS /usr/etc/install
1391 # IRIX /sbin/install
1393 # AmigaOS /C/install, which installs bootblocks on floppy discs
1394 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1395 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1396 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1397 # OS/2's system install, which has a completely different semantic
1398 # ./install, which can be erroneously created by make from ./install.sh.
1399 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1400 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1401 if test -z "$INSTALL"; then
1402 if test "${ac_cv_path_install+set}" = set; then
1403 echo $ECHO_N "(cached) $ECHO_C" >&6
1405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1409 test -z "$as_dir" && as_dir=.
1410 # Account for people who put trailing slashes in PATH elements.
1412 ./ | .// | /cC/* | \
1413 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1414 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1417 # OSF1 and SCO ODT 3.0 have their own names for install.
1418 # Don't use installbsd from OSF since it installs stuff as root
1420 for ac_prog in ginstall scoinst install; do
1421 for ac_exec_ext in '' $ac_executable_extensions; do
1422 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1423 if test $ac_prog = install &&
1424 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1425 # AIX install. It has an incompatible calling convention.
1427 elif test $ac_prog = install &&
1428 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1429 # program-specific install script used by HP pwplus--don't use.
1432 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1444 if test "${ac_cv_path_install+set}" = set; then
1445 INSTALL=$ac_cv_path_install
1447 # As a last resort, use the slow shell script. We don't cache a
1448 # path for INSTALL within a source directory, because that will
1449 # break other packages using the cache if that directory is
1450 # removed, or if the path is relative.
1451 INSTALL=$ac_install_sh
1454 echo "$as_me:$LINENO: result: $INSTALL" >&5
1455 echo "${ECHO_T}$INSTALL" >&6
1457 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1458 # It thinks the first close brace ends the variable substitution.
1459 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1461 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1463 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1465 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1466 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1469 echo timestamp > conftest.file
1470 # Do `set' in a subshell so we don't clobber the current shell's
1471 # arguments. Must try -L first in case configure is actually a
1472 # symlink; some systems play weird games with the mod time of symlinks
1473 # (eg FreeBSD returns the mod time of the symlink's containing
1476 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1477 if test "$*" = "X"; then
1479 set X `ls -t $srcdir/configure conftest.file`
1482 if test "$*" != "X $srcdir/configure conftest.file" \
1483 && test "$*" != "X conftest.file $srcdir/configure"; then
1485 # If neither matched, then we have a broken ls. This can happen
1486 # if, for instance, CONFIG_SHELL is bash and it inherits a
1487 # broken ls alias from the environment. This has actually
1488 # happened. Such a system could not be considered "sane".
1489 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1490 alias in your environment" >&5
1491 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1492 alias in your environment" >&2;}
1493 { (exit 1); exit 1; }; }
1496 test "$2" = conftest.file
1502 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1503 Check your system clock" >&5
1504 echo "$as_me: error: newly created file is older than distributed files!
1505 Check your system clock" >&2;}
1506 { (exit 1); exit 1; }; }
1508 echo "$as_me:$LINENO: result: yes" >&5
1509 echo "${ECHO_T}yes" >&6
1510 test "$program_prefix" != NONE &&
1511 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1512 # Use a double $ so make ignores it.
1513 test "$program_suffix" != NONE &&
1514 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1515 # Double any \ or $. echo might interpret backslashes.
1516 # By default was `s,x,x', remove it if useless.
1517 cat <<\_ACEOF >conftest.sed
1518 s/[\\$]/&&/g;s/;s,x,x,$//
1520 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1524 # expand $ac_aux_dir to an absolute path
1525 am_aux_dir=`cd $ac_aux_dir && pwd`
1527 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1528 # Use eval to expand $SHELL
1529 if eval "$MISSING --run true"; then
1530 am_missing_run="$MISSING --run "
1533 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1534 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1537 for ac_prog in gawk mawk nawk awk
1539 # Extract the first word of "$ac_prog", so it can be a program name with args.
1540 set dummy $ac_prog; ac_word=$2
1541 echo "$as_me:$LINENO: checking for $ac_word" >&5
1542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1543 if test "${ac_cv_prog_AWK+set}" = set; then
1544 echo $ECHO_N "(cached) $ECHO_C" >&6
1546 if test -n "$AWK"; then
1547 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1553 test -z "$as_dir" && as_dir=.
1554 for ac_exec_ext in '' $ac_executable_extensions; do
1555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1556 ac_cv_prog_AWK="$ac_prog"
1557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1566 if test -n "$AWK"; then
1567 echo "$as_me:$LINENO: result: $AWK" >&5
1568 echo "${ECHO_T}$AWK" >&6
1570 echo "$as_me:$LINENO: result: no" >&5
1571 echo "${ECHO_T}no" >&6
1574 test -n "$AWK" && break
1577 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1578 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1579 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1580 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1581 echo $ECHO_N "(cached) $ECHO_C" >&6
1583 cat >conftest.make <<\_ACEOF
1585 @echo 'ac_maketemp="$(MAKE)"'
1587 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1588 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1589 if test -n "$ac_maketemp"; then
1590 eval ac_cv_prog_make_${ac_make}_set=yes
1592 eval ac_cv_prog_make_${ac_make}_set=no
1596 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1597 echo "$as_me:$LINENO: result: yes" >&5
1598 echo "${ECHO_T}yes" >&6
1601 echo "$as_me:$LINENO: result: no" >&5
1602 echo "${ECHO_T}no" >&6
1603 SET_MAKE="MAKE=${MAKE-make}"
1606 rm -rf .tst 2>/dev/null
1607 mkdir .tst 2>/dev/null
1608 if test -d .tst; then
1613 rmdir .tst 2>/dev/null
1615 # test to see if srcdir already configured
1616 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1617 test -f $srcdir/config.status; then
1618 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1619 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1620 { (exit 1); exit 1; }; }
1623 # test whether we have cygpath
1624 if test -z "$CYGPATH_W"; then
1625 if (cygpath --version) >/dev/null 2>/dev/null; then
1626 CYGPATH_W='cygpath -w'
1633 # Define the identity of the package.
1635 VERSION=$mutt_cv_version
1638 cat >>confdefs.h <<_ACEOF
1639 #define PACKAGE "$PACKAGE"
1643 cat >>confdefs.h <<_ACEOF
1644 #define VERSION "$VERSION"
1647 # Some tools Automake needs.
1649 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1652 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1655 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1658 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1661 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1664 AMTAR=${AMTAR-"${am_missing_run}tar"}
1666 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1668 # Installed binaries are usually stripped using `strip' when the user
1669 # run `make install-strip'. However `strip' might not be the right
1670 # tool to use in cross-compilation environments, therefore Automake
1671 # will honor the `STRIP' environment variable to overrule this program.
1672 if test "$cross_compiling" != no; then
1673 if test -n "$ac_tool_prefix"; then
1674 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1675 set dummy ${ac_tool_prefix}strip; ac_word=$2
1676 echo "$as_me:$LINENO: checking for $ac_word" >&5
1677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1678 if test "${ac_cv_prog_STRIP+set}" = set; then
1679 echo $ECHO_N "(cached) $ECHO_C" >&6
1681 if test -n "$STRIP"; then
1682 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1688 test -z "$as_dir" && as_dir=.
1689 for ac_exec_ext in '' $ac_executable_extensions; do
1690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1691 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1700 STRIP=$ac_cv_prog_STRIP
1701 if test -n "$STRIP"; then
1702 echo "$as_me:$LINENO: result: $STRIP" >&5
1703 echo "${ECHO_T}$STRIP" >&6
1705 echo "$as_me:$LINENO: result: no" >&5
1706 echo "${ECHO_T}no" >&6
1710 if test -z "$ac_cv_prog_STRIP"; then
1712 # Extract the first word of "strip", so it can be a program name with args.
1713 set dummy strip; ac_word=$2
1714 echo "$as_me:$LINENO: checking for $ac_word" >&5
1715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1716 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1717 echo $ECHO_N "(cached) $ECHO_C" >&6
1719 if test -n "$ac_ct_STRIP"; then
1720 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1726 test -z "$as_dir" && as_dir=.
1727 for ac_exec_ext in '' $ac_executable_extensions; do
1728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1729 ac_cv_prog_ac_ct_STRIP="strip"
1730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1736 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1739 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1740 if test -n "$ac_ct_STRIP"; then
1741 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1742 echo "${ECHO_T}$ac_ct_STRIP" >&6
1744 echo "$as_me:$LINENO: result: no" >&5
1745 echo "${ECHO_T}no" >&6
1750 STRIP="$ac_cv_prog_STRIP"
1754 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1756 # We need awk for the "check" target. The system "awk" is bad on
1764 ALL_LINGUAS="de ru it es uk fr pl nl cs id sk ko el zh_TW zh_CN pt_BR eo gl sv da lt tr ja hu et ca bg"
1766 # Make sure we can run config.sub.
1767 $ac_config_sub sun4 >/dev/null 2>&1 ||
1768 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1769 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1770 { (exit 1); exit 1; }; }
1772 echo "$as_me:$LINENO: checking build system type" >&5
1773 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1774 if test "${ac_cv_build+set}" = set; then
1775 echo $ECHO_N "(cached) $ECHO_C" >&6
1777 ac_cv_build_alias=$build_alias
1778 test -z "$ac_cv_build_alias" &&
1779 ac_cv_build_alias=`$ac_config_guess`
1780 test -z "$ac_cv_build_alias" &&
1781 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1782 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1783 { (exit 1); exit 1; }; }
1784 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1785 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1786 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1787 { (exit 1); exit 1; }; }
1790 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1791 echo "${ECHO_T}$ac_cv_build" >&6
1793 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1794 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1795 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1798 echo "$as_me:$LINENO: checking host system type" >&5
1799 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1800 if test "${ac_cv_host+set}" = set; then
1801 echo $ECHO_N "(cached) $ECHO_C" >&6
1803 ac_cv_host_alias=$host_alias
1804 test -z "$ac_cv_host_alias" &&
1805 ac_cv_host_alias=$ac_cv_build_alias
1806 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1807 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1808 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1809 { (exit 1); exit 1; }; }
1812 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1813 echo "${ECHO_T}$ac_cv_host" >&6
1815 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1816 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1817 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1821 echo "$as_me:$LINENO: checking for prefix" >&5
1822 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1823 if test x$prefix = xNONE; then
1824 mutt_cv_prefix=$ac_default_prefix
1826 mutt_cv_prefix=$prefix
1828 echo "$as_me:$LINENO: result: $mutt_cv_prefix" >&5
1829 echo "${ECHO_T}$mutt_cv_prefix" >&6
1832 ac_cpp='$CPP $CPPFLAGS'
1833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1836 if test -n "$ac_tool_prefix"; then
1837 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1838 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1839 echo "$as_me:$LINENO: checking for $ac_word" >&5
1840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1841 if test "${ac_cv_prog_CC+set}" = set; then
1842 echo $ECHO_N "(cached) $ECHO_C" >&6
1844 if test -n "$CC"; then
1845 ac_cv_prog_CC="$CC" # Let the user override the test.
1847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1851 test -z "$as_dir" && as_dir=.
1852 for ac_exec_ext in '' $ac_executable_extensions; do
1853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1854 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1864 if test -n "$CC"; then
1865 echo "$as_me:$LINENO: result: $CC" >&5
1866 echo "${ECHO_T}$CC" >&6
1868 echo "$as_me:$LINENO: result: no" >&5
1869 echo "${ECHO_T}no" >&6
1873 if test -z "$ac_cv_prog_CC"; then
1875 # Extract the first word of "gcc", so it can be a program name with args.
1876 set dummy gcc; ac_word=$2
1877 echo "$as_me:$LINENO: checking for $ac_word" >&5
1878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1879 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1880 echo $ECHO_N "(cached) $ECHO_C" >&6
1882 if test -n "$ac_ct_CC"; then
1883 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889 test -z "$as_dir" && as_dir=.
1890 for ac_exec_ext in '' $ac_executable_extensions; do
1891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1892 ac_cv_prog_ac_ct_CC="gcc"
1893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1901 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1902 if test -n "$ac_ct_CC"; then
1903 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1904 echo "${ECHO_T}$ac_ct_CC" >&6
1906 echo "$as_me:$LINENO: result: no" >&5
1907 echo "${ECHO_T}no" >&6
1915 if test -z "$CC"; then
1916 if test -n "$ac_tool_prefix"; then
1917 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1918 set dummy ${ac_tool_prefix}cc; ac_word=$2
1919 echo "$as_me:$LINENO: checking for $ac_word" >&5
1920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1921 if test "${ac_cv_prog_CC+set}" = set; then
1922 echo $ECHO_N "(cached) $ECHO_C" >&6
1924 if test -n "$CC"; then
1925 ac_cv_prog_CC="$CC" # Let the user override the test.
1927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1931 test -z "$as_dir" && as_dir=.
1932 for ac_exec_ext in '' $ac_executable_extensions; do
1933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1934 ac_cv_prog_CC="${ac_tool_prefix}cc"
1935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1944 if test -n "$CC"; then
1945 echo "$as_me:$LINENO: result: $CC" >&5
1946 echo "${ECHO_T}$CC" >&6
1948 echo "$as_me:$LINENO: result: no" >&5
1949 echo "${ECHO_T}no" >&6
1953 if test -z "$ac_cv_prog_CC"; then
1955 # Extract the first word of "cc", so it can be a program name with args.
1956 set dummy cc; ac_word=$2
1957 echo "$as_me:$LINENO: checking for $ac_word" >&5
1958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1959 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1960 echo $ECHO_N "(cached) $ECHO_C" >&6
1962 if test -n "$ac_ct_CC"; then
1963 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1969 test -z "$as_dir" && as_dir=.
1970 for ac_exec_ext in '' $ac_executable_extensions; do
1971 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1972 ac_cv_prog_ac_ct_CC="cc"
1973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1981 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1982 if test -n "$ac_ct_CC"; then
1983 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1984 echo "${ECHO_T}$ac_ct_CC" >&6
1986 echo "$as_me:$LINENO: result: no" >&5
1987 echo "${ECHO_T}no" >&6
1996 if test -z "$CC"; then
1997 # Extract the first word of "cc", so it can be a program name with args.
1998 set dummy cc; ac_word=$2
1999 echo "$as_me:$LINENO: checking for $ac_word" >&5
2000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2001 if test "${ac_cv_prog_CC+set}" = set; then
2002 echo $ECHO_N "(cached) $ECHO_C" >&6
2004 if test -n "$CC"; then
2005 ac_cv_prog_CC="$CC" # Let the user override the test.
2008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012 test -z "$as_dir" && as_dir=.
2013 for ac_exec_ext in '' $ac_executable_extensions; do
2014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2015 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2016 ac_prog_rejected=yes
2020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026 if test $ac_prog_rejected = yes; then
2027 # We found a bogon in the path, so make sure we never use it.
2028 set dummy $ac_cv_prog_CC
2030 if test $# != 0; then
2031 # We chose a different compiler from the bogus one.
2032 # However, it has the same basename, so the bogon will be chosen
2033 # first if we set CC to just the basename; use the full file name.
2035 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2041 if test -n "$CC"; then
2042 echo "$as_me:$LINENO: result: $CC" >&5
2043 echo "${ECHO_T}$CC" >&6
2045 echo "$as_me:$LINENO: result: no" >&5
2046 echo "${ECHO_T}no" >&6
2050 if test -z "$CC"; then
2051 if test -n "$ac_tool_prefix"; then
2054 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2055 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2056 echo "$as_me:$LINENO: checking for $ac_word" >&5
2057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2058 if test "${ac_cv_prog_CC+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2061 if test -n "$CC"; then
2062 ac_cv_prog_CC="$CC" # Let the user override the test.
2064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068 test -z "$as_dir" && as_dir=.
2069 for ac_exec_ext in '' $ac_executable_extensions; do
2070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2071 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2081 if test -n "$CC"; then
2082 echo "$as_me:$LINENO: result: $CC" >&5
2083 echo "${ECHO_T}$CC" >&6
2085 echo "$as_me:$LINENO: result: no" >&5
2086 echo "${ECHO_T}no" >&6
2089 test -n "$CC" && break
2092 if test -z "$CC"; then
2096 # Extract the first word of "$ac_prog", so it can be a program name with args.
2097 set dummy $ac_prog; ac_word=$2
2098 echo "$as_me:$LINENO: checking for $ac_word" >&5
2099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2100 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
2103 if test -n "$ac_ct_CC"; then
2104 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110 test -z "$as_dir" && as_dir=.
2111 for ac_exec_ext in '' $ac_executable_extensions; do
2112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2113 ac_cv_prog_ac_ct_CC="$ac_prog"
2114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2122 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2123 if test -n "$ac_ct_CC"; then
2124 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2125 echo "${ECHO_T}$ac_ct_CC" >&6
2127 echo "$as_me:$LINENO: result: no" >&5
2128 echo "${ECHO_T}no" >&6
2131 test -n "$ac_ct_CC" && break
2140 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2141 See \`config.log' for more details." >&5
2142 echo "$as_me: error: no acceptable C compiler found in \$PATH
2143 See \`config.log' for more details." >&2;}
2144 { (exit 1); exit 1; }; }
2146 # Provide some information about the compiler.
2147 echo "$as_me:$LINENO:" \
2148 "checking for C compiler version" >&5
2149 ac_compiler=`set X $ac_compile; echo $2`
2150 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2151 (eval $ac_compiler --version </dev/null >&5) 2>&5
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }
2155 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2156 (eval $ac_compiler -v </dev/null >&5) 2>&5
2158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2159 (exit $ac_status); }
2160 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2161 (eval $ac_compiler -V </dev/null >&5) 2>&5
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }
2166 cat >conftest.$ac_ext <<_ACEOF
2169 cat confdefs.h >>conftest.$ac_ext
2170 cat >>conftest.$ac_ext <<_ACEOF
2171 /* end confdefs.h. */
2181 ac_clean_files_save=$ac_clean_files
2182 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2183 # Try to create an executable without -o first, disregard a.out.
2184 # It will help us diagnose broken compilers, and finding out an intuition
2186 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2187 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2188 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2189 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2190 (eval $ac_link_default) 2>&5
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); }; then
2194 # Find the output, starting from the most likely. This scheme is
2195 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2198 # Be careful to initialize this variable, since it used to be cached.
2199 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2201 # b.out is created by i960 compilers.
2202 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2204 test -f "$ac_file" || continue
2206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2209 # This is the source file.
2212 # We found the default executable, but exeext='' is most
2216 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2217 # FIXME: I believe we export ac_cv_exeext for Libtool,
2218 # but it would be cool to find out if it's true. Does anybody
2219 # maintain Libtool? --akim.
2227 echo "$as_me: failed program was:" >&5
2228 sed 's/^/| /' conftest.$ac_ext >&5
2230 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2231 See \`config.log' for more details." >&5
2232 echo "$as_me: error: C compiler cannot create executables
2233 See \`config.log' for more details." >&2;}
2234 { (exit 77); exit 77; }; }
2237 ac_exeext=$ac_cv_exeext
2238 echo "$as_me:$LINENO: result: $ac_file" >&5
2239 echo "${ECHO_T}$ac_file" >&6
2241 # Check the compiler produces executables we can run. If not, either
2242 # the compiler is broken, or we cross compile.
2243 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2244 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2245 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2246 # If not cross compiling, check that we can run a simple program.
2247 if test "$cross_compiling" != yes; then
2248 if { ac_try='./$ac_file'
2249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2253 (exit $ac_status); }; }; then
2256 if test "$cross_compiling" = maybe; then
2259 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2260 If you meant to cross compile, use \`--host'.
2261 See \`config.log' for more details." >&5
2262 echo "$as_me: error: cannot run C compiled programs.
2263 If you meant to cross compile, use \`--host'.
2264 See \`config.log' for more details." >&2;}
2265 { (exit 1); exit 1; }; }
2269 echo "$as_me:$LINENO: result: yes" >&5
2270 echo "${ECHO_T}yes" >&6
2272 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2273 ac_clean_files=$ac_clean_files_save
2274 # Check the compiler produces executables we can run. If not, either
2275 # the compiler is broken, or we cross compile.
2276 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2277 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2278 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2279 echo "${ECHO_T}$cross_compiling" >&6
2281 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2282 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2284 (eval $ac_link) 2>&5
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }; then
2288 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2289 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2290 # work properly (i.e., refer to `conftest.exe'), while it won't with
2292 for ac_file in conftest.exe conftest conftest.*; do
2293 test -f "$ac_file" || continue
2295 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2296 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2303 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2304 See \`config.log' for more details." >&5
2305 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2306 See \`config.log' for more details." >&2;}
2307 { (exit 1); exit 1; }; }
2310 rm -f conftest$ac_cv_exeext
2311 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2312 echo "${ECHO_T}$ac_cv_exeext" >&6
2314 rm -f conftest.$ac_ext
2315 EXEEXT=$ac_cv_exeext
2317 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2318 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2319 if test "${ac_cv_objext+set}" = set; then
2320 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 cat >conftest.$ac_ext <<_ACEOF
2325 cat confdefs.h >>conftest.$ac_ext
2326 cat >>conftest.$ac_ext <<_ACEOF
2327 /* end confdefs.h. */
2337 rm -f conftest.o conftest.obj
2338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2339 (eval $ac_compile) 2>&5
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); }; then
2343 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2345 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2346 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2351 echo "$as_me: failed program was:" >&5
2352 sed 's/^/| /' conftest.$ac_ext >&5
2354 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2355 See \`config.log' for more details." >&5
2356 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2357 See \`config.log' for more details." >&2;}
2358 { (exit 1); exit 1; }; }
2361 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2363 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2364 echo "${ECHO_T}$ac_cv_objext" >&6
2365 OBJEXT=$ac_cv_objext
2367 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2368 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2369 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2372 cat >conftest.$ac_ext <<_ACEOF
2375 cat confdefs.h >>conftest.$ac_ext
2376 cat >>conftest.$ac_ext <<_ACEOF
2377 /* end confdefs.h. */
2390 rm -f conftest.$ac_objext
2391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2392 (eval $ac_compile) 2>conftest.er1
2394 grep -v '^ *+' conftest.er1 >conftest.err
2396 cat conftest.err >&5
2397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); } &&
2399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; } &&
2405 { ac_try='test -s conftest.$ac_objext'
2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; }; then
2413 echo "$as_me: failed program was:" >&5
2414 sed 's/^/| /' conftest.$ac_ext >&5
2418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2419 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2422 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2423 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2424 GCC=`test $ac_compiler_gnu = yes && echo yes`
2425 ac_test_CFLAGS=${CFLAGS+set}
2426 ac_save_CFLAGS=$CFLAGS
2428 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2429 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2430 if test "${ac_cv_prog_cc_g+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 cat >conftest.$ac_ext <<_ACEOF
2436 cat confdefs.h >>conftest.$ac_ext
2437 cat >>conftest.$ac_ext <<_ACEOF
2438 /* end confdefs.h. */
2448 rm -f conftest.$ac_objext
2449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2450 (eval $ac_compile) 2>conftest.er1
2452 grep -v '^ *+' conftest.er1 >conftest.err
2454 cat conftest.err >&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); } &&
2457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2462 (exit $ac_status); }; } &&
2463 { ac_try='test -s conftest.$ac_objext'
2464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468 (exit $ac_status); }; }; then
2471 echo "$as_me: failed program was:" >&5
2472 sed 's/^/| /' conftest.$ac_ext >&5
2476 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2478 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2479 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2480 if test "$ac_test_CFLAGS" = set; then
2481 CFLAGS=$ac_save_CFLAGS
2482 elif test $ac_cv_prog_cc_g = yes; then
2483 if test "$GCC" = yes; then
2489 if test "$GCC" = yes; then
2495 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2496 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2497 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2498 echo $ECHO_N "(cached) $ECHO_C" >&6
2500 ac_cv_prog_cc_stdc=no
2502 cat >conftest.$ac_ext <<_ACEOF
2505 cat confdefs.h >>conftest.$ac_ext
2506 cat >>conftest.$ac_ext <<_ACEOF
2507 /* end confdefs.h. */
2510 #include <sys/types.h>
2511 #include <sys/stat.h>
2512 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2513 struct buf { int x; };
2514 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2515 static char *e (p, i)
2521 static char *f (char * (*g) (char **, int), char **p, ...)
2526 s = g (p, va_arg (v,int));
2531 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2532 function prototypes and stuff, but not '\xHH' hex character constants.
2533 These don't provoke an error unfortunately, instead are silently treated
2534 as 'x'. The following induces an error, until -std1 is added to get
2535 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2536 array size at least. It's necessary to write '\x00'==0 to get something
2537 that's true only with -std1. */
2538 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2540 int test (int i, double x);
2541 struct s1 {int (*f) (int a);};
2542 struct s2 {int (*f) (double a);};
2543 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2549 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2554 # Don't try gcc -ansi; that turns off useful extensions and
2555 # breaks some systems' header files.
2556 # AIX -qlanglvl=ansi
2557 # Ultrix and OSF/1 -std1
2558 # HP-UX 10.20 and later -Ae
2559 # HP-UX older versions -Aa -D_HPUX_SOURCE
2560 # SVR4 -Xc -D__EXTENSIONS__
2561 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2563 CC="$ac_save_CC $ac_arg"
2564 rm -f conftest.$ac_objext
2565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2566 (eval $ac_compile) 2>conftest.er1
2568 grep -v '^ *+' conftest.er1 >conftest.err
2570 cat conftest.err >&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); } &&
2573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }; } &&
2579 { ac_try='test -s conftest.$ac_objext'
2580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; }; then
2585 ac_cv_prog_cc_stdc=$ac_arg
2588 echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2592 rm -f conftest.err conftest.$ac_objext
2594 rm -f conftest.$ac_ext conftest.$ac_objext
2599 case "x$ac_cv_prog_cc_stdc" in
2601 echo "$as_me:$LINENO: result: none needed" >&5
2602 echo "${ECHO_T}none needed" >&6 ;;
2604 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2605 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2606 CC="$CC $ac_cv_prog_cc_stdc" ;;
2609 # Some people use a C++ compiler to compile C. Since we use `exit',
2610 # in C++ we need to declare it. In case someone uses the same compiler
2611 # for both compiling C and C++ we need to have the C++ compiler decide
2612 # the declaration of exit, since it's the most demanding environment.
2613 cat >conftest.$ac_ext <<_ACEOF
2618 rm -f conftest.$ac_objext
2619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2620 (eval $ac_compile) 2>conftest.er1
2622 grep -v '^ *+' conftest.er1 >conftest.err
2624 cat conftest.err >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); } &&
2627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; } &&
2633 { ac_try='test -s conftest.$ac_objext'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; }; then
2639 for ac_declaration in \
2641 'extern "C" void std::exit (int) throw (); using std::exit;' \
2642 'extern "C" void std::exit (int); using std::exit;' \
2643 'extern "C" void exit (int) throw ();' \
2644 'extern "C" void exit (int);' \
2647 cat >conftest.$ac_ext <<_ACEOF
2650 cat confdefs.h >>conftest.$ac_ext
2651 cat >>conftest.$ac_ext <<_ACEOF
2652 /* end confdefs.h. */
2663 rm -f conftest.$ac_objext
2664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2665 (eval $ac_compile) 2>conftest.er1
2667 grep -v '^ *+' conftest.er1 >conftest.err
2669 cat conftest.err >&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); } &&
2672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }; } &&
2678 { ac_try='test -s conftest.$ac_objext'
2679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); }; }; then
2686 echo "$as_me: failed program was:" >&5
2687 sed 's/^/| /' conftest.$ac_ext >&5
2691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2692 cat >conftest.$ac_ext <<_ACEOF
2695 cat confdefs.h >>conftest.$ac_ext
2696 cat >>conftest.$ac_ext <<_ACEOF
2697 /* end confdefs.h. */
2707 rm -f conftest.$ac_objext
2708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2709 (eval $ac_compile) 2>conftest.er1
2711 grep -v '^ *+' conftest.er1 >conftest.err
2713 cat conftest.err >&5
2714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2715 (exit $ac_status); } &&
2716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; } &&
2722 { ac_try='test -s conftest.$ac_objext'
2723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); }; }; then
2730 echo "$as_me: failed program was:" >&5
2731 sed 's/^/| /' conftest.$ac_ext >&5
2734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2737 if test -n "$ac_declaration"; then
2738 echo '#ifdef __cplusplus' >>confdefs.h
2739 echo $ac_declaration >>confdefs.h
2740 echo '#endif' >>confdefs.h
2744 echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2750 ac_cpp='$CPP $CPPFLAGS'
2751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2754 DEPDIR="${am__leading_dot}deps"
2756 ac_config_commands="$ac_config_commands depfiles"
2759 am_make=${MAKE-make}
2760 cat > confinc << 'END'
2765 # If we don't find an include directive, just comment out the code.
2766 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2767 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2771 # First try GNU make style include.
2772 echo "include confinc" > confmf
2773 # We grep out `Entering directory' and `Leaving directory'
2774 # messages which can occur if `w' ends up in MAKEFLAGS.
2775 # In particular we don't look at `^make:' because GNU make might
2776 # be invoked under some other name (usually "gmake"), in which
2777 # case it prints its new name instead of `make'.
2778 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2783 # Now try BSD make style include.
2784 if test "$am__include" = "#"; then
2785 echo '.include "confinc"' > confmf
2786 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2787 am__include=.include
2794 echo "$as_me:$LINENO: result: $_am_result" >&5
2795 echo "${ECHO_T}$_am_result" >&6
2796 rm -f confinc confmf
2798 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2799 if test "${enable_dependency_tracking+set}" = set; then
2800 enableval="$enable_dependency_tracking"
2803 if test "x$enable_dependency_tracking" != xno; then
2804 am_depcomp="$ac_aux_dir/depcomp"
2809 if test "x$enable_dependency_tracking" != xno; then
2820 depcc="$CC" am_compiler_list=
2822 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2823 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2824 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2825 echo $ECHO_N "(cached) $ECHO_C" >&6
2827 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2828 # We make a subdir and do the tests there. Otherwise we can end up
2829 # making bogus files that we don't know about and never remove. For
2830 # instance it was reported that on HP-UX the gcc test will end up
2831 # making a dummy file named `D' -- because `-MD' means `put the output
2834 # Copy depcomp to subdir because otherwise we won't find it if we're
2835 # using a relative directory.
2836 cp "$am_depcomp" conftest.dir
2838 # We will build objects and dependencies in a subdirectory because
2839 # it helps to detect inapplicable dependency modes. For instance
2840 # both Tru64's cc and ICC support -MD to output dependencies as a
2841 # side effect of compilation, but ICC will put the dependencies in
2842 # the current directory while Tru64 will put them in the object
2846 am_cv_CC_dependencies_compiler_type=none
2847 if test "$am_compiler_list" = ""; then
2848 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2850 for depmode in $am_compiler_list; do
2851 # Setup a source with many dependencies, because some compilers
2852 # like to wrap large dependency lists on column 80 (with \), and
2853 # we should not choose a depcomp mode which is confused by this.
2855 # We need to recreate these files for each test, as the compiler may
2856 # overwrite some of them when testing with obscure command lines.
2857 # This happens at least with the AIX C compiler.
2859 for i in 1 2 3 4 5 6; do
2860 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2863 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2867 # after this tag, mechanisms are not by side-effect, so they'll
2868 # only be used when explicitly requested
2869 if test "x$enable_dependency_tracking" = xyes; then
2877 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2878 # mode. It turns out that the SunPro C++ compiler does not properly
2879 # handle `-M -o', and we need to detect this.
2880 if depmode=$depmode \
2881 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2882 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2883 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2884 >/dev/null 2>conftest.err &&
2885 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2886 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2887 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2888 # icc doesn't choke on unknown options, it will just issue warnings
2889 # (even with -Werror). So we grep stderr for any message
2890 # that says an option was ignored.
2891 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2892 am_cv_CC_dependencies_compiler_type=$depmode
2901 am_cv_CC_dependencies_compiler_type=none
2905 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2906 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2907 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2912 test "x$enable_dependency_tracking" != xno \
2913 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2915 am__fastdepCC_FALSE='#'
2917 am__fastdepCC_TRUE='#'
2918 am__fastdepCC_FALSE=
2924 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2925 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2926 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2927 echo $ECHO_N "(cached) $ECHO_C" >&6
2929 ac_check_lib_save_LIBS=$LIBS
2930 LIBS="-lcposix $LIBS"
2931 cat >conftest.$ac_ext <<_ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h. */
2938 /* Override any gcc2 internal prototype to avoid an error. */
2942 /* We use char because int might match the return type of a gcc2
2943 builtin and then its argument prototype would still apply. */
2953 rm -f conftest.$ac_objext conftest$ac_exeext
2954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2955 (eval $ac_link) 2>conftest.er1
2957 grep -v '^ *+' conftest.er1 >conftest.err
2959 cat conftest.err >&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); } &&
2962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); }; } &&
2968 { ac_try='test -s conftest$ac_exeext'
2969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; }; then
2974 ac_cv_lib_cposix_strerror=yes
2976 echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2979 ac_cv_lib_cposix_strerror=no
2981 rm -f conftest.err conftest.$ac_objext \
2982 conftest$ac_exeext conftest.$ac_ext
2983 LIBS=$ac_check_lib_save_LIBS
2985 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2986 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2987 if test $ac_cv_lib_cposix_strerror = yes; then
2988 LIBS="$LIBS -lcposix"
2996 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2997 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2998 if test "${am_cv_prog_cc_stdc+set}" = set; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3001 am_cv_prog_cc_stdc=no
3003 # Don't try gcc -ansi; that turns off useful extensions and
3004 # breaks some systems' header files.
3005 # AIX -qlanglvl=ansi
3006 # Ultrix and OSF/1 -std1
3007 # HP-UX 10.20 and later -Ae
3008 # HP-UX older versions -Aa -D_HPUX_SOURCE
3009 # SVR4 -Xc -D__EXTENSIONS__
3010 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3012 CC="$ac_save_CC $ac_arg"
3013 cat >conftest.$ac_ext <<_ACEOF
3016 cat confdefs.h >>conftest.$ac_ext
3017 cat >>conftest.$ac_ext <<_ACEOF
3018 /* end confdefs.h. */
3021 #include <sys/types.h>
3022 #include <sys/stat.h>
3023 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3024 struct buf { int x; };
3025 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3026 static char *e (p, i)
3032 static char *f (char * (*g) (char **, int), char **p, ...)
3037 s = g (p, va_arg (v,int));
3041 int test (int i, double x);
3042 struct s1 {int (*f) (int a);};
3043 struct s2 {int (*f) (double a);};
3044 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3052 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3058 rm -f conftest.$ac_objext
3059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3060 (eval $ac_compile) 2>conftest.er1
3062 grep -v '^ *+' conftest.er1 >conftest.err
3064 cat conftest.err >&5
3065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3066 (exit $ac_status); } &&
3067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); }; } &&
3073 { ac_try='test -s conftest.$ac_objext'
3074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); }; }; then
3079 am_cv_prog_cc_stdc="$ac_arg"; break
3081 echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3091 if test -z "$am_cv_prog_cc_stdc"; then
3092 echo "$as_me:$LINENO: result: none needed" >&5
3093 echo "${ECHO_T}none needed" >&6
3095 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
3096 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
3098 case "x$am_cv_prog_cc_stdc" in
3100 *) CC="$CC $am_cv_prog_cc_stdc" ;;
3104 ac_cpp='$CPP $CPPFLAGS'
3105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3108 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3109 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3110 # On Suns, sometimes $CPP names a directory.
3111 if test -n "$CPP" && test -d "$CPP"; then
3114 if test -z "$CPP"; then
3115 if test "${ac_cv_prog_CPP+set}" = set; then
3116 echo $ECHO_N "(cached) $ECHO_C" >&6
3118 # Double quotes because CPP needs to be expanded
3119 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3122 for ac_c_preproc_warn_flag in '' yes
3124 # Use a header file that comes with gcc, so configuring glibc
3125 # with a fresh cross-compiler works.
3126 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3127 # <limits.h> exists even on freestanding compilers.
3128 # On the NeXT, cc -E runs the code through the compiler's parser,
3129 # not just through cpp. "Syntax error" is here to catch this case.
3130 cat >conftest.$ac_ext <<_ACEOF
3133 cat confdefs.h >>conftest.$ac_ext
3134 cat >>conftest.$ac_ext <<_ACEOF
3135 /* end confdefs.h. */
3137 # include <limits.h>
3139 # include <assert.h>
3143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3146 grep -v '^ *+' conftest.er1 >conftest.err
3148 cat conftest.err >&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); } >/dev/null; then
3151 if test -s conftest.err; then
3152 ac_cpp_err=$ac_c_preproc_warn_flag
3153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3160 if test -z "$ac_cpp_err"; then
3163 echo "$as_me: failed program was:" >&5
3164 sed 's/^/| /' conftest.$ac_ext >&5
3166 # Broken: fails on valid input.
3169 rm -f conftest.err conftest.$ac_ext
3171 # OK, works on sane cases. Now check whether non-existent headers
3172 # can be detected and how.
3173 cat >conftest.$ac_ext <<_ACEOF
3176 cat confdefs.h >>conftest.$ac_ext
3177 cat >>conftest.$ac_ext <<_ACEOF
3178 /* end confdefs.h. */
3179 #include <ac_nonexistent.h>
3181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3184 grep -v '^ *+' conftest.er1 >conftest.err
3186 cat conftest.err >&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); } >/dev/null; then
3189 if test -s conftest.err; then
3190 ac_cpp_err=$ac_c_preproc_warn_flag
3191 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3198 if test -z "$ac_cpp_err"; then
3199 # Broken: success on invalid input.
3202 echo "$as_me: failed program was:" >&5
3203 sed 's/^/| /' conftest.$ac_ext >&5
3205 # Passes both tests.
3209 rm -f conftest.err conftest.$ac_ext
3212 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3213 rm -f conftest.err conftest.$ac_ext
3214 if $ac_preproc_ok; then
3226 echo "$as_me:$LINENO: result: $CPP" >&5
3227 echo "${ECHO_T}$CPP" >&6
3229 for ac_c_preproc_warn_flag in '' yes
3231 # Use a header file that comes with gcc, so configuring glibc
3232 # with a fresh cross-compiler works.
3233 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3234 # <limits.h> exists even on freestanding compilers.
3235 # On the NeXT, cc -E runs the code through the compiler's parser,
3236 # not just through cpp. "Syntax error" is here to catch this case.
3237 cat >conftest.$ac_ext <<_ACEOF
3240 cat confdefs.h >>conftest.$ac_ext
3241 cat >>conftest.$ac_ext <<_ACEOF
3242 /* end confdefs.h. */
3244 # include <limits.h>
3246 # include <assert.h>
3250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3253 grep -v '^ *+' conftest.er1 >conftest.err
3255 cat conftest.err >&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); } >/dev/null; then
3258 if test -s conftest.err; then
3259 ac_cpp_err=$ac_c_preproc_warn_flag
3260 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3267 if test -z "$ac_cpp_err"; then
3270 echo "$as_me: failed program was:" >&5
3271 sed 's/^/| /' conftest.$ac_ext >&5
3273 # Broken: fails on valid input.
3276 rm -f conftest.err conftest.$ac_ext
3278 # OK, works on sane cases. Now check whether non-existent headers
3279 # can be detected and how.
3280 cat >conftest.$ac_ext <<_ACEOF
3283 cat confdefs.h >>conftest.$ac_ext
3284 cat >>conftest.$ac_ext <<_ACEOF
3285 /* end confdefs.h. */
3286 #include <ac_nonexistent.h>
3288 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3289 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3291 grep -v '^ *+' conftest.er1 >conftest.err
3293 cat conftest.err >&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); } >/dev/null; then
3296 if test -s conftest.err; then
3297 ac_cpp_err=$ac_c_preproc_warn_flag
3298 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3305 if test -z "$ac_cpp_err"; then
3306 # Broken: success on invalid input.
3309 echo "$as_me: failed program was:" >&5
3310 sed 's/^/| /' conftest.$ac_ext >&5
3312 # Passes both tests.
3316 rm -f conftest.err conftest.$ac_ext
3319 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3320 rm -f conftest.err conftest.$ac_ext
3321 if $ac_preproc_ok; then
3324 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3325 See \`config.log' for more details." >&5
3326 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3327 See \`config.log' for more details." >&2;}
3328 { (exit 1); exit 1; }; }
3332 ac_cpp='$CPP $CPPFLAGS'
3333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3338 echo "$as_me:$LINENO: checking for egrep" >&5
3339 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3340 if test "${ac_cv_prog_egrep+set}" = set; then
3341 echo $ECHO_N "(cached) $ECHO_C" >&6
3343 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3344 then ac_cv_prog_egrep='grep -E'
3345 else ac_cv_prog_egrep='egrep'
3348 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3349 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3350 EGREP=$ac_cv_prog_egrep
3353 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3363 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3364 inttypes.h stdint.h unistd.h
3366 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3367 echo "$as_me:$LINENO: checking for $ac_header" >&5
3368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3369 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3370 echo $ECHO_N "(cached) $ECHO_C" >&6
3372 cat >conftest.$ac_ext <<_ACEOF
3375 cat confdefs.h >>conftest.$ac_ext
3376 cat >>conftest.$ac_ext <<_ACEOF
3377 /* end confdefs.h. */
3378 $ac_includes_default
3380 #include <$ac_header>
3382 rm -f conftest.$ac_objext
3383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3384 (eval $ac_compile) 2>conftest.er1
3386 grep -v '^ *+' conftest.er1 >conftest.err
3388 cat conftest.err >&5
3389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); } &&
3391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396 (exit $ac_status); }; } &&
3397 { ac_try='test -s conftest.$ac_objext'
3398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }; }; then
3403 eval "$as_ac_Header=yes"
3405 echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3408 eval "$as_ac_Header=no"
3410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3413 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3414 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3415 cat >>confdefs.h <<_ACEOF
3416 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3426 echo "$as_me:$LINENO: checking for function prototypes" >&5
3427 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3428 if test "$am_cv_prog_cc_stdc" != no; then
3429 echo "$as_me:$LINENO: result: yes" >&5
3430 echo "${ECHO_T}yes" >&6
3432 cat >>confdefs.h <<\_ACEOF
3433 #define PROTOTYPES 1
3438 echo "$as_me:$LINENO: result: no" >&5
3439 echo "${ECHO_T}no" >&6
3440 U=_ ANSI2KNR=./ansi2knr
3442 # Ensure some checks needed by ansi2knr itself.
3443 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3444 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3445 if test "${ac_cv_header_stdc+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3448 cat >conftest.$ac_ext <<_ACEOF
3451 cat confdefs.h >>conftest.$ac_ext
3452 cat >>conftest.$ac_ext <<_ACEOF
3453 /* end confdefs.h. */
3467 rm -f conftest.$ac_objext
3468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3469 (eval $ac_compile) 2>conftest.er1
3471 grep -v '^ *+' conftest.er1 >conftest.err
3473 cat conftest.err >&5
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); } &&
3476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); }; } &&
3482 { ac_try='test -s conftest.$ac_objext'
3483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); }; }; then
3488 ac_cv_header_stdc=yes
3490 echo "$as_me: failed program was:" >&5
3491 sed 's/^/| /' conftest.$ac_ext >&5
3493 ac_cv_header_stdc=no
3495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3497 if test $ac_cv_header_stdc = yes; then
3498 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3499 cat >conftest.$ac_ext <<_ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h. */
3508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3509 $EGREP "memchr" >/dev/null 2>&1; then
3512 ac_cv_header_stdc=no
3518 if test $ac_cv_header_stdc = yes; then
3519 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3520 cat >conftest.$ac_ext <<_ACEOF
3523 cat confdefs.h >>conftest.$ac_ext
3524 cat >>conftest.$ac_ext <<_ACEOF
3525 /* end confdefs.h. */
3529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3530 $EGREP "free" >/dev/null 2>&1; then
3533 ac_cv_header_stdc=no
3539 if test $ac_cv_header_stdc = yes; then
3540 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3541 if test "$cross_compiling" = yes; then
3544 cat >conftest.$ac_ext <<_ACEOF
3547 cat confdefs.h >>conftest.$ac_ext
3548 cat >>conftest.$ac_ext <<_ACEOF
3549 /* end confdefs.h. */
3551 #if ((' ' & 0x0FF) == 0x020)
3552 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3553 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3555 # define ISLOWER(c) \
3556 (('a' <= (c) && (c) <= 'i') \
3557 || ('j' <= (c) && (c) <= 'r') \
3558 || ('s' <= (c) && (c) <= 'z'))
3559 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3562 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3567 for (i = 0; i < 256; i++)
3568 if (XOR (islower (i), ISLOWER (i))
3569 || toupper (i) != TOUPPER (i))
3574 rm -f conftest$ac_exeext
3575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3576 (eval $ac_link) 2>&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); }; }; then
3587 echo "$as_me: program exited with status $ac_status" >&5
3588 echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3592 ac_cv_header_stdc=no
3594 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3598 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3599 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3600 if test $ac_cv_header_stdc = yes; then
3602 cat >>confdefs.h <<\_ACEOF
3603 #define STDC_HEADERS 1
3609 for ac_header in string.h
3611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3613 echo "$as_me:$LINENO: checking for $ac_header" >&5
3614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3616 echo $ECHO_N "(cached) $ECHO_C" >&6
3618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3621 # Is the header compilable?
3622 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3623 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3624 cat >conftest.$ac_ext <<_ACEOF
3627 cat confdefs.h >>conftest.$ac_ext
3628 cat >>conftest.$ac_ext <<_ACEOF
3629 /* end confdefs.h. */
3630 $ac_includes_default
3631 #include <$ac_header>
3633 rm -f conftest.$ac_objext
3634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3635 (eval $ac_compile) 2>conftest.er1
3637 grep -v '^ *+' conftest.er1 >conftest.err
3639 cat conftest.err >&5
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); } &&
3642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); }; } &&
3648 { ac_try='test -s conftest.$ac_objext'
3649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); }; }; then
3654 ac_header_compiler=yes
3656 echo "$as_me: failed program was:" >&5
3657 sed 's/^/| /' conftest.$ac_ext >&5
3659 ac_header_compiler=no
3661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3662 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3663 echo "${ECHO_T}$ac_header_compiler" >&6
3665 # Is the header present?
3666 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3667 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3668 cat >conftest.$ac_ext <<_ACEOF
3671 cat confdefs.h >>conftest.$ac_ext
3672 cat >>conftest.$ac_ext <<_ACEOF
3673 /* end confdefs.h. */
3674 #include <$ac_header>
3676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3677 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3679 grep -v '^ *+' conftest.er1 >conftest.err
3681 cat conftest.err >&5
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); } >/dev/null; then
3684 if test -s conftest.err; then
3685 ac_cpp_err=$ac_c_preproc_warn_flag
3686 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3693 if test -z "$ac_cpp_err"; then
3694 ac_header_preproc=yes
3696 echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3699 ac_header_preproc=no
3701 rm -f conftest.err conftest.$ac_ext
3702 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3703 echo "${ECHO_T}$ac_header_preproc" >&6
3705 # So? What about this header?
3706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3709 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3711 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3712 ac_header_preproc=yes
3715 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3716 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3717 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3718 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3719 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3720 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3721 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3722 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3724 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3725 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3726 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3729 ## ------------------------------------------ ##
3730 ## Report this to the AC_PACKAGE_NAME lists. ##
3731 ## ------------------------------------------ ##
3734 sed "s/^/$as_me: WARNING: /" >&2
3737 echo "$as_me:$LINENO: checking for $ac_header" >&5
3738 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3739 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3742 eval "$as_ac_Header=\$ac_header_preproc"
3744 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3745 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3749 cat >>confdefs.h <<_ACEOF
3750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3758 if test "x$U" != "x"; then
3759 { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
3760 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
3761 { (exit 1); exit 1; }; }
3764 ac_cpp='$CPP $CPPFLAGS'
3765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3768 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3769 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3770 # On Suns, sometimes $CPP names a directory.
3771 if test -n "$CPP" && test -d "$CPP"; then
3774 if test -z "$CPP"; then
3775 if test "${ac_cv_prog_CPP+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 # Double quotes because CPP needs to be expanded
3779 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3782 for ac_c_preproc_warn_flag in '' yes
3784 # Use a header file that comes with gcc, so configuring glibc
3785 # with a fresh cross-compiler works.
3786 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3787 # <limits.h> exists even on freestanding compilers.
3788 # On the NeXT, cc -E runs the code through the compiler's parser,
3789 # not just through cpp. "Syntax error" is here to catch this case.
3790 cat >conftest.$ac_ext <<_ACEOF
3793 cat confdefs.h >>conftest.$ac_ext
3794 cat >>conftest.$ac_ext <<_ACEOF
3795 /* end confdefs.h. */
3797 # include <limits.h>
3799 # include <assert.h>
3803 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3804 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3806 grep -v '^ *+' conftest.er1 >conftest.err
3808 cat conftest.err >&5
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); } >/dev/null; then
3811 if test -s conftest.err; then
3812 ac_cpp_err=$ac_c_preproc_warn_flag
3813 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3820 if test -z "$ac_cpp_err"; then
3823 echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3826 # Broken: fails on valid input.
3829 rm -f conftest.err conftest.$ac_ext
3831 # OK, works on sane cases. Now check whether non-existent headers
3832 # can be detected and how.
3833 cat >conftest.$ac_ext <<_ACEOF
3836 cat confdefs.h >>conftest.$ac_ext
3837 cat >>conftest.$ac_ext <<_ACEOF
3838 /* end confdefs.h. */
3839 #include <ac_nonexistent.h>
3841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3842 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3844 grep -v '^ *+' conftest.er1 >conftest.err
3846 cat conftest.err >&5
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); } >/dev/null; then
3849 if test -s conftest.err; then
3850 ac_cpp_err=$ac_c_preproc_warn_flag
3851 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3858 if test -z "$ac_cpp_err"; then
3859 # Broken: success on invalid input.
3862 echo "$as_me: failed program was:" >&5
3863 sed 's/^/| /' conftest.$ac_ext >&5
3865 # Passes both tests.
3869 rm -f conftest.err conftest.$ac_ext
3872 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3873 rm -f conftest.err conftest.$ac_ext
3874 if $ac_preproc_ok; then
3886 echo "$as_me:$LINENO: result: $CPP" >&5
3887 echo "${ECHO_T}$CPP" >&6
3889 for ac_c_preproc_warn_flag in '' yes
3891 # Use a header file that comes with gcc, so configuring glibc
3892 # with a fresh cross-compiler works.
3893 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3894 # <limits.h> exists even on freestanding compilers.
3895 # On the NeXT, cc -E runs the code through the compiler's parser,
3896 # not just through cpp. "Syntax error" is here to catch this case.
3897 cat >conftest.$ac_ext <<_ACEOF
3900 cat confdefs.h >>conftest.$ac_ext
3901 cat >>conftest.$ac_ext <<_ACEOF
3902 /* end confdefs.h. */
3904 # include <limits.h>
3906 # include <assert.h>
3910 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3911 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3913 grep -v '^ *+' conftest.er1 >conftest.err
3915 cat conftest.err >&5
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); } >/dev/null; then
3918 if test -s conftest.err; then
3919 ac_cpp_err=$ac_c_preproc_warn_flag
3920 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3927 if test -z "$ac_cpp_err"; then
3930 echo "$as_me: failed program was:" >&5
3931 sed 's/^/| /' conftest.$ac_ext >&5
3933 # Broken: fails on valid input.
3936 rm -f conftest.err conftest.$ac_ext
3938 # OK, works on sane cases. Now check whether non-existent headers
3939 # can be detected and how.
3940 cat >conftest.$ac_ext <<_ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h. */
3946 #include <ac_nonexistent.h>
3948 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3949 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3951 grep -v '^ *+' conftest.er1 >conftest.err
3953 cat conftest.err >&5
3954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955 (exit $ac_status); } >/dev/null; then
3956 if test -s conftest.err; then
3957 ac_cpp_err=$ac_c_preproc_warn_flag
3958 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3965 if test -z "$ac_cpp_err"; then
3966 # Broken: success on invalid input.
3969 echo "$as_me: failed program was:" >&5
3970 sed 's/^/| /' conftest.$ac_ext >&5
3972 # Passes both tests.
3976 rm -f conftest.err conftest.$ac_ext
3979 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3980 rm -f conftest.err conftest.$ac_ext
3981 if $ac_preproc_ok; then
3984 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3985 See \`config.log' for more details." >&5
3986 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3987 See \`config.log' for more details." >&2;}
3988 { (exit 1); exit 1; }; }
3992 ac_cpp='$CPP $CPPFLAGS'
3993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3997 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3998 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3999 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4000 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4003 cat >conftest.make <<\_ACEOF
4005 @echo 'ac_maketemp="$(MAKE)"'
4007 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4008 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4009 if test -n "$ac_maketemp"; then
4010 eval ac_cv_prog_make_${ac_make}_set=yes
4012 eval ac_cv_prog_make_${ac_make}_set=no
4016 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4017 echo "$as_me:$LINENO: result: yes" >&5
4018 echo "${ECHO_T}yes" >&6
4021 echo "$as_me:$LINENO: result: no" >&5
4022 echo "${ECHO_T}no" >&6
4023 SET_MAKE="MAKE=${MAKE-make}"
4026 # Find a good install program. We prefer a C program (faster),
4027 # so one script is as good as another. But avoid the broken or
4028 # incompatible versions:
4029 # SysV /etc/install, /usr/sbin/install
4030 # SunOS /usr/etc/install
4031 # IRIX /sbin/install
4033 # AmigaOS /C/install, which installs bootblocks on floppy discs
4034 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4035 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4036 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4037 # OS/2's system install, which has a completely different semantic
4038 # ./install, which can be erroneously created by make from ./install.sh.
4039 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4040 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4041 if test -z "$INSTALL"; then
4042 if test "${ac_cv_path_install+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049 test -z "$as_dir" && as_dir=.
4050 # Account for people who put trailing slashes in PATH elements.
4052 ./ | .// | /cC/* | \
4053 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4054 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4057 # OSF1 and SCO ODT 3.0 have their own names for install.
4058 # Don't use installbsd from OSF since it installs stuff as root
4060 for ac_prog in ginstall scoinst install; do
4061 for ac_exec_ext in '' $ac_executable_extensions; do
4062 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4063 if test $ac_prog = install &&
4064 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4065 # AIX install. It has an incompatible calling convention.
4067 elif test $ac_prog = install &&
4068 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4069 # program-specific install script used by HP pwplus--don't use.
4072 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4084 if test "${ac_cv_path_install+set}" = set; then
4085 INSTALL=$ac_cv_path_install
4087 # As a last resort, use the slow shell script. We don't cache a
4088 # path for INSTALL within a source directory, because that will
4089 # break other packages using the cache if that directory is
4090 # removed, or if the path is relative.
4091 INSTALL=$ac_install_sh
4094 echo "$as_me:$LINENO: result: $INSTALL" >&5
4095 echo "${ECHO_T}$INSTALL" >&6
4097 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4098 # It thinks the first close brace ends the variable substitution.
4099 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4101 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4103 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4105 if test -n "$ac_tool_prefix"; then
4106 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4107 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4108 echo "$as_me:$LINENO: checking for $ac_word" >&5
4109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4110 if test "${ac_cv_prog_RANLIB+set}" = set; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4113 if test -n "$RANLIB"; then
4114 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 test -z "$as_dir" && as_dir=.
4121 for ac_exec_ext in '' $ac_executable_extensions; do
4122 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4123 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4132 RANLIB=$ac_cv_prog_RANLIB
4133 if test -n "$RANLIB"; then
4134 echo "$as_me:$LINENO: result: $RANLIB" >&5
4135 echo "${ECHO_T}$RANLIB" >&6
4137 echo "$as_me:$LINENO: result: no" >&5
4138 echo "${ECHO_T}no" >&6
4142 if test -z "$ac_cv_prog_RANLIB"; then
4143 ac_ct_RANLIB=$RANLIB
4144 # Extract the first word of "ranlib", so it can be a program name with args.
4145 set dummy ranlib; ac_word=$2
4146 echo "$as_me:$LINENO: checking for $ac_word" >&5
4147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4148 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4149 echo $ECHO_N "(cached) $ECHO_C" >&6
4151 if test -n "$ac_ct_RANLIB"; then
4152 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4158 test -z "$as_dir" && as_dir=.
4159 for ac_exec_ext in '' $ac_executable_extensions; do
4160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4161 ac_cv_prog_ac_ct_RANLIB="ranlib"
4162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4168 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4171 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4172 if test -n "$ac_ct_RANLIB"; then
4173 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4174 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4176 echo "$as_me:$LINENO: result: no" >&5
4177 echo "${ECHO_T}no" >&6
4180 RANLIB=$ac_ct_RANLIB
4182 RANLIB="$ac_cv_prog_RANLIB"
4185 if test -n "$ac_tool_prefix"; then
4186 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4187 set dummy ${ac_tool_prefix}ar; ac_word=$2
4188 echo "$as_me:$LINENO: checking for $ac_word" >&5
4189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4190 if test "${ac_cv_prog_AR+set}" = set; then
4191 echo $ECHO_N "(cached) $ECHO_C" >&6
4193 if test -n "$AR"; then
4194 ac_cv_prog_AR="$AR" # Let the user override the test.
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200 test -z "$as_dir" && as_dir=.
4201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4203 ac_cv_prog_AR="${ac_tool_prefix}ar"
4204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4213 if test -n "$AR"; then
4214 echo "$as_me:$LINENO: result: $AR" >&5
4215 echo "${ECHO_T}$AR" >&6
4217 echo "$as_me:$LINENO: result: no" >&5
4218 echo "${ECHO_T}no" >&6
4222 if test -z "$ac_cv_prog_AR"; then
4224 # Extract the first word of "ar", so it can be a program name with args.
4225 set dummy ar; ac_word=$2
4226 echo "$as_me:$LINENO: checking for $ac_word" >&5
4227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4228 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4229 echo $ECHO_N "(cached) $ECHO_C" >&6
4231 if test -n "$ac_ct_AR"; then
4232 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238 test -z "$as_dir" && as_dir=.
4239 for ac_exec_ext in '' $ac_executable_extensions; do
4240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4241 ac_cv_prog_ac_ct_AR="ar"
4242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4248 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4251 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4252 if test -n "$ac_ct_AR"; then
4253 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4254 echo "${ECHO_T}$ac_ct_AR" >&6
4256 echo "$as_me:$LINENO: result: no" >&5
4257 echo "${ECHO_T}no" >&6
4266 echo "$as_me:$LINENO: checking for inline" >&5
4267 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4268 if test "${ac_cv_c_inline+set}" = set; then
4269 echo $ECHO_N "(cached) $ECHO_C" >&6
4272 for ac_kw in inline __inline__ __inline; do
4273 cat >conftest.$ac_ext <<_ACEOF
4276 cat confdefs.h >>conftest.$ac_ext
4277 cat >>conftest.$ac_ext <<_ACEOF
4278 /* end confdefs.h. */
4281 static $ac_kw foo_t static_foo () {return 0; }
4282 $ac_kw foo_t foo () {return 0; }
4286 rm -f conftest.$ac_objext
4287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4288 (eval $ac_compile) 2>conftest.er1
4290 grep -v '^ *+' conftest.er1 >conftest.err
4292 cat conftest.err >&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); } &&
4295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4300 (exit $ac_status); }; } &&
4301 { ac_try='test -s conftest.$ac_objext'
4302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306 (exit $ac_status); }; }; then
4307 ac_cv_c_inline=$ac_kw; break
4309 echo "$as_me: failed program was:" >&5
4310 sed 's/^/| /' conftest.$ac_ext >&5
4313 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4317 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4318 echo "${ECHO_T}$ac_cv_c_inline" >&6
4321 case $ac_cv_c_inline in
4324 case $ac_cv_c_inline in
4326 *) ac_val=$ac_cv_c_inline;;
4328 cat >>confdefs.h <<_ACEOF
4330 #define inline $ac_val
4336 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4337 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4338 if test "${ac_cv_c_const+set}" = set; then
4339 echo $ECHO_N "(cached) $ECHO_C" >&6
4341 cat >conftest.$ac_ext <<_ACEOF
4344 cat confdefs.h >>conftest.$ac_ext
4345 cat >>conftest.$ac_ext <<_ACEOF
4346 /* end confdefs.h. */
4351 /* FIXME: Include the comments suggested by Paul. */
4353 /* Ultrix mips cc rejects this. */
4354 typedef int charset[2];
4356 /* SunOS 4.1.1 cc rejects this. */
4357 char const *const *ccp;
4359 /* NEC SVR4.0.2 mips cc rejects this. */
4360 struct point {int x, y;};
4361 static struct point const zero = {0,0};
4362 /* AIX XL C 1.02.0.0 rejects this.
4363 It does not let you subtract one const X* pointer from another in
4364 an arm of an if-expression whose if-part is not a constant
4366 const char *g = "string";
4367 ccp = &g + (g ? g-g : 0);
4368 /* HPUX 7.0 cc rejects these. */
4371 ccp = (char const *const *) p;
4372 { /* SCO 3.2v4 cc rejects this. */
4374 char const *s = 0 ? (char *) 0 : (char const *) 0;
4378 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4380 const int *foo = &x[0];
4383 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4384 typedef const int *iptr;
4388 { /* AIX XL C 1.02.0.0 rejects this saying
4389 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4390 struct s { int j; const int *ap[3]; };
4391 struct s *b; b->j = 5;
4393 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4402 rm -f conftest.$ac_objext
4403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4404 (eval $ac_compile) 2>conftest.er1
4406 grep -v '^ *+' conftest.er1 >conftest.err
4408 cat conftest.err >&5
4409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410 (exit $ac_status); } &&
4411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); }; } &&
4417 { ac_try='test -s conftest.$ac_objext'
4418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); }; }; then
4425 echo "$as_me: failed program was:" >&5
4426 sed 's/^/| /' conftest.$ac_ext >&5
4430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4432 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4433 echo "${ECHO_T}$ac_cv_c_const" >&6
4434 if test $ac_cv_c_const = no; then
4436 cat >>confdefs.h <<\_ACEOF
4443 # Check whether --enable-largefile or --disable-largefile was given.
4444 if test "${enable_largefile+set}" = set; then
4445 enableval="$enable_largefile"
4448 if test "$enable_largefile" != no; then
4450 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4451 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4452 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4455 ac_cv_sys_largefile_CC=no
4456 if test "$GCC" != yes; then
4459 # IRIX 6.2 and later do not support large files by default,
4460 # so use the C compiler's -n32 option if that helps.
4461 cat >conftest.$ac_ext <<_ACEOF
4464 cat confdefs.h >>conftest.$ac_ext
4465 cat >>conftest.$ac_ext <<_ACEOF
4466 /* end confdefs.h. */
4467 #include <sys/types.h>
4468 /* Check that off_t can represent 2**63 - 1 correctly.
4469 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4470 since some C++ compilers masquerading as C compilers
4471 incorrectly reject 9223372036854775807. */
4472 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4473 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4474 && LARGE_OFF_T % 2147483647 == 1)
4484 rm -f conftest.$ac_objext
4485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4486 (eval $ac_compile) 2>conftest.er1
4488 grep -v '^ *+' conftest.er1 >conftest.err
4490 cat conftest.err >&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); } &&
4493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); }; } &&
4499 { ac_try='test -s conftest.$ac_objext'
4500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); }; }; then
4507 echo "$as_me: failed program was:" >&5
4508 sed 's/^/| /' conftest.$ac_ext >&5
4511 rm -f conftest.err conftest.$ac_objext
4513 rm -f conftest.$ac_objext
4514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4515 (eval $ac_compile) 2>conftest.er1
4517 grep -v '^ *+' conftest.er1 >conftest.err
4519 cat conftest.err >&5
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); } &&
4522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; } &&
4528 { ac_try='test -s conftest.$ac_objext'
4529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4533 (exit $ac_status); }; }; then
4534 ac_cv_sys_largefile_CC=' -n32'; break
4536 echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4540 rm -f conftest.err conftest.$ac_objext
4544 rm -f conftest.$ac_ext
4547 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4548 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4549 if test "$ac_cv_sys_largefile_CC" != no; then
4550 CC=$CC$ac_cv_sys_largefile_CC
4553 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4554 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4555 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
4559 ac_cv_sys_file_offset_bits=no
4560 cat >conftest.$ac_ext <<_ACEOF
4563 cat confdefs.h >>conftest.$ac_ext
4564 cat >>conftest.$ac_ext <<_ACEOF
4565 /* end confdefs.h. */
4566 #include <sys/types.h>
4567 /* Check that off_t can represent 2**63 - 1 correctly.
4568 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4569 since some C++ compilers masquerading as C compilers
4570 incorrectly reject 9223372036854775807. */
4571 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4572 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4573 && LARGE_OFF_T % 2147483647 == 1)
4583 rm -f conftest.$ac_objext
4584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4585 (eval $ac_compile) 2>conftest.er1
4587 grep -v '^ *+' conftest.er1 >conftest.err
4589 cat conftest.err >&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); } &&
4592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4597 (exit $ac_status); }; } &&
4598 { ac_try='test -s conftest.$ac_objext'
4599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; }; then
4606 echo "$as_me: failed program was:" >&5
4607 sed 's/^/| /' conftest.$ac_ext >&5
4610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4611 cat >conftest.$ac_ext <<_ACEOF
4614 cat confdefs.h >>conftest.$ac_ext
4615 cat >>conftest.$ac_ext <<_ACEOF
4616 /* end confdefs.h. */
4617 #define _FILE_OFFSET_BITS 64
4618 #include <sys/types.h>
4619 /* Check that off_t can represent 2**63 - 1 correctly.
4620 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4621 since some C++ compilers masquerading as C compilers
4622 incorrectly reject 9223372036854775807. */
4623 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4624 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4625 && LARGE_OFF_T % 2147483647 == 1)
4635 rm -f conftest.$ac_objext
4636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4637 (eval $ac_compile) 2>conftest.er1
4639 grep -v '^ *+' conftest.er1 >conftest.err
4641 cat conftest.err >&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); } &&
4644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); }; } &&
4650 { ac_try='test -s conftest.$ac_objext'
4651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); }; }; then
4656 ac_cv_sys_file_offset_bits=64; break
4658 echo "$as_me: failed program was:" >&5
4659 sed 's/^/| /' conftest.$ac_ext >&5
4662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4666 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4667 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4668 if test "$ac_cv_sys_file_offset_bits" != no; then
4670 cat >>confdefs.h <<_ACEOF
4671 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4676 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4677 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4678 if test "${ac_cv_sys_large_files+set}" = set; then
4679 echo $ECHO_N "(cached) $ECHO_C" >&6
4682 ac_cv_sys_large_files=no
4683 cat >conftest.$ac_ext <<_ACEOF
4686 cat confdefs.h >>conftest.$ac_ext
4687 cat >>conftest.$ac_ext <<_ACEOF
4688 /* end confdefs.h. */
4689 #include <sys/types.h>
4690 /* Check that off_t can represent 2**63 - 1 correctly.
4691 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4692 since some C++ compilers masquerading as C compilers
4693 incorrectly reject 9223372036854775807. */
4694 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4695 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4696 && LARGE_OFF_T % 2147483647 == 1)
4706 rm -f conftest.$ac_objext
4707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4708 (eval $ac_compile) 2>conftest.er1
4710 grep -v '^ *+' conftest.er1 >conftest.err
4712 cat conftest.err >&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); } &&
4715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720 (exit $ac_status); }; } &&
4721 { ac_try='test -s conftest.$ac_objext'
4722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }; }; then
4729 echo "$as_me: failed program was:" >&5
4730 sed 's/^/| /' conftest.$ac_ext >&5
4733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4734 cat >conftest.$ac_ext <<_ACEOF
4737 cat confdefs.h >>conftest.$ac_ext
4738 cat >>conftest.$ac_ext <<_ACEOF
4739 /* end confdefs.h. */
4740 #define _LARGE_FILES 1
4741 #include <sys/types.h>
4742 /* Check that off_t can represent 2**63 - 1 correctly.
4743 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4744 since some C++ compilers masquerading as C compilers
4745 incorrectly reject 9223372036854775807. */
4746 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4747 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4748 && LARGE_OFF_T % 2147483647 == 1)
4758 rm -f conftest.$ac_objext
4759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4760 (eval $ac_compile) 2>conftest.er1
4762 grep -v '^ *+' conftest.er1 >conftest.err
4764 cat conftest.err >&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); } &&
4767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); }; } &&
4773 { ac_try='test -s conftest.$ac_objext'
4774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }; }; then
4779 ac_cv_sys_large_files=1; break
4781 echo "$as_me: failed program was:" >&5
4782 sed 's/^/| /' conftest.$ac_ext >&5
4785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4789 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4790 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4791 if test "$ac_cv_sys_large_files" != no; then
4793 cat >>confdefs.h <<_ACEOF
4794 #define _LARGE_FILES $ac_cv_sys_large_files
4802 # Extract the first word of "dbx", so it can be a program name with args.
4803 set dummy dbx; ac_word=$2
4804 echo "$as_me:$LINENO: checking for $ac_word" >&5
4805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4806 if test "${ac_cv_path_DBX+set}" = set; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4811 ac_cv_path_DBX="$DBX" # Let the user override the test with a path.
4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 test -z "$as_dir" && as_dir=.
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4821 ac_cv_path_DBX="$as_dir/$ac_word$ac_exec_ext"
4822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4828 test -z "$ac_cv_path_DBX" && ac_cv_path_DBX="no"
4834 if test -n "$DBX"; then
4835 echo "$as_me:$LINENO: result: $DBX" >&5
4836 echo "${ECHO_T}$DBX" >&6
4838 echo "$as_me:$LINENO: result: no" >&5
4839 echo "${ECHO_T}no" >&6
4842 # Extract the first word of "gdb", so it can be a program name with args.
4843 set dummy gdb; ac_word=$2
4844 echo "$as_me:$LINENO: checking for $ac_word" >&5
4845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4846 if test "${ac_cv_path_GDB+set}" = set; then
4847 echo $ECHO_N "(cached) $ECHO_C" >&6
4851 ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
4854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858 test -z "$as_dir" && as_dir=.
4859 for ac_exec_ext in '' $ac_executable_extensions; do
4860 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4861 ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
4862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 test -z "$ac_cv_path_GDB" && ac_cv_path_GDB="no"
4874 if test -n "$GDB"; then
4875 echo "$as_me:$LINENO: result: $GDB" >&5
4876 echo "${ECHO_T}$GDB" >&6
4878 echo "$as_me:$LINENO: result: no" >&5
4879 echo "${ECHO_T}no" >&6
4882 # Extract the first word of "sdb", so it can be a program name with args.
4883 set dummy sdb; ac_word=$2
4884 echo "$as_me:$LINENO: checking for $ac_word" >&5
4885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4886 if test "${ac_cv_path_SDB+set}" = set; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
4891 ac_cv_path_SDB="$SDB" # Let the user override the test with a path.
4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4898 test -z "$as_dir" && as_dir=.
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4901 ac_cv_path_SDB="$as_dir/$ac_word$ac_exec_ext"
4902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4908 test -z "$ac_cv_path_SDB" && ac_cv_path_SDB="no"
4914 if test -n "$SDB"; then
4915 echo "$as_me:$LINENO: result: $SDB" >&5
4916 echo "${ECHO_T}$SDB" >&6
4918 echo "$as_me:$LINENO: result: no" >&5
4919 echo "${ECHO_T}no" >&6
4923 if test $GDB != no ; then
4925 elif test $DBX != no ; then
4927 elif test $SDB != no ; then
4957 for ac_header in inttypes.h
4959 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4961 echo "$as_me:$LINENO: checking for $ac_header" >&5
4962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4964 echo $ECHO_N "(cached) $ECHO_C" >&6
4966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4969 # Is the header compilable?
4970 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4971 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4972 cat >conftest.$ac_ext <<_ACEOF
4975 cat confdefs.h >>conftest.$ac_ext
4976 cat >>conftest.$ac_ext <<_ACEOF
4977 /* end confdefs.h. */
4978 $ac_includes_default
4979 #include <$ac_header>
4981 rm -f conftest.$ac_objext
4982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4983 (eval $ac_compile) 2>conftest.er1
4985 grep -v '^ *+' conftest.er1 >conftest.err
4987 cat conftest.err >&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); } &&
4990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); }; } &&
4996 { ac_try='test -s conftest.$ac_objext'
4997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001 (exit $ac_status); }; }; then
5002 ac_header_compiler=yes
5004 echo "$as_me: failed program was:" >&5
5005 sed 's/^/| /' conftest.$ac_ext >&5
5007 ac_header_compiler=no
5009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5010 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5011 echo "${ECHO_T}$ac_header_compiler" >&6
5013 # Is the header present?
5014 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5015 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5016 cat >conftest.$ac_ext <<_ACEOF
5019 cat confdefs.h >>conftest.$ac_ext
5020 cat >>conftest.$ac_ext <<_ACEOF
5021 /* end confdefs.h. */
5022 #include <$ac_header>
5024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5025 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5027 grep -v '^ *+' conftest.er1 >conftest.err
5029 cat conftest.err >&5
5030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031 (exit $ac_status); } >/dev/null; then
5032 if test -s conftest.err; then
5033 ac_cpp_err=$ac_c_preproc_warn_flag
5034 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5041 if test -z "$ac_cpp_err"; then
5042 ac_header_preproc=yes
5044 echo "$as_me: failed program was:" >&5
5045 sed 's/^/| /' conftest.$ac_ext >&5
5047 ac_header_preproc=no
5049 rm -f conftest.err conftest.$ac_ext
5050 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5051 echo "${ECHO_T}$ac_header_preproc" >&6
5053 # So? What about this header?
5054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5056 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5059 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5060 ac_header_preproc=yes
5063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5066 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5067 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5068 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5069 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5070 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5073 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5074 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5077 ## ------------------------------------------ ##
5078 ## Report this to the AC_PACKAGE_NAME lists. ##
5079 ## ------------------------------------------ ##
5082 sed "s/^/$as_me: WARNING: /" >&2
5085 echo "$as_me:$LINENO: checking for $ac_header" >&5
5086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5088 echo $ECHO_N "(cached) $ECHO_C" >&6
5090 eval "$as_ac_Header=\$ac_header_preproc"
5092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5093 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5097 cat >>confdefs.h <<_ACEOF
5098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5105 echo "$as_me:$LINENO: checking for uint32_t" >&5
5106 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
5107 if test "${ac_cv_type_uint32_t+set}" = set; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5110 cat >conftest.$ac_ext <<_ACEOF
5113 cat confdefs.h >>conftest.$ac_ext
5114 cat >>conftest.$ac_ext <<_ACEOF
5115 /* end confdefs.h. */
5116 $ac_includes_default
5122 if (sizeof (uint32_t))
5128 rm -f conftest.$ac_objext
5129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5130 (eval $ac_compile) 2>conftest.er1
5132 grep -v '^ *+' conftest.er1 >conftest.err
5134 cat conftest.err >&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } &&
5137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); }; } &&
5143 { ac_try='test -s conftest.$ac_objext'
5144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); }; }; then
5149 ac_cv_type_uint32_t=yes
5151 echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5154 ac_cv_type_uint32_t=no
5156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5158 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
5159 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
5160 if test $ac_cv_type_uint32_t = yes; then
5162 cat >>confdefs.h <<\_ACEOF
5163 #define HAVE_C99_INTTYPES 1
5167 echo "$as_me:$LINENO: checking for short" >&5
5168 echo $ECHO_N "checking for short... $ECHO_C" >&6
5169 if test "${ac_cv_type_short+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5172 cat >conftest.$ac_ext <<_ACEOF
5175 cat confdefs.h >>conftest.$ac_ext
5176 cat >>conftest.$ac_ext <<_ACEOF
5177 /* end confdefs.h. */
5178 $ac_includes_default
5190 rm -f conftest.$ac_objext
5191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5192 (eval $ac_compile) 2>conftest.er1
5194 grep -v '^ *+' conftest.er1 >conftest.err
5196 cat conftest.err >&5
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); } &&
5199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204 (exit $ac_status); }; } &&
5205 { ac_try='test -s conftest.$ac_objext'
5206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); }; }; then
5211 ac_cv_type_short=yes
5213 echo "$as_me: failed program was:" >&5
5214 sed 's/^/| /' conftest.$ac_ext >&5
5218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5220 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
5221 echo "${ECHO_T}$ac_cv_type_short" >&6
5223 echo "$as_me:$LINENO: checking size of short" >&5
5224 echo $ECHO_N "checking size of short... $ECHO_C" >&6
5225 if test "${ac_cv_sizeof_short+set}" = set; then
5226 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 if test "$ac_cv_type_short" = yes; then
5229 # The cast to unsigned long works around a bug in the HP C Compiler
5230 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5231 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5232 # This bug is HP SR number 8606223364.
5233 if test "$cross_compiling" = yes; then
5234 # Depending upon the size, compute the lo and hi bounds.
5235 cat >conftest.$ac_ext <<_ACEOF
5238 cat confdefs.h >>conftest.$ac_ext
5239 cat >>conftest.$ac_ext <<_ACEOF
5240 /* end confdefs.h. */
5241 $ac_includes_default
5245 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5252 rm -f conftest.$ac_objext
5253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5254 (eval $ac_compile) 2>conftest.er1
5256 grep -v '^ *+' conftest.er1 >conftest.err
5258 cat conftest.err >&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); } &&
5261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); }; } &&
5267 { ac_try='test -s conftest.$ac_objext'
5268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272 (exit $ac_status); }; }; then
5275 cat >conftest.$ac_ext <<_ACEOF
5278 cat confdefs.h >>conftest.$ac_ext
5279 cat >>conftest.$ac_ext <<_ACEOF
5280 /* end confdefs.h. */
5281 $ac_includes_default
5285 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5292 rm -f conftest.$ac_objext
5293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5294 (eval $ac_compile) 2>conftest.er1
5296 grep -v '^ *+' conftest.er1 >conftest.err
5298 cat conftest.err >&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); } &&
5301 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); }; } &&
5307 { ac_try='test -s conftest.$ac_objext'
5308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }; }; then
5313 ac_hi=$ac_mid; break
5315 echo "$as_me: failed program was:" >&5
5316 sed 's/^/| /' conftest.$ac_ext >&5
5318 ac_lo=`expr $ac_mid + 1`
5319 if test $ac_lo -le $ac_mid; then
5323 ac_mid=`expr 2 '*' $ac_mid + 1`
5325 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5328 echo "$as_me: failed program was:" >&5
5329 sed 's/^/| /' conftest.$ac_ext >&5
5331 cat >conftest.$ac_ext <<_ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 cat >>conftest.$ac_ext <<_ACEOF
5336 /* end confdefs.h. */
5337 $ac_includes_default
5341 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5348 rm -f conftest.$ac_objext
5349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5350 (eval $ac_compile) 2>conftest.er1
5352 grep -v '^ *+' conftest.er1 >conftest.err
5354 cat conftest.err >&5
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); } &&
5357 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5362 (exit $ac_status); }; } &&
5363 { ac_try='test -s conftest.$ac_objext'
5364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); }; }; then
5371 cat >conftest.$ac_ext <<_ACEOF
5374 cat confdefs.h >>conftest.$ac_ext
5375 cat >>conftest.$ac_ext <<_ACEOF
5376 /* end confdefs.h. */
5377 $ac_includes_default
5381 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5388 rm -f conftest.$ac_objext
5389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5390 (eval $ac_compile) 2>conftest.er1
5392 grep -v '^ *+' conftest.er1 >conftest.err
5394 cat conftest.err >&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } &&
5397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }; } &&
5403 { ac_try='test -s conftest.$ac_objext'
5404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); }; }; then
5409 ac_lo=$ac_mid; break
5411 echo "$as_me: failed program was:" >&5
5412 sed 's/^/| /' conftest.$ac_ext >&5
5414 ac_hi=`expr '(' $ac_mid ')' - 1`
5415 if test $ac_mid -le $ac_hi; then
5419 ac_mid=`expr 2 '*' $ac_mid`
5421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5424 echo "$as_me: failed program was:" >&5
5425 sed 's/^/| /' conftest.$ac_ext >&5
5429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5432 # Binary search between lo and hi bounds.
5433 while test "x$ac_lo" != "x$ac_hi"; do
5434 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5435 cat >conftest.$ac_ext <<_ACEOF
5438 cat confdefs.h >>conftest.$ac_ext
5439 cat >>conftest.$ac_ext <<_ACEOF
5440 /* end confdefs.h. */
5441 $ac_includes_default
5445 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5452 rm -f conftest.$ac_objext
5453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5454 (eval $ac_compile) 2>conftest.er1
5456 grep -v '^ *+' conftest.er1 >conftest.err
5458 cat conftest.err >&5
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); } &&
5461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); }; } &&
5467 { ac_try='test -s conftest.$ac_objext'
5468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); }; }; then
5475 echo "$as_me: failed program was:" >&5
5476 sed 's/^/| /' conftest.$ac_ext >&5
5478 ac_lo=`expr '(' $ac_mid ')' + 1`
5480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5483 ?*) ac_cv_sizeof_short=$ac_lo;;
5484 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5485 See \`config.log' for more details." >&5
5486 echo "$as_me: error: cannot compute sizeof (short), 77
5487 See \`config.log' for more details." >&2;}
5488 { (exit 1); exit 1; }; } ;;
5491 if test "$cross_compiling" = yes; then
5492 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5493 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5494 { (exit 1); exit 1; }; }
5496 cat >conftest.$ac_ext <<_ACEOF
5499 cat confdefs.h >>conftest.$ac_ext
5500 cat >>conftest.$ac_ext <<_ACEOF
5501 /* end confdefs.h. */
5502 $ac_includes_default
5503 long longval () { return (long) (sizeof (short)); }
5504 unsigned long ulongval () { return (long) (sizeof (short)); }
5511 FILE *f = fopen ("conftest.val", "w");
5514 if (((long) (sizeof (short))) < 0)
5516 long i = longval ();
5517 if (i != ((long) (sizeof (short))))
5519 fprintf (f, "%ld\n", i);
5523 unsigned long i = ulongval ();
5524 if (i != ((long) (sizeof (short))))
5526 fprintf (f, "%lu\n", i);
5528 exit (ferror (f) || fclose (f) != 0);
5534 rm -f conftest$ac_exeext
5535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5536 (eval $ac_link) 2>&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); }; }; then
5545 ac_cv_sizeof_short=`cat conftest.val`
5547 echo "$as_me: program exited with status $ac_status" >&5
5548 echo "$as_me: failed program was:" >&5
5549 sed 's/^/| /' conftest.$ac_ext >&5
5552 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5553 See \`config.log' for more details." >&5
5554 echo "$as_me: error: cannot compute sizeof (short), 77
5555 See \`config.log' for more details." >&2;}
5556 { (exit 1); exit 1; }; }
5558 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5563 ac_cv_sizeof_short=0
5566 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5567 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5568 cat >>confdefs.h <<_ACEOF
5569 #define SIZEOF_SHORT $ac_cv_sizeof_short
5573 echo "$as_me:$LINENO: checking for int" >&5
5574 echo $ECHO_N "checking for int... $ECHO_C" >&6
5575 if test "${ac_cv_type_int+set}" = set; then
5576 echo $ECHO_N "(cached) $ECHO_C" >&6
5578 cat >conftest.$ac_ext <<_ACEOF
5581 cat confdefs.h >>conftest.$ac_ext
5582 cat >>conftest.$ac_ext <<_ACEOF
5583 /* end confdefs.h. */
5584 $ac_includes_default
5596 rm -f conftest.$ac_objext
5597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5598 (eval $ac_compile) 2>conftest.er1
5600 grep -v '^ *+' conftest.er1 >conftest.err
5602 cat conftest.err >&5
5603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604 (exit $ac_status); } &&
5605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5610 (exit $ac_status); }; } &&
5611 { ac_try='test -s conftest.$ac_objext'
5612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); }; }; then
5619 echo "$as_me: failed program was:" >&5
5620 sed 's/^/| /' conftest.$ac_ext >&5
5624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5626 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5627 echo "${ECHO_T}$ac_cv_type_int" >&6
5629 echo "$as_me:$LINENO: checking size of int" >&5
5630 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5631 if test "${ac_cv_sizeof_int+set}" = set; then
5632 echo $ECHO_N "(cached) $ECHO_C" >&6
5634 if test "$ac_cv_type_int" = yes; then
5635 # The cast to unsigned long works around a bug in the HP C Compiler
5636 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5637 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5638 # This bug is HP SR number 8606223364.
5639 if test "$cross_compiling" = yes; then
5640 # Depending upon the size, compute the lo and hi bounds.
5641 cat >conftest.$ac_ext <<_ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h. */
5647 $ac_includes_default
5651 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5658 rm -f conftest.$ac_objext
5659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5660 (eval $ac_compile) 2>conftest.er1
5662 grep -v '^ *+' conftest.er1 >conftest.err
5664 cat conftest.err >&5
5665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666 (exit $ac_status); } &&
5667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); }; } &&
5673 { ac_try='test -s conftest.$ac_objext'
5674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; }; then
5681 cat >conftest.$ac_ext <<_ACEOF
5684 cat confdefs.h >>conftest.$ac_ext
5685 cat >>conftest.$ac_ext <<_ACEOF
5686 /* end confdefs.h. */
5687 $ac_includes_default
5691 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5698 rm -f conftest.$ac_objext
5699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5700 (eval $ac_compile) 2>conftest.er1
5702 grep -v '^ *+' conftest.er1 >conftest.err
5704 cat conftest.err >&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); } &&
5707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); }; } &&
5713 { ac_try='test -s conftest.$ac_objext'
5714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); }; }; then
5719 ac_hi=$ac_mid; break
5721 echo "$as_me: failed program was:" >&5
5722 sed 's/^/| /' conftest.$ac_ext >&5
5724 ac_lo=`expr $ac_mid + 1`
5725 if test $ac_lo -le $ac_mid; then
5729 ac_mid=`expr 2 '*' $ac_mid + 1`
5731 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5734 echo "$as_me: failed program was:" >&5
5735 sed 's/^/| /' conftest.$ac_ext >&5
5737 cat >conftest.$ac_ext <<_ACEOF
5740 cat confdefs.h >>conftest.$ac_ext
5741 cat >>conftest.$ac_ext <<_ACEOF
5742 /* end confdefs.h. */
5743 $ac_includes_default
5747 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5754 rm -f conftest.$ac_objext
5755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5756 (eval $ac_compile) 2>conftest.er1
5758 grep -v '^ *+' conftest.er1 >conftest.err
5760 cat conftest.err >&5
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); } &&
5763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768 (exit $ac_status); }; } &&
5769 { ac_try='test -s conftest.$ac_objext'
5770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5774 (exit $ac_status); }; }; then
5777 cat >conftest.$ac_ext <<_ACEOF
5780 cat confdefs.h >>conftest.$ac_ext
5781 cat >>conftest.$ac_ext <<_ACEOF
5782 /* end confdefs.h. */
5783 $ac_includes_default
5787 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5794 rm -f conftest.$ac_objext
5795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5796 (eval $ac_compile) 2>conftest.er1
5798 grep -v '^ *+' conftest.er1 >conftest.err
5800 cat conftest.err >&5
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); } &&
5803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); }; } &&
5809 { ac_try='test -s conftest.$ac_objext'
5810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); }; }; then
5815 ac_lo=$ac_mid; break
5817 echo "$as_me: failed program was:" >&5
5818 sed 's/^/| /' conftest.$ac_ext >&5
5820 ac_hi=`expr '(' $ac_mid ')' - 1`
5821 if test $ac_mid -le $ac_hi; then
5825 ac_mid=`expr 2 '*' $ac_mid`
5827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5830 echo "$as_me: failed program was:" >&5
5831 sed 's/^/| /' conftest.$ac_ext >&5
5835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5837 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5838 # Binary search between lo and hi bounds.
5839 while test "x$ac_lo" != "x$ac_hi"; do
5840 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5841 cat >conftest.$ac_ext <<_ACEOF
5844 cat confdefs.h >>conftest.$ac_ext
5845 cat >>conftest.$ac_ext <<_ACEOF
5846 /* end confdefs.h. */
5847 $ac_includes_default
5851 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5858 rm -f conftest.$ac_objext
5859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5860 (eval $ac_compile) 2>conftest.er1
5862 grep -v '^ *+' conftest.er1 >conftest.err
5864 cat conftest.err >&5
5865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5866 (exit $ac_status); } &&
5867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); }; } &&
5873 { ac_try='test -s conftest.$ac_objext'
5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; }; then
5881 echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.$ac_ext >&5
5884 ac_lo=`expr '(' $ac_mid ')' + 1`
5886 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5889 ?*) ac_cv_sizeof_int=$ac_lo;;
5890 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5891 See \`config.log' for more details." >&5
5892 echo "$as_me: error: cannot compute sizeof (int), 77
5893 See \`config.log' for more details." >&2;}
5894 { (exit 1); exit 1; }; } ;;
5897 if test "$cross_compiling" = yes; then
5898 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5899 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5900 { (exit 1); exit 1; }; }
5902 cat >conftest.$ac_ext <<_ACEOF
5905 cat confdefs.h >>conftest.$ac_ext
5906 cat >>conftest.$ac_ext <<_ACEOF
5907 /* end confdefs.h. */
5908 $ac_includes_default
5909 long longval () { return (long) (sizeof (int)); }
5910 unsigned long ulongval () { return (long) (sizeof (int)); }
5917 FILE *f = fopen ("conftest.val", "w");
5920 if (((long) (sizeof (int))) < 0)
5922 long i = longval ();
5923 if (i != ((long) (sizeof (int))))
5925 fprintf (f, "%ld\n", i);
5929 unsigned long i = ulongval ();
5930 if (i != ((long) (sizeof (int))))
5932 fprintf (f, "%lu\n", i);
5934 exit (ferror (f) || fclose (f) != 0);
5940 rm -f conftest$ac_exeext
5941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5942 (eval $ac_link) 2>&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; }; then
5951 ac_cv_sizeof_int=`cat conftest.val`
5953 echo "$as_me: program exited with status $ac_status" >&5
5954 echo "$as_me: failed program was:" >&5
5955 sed 's/^/| /' conftest.$ac_ext >&5
5958 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5959 See \`config.log' for more details." >&5
5960 echo "$as_me: error: cannot compute sizeof (int), 77
5961 See \`config.log' for more details." >&2;}
5962 { (exit 1); exit 1; }; }
5964 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5972 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5973 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5974 cat >>confdefs.h <<_ACEOF
5975 #define SIZEOF_INT $ac_cv_sizeof_int
5979 echo "$as_me:$LINENO: checking for long" >&5
5980 echo $ECHO_N "checking for long... $ECHO_C" >&6
5981 if test "${ac_cv_type_long+set}" = set; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5984 cat >conftest.$ac_ext <<_ACEOF
5987 cat confdefs.h >>conftest.$ac_ext
5988 cat >>conftest.$ac_ext <<_ACEOF
5989 /* end confdefs.h. */
5990 $ac_includes_default
6002 rm -f conftest.$ac_objext
6003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6004 (eval $ac_compile) 2>conftest.er1
6006 grep -v '^ *+' conftest.er1 >conftest.err
6008 cat conftest.err >&5
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); } &&
6011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); }; } &&
6017 { ac_try='test -s conftest.$ac_objext'
6018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); }; }; then
6025 echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.$ac_ext >&5
6030 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6032 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
6033 echo "${ECHO_T}$ac_cv_type_long" >&6
6035 echo "$as_me:$LINENO: checking size of long" >&5
6036 echo $ECHO_N "checking size of long... $ECHO_C" >&6
6037 if test "${ac_cv_sizeof_long+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6040 if test "$ac_cv_type_long" = yes; then
6041 # The cast to unsigned long works around a bug in the HP C Compiler
6042 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6043 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6044 # This bug is HP SR number 8606223364.
6045 if test "$cross_compiling" = yes; then
6046 # Depending upon the size, compute the lo and hi bounds.
6047 cat >conftest.$ac_ext <<_ACEOF
6050 cat confdefs.h >>conftest.$ac_ext
6051 cat >>conftest.$ac_ext <<_ACEOF
6052 /* end confdefs.h. */
6053 $ac_includes_default
6057 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
6064 rm -f conftest.$ac_objext
6065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6066 (eval $ac_compile) 2>conftest.er1
6068 grep -v '^ *+' conftest.er1 >conftest.err
6070 cat conftest.err >&5
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); } &&
6073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; } &&
6079 { ac_try='test -s conftest.$ac_objext'
6080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; }; then
6087 cat >conftest.$ac_ext <<_ACEOF
6090 cat confdefs.h >>conftest.$ac_ext
6091 cat >>conftest.$ac_ext <<_ACEOF
6092 /* end confdefs.h. */
6093 $ac_includes_default
6097 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6104 rm -f conftest.$ac_objext
6105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6106 (eval $ac_compile) 2>conftest.er1
6108 grep -v '^ *+' conftest.er1 >conftest.err
6110 cat conftest.err >&5
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); } &&
6113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); }; } &&
6119 { ac_try='test -s conftest.$ac_objext'
6120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); }; }; then
6125 ac_hi=$ac_mid; break
6127 echo "$as_me: failed program was:" >&5
6128 sed 's/^/| /' conftest.$ac_ext >&5
6130 ac_lo=`expr $ac_mid + 1`
6131 if test $ac_lo -le $ac_mid; then
6135 ac_mid=`expr 2 '*' $ac_mid + 1`
6137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6140 echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.$ac_ext >&5
6143 cat >conftest.$ac_ext <<_ACEOF
6146 cat confdefs.h >>conftest.$ac_ext
6147 cat >>conftest.$ac_ext <<_ACEOF
6148 /* end confdefs.h. */
6149 $ac_includes_default
6153 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
6160 rm -f conftest.$ac_objext
6161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6162 (eval $ac_compile) 2>conftest.er1
6164 grep -v '^ *+' conftest.er1 >conftest.err
6166 cat conftest.err >&5
6167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168 (exit $ac_status); } &&
6169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); }; } &&
6175 { ac_try='test -s conftest.$ac_objext'
6176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); }; }; then
6183 cat >conftest.$ac_ext <<_ACEOF
6186 cat confdefs.h >>conftest.$ac_ext
6187 cat >>conftest.$ac_ext <<_ACEOF
6188 /* end confdefs.h. */
6189 $ac_includes_default
6193 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
6200 rm -f conftest.$ac_objext
6201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6202 (eval $ac_compile) 2>conftest.er1
6204 grep -v '^ *+' conftest.er1 >conftest.err
6206 cat conftest.err >&5
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); } &&
6209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); }; } &&
6215 { ac_try='test -s conftest.$ac_objext'
6216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6220 (exit $ac_status); }; }; then
6221 ac_lo=$ac_mid; break
6223 echo "$as_me: failed program was:" >&5
6224 sed 's/^/| /' conftest.$ac_ext >&5
6226 ac_hi=`expr '(' $ac_mid ')' - 1`
6227 if test $ac_mid -le $ac_hi; then
6231 ac_mid=`expr 2 '*' $ac_mid`
6233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6236 echo "$as_me: failed program was:" >&5
6237 sed 's/^/| /' conftest.$ac_ext >&5
6241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6244 # Binary search between lo and hi bounds.
6245 while test "x$ac_lo" != "x$ac_hi"; do
6246 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6247 cat >conftest.$ac_ext <<_ACEOF
6250 cat confdefs.h >>conftest.$ac_ext
6251 cat >>conftest.$ac_ext <<_ACEOF
6252 /* end confdefs.h. */
6253 $ac_includes_default
6257 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
6264 rm -f conftest.$ac_objext
6265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6266 (eval $ac_compile) 2>conftest.er1
6268 grep -v '^ *+' conftest.er1 >conftest.err
6270 cat conftest.err >&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); } &&
6273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); }; } &&
6279 { ac_try='test -s conftest.$ac_objext'
6280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); }; }; then
6287 echo "$as_me: failed program was:" >&5
6288 sed 's/^/| /' conftest.$ac_ext >&5
6290 ac_lo=`expr '(' $ac_mid ')' + 1`
6292 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6295 ?*) ac_cv_sizeof_long=$ac_lo;;
6296 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6297 See \`config.log' for more details." >&5
6298 echo "$as_me: error: cannot compute sizeof (long), 77
6299 See \`config.log' for more details." >&2;}
6300 { (exit 1); exit 1; }; } ;;
6303 if test "$cross_compiling" = yes; then
6304 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6305 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6306 { (exit 1); exit 1; }; }
6308 cat >conftest.$ac_ext <<_ACEOF
6311 cat confdefs.h >>conftest.$ac_ext
6312 cat >>conftest.$ac_ext <<_ACEOF
6313 /* end confdefs.h. */
6314 $ac_includes_default
6315 long longval () { return (long) (sizeof (long)); }
6316 unsigned long ulongval () { return (long) (sizeof (long)); }
6323 FILE *f = fopen ("conftest.val", "w");
6326 if (((long) (sizeof (long))) < 0)
6328 long i = longval ();
6329 if (i != ((long) (sizeof (long))))
6331 fprintf (f, "%ld\n", i);
6335 unsigned long i = ulongval ();
6336 if (i != ((long) (sizeof (long))))
6338 fprintf (f, "%lu\n", i);
6340 exit (ferror (f) || fclose (f) != 0);
6346 rm -f conftest$ac_exeext
6347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6348 (eval $ac_link) 2>&5
6350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6351 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); }; }; then
6357 ac_cv_sizeof_long=`cat conftest.val`
6359 echo "$as_me: program exited with status $ac_status" >&5
6360 echo "$as_me: failed program was:" >&5
6361 sed 's/^/| /' conftest.$ac_ext >&5
6364 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6365 See \`config.log' for more details." >&5
6366 echo "$as_me: error: cannot compute sizeof (long), 77
6367 See \`config.log' for more details." >&2;}
6368 { (exit 1); exit 1; }; }
6370 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6378 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6379 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6380 cat >>confdefs.h <<_ACEOF
6381 #define SIZEOF_LONG $ac_cv_sizeof_long
6385 echo "$as_me:$LINENO: checking for long long" >&5
6386 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6387 if test "${ac_cv_type_long_long+set}" = set; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 cat >conftest.$ac_ext <<_ACEOF
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6396 $ac_includes_default
6400 if ((long long *) 0)
6402 if (sizeof (long long))
6408 rm -f conftest.$ac_objext
6409 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6410 (eval $ac_compile) 2>conftest.er1
6412 grep -v '^ *+' conftest.er1 >conftest.err
6414 cat conftest.err >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); } &&
6417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); }; } &&
6423 { ac_try='test -s conftest.$ac_objext'
6424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); }; }; then
6429 ac_cv_type_long_long=yes
6431 echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6434 ac_cv_type_long_long=no
6436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6438 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6439 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6441 echo "$as_me:$LINENO: checking size of long long" >&5
6442 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6443 if test "${ac_cv_sizeof_long_long+set}" = set; then
6444 echo $ECHO_N "(cached) $ECHO_C" >&6
6446 if test "$ac_cv_type_long_long" = yes; then
6447 # The cast to unsigned long works around a bug in the HP C Compiler
6448 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6449 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6450 # This bug is HP SR number 8606223364.
6451 if test "$cross_compiling" = yes; then
6452 # Depending upon the size, compute the lo and hi bounds.
6453 cat >conftest.$ac_ext <<_ACEOF
6456 cat confdefs.h >>conftest.$ac_ext
6457 cat >>conftest.$ac_ext <<_ACEOF
6458 /* end confdefs.h. */
6459 $ac_includes_default
6463 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6470 rm -f conftest.$ac_objext
6471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6472 (eval $ac_compile) 2>conftest.er1
6474 grep -v '^ *+' conftest.er1 >conftest.err
6476 cat conftest.err >&5
6477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478 (exit $ac_status); } &&
6479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); }; } &&
6485 { ac_try='test -s conftest.$ac_objext'
6486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); }; }; then
6493 cat >conftest.$ac_ext <<_ACEOF
6496 cat confdefs.h >>conftest.$ac_ext
6497 cat >>conftest.$ac_ext <<_ACEOF
6498 /* end confdefs.h. */
6499 $ac_includes_default
6503 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6510 rm -f conftest.$ac_objext
6511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6512 (eval $ac_compile) 2>conftest.er1
6514 grep -v '^ *+' conftest.er1 >conftest.err
6516 cat conftest.err >&5
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); } &&
6519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; } &&
6525 { ac_try='test -s conftest.$ac_objext'
6526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530 (exit $ac_status); }; }; then
6531 ac_hi=$ac_mid; break
6533 echo "$as_me: failed program was:" >&5
6534 sed 's/^/| /' conftest.$ac_ext >&5
6536 ac_lo=`expr $ac_mid + 1`
6537 if test $ac_lo -le $ac_mid; then
6541 ac_mid=`expr 2 '*' $ac_mid + 1`
6543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6546 echo "$as_me: failed program was:" >&5
6547 sed 's/^/| /' conftest.$ac_ext >&5
6549 cat >conftest.$ac_ext <<_ACEOF
6552 cat confdefs.h >>conftest.$ac_ext
6553 cat >>conftest.$ac_ext <<_ACEOF
6554 /* end confdefs.h. */
6555 $ac_includes_default
6559 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6566 rm -f conftest.$ac_objext
6567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6568 (eval $ac_compile) 2>conftest.er1
6570 grep -v '^ *+' conftest.er1 >conftest.err
6572 cat conftest.err >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } &&
6575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); }; } &&
6581 { ac_try='test -s conftest.$ac_objext'
6582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); }; }; then
6589 cat >conftest.$ac_ext <<_ACEOF
6592 cat confdefs.h >>conftest.$ac_ext
6593 cat >>conftest.$ac_ext <<_ACEOF
6594 /* end confdefs.h. */
6595 $ac_includes_default
6599 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6606 rm -f conftest.$ac_objext
6607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6608 (eval $ac_compile) 2>conftest.er1
6610 grep -v '^ *+' conftest.er1 >conftest.err
6612 cat conftest.err >&5
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); } &&
6615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); }; } &&
6621 { ac_try='test -s conftest.$ac_objext'
6622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626 (exit $ac_status); }; }; then
6627 ac_lo=$ac_mid; break
6629 echo "$as_me: failed program was:" >&5
6630 sed 's/^/| /' conftest.$ac_ext >&5
6632 ac_hi=`expr '(' $ac_mid ')' - 1`
6633 if test $ac_mid -le $ac_hi; then
6637 ac_mid=`expr 2 '*' $ac_mid`
6639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6642 echo "$as_me: failed program was:" >&5
6643 sed 's/^/| /' conftest.$ac_ext >&5
6647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6649 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6650 # Binary search between lo and hi bounds.
6651 while test "x$ac_lo" != "x$ac_hi"; do
6652 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6653 cat >conftest.$ac_ext <<_ACEOF
6656 cat confdefs.h >>conftest.$ac_ext
6657 cat >>conftest.$ac_ext <<_ACEOF
6658 /* end confdefs.h. */
6659 $ac_includes_default
6663 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6670 rm -f conftest.$ac_objext
6671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6672 (eval $ac_compile) 2>conftest.er1
6674 grep -v '^ *+' conftest.er1 >conftest.err
6676 cat conftest.err >&5
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); } &&
6679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); }; } &&
6685 { ac_try='test -s conftest.$ac_objext'
6686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6690 (exit $ac_status); }; }; then
6693 echo "$as_me: failed program was:" >&5
6694 sed 's/^/| /' conftest.$ac_ext >&5
6696 ac_lo=`expr '(' $ac_mid ')' + 1`
6698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6701 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6702 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6703 See \`config.log' for more details." >&5
6704 echo "$as_me: error: cannot compute sizeof (long long), 77
6705 See \`config.log' for more details." >&2;}
6706 { (exit 1); exit 1; }; } ;;
6709 if test "$cross_compiling" = yes; then
6710 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6711 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6712 { (exit 1); exit 1; }; }
6714 cat >conftest.$ac_ext <<_ACEOF
6717 cat confdefs.h >>conftest.$ac_ext
6718 cat >>conftest.$ac_ext <<_ACEOF
6719 /* end confdefs.h. */
6720 $ac_includes_default
6721 long longval () { return (long) (sizeof (long long)); }
6722 unsigned long ulongval () { return (long) (sizeof (long long)); }
6729 FILE *f = fopen ("conftest.val", "w");
6732 if (((long) (sizeof (long long))) < 0)
6734 long i = longval ();
6735 if (i != ((long) (sizeof (long long))))
6737 fprintf (f, "%ld\n", i);
6741 unsigned long i = ulongval ();
6742 if (i != ((long) (sizeof (long long))))
6744 fprintf (f, "%lu\n", i);
6746 exit (ferror (f) || fclose (f) != 0);
6752 rm -f conftest$ac_exeext
6753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6754 (eval $ac_link) 2>&5
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6762 (exit $ac_status); }; }; then
6763 ac_cv_sizeof_long_long=`cat conftest.val`
6765 echo "$as_me: program exited with status $ac_status" >&5
6766 echo "$as_me: failed program was:" >&5
6767 sed 's/^/| /' conftest.$ac_ext >&5
6770 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6771 See \`config.log' for more details." >&5
6772 echo "$as_me: error: cannot compute sizeof (long long), 77
6773 See \`config.log' for more details." >&2;}
6774 { (exit 1); exit 1; }; }
6776 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6781 ac_cv_sizeof_long_long=0
6784 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6785 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6786 cat >>confdefs.h <<_ACEOF
6787 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6797 ac_aux_path_sendmail=/usr/sbin:/usr/lib
6798 # Extract the first word of "sendmail", so it can be a program name with args.
6799 set dummy sendmail; ac_word=$2
6800 echo "$as_me:$LINENO: checking for $ac_word" >&5
6801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6802 if test "${ac_cv_path_SENDMAIL+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6807 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 as_dummy="$PATH:$ac_aux_path_sendmail"
6812 for as_dir in $as_dummy
6815 test -z "$as_dir" && as_dir=.
6816 for ac_exec_ext in '' $ac_executable_extensions; do
6817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6818 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
6819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6825 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/sbin/sendmail"
6829 SENDMAIL=$ac_cv_path_SENDMAIL
6831 if test -n "$SENDMAIL"; then
6832 echo "$as_me:$LINENO: result: $SENDMAIL" >&5
6833 echo "${ECHO_T}$SENDMAIL" >&6
6835 echo "$as_me:$LINENO: result: no" >&5
6836 echo "${ECHO_T}no" >&6
6840 cat >>confdefs.h <<_ACEOF
6841 #define SENDMAIL "$ac_cv_path_SENDMAIL"
6846 if test -f $srcdir/EXPORTABLE ; then
6851 # Check whether --enable-gpgme or --disable-gpgme was given.
6852 if test "${enable_gpgme+set}" = set; then
6853 enableval="$enable_gpgme"
6854 if test x$enableval = xyes; then
6860 # Check whether --with-gpgme-prefix or --without-gpgme-prefix was given.
6861 if test "${with_gpgme_prefix+set}" = set; then
6862 withval="$with_gpgme_prefix"
6863 gpgme_config_prefix="$withval"
6865 gpgme_config_prefix=""
6868 if test x$have_gpgme = xyes; then
6869 if test x$gpgme_config_prefix != x; then
6870 GPGME_CONFIG="$gpgme_config_prefix/bin/gpgme-config"
6872 # Extract the first word of "gpgme-config", so it can be a program name with args.
6873 set dummy gpgme-config; ac_word=$2
6874 echo "$as_me:$LINENO: checking for $ac_word" >&5
6875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6876 if test "${ac_cv_path_GPGME_CONFIG+set}" = set; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
6879 case $GPGME_CONFIG in
6881 ac_cv_path_GPGME_CONFIG="$GPGME_CONFIG" # Let the user override the test with a path.
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888 test -z "$as_dir" && as_dir=.
6889 for ac_exec_ext in '' $ac_executable_extensions; do
6890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6891 ac_cv_path_GPGME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 test -z "$ac_cv_path_GPGME_CONFIG" && ac_cv_path_GPGME_CONFIG="no"
6902 GPGME_CONFIG=$ac_cv_path_GPGME_CONFIG
6904 if test -n "$GPGME_CONFIG"; then
6905 echo "$as_me:$LINENO: result: $GPGME_CONFIG" >&5
6906 echo "${ECHO_T}$GPGME_CONFIG" >&6
6908 echo "$as_me:$LINENO: result: no" >&5
6909 echo "${ECHO_T}no" >&6
6913 if test "x$GPGME_CONFIG" = "xno"; then
6914 { { echo "$as_me:$LINENO: error: GPGME not found" >&5
6915 echo "$as_me: error: GPGME not found" >&2;}
6916 { (exit 1); exit 1; }; }
6918 LIBGPGME_CFLAGS=`$GPGME_CONFIG --cflags`
6919 LIBGPGME_LIBS=`$GPGME_CONFIG --libs`
6920 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS crypt-gpgme.o crypt-mod-pgp-gpgme.o crypt-mod-smime-gpgme.o"
6922 cat >>confdefs.h <<\_ACEOF
6923 #define CRYPT_BACKEND_GPGME 1
6931 # Check whether --enable-pgp or --disable-pgp was given.
6932 if test "${enable_pgp+set}" = set; then
6933 enableval="$enable_pgp"
6934 if test x$enableval = xno ; then
6940 if test x$have_pgp != xno ; then
6942 cat >>confdefs.h <<\_ACEOF
6943 #define CRYPT_BACKEND_CLASSIC_PGP 1
6946 PGPAUX_TARGET="pgpring pgpewrap"
6947 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pgp.o pgpinvoke.o pgpkey.o pgplib.o gnupgparse.o pgpmicalg.o pgppacket.o crypt-mod-pgp-classic.o"
6950 # Check whether --enable-smime or --disable-smime was given.
6951 if test "${enable_smime+set}" = set; then
6952 enableval="$enable_smime"
6953 if test x$enableval = xno ; then
6959 if test x$have_smime != xno ; then
6961 cat >>confdefs.h <<\_ACEOF
6962 #define CRYPT_BACKEND_CLASSIC_SMIME 1
6965 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS smime.o crypt-mod-smime-classic.o"
6966 SMIMEAUX_TARGET="smime_keys"
6970 # Check whether --with-mixmaster or --without-mixmaster was given.
6971 if test "${with_mixmaster+set}" = set; then
6972 withval="$with_mixmaster"
6973 if test -x "$withval" ; then
6974 MIXMASTER="$withval"
6976 MIXMASTER="mixmaster"
6978 OPS="$OPS \$(srcdir)/OPS.MIX"
6979 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS remailer.o"
6981 cat >>confdefs.h <<_ACEOF
6982 #define MIXMASTER "$MIXMASTER"
6989 # We now require all OPS
6990 OPS="$OPS \$(srcdir)/OPS.PGP \$(srcdir)/OPS.SMIME \$(srcdir)/OPS.CRYPT "
6998 cat >>confdefs.h <<_ACEOF
6999 #define SUBVERSION "$SUBVERSION"
7004 # Extract the first word of "ispell", so it can be a program name with args.
7005 set dummy ispell; ac_word=$2
7006 echo "$as_me:$LINENO: checking for $ac_word" >&5
7007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7008 if test "${ac_cv_path_ISPELL+set}" = set; then
7009 echo $ECHO_N "(cached) $ECHO_C" >&6
7013 ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a path.
7016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7020 test -z "$as_dir" && as_dir=.
7021 for ac_exec_ext in '' $ac_executable_extensions; do
7022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7023 ac_cv_path_ISPELL="$as_dir/$ac_word$ac_exec_ext"
7024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7030 test -z "$ac_cv_path_ISPELL" && ac_cv_path_ISPELL="no"
7034 ISPELL=$ac_cv_path_ISPELL
7036 if test -n "$ISPELL"; then
7037 echo "$as_me:$LINENO: result: $ISPELL" >&5
7038 echo "${ECHO_T}$ISPELL" >&6
7040 echo "$as_me:$LINENO: result: no" >&5
7041 echo "${ECHO_T}no" >&6
7044 if test $ISPELL != no; then
7046 cat >>confdefs.h <<_ACEOF
7047 #define ISPELL "$ISPELL"
7053 # Check whether --with-slang or --without-slang was given.
7054 if test "${with_slang+set}" = set; then
7055 withval="$with_slang"
7056 echo "$as_me:$LINENO: checking if this is a BSD system" >&5
7057 echo $ECHO_N "checking if this is a BSD system... $ECHO_C" >&6
7058 if test "${mutt_cv_bsdish+set}" = set; then
7059 echo $ECHO_N "(cached) $ECHO_C" >&6
7061 if test "$cross_compiling" = yes; then
7064 cat >conftest.$ac_ext <<_ACEOF
7067 cat confdefs.h >>conftest.$ac_ext
7068 cat >>conftest.$ac_ext <<_ACEOF
7069 /* end confdefs.h. */
7070 #include <sys/param.h>
7081 rm -f conftest$ac_exeext
7082 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7083 (eval $ac_link) 2>&5
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); }; }; then
7094 echo "$as_me: program exited with status $ac_status" >&5
7095 echo "$as_me: failed program was:" >&5
7096 sed 's/^/| /' conftest.$ac_ext >&5
7101 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7104 echo "$as_me:$LINENO: result: $mutt_cv_bsdish" >&5
7105 echo "${ECHO_T}$mutt_cv_bsdish" >&6
7107 echo "$as_me:$LINENO: checking for S-Lang" >&5
7108 echo $ECHO_N "checking for S-Lang... $ECHO_C" >&6
7109 if test $withval = yes; then
7110 if test -d $srcdir/../slang; then
7111 mutt_cv_slang=$srcdir/../slang/src
7112 CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
7113 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
7115 if test -d $mutt_cv_prefix/include/slang; then
7116 CPPFLAGS="$CPPFLAGS -I$mutt_cv_prefix/include/slang"
7117 elif test -d /usr/include/slang; then
7118 CPPFLAGS="$CPPFLAGS -I/usr/include/slang"
7123 if test -f $withval/src/slang.h; then
7124 mutt_cv_slang=$withval/src
7125 CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
7126 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
7128 mutt_cv_slang=$withval
7129 if test -d $withval/include/slang; then
7130 CPPFLAGS="$CPPFLAGS -I${withval}/include/slang"
7131 elif test -d $withval/include; then
7132 CPPFLAGS="$CPPFLAGS -I${withval}/include"
7134 LDFLAGS="$LDFLAGS -L${withval}/lib"
7137 echo "$as_me:$LINENO: result: $mutt_cv_slang" >&5
7138 echo "${ECHO_T}$mutt_cv_slang" >&6
7139 if test $mutt_cv_bsdish = yes; then
7141 echo "$as_me:$LINENO: checking for main in -ltermlib" >&5
7142 echo $ECHO_N "checking for main in -ltermlib... $ECHO_C" >&6
7143 if test "${ac_cv_lib_termlib_main+set}" = set; then
7144 echo $ECHO_N "(cached) $ECHO_C" >&6
7146 ac_check_lib_save_LIBS=$LIBS
7147 LIBS="-ltermlib $LIBS"
7148 cat >conftest.$ac_ext <<_ACEOF
7151 cat confdefs.h >>conftest.$ac_ext
7152 cat >>conftest.$ac_ext <<_ACEOF
7153 /* end confdefs.h. */
7164 rm -f conftest.$ac_objext conftest$ac_exeext
7165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7166 (eval $ac_link) 2>conftest.er1
7168 grep -v '^ *+' conftest.er1 >conftest.err
7170 cat conftest.err >&5
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); } &&
7173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); }; } &&
7179 { ac_try='test -s conftest$ac_exeext'
7180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); }; }; then
7185 ac_cv_lib_termlib_main=yes
7187 echo "$as_me: failed program was:" >&5
7188 sed 's/^/| /' conftest.$ac_ext >&5
7190 ac_cv_lib_termlib_main=no
7192 rm -f conftest.err conftest.$ac_objext \
7193 conftest$ac_exeext conftest.$ac_ext
7194 LIBS=$ac_check_lib_save_LIBS
7196 echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_main" >&5
7197 echo "${ECHO_T}$ac_cv_lib_termlib_main" >&6
7198 if test $ac_cv_lib_termlib_main = yes; then
7199 cat >>confdefs.h <<_ACEOF
7200 #define HAVE_LIBTERMLIB 1
7203 LIBS="-ltermlib $LIBS"
7209 cat >>confdefs.h <<\_ACEOF
7210 #define USE_SLANG_CURSES 1
7214 cat >>confdefs.h <<\_ACEOF
7215 #define HAVE_COLOR 1
7218 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
7221 echo "$as_me:$LINENO: checking for SLtt_get_terminfo in -lslang" >&5
7222 echo $ECHO_N "checking for SLtt_get_terminfo in -lslang... $ECHO_C" >&6
7223 if test "${ac_cv_lib_slang_SLtt_get_terminfo+set}" = set; then
7224 echo $ECHO_N "(cached) $ECHO_C" >&6
7226 ac_check_lib_save_LIBS=$LIBS
7227 LIBS="-lslang -lm $LIBS"
7228 cat >conftest.$ac_ext <<_ACEOF
7231 cat confdefs.h >>conftest.$ac_ext
7232 cat >>conftest.$ac_ext <<_ACEOF
7233 /* end confdefs.h. */
7235 /* Override any gcc2 internal prototype to avoid an error. */
7239 /* We use char because int might match the return type of a gcc2
7240 builtin and then its argument prototype would still apply. */
7241 char SLtt_get_terminfo ();
7245 SLtt_get_terminfo ();
7250 rm -f conftest.$ac_objext conftest$ac_exeext
7251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7252 (eval $ac_link) 2>conftest.er1
7254 grep -v '^ *+' conftest.er1 >conftest.err
7256 cat conftest.err >&5
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); } &&
7259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); }; } &&
7265 { ac_try='test -s conftest$ac_exeext'
7266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); }; }; then
7271 ac_cv_lib_slang_SLtt_get_terminfo=yes
7273 echo "$as_me: failed program was:" >&5
7274 sed 's/^/| /' conftest.$ac_ext >&5
7276 ac_cv_lib_slang_SLtt_get_terminfo=no
7278 rm -f conftest.err conftest.$ac_objext \
7279 conftest$ac_exeext conftest.$ac_ext
7280 LIBS=$ac_check_lib_save_LIBS
7282 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLtt_get_terminfo" >&5
7283 echo "${ECHO_T}$ac_cv_lib_slang_SLtt_get_terminfo" >&6
7284 if test $ac_cv_lib_slang_SLtt_get_terminfo = yes; then
7285 MUTTLIBS="$MUTTLIBS -lslang -lm"
7287 { { echo "$as_me:$LINENO: error: unable to compile. check config.log" >&5
7288 echo "$as_me: error: unable to compile. check config.log" >&2;}
7289 { (exit 1); exit 1; }; }
7297 # Check whether --with-curses or --without-curses was given.
7298 if test "${with_curses+set}" = set; then
7299 withval="$with_curses"
7300 if test $withval != yes; then
7301 mutt_cv_curses=$withval
7303 if test x$mutt_cv_curses != x/usr; then
7304 LDFLAGS="-L${mutt_cv_curses}/lib $LDFLAGS"
7305 CPPFLAGS="$CPPFLAGS -I${mutt_cv_curses}/include"
7309 echo "$as_me:$LINENO: checking for initscr" >&5
7310 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
7311 if test "${ac_cv_func_initscr+set}" = set; then
7312 echo $ECHO_N "(cached) $ECHO_C" >&6
7314 cat >conftest.$ac_ext <<_ACEOF
7317 cat confdefs.h >>conftest.$ac_ext
7318 cat >>conftest.$ac_ext <<_ACEOF
7319 /* end confdefs.h. */
7320 /* Define initscr to an innocuous variant, in case <limits.h> declares initscr.
7321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7322 #define initscr innocuous_initscr
7324 /* System header to define __stub macros and hopefully few prototypes,
7325 which can conflict with char initscr (); below.
7326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7327 <limits.h> exists even on freestanding compilers. */
7330 # include <limits.h>
7332 # include <assert.h>
7337 /* Override any gcc2 internal prototype to avoid an error. */
7342 /* We use char because int might match the return type of a gcc2
7343 builtin and then its argument prototype would still apply. */
7345 /* The GNU C library defines this for functions which it implements
7346 to always fail with ENOSYS. Some functions are actually named
7347 something starting with __ and the normal name is an alias. */
7348 #if defined (__stub_initscr) || defined (__stub___initscr)
7351 char (*f) () = initscr;
7360 return f != initscr;
7365 rm -f conftest.$ac_objext conftest$ac_exeext
7366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7367 (eval $ac_link) 2>conftest.er1
7369 grep -v '^ *+' conftest.er1 >conftest.err
7371 cat conftest.err >&5
7372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373 (exit $ac_status); } &&
7374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); }; } &&
7380 { ac_try='test -s conftest$ac_exeext'
7381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); }; }; then
7386 ac_cv_func_initscr=yes
7388 echo "$as_me: failed program was:" >&5
7389 sed 's/^/| /' conftest.$ac_ext >&5
7391 ac_cv_func_initscr=no
7393 rm -f conftest.err conftest.$ac_objext \
7394 conftest$ac_exeext conftest.$ac_ext
7396 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
7397 echo "${ECHO_T}$ac_cv_func_initscr" >&6
7398 if test $ac_cv_func_initscr = yes; then
7402 cf_ncurses="ncurses"
7403 for lib in ncurses ncursesw
7405 as_ac_Lib=`echo "ac_cv_lib_$lib''_waddnwstr" | $as_tr_sh`
7406 echo "$as_me:$LINENO: checking for waddnwstr in -l$lib" >&5
7407 echo $ECHO_N "checking for waddnwstr in -l$lib... $ECHO_C" >&6
7408 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7409 echo $ECHO_N "(cached) $ECHO_C" >&6
7411 ac_check_lib_save_LIBS=$LIBS
7413 cat >conftest.$ac_ext <<_ACEOF
7416 cat confdefs.h >>conftest.$ac_ext
7417 cat >>conftest.$ac_ext <<_ACEOF
7418 /* end confdefs.h. */
7420 /* Override any gcc2 internal prototype to avoid an error. */
7424 /* We use char because int might match the return type of a gcc2
7425 builtin and then its argument prototype would still apply. */
7435 rm -f conftest.$ac_objext conftest$ac_exeext
7436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7437 (eval $ac_link) 2>conftest.er1
7439 grep -v '^ *+' conftest.er1 >conftest.err
7441 cat conftest.err >&5
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); } &&
7444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); }; } &&
7450 { ac_try='test -s conftest$ac_exeext'
7451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); }; }; then
7456 eval "$as_ac_Lib=yes"
7458 echo "$as_me: failed program was:" >&5
7459 sed 's/^/| /' conftest.$ac_ext >&5
7461 eval "$as_ac_Lib=no"
7463 rm -f conftest.err conftest.$ac_objext \
7464 conftest$ac_exeext conftest.$ac_ext
7465 LIBS=$ac_check_lib_save_LIBS
7467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7468 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7469 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7470 cf_ncurses="$lib"; break
7474 as_ac_Lib=`echo "ac_cv_lib_$cf_ncurses''_initscr" | $as_tr_sh`
7475 echo "$as_me:$LINENO: checking for initscr in -l$cf_ncurses" >&5
7476 echo $ECHO_N "checking for initscr in -l$cf_ncurses... $ECHO_C" >&6
7477 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7478 echo $ECHO_N "(cached) $ECHO_C" >&6
7480 ac_check_lib_save_LIBS=$LIBS
7481 LIBS="-l$cf_ncurses $LIBS"
7482 cat >conftest.$ac_ext <<_ACEOF
7485 cat confdefs.h >>conftest.$ac_ext
7486 cat >>conftest.$ac_ext <<_ACEOF
7487 /* end confdefs.h. */
7489 /* Override any gcc2 internal prototype to avoid an error. */
7493 /* We use char because int might match the return type of a gcc2
7494 builtin and then its argument prototype would still apply. */
7504 rm -f conftest.$ac_objext conftest$ac_exeext
7505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7506 (eval $ac_link) 2>conftest.er1
7508 grep -v '^ *+' conftest.er1 >conftest.err
7510 cat conftest.err >&5
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); } &&
7513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); }; } &&
7519 { ac_try='test -s conftest$ac_exeext'
7520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); }; }; then
7525 eval "$as_ac_Lib=yes"
7527 echo "$as_me: failed program was:" >&5
7528 sed 's/^/| /' conftest.$ac_ext >&5
7530 eval "$as_ac_Lib=no"
7532 rm -f conftest.err conftest.$ac_objext \
7533 conftest$ac_exeext conftest.$ac_ext
7534 LIBS=$ac_check_lib_save_LIBS
7536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7537 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7538 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7539 MUTTLIBS="$MUTTLIBS -l$cf_ncurses"
7540 if test x$mutt_cv_curses = x/usr -a -d /usr/include/ncurses; then
7541 CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
7544 if test "$cf_ncurses" = ncursesw; then
7546 for ac_header in ncursesw/ncurses.h
7548 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7549 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7550 echo "$as_me:$LINENO: checking for $ac_header" >&5
7551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7555 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7556 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7558 # Is the header compilable?
7559 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7560 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7561 cat >conftest.$ac_ext <<_ACEOF
7564 cat confdefs.h >>conftest.$ac_ext
7565 cat >>conftest.$ac_ext <<_ACEOF
7566 /* end confdefs.h. */
7567 $ac_includes_default
7568 #include <$ac_header>
7570 rm -f conftest.$ac_objext
7571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7572 (eval $ac_compile) 2>conftest.er1
7574 grep -v '^ *+' conftest.er1 >conftest.err
7576 cat conftest.err >&5
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); } &&
7579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); }; } &&
7585 { ac_try='test -s conftest.$ac_objext'
7586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7590 (exit $ac_status); }; }; then
7591 ac_header_compiler=yes
7593 echo "$as_me: failed program was:" >&5
7594 sed 's/^/| /' conftest.$ac_ext >&5
7596 ac_header_compiler=no
7598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7599 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7600 echo "${ECHO_T}$ac_header_compiler" >&6
7602 # Is the header present?
7603 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7604 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7605 cat >conftest.$ac_ext <<_ACEOF
7608 cat confdefs.h >>conftest.$ac_ext
7609 cat >>conftest.$ac_ext <<_ACEOF
7610 /* end confdefs.h. */
7611 #include <$ac_header>
7613 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7614 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7616 grep -v '^ *+' conftest.er1 >conftest.err
7618 cat conftest.err >&5
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); } >/dev/null; then
7621 if test -s conftest.err; then
7622 ac_cpp_err=$ac_c_preproc_warn_flag
7623 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7630 if test -z "$ac_cpp_err"; then
7631 ac_header_preproc=yes
7633 echo "$as_me: failed program was:" >&5
7634 sed 's/^/| /' conftest.$ac_ext >&5
7636 ac_header_preproc=no
7638 rm -f conftest.err conftest.$ac_ext
7639 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7640 echo "${ECHO_T}$ac_header_preproc" >&6
7642 # So? What about this header?
7643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7648 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7649 ac_header_preproc=yes
7652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7656 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7657 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7658 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7659 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7662 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7663 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7666 ## ------------------------------------------ ##
7667 ## Report this to the AC_PACKAGE_NAME lists. ##
7668 ## ------------------------------------------ ##
7671 sed "s/^/$as_me: WARNING: /" >&2
7674 echo "$as_me:$LINENO: checking for $ac_header" >&5
7675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7676 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7677 echo $ECHO_N "(cached) $ECHO_C" >&6
7679 eval "$as_ac_Header=\$ac_header_preproc"
7681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7682 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7685 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7686 cat >>confdefs.h <<_ACEOF
7687 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7689 cf_cv_ncurses_header="ncursesw/ncurses.h"
7696 for ac_header in ncurses.h
7698 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7700 echo "$as_me:$LINENO: checking for $ac_header" >&5
7701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7703 echo $ECHO_N "(cached) $ECHO_C" >&6
7705 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7706 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7708 # Is the header compilable?
7709 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7710 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7711 cat >conftest.$ac_ext <<_ACEOF
7714 cat confdefs.h >>conftest.$ac_ext
7715 cat >>conftest.$ac_ext <<_ACEOF
7716 /* end confdefs.h. */
7717 $ac_includes_default
7718 #include <$ac_header>
7720 rm -f conftest.$ac_objext
7721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7722 (eval $ac_compile) 2>conftest.er1
7724 grep -v '^ *+' conftest.er1 >conftest.err
7726 cat conftest.err >&5
7727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7728 (exit $ac_status); } &&
7729 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734 (exit $ac_status); }; } &&
7735 { ac_try='test -s conftest.$ac_objext'
7736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 (exit $ac_status); }; }; then
7741 ac_header_compiler=yes
7743 echo "$as_me: failed program was:" >&5
7744 sed 's/^/| /' conftest.$ac_ext >&5
7746 ac_header_compiler=no
7748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7749 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7750 echo "${ECHO_T}$ac_header_compiler" >&6
7752 # Is the header present?
7753 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7754 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7755 cat >conftest.$ac_ext <<_ACEOF
7758 cat confdefs.h >>conftest.$ac_ext
7759 cat >>conftest.$ac_ext <<_ACEOF
7760 /* end confdefs.h. */
7761 #include <$ac_header>
7763 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7764 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7766 grep -v '^ *+' conftest.er1 >conftest.err
7768 cat conftest.err >&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); } >/dev/null; then
7771 if test -s conftest.err; then
7772 ac_cpp_err=$ac_c_preproc_warn_flag
7773 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7780 if test -z "$ac_cpp_err"; then
7781 ac_header_preproc=yes
7783 echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.$ac_ext >&5
7786 ac_header_preproc=no
7788 rm -f conftest.err conftest.$ac_ext
7789 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7790 echo "${ECHO_T}$ac_header_preproc" >&6
7792 # So? What about this header?
7793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7795 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7796 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7798 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7799 ac_header_preproc=yes
7802 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7803 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7804 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7805 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7806 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7807 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7808 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7809 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7812 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7813 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7816 ## ------------------------------------------ ##
7817 ## Report this to the AC_PACKAGE_NAME lists. ##
7818 ## ------------------------------------------ ##
7821 sed "s/^/$as_me: WARNING: /" >&2
7824 echo "$as_me:$LINENO: checking for $ac_header" >&5
7825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7826 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7827 echo $ECHO_N "(cached) $ECHO_C" >&6
7829 eval "$as_ac_Header=\$ac_header_preproc"
7831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7832 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7836 cat >>confdefs.h <<_ACEOF
7837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7839 cf_cv_ncurses_header="ncurses.h"
7847 echo "$as_me:$LINENO: checking for initscr" >&5
7848 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
7849 if test "${ac_cv_func_initscr+set}" = set; then
7850 echo $ECHO_N "(cached) $ECHO_C" >&6
7852 cat >conftest.$ac_ext <<_ACEOF
7855 cat confdefs.h >>conftest.$ac_ext
7856 cat >>conftest.$ac_ext <<_ACEOF
7857 /* end confdefs.h. */
7858 /* Define initscr to an innocuous variant, in case <limits.h> declares initscr.
7859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7860 #define initscr innocuous_initscr
7862 /* System header to define __stub macros and hopefully few prototypes,
7863 which can conflict with char initscr (); below.
7864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7865 <limits.h> exists even on freestanding compilers. */
7868 # include <limits.h>
7870 # include <assert.h>
7875 /* Override any gcc2 internal prototype to avoid an error. */
7880 /* We use char because int might match the return type of a gcc2
7881 builtin and then its argument prototype would still apply. */
7883 /* The GNU C library defines this for functions which it implements
7884 to always fail with ENOSYS. Some functions are actually named
7885 something starting with __ and the normal name is an alias. */
7886 #if defined (__stub_initscr) || defined (__stub___initscr)
7889 char (*f) () = initscr;
7898 return f != initscr;
7903 rm -f conftest.$ac_objext conftest$ac_exeext
7904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7905 (eval $ac_link) 2>conftest.er1
7907 grep -v '^ *+' conftest.er1 >conftest.err
7909 cat conftest.err >&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); } &&
7912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); }; } &&
7918 { ac_try='test -s conftest$ac_exeext'
7919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); }; }; then
7924 ac_cv_func_initscr=yes
7926 echo "$as_me: failed program was:" >&5
7927 sed 's/^/| /' conftest.$ac_ext >&5
7929 ac_cv_func_initscr=no
7931 rm -f conftest.err conftest.$ac_objext \
7932 conftest$ac_exeext conftest.$ac_ext
7934 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
7935 echo "${ECHO_T}$ac_cv_func_initscr" >&6
7936 if test $ac_cv_func_initscr = yes; then
7940 case $host_os in #(vi
7942 echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5
7943 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
7944 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
7945 echo $ECHO_N "(cached) $ECHO_C" >&6
7947 ac_check_lib_save_LIBS=$LIBS
7948 LIBS="-lmytinfo $LIBS"
7949 cat >conftest.$ac_ext <<_ACEOF
7952 cat confdefs.h >>conftest.$ac_ext
7953 cat >>conftest.$ac_ext <<_ACEOF
7954 /* end confdefs.h. */
7956 /* Override any gcc2 internal prototype to avoid an error. */
7960 /* We use char because int might match the return type of a gcc2
7961 builtin and then its argument prototype would still apply. */
7971 rm -f conftest.$ac_objext conftest$ac_exeext
7972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7973 (eval $ac_link) 2>conftest.er1
7975 grep -v '^ *+' conftest.er1 >conftest.err
7977 cat conftest.err >&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); } &&
7980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7985 (exit $ac_status); }; } &&
7986 { ac_try='test -s conftest$ac_exeext'
7987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); }; }; then
7992 ac_cv_lib_mytinfo_tgoto=yes
7994 echo "$as_me: failed program was:" >&5
7995 sed 's/^/| /' conftest.$ac_ext >&5
7997 ac_cv_lib_mytinfo_tgoto=no
7999 rm -f conftest.err conftest.$ac_objext \
8000 conftest$ac_exeext conftest.$ac_ext
8001 LIBS=$ac_check_lib_save_LIBS
8003 echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5
8004 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
8005 if test $ac_cv_lib_mytinfo_tgoto = yes; then
8006 LIBS="-lmytinfo $LIBS"
8011 echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5
8012 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
8013 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
8014 echo $ECHO_N "(cached) $ECHO_C" >&6
8016 ac_check_lib_save_LIBS=$LIBS
8017 LIBS="-lcur_colr $LIBS"
8018 cat >conftest.$ac_ext <<_ACEOF
8021 cat confdefs.h >>conftest.$ac_ext
8022 cat >>conftest.$ac_ext <<_ACEOF
8023 /* end confdefs.h. */
8025 /* Override any gcc2 internal prototype to avoid an error. */
8029 /* We use char because int might match the return type of a gcc2
8030 builtin and then its argument prototype would still apply. */
8040 rm -f conftest.$ac_objext conftest$ac_exeext
8041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8042 (eval $ac_link) 2>conftest.er1
8044 grep -v '^ *+' conftest.er1 >conftest.err
8046 cat conftest.err >&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } &&
8049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; } &&
8055 { ac_try='test -s conftest$ac_exeext'
8056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); }; }; then
8061 ac_cv_lib_cur_colr_initscr=yes
8063 echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.$ac_ext >&5
8066 ac_cv_lib_cur_colr_initscr=no
8068 rm -f conftest.err conftest.$ac_objext \
8069 conftest$ac_exeext conftest.$ac_ext
8070 LIBS=$ac_check_lib_save_LIBS
8072 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5
8073 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
8074 if test $ac_cv_lib_cur_colr_initscr = yes; then
8076 LIBS="-lcur_colr $LIBS"
8077 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
8078 ac_cv_func_initscr=yes
8082 echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5
8083 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
8084 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
8085 echo $ECHO_N "(cached) $ECHO_C" >&6
8087 ac_check_lib_save_LIBS=$LIBS
8088 LIBS="-lHcurses $LIBS"
8089 cat >conftest.$ac_ext <<_ACEOF
8092 cat confdefs.h >>conftest.$ac_ext
8093 cat >>conftest.$ac_ext <<_ACEOF
8094 /* end confdefs.h. */
8096 /* Override any gcc2 internal prototype to avoid an error. */
8100 /* We use char because int might match the return type of a gcc2
8101 builtin and then its argument prototype would still apply. */
8111 rm -f conftest.$ac_objext conftest$ac_exeext
8112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8113 (eval $ac_link) 2>conftest.er1
8115 grep -v '^ *+' conftest.er1 >conftest.err
8117 cat conftest.err >&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); } &&
8120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); }; } &&
8126 { ac_try='test -s conftest$ac_exeext'
8127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); }; }; then
8132 ac_cv_lib_Hcurses_initscr=yes
8134 echo "$as_me: failed program was:" >&5
8135 sed 's/^/| /' conftest.$ac_ext >&5
8137 ac_cv_lib_Hcurses_initscr=no
8139 rm -f conftest.err conftest.$ac_objext \
8140 conftest$ac_exeext conftest.$ac_ext
8141 LIBS=$ac_check_lib_save_LIBS
8143 echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5
8144 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
8145 if test $ac_cv_lib_Hcurses_initscr = yes; then
8147 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
8148 LIBS="-lHcurses $LIBS"
8149 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
8150 ac_cv_func_initscr=yes
8157 linux*) # Suse Linux does not follow /usr/lib convention
8162 if test ".$With5lib" != ".no" ; then
8163 if test -d /usr/5lib ; then
8165 CPPFLAGS="$CPPFLAGS -I/usr/5include"
8166 LIBS="$LIBS -L/usr/5lib"
8170 if test ".$ac_cv_func_initscr" != .yes ; then
8171 cf_save_LIBS="$LIBS"
8175 # Check for library containing tgoto. Do this before curses library
8176 # because it may be needed to link the test-case for initscr.
8177 echo "$as_me:$LINENO: checking for tgoto" >&5
8178 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
8179 if test "${ac_cv_func_tgoto+set}" = set; then
8180 echo $ECHO_N "(cached) $ECHO_C" >&6
8182 cat >conftest.$ac_ext <<_ACEOF
8185 cat confdefs.h >>conftest.$ac_ext
8186 cat >>conftest.$ac_ext <<_ACEOF
8187 /* end confdefs.h. */
8188 /* Define tgoto to an innocuous variant, in case <limits.h> declares tgoto.
8189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8190 #define tgoto innocuous_tgoto
8192 /* System header to define __stub macros and hopefully few prototypes,
8193 which can conflict with char tgoto (); below.
8194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8195 <limits.h> exists even on freestanding compilers. */
8198 # include <limits.h>
8200 # include <assert.h>
8205 /* Override any gcc2 internal prototype to avoid an error. */
8210 /* We use char because int might match the return type of a gcc2
8211 builtin and then its argument prototype would still apply. */
8213 /* The GNU C library defines this for functions which it implements
8214 to always fail with ENOSYS. Some functions are actually named
8215 something starting with __ and the normal name is an alias. */
8216 #if defined (__stub_tgoto) || defined (__stub___tgoto)
8219 char (*f) () = tgoto;
8233 rm -f conftest.$ac_objext conftest$ac_exeext
8234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8235 (eval $ac_link) 2>conftest.er1
8237 grep -v '^ *+' conftest.er1 >conftest.err
8239 cat conftest.err >&5
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); } &&
8242 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); }; } &&
8248 { ac_try='test -s conftest$ac_exeext'
8249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); }; }; then
8254 ac_cv_func_tgoto=yes
8256 echo "$as_me: failed program was:" >&5
8257 sed 's/^/| /' conftest.$ac_ext >&5
8261 rm -f conftest.err conftest.$ac_objext \
8262 conftest$ac_exeext conftest.$ac_ext
8264 echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5
8265 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
8266 if test $ac_cv_func_tgoto = yes; then
8267 cf_term_lib=predefined
8270 for cf_term_lib in termcap termlib unknown
8272 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
8273 echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5
8274 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
8275 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
8276 echo $ECHO_N "(cached) $ECHO_C" >&6
8278 ac_check_lib_save_LIBS=$LIBS
8279 LIBS="-l$cf_term_lib $LIBS"
8280 cat >conftest.$ac_ext <<_ACEOF
8283 cat confdefs.h >>conftest.$ac_ext
8284 cat >>conftest.$ac_ext <<_ACEOF
8285 /* end confdefs.h. */
8287 /* Override any gcc2 internal prototype to avoid an error. */
8291 /* We use char because int might match the return type of a gcc2
8292 builtin and then its argument prototype would still apply. */
8302 rm -f conftest.$ac_objext conftest$ac_exeext
8303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8304 (eval $ac_link) 2>conftest.er1
8306 grep -v '^ *+' conftest.er1 >conftest.err
8308 cat conftest.err >&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); } &&
8311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); }; } &&
8317 { ac_try='test -s conftest$ac_exeext'
8318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); }; }; then
8323 eval "$as_ac_Lib=yes"
8325 echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.$ac_ext >&5
8328 eval "$as_ac_Lib=no"
8330 rm -f conftest.err conftest.$ac_objext \
8331 conftest$ac_exeext conftest.$ac_ext
8332 LIBS=$ac_check_lib_save_LIBS
8334 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
8335 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
8336 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
8345 # Check for library containing initscr
8346 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
8347 for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
8349 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
8350 echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5
8351 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
8352 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
8353 echo $ECHO_N "(cached) $ECHO_C" >&6
8355 ac_check_lib_save_LIBS=$LIBS
8356 LIBS="-l$cf_curs_lib $LIBS"
8357 cat >conftest.$ac_ext <<_ACEOF
8360 cat confdefs.h >>conftest.$ac_ext
8361 cat >>conftest.$ac_ext <<_ACEOF
8362 /* end confdefs.h. */
8364 /* Override any gcc2 internal prototype to avoid an error. */
8368 /* We use char because int might match the return type of a gcc2
8369 builtin and then its argument prototype would still apply. */
8379 rm -f conftest.$ac_objext conftest$ac_exeext
8380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8381 (eval $ac_link) 2>conftest.er1
8383 grep -v '^ *+' conftest.er1 >conftest.err
8385 cat conftest.err >&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); } &&
8388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); }; } &&
8394 { ac_try='test -s conftest$ac_exeext'
8395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); }; }; then
8400 eval "$as_ac_Lib=yes"
8402 echo "$as_me: failed program was:" >&5
8403 sed 's/^/| /' conftest.$ac_ext >&5
8405 eval "$as_ac_Lib=no"
8407 rm -f conftest.err conftest.$ac_objext \
8408 conftest$ac_exeext conftest.$ac_ext
8409 LIBS=$ac_check_lib_save_LIBS
8411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
8412 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
8413 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
8418 test $cf_curs_lib = unknown && { { echo "$as_me:$LINENO: error: no curses library found" >&5
8419 echo "$as_me: error: no curses library found" >&2;}
8420 { (exit 1); exit 1; }; }
8422 LIBS="-l$cf_curs_lib $cf_save_LIBS"
8423 if test "$cf_term_lib" = unknown ; then
8424 echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5
8425 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
8426 cat >conftest.$ac_ext <<_ACEOF
8429 cat confdefs.h >>conftest.$ac_ext
8430 cat >>conftest.$ac_ext <<_ACEOF
8431 /* end confdefs.h. */
8432 #include <${cf_cv_ncurses_header-curses.h}>
8441 rm -f conftest.$ac_objext conftest$ac_exeext
8442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8443 (eval $ac_link) 2>conftest.er1
8445 grep -v '^ *+' conftest.er1 >conftest.err
8447 cat conftest.err >&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } &&
8450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); }; } &&
8456 { ac_try='test -s conftest$ac_exeext'
8457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); }; }; then
8464 echo "$as_me: failed program was:" >&5
8465 sed 's/^/| /' conftest.$ac_ext >&5
8469 rm -f conftest.err conftest.$ac_objext \
8470 conftest$ac_exeext conftest.$ac_ext
8471 echo "$as_me:$LINENO: result: $cf_result" >&5
8472 echo "${ECHO_T}$cf_result" >&6
8473 test $cf_result = no && { { echo "$as_me:$LINENO: error: Cannot link curses library" >&5
8474 echo "$as_me: error: Cannot link curses library" >&2;}
8475 { (exit 1); exit 1; }; }
8476 elif test "$cf_term_lib" != predefined ; then
8477 echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
8478 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
8479 cat >conftest.$ac_ext <<_ACEOF
8482 cat confdefs.h >>conftest.$ac_ext
8483 cat >>conftest.$ac_ext <<_ACEOF
8484 /* end confdefs.h. */
8485 #include <${cf_cv_ncurses_header-curses.h}>
8489 initscr(); tgoto((char *)0, 0, 0);
8494 rm -f conftest.$ac_objext conftest$ac_exeext
8495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8496 (eval $ac_link) 2>conftest.er1
8498 grep -v '^ *+' conftest.er1 >conftest.err
8500 cat conftest.err >&5
8501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8502 (exit $ac_status); } &&
8503 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 (exit $ac_status); }; } &&
8509 { ac_try='test -s conftest$ac_exeext'
8510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); }; }; then
8517 echo "$as_me: failed program was:" >&5
8518 sed 's/^/| /' conftest.$ac_ext >&5
8521 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
8522 cat >conftest.$ac_ext <<_ACEOF
8525 cat confdefs.h >>conftest.$ac_ext
8526 cat >>conftest.$ac_ext <<_ACEOF
8527 /* end confdefs.h. */
8528 #include <${cf_cv_ncurses_header-curses.h}>
8537 rm -f conftest.$ac_objext conftest$ac_exeext
8538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8539 (eval $ac_link) 2>conftest.er1
8541 grep -v '^ *+' conftest.er1 >conftest.err
8543 cat conftest.err >&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); } &&
8546 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8551 (exit $ac_status); }; } &&
8552 { ac_try='test -s conftest$ac_exeext'
8553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); }; }; then
8560 echo "$as_me: failed program was:" >&5
8561 sed 's/^/| /' conftest.$ac_ext >&5
8565 rm -f conftest.err conftest.$ac_objext \
8566 conftest$ac_exeext conftest.$ac_ext
8569 rm -f conftest.err conftest.$ac_objext \
8570 conftest$ac_exeext conftest.$ac_ext
8571 echo "$as_me:$LINENO: result: $cf_result" >&5
8572 echo "${ECHO_T}$cf_result" >&6
8586 LIBS="$LIBS $MUTTLIBS"
8587 for ac_func in start_color typeahead bkgdset curs_set meta use_default_colors resizeterm
8590 echo "$as_me:$LINENO: checking for $ac_func declaration" >&5
8591 echo $ECHO_N "checking for $ac_func declaration... $ECHO_C" >&6
8592 if eval "test \"\${ac_cv_func_decl_$ac_func+set}\" = set"; then
8593 echo $ECHO_N "(cached) $ECHO_C" >&6
8595 cat >conftest.$ac_ext <<_ACEOF
8598 cat confdefs.h >>conftest.$ac_ext
8599 cat >>conftest.$ac_ext <<_ACEOF
8600 /* end confdefs.h. */
8601 #include <${cf_cv_ncurses_header-curses.h}>
8606 extern int ${ac_func}();
8612 rm -f conftest.$ac_objext
8613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8614 (eval $ac_compile) 2>conftest.er1
8616 grep -v '^ *+' conftest.er1 >conftest.err
8618 cat conftest.err >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); } &&
8621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }; } &&
8627 { ac_try='test -s conftest.$ac_objext'
8628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); }; }; then
8634 cat >conftest.$ac_ext <<_ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h. */
8640 #include <${cf_cv_ncurses_header-curses.h}>
8645 int (*p)() = ${ac_func};
8651 rm -f conftest.$ac_objext
8652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8653 (eval $ac_compile) 2>conftest.er1
8655 grep -v '^ *+' conftest.er1 >conftest.err
8657 cat conftest.err >&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); } &&
8660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); }; } &&
8666 { ac_try='test -s conftest.$ac_objext'
8667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); }; }; then
8673 eval "ac_cv_func_decl_$ac_func=yes"
8675 echo "$as_me: failed program was:" >&5
8676 sed 's/^/| /' conftest.$ac_ext >&5
8679 eval "ac_cv_func_decl_$ac_func=no"
8681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8683 echo "$as_me: failed program was:" >&5
8684 sed 's/^/| /' conftest.$ac_ext >&5
8687 eval "ac_cv_func_decl_$ac_func=yes"
8689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8692 if eval "test \"`echo '$ac_cv_func_'decl_$ac_func`\" = yes"; then
8693 echo "$as_me:$LINENO: result: yes" >&5
8694 echo "${ECHO_T}yes" >&6
8697 ac_tr_func=`echo HAVE_$ac_func | tr '[a-z]' '[A-Z]'`
8699 cat >>confdefs.h <<_ACEOF
8700 #define $ac_tr_func 1
8704 echo "$as_me:$LINENO: result: no" >&5
8705 echo "${ECHO_T}no" >&6
8709 if test "$ac_cv_func_decl_start_color" = yes; then
8711 cat >>confdefs.h <<\_ACEOF
8712 #define HAVE_COLOR 1
8716 if test "$ac_cv_func_decl_resizeterm" = yes; then
8717 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
8723 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8724 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8725 if test "${ac_cv_header_stdc+set}" = set; then
8726 echo $ECHO_N "(cached) $ECHO_C" >&6
8728 cat >conftest.$ac_ext <<_ACEOF
8731 cat confdefs.h >>conftest.$ac_ext
8732 cat >>conftest.$ac_ext <<_ACEOF
8733 /* end confdefs.h. */
8747 rm -f conftest.$ac_objext
8748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8749 (eval $ac_compile) 2>conftest.er1
8751 grep -v '^ *+' conftest.er1 >conftest.err
8753 cat conftest.err >&5
8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 (exit $ac_status); } &&
8756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); }; } &&
8762 { ac_try='test -s conftest.$ac_objext'
8763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); }; }; then
8768 ac_cv_header_stdc=yes
8770 echo "$as_me: failed program was:" >&5
8771 sed 's/^/| /' conftest.$ac_ext >&5
8773 ac_cv_header_stdc=no
8775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8777 if test $ac_cv_header_stdc = yes; then
8778 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8779 cat >conftest.$ac_ext <<_ACEOF
8782 cat confdefs.h >>conftest.$ac_ext
8783 cat >>conftest.$ac_ext <<_ACEOF
8784 /* end confdefs.h. */
8788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8789 $EGREP "memchr" >/dev/null 2>&1; then
8792 ac_cv_header_stdc=no
8798 if test $ac_cv_header_stdc = yes; then
8799 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8800 cat >conftest.$ac_ext <<_ACEOF
8803 cat confdefs.h >>conftest.$ac_ext
8804 cat >>conftest.$ac_ext <<_ACEOF
8805 /* end confdefs.h. */
8809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8810 $EGREP "free" >/dev/null 2>&1; then
8813 ac_cv_header_stdc=no
8819 if test $ac_cv_header_stdc = yes; then
8820 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8821 if test "$cross_compiling" = yes; then
8824 cat >conftest.$ac_ext <<_ACEOF
8827 cat confdefs.h >>conftest.$ac_ext
8828 cat >>conftest.$ac_ext <<_ACEOF
8829 /* end confdefs.h. */
8831 #if ((' ' & 0x0FF) == 0x020)
8832 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8833 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8835 # define ISLOWER(c) \
8836 (('a' <= (c) && (c) <= 'i') \
8837 || ('j' <= (c) && (c) <= 'r') \
8838 || ('s' <= (c) && (c) <= 'z'))
8839 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8842 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8847 for (i = 0; i < 256; i++)
8848 if (XOR (islower (i), ISLOWER (i))
8849 || toupper (i) != TOUPPER (i))
8854 rm -f conftest$ac_exeext
8855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8856 (eval $ac_link) 2>&5
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); }; }; then
8867 echo "$as_me: program exited with status $ac_status" >&5
8868 echo "$as_me: failed program was:" >&5
8869 sed 's/^/| /' conftest.$ac_ext >&5
8872 ac_cv_header_stdc=no
8874 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8878 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8879 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8880 if test $ac_cv_header_stdc = yes; then
8882 cat >>confdefs.h <<\_ACEOF
8883 #define STDC_HEADERS 1
8893 for ac_header in stdarg.h sys/ioctl.h ioctl.h sysexits.h
8895 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8896 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8897 echo "$as_me:$LINENO: checking for $ac_header" >&5
8898 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8899 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8900 echo $ECHO_N "(cached) $ECHO_C" >&6
8902 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8903 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8905 # Is the header compilable?
8906 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8907 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8908 cat >conftest.$ac_ext <<_ACEOF
8911 cat confdefs.h >>conftest.$ac_ext
8912 cat >>conftest.$ac_ext <<_ACEOF
8913 /* end confdefs.h. */
8914 $ac_includes_default
8915 #include <$ac_header>
8917 rm -f conftest.$ac_objext
8918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8919 (eval $ac_compile) 2>conftest.er1
8921 grep -v '^ *+' conftest.er1 >conftest.err
8923 cat conftest.err >&5
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); } &&
8926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8931 (exit $ac_status); }; } &&
8932 { ac_try='test -s conftest.$ac_objext'
8933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); }; }; then
8938 ac_header_compiler=yes
8940 echo "$as_me: failed program was:" >&5
8941 sed 's/^/| /' conftest.$ac_ext >&5
8943 ac_header_compiler=no
8945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8946 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8947 echo "${ECHO_T}$ac_header_compiler" >&6
8949 # Is the header present?
8950 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8951 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8952 cat >conftest.$ac_ext <<_ACEOF
8955 cat confdefs.h >>conftest.$ac_ext
8956 cat >>conftest.$ac_ext <<_ACEOF
8957 /* end confdefs.h. */
8958 #include <$ac_header>
8960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8963 grep -v '^ *+' conftest.er1 >conftest.err
8965 cat conftest.err >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } >/dev/null; then
8968 if test -s conftest.err; then
8969 ac_cpp_err=$ac_c_preproc_warn_flag
8970 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8977 if test -z "$ac_cpp_err"; then
8978 ac_header_preproc=yes
8980 echo "$as_me: failed program was:" >&5
8981 sed 's/^/| /' conftest.$ac_ext >&5
8983 ac_header_preproc=no
8985 rm -f conftest.err conftest.$ac_ext
8986 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8987 echo "${ECHO_T}$ac_header_preproc" >&6
8989 # So? What about this header?
8990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8992 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8993 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8994 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8996 ac_header_preproc=yes
8999 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9000 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9001 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9002 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9003 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9004 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9005 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9006 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9009 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9010 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9013 ## ------------------------------------------ ##
9014 ## Report this to the AC_PACKAGE_NAME lists. ##
9015 ## ------------------------------------------ ##
9018 sed "s/^/$as_me: WARNING: /" >&2
9021 echo "$as_me:$LINENO: checking for $ac_header" >&5
9022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
9026 eval "$as_ac_Header=\$ac_header_preproc"
9028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9032 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9033 cat >>confdefs.h <<_ACEOF
9034 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9043 for ac_header in sys/time.h sys/resource.h
9045 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9046 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9047 echo "$as_me:$LINENO: checking for $ac_header" >&5
9048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9050 echo $ECHO_N "(cached) $ECHO_C" >&6
9052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9055 # Is the header compilable?
9056 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9057 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9058 cat >conftest.$ac_ext <<_ACEOF
9061 cat confdefs.h >>conftest.$ac_ext
9062 cat >>conftest.$ac_ext <<_ACEOF
9063 /* end confdefs.h. */
9064 $ac_includes_default
9065 #include <$ac_header>
9067 rm -f conftest.$ac_objext
9068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9069 (eval $ac_compile) 2>conftest.er1
9071 grep -v '^ *+' conftest.er1 >conftest.err
9073 cat conftest.err >&5
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); } &&
9076 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); }; } &&
9082 { ac_try='test -s conftest.$ac_objext'
9083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9087 (exit $ac_status); }; }; then
9088 ac_header_compiler=yes
9090 echo "$as_me: failed program was:" >&5
9091 sed 's/^/| /' conftest.$ac_ext >&5
9093 ac_header_compiler=no
9095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9096 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9097 echo "${ECHO_T}$ac_header_compiler" >&6
9099 # Is the header present?
9100 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9101 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9102 cat >conftest.$ac_ext <<_ACEOF
9105 cat confdefs.h >>conftest.$ac_ext
9106 cat >>conftest.$ac_ext <<_ACEOF
9107 /* end confdefs.h. */
9108 #include <$ac_header>
9110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9113 grep -v '^ *+' conftest.er1 >conftest.err
9115 cat conftest.err >&5
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); } >/dev/null; then
9118 if test -s conftest.err; then
9119 ac_cpp_err=$ac_c_preproc_warn_flag
9120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9127 if test -z "$ac_cpp_err"; then
9128 ac_header_preproc=yes
9130 echo "$as_me: failed program was:" >&5
9131 sed 's/^/| /' conftest.$ac_ext >&5
9133 ac_header_preproc=no
9135 rm -f conftest.err conftest.$ac_ext
9136 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9137 echo "${ECHO_T}$ac_header_preproc" >&6
9139 # So? What about this header?
9140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9146 ac_header_preproc=yes
9149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9152 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9156 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9163 ## ------------------------------------------ ##
9164 ## Report this to the AC_PACKAGE_NAME lists. ##
9165 ## ------------------------------------------ ##
9168 sed "s/^/$as_me: WARNING: /" >&2
9171 echo "$as_me:$LINENO: checking for $ac_header" >&5
9172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9174 echo $ECHO_N "(cached) $ECHO_C" >&6
9176 eval "$as_ac_Header=\$ac_header_preproc"
9178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9183 cat >>confdefs.h <<_ACEOF
9184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9192 for ac_header in unix.h
9194 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9196 echo "$as_me:$LINENO: checking for $ac_header" >&5
9197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9199 echo $ECHO_N "(cached) $ECHO_C" >&6
9201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9202 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9204 # Is the header compilable?
9205 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9207 cat >conftest.$ac_ext <<_ACEOF
9210 cat confdefs.h >>conftest.$ac_ext
9211 cat >>conftest.$ac_ext <<_ACEOF
9212 /* end confdefs.h. */
9213 $ac_includes_default
9214 #include <$ac_header>
9216 rm -f conftest.$ac_objext
9217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9218 (eval $ac_compile) 2>conftest.er1
9220 grep -v '^ *+' conftest.er1 >conftest.err
9222 cat conftest.err >&5
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); } &&
9225 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); }; } &&
9231 { ac_try='test -s conftest.$ac_objext'
9232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); }; }; then
9237 ac_header_compiler=yes
9239 echo "$as_me: failed program was:" >&5
9240 sed 's/^/| /' conftest.$ac_ext >&5
9242 ac_header_compiler=no
9244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9246 echo "${ECHO_T}$ac_header_compiler" >&6
9248 # Is the header present?
9249 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9251 cat >conftest.$ac_ext <<_ACEOF
9254 cat confdefs.h >>conftest.$ac_ext
9255 cat >>conftest.$ac_ext <<_ACEOF
9256 /* end confdefs.h. */
9257 #include <$ac_header>
9259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9262 grep -v '^ *+' conftest.er1 >conftest.err
9264 cat conftest.err >&5
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); } >/dev/null; then
9267 if test -s conftest.err; then
9268 ac_cpp_err=$ac_c_preproc_warn_flag
9269 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9276 if test -z "$ac_cpp_err"; then
9277 ac_header_preproc=yes
9279 echo "$as_me: failed program was:" >&5
9280 sed 's/^/| /' conftest.$ac_ext >&5
9282 ac_header_preproc=no
9284 rm -f conftest.err conftest.$ac_ext
9285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9286 echo "${ECHO_T}$ac_header_preproc" >&6
9288 # So? What about this header?
9289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9291 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9294 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9295 ac_header_preproc=yes
9298 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9299 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9300 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9301 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9302 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9303 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9304 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9305 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9308 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9309 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9312 ## ------------------------------------------ ##
9313 ## Report this to the AC_PACKAGE_NAME lists. ##
9314 ## ------------------------------------------ ##
9317 sed "s/^/$as_me: WARNING: /" >&2
9320 echo "$as_me:$LINENO: checking for $ac_header" >&5
9321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9323 echo $ECHO_N "(cached) $ECHO_C" >&6
9325 eval "$as_ac_Header=\$ac_header_preproc"
9327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9332 cat >>confdefs.h <<_ACEOF
9333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9344 for ac_func in setrlimit getsid isctype
9346 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9347 echo "$as_me:$LINENO: checking for $ac_func" >&5
9348 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9349 if eval "test \"\${$as_ac_var+set}\" = set"; then
9350 echo $ECHO_N "(cached) $ECHO_C" >&6
9352 cat >conftest.$ac_ext <<_ACEOF
9355 cat confdefs.h >>conftest.$ac_ext
9356 cat >>conftest.$ac_ext <<_ACEOF
9357 /* end confdefs.h. */
9358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9360 #define $ac_func innocuous_$ac_func
9362 /* System header to define __stub macros and hopefully few prototypes,
9363 which can conflict with char $ac_func (); below.
9364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9365 <limits.h> exists even on freestanding compilers. */
9368 # include <limits.h>
9370 # include <assert.h>
9375 /* Override any gcc2 internal prototype to avoid an error. */
9380 /* We use char because int might match the return type of a gcc2
9381 builtin and then its argument prototype would still apply. */
9383 /* The GNU C library defines this for functions which it implements
9384 to always fail with ENOSYS. Some functions are actually named
9385 something starting with __ and the normal name is an alias. */
9386 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9389 char (*f) () = $ac_func;
9398 return f != $ac_func;
9403 rm -f conftest.$ac_objext conftest$ac_exeext
9404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9405 (eval $ac_link) 2>conftest.er1
9407 grep -v '^ *+' conftest.er1 >conftest.err
9409 cat conftest.err >&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9411 (exit $ac_status); } &&
9412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); }; } &&
9418 { ac_try='test -s conftest$ac_exeext'
9419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); }; }; then
9424 eval "$as_ac_var=yes"
9426 echo "$as_me: failed program was:" >&5
9427 sed 's/^/| /' conftest.$ac_ext >&5
9429 eval "$as_ac_var=no"
9431 rm -f conftest.err conftest.$ac_objext \
9432 conftest$ac_exeext conftest.$ac_ext
9434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9435 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9436 if test `eval echo '${'$as_ac_var'}'` = yes; then
9437 cat >>confdefs.h <<_ACEOF
9438 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9445 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9446 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9447 if test "${ac_cv_type_signal+set}" = set; then
9448 echo $ECHO_N "(cached) $ECHO_C" >&6
9450 cat >conftest.$ac_ext <<_ACEOF
9453 cat confdefs.h >>conftest.$ac_ext
9454 cat >>conftest.$ac_ext <<_ACEOF
9455 /* end confdefs.h. */
9456 #include <sys/types.h>
9462 extern "C" void (*signal (int, void (*)(int)))(int);
9464 void (*signal ()) ();
9475 rm -f conftest.$ac_objext
9476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9477 (eval $ac_compile) 2>conftest.er1
9479 grep -v '^ *+' conftest.er1 >conftest.err
9481 cat conftest.err >&5
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); } &&
9484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489 (exit $ac_status); }; } &&
9490 { ac_try='test -s conftest.$ac_objext'
9491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); }; }; then
9496 ac_cv_type_signal=void
9498 echo "$as_me: failed program was:" >&5
9499 sed 's/^/| /' conftest.$ac_ext >&5
9501 ac_cv_type_signal=int
9503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9505 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9506 echo "${ECHO_T}$ac_cv_type_signal" >&6
9508 cat >>confdefs.h <<_ACEOF
9509 #define RETSIGTYPE $ac_cv_type_signal
9514 echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5
9515 echo $ECHO_N "checking for sig_atomic_t in signal.h... $ECHO_C" >&6
9516 cat >conftest.$ac_ext <<_ACEOF
9519 cat confdefs.h >>conftest.$ac_ext
9520 cat >>conftest.$ac_ext <<_ACEOF
9521 /* end confdefs.h. */
9525 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9526 $EGREP "sig_atomic_t" >/dev/null 2>&1; then
9528 ac_cv_type_sig_atomic_t=yes;
9529 cat >conftest.$ac_ext <<_ACEOF
9532 cat confdefs.h >>conftest.$ac_ext
9533 cat >>conftest.$ac_ext <<_ACEOF
9534 /* end confdefs.h. */
9538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9539 $EGREP "volatile.*sig_atomic_t" >/dev/null 2>&1; then
9541 is_sig_atomic_t_volatile=yes;
9542 echo "$as_me:$LINENO: result: yes, volatile" >&5
9543 echo "${ECHO_T}yes, volatile" >&6
9547 is_sig_atomic_t_volatile=no;
9548 echo "$as_me:$LINENO: result: yes, non volatile" >&5
9549 echo "${ECHO_T}yes, non volatile" >&6
9557 echo "$as_me:$LINENO: result: no" >&5
9558 echo "${ECHO_T}no" >&6
9559 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
9560 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
9561 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
9562 echo $ECHO_N "(cached) $ECHO_C" >&6
9564 cat >conftest.$ac_ext <<_ACEOF
9567 cat confdefs.h >>conftest.$ac_ext
9568 cat >>conftest.$ac_ext <<_ACEOF
9569 /* end confdefs.h. */
9570 $ac_includes_default
9574 if ((sig_atomic_t *) 0)
9576 if (sizeof (sig_atomic_t))
9582 rm -f conftest.$ac_objext
9583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9584 (eval $ac_compile) 2>conftest.er1
9586 grep -v '^ *+' conftest.er1 >conftest.err
9588 cat conftest.err >&5
9589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9590 (exit $ac_status); } &&
9591 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); }; } &&
9597 { ac_try='test -s conftest.$ac_objext'
9598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); }; }; then
9603 ac_cv_type_sig_atomic_t=yes
9605 echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.$ac_ext >&5
9608 ac_cv_type_sig_atomic_t=no
9610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9612 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
9613 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
9614 if test $ac_cv_type_sig_atomic_t = yes; then
9618 cat >>confdefs.h <<_ACEOF
9619 #define sig_atomic_t int
9624 is_sig_atomic_t_volatile=no
9629 if test $is_sig_atomic_t_volatile = 'yes'
9631 cat >>confdefs.h <<\_ACEOF
9632 #define SIG_ATOMIC_VOLATILE_T sig_atomic_t
9636 cat >>confdefs.h <<\_ACEOF
9637 #define SIG_ATOMIC_VOLATILE_T volatile sig_atomic_t
9642 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
9643 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
9644 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
9645 echo $ECHO_N "(cached) $ECHO_C" >&6
9647 cat >conftest.$ac_ext <<_ACEOF
9650 cat confdefs.h >>conftest.$ac_ext
9651 cat >>conftest.$ac_ext <<_ACEOF
9652 /* end confdefs.h. */
9654 /* NetBSD declares sys_siglist in unistd.h. */
9656 # include <unistd.h>
9664 char *p = (char *) sys_siglist;
9671 rm -f conftest.$ac_objext
9672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9673 (eval $ac_compile) 2>conftest.er1
9675 grep -v '^ *+' conftest.er1 >conftest.err
9677 cat conftest.err >&5
9678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9679 (exit $ac_status); } &&
9680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 (exit $ac_status); }; } &&
9686 { ac_try='test -s conftest.$ac_objext'
9687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); }; }; then
9692 ac_cv_have_decl_sys_siglist=yes
9694 echo "$as_me: failed program was:" >&5
9695 sed 's/^/| /' conftest.$ac_ext >&5
9697 ac_cv_have_decl_sys_siglist=no
9699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9701 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
9702 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
9703 if test $ac_cv_have_decl_sys_siglist = yes; then
9705 cat >>confdefs.h <<_ACEOF
9706 #define HAVE_DECL_SYS_SIGLIST 1
9711 cat >>confdefs.h <<_ACEOF
9712 #define HAVE_DECL_SYS_SIGLIST 0
9721 echo "$as_me:$LINENO: checking for pid_t" >&5
9722 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9723 if test "${ac_cv_type_pid_t+set}" = set; then
9724 echo $ECHO_N "(cached) $ECHO_C" >&6
9726 cat >conftest.$ac_ext <<_ACEOF
9729 cat confdefs.h >>conftest.$ac_ext
9730 cat >>conftest.$ac_ext <<_ACEOF
9731 /* end confdefs.h. */
9732 $ac_includes_default
9744 rm -f conftest.$ac_objext
9745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9746 (eval $ac_compile) 2>conftest.er1
9748 grep -v '^ *+' conftest.er1 >conftest.err
9750 cat conftest.err >&5
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); } &&
9753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); }; } &&
9759 { ac_try='test -s conftest.$ac_objext'
9760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9764 (exit $ac_status); }; }; then
9765 ac_cv_type_pid_t=yes
9767 echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9774 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9775 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9776 if test $ac_cv_type_pid_t = yes; then
9780 cat >>confdefs.h <<_ACEOF
9792 for ac_func in fgetpos memmove setegid srand48 strerror
9794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9795 echo "$as_me:$LINENO: checking for $ac_func" >&5
9796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9797 if eval "test \"\${$as_ac_var+set}\" = set"; then
9798 echo $ECHO_N "(cached) $ECHO_C" >&6
9800 cat >conftest.$ac_ext <<_ACEOF
9803 cat confdefs.h >>conftest.$ac_ext
9804 cat >>conftest.$ac_ext <<_ACEOF
9805 /* end confdefs.h. */
9806 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9808 #define $ac_func innocuous_$ac_func
9810 /* System header to define __stub macros and hopefully few prototypes,
9811 which can conflict with char $ac_func (); below.
9812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9813 <limits.h> exists even on freestanding compilers. */
9816 # include <limits.h>
9818 # include <assert.h>
9823 /* Override any gcc2 internal prototype to avoid an error. */
9828 /* We use char because int might match the return type of a gcc2
9829 builtin and then its argument prototype would still apply. */
9831 /* The GNU C library defines this for functions which it implements
9832 to always fail with ENOSYS. Some functions are actually named
9833 something starting with __ and the normal name is an alias. */
9834 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9837 char (*f) () = $ac_func;
9846 return f != $ac_func;
9851 rm -f conftest.$ac_objext conftest$ac_exeext
9852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9853 (eval $ac_link) 2>conftest.er1
9855 grep -v '^ *+' conftest.er1 >conftest.err
9857 cat conftest.err >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); } &&
9860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9865 (exit $ac_status); }; } &&
9866 { ac_try='test -s conftest$ac_exeext'
9867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9871 (exit $ac_status); }; }; then
9872 eval "$as_ac_var=yes"
9874 echo "$as_me: failed program was:" >&5
9875 sed 's/^/| /' conftest.$ac_ext >&5
9877 eval "$as_ac_var=no"
9879 rm -f conftest.err conftest.$ac_objext \
9880 conftest$ac_exeext conftest.$ac_ext
9882 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9883 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9884 if test `eval echo '${'$as_ac_var'}'` = yes; then
9885 cat >>confdefs.h <<_ACEOF
9886 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9895 for ac_func in strcasecmp strdup
9897 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9898 echo "$as_me:$LINENO: checking for $ac_func" >&5
9899 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9900 if eval "test \"\${$as_ac_var+set}\" = set"; then
9901 echo $ECHO_N "(cached) $ECHO_C" >&6
9903 cat >conftest.$ac_ext <<_ACEOF
9906 cat confdefs.h >>conftest.$ac_ext
9907 cat >>conftest.$ac_ext <<_ACEOF
9908 /* end confdefs.h. */
9909 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9910 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9911 #define $ac_func innocuous_$ac_func
9913 /* System header to define __stub macros and hopefully few prototypes,
9914 which can conflict with char $ac_func (); below.
9915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9916 <limits.h> exists even on freestanding compilers. */
9919 # include <limits.h>
9921 # include <assert.h>
9926 /* Override any gcc2 internal prototype to avoid an error. */
9931 /* We use char because int might match the return type of a gcc2
9932 builtin and then its argument prototype would still apply. */
9934 /* The GNU C library defines this for functions which it implements
9935 to always fail with ENOSYS. Some functions are actually named
9936 something starting with __ and the normal name is an alias. */
9937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9940 char (*f) () = $ac_func;
9949 return f != $ac_func;
9954 rm -f conftest.$ac_objext conftest$ac_exeext
9955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9956 (eval $ac_link) 2>conftest.er1
9958 grep -v '^ *+' conftest.er1 >conftest.err
9960 cat conftest.err >&5
9961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962 (exit $ac_status); } &&
9963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); }; } &&
9969 { ac_try='test -s conftest$ac_exeext'
9970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); }; }; then
9975 eval "$as_ac_var=yes"
9977 echo "$as_me: failed program was:" >&5
9978 sed 's/^/| /' conftest.$ac_ext >&5
9980 eval "$as_ac_var=no"
9982 rm -f conftest.err conftest.$ac_objext \
9983 conftest$ac_exeext conftest.$ac_ext
9985 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9986 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9987 if test `eval echo '${'$as_ac_var'}'` = yes; then
9988 cat >>confdefs.h <<_ACEOF
9989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9994 "$ac_func.$ac_objext" | \
9995 *" $ac_func.$ac_objext" | \
9996 "$ac_func.$ac_objext "* | \
9997 *" $ac_func.$ac_objext "* ) ;;
9998 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
10006 echo "$as_me:$LINENO: checking for getopt" >&5
10007 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
10008 if test "${ac_cv_func_getopt+set}" = set; then
10009 echo $ECHO_N "(cached) $ECHO_C" >&6
10011 cat >conftest.$ac_ext <<_ACEOF
10014 cat confdefs.h >>conftest.$ac_ext
10015 cat >>conftest.$ac_ext <<_ACEOF
10016 /* end confdefs.h. */
10017 /* Define getopt to an innocuous variant, in case <limits.h> declares getopt.
10018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10019 #define getopt innocuous_getopt
10021 /* System header to define __stub macros and hopefully few prototypes,
10022 which can conflict with char getopt (); below.
10023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10024 <limits.h> exists even on freestanding compilers. */
10027 # include <limits.h>
10029 # include <assert.h>
10034 /* Override any gcc2 internal prototype to avoid an error. */
10039 /* We use char because int might match the return type of a gcc2
10040 builtin and then its argument prototype would still apply. */
10042 /* The GNU C library defines this for functions which it implements
10043 to always fail with ENOSYS. Some functions are actually named
10044 something starting with __ and the normal name is an alias. */
10045 #if defined (__stub_getopt) || defined (__stub___getopt)
10048 char (*f) () = getopt;
10057 return f != getopt;
10062 rm -f conftest.$ac_objext conftest$ac_exeext
10063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10064 (eval $ac_link) 2>conftest.er1
10066 grep -v '^ *+' conftest.er1 >conftest.err
10068 cat conftest.err >&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); } &&
10071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073 (eval $ac_try) 2>&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }; } &&
10077 { ac_try='test -s conftest$ac_exeext'
10078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079 (eval $ac_try) 2>&5
10081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082 (exit $ac_status); }; }; then
10083 ac_cv_func_getopt=yes
10085 echo "$as_me: failed program was:" >&5
10086 sed 's/^/| /' conftest.$ac_ext >&5
10088 ac_cv_func_getopt=no
10090 rm -f conftest.err conftest.$ac_objext \
10091 conftest$ac_exeext conftest.$ac_ext
10093 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
10094 echo "${ECHO_T}$ac_cv_func_getopt" >&6
10096 if test $ac_cv_func_getopt = yes; then
10098 for ac_header in getopt.h
10100 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10101 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10102 echo "$as_me:$LINENO: checking for $ac_header" >&5
10103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10105 echo $ECHO_N "(cached) $ECHO_C" >&6
10107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10108 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10110 # Is the header compilable?
10111 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10112 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10113 cat >conftest.$ac_ext <<_ACEOF
10116 cat confdefs.h >>conftest.$ac_ext
10117 cat >>conftest.$ac_ext <<_ACEOF
10118 /* end confdefs.h. */
10119 $ac_includes_default
10120 #include <$ac_header>
10122 rm -f conftest.$ac_objext
10123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10124 (eval $ac_compile) 2>conftest.er1
10126 grep -v '^ *+' conftest.er1 >conftest.err
10128 cat conftest.err >&5
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); } &&
10131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10133 (eval $ac_try) 2>&5
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); }; } &&
10137 { ac_try='test -s conftest.$ac_objext'
10138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10139 (eval $ac_try) 2>&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); }; }; then
10143 ac_header_compiler=yes
10145 echo "$as_me: failed program was:" >&5
10146 sed 's/^/| /' conftest.$ac_ext >&5
10148 ac_header_compiler=no
10150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10151 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10152 echo "${ECHO_T}$ac_header_compiler" >&6
10154 # Is the header present?
10155 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10156 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10157 cat >conftest.$ac_ext <<_ACEOF
10160 cat confdefs.h >>conftest.$ac_ext
10161 cat >>conftest.$ac_ext <<_ACEOF
10162 /* end confdefs.h. */
10163 #include <$ac_header>
10165 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10166 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10168 grep -v '^ *+' conftest.er1 >conftest.err
10170 cat conftest.err >&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); } >/dev/null; then
10173 if test -s conftest.err; then
10174 ac_cpp_err=$ac_c_preproc_warn_flag
10175 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10182 if test -z "$ac_cpp_err"; then
10183 ac_header_preproc=yes
10185 echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.$ac_ext >&5
10188 ac_header_preproc=no
10190 rm -f conftest.err conftest.$ac_ext
10191 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10192 echo "${ECHO_T}$ac_header_preproc" >&6
10194 # So? What about this header?
10195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10197 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10198 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10200 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10201 ac_header_preproc=yes
10204 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10205 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10206 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10207 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10208 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10209 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10210 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10211 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10213 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10214 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10215 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10218 ## ------------------------------------------ ##
10219 ## Report this to the AC_PACKAGE_NAME lists. ##
10220 ## ------------------------------------------ ##
10223 sed "s/^/$as_me: WARNING: /" >&2
10226 echo "$as_me:$LINENO: checking for $ac_header" >&5
10227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10228 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10229 echo $ECHO_N "(cached) $ECHO_C" >&6
10231 eval "$as_ac_Header=\$ac_header_preproc"
10233 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10234 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10238 cat >>confdefs.h <<_ACEOF
10239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10248 mutt_cv_snprintf=no
10251 for ac_func in snprintf
10253 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10254 echo "$as_me:$LINENO: checking for $ac_func" >&5
10255 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10256 if eval "test \"\${$as_ac_var+set}\" = set"; then
10257 echo $ECHO_N "(cached) $ECHO_C" >&6
10259 cat >conftest.$ac_ext <<_ACEOF
10262 cat confdefs.h >>conftest.$ac_ext
10263 cat >>conftest.$ac_ext <<_ACEOF
10264 /* end confdefs.h. */
10265 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10267 #define $ac_func innocuous_$ac_func
10269 /* System header to define __stub macros and hopefully few prototypes,
10270 which can conflict with char $ac_func (); below.
10271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10272 <limits.h> exists even on freestanding compilers. */
10275 # include <limits.h>
10277 # include <assert.h>
10282 /* Override any gcc2 internal prototype to avoid an error. */
10287 /* We use char because int might match the return type of a gcc2
10288 builtin and then its argument prototype would still apply. */
10290 /* The GNU C library defines this for functions which it implements
10291 to always fail with ENOSYS. Some functions are actually named
10292 something starting with __ and the normal name is an alias. */
10293 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10296 char (*f) () = $ac_func;
10305 return f != $ac_func;
10310 rm -f conftest.$ac_objext conftest$ac_exeext
10311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10312 (eval $ac_link) 2>conftest.er1
10314 grep -v '^ *+' conftest.er1 >conftest.err
10316 cat conftest.err >&5
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); } &&
10319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10321 (eval $ac_try) 2>&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); }; } &&
10325 { ac_try='test -s conftest$ac_exeext'
10326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10327 (eval $ac_try) 2>&5
10329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330 (exit $ac_status); }; }; then
10331 eval "$as_ac_var=yes"
10333 echo "$as_me: failed program was:" >&5
10334 sed 's/^/| /' conftest.$ac_ext >&5
10336 eval "$as_ac_var=no"
10338 rm -f conftest.err conftest.$ac_objext \
10339 conftest$ac_exeext conftest.$ac_ext
10341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10342 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10343 if test `eval echo '${'$as_ac_var'}'` = yes; then
10344 cat >>confdefs.h <<_ACEOF
10345 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10349 mutt_cv_snprintf=yes
10354 for ac_func in vsnprintf
10356 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10357 echo "$as_me:$LINENO: checking for $ac_func" >&5
10358 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10359 if eval "test \"\${$as_ac_var+set}\" = set"; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
10362 cat >conftest.$ac_ext <<_ACEOF
10365 cat confdefs.h >>conftest.$ac_ext
10366 cat >>conftest.$ac_ext <<_ACEOF
10367 /* end confdefs.h. */
10368 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10370 #define $ac_func innocuous_$ac_func
10372 /* System header to define __stub macros and hopefully few prototypes,
10373 which can conflict with char $ac_func (); below.
10374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10375 <limits.h> exists even on freestanding compilers. */
10378 # include <limits.h>
10380 # include <assert.h>
10385 /* Override any gcc2 internal prototype to avoid an error. */
10390 /* We use char because int might match the return type of a gcc2
10391 builtin and then its argument prototype would still apply. */
10393 /* The GNU C library defines this for functions which it implements
10394 to always fail with ENOSYS. Some functions are actually named
10395 something starting with __ and the normal name is an alias. */
10396 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10399 char (*f) () = $ac_func;
10408 return f != $ac_func;
10413 rm -f conftest.$ac_objext conftest$ac_exeext
10414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10415 (eval $ac_link) 2>conftest.er1
10417 grep -v '^ *+' conftest.er1 >conftest.err
10419 cat conftest.err >&5
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); } &&
10422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10424 (eval $ac_try) 2>&5
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); }; } &&
10428 { ac_try='test -s conftest$ac_exeext'
10429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10430 (eval $ac_try) 2>&5
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); }; }; then
10434 eval "$as_ac_var=yes"
10436 echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10439 eval "$as_ac_var=no"
10441 rm -f conftest.err conftest.$ac_objext \
10442 conftest$ac_exeext conftest.$ac_ext
10444 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10445 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10446 if test `eval echo '${'$as_ac_var'}'` = yes; then
10447 cat >>confdefs.h <<_ACEOF
10448 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10452 mutt_cv_snprintf=yes
10456 if test $mutt_cv_snprintf = yes; then
10458 "snprintf.$ac_objext" | \
10459 *" snprintf.$ac_objext" | \
10460 "snprintf.$ac_objext "* | \
10461 *" snprintf.$ac_objext "* ) ;;
10462 *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
10468 for ac_func in ftruncate
10470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10471 echo "$as_me:$LINENO: checking for $ac_func" >&5
10472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10473 if eval "test \"\${$as_ac_var+set}\" = set"; then
10474 echo $ECHO_N "(cached) $ECHO_C" >&6
10476 cat >conftest.$ac_ext <<_ACEOF
10479 cat confdefs.h >>conftest.$ac_ext
10480 cat >>conftest.$ac_ext <<_ACEOF
10481 /* end confdefs.h. */
10482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10484 #define $ac_func innocuous_$ac_func
10486 /* System header to define __stub macros and hopefully few prototypes,
10487 which can conflict with char $ac_func (); below.
10488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10489 <limits.h> exists even on freestanding compilers. */
10492 # include <limits.h>
10494 # include <assert.h>
10499 /* Override any gcc2 internal prototype to avoid an error. */
10504 /* We use char because int might match the return type of a gcc2
10505 builtin and then its argument prototype would still apply. */
10507 /* The GNU C library defines this for functions which it implements
10508 to always fail with ENOSYS. Some functions are actually named
10509 something starting with __ and the normal name is an alias. */
10510 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10513 char (*f) () = $ac_func;
10522 return f != $ac_func;
10527 rm -f conftest.$ac_objext conftest$ac_exeext
10528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10529 (eval $ac_link) 2>conftest.er1
10531 grep -v '^ *+' conftest.er1 >conftest.err
10533 cat conftest.err >&5
10534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10535 (exit $ac_status); } &&
10536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10538 (eval $ac_try) 2>&5
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); }; } &&
10542 { ac_try='test -s conftest$ac_exeext'
10543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10544 (eval $ac_try) 2>&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); }; }; then
10548 eval "$as_ac_var=yes"
10550 echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.$ac_ext >&5
10553 eval "$as_ac_var=no"
10555 rm -f conftest.err conftest.$ac_objext \
10556 conftest$ac_exeext conftest.$ac_ext
10558 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10559 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10560 if test `eval echo '${'$as_ac_var'}'` = yes; then
10561 cat >>confdefs.h <<_ACEOF
10562 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10567 echo "$as_me:$LINENO: checking for chsize in -lx" >&5
10568 echo $ECHO_N "checking for chsize in -lx... $ECHO_C" >&6
10569 if test "${ac_cv_lib_x_chsize+set}" = set; then
10570 echo $ECHO_N "(cached) $ECHO_C" >&6
10572 ac_check_lib_save_LIBS=$LIBS
10574 cat >conftest.$ac_ext <<_ACEOF
10577 cat confdefs.h >>conftest.$ac_ext
10578 cat >>conftest.$ac_ext <<_ACEOF
10579 /* end confdefs.h. */
10581 /* Override any gcc2 internal prototype to avoid an error. */
10585 /* We use char because int might match the return type of a gcc2
10586 builtin and then its argument prototype would still apply. */
10596 rm -f conftest.$ac_objext conftest$ac_exeext
10597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10598 (eval $ac_link) 2>conftest.er1
10600 grep -v '^ *+' conftest.er1 >conftest.err
10602 cat conftest.err >&5
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); } &&
10605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607 (eval $ac_try) 2>&5
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); }; } &&
10611 { ac_try='test -s conftest$ac_exeext'
10612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10613 (eval $ac_try) 2>&5
10615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616 (exit $ac_status); }; }; then
10617 ac_cv_lib_x_chsize=yes
10619 echo "$as_me: failed program was:" >&5
10620 sed 's/^/| /' conftest.$ac_ext >&5
10622 ac_cv_lib_x_chsize=no
10624 rm -f conftest.err conftest.$ac_objext \
10625 conftest$ac_exeext conftest.$ac_ext
10626 LIBS=$ac_check_lib_save_LIBS
10628 echo "$as_me:$LINENO: result: $ac_cv_lib_x_chsize" >&5
10629 echo "${ECHO_T}$ac_cv_lib_x_chsize" >&6
10630 if test $ac_cv_lib_x_chsize = yes; then
10631 cat >>confdefs.h <<_ACEOF
10632 #define HAVE_LIBX 1
10644 for ac_func in strftime
10646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10647 echo "$as_me:$LINENO: checking for $ac_func" >&5
10648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10649 if eval "test \"\${$as_ac_var+set}\" = set"; then
10650 echo $ECHO_N "(cached) $ECHO_C" >&6
10652 cat >conftest.$ac_ext <<_ACEOF
10655 cat confdefs.h >>conftest.$ac_ext
10656 cat >>conftest.$ac_ext <<_ACEOF
10657 /* end confdefs.h. */
10658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10660 #define $ac_func innocuous_$ac_func
10662 /* System header to define __stub macros and hopefully few prototypes,
10663 which can conflict with char $ac_func (); below.
10664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10665 <limits.h> exists even on freestanding compilers. */
10668 # include <limits.h>
10670 # include <assert.h>
10675 /* Override any gcc2 internal prototype to avoid an error. */
10680 /* We use char because int might match the return type of a gcc2
10681 builtin and then its argument prototype would still apply. */
10683 /* The GNU C library defines this for functions which it implements
10684 to always fail with ENOSYS. Some functions are actually named
10685 something starting with __ and the normal name is an alias. */
10686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10689 char (*f) () = $ac_func;
10698 return f != $ac_func;
10703 rm -f conftest.$ac_objext conftest$ac_exeext
10704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10705 (eval $ac_link) 2>conftest.er1
10707 grep -v '^ *+' conftest.er1 >conftest.err
10709 cat conftest.err >&5
10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10711 (exit $ac_status); } &&
10712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10714 (eval $ac_try) 2>&5
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); }; } &&
10718 { ac_try='test -s conftest$ac_exeext'
10719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10720 (eval $ac_try) 2>&5
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); }; }; then
10724 eval "$as_ac_var=yes"
10726 echo "$as_me: failed program was:" >&5
10727 sed 's/^/| /' conftest.$ac_ext >&5
10729 eval "$as_ac_var=no"
10731 rm -f conftest.err conftest.$ac_objext \
10732 conftest$ac_exeext conftest.$ac_ext
10734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10735 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10736 if test `eval echo '${'$as_ac_var'}'` = yes; then
10737 cat >>confdefs.h <<_ACEOF
10738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10743 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
10744 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
10745 if test "${ac_cv_lib_intl_strftime+set}" = set; then
10746 echo $ECHO_N "(cached) $ECHO_C" >&6
10748 ac_check_lib_save_LIBS=$LIBS
10749 LIBS="-lintl $LIBS"
10750 cat >conftest.$ac_ext <<_ACEOF
10753 cat confdefs.h >>conftest.$ac_ext
10754 cat >>conftest.$ac_ext <<_ACEOF
10755 /* end confdefs.h. */
10757 /* Override any gcc2 internal prototype to avoid an error. */
10761 /* We use char because int might match the return type of a gcc2
10762 builtin and then its argument prototype would still apply. */
10772 rm -f conftest.$ac_objext conftest$ac_exeext
10773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10774 (eval $ac_link) 2>conftest.er1
10776 grep -v '^ *+' conftest.er1 >conftest.err
10778 cat conftest.err >&5
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); } &&
10781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10783 (eval $ac_try) 2>&5
10785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786 (exit $ac_status); }; } &&
10787 { ac_try='test -s conftest$ac_exeext'
10788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10789 (eval $ac_try) 2>&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); }; }; then
10793 ac_cv_lib_intl_strftime=yes
10795 echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.$ac_ext >&5
10798 ac_cv_lib_intl_strftime=no
10800 rm -f conftest.err conftest.$ac_objext \
10801 conftest$ac_exeext conftest.$ac_ext
10802 LIBS=$ac_check_lib_save_LIBS
10804 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
10805 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
10806 if test $ac_cv_lib_intl_strftime = yes; then
10807 cat >>confdefs.h <<_ACEOF
10808 #define HAVE_LIBINTL 1
10811 LIBS="-lintl $LIBS"
10820 for ac_func in fchdir
10822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10823 echo "$as_me:$LINENO: checking for $ac_func" >&5
10824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10825 if eval "test \"\${$as_ac_var+set}\" = set"; then
10826 echo $ECHO_N "(cached) $ECHO_C" >&6
10828 cat >conftest.$ac_ext <<_ACEOF
10831 cat confdefs.h >>conftest.$ac_ext
10832 cat >>conftest.$ac_ext <<_ACEOF
10833 /* end confdefs.h. */
10834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10836 #define $ac_func innocuous_$ac_func
10838 /* System header to define __stub macros and hopefully few prototypes,
10839 which can conflict with char $ac_func (); below.
10840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10841 <limits.h> exists even on freestanding compilers. */
10844 # include <limits.h>
10846 # include <assert.h>
10851 /* Override any gcc2 internal prototype to avoid an error. */
10856 /* We use char because int might match the return type of a gcc2
10857 builtin and then its argument prototype would still apply. */
10859 /* The GNU C library defines this for functions which it implements
10860 to always fail with ENOSYS. Some functions are actually named
10861 something starting with __ and the normal name is an alias. */
10862 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10865 char (*f) () = $ac_func;
10874 return f != $ac_func;
10879 rm -f conftest.$ac_objext conftest$ac_exeext
10880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10881 (eval $ac_link) 2>conftest.er1
10883 grep -v '^ *+' conftest.er1 >conftest.err
10885 cat conftest.err >&5
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); } &&
10888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10890 (eval $ac_try) 2>&5
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); }; } &&
10894 { ac_try='test -s conftest$ac_exeext'
10895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10896 (eval $ac_try) 2>&5
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); }; }; then
10900 eval "$as_ac_var=yes"
10902 echo "$as_me: failed program was:" >&5
10903 sed 's/^/| /' conftest.$ac_ext >&5
10905 eval "$as_ac_var=no"
10907 rm -f conftest.err conftest.$ac_objext \
10908 conftest$ac_exeext conftest.$ac_ext
10910 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10911 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10912 if test `eval echo '${'$as_ac_var'}'` = yes; then
10913 cat >>confdefs.h <<_ACEOF
10914 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10924 # Check whether --with-regex or --without-regex was given.
10925 if test "${with_regex+set}" = set; then
10926 withval="$with_regex"
10930 for ac_func in regcomp
10932 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10933 echo "$as_me:$LINENO: checking for $ac_func" >&5
10934 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10935 if eval "test \"\${$as_ac_var+set}\" = set"; then
10936 echo $ECHO_N "(cached) $ECHO_C" >&6
10938 cat >conftest.$ac_ext <<_ACEOF
10941 cat confdefs.h >>conftest.$ac_ext
10942 cat >>conftest.$ac_ext <<_ACEOF
10943 /* end confdefs.h. */
10944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10946 #define $ac_func innocuous_$ac_func
10948 /* System header to define __stub macros and hopefully few prototypes,
10949 which can conflict with char $ac_func (); below.
10950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10951 <limits.h> exists even on freestanding compilers. */
10954 # include <limits.h>
10956 # include <assert.h>
10961 /* Override any gcc2 internal prototype to avoid an error. */
10966 /* We use char because int might match the return type of a gcc2
10967 builtin and then its argument prototype would still apply. */
10969 /* The GNU C library defines this for functions which it implements
10970 to always fail with ENOSYS. Some functions are actually named
10971 something starting with __ and the normal name is an alias. */
10972 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10975 char (*f) () = $ac_func;
10984 return f != $ac_func;
10989 rm -f conftest.$ac_objext conftest$ac_exeext
10990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10991 (eval $ac_link) 2>conftest.er1
10993 grep -v '^ *+' conftest.er1 >conftest.err
10995 cat conftest.err >&5
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); } &&
10998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11000 (eval $ac_try) 2>&5
11002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11003 (exit $ac_status); }; } &&
11004 { ac_try='test -s conftest$ac_exeext'
11005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11006 (eval $ac_try) 2>&5
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); }; }; then
11010 eval "$as_ac_var=yes"
11012 echo "$as_me: failed program was:" >&5
11013 sed 's/^/| /' conftest.$ac_ext >&5
11015 eval "$as_ac_var=no"
11017 rm -f conftest.err conftest.$ac_objext \
11018 conftest$ac_exeext conftest.$ac_ext
11020 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11021 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11022 if test `eval echo '${'$as_ac_var'}'` = yes; then
11023 cat >>confdefs.h <<_ACEOF
11024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11034 if test $mutt_cv_regex = no ; then
11035 echo "$as_me:$LINENO: checking whether your system's regexp library is completely broken" >&5
11036 echo $ECHO_N "checking whether your system's regexp library is completely broken... $ECHO_C" >&6
11037 if test "${mutt_cv_regex_broken+set}" = set; then
11038 echo $ECHO_N "(cached) $ECHO_C" >&6
11040 if test "$cross_compiling" = yes; then
11041 mutt_cv_regex_broken=yes
11043 cat >conftest.$ac_ext <<_ACEOF
11046 cat confdefs.h >>conftest.$ac_ext
11047 cat >>conftest.$ac_ext <<_ACEOF
11048 /* end confdefs.h. */
11050 #include <unistd.h>
11052 main() { regex_t blah ; regmatch_t p; p.rm_eo = p.rm_eo; return regcomp(&blah, "foo.*bar", REG_NOSUB) || regexec (&blah, "foobar", 0, NULL, 0); }
11054 rm -f conftest$ac_exeext
11055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11056 (eval $ac_link) 2>&5
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11061 (eval $ac_try) 2>&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); }; }; then
11065 mutt_cv_regex_broken=no
11067 echo "$as_me: program exited with status $ac_status" >&5
11068 echo "$as_me: failed program was:" >&5
11069 sed 's/^/| /' conftest.$ac_ext >&5
11071 ( exit $ac_status )
11072 mutt_cv_regex_broken=yes
11074 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11077 echo "$as_me:$LINENO: result: $mutt_cv_regex_broken" >&5
11078 echo "${ECHO_T}$mutt_cv_regex_broken" >&6
11079 if test $mutt_cv_regex_broken = yes ; then
11080 echo "Using the included GNU regex instead." >&6
11085 if test $mutt_cv_regex = yes; then
11087 cat >>confdefs.h <<\_ACEOF
11088 #define USE_GNU_REGEX 1
11092 "regex.$ac_objext" | \
11093 *" regex.$ac_objext" | \
11094 "regex.$ac_objext "* | \
11095 *" regex.$ac_objext "* ) ;;
11096 *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
11103 # Check whether --with-homespool or --without-homespool was given.
11104 if test "${with_homespool+set}" = set; then
11105 withval="$with_homespool"
11106 with_homespool=${withval}
11108 if test x$with_homespool != x; then
11109 if test $with_homespool = yes; then
11110 with_homespool=mailbox
11113 cat >>confdefs.h <<_ACEOF
11114 #define MAILPATH "$with_homespool"
11118 cat >>confdefs.h <<\_ACEOF
11119 #define HOMESPOOL 1
11123 cat >>confdefs.h <<\_ACEOF
11124 #define USE_DOTLOCK 1
11130 # Check whether --with-mailpath or --without-mailpath was given.
11131 if test "${with_mailpath+set}" = set; then
11132 withval="$with_mailpath"
11133 mutt_cv_mailpath=$withval
11135 echo "$as_me:$LINENO: checking where new mail is stored" >&5
11136 echo $ECHO_N "checking where new mail is stored... $ECHO_C" >&6
11137 if test "${mutt_cv_mailpath+set}" = set; then
11138 echo $ECHO_N "(cached) $ECHO_C" >&6
11140 mutt_cv_mailpath=no
11141 if test -d /var/mail; then
11142 mutt_cv_mailpath=/var/mail
11143 elif test -d /var/spool/mail; then
11144 mutt_cv_mailpath=/var/spool/mail
11145 elif test -d /usr/spool/mail; then
11146 mutt_cv_mailpath=/usr/spool/mail
11147 elif test -d /usr/mail; then
11148 mutt_cv_mailpath=/usr/mail
11151 echo "$as_me:$LINENO: result: $mutt_cv_mailpath" >&5
11152 echo "${ECHO_T}$mutt_cv_mailpath" >&6
11155 if test "$mutt_cv_mailpath" = no; then
11156 { { echo "$as_me:$LINENO: error: \"Could not determine where new mail is stored.\"" >&5
11157 echo "$as_me: error: \"Could not determine where new mail is stored.\"" >&2;}
11158 { (exit 1); exit 1; }; }
11161 cat >>confdefs.h <<_ACEOF
11162 #define MAILPATH "$mutt_cv_mailpath"
11166 echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is world writable" >&5
11167 echo $ECHO_N "checking if $mutt_cv_mailpath is world writable... $ECHO_C" >&6
11168 if test "${mutt_cv_worldwrite+set}" = set; then
11169 echo $ECHO_N "(cached) $ECHO_C" >&6
11171 if test "$cross_compiling" = yes; then
11172 mutt_cv_worldwrite=no
11174 cat >conftest.$ac_ext <<_ACEOF
11177 cat confdefs.h >>conftest.$ac_ext
11178 cat >>conftest.$ac_ext <<_ACEOF
11179 /* end confdefs.h. */
11180 #include <sys/types.h>
11181 #include <sys/stat.h>
11183 int main (int argc, char **argv)
11187 stat ("$mutt_cv_mailpath", &s);
11188 if (s.st_mode & S_IWOTH) exit (0);
11192 rm -f conftest$ac_exeext
11193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11194 (eval $ac_link) 2>&5
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11199 (eval $ac_try) 2>&5
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); }; }; then
11203 mutt_cv_worldwrite=yes
11205 echo "$as_me: program exited with status $ac_status" >&5
11206 echo "$as_me: failed program was:" >&5
11207 sed 's/^/| /' conftest.$ac_ext >&5
11209 ( exit $ac_status )
11210 mutt_cv_worldwrite=no
11212 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11215 echo "$as_me:$LINENO: result: $mutt_cv_worldwrite" >&5
11216 echo "${ECHO_T}$mutt_cv_worldwrite" >&6
11219 if test $mutt_cv_worldwrite = yes; then
11221 cat >>confdefs.h <<\_ACEOF
11222 #define USE_DOTLOCK 1
11227 echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is group writable" >&5
11228 echo $ECHO_N "checking if $mutt_cv_mailpath is group writable... $ECHO_C" >&6
11229 if test "${mutt_cv_groupwrite+set}" = set; then
11230 echo $ECHO_N "(cached) $ECHO_C" >&6
11232 if test "$cross_compiling" = yes; then
11233 mutt_cv_groupwrite=no
11235 cat >conftest.$ac_ext <<_ACEOF
11238 cat confdefs.h >>conftest.$ac_ext
11239 cat >>conftest.$ac_ext <<_ACEOF
11240 /* end confdefs.h. */
11241 #include <sys/types.h>
11242 #include <sys/stat.h>
11244 int main (int argc, char **argv)
11248 stat ("$mutt_cv_mailpath", &s);
11249 if (s.st_mode & S_IWGRP) exit (0);
11253 rm -f conftest$ac_exeext
11254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11255 (eval $ac_link) 2>&5
11257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11260 (eval $ac_try) 2>&5
11262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11263 (exit $ac_status); }; }; then
11264 mutt_cv_groupwrite=yes
11266 echo "$as_me: program exited with status $ac_status" >&5
11267 echo "$as_me: failed program was:" >&5
11268 sed 's/^/| /' conftest.$ac_ext >&5
11270 ( exit $ac_status )
11271 mutt_cv_groupwrite=no
11273 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11276 echo "$as_me:$LINENO: result: $mutt_cv_groupwrite" >&5
11277 echo "${ECHO_T}$mutt_cv_groupwrite" >&6
11279 if test $mutt_cv_groupwrite = yes; then
11281 cat >>confdefs.h <<\_ACEOF
11282 #define USE_DOTLOCK 1
11286 cat >>confdefs.h <<\_ACEOF
11287 #define USE_SETGID 1
11295 # Check whether --enable-external_dotlock or --disable-external_dotlock was given.
11296 if test "${enable_external_dotlock+set}" = set; then
11297 enableval="$enable_external_dotlock"
11298 mutt_cv_external_dotlock="$enableval"
11301 if test "x$mutt_cv_setgid" = "xyes" || test "x$mutt_cv_fchdir" = "xno" \
11302 || test "x$mutt_cv_external_dotlock" = "xyes"
11305 cat >>confdefs.h <<\_ACEOF
11306 #define DL_STANDALONE 1
11309 DOTLOCK_TARGET="muttng_dotlock"
11311 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS dotlock.o"
11317 echo "$as_me:$LINENO: checking where to put the documentation" >&5
11318 echo $ECHO_N "checking where to put the documentation... $ECHO_C" >&6
11320 # Check whether --with-docdir or --without-docdir was given.
11321 if test "${with_docdir+set}" = set; then
11322 withval="$with_docdir"
11323 mutt_cv_docdir=$withval
11325 mutt_cv_docdir="$mutt_cv_prefix/doc/muttng"
11327 echo "$as_me:$LINENO: result: $mutt_cv_docdir" >&5
11328 echo "${ECHO_T}$mutt_cv_docdir" >&6
11330 docdir=$mutt_cv_docdir
11333 if test x$mutt_cv_setgid = xyes; then
11334 DOTLOCK_GROUP='mail'
11335 DOTLOCK_PERMISSION=2755
11338 DOTLOCK_PERMISSION=755
11344 # Check whether --with-domain or --without-domain was given.
11345 if test "${with_domain+set}" = set; then
11346 withval="$with_domain"
11347 if test $withval != yes; then
11349 cat >>confdefs.h <<_ACEOF
11350 #define DOMAIN "$withval"
11359 # Check whether --enable-pop or --disable-pop was given.
11360 if test "${enable_pop+set}" = set; then
11361 enableval="$enable_pop"
11362 if test x$enableval = xyes ; then
11364 cat >>confdefs.h <<\_ACEOF
11368 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pop.o pop_lib.o pop_auth.o"
11376 # Check whether --enable-imap or --disable-imap was given.
11377 if test "${enable_imap+set}" = set; then
11378 enableval="$enable_imap"
11379 if test x$enableval = xyes ; then
11381 cat >>confdefs.h <<\_ACEOF
11385 LIBIMAP="-Limap -limap"
11386 LIBIMAPDEPS="\$(top_srcdir)/imap/imap.h imap/libimap.a"
11395 if test x$need_imap = xyes; then
11397 BUILD_IMAP_FALSE='#'
11399 BUILD_IMAP_TRUE='#'
11404 # Check whether --enable-nntp or --disable-nntp was given.
11405 if test "${enable_nntp+set}" = set; then
11406 enableval="$enable_nntp"
11407 if test x$enableval = xyes ; then
11408 cat >>confdefs.h <<\_ACEOF
11412 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS nntp.o newsrc.o"
11419 if test "$need_socket" = "yes"
11421 echo "$as_me:$LINENO: checking for socklen_t" >&5
11422 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
11423 cat >conftest.$ac_ext <<_ACEOF
11426 cat confdefs.h >>conftest.$ac_ext
11427 cat >>conftest.$ac_ext <<_ACEOF
11428 /* end confdefs.h. */
11429 #include <sys/socket.h>
11432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11433 $EGREP "socklen_t" >/dev/null 2>&1; then
11434 echo "$as_me:$LINENO: result: yes" >&5
11435 echo "${ECHO_T}yes" >&6
11437 echo "$as_me:$LINENO: result: no" >&5
11438 echo "${ECHO_T}no" >&6
11440 cat >>confdefs.h <<\_ACEOF
11441 #define socklen_t int
11447 echo "$as_me:$LINENO: checking for gethostent" >&5
11448 echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
11449 if test "${ac_cv_func_gethostent+set}" = set; then
11450 echo $ECHO_N "(cached) $ECHO_C" >&6
11452 cat >conftest.$ac_ext <<_ACEOF
11455 cat confdefs.h >>conftest.$ac_ext
11456 cat >>conftest.$ac_ext <<_ACEOF
11457 /* end confdefs.h. */
11458 /* Define gethostent to an innocuous variant, in case <limits.h> declares gethostent.
11459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11460 #define gethostent innocuous_gethostent
11462 /* System header to define __stub macros and hopefully few prototypes,
11463 which can conflict with char gethostent (); below.
11464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11465 <limits.h> exists even on freestanding compilers. */
11468 # include <limits.h>
11470 # include <assert.h>
11475 /* Override any gcc2 internal prototype to avoid an error. */
11480 /* We use char because int might match the return type of a gcc2
11481 builtin and then its argument prototype would still apply. */
11482 char gethostent ();
11483 /* The GNU C library defines this for functions which it implements
11484 to always fail with ENOSYS. Some functions are actually named
11485 something starting with __ and the normal name is an alias. */
11486 #if defined (__stub_gethostent) || defined (__stub___gethostent)
11489 char (*f) () = gethostent;
11498 return f != gethostent;
11503 rm -f conftest.$ac_objext conftest$ac_exeext
11504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11505 (eval $ac_link) 2>conftest.er1
11507 grep -v '^ *+' conftest.er1 >conftest.err
11509 cat conftest.err >&5
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); } &&
11512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11514 (eval $ac_try) 2>&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); }; } &&
11518 { ac_try='test -s conftest$ac_exeext'
11519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11520 (eval $ac_try) 2>&5
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); }; }; then
11524 ac_cv_func_gethostent=yes
11526 echo "$as_me: failed program was:" >&5
11527 sed 's/^/| /' conftest.$ac_ext >&5
11529 ac_cv_func_gethostent=no
11531 rm -f conftest.err conftest.$ac_objext \
11532 conftest$ac_exeext conftest.$ac_ext
11534 echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5
11535 echo "${ECHO_T}$ac_cv_func_gethostent" >&6
11536 if test $ac_cv_func_gethostent = yes; then
11540 echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
11541 echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
11542 if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
11543 echo $ECHO_N "(cached) $ECHO_C" >&6
11545 ac_check_lib_save_LIBS=$LIBS
11547 cat >conftest.$ac_ext <<_ACEOF
11550 cat confdefs.h >>conftest.$ac_ext
11551 cat >>conftest.$ac_ext <<_ACEOF
11552 /* end confdefs.h. */
11554 /* Override any gcc2 internal prototype to avoid an error. */
11558 /* We use char because int might match the return type of a gcc2
11559 builtin and then its argument prototype would still apply. */
11560 char gethostent ();
11569 rm -f conftest.$ac_objext conftest$ac_exeext
11570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11571 (eval $ac_link) 2>conftest.er1
11573 grep -v '^ *+' conftest.er1 >conftest.err
11575 cat conftest.err >&5
11576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11577 (exit $ac_status); } &&
11578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11580 (eval $ac_try) 2>&5
11582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11583 (exit $ac_status); }; } &&
11584 { ac_try='test -s conftest$ac_exeext'
11585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11586 (eval $ac_try) 2>&5
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); }; }; then
11590 ac_cv_lib_nsl_gethostent=yes
11592 echo "$as_me: failed program was:" >&5
11593 sed 's/^/| /' conftest.$ac_ext >&5
11595 ac_cv_lib_nsl_gethostent=no
11597 rm -f conftest.err conftest.$ac_objext \
11598 conftest$ac_exeext conftest.$ac_ext
11599 LIBS=$ac_check_lib_save_LIBS
11601 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
11602 echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
11603 if test $ac_cv_lib_nsl_gethostent = yes; then
11604 cat >>confdefs.h <<_ACEOF
11605 #define HAVE_LIBNSL 1
11614 echo "$as_me:$LINENO: checking for setsockopt" >&5
11615 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
11616 if test "${ac_cv_func_setsockopt+set}" = set; then
11617 echo $ECHO_N "(cached) $ECHO_C" >&6
11619 cat >conftest.$ac_ext <<_ACEOF
11622 cat confdefs.h >>conftest.$ac_ext
11623 cat >>conftest.$ac_ext <<_ACEOF
11624 /* end confdefs.h. */
11625 /* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
11626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11627 #define setsockopt innocuous_setsockopt
11629 /* System header to define __stub macros and hopefully few prototypes,
11630 which can conflict with char setsockopt (); below.
11631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11632 <limits.h> exists even on freestanding compilers. */
11635 # include <limits.h>
11637 # include <assert.h>
11642 /* Override any gcc2 internal prototype to avoid an error. */
11647 /* We use char because int might match the return type of a gcc2
11648 builtin and then its argument prototype would still apply. */
11649 char setsockopt ();
11650 /* The GNU C library defines this for functions which it implements
11651 to always fail with ENOSYS. Some functions are actually named
11652 something starting with __ and the normal name is an alias. */
11653 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
11656 char (*f) () = setsockopt;
11665 return f != setsockopt;
11670 rm -f conftest.$ac_objext conftest$ac_exeext
11671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11672 (eval $ac_link) 2>conftest.er1
11674 grep -v '^ *+' conftest.er1 >conftest.err
11676 cat conftest.err >&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); } &&
11679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11681 (eval $ac_try) 2>&5
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); }; } &&
11685 { ac_try='test -s conftest$ac_exeext'
11686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11687 (eval $ac_try) 2>&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); }; }; then
11691 ac_cv_func_setsockopt=yes
11693 echo "$as_me: failed program was:" >&5
11694 sed 's/^/| /' conftest.$ac_ext >&5
11696 ac_cv_func_setsockopt=no
11698 rm -f conftest.err conftest.$ac_objext \
11699 conftest$ac_exeext conftest.$ac_ext
11701 echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
11702 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
11703 if test $ac_cv_func_setsockopt = yes; then
11707 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
11708 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
11709 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
11710 echo $ECHO_N "(cached) $ECHO_C" >&6
11712 ac_check_lib_save_LIBS=$LIBS
11713 LIBS="-lsocket $LIBS"
11714 cat >conftest.$ac_ext <<_ACEOF
11717 cat confdefs.h >>conftest.$ac_ext
11718 cat >>conftest.$ac_ext <<_ACEOF
11719 /* end confdefs.h. */
11721 /* Override any gcc2 internal prototype to avoid an error. */
11725 /* We use char because int might match the return type of a gcc2
11726 builtin and then its argument prototype would still apply. */
11727 char setsockopt ();
11736 rm -f conftest.$ac_objext conftest$ac_exeext
11737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11738 (eval $ac_link) 2>conftest.er1
11740 grep -v '^ *+' conftest.er1 >conftest.err
11742 cat conftest.err >&5
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); } &&
11745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11747 (eval $ac_try) 2>&5
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); }; } &&
11751 { ac_try='test -s conftest$ac_exeext'
11752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11753 (eval $ac_try) 2>&5
11755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11756 (exit $ac_status); }; }; then
11757 ac_cv_lib_socket_setsockopt=yes
11759 echo "$as_me: failed program was:" >&5
11760 sed 's/^/| /' conftest.$ac_ext >&5
11762 ac_cv_lib_socket_setsockopt=no
11764 rm -f conftest.err conftest.$ac_objext \
11765 conftest$ac_exeext conftest.$ac_ext
11766 LIBS=$ac_check_lib_save_LIBS
11768 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
11769 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
11770 if test $ac_cv_lib_socket_setsockopt = yes; then
11771 cat >>confdefs.h <<_ACEOF
11772 #define HAVE_LIBSOCKET 1
11775 LIBS="-lsocket $LIBS"
11782 for ac_func in getaddrinfo
11784 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11785 echo "$as_me:$LINENO: checking for $ac_func" >&5
11786 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11787 if eval "test \"\${$as_ac_var+set}\" = set"; then
11788 echo $ECHO_N "(cached) $ECHO_C" >&6
11790 cat >conftest.$ac_ext <<_ACEOF
11793 cat confdefs.h >>conftest.$ac_ext
11794 cat >>conftest.$ac_ext <<_ACEOF
11795 /* end confdefs.h. */
11796 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11797 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11798 #define $ac_func innocuous_$ac_func
11800 /* System header to define __stub macros and hopefully few prototypes,
11801 which can conflict with char $ac_func (); below.
11802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11803 <limits.h> exists even on freestanding compilers. */
11806 # include <limits.h>
11808 # include <assert.h>
11813 /* Override any gcc2 internal prototype to avoid an error. */
11818 /* We use char because int might match the return type of a gcc2
11819 builtin and then its argument prototype would still apply. */
11821 /* The GNU C library defines this for functions which it implements
11822 to always fail with ENOSYS. Some functions are actually named
11823 something starting with __ and the normal name is an alias. */
11824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11827 char (*f) () = $ac_func;
11836 return f != $ac_func;
11841 rm -f conftest.$ac_objext conftest$ac_exeext
11842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11843 (eval $ac_link) 2>conftest.er1
11845 grep -v '^ *+' conftest.er1 >conftest.err
11847 cat conftest.err >&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); } &&
11850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11852 (eval $ac_try) 2>&5
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); }; } &&
11856 { ac_try='test -s conftest$ac_exeext'
11857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11858 (eval $ac_try) 2>&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); }; }; then
11862 eval "$as_ac_var=yes"
11864 echo "$as_me: failed program was:" >&5
11865 sed 's/^/| /' conftest.$ac_ext >&5
11867 eval "$as_ac_var=no"
11869 rm -f conftest.err conftest.$ac_objext \
11870 conftest$ac_exeext conftest.$ac_ext
11872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11873 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11874 if test `eval echo '${'$as_ac_var'}'` = yes; then
11875 cat >>confdefs.h <<_ACEOF
11876 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11883 cat >>confdefs.h <<\_ACEOF
11884 #define USE_SOCKET 1
11887 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS account.o mutt_socket.o mutt_tunnel.o"
11892 # Check whether --with-gss or --without-gss was given.
11893 if test "${with_gss+set}" = set; then
11894 withval="$with_gss"
11895 gss_prefix="$withval"
11899 if test "$gss_prefix" != "no"
11901 if test "$need_imap" = "yes"
11904 GSSAPI_PREFIX=$gss_prefix
11906 saved_CPPFLAGS="$CPPFLAGS"
11907 saved_LDFLAGS="$LDFLAGS"
11909 if test "$GSSAPI_PREFIX" != "yes"
11911 krb5_path="$GSSAPI_PREFIX/bin"
11915 # Extract the first word of "krb5-config", so it can be a program name with args.
11916 set dummy krb5-config; ac_word=$2
11917 echo "$as_me:$LINENO: checking for $ac_word" >&5
11918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11919 if test "${ac_cv_path_KRB5CFGPATH+set}" = set; then
11920 echo $ECHO_N "(cached) $ECHO_C" >&6
11922 case $KRB5CFGPATH in
11924 ac_cv_path_KRB5CFGPATH="$KRB5CFGPATH" # Let the user override the test with a path.
11927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11928 for as_dir in $krb5_path
11931 test -z "$as_dir" && as_dir=.
11932 for ac_exec_ext in '' $ac_executable_extensions; do
11933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11934 ac_cv_path_KRB5CFGPATH="$as_dir/$ac_word$ac_exec_ext"
11935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11941 test -z "$ac_cv_path_KRB5CFGPATH" && ac_cv_path_KRB5CFGPATH="none"
11945 KRB5CFGPATH=$ac_cv_path_KRB5CFGPATH
11947 if test -n "$KRB5CFGPATH"; then
11948 echo "$as_me:$LINENO: result: $KRB5CFGPATH" >&5
11949 echo "${ECHO_T}$KRB5CFGPATH" >&6
11951 echo "$as_me:$LINENO: result: no" >&5
11952 echo "${ECHO_T}no" >&6
11955 if test "$KRB5CFGPATH" != "none"
11957 GSSAPI_CFLAGS="$CPPFLAGS `$KRB5CFGPATH --cflags gssapi`"
11958 GSSAPI_LIBS="$MUTTLIBS `$KRB5CFGPATH --libs gssapi`"
11959 case "`$KRB5CFGPATH --version`" in
11960 "Kerberos 5 "*) GSSAPI_IMPL="MIT";;
11961 ?eimdal*) GSSAPI_IMPL="Heimdal";;
11962 *) GSSAPI_IMPL="Unknown";;
11965 if test "$GSSAPI_PREFIX" != "yes"
11967 GSSAPI_CFLAGS="-I$GSSAPI_PREFIX/include"
11968 GSSAPI_LDFLAGS="-L$GSSAPI_PREFIX/lib"
11969 CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
11970 LDFLAGS="$LDFLAGS $GSSAPI_LDFLAGS"
11973 echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
11974 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6
11975 if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
11976 echo $ECHO_N "(cached) $ECHO_C" >&6
11978 ac_check_lib_save_LIBS=$LIBS
11979 LIBS="-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err $LIBS"
11980 cat >conftest.$ac_ext <<_ACEOF
11983 cat confdefs.h >>conftest.$ac_ext
11984 cat >>conftest.$ac_ext <<_ACEOF
11985 /* end confdefs.h. */
11987 /* Override any gcc2 internal prototype to avoid an error. */
11991 /* We use char because int might match the return type of a gcc2
11992 builtin and then its argument prototype would still apply. */
11993 char gss_init_sec_context ();
11997 gss_init_sec_context ();
12002 rm -f conftest.$ac_objext conftest$ac_exeext
12003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12004 (eval $ac_link) 2>conftest.er1
12006 grep -v '^ *+' conftest.er1 >conftest.err
12008 cat conftest.err >&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); } &&
12011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12013 (eval $ac_try) 2>&5
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); }; } &&
12017 { ac_try='test -s conftest$ac_exeext'
12018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12019 (eval $ac_try) 2>&5
12021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12022 (exit $ac_status); }; }; then
12023 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
12025 echo "$as_me: failed program was:" >&5
12026 sed 's/^/| /' conftest.$ac_ext >&5
12028 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
12030 rm -f conftest.err conftest.$ac_objext \
12031 conftest$ac_exeext conftest.$ac_ext
12032 LIBS=$ac_check_lib_save_LIBS
12034 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
12035 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6
12036 if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
12039 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err"
12044 if test "$GSSAPI_IMPL" = "none"
12046 echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
12047 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6
12048 if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
12049 echo $ECHO_N "(cached) $ECHO_C" >&6
12051 ac_check_lib_save_LIBS=$LIBS
12052 LIBS="-lgssapi -lkrb5 -ldes -lasn1 -lroken -lcrypt -lcom_err $LIBS"
12053 cat >conftest.$ac_ext <<_ACEOF
12056 cat confdefs.h >>conftest.$ac_ext
12057 cat >>conftest.$ac_ext <<_ACEOF
12058 /* end confdefs.h. */
12060 /* Override any gcc2 internal prototype to avoid an error. */
12064 /* We use char because int might match the return type of a gcc2
12065 builtin and then its argument prototype would still apply. */
12066 char gss_init_sec_context ();
12070 gss_init_sec_context ();
12075 rm -f conftest.$ac_objext conftest$ac_exeext
12076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12077 (eval $ac_link) 2>conftest.er1
12079 grep -v '^ *+' conftest.er1 >conftest.err
12081 cat conftest.err >&5
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); } &&
12084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12086 (eval $ac_try) 2>&5
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); }; } &&
12090 { ac_try='test -s conftest$ac_exeext'
12091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12092 (eval $ac_try) 2>&5
12094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12095 (exit $ac_status); }; }; then
12096 ac_cv_lib_gssapi_gss_init_sec_context=yes
12098 echo "$as_me: failed program was:" >&5
12099 sed 's/^/| /' conftest.$ac_ext >&5
12101 ac_cv_lib_gssapi_gss_init_sec_context=no
12103 rm -f conftest.err conftest.$ac_objext \
12104 conftest$ac_exeext conftest.$ac_ext
12105 LIBS=$ac_check_lib_save_LIBS
12107 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
12108 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6
12109 if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
12111 GSSAPI_IMPL="Heimdal"
12112 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi -lkrb5 -ldes -lasn1 -lroken"
12113 GSSAPI_LIBS="$GSSAPI_LIBS -lcrypt -lcom_err"
12119 if test "$GSSAPI_IMPL" = "none"
12121 echo "$as_me:$LINENO: checking for g_order_init in -lgssapi_krb5" >&5
12122 echo $ECHO_N "checking for g_order_init in -lgssapi_krb5... $ECHO_C" >&6
12123 if test "${ac_cv_lib_gssapi_krb5_g_order_init+set}" = set; then
12124 echo $ECHO_N "(cached) $ECHO_C" >&6
12126 ac_check_lib_save_LIBS=$LIBS
12127 LIBS="-lgssapi_krb5 -lkrb5 -lcrypto -lcom_err $LIBS"
12128 cat >conftest.$ac_ext <<_ACEOF
12131 cat confdefs.h >>conftest.$ac_ext
12132 cat >>conftest.$ac_ext <<_ACEOF
12133 /* end confdefs.h. */
12135 /* Override any gcc2 internal prototype to avoid an error. */
12139 /* We use char because int might match the return type of a gcc2
12140 builtin and then its argument prototype would still apply. */
12141 char g_order_init ();
12150 rm -f conftest.$ac_objext conftest$ac_exeext
12151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12152 (eval $ac_link) 2>conftest.er1
12154 grep -v '^ *+' conftest.er1 >conftest.err
12156 cat conftest.err >&5
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); } &&
12159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12161 (eval $ac_try) 2>&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; } &&
12165 { ac_try='test -s conftest$ac_exeext'
12166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12167 (eval $ac_try) 2>&5
12169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170 (exit $ac_status); }; }; then
12171 ac_cv_lib_gssapi_krb5_g_order_init=yes
12173 echo "$as_me: failed program was:" >&5
12174 sed 's/^/| /' conftest.$ac_ext >&5
12176 ac_cv_lib_gssapi_krb5_g_order_init=no
12178 rm -f conftest.err conftest.$ac_objext \
12179 conftest$ac_exeext conftest.$ac_ext
12180 LIBS=$ac_check_lib_save_LIBS
12182 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_g_order_init" >&5
12183 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_g_order_init" >&6
12184 if test $ac_cv_lib_gssapi_krb5_g_order_init = yes; then
12186 GSSAPI_IMPL="OldMIT",
12187 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err"
12194 CPPFLAGS="$saved_CPPFLAGS"
12195 LDFLAGS="$saved_LDFLAGS"
12198 echo "$as_me:$LINENO: checking GSSAPI implementation" >&5
12199 echo $ECHO_N "checking GSSAPI implementation... $ECHO_C" >&6
12200 echo "$as_me:$LINENO: result: $GSSAPI_IMPL" >&5
12201 echo "${ECHO_T}$GSSAPI_IMPL" >&6
12202 if test "$GSSAPI_IMPL" = "none"
12204 cat >confcache <<\_ACEOF
12205 # This file is a shell script that caches the results of configure
12206 # tests run on this system so they can be shared between configure
12207 # scripts and configure runs, see configure's option --config-cache.
12208 # It is not useful on other systems. If it contains results you don't
12209 # want to keep, you may remove or edit it.
12211 # config.status only pays attention to the cache file if you give it
12212 # the --recheck option to rerun configure.
12214 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12215 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12216 # following values.
12220 # The following way of writing the cache mishandles newlines in values,
12221 # but we know of no workaround that is simple, portable, and efficient.
12222 # So, don't put newlines in cache variables' values.
12223 # Ultrix sh set writes to stderr and can't be redirected directly,
12224 # and sets the high bit in the cache file unless we assign to the vars.
12227 case `(ac_space=' '; set | grep ac_space) 2>&1` in
12229 # `set' does not quote correctly, so add quotes (double-quote
12230 # substitution turns \\\\ into \\, and sed turns \\ into \).
12233 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12236 # `set' quotes correctly as required by POSIX, so do not add quotes.
12238 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
12245 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12247 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12249 if diff $cache_file confcache >/dev/null 2>&1; then :; else
12250 if test -w $cache_file; then
12251 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
12252 cat confcache >$cache_file
12254 echo "not updating unwritable cache $cache_file"
12258 echo "$as_me:$LINENO: result: GSSAPI libraries not found" >&5
12259 echo "${ECHO_T}GSSAPI libraries not found" >&6
12261 if test "$GSSAPI_IMPL" = "Heimdal"
12264 cat >>confdefs.h <<\_ACEOF
12265 #define HAVE_HEIMDAL 1
12269 CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
12270 MUTTLIBS="$MUTTLIBS $GSSAPI_LIBS"
12272 cat >>confdefs.h <<\_ACEOF
12278 { echo "$as_me:$LINENO: WARNING: GSS was requested but IMAP is not enabled" >&5
12279 echo "$as_me: WARNING: GSS was requested but IMAP is not enabled" >&2;}
12284 if test x$need_gss = xyes; then
12295 # Check whether --with-ssl or --without-ssl was given.
12296 if test "${with_ssl+set}" = set; then
12297 withval="$with_ssl"
12298 if test "$with_ssl" != "no"
12300 if test "$need_socket" != "yes"; then
12301 { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
12302 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
12303 { (exit 1); exit 1; }; }
12306 if test "$with_ssl" != "yes"
12308 LDFLAGS="$LDFLAGS -L$withval/lib"
12309 CPPFLAGS="$CPPFLAGS -I$withval/include"
12314 echo "$as_me:$LINENO: checking for X509_new in -lcrypto" >&5
12315 echo $ECHO_N "checking for X509_new in -lcrypto... $ECHO_C" >&6
12316 if test "${ac_cv_lib_crypto_X509_new+set}" = set; then
12317 echo $ECHO_N "(cached) $ECHO_C" >&6
12319 ac_check_lib_save_LIBS=$LIBS
12320 LIBS="-lcrypto $LIBS"
12321 cat >conftest.$ac_ext <<_ACEOF
12324 cat confdefs.h >>conftest.$ac_ext
12325 cat >>conftest.$ac_ext <<_ACEOF
12326 /* end confdefs.h. */
12328 /* Override any gcc2 internal prototype to avoid an error. */
12332 /* We use char because int might match the return type of a gcc2
12333 builtin and then its argument prototype would still apply. */
12343 rm -f conftest.$ac_objext conftest$ac_exeext
12344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12345 (eval $ac_link) 2>conftest.er1
12347 grep -v '^ *+' conftest.er1 >conftest.err
12349 cat conftest.err >&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); } &&
12352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354 (eval $ac_try) 2>&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }; } &&
12358 { ac_try='test -s conftest$ac_exeext'
12359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360 (eval $ac_try) 2>&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }; }; then
12364 ac_cv_lib_crypto_X509_new=yes
12366 echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12369 ac_cv_lib_crypto_X509_new=no
12371 rm -f conftest.err conftest.$ac_objext \
12372 conftest$ac_exeext conftest.$ac_ext
12373 LIBS=$ac_check_lib_save_LIBS
12375 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_X509_new" >&5
12376 echo "${ECHO_T}$ac_cv_lib_crypto_X509_new" >&6
12377 if test $ac_cv_lib_crypto_X509_new = yes; then
12378 cat >>confdefs.h <<_ACEOF
12379 #define HAVE_LIBCRYPTO 1
12382 LIBS="-lcrypto $LIBS"
12385 { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
12386 echo "$as_me: error: Unable to find SSL library" >&2;}
12387 { (exit 1); exit 1; }; }
12391 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
12392 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
12393 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
12394 echo $ECHO_N "(cached) $ECHO_C" >&6
12396 ac_check_lib_save_LIBS=$LIBS
12397 LIBS="-lssl -lcrypto $LIBS"
12398 cat >conftest.$ac_ext <<_ACEOF
12401 cat confdefs.h >>conftest.$ac_ext
12402 cat >>conftest.$ac_ext <<_ACEOF
12403 /* end confdefs.h. */
12405 /* Override any gcc2 internal prototype to avoid an error. */
12409 /* We use char because int might match the return type of a gcc2
12410 builtin and then its argument prototype would still apply. */
12420 rm -f conftest.$ac_objext conftest$ac_exeext
12421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12422 (eval $ac_link) 2>conftest.er1
12424 grep -v '^ *+' conftest.er1 >conftest.err
12426 cat conftest.err >&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); } &&
12429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12431 (eval $ac_try) 2>&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); }; } &&
12435 { ac_try='test -s conftest$ac_exeext'
12436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12437 (eval $ac_try) 2>&5
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); }; }; then
12441 ac_cv_lib_ssl_SSL_new=yes
12443 echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12446 ac_cv_lib_ssl_SSL_new=no
12448 rm -f conftest.err conftest.$ac_objext \
12449 conftest$ac_exeext conftest.$ac_ext
12450 LIBS=$ac_check_lib_save_LIBS
12452 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
12453 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6
12454 if test $ac_cv_lib_ssl_SSL_new = yes; then
12455 cat >>confdefs.h <<_ACEOF
12456 #define HAVE_LIBSSL 1
12462 { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
12463 echo "$as_me: error: Unable to find SSL library" >&2;}
12464 { (exit 1); exit 1; }; }
12470 for ac_func in RAND_status RAND_egd
12472 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12473 echo "$as_me:$LINENO: checking for $ac_func" >&5
12474 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12475 if eval "test \"\${$as_ac_var+set}\" = set"; then
12476 echo $ECHO_N "(cached) $ECHO_C" >&6
12478 cat >conftest.$ac_ext <<_ACEOF
12481 cat confdefs.h >>conftest.$ac_ext
12482 cat >>conftest.$ac_ext <<_ACEOF
12483 /* end confdefs.h. */
12484 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12485 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12486 #define $ac_func innocuous_$ac_func
12488 /* System header to define __stub macros and hopefully few prototypes,
12489 which can conflict with char $ac_func (); below.
12490 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12491 <limits.h> exists even on freestanding compilers. */
12494 # include <limits.h>
12496 # include <assert.h>
12501 /* Override any gcc2 internal prototype to avoid an error. */
12506 /* We use char because int might match the return type of a gcc2
12507 builtin and then its argument prototype would still apply. */
12509 /* The GNU C library defines this for functions which it implements
12510 to always fail with ENOSYS. Some functions are actually named
12511 something starting with __ and the normal name is an alias. */
12512 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12515 char (*f) () = $ac_func;
12524 return f != $ac_func;
12529 rm -f conftest.$ac_objext conftest$ac_exeext
12530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12531 (eval $ac_link) 2>conftest.er1
12533 grep -v '^ *+' conftest.er1 >conftest.err
12535 cat conftest.err >&5
12536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12537 (exit $ac_status); } &&
12538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12540 (eval $ac_try) 2>&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); }; } &&
12544 { ac_try='test -s conftest$ac_exeext'
12545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546 (eval $ac_try) 2>&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; }; then
12550 eval "$as_ac_var=yes"
12552 echo "$as_me: failed program was:" >&5
12553 sed 's/^/| /' conftest.$ac_ext >&5
12555 eval "$as_ac_var=no"
12557 rm -f conftest.err conftest.$ac_objext \
12558 conftest$ac_exeext conftest.$ac_ext
12560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12561 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12562 if test `eval echo '${'$as_ac_var'}'` = yes; then
12563 cat >>confdefs.h <<_ACEOF
12564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12572 cat >>confdefs.h <<\_ACEOF
12577 MUTTLIBS="$MUTTLIBS -lssl -lcrypto"
12578 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl.o"
12586 if test x$need_ssl = xyes; then
12596 # Check whether --with-gnutls or --without-gnutls was given.
12597 if test "${with_gnutls+set}" = set; then
12598 withval="$with_gnutls"
12599 if test "$need_ssl" = "yes"
12601 { { echo "$as_me:$LINENO: error: In order to compile in GNU TLS support, you must first disable SSL support" >&5
12602 echo "$as_me: error: In order to compile in GNU TLS support, you must first disable SSL support" >&2;}
12603 { (exit 1); exit 1; }; }
12605 if test "$with_gnutls" != "no"
12607 if test "$need_socket" != "yes"; then
12608 { { echo "$as_me:$LINENO: error: GNU TLS support is only useful with POP or IMAP support" >&5
12609 echo "$as_me: error: GNU TLS support is only useful with POP or IMAP support" >&2;}
12610 { (exit 1); exit 1; }; }
12612 if test "$with_gnutls" != "yes"
12614 LDFLAGS="$LDFLAGS -L$withval/lib"
12615 CPPFLAGS="$CPPFLAGS -I$withval/include"
12617 #saved_LIBS="$LIBS"
12620 echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
12621 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6
12622 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
12623 echo $ECHO_N "(cached) $ECHO_C" >&6
12625 ac_check_lib_save_LIBS=$LIBS
12626 LIBS="-lgnutls $LIBS"
12627 cat >conftest.$ac_ext <<_ACEOF
12630 cat confdefs.h >>conftest.$ac_ext
12631 cat >>conftest.$ac_ext <<_ACEOF
12632 /* end confdefs.h. */
12634 /* Override any gcc2 internal prototype to avoid an error. */
12638 /* We use char because int might match the return type of a gcc2
12639 builtin and then its argument prototype would still apply. */
12640 char gnutls_init ();
12649 rm -f conftest.$ac_objext conftest$ac_exeext
12650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12651 (eval $ac_link) 2>conftest.er1
12653 grep -v '^ *+' conftest.er1 >conftest.err
12655 cat conftest.err >&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); } &&
12658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12660 (eval $ac_try) 2>&5
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); }; } &&
12664 { ac_try='test -s conftest$ac_exeext'
12665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12666 (eval $ac_try) 2>&5
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); }; }; then
12670 ac_cv_lib_gnutls_gnutls_init=yes
12672 echo "$as_me: failed program was:" >&5
12673 sed 's/^/| /' conftest.$ac_ext >&5
12675 ac_cv_lib_gnutls_gnutls_init=no
12677 rm -f conftest.err conftest.$ac_objext \
12678 conftest$ac_exeext conftest.$ac_ext
12679 LIBS=$ac_check_lib_save_LIBS
12681 echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
12682 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6
12683 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
12684 cat >>confdefs.h <<_ACEOF
12685 #define HAVE_LIBGNUTLS 1
12688 LIBS="-lgnutls $LIBS"
12691 { { echo "$as_me:$LINENO: error: Unable to find GNU TLS library" >&5
12692 echo "$as_me: error: Unable to find GNU TLS library" >&2;}
12693 { (exit 1); exit 1; }; }
12698 cat >>confdefs.h <<\_ACEOF
12699 #define USE_GNUTLS 1
12702 #LIBS="$saved_LIBS"
12703 #MUTTLIBS="$MUTTLIBS -lgnutls"
12704 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_gnutls.o"
12711 if test x$need_gnutls = xyes; then
12713 USE_GNUTLS_FALSE='#'
12715 USE_GNUTLS_TRUE='#'
12721 # Check whether --with-nss or --without-nss was given.
12722 if test "${with_nss+set}" = set; then
12723 withval="$with_nss"
12724 if test "$with_nss" != no
12726 if test "$need_socket" != "yes"; then
12727 { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
12728 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
12729 { (exit 1); exit 1; }; }
12732 if test "$with_nss" != "yes"
12734 LDFLAGS="$LDFLAGS -L$withval/lib"
12735 CPPFLAGS="$CPPFLAGS -I$withval/include -I$withval/public/security"
12739 cat >>confdefs.h <<\_ACEOF
12743 MUTTLIBS="$MUTTLIBS -lssl -lnss -lcertdb -lcerthi -lcryptohi"
12744 MUTTLIBS="$MUTTLIBS -lpk11wrap -lsoftoken -lsecutil -ldbm -lplds4 -lplc4 -lfreebl"
12745 MUTTLIBS="$MUTTLIBS -lnspr4"
12747 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_nss.o"
12754 # Check whether --with-gnutls or --without-gnutls was given.
12755 if test "${with_gnutls+set}" = set; then
12756 withval="$with_gnutls"
12757 gnutls_prefix="$withval"
12761 if test "$gnutls_prefix" != "no"
12763 if test "$need_socket" != "yes"
12765 { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
12766 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
12767 { (exit 1); exit 1; }; }
12769 libgnutls_config_prefix=$gnutls_prefix
12770 min_libgnutls_version=0.1.0
12772 if test x$libgnutls_config_prefix != x ; then
12773 if test x${LIBGNUTLS_CONFIG+set} != xset ; then
12774 LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
12778 # Extract the first word of "libgnutls-config", so it can be a program name with args.
12779 set dummy libgnutls-config; ac_word=$2
12780 echo "$as_me:$LINENO: checking for $ac_word" >&5
12781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12782 if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
12783 echo $ECHO_N "(cached) $ECHO_C" >&6
12785 case $LIBGNUTLS_CONFIG in
12787 ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
12790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12791 for as_dir in $PATH
12794 test -z "$as_dir" && as_dir=.
12795 for ac_exec_ext in '' $ac_executable_extensions; do
12796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12797 ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12804 test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
12808 LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
12810 if test -n "$LIBGNUTLS_CONFIG"; then
12811 echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
12812 echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6
12814 echo "$as_me:$LINENO: result: no" >&5
12815 echo "${ECHO_T}no" >&6
12818 echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
12819 echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6
12821 if test "$LIBGNUTLS_CONFIG" = "no" ; then
12824 LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
12825 LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
12826 libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
12829 ac_save_CFLAGS="$CFLAGS"
12830 ac_save_LIBS="$LIBS"
12831 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
12832 LIBS="$LIBS $LIBGNUTLS_LIBS"
12834 rm -f conf.libgnutlstest
12835 if test "$cross_compiling" = yes; then
12836 echo $ac_n "cross compiling; assumed OK... $ac_c"
12838 cat >conftest.$ac_ext <<_ACEOF
12841 cat confdefs.h >>conftest.$ac_ext
12842 cat >>conftest.$ac_ext <<_ACEOF
12843 /* end confdefs.h. */
12846 #include <stdlib.h>
12847 #include <string.h>
12848 #include <gnutls/gnutls.h>
12853 system ("touch conf.libgnutlstest");
12855 if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
12857 printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
12858 "$libgnutls_config_version", gnutls_check_version(NULL) );
12859 printf("*** was found! If libgnutls-config was correct, then it is best\n");
12860 printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
12861 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12862 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12863 printf("*** required on your system.\n");
12864 printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
12865 printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
12866 printf("*** before re-running configure\n");
12868 else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
12870 printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
12871 printf("*** library (version %s)\n", gnutls_check_version(NULL) );
12875 if ( gnutls_check_version( "$min_libgnutls_version" ) )
12881 printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
12882 gnutls_check_version(NULL) );
12883 printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
12884 "$min_libgnutls_version" );
12885 printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
12887 printf("*** If you have already installed a sufficiently new version, this error\n");
12888 printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
12889 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12890 printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
12891 printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
12892 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12893 printf("*** so that the correct libraries are found at run-time))\n");
12900 rm -f conftest$ac_exeext
12901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12902 (eval $ac_link) 2>&5
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12907 (eval $ac_try) 2>&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; }; then
12913 echo "$as_me: program exited with status $ac_status" >&5
12914 echo "$as_me: failed program was:" >&5
12915 sed 's/^/| /' conftest.$ac_ext >&5
12917 ( exit $ac_status )
12920 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12922 CFLAGS="$ac_save_CFLAGS"
12923 LIBS="$ac_save_LIBS"
12926 if test "x$no_libgnutls" = x ; then
12927 echo "$as_me:$LINENO: result: yes" >&5
12928 echo "${ECHO_T}yes" >&6
12930 for ac_header in gnutls/openssl.h
12932 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12934 echo "$as_me:$LINENO: checking for $ac_header" >&5
12935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12936 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12937 echo $ECHO_N "(cached) $ECHO_C" >&6
12939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12942 # Is the header compilable?
12943 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12944 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12945 cat >conftest.$ac_ext <<_ACEOF
12948 cat confdefs.h >>conftest.$ac_ext
12949 cat >>conftest.$ac_ext <<_ACEOF
12950 /* end confdefs.h. */
12951 $ac_includes_default
12952 #include <$ac_header>
12954 rm -f conftest.$ac_objext
12955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12956 (eval $ac_compile) 2>conftest.er1
12958 grep -v '^ *+' conftest.er1 >conftest.err
12960 cat conftest.err >&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); } &&
12963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12965 (eval $ac_try) 2>&5
12967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968 (exit $ac_status); }; } &&
12969 { ac_try='test -s conftest.$ac_objext'
12970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12971 (eval $ac_try) 2>&5
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); }; }; then
12975 ac_header_compiler=yes
12977 echo "$as_me: failed program was:" >&5
12978 sed 's/^/| /' conftest.$ac_ext >&5
12980 ac_header_compiler=no
12982 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12983 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12984 echo "${ECHO_T}$ac_header_compiler" >&6
12986 # Is the header present?
12987 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12988 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12989 cat >conftest.$ac_ext <<_ACEOF
12992 cat confdefs.h >>conftest.$ac_ext
12993 cat >>conftest.$ac_ext <<_ACEOF
12994 /* end confdefs.h. */
12995 #include <$ac_header>
12997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13000 grep -v '^ *+' conftest.er1 >conftest.err
13002 cat conftest.err >&5
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); } >/dev/null; then
13005 if test -s conftest.err; then
13006 ac_cpp_err=$ac_c_preproc_warn_flag
13007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13014 if test -z "$ac_cpp_err"; then
13015 ac_header_preproc=yes
13017 echo "$as_me: failed program was:" >&5
13018 sed 's/^/| /' conftest.$ac_ext >&5
13020 ac_header_preproc=no
13022 rm -f conftest.err conftest.$ac_ext
13023 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13024 echo "${ECHO_T}$ac_header_preproc" >&6
13026 # So? What about this header?
13027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13033 ac_header_preproc=yes
13036 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13038 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13039 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13040 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13042 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13043 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13046 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13050 ## ------------------------------------------ ##
13051 ## Report this to the AC_PACKAGE_NAME lists. ##
13052 ## ------------------------------------------ ##
13055 sed "s/^/$as_me: WARNING: /" >&2
13058 echo "$as_me:$LINENO: checking for $ac_header" >&5
13059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13061 echo $ECHO_N "(cached) $ECHO_C" >&6
13063 eval "$as_ac_Header=\$ac_header_preproc"
13065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13070 cat >>confdefs.h <<_ACEOF
13071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13078 CPPFLAGS="$CPPFLAGS $LIBGNUTLS_CFLAGS"
13079 MUTTLIBS="$MUTTLIBS $LIBGNUTLS_LIBS"
13081 cat >>confdefs.h <<\_ACEOF
13082 #define USE_GNUTLS 1
13086 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_gnutls.o"
13089 if test -f conf.libgnutlstest ; then
13092 echo "$as_me:$LINENO: result: no" >&5
13093 echo "${ECHO_T}no" >&6
13095 if test "$LIBGNUTLS_CONFIG" = "no" ; then
13096 echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
13097 echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
13098 echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
13099 echo "*** full path to libgnutls-config."
13101 if test -f conf.libgnutlstest ; then
13104 echo "*** Could not run libgnutls test program, checking why..."
13105 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
13106 LIBS="$LIBS $LIBGNUTLS_LIBS"
13107 cat >conftest.$ac_ext <<_ACEOF
13110 cat confdefs.h >>conftest.$ac_ext
13111 cat >>conftest.$ac_ext <<_ACEOF
13112 /* end confdefs.h. */
13115 #include <stdlib.h>
13116 #include <string.h>
13117 #include <gnutls/gnutls.h>
13122 return !!gnutls_check_version(NULL);
13127 rm -f conftest.$ac_objext conftest$ac_exeext
13128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13129 (eval $ac_link) 2>conftest.er1
13131 grep -v '^ *+' conftest.er1 >conftest.err
13133 cat conftest.err >&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } &&
13136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13138 (eval $ac_try) 2>&5
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); }; } &&
13142 { ac_try='test -s conftest$ac_exeext'
13143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13144 (eval $ac_try) 2>&5
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); }; }; then
13148 echo "*** The test program compiled, but did not run. This usually means"
13149 echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
13150 echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
13151 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13152 echo "*** to the installed location Also, make sure you have run ldconfig if that"
13153 echo "*** is required on your system"
13155 echo "*** If you have an old version installed, it is best to remove it, although"
13156 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13159 echo "$as_me: failed program was:" >&5
13160 sed 's/^/| /' conftest.$ac_ext >&5
13162 echo "*** The test program failed to compile or link. See the file config.log for the"
13163 echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
13164 echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
13165 echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
13167 rm -f conftest.err conftest.$ac_objext \
13168 conftest$ac_exeext conftest.$ac_ext
13169 CFLAGS="$ac_save_CFLAGS"
13170 LIBS="$ac_save_LIBS"
13173 LIBGNUTLS_CFLAGS=""
13175 { { echo "$as_me:$LINENO: error: could not find libgnutls" >&5
13176 echo "$as_me: error: could not find libgnutls" >&2;}
13177 { (exit 1); exit 1; }; }
13180 rm -f conf.libgnutlstest
13187 # Check whether --with-sasl or --without-sasl was given.
13188 if test "${with_sasl+set}" = set; then
13189 withval="$with_sasl"
13191 if test "$with_sasl" != "no" -a "$need_imap" != "yes" -a "$need_pop" != "yes"
13193 { { echo "$as_me:$LINENO: error: SASL support is only useful with POP or IMAP support" >&5
13194 echo "$as_me: error: SASL support is only useful with POP or IMAP support" >&2;}
13195 { (exit 1); exit 1; }; }
13198 if test "$with_sasl" != "no"
13200 if test "$with_sasl" != "yes"
13202 CPPFLAGS="$CPPFLAGS -I$with_sasl/include"
13203 LDFLAGS="$LDFLAGS -L$with_sasl/lib"
13209 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
13210 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
13211 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
13212 echo $ECHO_N "(cached) $ECHO_C" >&6
13214 ac_check_lib_save_LIBS=$LIBS
13215 LIBS="-lsasl $LIBS"
13216 cat >conftest.$ac_ext <<_ACEOF
13219 cat confdefs.h >>conftest.$ac_ext
13220 cat >>conftest.$ac_ext <<_ACEOF
13221 /* end confdefs.h. */
13223 /* Override any gcc2 internal prototype to avoid an error. */
13227 /* We use char because int might match the return type of a gcc2
13228 builtin and then its argument prototype would still apply. */
13229 char sasl_client_init ();
13233 sasl_client_init ();
13238 rm -f conftest.$ac_objext conftest$ac_exeext
13239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13240 (eval $ac_link) 2>conftest.er1
13242 grep -v '^ *+' conftest.er1 >conftest.err
13244 cat conftest.err >&5
13245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13246 (exit $ac_status); } &&
13247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249 (eval $ac_try) 2>&5
13251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); }; } &&
13253 { ac_try='test -s conftest$ac_exeext'
13254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13255 (eval $ac_try) 2>&5
13257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13258 (exit $ac_status); }; }; then
13259 ac_cv_lib_sasl_sasl_client_init=yes
13261 echo "$as_me: failed program was:" >&5
13262 sed 's/^/| /' conftest.$ac_ext >&5
13264 ac_cv_lib_sasl_sasl_client_init=no
13266 rm -f conftest.err conftest.$ac_objext \
13267 conftest$ac_exeext conftest.$ac_ext
13268 LIBS=$ac_check_lib_save_LIBS
13270 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
13271 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
13272 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
13273 cat >>confdefs.h <<_ACEOF
13274 #define HAVE_LIBSASL 1
13277 LIBS="-lsasl $LIBS"
13280 { { echo "$as_me:$LINENO: error: could not find libsasl" >&5
13281 echo "$as_me: error: could not find libsasl" >&2;}
13282 { (exit 1); exit 1; }; }
13286 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
13287 MUTTLIBS="$MUTTLIBS -lsasl"
13290 cat >>confdefs.h <<\_ACEOF
13300 if test x$need_sasl = xyes; then
13310 # Check whether --with-sasl2 or --without-sasl2 was given.
13311 if test "${with_sasl2+set}" = set; then
13312 withval="$with_sasl2"
13314 if test "$with_sasl2" != "no" -a "$need_imap" != "yes" -a "$need_pop" != "yes"
13316 { { echo "$as_me:$LINENO: error: SASL2 support is only useful with POP or IMAP support" >&5
13317 echo "$as_me: error: SASL2 support is only useful with POP or IMAP support" >&2;}
13318 { (exit 1); exit 1; }; }
13321 if test "$with_sasl2" != "no"
13323 if test "$with_sasl2" != "yes"
13325 CPPFLAGS="$CPPFLAGS -I$with_sasl2/include"
13326 LDFLAGS="$LDFLAGS -L$with_sasl2/lib"
13332 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
13333 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
13334 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
13335 echo $ECHO_N "(cached) $ECHO_C" >&6
13337 ac_check_lib_save_LIBS=$LIBS
13338 LIBS="-lsasl2 $LIBS"
13339 cat >conftest.$ac_ext <<_ACEOF
13342 cat confdefs.h >>conftest.$ac_ext
13343 cat >>conftest.$ac_ext <<_ACEOF
13344 /* end confdefs.h. */
13346 /* Override any gcc2 internal prototype to avoid an error. */
13350 /* We use char because int might match the return type of a gcc2
13351 builtin and then its argument prototype would still apply. */
13352 char sasl_client_init ();
13356 sasl_client_init ();
13361 rm -f conftest.$ac_objext conftest$ac_exeext
13362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13363 (eval $ac_link) 2>conftest.er1
13365 grep -v '^ *+' conftest.er1 >conftest.err
13367 cat conftest.err >&5
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); } &&
13370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13372 (eval $ac_try) 2>&5
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); }; } &&
13376 { ac_try='test -s conftest$ac_exeext'
13377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13378 (eval $ac_try) 2>&5
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); }; }; then
13382 ac_cv_lib_sasl2_sasl_client_init=yes
13384 echo "$as_me: failed program was:" >&5
13385 sed 's/^/| /' conftest.$ac_ext >&5
13387 ac_cv_lib_sasl2_sasl_client_init=no
13389 rm -f conftest.err conftest.$ac_objext \
13390 conftest$ac_exeext conftest.$ac_ext
13391 LIBS=$ac_check_lib_save_LIBS
13393 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
13394 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
13395 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
13396 cat >>confdefs.h <<_ACEOF
13397 #define HAVE_LIBSASL2 1
13400 LIBS="-lsasl2 $LIBS"
13403 { { echo "$as_me:$LINENO: error: could not find libsasl2" >&5
13404 echo "$as_me: error: could not find libsasl2" >&2;}
13405 { (exit 1); exit 1; }; }
13409 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
13410 MUTTLIBS="$MUTTLIBS -lsasl2"
13413 cat >>confdefs.h <<\_ACEOF
13418 cat >>confdefs.h <<\_ACEOF
13419 #define USE_SASL2 1
13428 if test x$need_sasl = xyes; then
13438 # Check whether --with-idn or --without-idn was given.
13439 if test "${with_idn+set}" = set; then
13440 withval="$with_idn"
13442 if test "$with_idn" != "no" ; then
13443 if test "$with_idn" != "yes" ; then
13444 CPPFLAGS="$CPPFLAGS -I$with_idn/include"
13445 LDFLAGS="$LDFLAGS -L$with_idn/lib"
13452 if test "x$with_idn" != "xno"; then
13454 echo "$as_me:$LINENO: checking for stringprep_check_version in -lidn" >&5
13455 echo $ECHO_N "checking for stringprep_check_version in -lidn... $ECHO_C" >&6
13456 if test "${ac_cv_lib_idn_stringprep_check_version+set}" = set; then
13457 echo $ECHO_N "(cached) $ECHO_C" >&6
13459 ac_check_lib_save_LIBS=$LIBS
13461 cat >conftest.$ac_ext <<_ACEOF
13464 cat confdefs.h >>conftest.$ac_ext
13465 cat >>conftest.$ac_ext <<_ACEOF
13466 /* end confdefs.h. */
13468 /* Override any gcc2 internal prototype to avoid an error. */
13472 /* We use char because int might match the return type of a gcc2
13473 builtin and then its argument prototype would still apply. */
13474 char stringprep_check_version ();
13478 stringprep_check_version ();
13483 rm -f conftest.$ac_objext conftest$ac_exeext
13484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13485 (eval $ac_link) 2>conftest.er1
13487 grep -v '^ *+' conftest.er1 >conftest.err
13489 cat conftest.err >&5
13490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491 (exit $ac_status); } &&
13492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494 (eval $ac_try) 2>&5
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; } &&
13498 { ac_try='test -s conftest$ac_exeext'
13499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13500 (eval $ac_try) 2>&5
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); }; }; then
13504 ac_cv_lib_idn_stringprep_check_version=yes
13506 echo "$as_me: failed program was:" >&5
13507 sed 's/^/| /' conftest.$ac_ext >&5
13509 ac_cv_lib_idn_stringprep_check_version=no
13511 rm -f conftest.err conftest.$ac_objext \
13512 conftest$ac_exeext conftest.$ac_ext
13513 LIBS=$ac_check_lib_save_LIBS
13515 echo "$as_me:$LINENO: result: $ac_cv_lib_idn_stringprep_check_version" >&5
13516 echo "${ECHO_T}$ac_cv_lib_idn_stringprep_check_version" >&6
13517 if test $ac_cv_lib_idn_stringprep_check_version = yes; then
13518 cat >>confdefs.h <<_ACEOF
13519 #define HAVE_LIBIDN 1
13528 for ac_func in idna_to_unicode_utf8_from_utf8 idna_to_unicode_8z8z
13530 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13531 echo "$as_me:$LINENO: checking for $ac_func" >&5
13532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13533 if eval "test \"\${$as_ac_var+set}\" = set"; then
13534 echo $ECHO_N "(cached) $ECHO_C" >&6
13536 cat >conftest.$ac_ext <<_ACEOF
13539 cat confdefs.h >>conftest.$ac_ext
13540 cat >>conftest.$ac_ext <<_ACEOF
13541 /* end confdefs.h. */
13542 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13544 #define $ac_func innocuous_$ac_func
13546 /* System header to define __stub macros and hopefully few prototypes,
13547 which can conflict with char $ac_func (); below.
13548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13549 <limits.h> exists even on freestanding compilers. */
13552 # include <limits.h>
13554 # include <assert.h>
13559 /* Override any gcc2 internal prototype to avoid an error. */
13564 /* We use char because int might match the return type of a gcc2
13565 builtin and then its argument prototype would still apply. */
13567 /* The GNU C library defines this for functions which it implements
13568 to always fail with ENOSYS. Some functions are actually named
13569 something starting with __ and the normal name is an alias. */
13570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13573 char (*f) () = $ac_func;
13582 return f != $ac_func;
13587 rm -f conftest.$ac_objext conftest$ac_exeext
13588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13589 (eval $ac_link) 2>conftest.er1
13591 grep -v '^ *+' conftest.er1 >conftest.err
13593 cat conftest.err >&5
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); } &&
13596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13598 (eval $ac_try) 2>&5
13600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601 (exit $ac_status); }; } &&
13602 { ac_try='test -s conftest$ac_exeext'
13603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13604 (eval $ac_try) 2>&5
13606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13607 (exit $ac_status); }; }; then
13608 eval "$as_ac_var=yes"
13610 echo "$as_me: failed program was:" >&5
13611 sed 's/^/| /' conftest.$ac_ext >&5
13613 eval "$as_ac_var=no"
13615 rm -f conftest.err conftest.$ac_objext \
13616 conftest$ac_exeext conftest.$ac_ext
13618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13619 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13620 if test `eval echo '${'$as_ac_var'}'` = yes; then
13621 cat >>confdefs.h <<_ACEOF
13622 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13630 for ac_func in idna_to_ascii_from_utf8 idna_to_ascii_8z
13632 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13633 echo "$as_me:$LINENO: checking for $ac_func" >&5
13634 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13635 if eval "test \"\${$as_ac_var+set}\" = set"; then
13636 echo $ECHO_N "(cached) $ECHO_C" >&6
13638 cat >conftest.$ac_ext <<_ACEOF
13641 cat confdefs.h >>conftest.$ac_ext
13642 cat >>conftest.$ac_ext <<_ACEOF
13643 /* end confdefs.h. */
13644 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13646 #define $ac_func innocuous_$ac_func
13648 /* System header to define __stub macros and hopefully few prototypes,
13649 which can conflict with char $ac_func (); below.
13650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13651 <limits.h> exists even on freestanding compilers. */
13654 # include <limits.h>
13656 # include <assert.h>
13661 /* Override any gcc2 internal prototype to avoid an error. */
13666 /* We use char because int might match the return type of a gcc2
13667 builtin and then its argument prototype would still apply. */
13669 /* The GNU C library defines this for functions which it implements
13670 to always fail with ENOSYS. Some functions are actually named
13671 something starting with __ and the normal name is an alias. */
13672 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13675 char (*f) () = $ac_func;
13684 return f != $ac_func;
13689 rm -f conftest.$ac_objext conftest$ac_exeext
13690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13691 (eval $ac_link) 2>conftest.er1
13693 grep -v '^ *+' conftest.er1 >conftest.err
13695 cat conftest.err >&5
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); } &&
13698 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700 (eval $ac_try) 2>&5
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); }; } &&
13704 { ac_try='test -s conftest$ac_exeext'
13705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13706 (eval $ac_try) 2>&5
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); }; }; then
13710 eval "$as_ac_var=yes"
13712 echo "$as_me: failed program was:" >&5
13713 sed 's/^/| /' conftest.$ac_ext >&5
13715 eval "$as_ac_var=no"
13717 rm -f conftest.err conftest.$ac_objext \
13718 conftest$ac_exeext conftest.$ac_ext
13720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13721 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13722 if test `eval echo '${'$as_ac_var'}'` = yes; then
13723 cat >>confdefs.h <<_ACEOF
13724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13732 for ac_func in idna_to_ascii_lz idna_to_ascii_from_locale
13734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13735 echo "$as_me:$LINENO: checking for $ac_func" >&5
13736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13737 if eval "test \"\${$as_ac_var+set}\" = set"; then
13738 echo $ECHO_N "(cached) $ECHO_C" >&6
13740 cat >conftest.$ac_ext <<_ACEOF
13743 cat confdefs.h >>conftest.$ac_ext
13744 cat >>conftest.$ac_ext <<_ACEOF
13745 /* end confdefs.h. */
13746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13748 #define $ac_func innocuous_$ac_func
13750 /* System header to define __stub macros and hopefully few prototypes,
13751 which can conflict with char $ac_func (); below.
13752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13753 <limits.h> exists even on freestanding compilers. */
13756 # include <limits.h>
13758 # include <assert.h>
13763 /* Override any gcc2 internal prototype to avoid an error. */
13768 /* We use char because int might match the return type of a gcc2
13769 builtin and then its argument prototype would still apply. */
13771 /* The GNU C library defines this for functions which it implements
13772 to always fail with ENOSYS. Some functions are actually named
13773 something starting with __ and the normal name is an alias. */
13774 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13777 char (*f) () = $ac_func;
13786 return f != $ac_func;
13791 rm -f conftest.$ac_objext conftest$ac_exeext
13792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13793 (eval $ac_link) 2>conftest.er1
13795 grep -v '^ *+' conftest.er1 >conftest.err
13797 cat conftest.err >&5
13798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799 (exit $ac_status); } &&
13800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13802 (eval $ac_try) 2>&5
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); }; } &&
13806 { ac_try='test -s conftest$ac_exeext'
13807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13808 (eval $ac_try) 2>&5
13810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811 (exit $ac_status); }; }; then
13812 eval "$as_ac_var=yes"
13814 echo "$as_me: failed program was:" >&5
13815 sed 's/^/| /' conftest.$ac_ext >&5
13817 eval "$as_ac_var=no"
13819 rm -f conftest.err conftest.$ac_objext \
13820 conftest$ac_exeext conftest.$ac_ext
13822 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13823 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13824 if test `eval echo '${'$as_ac_var'}'` = yes; then
13825 cat >>confdefs.h <<_ACEOF
13826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13835 # Check whether --enable-debug or --disable-debug was given.
13836 if test "${enable_debug+set}" = set; then
13837 enableval="$enable_debug"
13838 if test x$enableval = xyes ; then
13840 cat >>confdefs.h <<\_ACEOF
13848 # Check whether --enable-flock or --disable-flock was given.
13849 if test "${enable_flock+set}" = set; then
13850 enableval="$enable_flock"
13851 if test $enableval = yes; then
13853 cat >>confdefs.h <<\_ACEOF
13854 #define USE_FLOCK 1
13861 # Check whether --enable-fcntl or --disable-fcntl was given.
13862 if test "${enable_fcntl+set}" = set; then
13863 enableval="$enable_fcntl"
13864 if test $enableval = no; then mutt_cv_fcntl=no; fi
13867 if test $mutt_cv_fcntl = yes; then
13869 cat >>confdefs.h <<\_ACEOF
13870 #define USE_FCNTL 1
13875 mutt_cv_inodesort=no
13876 # Check whether --enable-inodesort or --disable-inodesort was given.
13877 if test "${enable_inodesort+set}" = set; then
13878 enableval="$enable_inodesort"
13879 if test x$enableval = xyes ; then mutt_cv_inodesort=yes; fi
13882 if test $mutt_cv_inodesort = yes; then
13884 cat >>confdefs.h <<\_ACEOF
13885 #define USE_INODESORT 1
13890 mutt_cv_warnings=yes
13891 # Check whether --enable-warnings or --disable-warnings was given.
13892 if test "${enable_warnings+set}" = set; then
13893 enableval="$enable_warnings"
13894 if test $enableval = no; then
13895 mutt_cv_warnings=no
13899 if test x$GCC = xyes -a $mutt_cv_warnings = yes; then
13900 CFLAGS="-Wall -pedantic $CFLAGS"
13903 # Check whether --enable-nfs-fix or --disable-nfs-fix was given.
13904 if test "${enable_nfs_fix+set}" = set; then
13905 enableval="$enable_nfs_fix"
13906 if test x$enableval = xyes; then
13908 cat >>confdefs.h <<\_ACEOF
13909 #define NFS_ATTRIBUTE_HACK 1
13915 # Check whether --enable-buffy-size or --disable-buffy-size was given.
13916 if test "${enable_buffy_size+set}" = set; then
13917 enableval="$enable_buffy_size"
13918 if test x$enableval = xyes; then
13920 cat >>confdefs.h <<\_ACEOF
13921 #define BUFFY_SIZE 1
13927 # Check whether --enable-mailtool or --disable-mailtool was given.
13928 if test "${enable_mailtool+set}" = set; then
13929 enableval="$enable_mailtool"
13930 if test x$enableval = xyes; then
13932 cat >>confdefs.h <<\_ACEOF
13933 #define SUN_ATTACHMENT 1
13939 # Check whether --enable-compressed or --disable-compressed was given.
13940 if test "${enable_compressed+set}" = set; then
13941 enableval="$enable_compressed"
13942 if test x$enableval = xyes; then
13943 cat >>confdefs.h <<\_ACEOF
13944 #define USE_COMPRESSED 1
13950 # Check whether --enable-locales-fix or --disable-locales-fix was given.
13951 if test "${enable_locales_fix+set}" = set; then
13952 enableval="$enable_locales_fix"
13953 if test x$enableval = xyes; then
13955 cat >>confdefs.h <<\_ACEOF
13956 #define LOCALES_HACK 1
13963 # Check whether --with-exec-shell or --without-exec-shell was given.
13964 if test "${with_exec_shell+set}" = set; then
13965 withval="$with_exec_shell"
13966 if test $withval != yes; then
13968 cat >>confdefs.h <<_ACEOF
13969 #define EXECSHELL "$withval"
13973 cat >>confdefs.h <<_ACEOF
13974 #define EXECSHELL "/bin/sh"
13979 cat >>confdefs.h <<_ACEOF
13980 #define EXECSHELL "/bin/sh"
13985 # Check whether --enable-exact-address or --disable-exact-address was given.
13986 if test "${enable_exact_address+set}" = set; then
13987 enableval="$enable_exact_address"
13988 if test $enableval = yes; then
13990 cat >>confdefs.h <<\_ACEOF
13991 #define EXACT_ADDRESS 1
13998 # Check whether --enable-hcache or --disable-hcache was given.
13999 if test "${enable_hcache+set}" = set; then
14000 enableval="$enable_hcache"
14001 if test x$enableval = xyes; then
14003 cat >>confdefs.h <<\_ACEOF
14004 #define USE_HCACHE 1
14008 OLDCPPFLAGS="$CPPFLAGS"
14014 # Check whether --with-gdbm or --without-gdbm was given.
14015 if test "${with_gdbm+set}" = set; then
14016 withval="$with_gdbm"
14017 ac_prefer_gdbm=$withval
14019 if test x$ac_prefer_gdbm != xno; then
14020 CPPFLAGS="$OLDCPPFLAGS"
14021 LIBS="$OLDLIBS -lgdbm";
14022 echo "$as_me:$LINENO: checking for gdbm_open" >&5
14023 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
14024 if test "${ac_cv_gdbmopen+set}" = set; then
14025 echo $ECHO_N "(cached) $ECHO_C" >&6
14029 cat >conftest.$ac_ext <<_ACEOF
14032 cat confdefs.h >>conftest.$ac_ext
14033 cat >>conftest.$ac_ext <<_ACEOF
14034 /* end confdefs.h. */
14039 gdbm_open(0,0,0,0,0);
14044 rm -f conftest.$ac_objext conftest$ac_exeext
14045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14046 (eval $ac_link) 2>conftest.er1
14048 grep -v '^ *+' conftest.er1 >conftest.err
14050 cat conftest.err >&5
14051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052 (exit $ac_status); } &&
14053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14055 (eval $ac_try) 2>&5
14057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14058 (exit $ac_status); }; } &&
14059 { ac_try='test -s conftest$ac_exeext'
14060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14061 (eval $ac_try) 2>&5
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); }; }; then
14067 echo "$as_me: failed program was:" >&5
14068 sed 's/^/| /' conftest.$ac_ext >&5
14071 rm -f conftest.err conftest.$ac_objext \
14072 conftest$ac_exeext conftest.$ac_ext
14075 echo "$as_me:$LINENO: result: $ac_cv_gdbmopen" >&5
14076 echo "${ECHO_T}$ac_cv_gdbmopen" >&6
14081 # Check whether --with-bdb or --without-bdb was given.
14082 if test "${with_bdb+set}" = set; then
14083 withval="$with_bdb"
14084 ac_bdb_prefix=$withval
14086 if test x$ac_bdb_prefix != xno -a x$ac_cv_gdbmopen != xyes; then
14087 test x$ac_bdb_prefix = xyes && ac_bdb_prefix="$mutt_cv_prefix /opt/csw/bdb4 /opt /usr/local /usr"
14088 for d in $ac_bdb_prefix; do
14089 bdbpfx="$bdbpfx $d"
14090 for v in BerkeleyDB.4.3 BerkeleyDB.4.2 BerkeleyDB.4.1; do
14091 bdbpfx="$bdbpfx $d/$v"
14094 BDB_VERSIONS="db-4 db4 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db ''"
14095 echo "$as_me:$LINENO: checking for BerkeleyDB > 4.0" >&5
14096 echo $ECHO_N "checking for BerkeleyDB > 4.0... $ECHO_C" >&6
14097 for d in $bdbpfx; do
14100 for v in / $BDB_VERSIONS; do
14101 if test -r "$d/include/$v/db.h"; then
14102 BDB_INCLUDE_DIR="$d/include/$v"
14103 if test -d "$d/lib/$v"; then
14104 BDB_LIB_DIR="$d/lib/$v"
14105 for l in `echo $BDB_VERSIONS`; do
14106 CPPFLAGS="-I$BDB_INCLUDE_DIR $OLDCPPFLAGS"
14107 LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$l"
14108 cat >conftest.$ac_ext <<_ACEOF
14111 cat confdefs.h >>conftest.$ac_ext
14112 cat >>conftest.$ac_ext <<_ACEOF
14113 /* end confdefs.h. */
14115 #include <stdlib.h>
14123 db->open(db,NULL,NULL,NULL,0,0,0);
14129 rm -f conftest.$ac_objext conftest$ac_exeext
14130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14131 (eval $ac_link) 2>conftest.er1
14133 grep -v '^ *+' conftest.er1 >conftest.err
14135 cat conftest.err >&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); } &&
14138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14140 (eval $ac_try) 2>&5
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); }; } &&
14144 { ac_try='test -s conftest$ac_exeext'
14145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146 (eval $ac_try) 2>&5
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); }; }; then
14156 echo "$as_me: failed program was:" >&5
14157 sed 's/^/| /' conftest.$ac_ext >&5
14160 rm -f conftest.err conftest.$ac_objext \
14161 conftest$ac_exeext conftest.$ac_ext
14163 test x$ac_dbcreate = xyes && break
14167 test x$BDB_LIB != x && break
14169 if test x$ac_cv_dbcreate = xyes; then
14170 echo "$as_me:$LINENO: result: yes" >&5
14171 echo "${ECHO_T}yes" >&6
14173 echo "$as_me:$LINENO: result: no" >&5
14174 echo "${ECHO_T}no" >&6
14178 if test x$ac_cv_gdbmopen = xyes; then
14179 CPPFLAGS="$OLDCPPFLAGS"
14180 LIBS="$OLDLIBS -lgdbm";
14182 cat >>confdefs.h <<\_ACEOF
14183 #define HAVE_GDBM 1
14186 elif test x$ac_cv_dbcreate = xyes; then
14187 CPPFLAGS="-I$BDB_INCLUDE_DIR $OLDCPPFLAGS"
14188 LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$BDB_LIB"
14190 cat >>confdefs.h <<\_ACEOF
14195 { { echo "$as_me:$LINENO: error: You need Sleepycat DB4 or GDBM for --enable-hcache" >&5
14196 echo "$as_me: error: You need Sleepycat DB4 or GDBM for --enable-hcache" >&2;}
14197 { (exit 1); exit 1; }; }
14208 # Check whether --enable-iconv or --disable-iconv was given.
14209 if test "${enable_iconv+set}" = set; then
14210 enableval="$enable_iconv"
14211 if test x$enableval = xno ; then
14212 am_cv_func_iconv=no
14217 echo "$as_me:$LINENO: checking for off_t" >&5
14218 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
14219 if test "${ac_cv_type_off_t+set}" = set; then
14220 echo $ECHO_N "(cached) $ECHO_C" >&6
14222 cat >conftest.$ac_ext <<_ACEOF
14225 cat confdefs.h >>conftest.$ac_ext
14226 cat >>conftest.$ac_ext <<_ACEOF
14227 /* end confdefs.h. */
14228 $ac_includes_default
14234 if (sizeof (off_t))
14240 rm -f conftest.$ac_objext
14241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14242 (eval $ac_compile) 2>conftest.er1
14244 grep -v '^ *+' conftest.er1 >conftest.err
14246 cat conftest.err >&5
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); } &&
14249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14251 (eval $ac_try) 2>&5
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }; } &&
14255 { ac_try='test -s conftest.$ac_objext'
14256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14257 (eval $ac_try) 2>&5
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); }; }; then
14261 ac_cv_type_off_t=yes
14263 echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14266 ac_cv_type_off_t=no
14268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14270 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
14271 echo "${ECHO_T}$ac_cv_type_off_t" >&6
14272 if test $ac_cv_type_off_t = yes; then
14276 cat >>confdefs.h <<_ACEOF
14282 echo "$as_me:$LINENO: checking for size_t" >&5
14283 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
14284 if test "${ac_cv_type_size_t+set}" = set; then
14285 echo $ECHO_N "(cached) $ECHO_C" >&6
14287 cat >conftest.$ac_ext <<_ACEOF
14290 cat confdefs.h >>conftest.$ac_ext
14291 cat >>conftest.$ac_ext <<_ACEOF
14292 /* end confdefs.h. */
14293 $ac_includes_default
14299 if (sizeof (size_t))
14305 rm -f conftest.$ac_objext
14306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14307 (eval $ac_compile) 2>conftest.er1
14309 grep -v '^ *+' conftest.er1 >conftest.err
14311 cat conftest.err >&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); } &&
14314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14316 (eval $ac_try) 2>&5
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); }; } &&
14320 { ac_try='test -s conftest.$ac_objext'
14321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14322 (eval $ac_try) 2>&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); }; }; then
14326 ac_cv_type_size_t=yes
14328 echo "$as_me: failed program was:" >&5
14329 sed 's/^/| /' conftest.$ac_ext >&5
14331 ac_cv_type_size_t=no
14333 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14335 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14336 echo "${ECHO_T}$ac_cv_type_size_t" >&6
14337 if test $ac_cv_type_size_t = yes; then
14341 cat >>confdefs.h <<_ACEOF
14342 #define size_t unsigned
14347 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14348 # for constant arguments. Useless!
14349 echo "$as_me:$LINENO: checking for working alloca.h" >&5
14350 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
14351 if test "${ac_cv_working_alloca_h+set}" = set; then
14352 echo $ECHO_N "(cached) $ECHO_C" >&6
14354 cat >conftest.$ac_ext <<_ACEOF
14357 cat confdefs.h >>conftest.$ac_ext
14358 cat >>conftest.$ac_ext <<_ACEOF
14359 /* end confdefs.h. */
14360 #include <alloca.h>
14364 char *p = (char *) alloca (2 * sizeof (int));
14369 rm -f conftest.$ac_objext conftest$ac_exeext
14370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14371 (eval $ac_link) 2>conftest.er1
14373 grep -v '^ *+' conftest.er1 >conftest.err
14375 cat conftest.err >&5
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); } &&
14378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14380 (eval $ac_try) 2>&5
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); }; } &&
14384 { ac_try='test -s conftest$ac_exeext'
14385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14386 (eval $ac_try) 2>&5
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); }; }; then
14390 ac_cv_working_alloca_h=yes
14392 echo "$as_me: failed program was:" >&5
14393 sed 's/^/| /' conftest.$ac_ext >&5
14395 ac_cv_working_alloca_h=no
14397 rm -f conftest.err conftest.$ac_objext \
14398 conftest$ac_exeext conftest.$ac_ext
14400 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14401 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
14402 if test $ac_cv_working_alloca_h = yes; then
14404 cat >>confdefs.h <<\_ACEOF
14405 #define HAVE_ALLOCA_H 1
14410 echo "$as_me:$LINENO: checking for alloca" >&5
14411 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14412 if test "${ac_cv_func_alloca_works+set}" = set; then
14413 echo $ECHO_N "(cached) $ECHO_C" >&6
14415 cat >conftest.$ac_ext <<_ACEOF
14418 cat confdefs.h >>conftest.$ac_ext
14419 cat >>conftest.$ac_ext <<_ACEOF
14420 /* end confdefs.h. */
14422 # define alloca __builtin_alloca
14425 # include <malloc.h>
14426 # define alloca _alloca
14429 # include <alloca.h>
14434 # ifndef alloca /* predefined by HP cc +Olibcalls */
14445 char *p = (char *) alloca (1);
14450 rm -f conftest.$ac_objext conftest$ac_exeext
14451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14452 (eval $ac_link) 2>conftest.er1
14454 grep -v '^ *+' conftest.er1 >conftest.err
14456 cat conftest.err >&5
14457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14458 (exit $ac_status); } &&
14459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14461 (eval $ac_try) 2>&5
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); }; } &&
14465 { ac_try='test -s conftest$ac_exeext'
14466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14467 (eval $ac_try) 2>&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); }; }; then
14471 ac_cv_func_alloca_works=yes
14473 echo "$as_me: failed program was:" >&5
14474 sed 's/^/| /' conftest.$ac_ext >&5
14476 ac_cv_func_alloca_works=no
14478 rm -f conftest.err conftest.$ac_objext \
14479 conftest$ac_exeext conftest.$ac_ext
14481 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14482 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14484 if test $ac_cv_func_alloca_works = yes; then
14486 cat >>confdefs.h <<\_ACEOF
14487 #define HAVE_ALLOCA 1
14491 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14492 # that cause trouble. Some versions do not even contain alloca or
14493 # contain a buggy version. If you still want to use their alloca,
14494 # use ar to extract alloca.o from them instead of compiling alloca.c.
14496 ALLOCA=alloca.$ac_objext
14498 cat >>confdefs.h <<\_ACEOF
14503 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14504 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14505 if test "${ac_cv_os_cray+set}" = set; then
14506 echo $ECHO_N "(cached) $ECHO_C" >&6
14508 cat >conftest.$ac_ext <<_ACEOF
14511 cat confdefs.h >>conftest.$ac_ext
14512 cat >>conftest.$ac_ext <<_ACEOF
14513 /* end confdefs.h. */
14514 #if defined(CRAY) && ! defined(CRAY2)
14521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14522 $EGREP "webecray" >/dev/null 2>&1; then
14530 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14531 echo "${ECHO_T}$ac_cv_os_cray" >&6
14532 if test $ac_cv_os_cray = yes; then
14533 for ac_func in _getb67 GETB67 getb67; do
14534 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14535 echo "$as_me:$LINENO: checking for $ac_func" >&5
14536 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14537 if eval "test \"\${$as_ac_var+set}\" = set"; then
14538 echo $ECHO_N "(cached) $ECHO_C" >&6
14540 cat >conftest.$ac_ext <<_ACEOF
14543 cat confdefs.h >>conftest.$ac_ext
14544 cat >>conftest.$ac_ext <<_ACEOF
14545 /* end confdefs.h. */
14546 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14548 #define $ac_func innocuous_$ac_func
14550 /* System header to define __stub macros and hopefully few prototypes,
14551 which can conflict with char $ac_func (); below.
14552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14553 <limits.h> exists even on freestanding compilers. */
14556 # include <limits.h>
14558 # include <assert.h>
14563 /* Override any gcc2 internal prototype to avoid an error. */
14568 /* We use char because int might match the return type of a gcc2
14569 builtin and then its argument prototype would still apply. */
14571 /* The GNU C library defines this for functions which it implements
14572 to always fail with ENOSYS. Some functions are actually named
14573 something starting with __ and the normal name is an alias. */
14574 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14577 char (*f) () = $ac_func;
14586 return f != $ac_func;
14591 rm -f conftest.$ac_objext conftest$ac_exeext
14592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14593 (eval $ac_link) 2>conftest.er1
14595 grep -v '^ *+' conftest.er1 >conftest.err
14597 cat conftest.err >&5
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); } &&
14600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14602 (eval $ac_try) 2>&5
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); }; } &&
14606 { ac_try='test -s conftest$ac_exeext'
14607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14608 (eval $ac_try) 2>&5
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); }; }; then
14612 eval "$as_ac_var=yes"
14614 echo "$as_me: failed program was:" >&5
14615 sed 's/^/| /' conftest.$ac_ext >&5
14617 eval "$as_ac_var=no"
14619 rm -f conftest.err conftest.$ac_objext \
14620 conftest$ac_exeext conftest.$ac_ext
14622 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14623 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14624 if test `eval echo '${'$as_ac_var'}'` = yes; then
14626 cat >>confdefs.h <<_ACEOF
14627 #define CRAY_STACKSEG_END $ac_func
14636 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14637 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14638 if test "${ac_cv_c_stack_direction+set}" = set; then
14639 echo $ECHO_N "(cached) $ECHO_C" >&6
14641 if test "$cross_compiling" = yes; then
14642 ac_cv_c_stack_direction=0
14644 cat >conftest.$ac_ext <<_ACEOF
14647 cat confdefs.h >>conftest.$ac_ext
14648 cat >>conftest.$ac_ext <<_ACEOF
14649 /* end confdefs.h. */
14651 find_stack_direction ()
14653 static char *addr = 0;
14658 return find_stack_direction ();
14661 return (&dummy > addr) ? 1 : -1;
14667 exit (find_stack_direction () < 0);
14670 rm -f conftest$ac_exeext
14671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14672 (eval $ac_link) 2>&5
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14677 (eval $ac_try) 2>&5
14679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14680 (exit $ac_status); }; }; then
14681 ac_cv_c_stack_direction=1
14683 echo "$as_me: program exited with status $ac_status" >&5
14684 echo "$as_me: failed program was:" >&5
14685 sed 's/^/| /' conftest.$ac_ext >&5
14687 ( exit $ac_status )
14688 ac_cv_c_stack_direction=-1
14690 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14693 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14694 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14696 cat >>confdefs.h <<_ACEOF
14697 #define STACK_DIRECTION $ac_cv_c_stack_direction
14705 for ac_header in stdlib.h unistd.h
14707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14709 echo "$as_me:$LINENO: checking for $ac_header" >&5
14710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14712 echo $ECHO_N "(cached) $ECHO_C" >&6
14714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14715 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14717 # Is the header compilable?
14718 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14719 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14720 cat >conftest.$ac_ext <<_ACEOF
14723 cat confdefs.h >>conftest.$ac_ext
14724 cat >>conftest.$ac_ext <<_ACEOF
14725 /* end confdefs.h. */
14726 $ac_includes_default
14727 #include <$ac_header>
14729 rm -f conftest.$ac_objext
14730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14731 (eval $ac_compile) 2>conftest.er1
14733 grep -v '^ *+' conftest.er1 >conftest.err
14735 cat conftest.err >&5
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); } &&
14738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14740 (eval $ac_try) 2>&5
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); }; } &&
14744 { ac_try='test -s conftest.$ac_objext'
14745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14746 (eval $ac_try) 2>&5
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); }; }; then
14750 ac_header_compiler=yes
14752 echo "$as_me: failed program was:" >&5
14753 sed 's/^/| /' conftest.$ac_ext >&5
14755 ac_header_compiler=no
14757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14758 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14759 echo "${ECHO_T}$ac_header_compiler" >&6
14761 # Is the header present?
14762 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14763 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14764 cat >conftest.$ac_ext <<_ACEOF
14767 cat confdefs.h >>conftest.$ac_ext
14768 cat >>conftest.$ac_ext <<_ACEOF
14769 /* end confdefs.h. */
14770 #include <$ac_header>
14772 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14773 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14775 grep -v '^ *+' conftest.er1 >conftest.err
14777 cat conftest.err >&5
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); } >/dev/null; then
14780 if test -s conftest.err; then
14781 ac_cpp_err=$ac_c_preproc_warn_flag
14782 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14789 if test -z "$ac_cpp_err"; then
14790 ac_header_preproc=yes
14792 echo "$as_me: failed program was:" >&5
14793 sed 's/^/| /' conftest.$ac_ext >&5
14795 ac_header_preproc=no
14797 rm -f conftest.err conftest.$ac_ext
14798 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14799 echo "${ECHO_T}$ac_header_preproc" >&6
14801 # So? What about this header?
14802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14804 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14806 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14808 ac_header_preproc=yes
14811 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14813 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14814 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14815 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14817 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14818 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14821 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14825 ## ------------------------------------------ ##
14826 ## Report this to the AC_PACKAGE_NAME lists. ##
14827 ## ------------------------------------------ ##
14830 sed "s/^/$as_me: WARNING: /" >&2
14833 echo "$as_me:$LINENO: checking for $ac_header" >&5
14834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14836 echo $ECHO_N "(cached) $ECHO_C" >&6
14838 eval "$as_ac_Header=\$ac_header_preproc"
14840 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14841 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14844 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14845 cat >>confdefs.h <<_ACEOF
14846 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14854 for ac_func in getpagesize
14856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14857 echo "$as_me:$LINENO: checking for $ac_func" >&5
14858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14859 if eval "test \"\${$as_ac_var+set}\" = set"; then
14860 echo $ECHO_N "(cached) $ECHO_C" >&6
14862 cat >conftest.$ac_ext <<_ACEOF
14865 cat confdefs.h >>conftest.$ac_ext
14866 cat >>conftest.$ac_ext <<_ACEOF
14867 /* end confdefs.h. */
14868 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14870 #define $ac_func innocuous_$ac_func
14872 /* System header to define __stub macros and hopefully few prototypes,
14873 which can conflict with char $ac_func (); below.
14874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14875 <limits.h> exists even on freestanding compilers. */
14878 # include <limits.h>
14880 # include <assert.h>
14885 /* Override any gcc2 internal prototype to avoid an error. */
14890 /* We use char because int might match the return type of a gcc2
14891 builtin and then its argument prototype would still apply. */
14893 /* The GNU C library defines this for functions which it implements
14894 to always fail with ENOSYS. Some functions are actually named
14895 something starting with __ and the normal name is an alias. */
14896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14899 char (*f) () = $ac_func;
14908 return f != $ac_func;
14913 rm -f conftest.$ac_objext conftest$ac_exeext
14914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14915 (eval $ac_link) 2>conftest.er1
14917 grep -v '^ *+' conftest.er1 >conftest.err
14919 cat conftest.err >&5
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); } &&
14922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14924 (eval $ac_try) 2>&5
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); }; } &&
14928 { ac_try='test -s conftest$ac_exeext'
14929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14930 (eval $ac_try) 2>&5
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); }; }; then
14934 eval "$as_ac_var=yes"
14936 echo "$as_me: failed program was:" >&5
14937 sed 's/^/| /' conftest.$ac_ext >&5
14939 eval "$as_ac_var=no"
14941 rm -f conftest.err conftest.$ac_objext \
14942 conftest$ac_exeext conftest.$ac_ext
14944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14945 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14946 if test `eval echo '${'$as_ac_var'}'` = yes; then
14947 cat >>confdefs.h <<_ACEOF
14948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14954 echo "$as_me:$LINENO: checking for working mmap" >&5
14955 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14956 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14957 echo $ECHO_N "(cached) $ECHO_C" >&6
14959 if test "$cross_compiling" = yes; then
14960 ac_cv_func_mmap_fixed_mapped=no
14962 cat >conftest.$ac_ext <<_ACEOF
14965 cat confdefs.h >>conftest.$ac_ext
14966 cat >>conftest.$ac_ext <<_ACEOF
14967 /* end confdefs.h. */
14968 $ac_includes_default
14969 /* malloc might have been renamed as rpl_malloc. */
14972 /* Thanks to Mike Haertel and Jim Avera for this test.
14973 Here is a matrix of mmap possibilities:
14974 mmap private not fixed
14975 mmap private fixed at somewhere currently unmapped
14976 mmap private fixed at somewhere already mapped
14977 mmap shared not fixed
14978 mmap shared fixed at somewhere currently unmapped
14979 mmap shared fixed at somewhere already mapped
14980 For private mappings, we should verify that changes cannot be read()
14981 back from the file, nor mmap's back from the file at a different
14982 address. (There have been systems where private was not correctly
14983 implemented like the infamous i386 svr4.0, and systems where the
14984 VM page cache was not coherent with the file system buffer cache
14985 like early versions of FreeBSD and possibly contemporary NetBSD.)
14986 For shared mappings, we should conversely verify that changes get
14987 propagated back to all the places they're supposed to be.
14989 Grep wants private fixed already mapped.
14990 The main things grep needs to know about mmap are:
14991 * does it exist and is it safe to write into the mmap'd area
14992 * how to use it (BSD variants) */
14995 #include <sys/mman.h>
14997 #if !STDC_HEADERS && !HAVE_STDLIB_H
15001 /* This mess was copied from the GNU getpagesize.h. */
15002 #if !HAVE_GETPAGESIZE
15003 /* Assume that all systems that can run configure have sys/param.h. */
15004 # if !HAVE_SYS_PARAM_H
15005 # define HAVE_SYS_PARAM_H 1
15008 # ifdef _SC_PAGESIZE
15009 # define getpagesize() sysconf(_SC_PAGESIZE)
15010 # else /* no _SC_PAGESIZE */
15011 # if HAVE_SYS_PARAM_H
15012 # include <sys/param.h>
15013 # ifdef EXEC_PAGESIZE
15014 # define getpagesize() EXEC_PAGESIZE
15015 # else /* no EXEC_PAGESIZE */
15017 # define getpagesize() NBPG * CLSIZE
15020 # endif /* no CLSIZE */
15021 # else /* no NBPG */
15023 # define getpagesize() NBPC
15024 # else /* no NBPC */
15026 # define getpagesize() PAGESIZE
15027 # endif /* PAGESIZE */
15028 # endif /* no NBPC */
15029 # endif /* no NBPG */
15030 # endif /* no EXEC_PAGESIZE */
15031 # else /* no HAVE_SYS_PARAM_H */
15032 # define getpagesize() 8192 /* punt totally */
15033 # endif /* no HAVE_SYS_PARAM_H */
15034 # endif /* no _SC_PAGESIZE */
15036 #endif /* no HAVE_GETPAGESIZE */
15041 char *data, *data2, *data3;
15045 pagesize = getpagesize ();
15047 /* First, make a file with some known garbage in it. */
15048 data = (char *) malloc (pagesize);
15051 for (i = 0; i < pagesize; ++i)
15052 *(data + i) = rand ();
15054 fd = creat ("conftest.mmap", 0600);
15057 if (write (fd, data, pagesize) != pagesize)
15061 /* Next, try to mmap the file at a fixed address which already has
15062 something else allocated at it. If we can, also make sure that
15063 we see the same garbage. */
15064 fd = open ("conftest.mmap", O_RDWR);
15067 data2 = (char *) malloc (2 * pagesize);
15070 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
15071 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
15072 MAP_PRIVATE | MAP_FIXED, fd, 0L))
15074 for (i = 0; i < pagesize; ++i)
15075 if (*(data + i) != *(data2 + i))
15078 /* Finally, make sure that changes to the mapped area do not
15079 percolate back to the file as seen by read(). (This is a bug on
15080 some variants of i386 svr4.0.) */
15081 for (i = 0; i < pagesize; ++i)
15082 *(data2 + i) = *(data2 + i) + 1;
15083 data3 = (char *) malloc (pagesize);
15086 if (read (fd, data3, pagesize) != pagesize)
15088 for (i = 0; i < pagesize; ++i)
15089 if (*(data + i) != *(data3 + i))
15095 rm -f conftest$ac_exeext
15096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15097 (eval $ac_link) 2>&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15102 (eval $ac_try) 2>&5
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); }; }; then
15106 ac_cv_func_mmap_fixed_mapped=yes
15108 echo "$as_me: program exited with status $ac_status" >&5
15109 echo "$as_me: failed program was:" >&5
15110 sed 's/^/| /' conftest.$ac_ext >&5
15112 ( exit $ac_status )
15113 ac_cv_func_mmap_fixed_mapped=no
15115 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15118 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
15119 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
15120 if test $ac_cv_func_mmap_fixed_mapped = yes; then
15122 cat >>confdefs.h <<\_ACEOF
15123 #define HAVE_MMAP 1
15127 rm -f conftest.mmap
15130 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
15131 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
15132 if test "${ac_cv_gnu_library_2_1+set}" = set; then
15133 echo $ECHO_N "(cached) $ECHO_C" >&6
15135 cat >conftest.$ac_ext <<_ACEOF
15138 cat confdefs.h >>conftest.$ac_ext
15139 cat >>conftest.$ac_ext <<_ACEOF
15140 /* end confdefs.h. */
15142 #include <features.h>
15143 #ifdef __GNU_LIBRARY__
15144 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
15150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15151 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
15152 ac_cv_gnu_library_2_1=yes
15154 ac_cv_gnu_library_2_1=no
15161 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
15162 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
15164 GLIBC21="$ac_cv_gnu_library_2_1"
15178 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
15179 stdlib.h string.h unistd.h sys/param.h
15181 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15183 echo "$as_me:$LINENO: checking for $ac_header" >&5
15184 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15186 echo $ECHO_N "(cached) $ECHO_C" >&6
15188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15191 # Is the header compilable?
15192 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15193 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15194 cat >conftest.$ac_ext <<_ACEOF
15197 cat confdefs.h >>conftest.$ac_ext
15198 cat >>conftest.$ac_ext <<_ACEOF
15199 /* end confdefs.h. */
15200 $ac_includes_default
15201 #include <$ac_header>
15203 rm -f conftest.$ac_objext
15204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15205 (eval $ac_compile) 2>conftest.er1
15207 grep -v '^ *+' conftest.er1 >conftest.err
15209 cat conftest.err >&5
15210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211 (exit $ac_status); } &&
15212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15214 (eval $ac_try) 2>&5
15216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217 (exit $ac_status); }; } &&
15218 { ac_try='test -s conftest.$ac_objext'
15219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15220 (eval $ac_try) 2>&5
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); }; }; then
15224 ac_header_compiler=yes
15226 echo "$as_me: failed program was:" >&5
15227 sed 's/^/| /' conftest.$ac_ext >&5
15229 ac_header_compiler=no
15231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15232 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15233 echo "${ECHO_T}$ac_header_compiler" >&6
15235 # Is the header present?
15236 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15238 cat >conftest.$ac_ext <<_ACEOF
15241 cat confdefs.h >>conftest.$ac_ext
15242 cat >>conftest.$ac_ext <<_ACEOF
15243 /* end confdefs.h. */
15244 #include <$ac_header>
15246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15249 grep -v '^ *+' conftest.er1 >conftest.err
15251 cat conftest.err >&5
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); } >/dev/null; then
15254 if test -s conftest.err; then
15255 ac_cpp_err=$ac_c_preproc_warn_flag
15256 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15263 if test -z "$ac_cpp_err"; then
15264 ac_header_preproc=yes
15266 echo "$as_me: failed program was:" >&5
15267 sed 's/^/| /' conftest.$ac_ext >&5
15269 ac_header_preproc=no
15271 rm -f conftest.err conftest.$ac_ext
15272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15273 echo "${ECHO_T}$ac_header_preproc" >&6
15275 # So? What about this header?
15276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15278 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15281 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15282 ac_header_preproc=yes
15285 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15286 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15287 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15288 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15289 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15290 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15291 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15292 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15295 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15296 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15299 ## ------------------------------------------ ##
15300 ## Report this to the AC_PACKAGE_NAME lists. ##
15301 ## ------------------------------------------ ##
15304 sed "s/^/$as_me: WARNING: /" >&2
15307 echo "$as_me:$LINENO: checking for $ac_header" >&5
15308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15310 echo $ECHO_N "(cached) $ECHO_C" >&6
15312 eval "$as_ac_Header=\$ac_header_preproc"
15314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15319 cat >>confdefs.h <<_ACEOF
15320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15348 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
15349 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
15350 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
15352 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15353 echo "$as_me:$LINENO: checking for $ac_func" >&5
15354 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15355 if eval "test \"\${$as_ac_var+set}\" = set"; then
15356 echo $ECHO_N "(cached) $ECHO_C" >&6
15358 cat >conftest.$ac_ext <<_ACEOF
15361 cat confdefs.h >>conftest.$ac_ext
15362 cat >>conftest.$ac_ext <<_ACEOF
15363 /* end confdefs.h. */
15364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15366 #define $ac_func innocuous_$ac_func
15368 /* System header to define __stub macros and hopefully few prototypes,
15369 which can conflict with char $ac_func (); below.
15370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15371 <limits.h> exists even on freestanding compilers. */
15374 # include <limits.h>
15376 # include <assert.h>
15381 /* Override any gcc2 internal prototype to avoid an error. */
15386 /* We use char because int might match the return type of a gcc2
15387 builtin and then its argument prototype would still apply. */
15389 /* The GNU C library defines this for functions which it implements
15390 to always fail with ENOSYS. Some functions are actually named
15391 something starting with __ and the normal name is an alias. */
15392 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15395 char (*f) () = $ac_func;
15404 return f != $ac_func;
15409 rm -f conftest.$ac_objext conftest$ac_exeext
15410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15411 (eval $ac_link) 2>conftest.er1
15413 grep -v '^ *+' conftest.er1 >conftest.err
15415 cat conftest.err >&5
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); } &&
15418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15420 (eval $ac_try) 2>&5
15422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15423 (exit $ac_status); }; } &&
15424 { ac_try='test -s conftest$ac_exeext'
15425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15426 (eval $ac_try) 2>&5
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); }; }; then
15430 eval "$as_ac_var=yes"
15432 echo "$as_me: failed program was:" >&5
15433 sed 's/^/| /' conftest.$ac_ext >&5
15435 eval "$as_ac_var=no"
15437 rm -f conftest.err conftest.$ac_objext \
15438 conftest$ac_exeext conftest.$ac_ext
15440 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15441 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15442 if test `eval echo '${'$as_ac_var'}'` = yes; then
15443 cat >>confdefs.h <<_ACEOF
15444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15454 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
15455 if test "${with_libiconv_prefix+set}" = set; then
15456 withval="$with_libiconv_prefix"
15458 for dir in `echo "$withval" | tr : ' '`; do
15459 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
15460 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
15465 echo "$as_me:$LINENO: checking for iconv" >&5
15466 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
15467 if test "${am_cv_func_iconv+set}" = set; then
15468 echo $ECHO_N "(cached) $ECHO_C" >&6
15471 am_cv_func_iconv="no, consider installing GNU libiconv"
15473 cat >conftest.$ac_ext <<_ACEOF
15476 cat confdefs.h >>conftest.$ac_ext
15477 cat >>conftest.$ac_ext <<_ACEOF
15478 /* end confdefs.h. */
15479 #include <stdlib.h>
15484 iconv_t cd = iconv_open("","");
15485 iconv(cd,NULL,NULL,NULL,NULL);
15491 rm -f conftest.$ac_objext conftest$ac_exeext
15492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15493 (eval $ac_link) 2>conftest.er1
15495 grep -v '^ *+' conftest.er1 >conftest.err
15497 cat conftest.err >&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); } &&
15500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15502 (eval $ac_try) 2>&5
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); }; } &&
15506 { ac_try='test -s conftest$ac_exeext'
15507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15508 (eval $ac_try) 2>&5
15510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15511 (exit $ac_status); }; }; then
15512 am_cv_func_iconv=yes
15514 echo "$as_me: failed program was:" >&5
15515 sed 's/^/| /' conftest.$ac_ext >&5
15518 rm -f conftest.err conftest.$ac_objext \
15519 conftest$ac_exeext conftest.$ac_ext
15520 if test "$am_cv_func_iconv" != yes; then
15521 am_save_LIBS="$LIBS"
15522 LIBS="$LIBS -liconv"
15523 cat >conftest.$ac_ext <<_ACEOF
15526 cat confdefs.h >>conftest.$ac_ext
15527 cat >>conftest.$ac_ext <<_ACEOF
15528 /* end confdefs.h. */
15529 #include <stdlib.h>
15534 iconv_t cd = iconv_open("","");
15535 iconv(cd,NULL,NULL,NULL,NULL);
15541 rm -f conftest.$ac_objext conftest$ac_exeext
15542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15543 (eval $ac_link) 2>conftest.er1
15545 grep -v '^ *+' conftest.er1 >conftest.err
15547 cat conftest.err >&5
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); } &&
15550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15552 (eval $ac_try) 2>&5
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); }; } &&
15556 { ac_try='test -s conftest$ac_exeext'
15557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15558 (eval $ac_try) 2>&5
15560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); }; }; then
15562 am_cv_lib_iconv=yes
15563 am_cv_func_iconv=yes
15565 echo "$as_me: failed program was:" >&5
15566 sed 's/^/| /' conftest.$ac_ext >&5
15569 rm -f conftest.err conftest.$ac_objext \
15570 conftest$ac_exeext conftest.$ac_ext
15571 LIBS="$am_save_LIBS"
15575 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
15576 echo "${ECHO_T}$am_cv_func_iconv" >&6
15577 if test "$am_cv_func_iconv" = yes; then
15579 cat >>confdefs.h <<\_ACEOF
15580 #define HAVE_ICONV 1
15583 echo "$as_me:$LINENO: checking for iconv declaration" >&5
15584 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
15585 if test "${am_cv_proto_iconv+set}" = set; then
15586 echo $ECHO_N "(cached) $ECHO_C" >&6
15589 cat >conftest.$ac_ext <<_ACEOF
15592 cat confdefs.h >>conftest.$ac_ext
15593 cat >>conftest.$ac_ext <<_ACEOF
15594 /* end confdefs.h. */
15596 #include <stdlib.h>
15602 #if defined(__STDC__) || defined(__cplusplus)
15603 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15616 rm -f conftest.$ac_objext
15617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15618 (eval $ac_compile) 2>conftest.er1
15620 grep -v '^ *+' conftest.er1 >conftest.err
15622 cat conftest.err >&5
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); } &&
15625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15627 (eval $ac_try) 2>&5
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); }; } &&
15631 { ac_try='test -s conftest.$ac_objext'
15632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15633 (eval $ac_try) 2>&5
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); }; }; then
15637 am_cv_proto_iconv_arg1=""
15639 echo "$as_me: failed program was:" >&5
15640 sed 's/^/| /' conftest.$ac_ext >&5
15642 am_cv_proto_iconv_arg1="const"
15644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15645 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);"
15648 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
15649 echo "$as_me:$LINENO: result: ${ac_t:-
15650 }$am_cv_proto_iconv" >&5
15651 echo "${ECHO_T}${ac_t:-
15652 }$am_cv_proto_iconv" >&6
15654 cat >>confdefs.h <<_ACEOF
15655 #define ICONV_CONST $am_cv_proto_iconv_arg1
15660 if test "$am_cv_lib_iconv" = yes; then
15666 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
15667 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
15668 if test "${am_cv_langinfo_codeset+set}" = set; then
15669 echo $ECHO_N "(cached) $ECHO_C" >&6
15671 cat >conftest.$ac_ext <<_ACEOF
15674 cat confdefs.h >>conftest.$ac_ext
15675 cat >>conftest.$ac_ext <<_ACEOF
15676 /* end confdefs.h. */
15677 #include <langinfo.h>
15681 char* cs = nl_langinfo(CODESET);
15686 rm -f conftest.$ac_objext conftest$ac_exeext
15687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15688 (eval $ac_link) 2>conftest.er1
15690 grep -v '^ *+' conftest.er1 >conftest.err
15692 cat conftest.err >&5
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); } &&
15695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15697 (eval $ac_try) 2>&5
15699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700 (exit $ac_status); }; } &&
15701 { ac_try='test -s conftest$ac_exeext'
15702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15703 (eval $ac_try) 2>&5
15705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15706 (exit $ac_status); }; }; then
15707 am_cv_langinfo_codeset=yes
15709 echo "$as_me: failed program was:" >&5
15710 sed 's/^/| /' conftest.$ac_ext >&5
15712 am_cv_langinfo_codeset=no
15714 rm -f conftest.err conftest.$ac_objext \
15715 conftest$ac_exeext conftest.$ac_ext
15718 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
15719 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
15720 if test $am_cv_langinfo_codeset = yes; then
15722 cat >>confdefs.h <<\_ACEOF
15723 #define HAVE_LANGINFO_CODESET 1
15728 if test $ac_cv_header_locale_h = yes; then
15729 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
15730 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
15731 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
15732 echo $ECHO_N "(cached) $ECHO_C" >&6
15734 cat >conftest.$ac_ext <<_ACEOF
15737 cat confdefs.h >>conftest.$ac_ext
15738 cat >>conftest.$ac_ext <<_ACEOF
15739 /* end confdefs.h. */
15740 #include <locale.h>
15749 rm -f conftest.$ac_objext conftest$ac_exeext
15750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15751 (eval $ac_link) 2>conftest.er1
15753 grep -v '^ *+' conftest.er1 >conftest.err
15755 cat conftest.err >&5
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); } &&
15758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15760 (eval $ac_try) 2>&5
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); }; } &&
15764 { ac_try='test -s conftest$ac_exeext'
15765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15766 (eval $ac_try) 2>&5
15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15769 (exit $ac_status); }; }; then
15770 am_cv_val_LC_MESSAGES=yes
15772 echo "$as_me: failed program was:" >&5
15773 sed 's/^/| /' conftest.$ac_ext >&5
15775 am_cv_val_LC_MESSAGES=no
15777 rm -f conftest.err conftest.$ac_objext \
15778 conftest$ac_exeext conftest.$ac_ext
15780 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
15781 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
15782 if test $am_cv_val_LC_MESSAGES = yes; then
15784 cat >>confdefs.h <<\_ACEOF
15785 #define HAVE_LC_MESSAGES 1
15790 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
15791 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
15792 # Check whether --enable-nls or --disable-nls was given.
15793 if test "${enable_nls+set}" = set; then
15794 enableval="$enable_nls"
15799 echo "$as_me:$LINENO: result: $USE_NLS" >&5
15800 echo "${ECHO_T}$USE_NLS" >&6
15803 BUILD_INCLUDED_LIBINTL=no
15804 USE_INCLUDED_LIBINTL=no
15807 if test "$USE_NLS" = "yes"; then
15809 cat >>confdefs.h <<\_ACEOF
15810 #define ENABLE_NLS 1
15813 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
15814 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
15816 # Check whether --with-included-gettext or --without-included-gettext was given.
15817 if test "${with_included_gettext+set}" = set; then
15818 withval="$with_included_gettext"
15819 nls_cv_force_use_gnu_gettext=$withval
15821 nls_cv_force_use_gnu_gettext=no
15823 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
15824 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
15826 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
15827 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
15833 if test "${ac_cv_header_libintl_h+set}" = set; then
15834 echo "$as_me:$LINENO: checking for libintl.h" >&5
15835 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15836 if test "${ac_cv_header_libintl_h+set}" = set; then
15837 echo $ECHO_N "(cached) $ECHO_C" >&6
15839 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15840 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15842 # Is the header compilable?
15843 echo "$as_me:$LINENO: checking libintl.h usability" >&5
15844 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
15845 cat >conftest.$ac_ext <<_ACEOF
15848 cat confdefs.h >>conftest.$ac_ext
15849 cat >>conftest.$ac_ext <<_ACEOF
15850 /* end confdefs.h. */
15851 $ac_includes_default
15852 #include <libintl.h>
15854 rm -f conftest.$ac_objext
15855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15856 (eval $ac_compile) 2>conftest.er1
15858 grep -v '^ *+' conftest.er1 >conftest.err
15860 cat conftest.err >&5
15861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15862 (exit $ac_status); } &&
15863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15865 (eval $ac_try) 2>&5
15867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15868 (exit $ac_status); }; } &&
15869 { ac_try='test -s conftest.$ac_objext'
15870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15871 (eval $ac_try) 2>&5
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); }; }; then
15875 ac_header_compiler=yes
15877 echo "$as_me: failed program was:" >&5
15878 sed 's/^/| /' conftest.$ac_ext >&5
15880 ac_header_compiler=no
15882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15883 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15884 echo "${ECHO_T}$ac_header_compiler" >&6
15886 # Is the header present?
15887 echo "$as_me:$LINENO: checking libintl.h presence" >&5
15888 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
15889 cat >conftest.$ac_ext <<_ACEOF
15892 cat confdefs.h >>conftest.$ac_ext
15893 cat >>conftest.$ac_ext <<_ACEOF
15894 /* end confdefs.h. */
15895 #include <libintl.h>
15897 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15898 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15900 grep -v '^ *+' conftest.er1 >conftest.err
15902 cat conftest.err >&5
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); } >/dev/null; then
15905 if test -s conftest.err; then
15906 ac_cpp_err=$ac_c_preproc_warn_flag
15907 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15914 if test -z "$ac_cpp_err"; then
15915 ac_header_preproc=yes
15917 echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.$ac_ext >&5
15920 ac_header_preproc=no
15922 rm -f conftest.err conftest.$ac_ext
15923 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15924 echo "${ECHO_T}$ac_header_preproc" >&6
15926 # So? What about this header?
15927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15929 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15930 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15931 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
15932 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
15933 ac_header_preproc=yes
15936 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15937 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15938 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
15939 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
15940 { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
15941 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
15942 { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5
15943 echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;}
15944 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15945 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
15946 { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
15947 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
15950 ## ------------------------------------------ ##
15951 ## Report this to the AC_PACKAGE_NAME lists. ##
15952 ## ------------------------------------------ ##
15955 sed "s/^/$as_me: WARNING: /" >&2
15958 echo "$as_me:$LINENO: checking for libintl.h" >&5
15959 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15960 if test "${ac_cv_header_libintl_h+set}" = set; then
15961 echo $ECHO_N "(cached) $ECHO_C" >&6
15963 ac_cv_header_libintl_h=$ac_header_preproc
15965 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15966 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15969 if test $ac_cv_header_libintl_h = yes; then
15970 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
15971 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
15972 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
15973 echo $ECHO_N "(cached) $ECHO_C" >&6
15975 cat >conftest.$ac_ext <<_ACEOF
15978 cat confdefs.h >>conftest.$ac_ext
15979 cat >>conftest.$ac_ext <<_ACEOF
15980 /* end confdefs.h. */
15981 #include <libintl.h>
15982 extern int _nl_msg_cat_cntr;
15986 bindtextdomain ("", "");
15987 return (int) gettext ("") + _nl_msg_cat_cntr
15992 rm -f conftest.$ac_objext conftest$ac_exeext
15993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15994 (eval $ac_link) 2>conftest.er1
15996 grep -v '^ *+' conftest.er1 >conftest.err
15998 cat conftest.err >&5
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); } &&
16001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16003 (eval $ac_try) 2>&5
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); }; } &&
16007 { ac_try='test -s conftest$ac_exeext'
16008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16009 (eval $ac_try) 2>&5
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); }; }; then
16013 gt_cv_func_gnugettext1_libc=yes
16015 echo "$as_me: failed program was:" >&5
16016 sed 's/^/| /' conftest.$ac_ext >&5
16018 gt_cv_func_gnugettext1_libc=no
16020 rm -f conftest.err conftest.$ac_objext \
16021 conftest$ac_exeext conftest.$ac_ext
16023 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
16024 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
16026 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
16027 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
16028 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
16029 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
16030 echo $ECHO_N "(cached) $ECHO_C" >&6
16032 gt_save_LIBS="$LIBS"
16033 LIBS="$LIBS -lintl $LIBICONV"
16034 cat >conftest.$ac_ext <<_ACEOF
16037 cat confdefs.h >>conftest.$ac_ext
16038 cat >>conftest.$ac_ext <<_ACEOF
16039 /* end confdefs.h. */
16040 #include <libintl.h>
16041 extern int _nl_msg_cat_cntr;
16045 bindtextdomain ("", "");
16046 return (int) gettext ("") + _nl_msg_cat_cntr
16051 rm -f conftest.$ac_objext conftest$ac_exeext
16052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16053 (eval $ac_link) 2>conftest.er1
16055 grep -v '^ *+' conftest.er1 >conftest.err
16057 cat conftest.err >&5
16058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); } &&
16060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16062 (eval $ac_try) 2>&5
16064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065 (exit $ac_status); }; } &&
16066 { ac_try='test -s conftest$ac_exeext'
16067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16068 (eval $ac_try) 2>&5
16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); }; }; then
16072 gt_cv_func_gnugettext1_libintl=yes
16074 echo "$as_me: failed program was:" >&5
16075 sed 's/^/| /' conftest.$ac_ext >&5
16077 gt_cv_func_gnugettext1_libintl=no
16079 rm -f conftest.err conftest.$ac_objext \
16080 conftest$ac_exeext conftest.$ac_ext
16081 LIBS="$gt_save_LIBS"
16083 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
16084 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
16087 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
16088 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
16089 && test "$PACKAGE" != gettext; }; then
16091 cat >>confdefs.h <<\_ACEOF
16092 #define HAVE_GETTEXT 1
16096 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
16097 INTLLIBS="-lintl $LIBICONV"
16100 gt_save_LIBS="$LIBS"
16101 LIBS="$LIBS $INTLLIBS"
16103 for ac_func in dcgettext
16105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16106 echo "$as_me:$LINENO: checking for $ac_func" >&5
16107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16108 if eval "test \"\${$as_ac_var+set}\" = set"; then
16109 echo $ECHO_N "(cached) $ECHO_C" >&6
16111 cat >conftest.$ac_ext <<_ACEOF
16114 cat confdefs.h >>conftest.$ac_ext
16115 cat >>conftest.$ac_ext <<_ACEOF
16116 /* end confdefs.h. */
16117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16119 #define $ac_func innocuous_$ac_func
16121 /* System header to define __stub macros and hopefully few prototypes,
16122 which can conflict with char $ac_func (); below.
16123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16124 <limits.h> exists even on freestanding compilers. */
16127 # include <limits.h>
16129 # include <assert.h>
16134 /* Override any gcc2 internal prototype to avoid an error. */
16139 /* We use char because int might match the return type of a gcc2
16140 builtin and then its argument prototype would still apply. */
16142 /* The GNU C library defines this for functions which it implements
16143 to always fail with ENOSYS. Some functions are actually named
16144 something starting with __ and the normal name is an alias. */
16145 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16148 char (*f) () = $ac_func;
16157 return f != $ac_func;
16162 rm -f conftest.$ac_objext conftest$ac_exeext
16163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16164 (eval $ac_link) 2>conftest.er1
16166 grep -v '^ *+' conftest.er1 >conftest.err
16168 cat conftest.err >&5
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); } &&
16171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16173 (eval $ac_try) 2>&5
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); }; } &&
16177 { ac_try='test -s conftest$ac_exeext'
16178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16179 (eval $ac_try) 2>&5
16181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16182 (exit $ac_status); }; }; then
16183 eval "$as_ac_var=yes"
16185 echo "$as_me: failed program was:" >&5
16186 sed 's/^/| /' conftest.$ac_ext >&5
16188 eval "$as_ac_var=no"
16190 rm -f conftest.err conftest.$ac_objext \
16191 conftest$ac_exeext conftest.$ac_ext
16193 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16194 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16195 if test `eval echo '${'$as_ac_var'}'` = yes; then
16196 cat >>confdefs.h <<_ACEOF
16197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16203 LIBS="$gt_save_LIBS"
16205 # Extract the first word of "msgfmt", so it can be a program name with args.
16206 set dummy msgfmt; ac_word=$2
16207 echo "$as_me:$LINENO: checking for $ac_word" >&5
16208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16209 if test "${ac_cv_path_MSGFMT+set}" = set; then
16210 echo $ECHO_N "(cached) $ECHO_C" >&6
16214 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16217 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
16218 for ac_dir in $PATH; do
16219 test -z "$ac_dir" && ac_dir=.
16220 if test -f $ac_dir/$ac_word; then
16221 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
16222 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
16228 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16232 MSGFMT="$ac_cv_path_MSGFMT"
16233 if test "$MSGFMT" != ":"; then
16234 echo "$as_me:$LINENO: result: $MSGFMT" >&5
16235 echo "${ECHO_T}$MSGFMT" >&6
16237 echo "$as_me:$LINENO: result: no" >&5
16238 echo "${ECHO_T}no" >&6
16241 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16242 set dummy gmsgfmt; ac_word=$2
16243 echo "$as_me:$LINENO: checking for $ac_word" >&5
16244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16245 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16246 echo $ECHO_N "(cached) $ECHO_C" >&6
16250 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16254 for as_dir in $PATH
16257 test -z "$as_dir" && as_dir=.
16258 for ac_exec_ext in '' $ac_executable_extensions; do
16259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16260 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16267 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16271 GMSGFMT=$ac_cv_path_GMSGFMT
16273 if test -n "$GMSGFMT"; then
16274 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16275 echo "${ECHO_T}$GMSGFMT" >&6
16277 echo "$as_me:$LINENO: result: no" >&5
16278 echo "${ECHO_T}no" >&6
16282 # Extract the first word of "xgettext", so it can be a program name with args.
16283 set dummy xgettext; ac_word=$2
16284 echo "$as_me:$LINENO: checking for $ac_word" >&5
16285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16286 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16287 echo $ECHO_N "(cached) $ECHO_C" >&6
16289 case "$XGETTEXT" in
16291 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16294 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
16295 for ac_dir in $PATH; do
16296 test -z "$ac_dir" && ac_dir=.
16297 if test -f $ac_dir/$ac_word; then
16298 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
16299 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
16305 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16309 XGETTEXT="$ac_cv_path_XGETTEXT"
16310 if test "$XGETTEXT" != ":"; then
16311 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16312 echo "${ECHO_T}$XGETTEXT" >&6
16314 echo "$as_me:$LINENO: result: no" >&5
16315 echo "${ECHO_T}no" >&6
16326 if test "$CATOBJEXT" = "NONE"; then
16327 nls_cv_use_gnu_gettext=yes
16331 if test "$nls_cv_use_gnu_gettext" = "yes"; then
16332 INTLOBJS="\$(GETTOBJS)"
16333 # Extract the first word of "msgfmt", so it can be a program name with args.
16334 set dummy msgfmt; ac_word=$2
16335 echo "$as_me:$LINENO: checking for $ac_word" >&5
16336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16337 if test "${ac_cv_path_MSGFMT+set}" = set; then
16338 echo $ECHO_N "(cached) $ECHO_C" >&6
16342 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16345 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
16346 for ac_dir in $PATH; do
16347 test -z "$ac_dir" && ac_dir=.
16348 if test -f $ac_dir/$ac_word; then
16349 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
16350 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
16356 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16360 MSGFMT="$ac_cv_path_MSGFMT"
16361 if test "$MSGFMT" != ":"; then
16362 echo "$as_me:$LINENO: result: $MSGFMT" >&5
16363 echo "${ECHO_T}$MSGFMT" >&6
16365 echo "$as_me:$LINENO: result: no" >&5
16366 echo "${ECHO_T}no" >&6
16369 # Extract the first word of "gmsgfmt", so it can be a program name with args.
16370 set dummy gmsgfmt; ac_word=$2
16371 echo "$as_me:$LINENO: checking for $ac_word" >&5
16372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16373 if test "${ac_cv_path_GMSGFMT+set}" = set; then
16374 echo $ECHO_N "(cached) $ECHO_C" >&6
16378 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16382 for as_dir in $PATH
16385 test -z "$as_dir" && as_dir=.
16386 for ac_exec_ext in '' $ac_executable_extensions; do
16387 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16388 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16395 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16399 GMSGFMT=$ac_cv_path_GMSGFMT
16401 if test -n "$GMSGFMT"; then
16402 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
16403 echo "${ECHO_T}$GMSGFMT" >&6
16405 echo "$as_me:$LINENO: result: no" >&5
16406 echo "${ECHO_T}no" >&6
16409 # Extract the first word of "xgettext", so it can be a program name with args.
16410 set dummy xgettext; ac_word=$2
16411 echo "$as_me:$LINENO: checking for $ac_word" >&5
16412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16413 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16414 echo $ECHO_N "(cached) $ECHO_C" >&6
16416 case "$XGETTEXT" in
16418 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16421 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
16422 for ac_dir in $PATH; do
16423 test -z "$ac_dir" && ac_dir=.
16424 if test -f $ac_dir/$ac_word; then
16425 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
16426 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
16432 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16436 XGETTEXT="$ac_cv_path_XGETTEXT"
16437 if test "$XGETTEXT" != ":"; then
16438 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16439 echo "${ECHO_T}$XGETTEXT" >&6
16441 echo "$as_me:$LINENO: result: no" >&5
16442 echo "${ECHO_T}no" >&6
16446 BUILD_INCLUDED_LIBINTL=yes
16447 USE_INCLUDED_LIBINTL=yes
16449 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
16450 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
16453 if test "$GMSGFMT" != ":"; then
16454 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
16457 echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
16458 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
16463 if test "$XGETTEXT" != ":"; then
16464 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
16467 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16468 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
16475 ac_config_commands="$ac_config_commands default-1"
16479 if test "$PACKAGE" = gettext; then
16480 BUILD_INCLUDED_LIBINTL=yes
16483 for ac_prog in bison
16485 # Extract the first word of "$ac_prog", so it can be a program name with args.
16486 set dummy $ac_prog; ac_word=$2
16487 echo "$as_me:$LINENO: checking for $ac_word" >&5
16488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16489 if test "${ac_cv_prog_INTLBISON+set}" = set; then
16490 echo $ECHO_N "(cached) $ECHO_C" >&6
16492 if test -n "$INTLBISON"; then
16493 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
16495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16496 for as_dir in $PATH
16499 test -z "$as_dir" && as_dir=.
16500 for ac_exec_ext in '' $ac_executable_extensions; do
16501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16502 ac_cv_prog_INTLBISON="$ac_prog"
16503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16511 INTLBISON=$ac_cv_prog_INTLBISON
16512 if test -n "$INTLBISON"; then
16513 echo "$as_me:$LINENO: result: $INTLBISON" >&5
16514 echo "${ECHO_T}$INTLBISON" >&6
16516 echo "$as_me:$LINENO: result: no" >&5
16517 echo "${ECHO_T}no" >&6
16520 test -n "$INTLBISON" && break
16523 if test -z "$INTLBISON"; then
16526 echo "$as_me:$LINENO: checking version of bison" >&5
16527 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
16528 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
16529 case $ac_prog_version in
16530 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
16531 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
16532 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
16533 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
16535 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
16536 echo "${ECHO_T}$ac_prog_version" >&6
16538 if test $ac_verc_fail = yes; then
16542 for lang in $ALL_LINGUAS; do
16543 GMOFILES="$GMOFILES $lang.gmo"
16544 POFILES="$POFILES $lang.po"
16557 nls_cv_header_intl=
16558 nls_cv_header_libgt=
16570 if test "x$CATOBJEXT" != "x"; then
16571 if test "x$ALL_LINGUAS" = "x"; then
16574 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
16575 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
16577 for presentlang in $ALL_LINGUAS; do
16579 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
16580 # Use the presentlang catalog if desiredlang is
16581 # a. equal to presentlang, or
16582 # b. a variant of presentlang (because in this case,
16583 # presentlang can be used as a fallback for messages
16584 # which are not translated in the desiredlang catalog).
16585 case "$desiredlang" in
16586 "$presentlang"*) useit=yes;;
16589 if test $useit = yes; then
16590 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
16593 LINGUAS=$NEW_LINGUAS
16594 echo "$as_me:$LINENO: result: $LINGUAS" >&5
16595 echo "${ECHO_T}$LINGUAS" >&6
16598 if test -n "$LINGUAS"; then
16599 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
16604 if test -n "$ac_aux_dir"; then
16605 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
16607 if test -z "$MKINSTALLDIRS"; then
16608 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16612 INTL_LIBTOOL_SUFFIX_PREFIX=
16616 if test "$am_cv_func_iconv" != "yes"
16618 { echo "$as_me:$LINENO: WARNING: Configuring without iconv support. See INSTALL for details" >&5
16619 echo "$as_me: WARNING: Configuring without iconv support. See INSTALL for details" >&2;}
16623 for ac_header in iconv.h
16625 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16627 echo "$as_me:$LINENO: checking for $ac_header" >&5
16628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16630 echo $ECHO_N "(cached) $ECHO_C" >&6
16632 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16633 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16635 # Is the header compilable?
16636 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16637 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16638 cat >conftest.$ac_ext <<_ACEOF
16641 cat confdefs.h >>conftest.$ac_ext
16642 cat >>conftest.$ac_ext <<_ACEOF
16643 /* end confdefs.h. */
16644 $ac_includes_default
16645 #include <$ac_header>
16647 rm -f conftest.$ac_objext
16648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16649 (eval $ac_compile) 2>conftest.er1
16651 grep -v '^ *+' conftest.er1 >conftest.err
16653 cat conftest.err >&5
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); } &&
16656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658 (eval $ac_try) 2>&5
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); }; } &&
16662 { ac_try='test -s conftest.$ac_objext'
16663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16664 (eval $ac_try) 2>&5
16666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16667 (exit $ac_status); }; }; then
16668 ac_header_compiler=yes
16670 echo "$as_me: failed program was:" >&5
16671 sed 's/^/| /' conftest.$ac_ext >&5
16673 ac_header_compiler=no
16675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16676 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16677 echo "${ECHO_T}$ac_header_compiler" >&6
16679 # Is the header present?
16680 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16681 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16682 cat >conftest.$ac_ext <<_ACEOF
16685 cat confdefs.h >>conftest.$ac_ext
16686 cat >>conftest.$ac_ext <<_ACEOF
16687 /* end confdefs.h. */
16688 #include <$ac_header>
16690 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16691 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16693 grep -v '^ *+' conftest.er1 >conftest.err
16695 cat conftest.err >&5
16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697 (exit $ac_status); } >/dev/null; then
16698 if test -s conftest.err; then
16699 ac_cpp_err=$ac_c_preproc_warn_flag
16700 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16707 if test -z "$ac_cpp_err"; then
16708 ac_header_preproc=yes
16710 echo "$as_me: failed program was:" >&5
16711 sed 's/^/| /' conftest.$ac_ext >&5
16713 ac_header_preproc=no
16715 rm -f conftest.err conftest.$ac_ext
16716 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16717 echo "${ECHO_T}$ac_header_preproc" >&6
16719 # So? What about this header?
16720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16722 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16723 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16724 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16725 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16726 ac_header_preproc=yes
16729 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16730 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16731 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16732 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16733 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16734 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16735 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16736 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16738 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16739 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16740 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16743 ## ------------------------------------------ ##
16744 ## Report this to the AC_PACKAGE_NAME lists. ##
16745 ## ------------------------------------------ ##
16748 sed "s/^/$as_me: WARNING: /" >&2
16751 echo "$as_me:$LINENO: checking for $ac_header" >&5
16752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16754 echo $ECHO_N "(cached) $ECHO_C" >&6
16756 eval "$as_ac_Header=\$ac_header_preproc"
16758 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16759 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16763 cat >>confdefs.h <<_ACEOF
16764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16766 echo "$as_me:$LINENO: checking whether iconv.h defines iconv_t" >&5
16767 echo $ECHO_N "checking whether iconv.h defines iconv_t... $ECHO_C" >&6
16768 cat >conftest.$ac_ext <<_ACEOF
16771 cat confdefs.h >>conftest.$ac_ext
16772 cat >>conftest.$ac_ext <<_ACEOF
16773 /* end confdefs.h. */
16777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16778 $EGREP "typedef.*iconv_t" >/dev/null 2>&1; then
16779 echo "$as_me:$LINENO: result: yes" >&5
16780 echo "${ECHO_T}yes" >&6
16782 cat >>confdefs.h <<\_ACEOF
16783 #define HAVE_ICONV_T_DEF 1
16787 echo "$as_me:$LINENO: result: no" >&5
16788 echo "${ECHO_T}no" >&6
16797 echo "$as_me:$LINENO: checking whether this iconv is good enough" >&5
16798 echo $ECHO_N "checking whether this iconv is good enough... $ECHO_C" >&6
16799 if test "${mutt_cv_iconv_good+set}" = set; then
16800 echo $ECHO_N "(cached) $ECHO_C" >&6
16802 mutt_save_LIBS="$LIBS"
16803 LIBS="$LIBS $LIBICONV"
16804 if test "$cross_compiling" = yes; then
16805 mutt_cv_iconv_good=yes
16807 cat >conftest.$ac_ext <<_ACEOF
16810 cat confdefs.h >>conftest.$ac_ext
16811 cat >>conftest.$ac_ext <<_ACEOF
16812 /* end confdefs.h. */
16821 ob = buf, obl = sizeof(buf);
16822 return ((cd = iconv_open("UTF-8", "UTF-8")) != (iconv_t)(-1) &&
16823 (iconv(cd, 0, 0, &ob, &obl) ||
16824 !(ob == buf && obl == sizeof(buf)) ||
16829 rm -f conftest$ac_exeext
16830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16831 (eval $ac_link) 2>&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16836 (eval $ac_try) 2>&5
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); }; }; then
16840 mutt_cv_iconv_good=yes
16842 echo "$as_me: program exited with status $ac_status" >&5
16843 echo "$as_me: failed program was:" >&5
16844 sed 's/^/| /' conftest.$ac_ext >&5
16846 ( exit $ac_status )
16847 mutt_cv_iconv_good=no
16849 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16851 LIBS="$mutt_save_LIBS"
16853 echo "$as_me:$LINENO: result: $mutt_cv_iconv_good" >&5
16854 echo "${ECHO_T}$mutt_cv_iconv_good" >&6
16855 if test "$mutt_cv_iconv_good" = no; then
16856 { { echo "$as_me:$LINENO: error: Try using libiconv instead" >&5
16857 echo "$as_me: error: Try using libiconv instead" >&2;}
16858 { (exit 1); exit 1; }; }
16861 echo "$as_me:$LINENO: checking whether iconv is non-transcribing" >&5
16862 echo $ECHO_N "checking whether iconv is non-transcribing... $ECHO_C" >&6
16863 if test "${mutt_cv_iconv_nontrans+set}" = set; then
16864 echo $ECHO_N "(cached) $ECHO_C" >&6
16866 mutt_save_LIBS="$LIBS"
16867 LIBS="$LIBS $LIBICONV"
16868 if test "$cross_compiling" = yes; then
16869 mutt_cv_iconv_nontrans=no
16871 cat >conftest.$ac_ext <<_ACEOF
16874 cat confdefs.h >>conftest.$ac_ext
16875 cat >>conftest.$ac_ext <<_ACEOF
16876 /* end confdefs.h. */
16879 #include <string.h>
16886 const char *s = "\304\211";
16888 ib = s, ibl = 2, ob = t, obl = 3;
16889 return ((cd = iconv_open("UTF-8", "UTF-8")) == (iconv_t)(-1) ||
16890 iconv(cd, &ib, &ibl, &ob, &obl));
16894 rm -f conftest$ac_exeext
16895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16896 (eval $ac_link) 2>&5
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16901 (eval $ac_try) 2>&5
16903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904 (exit $ac_status); }; }; then
16905 mutt_cv_iconv_nontrans=no
16907 echo "$as_me: program exited with status $ac_status" >&5
16908 echo "$as_me: failed program was:" >&5
16909 sed 's/^/| /' conftest.$ac_ext >&5
16911 ( exit $ac_status )
16912 mutt_cv_iconv_nontrans=yes
16914 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16916 LIBS="$mutt_save_LIBS"
16918 echo "$as_me:$LINENO: result: $mutt_cv_iconv_nontrans" >&5
16919 echo "${ECHO_T}$mutt_cv_iconv_nontrans" >&6
16920 if test "$mutt_cv_iconv_nontrans" = yes; then
16921 cat >>confdefs.h <<\_ACEOF
16922 #define ICONV_NONTRANS 1
16926 cat >>confdefs.h <<\_ACEOF
16927 #define ICONV_NONTRANS 0
16932 CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/intl"
16934 if test "$BUILD_INCLUDED_LIBINTL" = "yes"; then
16936 cat >>confdefs.h <<\_ACEOF
16937 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
16942 for ac_func in bind_textdomain_codeset
16944 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16945 echo "$as_me:$LINENO: checking for $ac_func" >&5
16946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16947 if eval "test \"\${$as_ac_var+set}\" = set"; then
16948 echo $ECHO_N "(cached) $ECHO_C" >&6
16950 cat >conftest.$ac_ext <<_ACEOF
16953 cat confdefs.h >>conftest.$ac_ext
16954 cat >>conftest.$ac_ext <<_ACEOF
16955 /* end confdefs.h. */
16956 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16958 #define $ac_func innocuous_$ac_func
16960 /* System header to define __stub macros and hopefully few prototypes,
16961 which can conflict with char $ac_func (); below.
16962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16963 <limits.h> exists even on freestanding compilers. */
16966 # include <limits.h>
16968 # include <assert.h>
16973 /* Override any gcc2 internal prototype to avoid an error. */
16978 /* We use char because int might match the return type of a gcc2
16979 builtin and then its argument prototype would still apply. */
16981 /* The GNU C library defines this for functions which it implements
16982 to always fail with ENOSYS. Some functions are actually named
16983 something starting with __ and the normal name is an alias. */
16984 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16987 char (*f) () = $ac_func;
16996 return f != $ac_func;
17001 rm -f conftest.$ac_objext conftest$ac_exeext
17002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17003 (eval $ac_link) 2>conftest.er1
17005 grep -v '^ *+' conftest.er1 >conftest.err
17007 cat conftest.err >&5
17008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17009 (exit $ac_status); } &&
17010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17012 (eval $ac_try) 2>&5
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); }; } &&
17016 { ac_try='test -s conftest$ac_exeext'
17017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17018 (eval $ac_try) 2>&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); }; }; then
17022 eval "$as_ac_var=yes"
17024 echo "$as_me: failed program was:" >&5
17025 sed 's/^/| /' conftest.$ac_ext >&5
17027 eval "$as_ac_var=no"
17029 rm -f conftest.err conftest.$ac_objext \
17030 conftest$ac_exeext conftest.$ac_ext
17032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17033 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17034 if test `eval echo '${'$as_ac_var'}'` = yes; then
17035 cat >>confdefs.h <<_ACEOF
17036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17048 for ac_header in wchar.h
17050 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17052 echo "$as_me:$LINENO: checking for $ac_header" >&5
17053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17055 echo $ECHO_N "(cached) $ECHO_C" >&6
17057 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17058 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17060 # Is the header compilable?
17061 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17062 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17063 cat >conftest.$ac_ext <<_ACEOF
17066 cat confdefs.h >>conftest.$ac_ext
17067 cat >>conftest.$ac_ext <<_ACEOF
17068 /* end confdefs.h. */
17069 $ac_includes_default
17070 #include <$ac_header>
17072 rm -f conftest.$ac_objext
17073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17074 (eval $ac_compile) 2>conftest.er1
17076 grep -v '^ *+' conftest.er1 >conftest.err
17078 cat conftest.err >&5
17079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); } &&
17081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17083 (eval $ac_try) 2>&5
17085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086 (exit $ac_status); }; } &&
17087 { ac_try='test -s conftest.$ac_objext'
17088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17089 (eval $ac_try) 2>&5
17091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); }; }; then
17093 ac_header_compiler=yes
17095 echo "$as_me: failed program was:" >&5
17096 sed 's/^/| /' conftest.$ac_ext >&5
17098 ac_header_compiler=no
17100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17101 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17102 echo "${ECHO_T}$ac_header_compiler" >&6
17104 # Is the header present?
17105 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17106 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17107 cat >conftest.$ac_ext <<_ACEOF
17110 cat confdefs.h >>conftest.$ac_ext
17111 cat >>conftest.$ac_ext <<_ACEOF
17112 /* end confdefs.h. */
17113 #include <$ac_header>
17115 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17116 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17118 grep -v '^ *+' conftest.er1 >conftest.err
17120 cat conftest.err >&5
17121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17122 (exit $ac_status); } >/dev/null; then
17123 if test -s conftest.err; then
17124 ac_cpp_err=$ac_c_preproc_warn_flag
17125 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17132 if test -z "$ac_cpp_err"; then
17133 ac_header_preproc=yes
17135 echo "$as_me: failed program was:" >&5
17136 sed 's/^/| /' conftest.$ac_ext >&5
17138 ac_header_preproc=no
17140 rm -f conftest.err conftest.$ac_ext
17141 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17142 echo "${ECHO_T}$ac_header_preproc" >&6
17144 # So? What about this header?
17145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17147 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17150 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17151 ac_header_preproc=yes
17154 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17155 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17156 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17157 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17158 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17159 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17160 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17161 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17164 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17165 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17168 ## ------------------------------------------ ##
17169 ## Report this to the AC_PACKAGE_NAME lists. ##
17170 ## ------------------------------------------ ##
17173 sed "s/^/$as_me: WARNING: /" >&2
17176 echo "$as_me:$LINENO: checking for $ac_header" >&5
17177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17178 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17179 echo $ECHO_N "(cached) $ECHO_C" >&6
17181 eval "$as_ac_Header=\$ac_header_preproc"
17183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17188 cat >>confdefs.h <<_ACEOF
17189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17197 echo "$as_me:$LINENO: checking for wchar_t" >&5
17198 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
17199 if test "${mutt_cv_wchar_t+set}" = set; then
17200 echo $ECHO_N "(cached) $ECHO_C" >&6
17202 cat >conftest.$ac_ext <<_ACEOF
17205 cat confdefs.h >>conftest.$ac_ext
17206 cat >>conftest.$ac_ext <<_ACEOF
17207 /* end confdefs.h. */
17209 #include <stddef.h>
17210 #include <stdlib.h>
17211 #ifdef HAVE_WCHAR_H
17218 wchar_t wc; return 0;
17223 rm -f conftest.$ac_objext
17224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17225 (eval $ac_compile) 2>conftest.er1
17227 grep -v '^ *+' conftest.er1 >conftest.err
17229 cat conftest.err >&5
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); } &&
17232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17234 (eval $ac_try) 2>&5
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); }; } &&
17238 { ac_try='test -s conftest.$ac_objext'
17239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17240 (eval $ac_try) 2>&5
17242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); }; }; then
17244 mutt_cv_wchar_t=yes
17246 echo "$as_me: failed program was:" >&5
17247 sed 's/^/| /' conftest.$ac_ext >&5
17251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17253 echo "$as_me:$LINENO: result: $mutt_cv_wchar_t" >&5
17254 echo "${ECHO_T}$mutt_cv_wchar_t" >&6
17256 if test "$mutt_cv_wchar_t" = no; then
17258 cat >>confdefs.h <<\_ACEOF
17259 #define wchar_t int
17264 echo "$as_me:$LINENO: checking for wint_t" >&5
17265 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
17266 if test "${mutt_cv_wint_t+set}" = set; then
17267 echo $ECHO_N "(cached) $ECHO_C" >&6
17269 cat >conftest.$ac_ext <<_ACEOF
17272 cat confdefs.h >>conftest.$ac_ext
17273 cat >>conftest.$ac_ext <<_ACEOF
17274 /* end confdefs.h. */
17276 #include <stddef.h>
17277 #include <stdlib.h>
17278 #ifdef HAVE_WCHAR_H
17285 wint_t wc; return 0;
17290 rm -f conftest.$ac_objext
17291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17292 (eval $ac_compile) 2>conftest.er1
17294 grep -v '^ *+' conftest.er1 >conftest.err
17296 cat conftest.err >&5
17297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); } &&
17299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17301 (eval $ac_try) 2>&5
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); }; } &&
17305 { ac_try='test -s conftest.$ac_objext'
17306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17307 (eval $ac_try) 2>&5
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); }; }; then
17313 echo "$as_me: failed program was:" >&5
17314 sed 's/^/| /' conftest.$ac_ext >&5
17318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17320 echo "$as_me:$LINENO: result: $mutt_cv_wint_t" >&5
17321 echo "${ECHO_T}$mutt_cv_wint_t" >&6
17323 if test "$mutt_cv_wint_t" = no; then
17325 cat >>confdefs.h <<\_ACEOF
17332 for ac_header in wctype.h
17334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17336 echo "$as_me:$LINENO: checking for $ac_header" >&5
17337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17339 echo $ECHO_N "(cached) $ECHO_C" >&6
17341 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17342 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17344 # Is the header compilable?
17345 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17347 cat >conftest.$ac_ext <<_ACEOF
17350 cat confdefs.h >>conftest.$ac_ext
17351 cat >>conftest.$ac_ext <<_ACEOF
17352 /* end confdefs.h. */
17353 $ac_includes_default
17354 #include <$ac_header>
17356 rm -f conftest.$ac_objext
17357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17358 (eval $ac_compile) 2>conftest.er1
17360 grep -v '^ *+' conftest.er1 >conftest.err
17362 cat conftest.err >&5
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); } &&
17365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17367 (eval $ac_try) 2>&5
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); }; } &&
17371 { ac_try='test -s conftest.$ac_objext'
17372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17373 (eval $ac_try) 2>&5
17375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17376 (exit $ac_status); }; }; then
17377 ac_header_compiler=yes
17379 echo "$as_me: failed program was:" >&5
17380 sed 's/^/| /' conftest.$ac_ext >&5
17382 ac_header_compiler=no
17384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17385 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17386 echo "${ECHO_T}$ac_header_compiler" >&6
17388 # Is the header present?
17389 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17391 cat >conftest.$ac_ext <<_ACEOF
17394 cat confdefs.h >>conftest.$ac_ext
17395 cat >>conftest.$ac_ext <<_ACEOF
17396 /* end confdefs.h. */
17397 #include <$ac_header>
17399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17402 grep -v '^ *+' conftest.er1 >conftest.err
17404 cat conftest.err >&5
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); } >/dev/null; then
17407 if test -s conftest.err; then
17408 ac_cpp_err=$ac_c_preproc_warn_flag
17409 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17416 if test -z "$ac_cpp_err"; then
17417 ac_header_preproc=yes
17419 echo "$as_me: failed program was:" >&5
17420 sed 's/^/| /' conftest.$ac_ext >&5
17422 ac_header_preproc=no
17424 rm -f conftest.err conftest.$ac_ext
17425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17426 echo "${ECHO_T}$ac_header_preproc" >&6
17428 # So? What about this header?
17429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17435 ac_header_preproc=yes
17438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17441 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17442 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17444 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17445 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17448 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17452 ## ------------------------------------------ ##
17453 ## Report this to the AC_PACKAGE_NAME lists. ##
17454 ## ------------------------------------------ ##
17457 sed "s/^/$as_me: WARNING: /" >&2
17460 echo "$as_me:$LINENO: checking for $ac_header" >&5
17461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17463 echo $ECHO_N "(cached) $ECHO_C" >&6
17465 eval "$as_ac_Header=\$ac_header_preproc"
17467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17472 cat >>confdefs.h <<_ACEOF
17473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17484 for ac_func in iswalnum iswalpha iswcntrl iswdigit
17486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17487 echo "$as_me:$LINENO: checking for $ac_func" >&5
17488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17489 if eval "test \"\${$as_ac_var+set}\" = set"; then
17490 echo $ECHO_N "(cached) $ECHO_C" >&6
17492 cat >conftest.$ac_ext <<_ACEOF
17495 cat confdefs.h >>conftest.$ac_ext
17496 cat >>conftest.$ac_ext <<_ACEOF
17497 /* end confdefs.h. */
17498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17500 #define $ac_func innocuous_$ac_func
17502 /* System header to define __stub macros and hopefully few prototypes,
17503 which can conflict with char $ac_func (); below.
17504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17505 <limits.h> exists even on freestanding compilers. */
17508 # include <limits.h>
17510 # include <assert.h>
17515 /* Override any gcc2 internal prototype to avoid an error. */
17520 /* We use char because int might match the return type of a gcc2
17521 builtin and then its argument prototype would still apply. */
17523 /* The GNU C library defines this for functions which it implements
17524 to always fail with ENOSYS. Some functions are actually named
17525 something starting with __ and the normal name is an alias. */
17526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17529 char (*f) () = $ac_func;
17538 return f != $ac_func;
17543 rm -f conftest.$ac_objext conftest$ac_exeext
17544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17545 (eval $ac_link) 2>conftest.er1
17547 grep -v '^ *+' conftest.er1 >conftest.err
17549 cat conftest.err >&5
17550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17551 (exit $ac_status); } &&
17552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17554 (eval $ac_try) 2>&5
17556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17557 (exit $ac_status); }; } &&
17558 { ac_try='test -s conftest$ac_exeext'
17559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17560 (eval $ac_try) 2>&5
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); }; }; then
17564 eval "$as_ac_var=yes"
17566 echo "$as_me: failed program was:" >&5
17567 sed 's/^/| /' conftest.$ac_ext >&5
17569 eval "$as_ac_var=no"
17571 rm -f conftest.err conftest.$ac_objext \
17572 conftest$ac_exeext conftest.$ac_ext
17574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17575 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17576 if test `eval echo '${'$as_ac_var'}'` = yes; then
17577 cat >>confdefs.h <<_ACEOF
17578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17590 for ac_func in iswgraph iswlower iswprint iswpunct iswspace iswupper
17592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17593 echo "$as_me:$LINENO: checking for $ac_func" >&5
17594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17595 if eval "test \"\${$as_ac_var+set}\" = set"; then
17596 echo $ECHO_N "(cached) $ECHO_C" >&6
17598 cat >conftest.$ac_ext <<_ACEOF
17601 cat confdefs.h >>conftest.$ac_ext
17602 cat >>conftest.$ac_ext <<_ACEOF
17603 /* end confdefs.h. */
17604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17606 #define $ac_func innocuous_$ac_func
17608 /* System header to define __stub macros and hopefully few prototypes,
17609 which can conflict with char $ac_func (); below.
17610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17611 <limits.h> exists even on freestanding compilers. */
17614 # include <limits.h>
17616 # include <assert.h>
17621 /* Override any gcc2 internal prototype to avoid an error. */
17626 /* We use char because int might match the return type of a gcc2
17627 builtin and then its argument prototype would still apply. */
17629 /* The GNU C library defines this for functions which it implements
17630 to always fail with ENOSYS. Some functions are actually named
17631 something starting with __ and the normal name is an alias. */
17632 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17635 char (*f) () = $ac_func;
17644 return f != $ac_func;
17649 rm -f conftest.$ac_objext conftest$ac_exeext
17650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17651 (eval $ac_link) 2>conftest.er1
17653 grep -v '^ *+' conftest.er1 >conftest.err
17655 cat conftest.err >&5
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); } &&
17658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17660 (eval $ac_try) 2>&5
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); }; } &&
17664 { ac_try='test -s conftest$ac_exeext'
17665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17666 (eval $ac_try) 2>&5
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); }; }; then
17670 eval "$as_ac_var=yes"
17672 echo "$as_me: failed program was:" >&5
17673 sed 's/^/| /' conftest.$ac_ext >&5
17675 eval "$as_ac_var=no"
17677 rm -f conftest.err conftest.$ac_objext \
17678 conftest$ac_exeext conftest.$ac_ext
17680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17681 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17682 if test `eval echo '${'$as_ac_var'}'` = yes; then
17683 cat >>confdefs.h <<_ACEOF
17684 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17693 for ac_func in iswxdigit towupper towlower
17695 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17696 echo "$as_me:$LINENO: checking for $ac_func" >&5
17697 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17698 if eval "test \"\${$as_ac_var+set}\" = set"; then
17699 echo $ECHO_N "(cached) $ECHO_C" >&6
17701 cat >conftest.$ac_ext <<_ACEOF
17704 cat confdefs.h >>conftest.$ac_ext
17705 cat >>conftest.$ac_ext <<_ACEOF
17706 /* end confdefs.h. */
17707 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17709 #define $ac_func innocuous_$ac_func
17711 /* System header to define __stub macros and hopefully few prototypes,
17712 which can conflict with char $ac_func (); below.
17713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17714 <limits.h> exists even on freestanding compilers. */
17717 # include <limits.h>
17719 # include <assert.h>
17724 /* Override any gcc2 internal prototype to avoid an error. */
17729 /* We use char because int might match the return type of a gcc2
17730 builtin and then its argument prototype would still apply. */
17732 /* The GNU C library defines this for functions which it implements
17733 to always fail with ENOSYS. Some functions are actually named
17734 something starting with __ and the normal name is an alias. */
17735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17738 char (*f) () = $ac_func;
17747 return f != $ac_func;
17752 rm -f conftest.$ac_objext conftest$ac_exeext
17753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17754 (eval $ac_link) 2>conftest.er1
17756 grep -v '^ *+' conftest.er1 >conftest.err
17758 cat conftest.err >&5
17759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17760 (exit $ac_status); } &&
17761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17763 (eval $ac_try) 2>&5
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); }; } &&
17767 { ac_try='test -s conftest$ac_exeext'
17768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17769 (eval $ac_try) 2>&5
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); }; }; then
17773 eval "$as_ac_var=yes"
17775 echo "$as_me: failed program was:" >&5
17776 sed 's/^/| /' conftest.$ac_ext >&5
17778 eval "$as_ac_var=no"
17780 rm -f conftest.err conftest.$ac_objext \
17781 conftest$ac_exeext conftest.$ac_ext
17783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17784 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17785 if test `eval echo '${'$as_ac_var'}'` = yes; then
17786 cat >>confdefs.h <<_ACEOF
17787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17794 echo "$as_me:$LINENO: checking for mbstate_t" >&5
17795 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
17796 if test "${mutt_cv_mbstate_t+set}" = set; then
17797 echo $ECHO_N "(cached) $ECHO_C" >&6
17799 cat >conftest.$ac_ext <<_ACEOF
17802 cat confdefs.h >>conftest.$ac_ext
17803 cat >>conftest.$ac_ext <<_ACEOF
17804 /* end confdefs.h. */
17806 #include <stddef.h>
17807 #include <stdlib.h>
17808 #ifdef HAVE_WCHAR_H
17815 mbstate_t s; return 0;
17820 rm -f conftest.$ac_objext
17821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17822 (eval $ac_compile) 2>conftest.er1
17824 grep -v '^ *+' conftest.er1 >conftest.err
17826 cat conftest.err >&5
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); } &&
17829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17831 (eval $ac_try) 2>&5
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); }; } &&
17835 { ac_try='test -s conftest.$ac_objext'
17836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17837 (eval $ac_try) 2>&5
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); }; }; then
17841 mutt_cv_mbstate_t=yes
17843 echo "$as_me: failed program was:" >&5
17844 sed 's/^/| /' conftest.$ac_ext >&5
17846 mutt_cv_mbstate_t=no
17848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17850 echo "$as_me:$LINENO: result: $mutt_cv_mbstate_t" >&5
17851 echo "${ECHO_T}$mutt_cv_mbstate_t" >&6
17853 if test "$mutt_cv_mbstate_t" = no; then
17855 cat >>confdefs.h <<\_ACEOF
17856 #define mbstate_t int
17863 # Check whether --with-wc-funcs or --without-wc-funcs was given.
17864 if test "${with_wc_funcs+set}" = set; then
17865 withval="$with_wc_funcs"
17869 if test "$wc_funcs" != yes -a "$wc_funcs" != no; then
17870 echo "$as_me:$LINENO: checking for wchar_t functions" >&5
17871 echo $ECHO_N "checking for wchar_t functions... $ECHO_C" >&6
17872 if test "${mutt_cv_wc_funcs+set}" = set; then
17873 echo $ECHO_N "(cached) $ECHO_C" >&6
17875 mutt_cv_wc_funcs=no
17876 cat >conftest.$ac_ext <<_ACEOF
17879 cat confdefs.h >>conftest.$ac_ext
17880 cat >>conftest.$ac_ext <<_ACEOF
17881 /* end confdefs.h. */
17883 #define _XOPEN_SOURCE 1
17884 #include <stddef.h>
17885 #include <stdlib.h>
17886 #ifdef HAVE_WCTYPE_H
17887 #include <wctype.h>
17889 #ifdef HAVE_WCHAR_H
17895 mbrtowc(0, 0, 0, 0); wctomb(0, 0); wcwidth(0);
17896 iswprint(0); iswspace(0); towlower(0); towupper(0); iswalnum(0)
17901 rm -f conftest.$ac_objext conftest$ac_exeext
17902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17903 (eval $ac_link) 2>conftest.er1
17905 grep -v '^ *+' conftest.er1 >conftest.err
17907 cat conftest.err >&5
17908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909 (exit $ac_status); } &&
17910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17912 (eval $ac_try) 2>&5
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); }; } &&
17916 { ac_try='test -s conftest$ac_exeext'
17917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17918 (eval $ac_try) 2>&5
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); }; }; then
17922 mutt_cv_wc_funcs=yes
17924 echo "$as_me: failed program was:" >&5
17925 sed 's/^/| /' conftest.$ac_ext >&5
17928 rm -f conftest.err conftest.$ac_objext \
17929 conftest$ac_exeext conftest.$ac_ext
17931 echo "$as_me:$LINENO: result: $mutt_cv_wc_funcs" >&5
17932 echo "${ECHO_T}$mutt_cv_wc_funcs" >&6
17933 wc_funcs=$mutt_cv_wc_funcs
17936 if test $wc_funcs = yes; then
17938 cat >>confdefs.h <<\_ACEOF
17939 #define HAVE_WC_FUNCS 1
17944 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17945 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17946 if test "${mutt_cv_langinfo_codeset+set}" = set; then
17947 echo $ECHO_N "(cached) $ECHO_C" >&6
17949 cat >conftest.$ac_ext <<_ACEOF
17952 cat confdefs.h >>conftest.$ac_ext
17953 cat >>conftest.$ac_ext <<_ACEOF
17954 /* end confdefs.h. */
17955 #include <langinfo.h>
17959 char* cs = nl_langinfo(CODESET);
17964 rm -f conftest.$ac_objext conftest$ac_exeext
17965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17966 (eval $ac_link) 2>conftest.er1
17968 grep -v '^ *+' conftest.er1 >conftest.err
17970 cat conftest.err >&5
17971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17972 (exit $ac_status); } &&
17973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17975 (eval $ac_try) 2>&5
17977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17978 (exit $ac_status); }; } &&
17979 { ac_try='test -s conftest$ac_exeext'
17980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17981 (eval $ac_try) 2>&5
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); }; }; then
17985 mutt_cv_langinfo_codeset=yes
17987 echo "$as_me: failed program was:" >&5
17988 sed 's/^/| /' conftest.$ac_ext >&5
17990 mutt_cv_langinfo_codeset=no
17992 rm -f conftest.err conftest.$ac_objext \
17993 conftest$ac_exeext conftest.$ac_ext
17995 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_codeset" >&5
17996 echo "${ECHO_T}$mutt_cv_langinfo_codeset" >&6
17997 if test $mutt_cv_langinfo_codeset = yes; then
17999 cat >>confdefs.h <<\_ACEOF
18000 #define HAVE_LANGINFO_CODESET 1
18005 echo "$as_me:$LINENO: checking for nl_langinfo and YESEXPR" >&5
18006 echo $ECHO_N "checking for nl_langinfo and YESEXPR... $ECHO_C" >&6
18007 if test "${mutt_cv_langinfo_yesexpr+set}" = set; then
18008 echo $ECHO_N "(cached) $ECHO_C" >&6
18010 cat >conftest.$ac_ext <<_ACEOF
18013 cat confdefs.h >>conftest.$ac_ext
18014 cat >>conftest.$ac_ext <<_ACEOF
18015 /* end confdefs.h. */
18016 #include <langinfo.h>
18020 char* cs = nl_langinfo(YESEXPR);
18025 rm -f conftest.$ac_objext conftest$ac_exeext
18026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18027 (eval $ac_link) 2>conftest.er1
18029 grep -v '^ *+' conftest.er1 >conftest.err
18031 cat conftest.err >&5
18032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033 (exit $ac_status); } &&
18034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18036 (eval $ac_try) 2>&5
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); }; } &&
18040 { ac_try='test -s conftest$ac_exeext'
18041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18042 (eval $ac_try) 2>&5
18044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18045 (exit $ac_status); }; }; then
18046 mutt_cv_langinfo_yesexpr=yes
18048 echo "$as_me: failed program was:" >&5
18049 sed 's/^/| /' conftest.$ac_ext >&5
18051 mutt_cv_langinfo_yesexpr=no
18053 rm -f conftest.err conftest.$ac_objext \
18054 conftest$ac_exeext conftest.$ac_ext
18056 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_yesexpr" >&5
18057 echo "${ECHO_T}$mutt_cv_langinfo_yesexpr" >&6
18058 if test $mutt_cv_langinfo_yesexpr = yes; then
18060 cat >>confdefs.h <<\_ACEOF
18061 #define HAVE_LANGINFO_YESEXPR 1
18068 # Check whether --with-libesmtp or --without-libesmtp was given.
18069 if test "${with_libesmtp+set}" = set; then
18070 withval="$with_libesmtp"
18071 if test "$with_libesmtp" != "no"
18073 mutt_libesmtp_check_path="$PATH"
18075 if test "$with_libesmtp" != "yes"
18077 mutt_libesmtp_check_path="$tmp_path:$withval/bin"
18080 # Extract the first word of "libesmtp-config", so it can be a program name with args.
18081 set dummy libesmtp-config; ac_word=$2
18082 echo "$as_me:$LINENO: checking for $ac_word" >&5
18083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18084 if test "${ac_cv_path_mutt_libesmtp_config_path+set}" = set; then
18085 echo $ECHO_N "(cached) $ECHO_C" >&6
18087 case $mutt_libesmtp_config_path in
18089 ac_cv_path_mutt_libesmtp_config_path="$mutt_libesmtp_config_path" # Let the user override the test with a path.
18092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18093 for as_dir in $mutt_libesmtp_check_path
18096 test -z "$as_dir" && as_dir=.
18097 for ac_exec_ext in '' $ac_executable_extensions; do
18098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18099 ac_cv_path_mutt_libesmtp_config_path="$as_dir/$ac_word$ac_exec_ext"
18100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18106 test -z "$ac_cv_path_mutt_libesmtp_config_path" && ac_cv_path_mutt_libesmtp_config_path="no"
18110 mutt_libesmtp_config_path=$ac_cv_path_mutt_libesmtp_config_path
18112 if test -n "$mutt_libesmtp_config_path"; then
18113 echo "$as_me:$LINENO: result: $mutt_libesmtp_config_path" >&5
18114 echo "${ECHO_T}$mutt_libesmtp_config_path" >&6
18116 echo "$as_me:$LINENO: result: no" >&5
18117 echo "${ECHO_T}no" >&6
18121 if test "$mutt_libesmtp_config_path" = "no"
18123 { { echo "$as_me:$LINENO: error: libesmtp-config binary not found." >&5
18124 echo "$as_me: error: libesmtp-config binary not found." >&2;}
18125 { (exit 1); exit 1; }; }
18128 mutt_libesmtp_cflags=`$mutt_libesmtp_config_path --cflags`
18129 mutt_libesmtp_libs=`$mutt_libesmtp_config_path --libs`
18131 temp_CFLAGS="$CFLAGS"
18132 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
18133 if test "${ac_cv_header_libesmtp_h+set}" = set; then
18134 echo "$as_me:$LINENO: checking for libesmtp.h" >&5
18135 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
18136 if test "${ac_cv_header_libesmtp_h+set}" = set; then
18137 echo $ECHO_N "(cached) $ECHO_C" >&6
18139 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
18140 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
18142 # Is the header compilable?
18143 echo "$as_me:$LINENO: checking libesmtp.h usability" >&5
18144 echo $ECHO_N "checking libesmtp.h usability... $ECHO_C" >&6
18145 cat >conftest.$ac_ext <<_ACEOF
18148 cat confdefs.h >>conftest.$ac_ext
18149 cat >>conftest.$ac_ext <<_ACEOF
18150 /* end confdefs.h. */
18151 $ac_includes_default
18152 #include <libesmtp.h>
18154 rm -f conftest.$ac_objext
18155 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18156 (eval $ac_compile) 2>conftest.er1
18158 grep -v '^ *+' conftest.er1 >conftest.err
18160 cat conftest.err >&5
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); } &&
18163 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18165 (eval $ac_try) 2>&5
18167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168 (exit $ac_status); }; } &&
18169 { ac_try='test -s conftest.$ac_objext'
18170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18171 (eval $ac_try) 2>&5
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); }; }; then
18175 ac_header_compiler=yes
18177 echo "$as_me: failed program was:" >&5
18178 sed 's/^/| /' conftest.$ac_ext >&5
18180 ac_header_compiler=no
18182 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18183 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18184 echo "${ECHO_T}$ac_header_compiler" >&6
18186 # Is the header present?
18187 echo "$as_me:$LINENO: checking libesmtp.h presence" >&5
18188 echo $ECHO_N "checking libesmtp.h presence... $ECHO_C" >&6
18189 cat >conftest.$ac_ext <<_ACEOF
18192 cat confdefs.h >>conftest.$ac_ext
18193 cat >>conftest.$ac_ext <<_ACEOF
18194 /* end confdefs.h. */
18195 #include <libesmtp.h>
18197 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18198 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18200 grep -v '^ *+' conftest.er1 >conftest.err
18202 cat conftest.err >&5
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); } >/dev/null; then
18205 if test -s conftest.err; then
18206 ac_cpp_err=$ac_c_preproc_warn_flag
18207 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18214 if test -z "$ac_cpp_err"; then
18215 ac_header_preproc=yes
18217 echo "$as_me: failed program was:" >&5
18218 sed 's/^/| /' conftest.$ac_ext >&5
18220 ac_header_preproc=no
18222 rm -f conftest.err conftest.$ac_ext
18223 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18224 echo "${ECHO_T}$ac_header_preproc" >&6
18226 # So? What about this header?
18227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18229 { echo "$as_me:$LINENO: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&5
18230 echo "$as_me: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18231 { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the compiler's result" >&5
18232 echo "$as_me: WARNING: libesmtp.h: proceeding with the compiler's result" >&2;}
18233 ac_header_preproc=yes
18236 { echo "$as_me:$LINENO: WARNING: libesmtp.h: present but cannot be compiled" >&5
18237 echo "$as_me: WARNING: libesmtp.h: present but cannot be compiled" >&2;}
18238 { echo "$as_me:$LINENO: WARNING: libesmtp.h: check for missing prerequisite headers?" >&5
18239 echo "$as_me: WARNING: libesmtp.h: check for missing prerequisite headers?" >&2;}
18240 { echo "$as_me:$LINENO: WARNING: libesmtp.h: see the Autoconf documentation" >&5
18241 echo "$as_me: WARNING: libesmtp.h: see the Autoconf documentation" >&2;}
18242 { echo "$as_me:$LINENO: WARNING: libesmtp.h: section \"Present But Cannot Be Compiled\"" >&5
18243 echo "$as_me: WARNING: libesmtp.h: section \"Present But Cannot Be Compiled\"" >&2;}
18244 { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&5
18245 echo "$as_me: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&2;}
18246 { echo "$as_me:$LINENO: WARNING: libesmtp.h: in the future, the compiler will take precedence" >&5
18247 echo "$as_me: WARNING: libesmtp.h: in the future, the compiler will take precedence" >&2;}
18250 ## ------------------------------------------ ##
18251 ## Report this to the AC_PACKAGE_NAME lists. ##
18252 ## ------------------------------------------ ##
18255 sed "s/^/$as_me: WARNING: /" >&2
18258 echo "$as_me:$LINENO: checking for libesmtp.h" >&5
18259 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
18260 if test "${ac_cv_header_libesmtp_h+set}" = set; then
18261 echo $ECHO_N "(cached) $ECHO_C" >&6
18263 ac_cv_header_libesmtp_h=$ac_header_preproc
18265 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
18266 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
18269 if test $ac_cv_header_libesmtp_h = yes; then
18272 { { echo "$as_me:$LINENO: error: Could not find libesmtp.h" >&5
18273 echo "$as_me: error: Could not find libesmtp.h" >&2;}
18274 { (exit 1); exit 1; }; }
18278 CFLAGS="$temp_CFLAGS"
18280 temp_CFLAGS="$CFLAGS"
18282 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
18283 LIBS="$LIBS $mutt_libesmtp_libs"
18285 echo "$as_me:$LINENO: checking for smtp_create_session in -lesmtp" >&5
18286 echo $ECHO_N "checking for smtp_create_session in -lesmtp... $ECHO_C" >&6
18287 if test "${ac_cv_lib_esmtp_smtp_create_session+set}" = set; then
18288 echo $ECHO_N "(cached) $ECHO_C" >&6
18290 ac_check_lib_save_LIBS=$LIBS
18291 LIBS="-lesmtp $LIBS"
18292 cat >conftest.$ac_ext <<_ACEOF
18295 cat confdefs.h >>conftest.$ac_ext
18296 cat >>conftest.$ac_ext <<_ACEOF
18297 /* end confdefs.h. */
18299 /* Override any gcc2 internal prototype to avoid an error. */
18303 /* We use char because int might match the return type of a gcc2
18304 builtin and then its argument prototype would still apply. */
18305 char smtp_create_session ();
18309 smtp_create_session ();
18314 rm -f conftest.$ac_objext conftest$ac_exeext
18315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18316 (eval $ac_link) 2>conftest.er1
18318 grep -v '^ *+' conftest.er1 >conftest.err
18320 cat conftest.err >&5
18321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18322 (exit $ac_status); } &&
18323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18325 (eval $ac_try) 2>&5
18327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328 (exit $ac_status); }; } &&
18329 { ac_try='test -s conftest$ac_exeext'
18330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18331 (eval $ac_try) 2>&5
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); }; }; then
18335 ac_cv_lib_esmtp_smtp_create_session=yes
18337 echo "$as_me: failed program was:" >&5
18338 sed 's/^/| /' conftest.$ac_ext >&5
18340 ac_cv_lib_esmtp_smtp_create_session=no
18342 rm -f conftest.err conftest.$ac_objext \
18343 conftest$ac_exeext conftest.$ac_ext
18344 LIBS=$ac_check_lib_save_LIBS
18346 echo "$as_me:$LINENO: result: $ac_cv_lib_esmtp_smtp_create_session" >&5
18347 echo "${ECHO_T}$ac_cv_lib_esmtp_smtp_create_session" >&6
18348 if test $ac_cv_lib_esmtp_smtp_create_session = yes; then
18349 cat >>confdefs.h <<_ACEOF
18350 #define HAVE_LIBESMTP 1
18353 LIBS="-lesmtp $LIBS"
18356 { { echo "$as_me:$LINENO: error: Could not find libesmtp" >&5
18357 echo "$as_me: error: Could not find libesmtp" >&2;}
18358 { (exit 1); exit 1; }; }
18361 CFLAGS="$temp_CFLAGS"
18370 if test x$use_libesmtp = xyes; then
18371 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
18372 MUTTLIBS="$MUTTLIBS $mutt_libesmtp_libs"
18373 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_libesmtp.o"
18376 cat >>confdefs.h <<\_ACEOF
18377 #define USE_LIBESMTP 1
18382 ac_config_files="$ac_config_files Makefile intl/Makefile m4/Makefile po/Makefile.in doc/Makefile contrib/Makefile muttbug.sh imap/Makefile Muttngrc.head doc/instdoc.sh"
18383 cat >confcache <<\_ACEOF
18384 # This file is a shell script that caches the results of configure
18385 # tests run on this system so they can be shared between configure
18386 # scripts and configure runs, see configure's option --config-cache.
18387 # It is not useful on other systems. If it contains results you don't
18388 # want to keep, you may remove or edit it.
18390 # config.status only pays attention to the cache file if you give it
18391 # the --recheck option to rerun configure.
18393 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18394 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18395 # following values.
18399 # The following way of writing the cache mishandles newlines in values,
18400 # but we know of no workaround that is simple, portable, and efficient.
18401 # So, don't put newlines in cache variables' values.
18402 # Ultrix sh set writes to stderr and can't be redirected directly,
18403 # and sets the high bit in the cache file unless we assign to the vars.
18406 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18408 # `set' does not quote correctly, so add quotes (double-quote
18409 # substitution turns \\\\ into \\, and sed turns \\ into \).
18412 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18415 # `set' quotes correctly as required by POSIX, so do not add quotes.
18417 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18424 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18426 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18428 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18429 if test -w $cache_file; then
18430 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18431 cat confcache >$cache_file
18433 echo "not updating unwritable cache $cache_file"
18438 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18439 # Let make expand exec_prefix.
18440 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18442 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18443 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18444 # trailing colons and then remove the whole line if VPATH becomes empty
18445 # (actually we leave an empty line to preserve line numbers).
18446 if test "x$srcdir" = x.; then
18447 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18448 s/:*\$(srcdir):*/:/;
18449 s/:*\${srcdir}:*/:/;
18451 s/^\([^=]*=[ ]*\):*/\1/;
18457 DEFS=-DHAVE_CONFIG_H
18461 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18462 # 1. Remove the extension, and $U if already installed.
18463 ac_i=`echo "$ac_i" |
18464 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18466 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18467 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18469 LIBOBJS=$ac_libobjs
18471 LTLIBOBJS=$ac_ltlibobjs
18474 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18475 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18476 Usually this means the macro was only invoked conditionally." >&5
18477 echo "$as_me: error: conditional \"AMDEP\" was never defined.
18478 Usually this means the macro was only invoked conditionally." >&2;}
18479 { (exit 1); exit 1; }; }
18481 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18482 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18483 Usually this means the macro was only invoked conditionally." >&5
18484 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18485 Usually this means the macro was only invoked conditionally." >&2;}
18486 { (exit 1); exit 1; }; }
18488 if test -z "${BUILD_IMAP_TRUE}" && test -z "${BUILD_IMAP_FALSE}"; then
18489 { { echo "$as_me:$LINENO: error: conditional \"BUILD_IMAP\" was never defined.
18490 Usually this means the macro was only invoked conditionally." >&5
18491 echo "$as_me: error: conditional \"BUILD_IMAP\" was never defined.
18492 Usually this means the macro was only invoked conditionally." >&2;}
18493 { (exit 1); exit 1; }; }
18495 if test -z "${USE_GSS_TRUE}" && test -z "${USE_GSS_FALSE}"; then
18496 { { echo "$as_me:$LINENO: error: conditional \"USE_GSS\" was never defined.
18497 Usually this means the macro was only invoked conditionally." >&5
18498 echo "$as_me: error: conditional \"USE_GSS\" was never defined.
18499 Usually this means the macro was only invoked conditionally." >&2;}
18500 { (exit 1); exit 1; }; }
18502 if test -z "${USE_SSL_TRUE}" && test -z "${USE_SSL_FALSE}"; then
18503 { { echo "$as_me:$LINENO: error: conditional \"USE_SSL\" was never defined.
18504 Usually this means the macro was only invoked conditionally." >&5
18505 echo "$as_me: error: conditional \"USE_SSL\" was never defined.
18506 Usually this means the macro was only invoked conditionally." >&2;}
18507 { (exit 1); exit 1; }; }
18509 if test -z "${USE_GNUTLS_TRUE}" && test -z "${USE_GNUTLS_FALSE}"; then
18510 { { echo "$as_me:$LINENO: error: conditional \"USE_GNUTLS\" was never defined.
18511 Usually this means the macro was only invoked conditionally." >&5
18512 echo "$as_me: error: conditional \"USE_GNUTLS\" was never defined.
18513 Usually this means the macro was only invoked conditionally." >&2;}
18514 { (exit 1); exit 1; }; }
18516 if test -z "${USE_SASL_TRUE}" && test -z "${USE_SASL_FALSE}"; then
18517 { { echo "$as_me:$LINENO: error: conditional \"USE_SASL\" was never defined.
18518 Usually this means the macro was only invoked conditionally." >&5
18519 echo "$as_me: error: conditional \"USE_SASL\" was never defined.
18520 Usually this means the macro was only invoked conditionally." >&2;}
18521 { (exit 1); exit 1; }; }
18523 if test -z "${USE_SASL_TRUE}" && test -z "${USE_SASL_FALSE}"; then
18524 { { echo "$as_me:$LINENO: error: conditional \"USE_SASL\" was never defined.
18525 Usually this means the macro was only invoked conditionally." >&5
18526 echo "$as_me: error: conditional \"USE_SASL\" was never defined.
18527 Usually this means the macro was only invoked conditionally." >&2;}
18528 { (exit 1); exit 1; }; }
18531 : ${CONFIG_STATUS=./config.status}
18532 ac_clean_files_save=$ac_clean_files
18533 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18534 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18535 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18536 cat >$CONFIG_STATUS <<_ACEOF
18538 # Generated by $as_me.
18539 # Run this file to recreate the current configuration.
18540 # Compiler output produced by configure, useful for debugging
18541 # configure, is in config.log if it exists.
18544 ac_cs_recheck=false
18546 SHELL=\${CONFIG_SHELL-$SHELL}
18549 cat >>$CONFIG_STATUS <<\_ACEOF
18550 ## --------------------- ##
18551 ## M4sh Initialization. ##
18552 ## --------------------- ##
18554 # Be Bourne compatible
18555 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18558 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18559 # is contrary to our usage. Disable this feature.
18560 alias -g '${1+"$@"}'='"$@"'
18561 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18564 DUALCASE=1; export DUALCASE # for MKS sh
18566 # Support unset when possible.
18567 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18574 # Work around bugs in pre-3.0 UWIN ksh.
18575 $as_unset ENV MAIL MAILPATH
18582 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18583 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18584 LC_TELEPHONE LC_TIME
18586 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18587 eval $as_var=C; export $as_var
18593 # Required to use basename.
18594 if expr a : '\(a\)' >/dev/null 2>&1; then
18600 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18601 as_basename=basename
18607 # Name of the executable.
18608 as_me=`$as_basename "$0" ||
18609 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18610 X"$0" : 'X\(//\)$' \| \
18611 X"$0" : 'X\(/\)$' \| \
18612 . : '\(.\)' 2>/dev/null ||
18614 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18615 /^X\/\(\/\/\)$/{ s//\1/; q; }
18616 /^X\/\(\/\).*/{ s//\1/; q; }
18620 # PATH needs CR, and LINENO needs CR and PATH.
18621 # Avoid depending upon Character Ranges.
18622 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18623 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18624 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18625 as_cr_digits='0123456789'
18626 as_cr_alnum=$as_cr_Letters$as_cr_digits
18628 # The user is always right.
18629 if test "${PATH_SEPARATOR+set}" != set; then
18630 echo "#! /bin/sh" >conf$$.sh
18631 echo "exit 0" >>conf$$.sh
18633 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18642 as_lineno_1=$LINENO
18643 as_lineno_2=$LINENO
18644 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18645 test "x$as_lineno_1" != "x$as_lineno_2" &&
18646 test "x$as_lineno_3" = "x$as_lineno_2" || {
18647 # Find who we are. Look in the path if we contain no path at all
18650 *[\\/]* ) as_myself=$0 ;;
18651 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18652 for as_dir in $PATH
18655 test -z "$as_dir" && as_dir=.
18656 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18661 # We did not find ourselves, most probably we were run as `sh COMMAND'
18662 # in which case we are not to be found in the path.
18663 if test "x$as_myself" = x; then
18666 if test ! -f "$as_myself"; then
18667 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18668 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18669 { (exit 1); exit 1; }; }
18671 case $CONFIG_SHELL in
18673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18674 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18677 test -z "$as_dir" && as_dir=.
18678 for as_base in sh bash ksh sh5; do
18681 if ("$as_dir/$as_base" -c '
18682 as_lineno_1=$LINENO
18683 as_lineno_2=$LINENO
18684 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18685 test "x$as_lineno_1" != "x$as_lineno_2" &&
18686 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18687 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18688 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18689 CONFIG_SHELL=$as_dir/$as_base
18690 export CONFIG_SHELL
18691 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18699 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18700 # uniformly replaced by the line number. The first 'sed' inserts a
18701 # line-number line before each line; the second 'sed' does the real
18702 # work. The second script uses 'N' to pair each line-number line
18703 # with the numbered line, and appends trailing '-' during
18704 # substitution so that $LINENO is not a special case at line end.
18705 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18706 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18707 sed '=' <$as_myself |
18712 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18715 s,^['$as_cr_digits']*\n,,
18716 ' >$as_me.lineno &&
18717 chmod +x $as_me.lineno ||
18718 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18719 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18720 { (exit 1); exit 1; }; }
18722 # Don't try to exec as it changes $[0], causing all sort of problems
18723 # (the dirname of $[0] is not the place where we might find the
18724 # original and so on. Autoconf is especially sensible to this).
18726 # Exit status is that of the last command.
18731 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18732 *c*,-n*) ECHO_N= ECHO_C='
18734 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18735 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18738 if expr a : '\(a\)' >/dev/null 2>&1; then
18744 rm -f conf$$ conf$$.exe conf$$.file
18746 if ln -s conf$$.file conf$$ 2>/dev/null; then
18747 # We could just check for DJGPP; but this test a) works b) is more generic
18748 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18749 if test -f conf$$.exe; then
18750 # Don't use ln at all; we don't have any links
18755 elif ln conf$$.file conf$$ 2>/dev/null; then
18760 rm -f conf$$ conf$$.exe conf$$.file
18762 if mkdir -p . 2>/dev/null; then
18765 test -d ./-p && rmdir ./-p
18769 as_executable_p="test -f"
18771 # Sed expression to map a string onto a valid CPP name.
18772 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18774 # Sed expression to map a string onto a valid variable name.
18775 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18779 # We need space, tab and new line, in precisely that order.
18789 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18790 # report actual input values of CONFIG_FILES etc. instead of their
18791 # values after options handling. Logging --version etc. is OK.
18795 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18796 ## Running $as_me. ##
18801 This file was extended by $as_me, which was
18802 generated by GNU Autoconf 2.59. Invocation command line was
18804 CONFIG_FILES = $CONFIG_FILES
18805 CONFIG_HEADERS = $CONFIG_HEADERS
18806 CONFIG_LINKS = $CONFIG_LINKS
18807 CONFIG_COMMANDS = $CONFIG_COMMANDS
18811 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18815 # Files that config.status was made for.
18816 if test -n "$ac_config_files"; then
18817 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18820 if test -n "$ac_config_headers"; then
18821 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18824 if test -n "$ac_config_links"; then
18825 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18828 if test -n "$ac_config_commands"; then
18829 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18832 cat >>$CONFIG_STATUS <<\_ACEOF
18835 \`$as_me' instantiates files from templates according to the
18836 current configuration.
18838 Usage: $0 [OPTIONS] [FILE]...
18840 -h, --help print this help, then exit
18841 -V, --version print version number, then exit
18842 -q, --quiet do not print progress messages
18843 -d, --debug don't remove temporary files
18844 --recheck update $as_me by reconfiguring in the same conditions
18845 --file=FILE[:TEMPLATE]
18846 instantiate the configuration file FILE
18847 --header=FILE[:TEMPLATE]
18848 instantiate the configuration header FILE
18850 Configuration files:
18853 Configuration headers:
18856 Configuration commands:
18859 Report bugs to <bug-autoconf@gnu.org>."
18862 cat >>$CONFIG_STATUS <<_ACEOF
18865 configured by $0, generated by GNU Autoconf 2.59,
18866 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18868 Copyright (C) 2003 Free Software Foundation, Inc.
18869 This config.status script is free software; the Free Software Foundation
18870 gives unlimited permission to copy, distribute and modify it."
18875 cat >>$CONFIG_STATUS <<\_ACEOF
18876 # If no file are specified by the user, then we need to provide default
18877 # value. By we need to know if files were specified by the user.
18883 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18884 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18892 *) # This is not an option, so the user has probably given explicit
18895 ac_need_defaults=false;;
18899 # Handling of the options.
18901 cat >>$CONFIG_STATUS <<\_ACEOF
18902 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18904 --version | --vers* | -V )
18905 echo "$ac_cs_version"; exit 0 ;;
18907 # Conflict between --help and --header
18908 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18909 Try \`$0 --help' for more information." >&5
18910 echo "$as_me: error: ambiguous option: $1
18911 Try \`$0 --help' for more information." >&2;}
18912 { (exit 1); exit 1; }; };;
18913 --help | --hel | -h )
18914 echo "$ac_cs_usage"; exit 0 ;;
18915 --debug | --d* | -d )
18917 --file | --fil | --fi | --f )
18919 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18920 ac_need_defaults=false;;
18921 --header | --heade | --head | --hea )
18923 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18924 ac_need_defaults=false;;
18925 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18926 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18929 # This is an error.
18930 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18931 Try \`$0 --help' for more information." >&5
18932 echo "$as_me: error: unrecognized option: $1
18933 Try \`$0 --help' for more information." >&2;}
18934 { (exit 1); exit 1; }; } ;;
18936 *) ac_config_targets="$ac_config_targets $1" ;;
18942 ac_configure_extra_args=
18944 if $ac_cs_silent; then
18946 ac_configure_extra_args="$ac_configure_extra_args --silent"
18950 cat >>$CONFIG_STATUS <<_ACEOF
18951 if \$ac_cs_recheck; then
18952 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18953 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18958 cat >>$CONFIG_STATUS <<_ACEOF
18960 # INIT-COMMANDS section.
18963 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18970 cat >>$CONFIG_STATUS <<\_ACEOF
18971 for ac_config_target in $ac_config_targets
18973 case "$ac_config_target" in
18974 # Handling of arguments.
18975 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18976 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
18977 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
18978 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
18979 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18980 "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
18981 "muttbug.sh" ) CONFIG_FILES="$CONFIG_FILES muttbug.sh" ;;
18982 "imap/Makefile" ) CONFIG_FILES="$CONFIG_FILES imap/Makefile" ;;
18983 "Muttngrc.head" ) CONFIG_FILES="$CONFIG_FILES Muttngrc.head" ;;
18984 "doc/instdoc.sh" ) CONFIG_FILES="$CONFIG_FILES doc/instdoc.sh" ;;
18985 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18986 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18987 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18988 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18989 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18990 { (exit 1); exit 1; }; };;
18994 # If the user did not use the arguments to specify the items to instantiate,
18995 # then the envvar interface is used. Set only those that are not.
18996 # We use the long form for the default assignment because of an extremely
18997 # bizarre bug on SunOS 4.1.3.
18998 if $ac_need_defaults; then
18999 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19000 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19001 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19004 # Have a temporary directory for convenience. Make it in the build tree
19005 # simply because there is no reason to put it here, and in addition,
19006 # creating and moving files from /tmp can sometimes cause problems.
19007 # Create a temporary directory, and hook for its removal unless debugging.
19010 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19011 trap '{ (exit 1); exit 1; }' 1 2 13 15
19014 # Create a (secure) tmp directory for tmp files.
19017 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19018 test -n "$tmp" && test -d "$tmp"
19021 tmp=./confstat$$-$RANDOM
19022 (umask 077 && mkdir $tmp)
19025 echo "$me: cannot create a temporary directory in ." >&2
19026 { (exit 1); exit 1; }
19031 cat >>$CONFIG_STATUS <<_ACEOF
19034 # CONFIG_FILES section.
19037 # No need to generate the scripts if there are no CONFIG_FILES.
19038 # This happens for instance when ./config.status config.h
19039 if test -n "\$CONFIG_FILES"; then
19040 # Protect against being on the right side of a sed subst in config.status.
19041 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19042 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19043 s,@SHELL@,$SHELL,;t t
19044 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19045 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19046 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19047 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19048 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19049 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19050 s,@exec_prefix@,$exec_prefix,;t t
19051 s,@prefix@,$prefix,;t t
19052 s,@program_transform_name@,$program_transform_name,;t t
19053 s,@bindir@,$bindir,;t t
19054 s,@sbindir@,$sbindir,;t t
19055 s,@libexecdir@,$libexecdir,;t t
19056 s,@datadir@,$datadir,;t t
19057 s,@sysconfdir@,$sysconfdir,;t t
19058 s,@sharedstatedir@,$sharedstatedir,;t t
19059 s,@localstatedir@,$localstatedir,;t t
19060 s,@libdir@,$libdir,;t t
19061 s,@includedir@,$includedir,;t t
19062 s,@oldincludedir@,$oldincludedir,;t t
19063 s,@infodir@,$infodir,;t t
19064 s,@mandir@,$mandir,;t t
19065 s,@build_alias@,$build_alias,;t t
19066 s,@host_alias@,$host_alias,;t t
19067 s,@target_alias@,$target_alias,;t t
19068 s,@DEFS@,$DEFS,;t t
19069 s,@ECHO_C@,$ECHO_C,;t t
19070 s,@ECHO_N@,$ECHO_N,;t t
19071 s,@ECHO_T@,$ECHO_T,;t t
19072 s,@LIBS@,$LIBS,;t t
19073 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19074 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19075 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19076 s,@CYGPATH_W@,$CYGPATH_W,;t t
19077 s,@PACKAGE@,$PACKAGE,;t t
19078 s,@VERSION@,$VERSION,;t t
19079 s,@ACLOCAL@,$ACLOCAL,;t t
19080 s,@AUTOCONF@,$AUTOCONF,;t t
19081 s,@AUTOMAKE@,$AUTOMAKE,;t t
19082 s,@AUTOHEADER@,$AUTOHEADER,;t t
19083 s,@MAKEINFO@,$MAKEINFO,;t t
19084 s,@AMTAR@,$AMTAR,;t t
19085 s,@install_sh@,$install_sh,;t t
19086 s,@STRIP@,$STRIP,;t t
19087 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19088 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19090 s,@SET_MAKE@,$SET_MAKE,;t t
19091 s,@am__leading_dot@,$am__leading_dot,;t t
19092 s,@build@,$build,;t t
19093 s,@build_cpu@,$build_cpu,;t t
19094 s,@build_vendor@,$build_vendor,;t t
19095 s,@build_os@,$build_os,;t t
19096 s,@host@,$host,;t t
19097 s,@host_cpu@,$host_cpu,;t t
19098 s,@host_vendor@,$host_vendor,;t t
19099 s,@host_os@,$host_os,;t t
19101 s,@CFLAGS@,$CFLAGS,;t t
19102 s,@LDFLAGS@,$LDFLAGS,;t t
19103 s,@CPPFLAGS@,$CPPFLAGS,;t t
19104 s,@ac_ct_CC@,$ac_ct_CC,;t t
19105 s,@EXEEXT@,$EXEEXT,;t t
19106 s,@OBJEXT@,$OBJEXT,;t t
19107 s,@DEPDIR@,$DEPDIR,;t t
19108 s,@am__include@,$am__include,;t t
19109 s,@am__quote@,$am__quote,;t t
19110 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19111 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19112 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19113 s,@CCDEPMODE@,$CCDEPMODE,;t t
19114 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19115 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19117 s,@EGREP@,$EGREP,;t t
19119 s,@ANSI2KNR@,$ANSI2KNR,;t t
19120 s,@RANLIB@,$RANLIB,;t t
19121 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19123 s,@ac_ct_AR@,$ac_ct_AR,;t t
19127 s,@DEBUGGER@,$DEBUGGER,;t t
19128 s,@SENDMAIL@,$SENDMAIL,;t t
19129 s,@GPGME_CONFIG@,$GPGME_CONFIG,;t t
19130 s,@LIBGPGME_CFLAGS@,$LIBGPGME_CFLAGS,;t t
19131 s,@LIBGPGME_LIBS@,$LIBGPGME_LIBS,;t t
19133 s,@PGPAUX_TARGET@,$PGPAUX_TARGET,;t t
19134 s,@SMIMEAUX_TARGET@,$SMIMEAUX_TARGET,;t t
19135 s,@SUBVERSION@,$SUBVERSION,;t t
19136 s,@ISPELL@,$ISPELL,;t t
19137 s,@LIBOBJS@,$LIBOBJS,;t t
19138 s,@DOTLOCK_TARGET@,$DOTLOCK_TARGET,;t t
19139 s,@docdir@,$docdir,;t t
19140 s,@DOTLOCK_GROUP@,$DOTLOCK_GROUP,;t t
19141 s,@DOTLOCK_PERMISSION@,$DOTLOCK_PERMISSION,;t t
19142 s,@BUILD_IMAP_TRUE@,$BUILD_IMAP_TRUE,;t t
19143 s,@BUILD_IMAP_FALSE@,$BUILD_IMAP_FALSE,;t t
19144 s,@KRB5CFGPATH@,$KRB5CFGPATH,;t t
19145 s,@USE_GSS_TRUE@,$USE_GSS_TRUE,;t t
19146 s,@USE_GSS_FALSE@,$USE_GSS_FALSE,;t t
19147 s,@USE_SSL_TRUE@,$USE_SSL_TRUE,;t t
19148 s,@USE_SSL_FALSE@,$USE_SSL_FALSE,;t t
19149 s,@USE_GNUTLS_TRUE@,$USE_GNUTLS_TRUE,;t t
19150 s,@USE_GNUTLS_FALSE@,$USE_GNUTLS_FALSE,;t t
19151 s,@LIBGNUTLS_CONFIG@,$LIBGNUTLS_CONFIG,;t t
19152 s,@LIBGNUTLS_CFLAGS@,$LIBGNUTLS_CFLAGS,;t t
19153 s,@LIBGNUTLS_LIBS@,$LIBGNUTLS_LIBS,;t t
19154 s,@USE_SASL_TRUE@,$USE_SASL_TRUE,;t t
19155 s,@USE_SASL_FALSE@,$USE_SASL_FALSE,;t t
19156 s,@MUTTLIBS@,$MUTTLIBS,;t t
19157 s,@MUTT_LIB_OBJECTS@,$MUTT_LIB_OBJECTS,;t t
19158 s,@LIBIMAP@,$LIBIMAP,;t t
19159 s,@LIBIMAPDEPS@,$LIBIMAPDEPS,;t t
19160 s,@ALLOCA@,$ALLOCA,;t t
19161 s,@GLIBC21@,$GLIBC21,;t t
19162 s,@LIBICONV@,$LIBICONV,;t t
19163 s,@USE_NLS@,$USE_NLS,;t t
19164 s,@MSGFMT@,$MSGFMT,;t t
19165 s,@GMSGFMT@,$GMSGFMT,;t t
19166 s,@XGETTEXT@,$XGETTEXT,;t t
19167 s,@INTLBISON@,$INTLBISON,;t t
19168 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
19169 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
19170 s,@CATALOGS@,$CATALOGS,;t t
19171 s,@CATOBJEXT@,$CATOBJEXT,;t t
19172 s,@GMOFILES@,$GMOFILES,;t t
19173 s,@INTLLIBS@,$INTLLIBS,;t t
19174 s,@INTLOBJS@,$INTLOBJS,;t t
19175 s,@POFILES@,$POFILES,;t t
19176 s,@POSUB@,$POSUB,;t t
19177 s,@DATADIRNAME@,$DATADIRNAME,;t t
19178 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
19179 s,@GENCAT@,$GENCAT,;t t
19180 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
19181 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
19182 s,@mutt_libesmtp_config_path@,$mutt_libesmtp_config_path,;t t
19183 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19188 cat >>$CONFIG_STATUS <<\_ACEOF
19189 # Split the substitutions into bite-sized pieces for seds with
19190 # small command number limits, like on Digital OSF/1 and HP-UX.
19191 ac_max_sed_lines=48
19192 ac_sed_frag=1 # Number of current file.
19193 ac_beg=1 # First line for current file.
19194 ac_end=$ac_max_sed_lines # Line after last line for current file.
19197 while $ac_more_lines; do
19198 if test $ac_beg -gt 1; then
19199 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19201 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19203 if test ! -s $tmp/subs.frag; then
19204 ac_more_lines=false
19206 # The purpose of the label and of the branching condition is to
19207 # speed up the sed processing (if there are no `@' at all, there
19208 # is no need to browse any of the substitutions).
19209 # These are the two extra sed commands mentioned above.
19211 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19212 if test -z "$ac_sed_cmds"; then
19213 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19215 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19217 ac_sed_frag=`expr $ac_sed_frag + 1`
19219 ac_end=`expr $ac_end + $ac_max_sed_lines`
19222 if test -z "$ac_sed_cmds"; then
19225 fi # test -n "$CONFIG_FILES"
19228 cat >>$CONFIG_STATUS <<\_ACEOF
19229 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19230 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19232 - | *:- | *:-:* ) # input from stdin
19234 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19235 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19236 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19237 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19238 * ) ac_file_in=$ac_file.in ;;
19241 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19242 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19243 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19244 X"$ac_file" : 'X\(//\)[^/]' \| \
19245 X"$ac_file" : 'X\(//\)$' \| \
19246 X"$ac_file" : 'X\(/\)' \| \
19247 . : '\(.\)' 2>/dev/null ||
19249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19250 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19251 /^X\(\/\/\)$/{ s//\1/; q; }
19252 /^X\(\/\).*/{ s//\1/; q; }
19254 { if $as_mkdir_p; then
19259 while test ! -d "$as_dir"; do
19260 as_dirs="$as_dir $as_dirs"
19261 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19262 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19263 X"$as_dir" : 'X\(//\)[^/]' \| \
19264 X"$as_dir" : 'X\(//\)$' \| \
19265 X"$as_dir" : 'X\(/\)' \| \
19266 . : '\(.\)' 2>/dev/null ||
19268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19269 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19270 /^X\(\/\/\)$/{ s//\1/; q; }
19271 /^X\(\/\).*/{ s//\1/; q; }
19274 test ! -n "$as_dirs" || mkdir $as_dirs
19275 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19276 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19277 { (exit 1); exit 1; }; }; }
19281 if test "$ac_dir" != .; then
19282 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19283 # A "../" for each directory in $ac_dir_suffix.
19284 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19286 ac_dir_suffix= ac_top_builddir=
19290 .) # No --srcdir option. We are building in place.
19292 if test -z "$ac_top_builddir"; then
19295 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19297 [\\/]* | ?:[\\/]* ) # Absolute path.
19298 ac_srcdir=$srcdir$ac_dir_suffix;
19299 ac_top_srcdir=$srcdir ;;
19300 *) # Relative path.
19301 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19302 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19305 # Do not use `cd foo && pwd` to compute absolute paths, because
19306 # the directories may not exist.
19308 .) ac_abs_builddir="$ac_dir";;
19311 .) ac_abs_builddir=`pwd`;;
19312 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19313 *) ac_abs_builddir=`pwd`/"$ac_dir";;
19316 case $ac_abs_builddir in
19317 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19319 case ${ac_top_builddir}. in
19320 .) ac_abs_top_builddir=$ac_abs_builddir;;
19321 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19322 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19325 case $ac_abs_builddir in
19326 .) ac_abs_srcdir=$ac_srcdir;;
19329 .) ac_abs_srcdir=$ac_abs_builddir;;
19330 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19331 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19334 case $ac_abs_builddir in
19335 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19337 case $ac_top_srcdir in
19338 .) ac_abs_top_srcdir=$ac_abs_builddir;;
19339 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19340 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19346 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19347 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19350 # Let's still pretend it is `configure' which instantiates (i.e., don't
19351 # use $as_me), people would be surprised to read:
19352 # /* config.h. Generated by config.status. */
19353 if test x"$ac_file" = x-; then
19356 configure_input="$ac_file. "
19358 configure_input=$configure_input"Generated from `echo $ac_file_in |
19359 sed 's,.*/,,'` by configure."
19361 # First look for the input files in the build tree, otherwise in the
19363 ac_file_inputs=`IFS=:
19364 for f in $ac_file_in; do
19366 -) echo $tmp/stdin ;;
19368 # Absolute (can't be DOS-style, as IFS=:)
19369 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19370 echo "$as_me: error: cannot find input file: $f" >&2;}
19371 { (exit 1); exit 1; }; }
19374 if test -f "$f"; then
19377 elif test -f "$srcdir/$f"; then
19382 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19383 echo "$as_me: error: cannot find input file: $f" >&2;}
19384 { (exit 1); exit 1; }; }
19387 done` || { (exit 1); exit 1; }
19389 if test x"$ac_file" != x-; then
19390 { echo "$as_me:$LINENO: creating $ac_file" >&5
19391 echo "$as_me: creating $ac_file" >&6;}
19395 cat >>$CONFIG_STATUS <<_ACEOF
19399 cat >>$CONFIG_STATUS <<\_ACEOF
19401 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19402 s,@configure_input@,$configure_input,;t t
19403 s,@srcdir@,$ac_srcdir,;t t
19404 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19405 s,@top_srcdir@,$ac_top_srcdir,;t t
19406 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19407 s,@builddir@,$ac_builddir,;t t
19408 s,@abs_builddir@,$ac_abs_builddir,;t t
19409 s,@top_builddir@,$ac_top_builddir,;t t
19410 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19411 s,@INSTALL@,$ac_INSTALL,;t t
19412 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19414 if test x"$ac_file" != x-; then
19415 mv $tmp/out $ac_file
19423 cat >>$CONFIG_STATUS <<\_ACEOF
19426 # CONFIG_HEADER section.
19429 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19430 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19432 # ac_d sets the value in "#define NAME VALUE" lines.
19433 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19434 ac_dB='[ ].*$,\1#\2'
19437 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19438 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19439 ac_uB='$,\1#\2define\3'
19443 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19444 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19446 - | *:- | *:-:* ) # input from stdin
19448 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19449 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19450 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19451 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19452 * ) ac_file_in=$ac_file.in ;;
19455 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19456 echo "$as_me: creating $ac_file" >&6;}
19458 # First look for the input files in the build tree, otherwise in the
19460 ac_file_inputs=`IFS=:
19461 for f in $ac_file_in; do
19463 -) echo $tmp/stdin ;;
19465 # Absolute (can't be DOS-style, as IFS=:)
19466 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19467 echo "$as_me: error: cannot find input file: $f" >&2;}
19468 { (exit 1); exit 1; }; }
19469 # Do quote $f, to prevent DOS paths from being IFS'd.
19472 if test -f "$f"; then
19475 elif test -f "$srcdir/$f"; then
19480 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19481 echo "$as_me: error: cannot find input file: $f" >&2;}
19482 { (exit 1); exit 1; }; }
19485 done` || { (exit 1); exit 1; }
19486 # Remove the trailing spaces.
19487 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19491 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19492 # `conftest.undefs', that substitutes the proper values into
19493 # config.h.in to produce config.h. The first handles `#define'
19494 # templates, and the second `#undef' templates.
19495 # And first: Protect against being on the right side of a sed subst in
19496 # config.status. Protect against being in an unquoted here document
19497 # in config.status.
19498 rm -f conftest.defines conftest.undefs
19499 # Using a here document instead of a string reduces the quoting nightmare.
19500 # Putting comments in sed scripts is not portable.
19502 # `end' is used to avoid that the second main sed command (meant for
19503 # 0-ary CPP macros) applies to n-ary macro definitions.
19504 # See the Autoconf documentation for `clear'.
19505 cat >confdef2sed.sed <<\_ACEOF
19510 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19512 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19515 # If some macros were called several times there might be several times
19516 # the same #defines, which is useless. Nevertheless, we may not want to
19517 # sort them, since we want the *last* AC-DEFINE to be honored.
19518 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19519 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19520 rm -f confdef2sed.sed
19522 # This sed command replaces #undef with comments. This is necessary, for
19523 # example, in the case of _POSIX_SOURCE, which is predefined and required
19524 # on some systems where configure will not decide to define it.
19525 cat >>conftest.undefs <<\_ACEOF
19526 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19529 # Break up conftest.defines because some shells have a limit on the size
19530 # of here documents, and old seds have small limits too (100 cmds).
19531 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19532 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19533 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19534 echo ' :' >>$CONFIG_STATUS
19535 rm -f conftest.tail
19536 while grep . conftest.defines >/dev/null
19538 # Write a limited-size here document to $tmp/defines.sed.
19539 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19540 # Speed up: don't consider the non `#define' lines.
19541 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19542 # Work around the forget-to-reset-the-flag bug.
19543 echo 't clr' >>$CONFIG_STATUS
19544 echo ': clr' >>$CONFIG_STATUS
19545 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19547 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19549 mv $tmp/out $tmp/in
19551 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19552 rm -f conftest.defines
19553 mv conftest.tail conftest.defines
19555 rm -f conftest.defines
19556 echo ' fi # grep' >>$CONFIG_STATUS
19557 echo >>$CONFIG_STATUS
19559 # Break up conftest.undefs because some shells have a limit on the size
19560 # of here documents, and old seds have small limits too (100 cmds).
19561 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19562 rm -f conftest.tail
19563 while grep . conftest.undefs >/dev/null
19565 # Write a limited-size here document to $tmp/undefs.sed.
19566 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19567 # Speed up: don't consider the non `#undef'
19568 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19569 # Work around the forget-to-reset-the-flag bug.
19570 echo 't clr' >>$CONFIG_STATUS
19571 echo ': clr' >>$CONFIG_STATUS
19572 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19574 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19576 mv $tmp/out $tmp/in
19578 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19579 rm -f conftest.undefs
19580 mv conftest.tail conftest.undefs
19582 rm -f conftest.undefs
19584 cat >>$CONFIG_STATUS <<\_ACEOF
19585 # Let's still pretend it is `configure' which instantiates (i.e., don't
19586 # use $as_me), people would be surprised to read:
19587 # /* config.h. Generated by config.status. */
19588 if test x"$ac_file" = x-; then
19589 echo "/* Generated by configure. */" >$tmp/config.h
19591 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19593 cat $tmp/in >>$tmp/config.h
19595 if test x"$ac_file" != x-; then
19596 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19597 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19598 echo "$as_me: $ac_file is unchanged" >&6;}
19600 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19601 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19602 X"$ac_file" : 'X\(//\)[^/]' \| \
19603 X"$ac_file" : 'X\(//\)$' \| \
19604 X"$ac_file" : 'X\(/\)' \| \
19605 . : '\(.\)' 2>/dev/null ||
19607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19608 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19609 /^X\(\/\/\)$/{ s//\1/; q; }
19610 /^X\(\/\).*/{ s//\1/; q; }
19612 { if $as_mkdir_p; then
19617 while test ! -d "$as_dir"; do
19618 as_dirs="$as_dir $as_dirs"
19619 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19620 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19621 X"$as_dir" : 'X\(//\)[^/]' \| \
19622 X"$as_dir" : 'X\(//\)$' \| \
19623 X"$as_dir" : 'X\(/\)' \| \
19624 . : '\(.\)' 2>/dev/null ||
19626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19627 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19628 /^X\(\/\/\)$/{ s//\1/; q; }
19629 /^X\(\/\).*/{ s//\1/; q; }
19632 test ! -n "$as_dirs" || mkdir $as_dirs
19633 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19634 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19635 { (exit 1); exit 1; }; }; }
19638 mv $tmp/config.h $ac_file
19642 rm -f $tmp/config.h
19644 # Compute $ac_file's index in $config_headers.
19646 for _am_header in $config_headers :; do
19647 case $_am_header in
19648 $ac_file | $ac_file:* )
19651 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19654 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
19655 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19656 X$ac_file : 'X\(//\)[^/]' \| \
19657 X$ac_file : 'X\(//\)$' \| \
19658 X$ac_file : 'X\(/\)' \| \
19659 . : '\(.\)' 2>/dev/null ||
19661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19662 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19663 /^X\(\/\/\)$/{ s//\1/; q; }
19664 /^X\(\/\).*/{ s//\1/; q; }
19665 s/.*/./; q'`/stamp-h$_am_stamp_count
19668 cat >>$CONFIG_STATUS <<\_ACEOF
19671 # CONFIG_COMMANDS section.
19673 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19674 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19675 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19676 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19677 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19678 X"$ac_dest" : 'X\(//\)[^/]' \| \
19679 X"$ac_dest" : 'X\(//\)$' \| \
19680 X"$ac_dest" : 'X\(/\)' \| \
19681 . : '\(.\)' 2>/dev/null ||
19683 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19684 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19685 /^X\(\/\/\)$/{ s//\1/; q; }
19686 /^X\(\/\).*/{ s//\1/; q; }
19688 { if $as_mkdir_p; then
19693 while test ! -d "$as_dir"; do
19694 as_dirs="$as_dir $as_dirs"
19695 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19696 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19697 X"$as_dir" : 'X\(//\)[^/]' \| \
19698 X"$as_dir" : 'X\(//\)$' \| \
19699 X"$as_dir" : 'X\(/\)' \| \
19700 . : '\(.\)' 2>/dev/null ||
19702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19703 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19704 /^X\(\/\/\)$/{ s//\1/; q; }
19705 /^X\(\/\).*/{ s//\1/; q; }
19708 test ! -n "$as_dirs" || mkdir $as_dirs
19709 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19710 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19711 { (exit 1); exit 1; }; }; }
19715 if test "$ac_dir" != .; then
19716 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19717 # A "../" for each directory in $ac_dir_suffix.
19718 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19720 ac_dir_suffix= ac_top_builddir=
19724 .) # No --srcdir option. We are building in place.
19726 if test -z "$ac_top_builddir"; then
19729 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19731 [\\/]* | ?:[\\/]* ) # Absolute path.
19732 ac_srcdir=$srcdir$ac_dir_suffix;
19733 ac_top_srcdir=$srcdir ;;
19734 *) # Relative path.
19735 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19736 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19739 # Do not use `cd foo && pwd` to compute absolute paths, because
19740 # the directories may not exist.
19742 .) ac_abs_builddir="$ac_dir";;
19745 .) ac_abs_builddir=`pwd`;;
19746 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19747 *) ac_abs_builddir=`pwd`/"$ac_dir";;
19750 case $ac_abs_builddir in
19751 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19753 case ${ac_top_builddir}. in
19754 .) ac_abs_top_builddir=$ac_abs_builddir;;
19755 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19756 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19759 case $ac_abs_builddir in
19760 .) ac_abs_srcdir=$ac_srcdir;;
19763 .) ac_abs_srcdir=$ac_abs_builddir;;
19764 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19765 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19768 case $ac_abs_builddir in
19769 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19771 case $ac_top_srcdir in
19772 .) ac_abs_top_srcdir=$ac_abs_builddir;;
19773 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19774 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19779 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19780 echo "$as_me: executing $ac_dest commands" >&6;}
19782 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
19783 # Strip MF so we end up with the name of the file.
19784 mf=`echo "$mf" | sed -e 's/:.*$//'`
19785 # Check whether this is an Automake generated Makefile or not.
19786 # We used to match only the files named `Makefile.in', but
19787 # some people rename them; so instead we look at the file content.
19788 # Grep'ing the first line is not enough: some people post-process
19789 # each Makefile.in and add a new line on top of each file to say so.
19790 # So let's grep whole file.
19791 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
19792 dirpart=`(dirname "$mf") 2>/dev/null ||
19793 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19794 X"$mf" : 'X\(//\)[^/]' \| \
19795 X"$mf" : 'X\(//\)$' \| \
19796 X"$mf" : 'X\(/\)' \| \
19797 . : '\(.\)' 2>/dev/null ||
19799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19800 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19801 /^X\(\/\/\)$/{ s//\1/; q; }
19802 /^X\(\/\).*/{ s//\1/; q; }
19807 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
19808 # Extract the definition of DEP_FILES from the Makefile without
19810 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
19811 test -z "$DEPDIR" && continue
19812 # When using ansi2knr, U may be empty or an underscore; expand it
19813 U=`sed -n -e '/^U = / s///p' < "$mf"`
19814 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
19815 # We invoke sed twice because it is the simplest approach to
19816 # changing $(DEPDIR) to its actual value in the expansion.
19817 for file in `sed -n -e '
19818 /^DEP_FILES = .*\\\\$/ {
19827 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
19828 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19829 # Make sure the directory exists.
19830 test -f "$dirpart/$file" && continue
19831 fdir=`(dirname "$file") 2>/dev/null ||
19832 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19833 X"$file" : 'X\(//\)[^/]' \| \
19834 X"$file" : 'X\(//\)$' \| \
19835 X"$file" : 'X\(/\)' \| \
19836 . : '\(.\)' 2>/dev/null ||
19838 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19839 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19840 /^X\(\/\/\)$/{ s//\1/; q; }
19841 /^X\(\/\).*/{ s//\1/; q; }
19843 { if $as_mkdir_p; then
19844 mkdir -p $dirpart/$fdir
19846 as_dir=$dirpart/$fdir
19848 while test ! -d "$as_dir"; do
19849 as_dirs="$as_dir $as_dirs"
19850 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19851 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19852 X"$as_dir" : 'X\(//\)[^/]' \| \
19853 X"$as_dir" : 'X\(//\)$' \| \
19854 X"$as_dir" : 'X\(/\)' \| \
19855 . : '\(.\)' 2>/dev/null ||
19857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19858 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19859 /^X\(\/\/\)$/{ s//\1/; q; }
19860 /^X\(\/\).*/{ s//\1/; q; }
19863 test ! -n "$as_dirs" || mkdir $as_dirs
19864 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
19865 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
19866 { (exit 1); exit 1; }; }; }
19868 # echo "creating $dirpart/$file"
19869 echo '# dummy' > "$dirpart/$file"
19873 default-1 ) for ac_file in $CONFIG_FILES; do
19874 # Support "outfile[:infile[:infile...]]"
19876 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19878 # PO directories have a Makefile.in generated from Makefile.in.in.
19879 case "$ac_file" in */Makefile.in)
19880 # Adjust a relative srcdir.
19881 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19882 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
19883 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19884 # In autoconf-2.13 it is called $ac_given_srcdir.
19885 # In autoconf-2.50 it is called $srcdir.
19886 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19887 case "$ac_given_srcdir" in
19888 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19889 /*) top_srcdir="$ac_given_srcdir" ;;
19890 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
19892 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19893 rm -f "$ac_dir/POTFILES"
19894 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19895 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
19896 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19897 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
19906 cat >>$CONFIG_STATUS <<\_ACEOF
19908 { (exit 0); exit 0; }
19910 chmod +x $CONFIG_STATUS
19911 ac_clean_files=$ac_clean_files_save
19914 # configure is writing to config.log, and then calls config.status.
19915 # config.status does its own redirection, appending to config.log.
19916 # Unfortunately, on DOS this fails, as config.log is still kept open
19917 # by configure, so config.status won't be able to write to it; its
19918 # output is simply discarded. So we exec the FD to /dev/null,
19919 # effectively closing config.log, so it can be properly (re)opened and
19920 # appended to by config.status. When coming back to configure, we
19921 # need to make the FD available again.
19922 if test "$no_create" != yes; then
19924 ac_config_status_args=
19925 test "$silent" = yes &&
19926 ac_config_status_args="$ac_config_status_args --quiet"
19928 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19930 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19931 # would make configure fail if this is the last instruction.
19932 $ac_cs_success || { (exit 1); exit 1; }