2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/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 -n "`(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
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file="mutt.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot 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 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'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
780 \`configure' configures this package to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
834 --program-prefix=PREFIX prepend PREFIX to installed program names
835 --program-suffix=SUFFIX append SUFFIX to installed program names
836 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839 --build=BUILD configure for building on BUILD [guessed]
840 --host=HOST cross-compile to build programs to run on HOST [BUILD]
844 if test -n "$ac_init_help"; then
849 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
850 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
851 --disable-dependency-tracking Speeds up one-time builds
852 --enable-dependency-tracking Do not reject slow dependency extractors
853 --disable-largefile omit support for large files
854 --enable-gpgme Enable GPGME support
855 --disable-pgp Disable PGP support
856 --disable-smime Disable SMIME support
857 --enable-external-dotlock
858 Force use of an external dotlock program
859 --enable-pop Enable POP3 support
860 --enable-imap Enable IMAP support
861 --enable-nntp Enable NNTP support
862 --enable-debug Enable debugging support
863 --enable-flock Use flock() to lock files
864 --disable-fcntl Do NOT use fcntl() to lock files
865 --enable-inodesort Read files in maildir folders sorted by inode.
866 --disable-warnings Turn off compiler warnings (not recommended)
867 --enable-nfs-fix Work around an NFS with broken attributes caching
868 --enable-buffy-size Use file size attribute instead of access time
869 --enable-mailtool Enable Sun mailtool attachments support
870 --enable-compressed Enable compressed folders support
871 --enable-locales-fix The result of isprint() is unreliable
872 --enable-exact-address Enable regeneration of email addresses
873 --enable-hcache Enable header caching
874 --disable-iconv Disable iconv support
875 --disable-nls Do not use Native Language Support
878 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
879 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
880 --with-gpgme-prefix=PFX prefix where GPGME is installed (optional)
881 --with-mixmaster=PATH Include Mixmaster support
882 --with-slang=DIR Use S-Lang instead of ncurses
883 --with-curses=DIR Where ncurses is installed
884 --with-regex Use the GNU regex library
885 --with-homespool=FILE File in user's directory where new mail is spooled
886 --with-mailpath=DIR Directory where spool mailboxes are located
887 --with-docdir=PATH Specify where to put the documentation
888 --with-domain=DOMAIN Specify your DNS domain name
889 --with-gss=PFX Compile in GSSAPI authentication for IMAP
890 --with-ssl=PFX Compile in SSL support for POP/IMAP
891 --with-nss=PFX Compile in SSL support for POP/IMAP via NSS
892 --with-gnutls=PFX Enable SSL support using gnutls
893 --with-sasl=PFX Use Cyrus SASL library for POP/IMAP authentication
894 --with-sasl2=PFX Use Cyrus SASL library version 2 for POP/IMAP
896 --with-idn=PFX Use GNU libidn for domain names
897 --with-exec-shell=SHELL Specify alternate shell (ONLY if /bin/sh is broken)
898 --without-gdbm Don't use gdbm even if it is available
899 --with-bdb=DIR Use BerkeleyDB4 if gdbm is not available
900 --with-libiconv-prefix=DIR
901 Search for libiconv in DIR/include and DIR/lib
902 --with-included-gettext Use the GNU gettext library included here
903 --without-wc-funcs Do not use the system's wchar_t functions
904 --with-libesmtp=DIR Compile in support for libesmtp for the MTA
906 Some influential environment variables:
907 CC C compiler command
908 CFLAGS C compiler flags
909 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
910 nonstandard directory <lib dir>
911 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
912 headers in a nonstandard directory <include dir>
915 Use these variables to override the choices made by `configure' or to help
916 it to find libraries and programs with nonstandard names/locations.
921 if test "$ac_init_help" = "recursive"; then
922 # If there are subdirs, report their specific --help.
924 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
925 test -d $ac_dir || continue
928 if test "$ac_dir" != .; then
929 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
930 # A "../" for each directory in $ac_dir_suffix.
931 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
933 ac_dir_suffix= ac_top_builddir=
937 .) # No --srcdir option. We are building in place.
939 if test -z "$ac_top_builddir"; then
942 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
944 [\\/]* | ?:[\\/]* ) # Absolute path.
945 ac_srcdir=$srcdir$ac_dir_suffix;
946 ac_top_srcdir=$srcdir ;;
948 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
949 ac_top_srcdir=$ac_top_builddir$srcdir ;;
951 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
953 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
954 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
955 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
956 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
959 # Check for guested configure; otherwise get Cygnus style configure.
960 if test -f $ac_srcdir/configure.gnu; then
962 $SHELL $ac_srcdir/configure.gnu --help=recursive
963 elif test -f $ac_srcdir/configure; then
965 $SHELL $ac_srcdir/configure --help=recursive
966 elif test -f $ac_srcdir/configure.ac ||
967 test -f $ac_srcdir/configure.in; then
971 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
977 test -n "$ac_init_help" && exit 0
978 if $ac_init_version; then
981 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
982 Free Software Foundation, Inc.
983 This configure script is free software; the Free Software Foundation
984 gives unlimited permission to copy, distribute and modify it.
990 This file contains any messages produced by compilers while
991 running configure, to aid debugging if configure makes a mistake.
993 It was created by $as_me, which was
994 generated by GNU Autoconf 2.57. Invocation command line was
1005 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1006 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1007 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1008 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1009 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1011 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1012 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1014 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1015 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1016 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1017 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1018 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1019 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1020 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1028 test -z "$as_dir" && as_dir=.
1029 echo "PATH: $as_dir"
1044 # Keep a trace of the command line.
1045 # Strip out --no-create and --no-recursion so they do not pile up.
1046 # Strip out --silent because we don't want to record it for future runs.
1047 # Also quote any args containing shell meta-characters.
1048 # Make two passes to allow for proper duplicate-argument suppression.
1053 ac_must_keep_next=false
1059 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061 | -silent | --silent | --silen | --sile | --sil)
1063 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1064 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1067 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1069 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1070 if test $ac_must_keep_next = true; then
1071 ac_must_keep_next=false # Got value, back to normal.
1074 *=* | --config-cache | -C | -disable-* | --disable-* \
1075 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1076 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1077 | -with-* | --with-* | -without-* | --without-* | --x)
1078 case "$ac_configure_args0 " in
1079 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1082 -* ) ac_must_keep_next=true ;;
1085 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1086 # Get rid of the leading space.
1092 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1093 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1095 # When interrupted or exit'd, cleanup temporary files, and complete
1096 # config.log. We remove comments because anyway the quotes in there
1097 # would cause problems or look ugly.
1098 # WARNING: Be sure not to use single quotes in there, as some shells,
1099 # such as our DU 5.0 friend, will then `close' the trap.
1100 trap 'exit_status=$?
1101 # Save into config.log some information that might help in debugging.
1106 ## ---------------- ##
1107 ## Cache variables. ##
1108 ## ---------------- ##
1111 # The following way of writing the cache mishandles newlines in values,
1114 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1117 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1122 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1129 ## ----------------- ##
1130 ## Output variables. ##
1131 ## ----------------- ##
1134 for ac_var in $ac_subst_vars
1136 eval ac_val=$`echo $ac_var`
1137 echo "$ac_var='"'"'$ac_val'"'"'"
1141 if test -n "$ac_subst_files"; then
1148 for ac_var in $ac_subst_files
1150 eval ac_val=$`echo $ac_var`
1151 echo "$ac_var='"'"'$ac_val'"'"'"
1156 if test -s confdefs.h; then
1163 sed "/^$/d" confdefs.h | sort
1166 test "$ac_signal" != 0 &&
1167 echo "$as_me: caught signal $ac_signal"
1168 echo "$as_me: exit $exit_status"
1170 rm -f core core.* *.core &&
1171 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1174 for ac_signal in 1 2 13 15; do
1175 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1179 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1180 rm -rf conftest* confdefs.h
1181 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1184 # Predefined preprocessor variables.
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_NAME "$PACKAGE_NAME"
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_STRING "$PACKAGE_STRING"
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1211 # Let the site file select an alternate cache file if it wants to.
1212 # Prefer explicitly selected file to automatically selected ones.
1213 if test -z "$CONFIG_SITE"; then
1214 if test "x$prefix" != xNONE; then
1215 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1217 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1220 for ac_site_file in $CONFIG_SITE; do
1221 if test -r "$ac_site_file"; then
1222 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1223 echo "$as_me: loading site script $ac_site_file" >&6;}
1224 sed 's/^/| /' "$ac_site_file" >&5
1229 if test -r "$cache_file"; then
1230 # Some versions of bash will fail to source /dev/null (special
1231 # files actually), so we avoid doing that.
1232 if test -f "$cache_file"; then
1233 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1234 echo "$as_me: loading cache $cache_file" >&6;}
1236 [\\/]* | ?:[\\/]* ) . $cache_file;;
1237 *) . ./$cache_file;;
1241 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1242 echo "$as_me: creating cache $cache_file" >&6;}
1246 # Check that the precious variables saved in the cache have kept the same
1248 ac_cache_corrupted=false
1249 for ac_var in `(set) 2>&1 |
1250 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1251 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1252 eval ac_new_set=\$ac_env_${ac_var}_set
1253 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1254 eval ac_new_val="\$ac_env_${ac_var}_value"
1255 case $ac_old_set,$ac_new_set in
1257 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1258 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1259 ac_cache_corrupted=: ;;
1261 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1262 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1263 ac_cache_corrupted=: ;;
1266 if test "x$ac_old_val" != "x$ac_new_val"; then
1267 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1268 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1269 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1270 echo "$as_me: former value: $ac_old_val" >&2;}
1271 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1272 echo "$as_me: current value: $ac_new_val" >&2;}
1273 ac_cache_corrupted=:
1276 # Pass precious variables to config.status.
1277 if test "$ac_new_set" = set; then
1279 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1280 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1281 *) ac_arg=$ac_var=$ac_new_val ;;
1283 case " $ac_configure_args " in
1284 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1285 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1289 if $ac_cache_corrupted; then
1290 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1291 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1292 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1293 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1294 { (exit 1); exit 1; }; }
1298 ac_cpp='$CPP $CPPFLAGS'
1299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1321 ac_config_headers="$ac_config_headers config.h"
1324 mutt_cv_version=`cat $srcdir/VERSION`
1326 am__api_version="1.7"
1328 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1329 if test -f $ac_dir/install-sh; then
1331 ac_install_sh="$ac_aux_dir/install-sh -c"
1333 elif test -f $ac_dir/install.sh; then
1335 ac_install_sh="$ac_aux_dir/install.sh -c"
1337 elif test -f $ac_dir/shtool; then
1339 ac_install_sh="$ac_aux_dir/shtool install -c"
1343 if test -z "$ac_aux_dir"; then
1344 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1345 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1346 { (exit 1); exit 1; }; }
1348 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1349 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1350 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1352 # Find a good install program. We prefer a C program (faster),
1353 # so one script is as good as another. But avoid the broken or
1354 # incompatible versions:
1355 # SysV /etc/install, /usr/sbin/install
1356 # SunOS /usr/etc/install
1357 # IRIX /sbin/install
1359 # AmigaOS /C/install, which installs bootblocks on floppy discs
1360 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1361 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1362 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1363 # ./install, which can be erroneously created by make from ./install.sh.
1364 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1365 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1366 if test -z "$INSTALL"; then
1367 if test "${ac_cv_path_install+set}" = set; then
1368 echo $ECHO_N "(cached) $ECHO_C" >&6
1370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1374 test -z "$as_dir" && as_dir=.
1375 # Account for people who put trailing slashes in PATH elements.
1377 ./ | .// | /cC/* | \
1378 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1381 # OSF1 and SCO ODT 3.0 have their own names for install.
1382 # Don't use installbsd from OSF since it installs stuff as root
1384 for ac_prog in ginstall scoinst install; do
1385 for ac_exec_ext in '' $ac_executable_extensions; do
1386 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1387 if test $ac_prog = install &&
1388 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1389 # AIX install. It has an incompatible calling convention.
1391 elif test $ac_prog = install &&
1392 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1393 # program-specific install script used by HP pwplus--don't use.
1396 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1408 if test "${ac_cv_path_install+set}" = set; then
1409 INSTALL=$ac_cv_path_install
1411 # As a last resort, use the slow shell script. We don't cache a
1412 # path for INSTALL within a source directory, because that will
1413 # break other packages using the cache if that directory is
1414 # removed, or if the path is relative.
1415 INSTALL=$ac_install_sh
1418 echo "$as_me:$LINENO: result: $INSTALL" >&5
1419 echo "${ECHO_T}$INSTALL" >&6
1421 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1422 # It thinks the first close brace ends the variable substitution.
1423 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1425 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1427 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1429 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1430 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1433 echo timestamp > conftest.file
1434 # Do `set' in a subshell so we don't clobber the current shell's
1435 # arguments. Must try -L first in case configure is actually a
1436 # symlink; some systems play weird games with the mod time of symlinks
1437 # (eg FreeBSD returns the mod time of the symlink's containing
1440 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1441 if test "$*" = "X"; then
1443 set X `ls -t $srcdir/configure conftest.file`
1446 if test "$*" != "X $srcdir/configure conftest.file" \
1447 && test "$*" != "X conftest.file $srcdir/configure"; then
1449 # If neither matched, then we have a broken ls. This can happen
1450 # if, for instance, CONFIG_SHELL is bash and it inherits a
1451 # broken ls alias from the environment. This has actually
1452 # happened. Such a system could not be considered "sane".
1453 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1454 alias in your environment" >&5
1455 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1456 alias in your environment" >&2;}
1457 { (exit 1); exit 1; }; }
1460 test "$2" = conftest.file
1466 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1467 Check your system clock" >&5
1468 echo "$as_me: error: newly created file is older than distributed files!
1469 Check your system clock" >&2;}
1470 { (exit 1); exit 1; }; }
1472 echo "$as_me:$LINENO: result: yes" >&5
1473 echo "${ECHO_T}yes" >&6
1474 test "$program_prefix" != NONE &&
1475 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1476 # Use a double $ so make ignores it.
1477 test "$program_suffix" != NONE &&
1478 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1479 # Double any \ or $. echo might interpret backslashes.
1480 # By default was `s,x,x', remove it if useless.
1481 cat <<\_ACEOF >conftest.sed
1482 s/[\\$]/&&/g;s/;s,x,x,$//
1484 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1488 # expand $ac_aux_dir to an absolute path
1489 am_aux_dir=`cd $ac_aux_dir && pwd`
1491 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1492 # Use eval to expand $SHELL
1493 if eval "$MISSING --run true"; then
1494 am_missing_run="$MISSING --run "
1497 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1498 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1501 for ac_prog in gawk mawk nawk awk
1503 # Extract the first word of "$ac_prog", so it can be a program name with args.
1504 set dummy $ac_prog; ac_word=$2
1505 echo "$as_me:$LINENO: checking for $ac_word" >&5
1506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1507 if test "${ac_cv_prog_AWK+set}" = set; then
1508 echo $ECHO_N "(cached) $ECHO_C" >&6
1510 if test -n "$AWK"; then
1511 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1517 test -z "$as_dir" && as_dir=.
1518 for ac_exec_ext in '' $ac_executable_extensions; do
1519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1520 ac_cv_prog_AWK="$ac_prog"
1521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1530 if test -n "$AWK"; then
1531 echo "$as_me:$LINENO: result: $AWK" >&5
1532 echo "${ECHO_T}$AWK" >&6
1534 echo "$as_me:$LINENO: result: no" >&5
1535 echo "${ECHO_T}no" >&6
1538 test -n "$AWK" && break
1541 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1542 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1543 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1544 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1545 echo $ECHO_N "(cached) $ECHO_C" >&6
1547 cat >conftest.make <<\_ACEOF
1549 @echo 'ac_maketemp="$(MAKE)"'
1551 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1552 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1553 if test -n "$ac_maketemp"; then
1554 eval ac_cv_prog_make_${ac_make}_set=yes
1556 eval ac_cv_prog_make_${ac_make}_set=no
1560 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1561 echo "$as_me:$LINENO: result: yes" >&5
1562 echo "${ECHO_T}yes" >&6
1565 echo "$as_me:$LINENO: result: no" >&5
1566 echo "${ECHO_T}no" >&6
1567 SET_MAKE="MAKE=${MAKE-make}"
1570 rm -rf .tst 2>/dev/null
1571 mkdir .tst 2>/dev/null
1572 if test -d .tst; then
1577 rmdir .tst 2>/dev/null
1579 # test to see if srcdir already configured
1580 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1581 test -f $srcdir/config.status; then
1582 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1583 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1584 { (exit 1); exit 1; }; }
1587 # test whether we have cygpath
1588 if test -z "$CYGPATH_W"; then
1589 if (cygpath --version) >/dev/null 2>/dev/null; then
1590 CYGPATH_W='cygpath -w'
1597 # Define the identity of the package.
1599 VERSION=$mutt_cv_version
1602 cat >>confdefs.h <<_ACEOF
1603 #define PACKAGE "$PACKAGE"
1607 cat >>confdefs.h <<_ACEOF
1608 #define VERSION "$VERSION"
1611 # Some tools Automake needs.
1613 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1616 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1619 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1622 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1625 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1628 AMTAR=${AMTAR-"${am_missing_run}tar"}
1630 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1632 # Installed binaries are usually stripped using `strip' when the user
1633 # run `make install-strip'. However `strip' might not be the right
1634 # tool to use in cross-compilation environments, therefore Automake
1635 # will honor the `STRIP' environment variable to overrule this program.
1636 if test "$cross_compiling" != no; then
1637 if test -n "$ac_tool_prefix"; then
1638 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1639 set dummy ${ac_tool_prefix}strip; ac_word=$2
1640 echo "$as_me:$LINENO: checking for $ac_word" >&5
1641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1642 if test "${ac_cv_prog_STRIP+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1645 if test -n "$STRIP"; then
1646 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652 test -z "$as_dir" && as_dir=.
1653 for ac_exec_ext in '' $ac_executable_extensions; do
1654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1655 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1664 STRIP=$ac_cv_prog_STRIP
1665 if test -n "$STRIP"; then
1666 echo "$as_me:$LINENO: result: $STRIP" >&5
1667 echo "${ECHO_T}$STRIP" >&6
1669 echo "$as_me:$LINENO: result: no" >&5
1670 echo "${ECHO_T}no" >&6
1674 if test -z "$ac_cv_prog_STRIP"; then
1676 # Extract the first word of "strip", so it can be a program name with args.
1677 set dummy strip; ac_word=$2
1678 echo "$as_me:$LINENO: checking for $ac_word" >&5
1679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1680 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1681 echo $ECHO_N "(cached) $ECHO_C" >&6
1683 if test -n "$ac_ct_STRIP"; then
1684 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1690 test -z "$as_dir" && as_dir=.
1691 for ac_exec_ext in '' $ac_executable_extensions; do
1692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1693 ac_cv_prog_ac_ct_STRIP="strip"
1694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1700 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1703 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1704 if test -n "$ac_ct_STRIP"; then
1705 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1706 echo "${ECHO_T}$ac_ct_STRIP" >&6
1708 echo "$as_me:$LINENO: result: no" >&5
1709 echo "${ECHO_T}no" >&6
1714 STRIP="$ac_cv_prog_STRIP"
1718 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1720 # We need awk for the "check" target. The system "awk" is bad on
1728 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"
1730 # Make sure we can run config.sub.
1731 $ac_config_sub sun4 >/dev/null 2>&1 ||
1732 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1733 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1734 { (exit 1); exit 1; }; }
1736 echo "$as_me:$LINENO: checking build system type" >&5
1737 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1738 if test "${ac_cv_build+set}" = set; then
1739 echo $ECHO_N "(cached) $ECHO_C" >&6
1741 ac_cv_build_alias=$build_alias
1742 test -z "$ac_cv_build_alias" &&
1743 ac_cv_build_alias=`$ac_config_guess`
1744 test -z "$ac_cv_build_alias" &&
1745 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1746 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1747 { (exit 1); exit 1; }; }
1748 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1749 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1750 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1751 { (exit 1); exit 1; }; }
1754 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1755 echo "${ECHO_T}$ac_cv_build" >&6
1757 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1758 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1759 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1762 echo "$as_me:$LINENO: checking host system type" >&5
1763 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1764 if test "${ac_cv_host+set}" = set; then
1765 echo $ECHO_N "(cached) $ECHO_C" >&6
1767 ac_cv_host_alias=$host_alias
1768 test -z "$ac_cv_host_alias" &&
1769 ac_cv_host_alias=$ac_cv_build_alias
1770 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1771 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1772 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1773 { (exit 1); exit 1; }; }
1776 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1777 echo "${ECHO_T}$ac_cv_host" >&6
1779 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1780 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1781 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1785 echo "$as_me:$LINENO: checking for prefix" >&5
1786 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1787 if test x$prefix = xNONE; then
1788 mutt_cv_prefix=$ac_default_prefix
1790 mutt_cv_prefix=$prefix
1792 echo "$as_me:$LINENO: result: $mutt_cv_prefix" >&5
1793 echo "${ECHO_T}$mutt_cv_prefix" >&6
1796 ac_cpp='$CPP $CPPFLAGS'
1797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1800 if test -n "$ac_tool_prefix"; then
1801 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1802 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1803 echo "$as_me:$LINENO: checking for $ac_word" >&5
1804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1805 if test "${ac_cv_prog_CC+set}" = set; then
1806 echo $ECHO_N "(cached) $ECHO_C" >&6
1808 if test -n "$CC"; then
1809 ac_cv_prog_CC="$CC" # Let the user override the test.
1811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1815 test -z "$as_dir" && as_dir=.
1816 for ac_exec_ext in '' $ac_executable_extensions; do
1817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1818 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1828 if test -n "$CC"; then
1829 echo "$as_me:$LINENO: result: $CC" >&5
1830 echo "${ECHO_T}$CC" >&6
1832 echo "$as_me:$LINENO: result: no" >&5
1833 echo "${ECHO_T}no" >&6
1837 if test -z "$ac_cv_prog_CC"; then
1839 # Extract the first word of "gcc", so it can be a program name with args.
1840 set dummy gcc; ac_word=$2
1841 echo "$as_me:$LINENO: checking for $ac_word" >&5
1842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1843 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1844 echo $ECHO_N "(cached) $ECHO_C" >&6
1846 if test -n "$ac_ct_CC"; then
1847 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1853 test -z "$as_dir" && as_dir=.
1854 for ac_exec_ext in '' $ac_executable_extensions; do
1855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1856 ac_cv_prog_ac_ct_CC="gcc"
1857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1865 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1866 if test -n "$ac_ct_CC"; then
1867 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1868 echo "${ECHO_T}$ac_ct_CC" >&6
1870 echo "$as_me:$LINENO: result: no" >&5
1871 echo "${ECHO_T}no" >&6
1879 if test -z "$CC"; then
1880 if test -n "$ac_tool_prefix"; then
1881 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1882 set dummy ${ac_tool_prefix}cc; ac_word=$2
1883 echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885 if test "${ac_cv_prog_CC+set}" = set; then
1886 echo $ECHO_N "(cached) $ECHO_C" >&6
1888 if test -n "$CC"; then
1889 ac_cv_prog_CC="$CC" # Let the user override the test.
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1895 test -z "$as_dir" && as_dir=.
1896 for ac_exec_ext in '' $ac_executable_extensions; do
1897 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898 ac_cv_prog_CC="${ac_tool_prefix}cc"
1899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1908 if test -n "$CC"; then
1909 echo "$as_me:$LINENO: result: $CC" >&5
1910 echo "${ECHO_T}$CC" >&6
1912 echo "$as_me:$LINENO: result: no" >&5
1913 echo "${ECHO_T}no" >&6
1917 if test -z "$ac_cv_prog_CC"; then
1919 # Extract the first word of "cc", so it can be a program name with args.
1920 set dummy cc; ac_word=$2
1921 echo "$as_me:$LINENO: checking for $ac_word" >&5
1922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1923 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1924 echo $ECHO_N "(cached) $ECHO_C" >&6
1926 if test -n "$ac_ct_CC"; then
1927 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1933 test -z "$as_dir" && as_dir=.
1934 for ac_exec_ext in '' $ac_executable_extensions; do
1935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1936 ac_cv_prog_ac_ct_CC="cc"
1937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1945 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1946 if test -n "$ac_ct_CC"; then
1947 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1948 echo "${ECHO_T}$ac_ct_CC" >&6
1950 echo "$as_me:$LINENO: result: no" >&5
1951 echo "${ECHO_T}no" >&6
1960 if test -z "$CC"; then
1961 # Extract the first word of "cc", so it can be a program name with args.
1962 set dummy cc; ac_word=$2
1963 echo "$as_me:$LINENO: checking for $ac_word" >&5
1964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1965 if test "${ac_cv_prog_CC+set}" = set; then
1966 echo $ECHO_N "(cached) $ECHO_C" >&6
1968 if test -n "$CC"; then
1969 ac_cv_prog_CC="$CC" # Let the user override the test.
1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1976 test -z "$as_dir" && as_dir=.
1977 for ac_exec_ext in '' $ac_executable_extensions; do
1978 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1979 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1980 ac_prog_rejected=yes
1984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990 if test $ac_prog_rejected = yes; then
1991 # We found a bogon in the path, so make sure we never use it.
1992 set dummy $ac_cv_prog_CC
1994 if test $# != 0; then
1995 # We chose a different compiler from the bogus one.
1996 # However, it has the same basename, so the bogon will be chosen
1997 # first if we set CC to just the basename; use the full file name.
1999 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2005 if test -n "$CC"; then
2006 echo "$as_me:$LINENO: result: $CC" >&5
2007 echo "${ECHO_T}$CC" >&6
2009 echo "$as_me:$LINENO: result: no" >&5
2010 echo "${ECHO_T}no" >&6
2014 if test -z "$CC"; then
2015 if test -n "$ac_tool_prefix"; then
2018 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2019 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2020 echo "$as_me:$LINENO: checking for $ac_word" >&5
2021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2022 if test "${ac_cv_prog_CC+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2025 if test -n "$CC"; then
2026 ac_cv_prog_CC="$CC" # Let the user override the test.
2028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032 test -z "$as_dir" && as_dir=.
2033 for ac_exec_ext in '' $ac_executable_extensions; do
2034 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2035 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045 if test -n "$CC"; then
2046 echo "$as_me:$LINENO: result: $CC" >&5
2047 echo "${ECHO_T}$CC" >&6
2049 echo "$as_me:$LINENO: result: no" >&5
2050 echo "${ECHO_T}no" >&6
2053 test -n "$CC" && break
2056 if test -z "$CC"; then
2060 # Extract the first word of "$ac_prog", so it can be a program name with args.
2061 set dummy $ac_prog; ac_word=$2
2062 echo "$as_me:$LINENO: checking for $ac_word" >&5
2063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2064 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2065 echo $ECHO_N "(cached) $ECHO_C" >&6
2067 if test -n "$ac_ct_CC"; then
2068 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074 test -z "$as_dir" && as_dir=.
2075 for ac_exec_ext in '' $ac_executable_extensions; do
2076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2077 ac_cv_prog_ac_ct_CC="$ac_prog"
2078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2086 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2087 if test -n "$ac_ct_CC"; then
2088 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2089 echo "${ECHO_T}$ac_ct_CC" >&6
2091 echo "$as_me:$LINENO: result: no" >&5
2092 echo "${ECHO_T}no" >&6
2095 test -n "$ac_ct_CC" && break
2104 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2105 See \`config.log' for more details." >&5
2106 echo "$as_me: error: no acceptable C compiler found in \$PATH
2107 See \`config.log' for more details." >&2;}
2108 { (exit 1); exit 1; }; }
2110 # Provide some information about the compiler.
2111 echo "$as_me:$LINENO:" \
2112 "checking for C compiler version" >&5
2113 ac_compiler=`set X $ac_compile; echo $2`
2114 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2115 (eval $ac_compiler --version </dev/null >&5) 2>&5
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }
2119 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2120 (eval $ac_compiler -v </dev/null >&5) 2>&5
2122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123 (exit $ac_status); }
2124 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2125 (eval $ac_compiler -V </dev/null >&5) 2>&5
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }
2130 cat >conftest.$ac_ext <<_ACEOF
2131 #line $LINENO "configure"
2134 cat confdefs.h >>conftest.$ac_ext
2135 cat >>conftest.$ac_ext <<_ACEOF
2136 /* end confdefs.h. */
2146 ac_clean_files_save=$ac_clean_files
2147 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2148 # Try to create an executable without -o first, disregard a.out.
2149 # It will help us diagnose broken compilers, and finding out an intuition
2151 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2152 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2153 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2154 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2155 (eval $ac_link_default) 2>&5
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }; then
2159 # Find the output, starting from the most likely. This scheme is
2160 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2163 # Be careful to initialize this variable, since it used to be cached.
2164 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2166 # b.out is created by i960 compilers.
2167 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2169 test -f "$ac_file" || continue
2171 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2174 # This is the source file.
2177 # We found the default executable, but exeext='' is most
2181 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2182 # FIXME: I believe we export ac_cv_exeext for Libtool,
2183 # but it would be cool to find out if it's true. Does anybody
2184 # maintain Libtool? --akim.
2192 echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.$ac_ext >&5
2195 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2196 See \`config.log' for more details." >&5
2197 echo "$as_me: error: C compiler cannot create executables
2198 See \`config.log' for more details." >&2;}
2199 { (exit 77); exit 77; }; }
2202 ac_exeext=$ac_cv_exeext
2203 echo "$as_me:$LINENO: result: $ac_file" >&5
2204 echo "${ECHO_T}$ac_file" >&6
2206 # Check the compiler produces executables we can run. If not, either
2207 # the compiler is broken, or we cross compile.
2208 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2209 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2210 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2211 # If not cross compiling, check that we can run a simple program.
2212 if test "$cross_compiling" != yes; then
2213 if { ac_try='./$ac_file'
2214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; }; then
2221 if test "$cross_compiling" = maybe; then
2224 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2225 If you meant to cross compile, use \`--host'.
2226 See \`config.log' for more details." >&5
2227 echo "$as_me: error: cannot run C compiled programs.
2228 If you meant to cross compile, use \`--host'.
2229 See \`config.log' for more details." >&2;}
2230 { (exit 1); exit 1; }; }
2234 echo "$as_me:$LINENO: result: yes" >&5
2235 echo "${ECHO_T}yes" >&6
2237 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2238 ac_clean_files=$ac_clean_files_save
2239 # Check the compiler produces executables we can run. If not, either
2240 # the compiler is broken, or we cross compile.
2241 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2242 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2243 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2244 echo "${ECHO_T}$cross_compiling" >&6
2246 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2247 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2249 (eval $ac_link) 2>&5
2251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252 (exit $ac_status); }; then
2253 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2254 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2255 # work properly (i.e., refer to `conftest.exe'), while it won't with
2257 for ac_file in conftest.exe conftest conftest.*; do
2258 test -f "$ac_file" || continue
2260 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2261 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2268 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2269 See \`config.log' for more details." >&5
2270 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2271 See \`config.log' for more details." >&2;}
2272 { (exit 1); exit 1; }; }
2275 rm -f conftest$ac_cv_exeext
2276 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2277 echo "${ECHO_T}$ac_cv_exeext" >&6
2279 rm -f conftest.$ac_ext
2280 EXEEXT=$ac_cv_exeext
2282 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2283 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2284 if test "${ac_cv_objext+set}" = set; then
2285 echo $ECHO_N "(cached) $ECHO_C" >&6
2287 cat >conftest.$ac_ext <<_ACEOF
2288 #line $LINENO "configure"
2291 cat confdefs.h >>conftest.$ac_ext
2292 cat >>conftest.$ac_ext <<_ACEOF
2293 /* end confdefs.h. */
2303 rm -f conftest.o conftest.obj
2304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2305 (eval $ac_compile) 2>&5
2307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308 (exit $ac_status); }; then
2309 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2311 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2312 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2317 echo "$as_me: failed program was:" >&5
2318 sed 's/^/| /' conftest.$ac_ext >&5
2320 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2321 See \`config.log' for more details." >&5
2322 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2323 See \`config.log' for more details." >&2;}
2324 { (exit 1); exit 1; }; }
2327 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2329 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2330 echo "${ECHO_T}$ac_cv_objext" >&6
2331 OBJEXT=$ac_cv_objext
2333 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2334 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2335 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2336 echo $ECHO_N "(cached) $ECHO_C" >&6
2338 cat >conftest.$ac_ext <<_ACEOF
2339 #line $LINENO "configure"
2342 cat confdefs.h >>conftest.$ac_ext
2343 cat >>conftest.$ac_ext <<_ACEOF
2344 /* end confdefs.h. */
2357 rm -f conftest.$ac_objext
2358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2359 (eval $ac_compile) 2>&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); } &&
2363 { ac_try='test -s conftest.$ac_objext'
2364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368 (exit $ac_status); }; }; then
2371 echo "$as_me: failed program was:" >&5
2372 sed 's/^/| /' conftest.$ac_ext >&5
2376 rm -f conftest.$ac_objext conftest.$ac_ext
2377 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2380 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2381 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2382 GCC=`test $ac_compiler_gnu = yes && echo yes`
2383 ac_test_CFLAGS=${CFLAGS+set}
2384 ac_save_CFLAGS=$CFLAGS
2386 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2387 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2388 if test "${ac_cv_prog_cc_g+set}" = set; then
2389 echo $ECHO_N "(cached) $ECHO_C" >&6
2391 cat >conftest.$ac_ext <<_ACEOF
2392 #line $LINENO "configure"
2395 cat confdefs.h >>conftest.$ac_ext
2396 cat >>conftest.$ac_ext <<_ACEOF
2397 /* end confdefs.h. */
2407 rm -f conftest.$ac_objext
2408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2409 (eval $ac_compile) 2>&5
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); } &&
2413 { ac_try='test -s conftest.$ac_objext'
2414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418 (exit $ac_status); }; }; then
2421 echo "$as_me: failed program was:" >&5
2422 sed 's/^/| /' conftest.$ac_ext >&5
2426 rm -f conftest.$ac_objext conftest.$ac_ext
2428 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2429 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2430 if test "$ac_test_CFLAGS" = set; then
2431 CFLAGS=$ac_save_CFLAGS
2432 elif test $ac_cv_prog_cc_g = yes; then
2433 if test "$GCC" = yes; then
2439 if test "$GCC" = yes; then
2445 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2446 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2447 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2448 echo $ECHO_N "(cached) $ECHO_C" >&6
2450 ac_cv_prog_cc_stdc=no
2452 cat >conftest.$ac_ext <<_ACEOF
2453 #line $LINENO "configure"
2456 cat confdefs.h >>conftest.$ac_ext
2457 cat >>conftest.$ac_ext <<_ACEOF
2458 /* end confdefs.h. */
2461 #include <sys/types.h>
2462 #include <sys/stat.h>
2463 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2464 struct buf { int x; };
2465 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2466 static char *e (p, i)
2472 static char *f (char * (*g) (char **, int), char **p, ...)
2477 s = g (p, va_arg (v,int));
2481 int test (int i, double x);
2482 struct s1 {int (*f) (int a);};
2483 struct s2 {int (*f) (double a);};
2484 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2490 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2495 # Don't try gcc -ansi; that turns off useful extensions and
2496 # breaks some systems' header files.
2497 # AIX -qlanglvl=ansi
2498 # Ultrix and OSF/1 -std1
2499 # HP-UX 10.20 and later -Ae
2500 # HP-UX older versions -Aa -D_HPUX_SOURCE
2501 # SVR4 -Xc -D__EXTENSIONS__
2502 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2504 CC="$ac_save_CC $ac_arg"
2505 rm -f conftest.$ac_objext
2506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2507 (eval $ac_compile) 2>&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); } &&
2511 { ac_try='test -s conftest.$ac_objext'
2512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; }; then
2517 ac_cv_prog_cc_stdc=$ac_arg
2520 echo "$as_me: failed program was:" >&5
2521 sed 's/^/| /' conftest.$ac_ext >&5
2524 rm -f conftest.$ac_objext
2526 rm -f conftest.$ac_ext conftest.$ac_objext
2531 case "x$ac_cv_prog_cc_stdc" in
2533 echo "$as_me:$LINENO: result: none needed" >&5
2534 echo "${ECHO_T}none needed" >&6 ;;
2536 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2537 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2538 CC="$CC $ac_cv_prog_cc_stdc" ;;
2541 # Some people use a C++ compiler to compile C. Since we use `exit',
2542 # in C++ we need to declare it. In case someone uses the same compiler
2543 # for both compiling C and C++ we need to have the C++ compiler decide
2544 # the declaration of exit, since it's the most demanding environment.
2545 cat >conftest.$ac_ext <<_ACEOF
2550 rm -f conftest.$ac_objext
2551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2552 (eval $ac_compile) 2>&5
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); } &&
2556 { ac_try='test -s conftest.$ac_objext'
2557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561 (exit $ac_status); }; }; then
2562 for ac_declaration in \
2564 '#include <stdlib.h>' \
2565 'extern "C" void std::exit (int) throw (); using std::exit;' \
2566 'extern "C" void std::exit (int); using std::exit;' \
2567 'extern "C" void exit (int) throw ();' \
2568 'extern "C" void exit (int);' \
2571 cat >conftest.$ac_ext <<_ACEOF
2572 #line $LINENO "configure"
2575 cat confdefs.h >>conftest.$ac_ext
2576 cat >>conftest.$ac_ext <<_ACEOF
2577 /* end confdefs.h. */
2588 rm -f conftest.$ac_objext
2589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2590 (eval $ac_compile) 2>&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); } &&
2594 { ac_try='test -s conftest.$ac_objext'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; }; then
2602 echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2607 rm -f conftest.$ac_objext conftest.$ac_ext
2608 cat >conftest.$ac_ext <<_ACEOF
2609 #line $LINENO "configure"
2612 cat confdefs.h >>conftest.$ac_ext
2613 cat >>conftest.$ac_ext <<_ACEOF
2614 /* end confdefs.h. */
2624 rm -f conftest.$ac_objext
2625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2626 (eval $ac_compile) 2>&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); } &&
2630 { ac_try='test -s conftest.$ac_objext'
2631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); }; }; then
2638 echo "$as_me: failed program was:" >&5
2639 sed 's/^/| /' conftest.$ac_ext >&5
2642 rm -f conftest.$ac_objext conftest.$ac_ext
2645 if test -n "$ac_declaration"; then
2646 echo '#ifdef __cplusplus' >>confdefs.h
2647 echo $ac_declaration >>confdefs.h
2648 echo '#endif' >>confdefs.h
2652 echo "$as_me: failed program was:" >&5
2653 sed 's/^/| /' conftest.$ac_ext >&5
2656 rm -f conftest.$ac_objext conftest.$ac_ext
2658 ac_cpp='$CPP $CPPFLAGS'
2659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2662 DEPDIR="${am__leading_dot}deps"
2664 ac_config_commands="$ac_config_commands depfiles"
2667 am_make=${MAKE-make}
2668 cat > confinc << 'END'
2673 # If we don't find an include directive, just comment out the code.
2674 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2675 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2679 # First try GNU make style include.
2680 echo "include confinc" > confmf
2681 # We grep out `Entering directory' and `Leaving directory'
2682 # messages which can occur if `w' ends up in MAKEFLAGS.
2683 # In particular we don't look at `^make:' because GNU make might
2684 # be invoked under some other name (usually "gmake"), in which
2685 # case it prints its new name instead of `make'.
2686 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2691 # Now try BSD make style include.
2692 if test "$am__include" = "#"; then
2693 echo '.include "confinc"' > confmf
2694 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2695 am__include=.include
2702 echo "$as_me:$LINENO: result: $_am_result" >&5
2703 echo "${ECHO_T}$_am_result" >&6
2704 rm -f confinc confmf
2706 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2707 if test "${enable_dependency_tracking+set}" = set; then
2708 enableval="$enable_dependency_tracking"
2711 if test "x$enable_dependency_tracking" != xno; then
2712 am_depcomp="$ac_aux_dir/depcomp"
2717 if test "x$enable_dependency_tracking" != xno; then
2728 depcc="$CC" am_compiler_list=
2730 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2731 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2732 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2733 echo $ECHO_N "(cached) $ECHO_C" >&6
2735 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2736 # We make a subdir and do the tests there. Otherwise we can end up
2737 # making bogus files that we don't know about and never remove. For
2738 # instance it was reported that on HP-UX the gcc test will end up
2739 # making a dummy file named `D' -- because `-MD' means `put the output
2742 # Copy depcomp to subdir because otherwise we won't find it if we're
2743 # using a relative directory.
2744 cp "$am_depcomp" conftest.dir
2746 # We will build objects and dependencies in a subdirectory because
2747 # it helps to detect inapplicable dependency modes. For instance
2748 # both Tru64's cc and ICC support -MD to output dependencies as a
2749 # side effect of compilation, but ICC will put the dependencies in
2750 # the current directory while Tru64 will put them in the object
2754 am_cv_CC_dependencies_compiler_type=none
2755 if test "$am_compiler_list" = ""; then
2756 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2758 for depmode in $am_compiler_list; do
2759 # Setup a source with many dependencies, because some compilers
2760 # like to wrap large dependency lists on column 80 (with \), and
2761 # we should not choose a depcomp mode which is confused by this.
2763 # We need to recreate these files for each test, as the compiler may
2764 # overwrite some of them when testing with obscure command lines.
2765 # This happens at least with the AIX C compiler.
2767 for i in 1 2 3 4 5 6; do
2768 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2771 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2775 # after this tag, mechanisms are not by side-effect, so they'll
2776 # only be used when explicitly requested
2777 if test "x$enable_dependency_tracking" = xyes; then
2785 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2786 # mode. It turns out that the SunPro C++ compiler does not properly
2787 # handle `-M -o', and we need to detect this.
2788 if depmode=$depmode \
2789 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2790 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2791 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2792 >/dev/null 2>conftest.err &&
2793 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2794 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2795 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2796 # icc doesn't choke on unknown options, it will just issue warnings
2797 # (even with -Werror). So we grep stderr for any message
2798 # that says an option was ignored.
2799 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2800 am_cv_CC_dependencies_compiler_type=$depmode
2809 am_cv_CC_dependencies_compiler_type=none
2813 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2814 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2815 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2820 test "x$enable_dependency_tracking" != xno \
2821 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2823 am__fastdepCC_FALSE='#'
2825 am__fastdepCC_TRUE='#'
2826 am__fastdepCC_FALSE=
2832 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2833 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2834 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2835 echo $ECHO_N "(cached) $ECHO_C" >&6
2837 ac_check_lib_save_LIBS=$LIBS
2838 LIBS="-lcposix $LIBS"
2839 cat >conftest.$ac_ext <<_ACEOF
2840 #line $LINENO "configure"
2843 cat confdefs.h >>conftest.$ac_ext
2844 cat >>conftest.$ac_ext <<_ACEOF
2845 /* end confdefs.h. */
2847 /* Override any gcc2 internal prototype to avoid an error. */
2851 /* We use char because int might match the return type of a gcc2
2852 builtin and then its argument prototype would still apply. */
2862 rm -f conftest.$ac_objext conftest$ac_exeext
2863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2864 (eval $ac_link) 2>&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); } &&
2868 { ac_try='test -s conftest$ac_exeext'
2869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; }; then
2874 ac_cv_lib_cposix_strerror=yes
2876 echo "$as_me: failed program was:" >&5
2877 sed 's/^/| /' conftest.$ac_ext >&5
2879 ac_cv_lib_cposix_strerror=no
2881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2882 LIBS=$ac_check_lib_save_LIBS
2884 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2885 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2886 if test $ac_cv_lib_cposix_strerror = yes; then
2887 LIBS="$LIBS -lcposix"
2895 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2896 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2897 if test "${am_cv_prog_cc_stdc+set}" = set; then
2898 echo $ECHO_N "(cached) $ECHO_C" >&6
2900 am_cv_prog_cc_stdc=no
2902 # Don't try gcc -ansi; that turns off useful extensions and
2903 # breaks some systems' header files.
2904 # AIX -qlanglvl=ansi
2905 # Ultrix and OSF/1 -std1
2906 # HP-UX 10.20 and later -Ae
2907 # HP-UX older versions -Aa -D_HPUX_SOURCE
2908 # SVR4 -Xc -D__EXTENSIONS__
2909 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2911 CC="$ac_save_CC $ac_arg"
2912 cat >conftest.$ac_ext <<_ACEOF
2913 #line $LINENO "configure"
2916 cat confdefs.h >>conftest.$ac_ext
2917 cat >>conftest.$ac_ext <<_ACEOF
2918 /* end confdefs.h. */
2921 #include <sys/types.h>
2922 #include <sys/stat.h>
2923 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2924 struct buf { int x; };
2925 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2926 static char *e (p, i)
2932 static char *f (char * (*g) (char **, int), char **p, ...)
2937 s = g (p, va_arg (v,int));
2941 int test (int i, double x);
2942 struct s1 {int (*f) (int a);};
2943 struct s2 {int (*f) (double a);};
2944 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2952 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2958 rm -f conftest.$ac_objext
2959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2960 (eval $ac_compile) 2>&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); } &&
2964 { ac_try='test -s conftest.$ac_objext'
2965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; }; then
2970 am_cv_prog_cc_stdc="$ac_arg"; break
2972 echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.$ac_ext >&5
2976 rm -f conftest.$ac_objext conftest.$ac_ext
2982 if test -z "$am_cv_prog_cc_stdc"; then
2983 echo "$as_me:$LINENO: result: none needed" >&5
2984 echo "${ECHO_T}none needed" >&6
2986 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2987 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2989 case "x$am_cv_prog_cc_stdc" in
2991 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2995 ac_cpp='$CPP $CPPFLAGS'
2996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2999 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3000 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3001 # On Suns, sometimes $CPP names a directory.
3002 if test -n "$CPP" && test -d "$CPP"; then
3005 if test -z "$CPP"; then
3006 if test "${ac_cv_prog_CPP+set}" = set; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
3009 # Double quotes because CPP needs to be expanded
3010 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3013 for ac_c_preproc_warn_flag in '' yes
3015 # Use a header file that comes with gcc, so configuring glibc
3016 # with a fresh cross-compiler works.
3017 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3018 # <limits.h> exists even on freestanding compilers.
3019 # On the NeXT, cc -E runs the code through the compiler's parser,
3020 # not just through cpp. "Syntax error" is here to catch this case.
3021 cat >conftest.$ac_ext <<_ACEOF
3022 #line $LINENO "configure"
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3029 # include <limits.h>
3031 # include <assert.h>
3035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3036 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3038 grep -v '^ *+' conftest.er1 >conftest.err
3040 cat conftest.err >&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); } >/dev/null; then
3043 if test -s conftest.err; then
3044 ac_cpp_err=$ac_c_preproc_warn_flag
3051 if test -z "$ac_cpp_err"; then
3054 echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3057 # Broken: fails on valid input.
3060 rm -f conftest.err conftest.$ac_ext
3062 # OK, works on sane cases. Now check whether non-existent headers
3063 # can be detected and how.
3064 cat >conftest.$ac_ext <<_ACEOF
3065 #line $LINENO "configure"
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h. */
3071 #include <ac_nonexistent.h>
3073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3074 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3076 grep -v '^ *+' conftest.er1 >conftest.err
3078 cat conftest.err >&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); } >/dev/null; then
3081 if test -s conftest.err; then
3082 ac_cpp_err=$ac_c_preproc_warn_flag
3089 if test -z "$ac_cpp_err"; then
3090 # Broken: success on invalid input.
3093 echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3096 # Passes both tests.
3100 rm -f conftest.err conftest.$ac_ext
3103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3104 rm -f conftest.err conftest.$ac_ext
3105 if $ac_preproc_ok; then
3117 echo "$as_me:$LINENO: result: $CPP" >&5
3118 echo "${ECHO_T}$CPP" >&6
3120 for ac_c_preproc_warn_flag in '' yes
3122 # Use a header file that comes with gcc, so configuring glibc
3123 # with a fresh cross-compiler works.
3124 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3125 # <limits.h> exists even on freestanding compilers.
3126 # On the NeXT, cc -E runs the code through the compiler's parser,
3127 # not just through cpp. "Syntax error" is here to catch this case.
3128 cat >conftest.$ac_ext <<_ACEOF
3129 #line $LINENO "configure"
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h. */
3136 # include <limits.h>
3138 # include <assert.h>
3142 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3145 grep -v '^ *+' conftest.er1 >conftest.err
3147 cat conftest.err >&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); } >/dev/null; then
3150 if test -s conftest.err; then
3151 ac_cpp_err=$ac_c_preproc_warn_flag
3158 if test -z "$ac_cpp_err"; then
3161 echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.$ac_ext >&5
3164 # Broken: fails on valid input.
3167 rm -f conftest.err conftest.$ac_ext
3169 # OK, works on sane cases. Now check whether non-existent headers
3170 # can be detected and how.
3171 cat >conftest.$ac_ext <<_ACEOF
3172 #line $LINENO "configure"
3175 cat confdefs.h >>conftest.$ac_ext
3176 cat >>conftest.$ac_ext <<_ACEOF
3177 /* end confdefs.h. */
3178 #include <ac_nonexistent.h>
3180 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3181 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3183 grep -v '^ *+' conftest.er1 >conftest.err
3185 cat conftest.err >&5
3186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); } >/dev/null; then
3188 if test -s conftest.err; then
3189 ac_cpp_err=$ac_c_preproc_warn_flag
3196 if test -z "$ac_cpp_err"; then
3197 # Broken: success on invalid input.
3200 echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.$ac_ext >&5
3203 # Passes both tests.
3207 rm -f conftest.err conftest.$ac_ext
3210 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3211 rm -f conftest.err conftest.$ac_ext
3212 if $ac_preproc_ok; then
3215 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3216 See \`config.log' for more details." >&5
3217 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3218 See \`config.log' for more details." >&2;}
3219 { (exit 1); exit 1; }; }
3223 ac_cpp='$CPP $CPPFLAGS'
3224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3229 echo "$as_me:$LINENO: checking for egrep" >&5
3230 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3231 if test "${ac_cv_prog_egrep+set}" = set; then
3232 echo $ECHO_N "(cached) $ECHO_C" >&6
3234 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3235 then ac_cv_prog_egrep='grep -E'
3236 else ac_cv_prog_egrep='egrep'
3239 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3240 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3241 EGREP=$ac_cv_prog_egrep
3244 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3254 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3255 inttypes.h stdint.h unistd.h
3257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3258 echo "$as_me:$LINENO: checking for $ac_header" >&5
3259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3263 cat >conftest.$ac_ext <<_ACEOF
3264 #line $LINENO "configure"
3267 cat confdefs.h >>conftest.$ac_ext
3268 cat >>conftest.$ac_ext <<_ACEOF
3269 /* end confdefs.h. */
3270 $ac_includes_default
3272 #include <$ac_header>
3274 rm -f conftest.$ac_objext
3275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3276 (eval $ac_compile) 2>&5
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); } &&
3280 { ac_try='test -s conftest.$ac_objext'
3281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); }; }; then
3286 eval "$as_ac_Header=yes"
3288 echo "$as_me: failed program was:" >&5
3289 sed 's/^/| /' conftest.$ac_ext >&5
3291 eval "$as_ac_Header=no"
3293 rm -f conftest.$ac_objext conftest.$ac_ext
3295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3298 cat >>confdefs.h <<_ACEOF
3299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3309 echo "$as_me:$LINENO: checking for function prototypes" >&5
3310 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3311 if test "$am_cv_prog_cc_stdc" != no; then
3312 echo "$as_me:$LINENO: result: yes" >&5
3313 echo "${ECHO_T}yes" >&6
3315 cat >>confdefs.h <<\_ACEOF
3316 #define PROTOTYPES 1
3321 echo "$as_me:$LINENO: result: no" >&5
3322 echo "${ECHO_T}no" >&6
3323 U=_ ANSI2KNR=./ansi2knr
3325 # Ensure some checks needed by ansi2knr itself.
3326 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3327 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3328 if test "${ac_cv_header_stdc+set}" = set; then
3329 echo $ECHO_N "(cached) $ECHO_C" >&6
3331 cat >conftest.$ac_ext <<_ACEOF
3332 #line $LINENO "configure"
3335 cat confdefs.h >>conftest.$ac_ext
3336 cat >>conftest.$ac_ext <<_ACEOF
3337 /* end confdefs.h. */
3351 rm -f conftest.$ac_objext
3352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3353 (eval $ac_compile) 2>&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); } &&
3357 { ac_try='test -s conftest.$ac_objext'
3358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); }; }; then
3363 ac_cv_header_stdc=yes
3365 echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3368 ac_cv_header_stdc=no
3370 rm -f conftest.$ac_objext conftest.$ac_ext
3372 if test $ac_cv_header_stdc = yes; then
3373 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3374 cat >conftest.$ac_ext <<_ACEOF
3375 #line $LINENO "configure"
3378 cat confdefs.h >>conftest.$ac_ext
3379 cat >>conftest.$ac_ext <<_ACEOF
3380 /* end confdefs.h. */
3384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3385 $EGREP "memchr" >/dev/null 2>&1; then
3388 ac_cv_header_stdc=no
3394 if test $ac_cv_header_stdc = yes; then
3395 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3396 cat >conftest.$ac_ext <<_ACEOF
3397 #line $LINENO "configure"
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h. */
3406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3407 $EGREP "free" >/dev/null 2>&1; then
3410 ac_cv_header_stdc=no
3416 if test $ac_cv_header_stdc = yes; then
3417 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3418 if test "$cross_compiling" = yes; then
3421 cat >conftest.$ac_ext <<_ACEOF
3422 #line $LINENO "configure"
3425 cat confdefs.h >>conftest.$ac_ext
3426 cat >>conftest.$ac_ext <<_ACEOF
3427 /* end confdefs.h. */
3429 #if ((' ' & 0x0FF) == 0x020)
3430 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3431 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3433 # define ISLOWER(c) \
3434 (('a' <= (c) && (c) <= 'i') \
3435 || ('j' <= (c) && (c) <= 'r') \
3436 || ('s' <= (c) && (c) <= 'z'))
3437 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3440 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3445 for (i = 0; i < 256; i++)
3446 if (XOR (islower (i), ISLOWER (i))
3447 || toupper (i) != TOUPPER (i))
3452 rm -f conftest$ac_exeext
3453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3454 (eval $ac_link) 2>&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); }; }; then
3465 echo "$as_me: program exited with status $ac_status" >&5
3466 echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3470 ac_cv_header_stdc=no
3472 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3476 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3477 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3478 if test $ac_cv_header_stdc = yes; then
3480 cat >>confdefs.h <<\_ACEOF
3481 #define STDC_HEADERS 1
3487 for ac_header in string.h
3489 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3491 echo "$as_me:$LINENO: checking for $ac_header" >&5
3492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3494 echo $ECHO_N "(cached) $ECHO_C" >&6
3496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3499 # Is the header compilable?
3500 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3501 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3502 cat >conftest.$ac_ext <<_ACEOF
3503 #line $LINENO "configure"
3506 cat confdefs.h >>conftest.$ac_ext
3507 cat >>conftest.$ac_ext <<_ACEOF
3508 /* end confdefs.h. */
3509 $ac_includes_default
3510 #include <$ac_header>
3512 rm -f conftest.$ac_objext
3513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3514 (eval $ac_compile) 2>&5
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); } &&
3518 { ac_try='test -s conftest.$ac_objext'
3519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); }; }; then
3524 ac_header_compiler=yes
3526 echo "$as_me: failed program was:" >&5
3527 sed 's/^/| /' conftest.$ac_ext >&5
3529 ac_header_compiler=no
3531 rm -f conftest.$ac_objext conftest.$ac_ext
3532 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3533 echo "${ECHO_T}$ac_header_compiler" >&6
3535 # Is the header present?
3536 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3537 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3538 cat >conftest.$ac_ext <<_ACEOF
3539 #line $LINENO "configure"
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h. */
3545 #include <$ac_header>
3547 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3548 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3550 grep -v '^ *+' conftest.er1 >conftest.err
3552 cat conftest.err >&5
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); } >/dev/null; then
3555 if test -s conftest.err; then
3556 ac_cpp_err=$ac_c_preproc_warn_flag
3563 if test -z "$ac_cpp_err"; then
3564 ac_header_preproc=yes
3566 echo "$as_me: failed program was:" >&5
3567 sed 's/^/| /' conftest.$ac_ext >&5
3569 ac_header_preproc=no
3571 rm -f conftest.err conftest.$ac_ext
3572 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3573 echo "${ECHO_T}$ac_header_preproc" >&6
3575 # So? What about this header?
3576 case $ac_header_compiler:$ac_header_preproc in
3578 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3579 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3580 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3584 ## ------------------------------------ ##
3585 ## Report this to bug-autoconf@gnu.org. ##
3586 ## ------------------------------------ ##
3589 sed "s/^/$as_me: WARNING: /" >&2
3592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3600 ## ------------------------------------ ##
3601 ## Report this to bug-autoconf@gnu.org. ##
3602 ## ------------------------------------ ##
3605 sed "s/^/$as_me: WARNING: /" >&2
3608 echo "$as_me:$LINENO: checking for $ac_header" >&5
3609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3611 echo $ECHO_N "(cached) $ECHO_C" >&6
3613 eval "$as_ac_Header=$ac_header_preproc"
3615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3616 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3620 cat >>confdefs.h <<_ACEOF
3621 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3629 if test "x$U" != "x"; then
3630 { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
3631 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
3632 { (exit 1); exit 1; }; }
3635 ac_cpp='$CPP $CPPFLAGS'
3636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3639 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3640 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3641 # On Suns, sometimes $CPP names a directory.
3642 if test -n "$CPP" && test -d "$CPP"; then
3645 if test -z "$CPP"; then
3646 if test "${ac_cv_prog_CPP+set}" = set; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3649 # Double quotes because CPP needs to be expanded
3650 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3653 for ac_c_preproc_warn_flag in '' yes
3655 # Use a header file that comes with gcc, so configuring glibc
3656 # with a fresh cross-compiler works.
3657 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3658 # <limits.h> exists even on freestanding compilers.
3659 # On the NeXT, cc -E runs the code through the compiler's parser,
3660 # not just through cpp. "Syntax error" is here to catch this case.
3661 cat >conftest.$ac_ext <<_ACEOF
3662 #line $LINENO "configure"
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h. */
3669 # include <limits.h>
3671 # include <assert.h>
3675 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3676 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3678 grep -v '^ *+' conftest.er1 >conftest.err
3680 cat conftest.err >&5
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); } >/dev/null; then
3683 if test -s conftest.err; then
3684 ac_cpp_err=$ac_c_preproc_warn_flag
3691 if test -z "$ac_cpp_err"; then
3694 echo "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.$ac_ext >&5
3697 # Broken: fails on valid input.
3700 rm -f conftest.err conftest.$ac_ext
3702 # OK, works on sane cases. Now check whether non-existent headers
3703 # can be detected and how.
3704 cat >conftest.$ac_ext <<_ACEOF
3705 #line $LINENO "configure"
3708 cat confdefs.h >>conftest.$ac_ext
3709 cat >>conftest.$ac_ext <<_ACEOF
3710 /* end confdefs.h. */
3711 #include <ac_nonexistent.h>
3713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3714 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3716 grep -v '^ *+' conftest.er1 >conftest.err
3718 cat conftest.err >&5
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); } >/dev/null; then
3721 if test -s conftest.err; then
3722 ac_cpp_err=$ac_c_preproc_warn_flag
3729 if test -z "$ac_cpp_err"; then
3730 # Broken: success on invalid input.
3733 echo "$as_me: failed program was:" >&5
3734 sed 's/^/| /' conftest.$ac_ext >&5
3736 # Passes both tests.
3740 rm -f conftest.err conftest.$ac_ext
3743 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3744 rm -f conftest.err conftest.$ac_ext
3745 if $ac_preproc_ok; then
3757 echo "$as_me:$LINENO: result: $CPP" >&5
3758 echo "${ECHO_T}$CPP" >&6
3760 for ac_c_preproc_warn_flag in '' yes
3762 # Use a header file that comes with gcc, so configuring glibc
3763 # with a fresh cross-compiler works.
3764 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3765 # <limits.h> exists even on freestanding compilers.
3766 # On the NeXT, cc -E runs the code through the compiler's parser,
3767 # not just through cpp. "Syntax error" is here to catch this case.
3768 cat >conftest.$ac_ext <<_ACEOF
3769 #line $LINENO "configure"
3772 cat confdefs.h >>conftest.$ac_ext
3773 cat >>conftest.$ac_ext <<_ACEOF
3774 /* end confdefs.h. */
3776 # include <limits.h>
3778 # include <assert.h>
3782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3785 grep -v '^ *+' conftest.er1 >conftest.err
3787 cat conftest.err >&5
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); } >/dev/null; then
3790 if test -s conftest.err; then
3791 ac_cpp_err=$ac_c_preproc_warn_flag
3798 if test -z "$ac_cpp_err"; then
3801 echo "$as_me: failed program was:" >&5
3802 sed 's/^/| /' conftest.$ac_ext >&5
3804 # Broken: fails on valid input.
3807 rm -f conftest.err conftest.$ac_ext
3809 # OK, works on sane cases. Now check whether non-existent headers
3810 # can be detected and how.
3811 cat >conftest.$ac_ext <<_ACEOF
3812 #line $LINENO "configure"
3815 cat confdefs.h >>conftest.$ac_ext
3816 cat >>conftest.$ac_ext <<_ACEOF
3817 /* end confdefs.h. */
3818 #include <ac_nonexistent.h>
3820 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3821 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3823 grep -v '^ *+' conftest.er1 >conftest.err
3825 cat conftest.err >&5
3826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827 (exit $ac_status); } >/dev/null; then
3828 if test -s conftest.err; then
3829 ac_cpp_err=$ac_c_preproc_warn_flag
3836 if test -z "$ac_cpp_err"; then
3837 # Broken: success on invalid input.
3840 echo "$as_me: failed program was:" >&5
3841 sed 's/^/| /' conftest.$ac_ext >&5
3843 # Passes both tests.
3847 rm -f conftest.err conftest.$ac_ext
3850 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3851 rm -f conftest.err conftest.$ac_ext
3852 if $ac_preproc_ok; then
3855 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3856 See \`config.log' for more details." >&5
3857 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3858 See \`config.log' for more details." >&2;}
3859 { (exit 1); exit 1; }; }
3863 ac_cpp='$CPP $CPPFLAGS'
3864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3868 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3869 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3870 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3871 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3872 echo $ECHO_N "(cached) $ECHO_C" >&6
3874 cat >conftest.make <<\_ACEOF
3876 @echo 'ac_maketemp="$(MAKE)"'
3878 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3879 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3880 if test -n "$ac_maketemp"; then
3881 eval ac_cv_prog_make_${ac_make}_set=yes
3883 eval ac_cv_prog_make_${ac_make}_set=no
3887 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3888 echo "$as_me:$LINENO: result: yes" >&5
3889 echo "${ECHO_T}yes" >&6
3892 echo "$as_me:$LINENO: result: no" >&5
3893 echo "${ECHO_T}no" >&6
3894 SET_MAKE="MAKE=${MAKE-make}"
3897 # Find a good install program. We prefer a C program (faster),
3898 # so one script is as good as another. But avoid the broken or
3899 # incompatible versions:
3900 # SysV /etc/install, /usr/sbin/install
3901 # SunOS /usr/etc/install
3902 # IRIX /sbin/install
3904 # AmigaOS /C/install, which installs bootblocks on floppy discs
3905 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3906 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3907 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3908 # ./install, which can be erroneously created by make from ./install.sh.
3909 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3910 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3911 if test -z "$INSTALL"; then
3912 if test "${ac_cv_path_install+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919 test -z "$as_dir" && as_dir=.
3920 # Account for people who put trailing slashes in PATH elements.
3922 ./ | .// | /cC/* | \
3923 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3926 # OSF1 and SCO ODT 3.0 have their own names for install.
3927 # Don't use installbsd from OSF since it installs stuff as root
3929 for ac_prog in ginstall scoinst install; do
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3932 if test $ac_prog = install &&
3933 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3934 # AIX install. It has an incompatible calling convention.
3936 elif test $ac_prog = install &&
3937 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3938 # program-specific install script used by HP pwplus--don't use.
3941 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3953 if test "${ac_cv_path_install+set}" = set; then
3954 INSTALL=$ac_cv_path_install
3956 # As a last resort, use the slow shell script. We don't cache a
3957 # path for INSTALL within a source directory, because that will
3958 # break other packages using the cache if that directory is
3959 # removed, or if the path is relative.
3960 INSTALL=$ac_install_sh
3963 echo "$as_me:$LINENO: result: $INSTALL" >&5
3964 echo "${ECHO_T}$INSTALL" >&6
3966 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3967 # It thinks the first close brace ends the variable substitution.
3968 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3970 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3972 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3974 if test -n "$ac_tool_prefix"; then
3975 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3976 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3977 echo "$as_me:$LINENO: checking for $ac_word" >&5
3978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3979 if test "${ac_cv_prog_RANLIB+set}" = set; then
3980 echo $ECHO_N "(cached) $ECHO_C" >&6
3982 if test -n "$RANLIB"; then
3983 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 test -z "$as_dir" && as_dir=.
3990 for ac_exec_ext in '' $ac_executable_extensions; do
3991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3992 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4001 RANLIB=$ac_cv_prog_RANLIB
4002 if test -n "$RANLIB"; then
4003 echo "$as_me:$LINENO: result: $RANLIB" >&5
4004 echo "${ECHO_T}$RANLIB" >&6
4006 echo "$as_me:$LINENO: result: no" >&5
4007 echo "${ECHO_T}no" >&6
4011 if test -z "$ac_cv_prog_RANLIB"; then
4012 ac_ct_RANLIB=$RANLIB
4013 # Extract the first word of "ranlib", so it can be a program name with args.
4014 set dummy ranlib; ac_word=$2
4015 echo "$as_me:$LINENO: checking for $ac_word" >&5
4016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4017 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 if test -n "$ac_ct_RANLIB"; then
4021 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 test -z "$as_dir" && as_dir=.
4028 for ac_exec_ext in '' $ac_executable_extensions; do
4029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4030 ac_cv_prog_ac_ct_RANLIB="ranlib"
4031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4037 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4040 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4041 if test -n "$ac_ct_RANLIB"; then
4042 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4043 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4045 echo "$as_me:$LINENO: result: no" >&5
4046 echo "${ECHO_T}no" >&6
4049 RANLIB=$ac_ct_RANLIB
4051 RANLIB="$ac_cv_prog_RANLIB"
4054 if test -n "$ac_tool_prefix"; then
4055 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4056 set dummy ${ac_tool_prefix}ar; ac_word=$2
4057 echo "$as_me:$LINENO: checking for $ac_word" >&5
4058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4059 if test "${ac_cv_prog_AR+set}" = set; then
4060 echo $ECHO_N "(cached) $ECHO_C" >&6
4062 if test -n "$AR"; then
4063 ac_cv_prog_AR="$AR" # Let the user override the test.
4065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 test -z "$as_dir" && as_dir=.
4070 for ac_exec_ext in '' $ac_executable_extensions; do
4071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4072 ac_cv_prog_AR="${ac_tool_prefix}ar"
4073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4082 if test -n "$AR"; then
4083 echo "$as_me:$LINENO: result: $AR" >&5
4084 echo "${ECHO_T}$AR" >&6
4086 echo "$as_me:$LINENO: result: no" >&5
4087 echo "${ECHO_T}no" >&6
4091 if test -z "$ac_cv_prog_AR"; then
4093 # Extract the first word of "ar", so it can be a program name with args.
4094 set dummy ar; ac_word=$2
4095 echo "$as_me:$LINENO: checking for $ac_word" >&5
4096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4097 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4098 echo $ECHO_N "(cached) $ECHO_C" >&6
4100 if test -n "$ac_ct_AR"; then
4101 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4107 test -z "$as_dir" && as_dir=.
4108 for ac_exec_ext in '' $ac_executable_extensions; do
4109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4110 ac_cv_prog_ac_ct_AR="ar"
4111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4117 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4120 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4121 if test -n "$ac_ct_AR"; then
4122 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4123 echo "${ECHO_T}$ac_ct_AR" >&6
4125 echo "$as_me:$LINENO: result: no" >&5
4126 echo "${ECHO_T}no" >&6
4135 echo "$as_me:$LINENO: checking for inline" >&5
4136 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4137 if test "${ac_cv_c_inline+set}" = set; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4141 for ac_kw in inline __inline__ __inline; do
4142 cat >conftest.$ac_ext <<_ACEOF
4143 #line $LINENO "configure"
4146 cat confdefs.h >>conftest.$ac_ext
4147 cat >>conftest.$ac_ext <<_ACEOF
4148 /* end confdefs.h. */
4151 static $ac_kw foo_t static_foo () {return 0; }
4152 $ac_kw foo_t foo () {return 0; }
4156 rm -f conftest.$ac_objext
4157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4158 (eval $ac_compile) 2>&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); } &&
4162 { ac_try='test -s conftest.$ac_objext'
4163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); }; }; then
4168 ac_cv_c_inline=$ac_kw; break
4170 echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4174 rm -f conftest.$ac_objext conftest.$ac_ext
4178 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4179 echo "${ECHO_T}$ac_cv_c_inline" >&6
4180 case $ac_cv_c_inline in
4183 cat >>confdefs.h <<\_ACEOF
4187 *) cat >>confdefs.h <<_ACEOF
4188 #define inline $ac_cv_c_inline
4193 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4194 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4195 if test "${ac_cv_c_const+set}" = set; then
4196 echo $ECHO_N "(cached) $ECHO_C" >&6
4198 cat >conftest.$ac_ext <<_ACEOF
4199 #line $LINENO "configure"
4202 cat confdefs.h >>conftest.$ac_ext
4203 cat >>conftest.$ac_ext <<_ACEOF
4204 /* end confdefs.h. */
4209 /* FIXME: Include the comments suggested by Paul. */
4211 /* Ultrix mips cc rejects this. */
4212 typedef int charset[2];
4214 /* SunOS 4.1.1 cc rejects this. */
4215 char const *const *ccp;
4217 /* NEC SVR4.0.2 mips cc rejects this. */
4218 struct point {int x, y;};
4219 static struct point const zero = {0,0};
4220 /* AIX XL C 1.02.0.0 rejects this.
4221 It does not let you subtract one const X* pointer from another in
4222 an arm of an if-expression whose if-part is not a constant
4224 const char *g = "string";
4225 ccp = &g + (g ? g-g : 0);
4226 /* HPUX 7.0 cc rejects these. */
4229 ccp = (char const *const *) p;
4230 { /* SCO 3.2v4 cc rejects this. */
4232 char const *s = 0 ? (char *) 0 : (char const *) 0;
4236 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4238 const int *foo = &x[0];
4241 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4242 typedef const int *iptr;
4246 { /* AIX XL C 1.02.0.0 rejects this saying
4247 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4248 struct s { int j; const int *ap[3]; };
4249 struct s *b; b->j = 5;
4251 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4260 rm -f conftest.$ac_objext
4261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4262 (eval $ac_compile) 2>&5
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); } &&
4266 { ac_try='test -s conftest.$ac_objext'
4267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); }; }; then
4274 echo "$as_me: failed program was:" >&5
4275 sed 's/^/| /' conftest.$ac_ext >&5
4279 rm -f conftest.$ac_objext conftest.$ac_ext
4281 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4282 echo "${ECHO_T}$ac_cv_c_const" >&6
4283 if test $ac_cv_c_const = no; then
4285 cat >>confdefs.h <<\_ACEOF
4292 # Check whether --enable-largefile or --disable-largefile was given.
4293 if test "${enable_largefile+set}" = set; then
4294 enableval="$enable_largefile"
4297 if test "$enable_largefile" != no; then
4299 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4300 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4301 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4302 echo $ECHO_N "(cached) $ECHO_C" >&6
4304 ac_cv_sys_largefile_CC=no
4305 if test "$GCC" != yes; then
4308 # IRIX 6.2 and later do not support large files by default,
4309 # so use the C compiler's -n32 option if that helps.
4310 cat >conftest.$ac_ext <<_ACEOF
4311 #line $LINENO "configure"
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h. */
4317 #include <sys/types.h>
4318 /* Check that off_t can represent 2**63 - 1 correctly.
4319 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4320 since some C++ compilers masquerading as C compilers
4321 incorrectly reject 9223372036854775807. */
4322 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4323 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4324 && LARGE_OFF_T % 2147483647 == 1)
4334 rm -f conftest.$ac_objext
4335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4336 (eval $ac_compile) 2>&5
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); } &&
4340 { ac_try='test -s conftest.$ac_objext'
4341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345 (exit $ac_status); }; }; then
4348 echo "$as_me: failed program was:" >&5
4349 sed 's/^/| /' conftest.$ac_ext >&5
4352 rm -f conftest.$ac_objext
4354 rm -f conftest.$ac_objext
4355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4356 (eval $ac_compile) 2>&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); } &&
4360 { ac_try='test -s conftest.$ac_objext'
4361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; }; then
4366 ac_cv_sys_largefile_CC=' -n32'; break
4368 echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.$ac_ext >&5
4372 rm -f conftest.$ac_objext
4376 rm -f conftest.$ac_ext
4379 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4380 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4381 if test "$ac_cv_sys_largefile_CC" != no; then
4382 CC=$CC$ac_cv_sys_largefile_CC
4385 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4386 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4387 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 ac_cv_sys_file_offset_bits=no
4392 cat >conftest.$ac_ext <<_ACEOF
4393 #line $LINENO "configure"
4396 cat confdefs.h >>conftest.$ac_ext
4397 cat >>conftest.$ac_ext <<_ACEOF
4398 /* end confdefs.h. */
4399 #include <sys/types.h>
4400 /* Check that off_t can represent 2**63 - 1 correctly.
4401 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4402 since some C++ compilers masquerading as C compilers
4403 incorrectly reject 9223372036854775807. */
4404 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4405 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4406 && LARGE_OFF_T % 2147483647 == 1)
4416 rm -f conftest.$ac_objext
4417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4418 (eval $ac_compile) 2>&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); } &&
4422 { ac_try='test -s conftest.$ac_objext'
4423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; }; then
4430 echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4434 rm -f conftest.$ac_objext conftest.$ac_ext
4435 cat >conftest.$ac_ext <<_ACEOF
4436 #line $LINENO "configure"
4439 cat confdefs.h >>conftest.$ac_ext
4440 cat >>conftest.$ac_ext <<_ACEOF
4441 /* end confdefs.h. */
4442 #define _FILE_OFFSET_BITS 64
4443 #include <sys/types.h>
4444 /* Check that off_t can represent 2**63 - 1 correctly.
4445 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4446 since some C++ compilers masquerading as C compilers
4447 incorrectly reject 9223372036854775807. */
4448 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4449 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4450 && LARGE_OFF_T % 2147483647 == 1)
4460 rm -f conftest.$ac_objext
4461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4462 (eval $ac_compile) 2>&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } &&
4466 { ac_try='test -s conftest.$ac_objext'
4467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); }; }; then
4472 ac_cv_sys_file_offset_bits=64; break
4474 echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.$ac_ext >&5
4478 rm -f conftest.$ac_objext conftest.$ac_ext
4482 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4483 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4484 if test "$ac_cv_sys_file_offset_bits" != no; then
4486 cat >>confdefs.h <<_ACEOF
4487 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4492 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4493 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4494 if test "${ac_cv_sys_large_files+set}" = set; then
4495 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 ac_cv_sys_large_files=no
4499 cat >conftest.$ac_ext <<_ACEOF
4500 #line $LINENO "configure"
4503 cat confdefs.h >>conftest.$ac_ext
4504 cat >>conftest.$ac_ext <<_ACEOF
4505 /* end confdefs.h. */
4506 #include <sys/types.h>
4507 /* Check that off_t can represent 2**63 - 1 correctly.
4508 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4509 since some C++ compilers masquerading as C compilers
4510 incorrectly reject 9223372036854775807. */
4511 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4512 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4513 && LARGE_OFF_T % 2147483647 == 1)
4523 rm -f conftest.$ac_objext
4524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4525 (eval $ac_compile) 2>&5
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); } &&
4529 { ac_try='test -s conftest.$ac_objext'
4530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }; }; then
4537 echo "$as_me: failed program was:" >&5
4538 sed 's/^/| /' conftest.$ac_ext >&5
4541 rm -f conftest.$ac_objext conftest.$ac_ext
4542 cat >conftest.$ac_ext <<_ACEOF
4543 #line $LINENO "configure"
4546 cat confdefs.h >>conftest.$ac_ext
4547 cat >>conftest.$ac_ext <<_ACEOF
4548 /* end confdefs.h. */
4549 #define _LARGE_FILES 1
4550 #include <sys/types.h>
4551 /* Check that off_t can represent 2**63 - 1 correctly.
4552 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4553 since some C++ compilers masquerading as C compilers
4554 incorrectly reject 9223372036854775807. */
4555 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4556 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4557 && LARGE_OFF_T % 2147483647 == 1)
4567 rm -f conftest.$ac_objext
4568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4569 (eval $ac_compile) 2>&5
4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572 (exit $ac_status); } &&
4573 { ac_try='test -s conftest.$ac_objext'
4574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; }; then
4579 ac_cv_sys_large_files=1; break
4581 echo "$as_me: failed program was:" >&5
4582 sed 's/^/| /' conftest.$ac_ext >&5
4585 rm -f conftest.$ac_objext conftest.$ac_ext
4589 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4590 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4591 if test "$ac_cv_sys_large_files" != no; then
4593 cat >>confdefs.h <<_ACEOF
4594 #define _LARGE_FILES $ac_cv_sys_large_files
4602 # Extract the first word of "dbx", so it can be a program name with args.
4603 set dummy dbx; ac_word=$2
4604 echo "$as_me:$LINENO: checking for $ac_word" >&5
4605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4606 if test "${ac_cv_path_DBX+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4611 ac_cv_path_DBX="$DBX" # Let the user override the test with a path.
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 test -z "$as_dir" && as_dir=.
4619 for ac_exec_ext in '' $ac_executable_extensions; do
4620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4621 ac_cv_path_DBX="$as_dir/$ac_word$ac_exec_ext"
4622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4628 test -z "$ac_cv_path_DBX" && ac_cv_path_DBX="no"
4634 if test -n "$DBX"; then
4635 echo "$as_me:$LINENO: result: $DBX" >&5
4636 echo "${ECHO_T}$DBX" >&6
4638 echo "$as_me:$LINENO: result: no" >&5
4639 echo "${ECHO_T}no" >&6
4642 # Extract the first word of "gdb", so it can be a program name with args.
4643 set dummy gdb; ac_word=$2
4644 echo "$as_me:$LINENO: checking for $ac_word" >&5
4645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4646 if test "${ac_cv_path_GDB+set}" = set; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4651 ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 test -z "$as_dir" && as_dir=.
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4661 ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
4662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4668 test -z "$ac_cv_path_GDB" && ac_cv_path_GDB="no"
4674 if test -n "$GDB"; then
4675 echo "$as_me:$LINENO: result: $GDB" >&5
4676 echo "${ECHO_T}$GDB" >&6
4678 echo "$as_me:$LINENO: result: no" >&5
4679 echo "${ECHO_T}no" >&6
4682 # Extract the first word of "sdb", so it can be a program name with args.
4683 set dummy sdb; ac_word=$2
4684 echo "$as_me:$LINENO: checking for $ac_word" >&5
4685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4686 if test "${ac_cv_path_SDB+set}" = set; then
4687 echo $ECHO_N "(cached) $ECHO_C" >&6
4691 ac_cv_path_SDB="$SDB" # Let the user override the test with a path.
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4701 ac_cv_path_SDB="$as_dir/$ac_word$ac_exec_ext"
4702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4708 test -z "$ac_cv_path_SDB" && ac_cv_path_SDB="no"
4714 if test -n "$SDB"; then
4715 echo "$as_me:$LINENO: result: $SDB" >&5
4716 echo "${ECHO_T}$SDB" >&6
4718 echo "$as_me:$LINENO: result: no" >&5
4719 echo "${ECHO_T}no" >&6
4723 if test $GDB != no ; then
4725 elif test $DBX != no ; then
4727 elif test $SDB != no ; then
4757 for ac_header in inttypes.h
4759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4761 echo "$as_me:$LINENO: checking for $ac_header" >&5
4762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4764 echo $ECHO_N "(cached) $ECHO_C" >&6
4766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4769 # Is the header compilable?
4770 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4772 cat >conftest.$ac_ext <<_ACEOF
4773 #line $LINENO "configure"
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h. */
4779 $ac_includes_default
4780 #include <$ac_header>
4782 rm -f conftest.$ac_objext
4783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4784 (eval $ac_compile) 2>&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); } &&
4788 { ac_try='test -s conftest.$ac_objext'
4789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793 (exit $ac_status); }; }; then
4794 ac_header_compiler=yes
4796 echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4799 ac_header_compiler=no
4801 rm -f conftest.$ac_objext conftest.$ac_ext
4802 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4803 echo "${ECHO_T}$ac_header_compiler" >&6
4805 # Is the header present?
4806 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4807 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4808 cat >conftest.$ac_ext <<_ACEOF
4809 #line $LINENO "configure"
4812 cat confdefs.h >>conftest.$ac_ext
4813 cat >>conftest.$ac_ext <<_ACEOF
4814 /* end confdefs.h. */
4815 #include <$ac_header>
4817 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4818 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4820 grep -v '^ *+' conftest.er1 >conftest.err
4822 cat conftest.err >&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); } >/dev/null; then
4825 if test -s conftest.err; then
4826 ac_cpp_err=$ac_c_preproc_warn_flag
4833 if test -z "$ac_cpp_err"; then
4834 ac_header_preproc=yes
4836 echo "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.$ac_ext >&5
4839 ac_header_preproc=no
4841 rm -f conftest.err conftest.$ac_ext
4842 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4843 echo "${ECHO_T}$ac_header_preproc" >&6
4845 # So? What about this header?
4846 case $ac_header_compiler:$ac_header_preproc in
4848 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4854 ## ------------------------------------ ##
4855 ## Report this to bug-autoconf@gnu.org. ##
4856 ## ------------------------------------ ##
4859 sed "s/^/$as_me: WARNING: /" >&2
4862 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4863 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4864 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4865 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4870 ## ------------------------------------ ##
4871 ## Report this to bug-autoconf@gnu.org. ##
4872 ## ------------------------------------ ##
4875 sed "s/^/$as_me: WARNING: /" >&2
4878 echo "$as_me:$LINENO: checking for $ac_header" >&5
4879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4881 echo $ECHO_N "(cached) $ECHO_C" >&6
4883 eval "$as_ac_Header=$ac_header_preproc"
4885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4886 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4890 cat >>confdefs.h <<_ACEOF
4891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4898 echo "$as_me:$LINENO: checking for uint32_t" >&5
4899 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
4900 if test "${ac_cv_type_uint32_t+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4903 cat >conftest.$ac_ext <<_ACEOF
4904 #line $LINENO "configure"
4907 cat confdefs.h >>conftest.$ac_ext
4908 cat >>conftest.$ac_ext <<_ACEOF
4909 /* end confdefs.h. */
4910 $ac_includes_default
4916 if (sizeof (uint32_t))
4922 rm -f conftest.$ac_objext
4923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4924 (eval $ac_compile) 2>&5
4926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927 (exit $ac_status); } &&
4928 { ac_try='test -s conftest.$ac_objext'
4929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); }; }; then
4934 ac_cv_type_uint32_t=yes
4936 echo "$as_me: failed program was:" >&5
4937 sed 's/^/| /' conftest.$ac_ext >&5
4939 ac_cv_type_uint32_t=no
4941 rm -f conftest.$ac_objext conftest.$ac_ext
4943 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
4944 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
4945 if test $ac_cv_type_uint32_t = yes; then
4947 cat >>confdefs.h <<\_ACEOF
4948 #define HAVE_C99_INTTYPES 1
4952 echo "$as_me:$LINENO: checking for short" >&5
4953 echo $ECHO_N "checking for short... $ECHO_C" >&6
4954 if test "${ac_cv_type_short+set}" = set; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4957 cat >conftest.$ac_ext <<_ACEOF
4958 #line $LINENO "configure"
4961 cat confdefs.h >>conftest.$ac_ext
4962 cat >>conftest.$ac_ext <<_ACEOF
4963 /* end confdefs.h. */
4964 $ac_includes_default
4976 rm -f conftest.$ac_objext
4977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4978 (eval $ac_compile) 2>&5
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); } &&
4982 { ac_try='test -s conftest.$ac_objext'
4983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987 (exit $ac_status); }; }; then
4988 ac_cv_type_short=yes
4990 echo "$as_me: failed program was:" >&5
4991 sed 's/^/| /' conftest.$ac_ext >&5
4995 rm -f conftest.$ac_objext conftest.$ac_ext
4997 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4998 echo "${ECHO_T}$ac_cv_type_short" >&6
5000 echo "$as_me:$LINENO: checking size of short" >&5
5001 echo $ECHO_N "checking size of short... $ECHO_C" >&6
5002 if test "${ac_cv_sizeof_short+set}" = set; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5005 if test "$ac_cv_type_short" = yes; then
5006 # The cast to unsigned long works around a bug in the HP C Compiler
5007 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5008 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5009 # This bug is HP SR number 8606223364.
5010 if test "$cross_compiling" = yes; then
5011 # Depending upon the size, compute the lo and hi bounds.
5012 cat >conftest.$ac_ext <<_ACEOF
5013 #line $LINENO "configure"
5016 cat confdefs.h >>conftest.$ac_ext
5017 cat >>conftest.$ac_ext <<_ACEOF
5018 /* end confdefs.h. */
5019 $ac_includes_default
5023 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5030 rm -f conftest.$ac_objext
5031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5032 (eval $ac_compile) 2>&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } &&
5036 { ac_try='test -s conftest.$ac_objext'
5037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041 (exit $ac_status); }; }; then
5044 cat >conftest.$ac_ext <<_ACEOF
5045 #line $LINENO "configure"
5048 cat confdefs.h >>conftest.$ac_ext
5049 cat >>conftest.$ac_ext <<_ACEOF
5050 /* end confdefs.h. */
5051 $ac_includes_default
5055 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5062 rm -f conftest.$ac_objext
5063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5064 (eval $ac_compile) 2>&5
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); } &&
5068 { ac_try='test -s conftest.$ac_objext'
5069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); }; }; then
5074 ac_hi=$ac_mid; break
5076 echo "$as_me: failed program was:" >&5
5077 sed 's/^/| /' conftest.$ac_ext >&5
5079 ac_lo=`expr $ac_mid + 1`
5080 if test $ac_lo -le $ac_mid; then
5084 ac_mid=`expr 2 '*' $ac_mid + 1`
5086 rm -f conftest.$ac_objext conftest.$ac_ext
5089 echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5092 cat >conftest.$ac_ext <<_ACEOF
5093 #line $LINENO "configure"
5096 cat confdefs.h >>conftest.$ac_ext
5097 cat >>conftest.$ac_ext <<_ACEOF
5098 /* end confdefs.h. */
5099 $ac_includes_default
5103 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5110 rm -f conftest.$ac_objext
5111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5112 (eval $ac_compile) 2>&5
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); } &&
5116 { ac_try='test -s conftest.$ac_objext'
5117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121 (exit $ac_status); }; }; then
5124 cat >conftest.$ac_ext <<_ACEOF
5125 #line $LINENO "configure"
5128 cat confdefs.h >>conftest.$ac_ext
5129 cat >>conftest.$ac_ext <<_ACEOF
5130 /* end confdefs.h. */
5131 $ac_includes_default
5135 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5142 rm -f conftest.$ac_objext
5143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5144 (eval $ac_compile) 2>&5
5146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147 (exit $ac_status); } &&
5148 { ac_try='test -s conftest.$ac_objext'
5149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); }; }; then
5154 ac_lo=$ac_mid; break
5156 echo "$as_me: failed program was:" >&5
5157 sed 's/^/| /' conftest.$ac_ext >&5
5159 ac_hi=`expr '(' $ac_mid ')' - 1`
5160 if test $ac_mid -le $ac_hi; then
5164 ac_mid=`expr 2 '*' $ac_mid`
5166 rm -f conftest.$ac_objext conftest.$ac_ext
5169 echo "$as_me: failed program was:" >&5
5170 sed 's/^/| /' conftest.$ac_ext >&5
5174 rm -f conftest.$ac_objext conftest.$ac_ext
5176 rm -f conftest.$ac_objext conftest.$ac_ext
5177 # Binary search between lo and hi bounds.
5178 while test "x$ac_lo" != "x$ac_hi"; do
5179 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5180 cat >conftest.$ac_ext <<_ACEOF
5181 #line $LINENO "configure"
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h. */
5187 $ac_includes_default
5191 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5198 rm -f conftest.$ac_objext
5199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5200 (eval $ac_compile) 2>&5
5202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203 (exit $ac_status); } &&
5204 { ac_try='test -s conftest.$ac_objext'
5205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); }; }; then
5212 echo "$as_me: failed program was:" >&5
5213 sed 's/^/| /' conftest.$ac_ext >&5
5215 ac_lo=`expr '(' $ac_mid ')' + 1`
5217 rm -f conftest.$ac_objext conftest.$ac_ext
5220 ?*) ac_cv_sizeof_short=$ac_lo;;
5221 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5222 See \`config.log' for more details." >&5
5223 echo "$as_me: error: cannot compute sizeof (short), 77
5224 See \`config.log' for more details." >&2;}
5225 { (exit 1); exit 1; }; } ;;
5228 if test "$cross_compiling" = yes; then
5229 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5230 See \`config.log' for more details." >&5
5231 echo "$as_me: error: cannot run test program while cross compiling
5232 See \`config.log' for more details." >&2;}
5233 { (exit 1); exit 1; }; }
5235 cat >conftest.$ac_ext <<_ACEOF
5236 #line $LINENO "configure"
5239 cat confdefs.h >>conftest.$ac_ext
5240 cat >>conftest.$ac_ext <<_ACEOF
5241 /* end confdefs.h. */
5242 $ac_includes_default
5243 long longval () { return (long) (sizeof (short)); }
5244 unsigned long ulongval () { return (long) (sizeof (short)); }
5251 FILE *f = fopen ("conftest.val", "w");
5254 if (((long) (sizeof (short))) < 0)
5256 long i = longval ();
5257 if (i != ((long) (sizeof (short))))
5259 fprintf (f, "%ld\n", i);
5263 unsigned long i = ulongval ();
5264 if (i != ((long) (sizeof (short))))
5266 fprintf (f, "%lu\n", i);
5268 exit (ferror (f) || fclose (f) != 0);
5274 rm -f conftest$ac_exeext
5275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5276 (eval $ac_link) 2>&5
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); }; }; then
5285 ac_cv_sizeof_short=`cat conftest.val`
5287 echo "$as_me: program exited with status $ac_status" >&5
5288 echo "$as_me: failed program was:" >&5
5289 sed 's/^/| /' conftest.$ac_ext >&5
5292 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5293 See \`config.log' for more details." >&5
5294 echo "$as_me: error: cannot compute sizeof (short), 77
5295 See \`config.log' for more details." >&2;}
5296 { (exit 1); exit 1; }; }
5298 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5303 ac_cv_sizeof_short=0
5306 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5307 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5308 cat >>confdefs.h <<_ACEOF
5309 #define SIZEOF_SHORT $ac_cv_sizeof_short
5313 echo "$as_me:$LINENO: checking for int" >&5
5314 echo $ECHO_N "checking for int... $ECHO_C" >&6
5315 if test "${ac_cv_type_int+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 cat >conftest.$ac_ext <<_ACEOF
5319 #line $LINENO "configure"
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h. */
5325 $ac_includes_default
5337 rm -f conftest.$ac_objext
5338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5339 (eval $ac_compile) 2>&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); } &&
5343 { ac_try='test -s conftest.$ac_objext'
5344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348 (exit $ac_status); }; }; then
5351 echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5356 rm -f conftest.$ac_objext conftest.$ac_ext
5358 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5359 echo "${ECHO_T}$ac_cv_type_int" >&6
5361 echo "$as_me:$LINENO: checking size of int" >&5
5362 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5363 if test "${ac_cv_sizeof_int+set}" = set; then
5364 echo $ECHO_N "(cached) $ECHO_C" >&6
5366 if test "$ac_cv_type_int" = yes; then
5367 # The cast to unsigned long works around a bug in the HP C Compiler
5368 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5369 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5370 # This bug is HP SR number 8606223364.
5371 if test "$cross_compiling" = yes; then
5372 # Depending upon the size, compute the lo and hi bounds.
5373 cat >conftest.$ac_ext <<_ACEOF
5374 #line $LINENO "configure"
5377 cat confdefs.h >>conftest.$ac_ext
5378 cat >>conftest.$ac_ext <<_ACEOF
5379 /* end confdefs.h. */
5380 $ac_includes_default
5384 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5391 rm -f conftest.$ac_objext
5392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5393 (eval $ac_compile) 2>&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } &&
5397 { ac_try='test -s conftest.$ac_objext'
5398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }; }; then
5405 cat >conftest.$ac_ext <<_ACEOF
5406 #line $LINENO "configure"
5409 cat confdefs.h >>conftest.$ac_ext
5410 cat >>conftest.$ac_ext <<_ACEOF
5411 /* end confdefs.h. */
5412 $ac_includes_default
5416 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5423 rm -f conftest.$ac_objext
5424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5425 (eval $ac_compile) 2>&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } &&
5429 { ac_try='test -s conftest.$ac_objext'
5430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); }; }; then
5435 ac_hi=$ac_mid; break
5437 echo "$as_me: failed program was:" >&5
5438 sed 's/^/| /' conftest.$ac_ext >&5
5440 ac_lo=`expr $ac_mid + 1`
5441 if test $ac_lo -le $ac_mid; then
5445 ac_mid=`expr 2 '*' $ac_mid + 1`
5447 rm -f conftest.$ac_objext conftest.$ac_ext
5450 echo "$as_me: failed program was:" >&5
5451 sed 's/^/| /' conftest.$ac_ext >&5
5453 cat >conftest.$ac_ext <<_ACEOF
5454 #line $LINENO "configure"
5457 cat confdefs.h >>conftest.$ac_ext
5458 cat >>conftest.$ac_ext <<_ACEOF
5459 /* end confdefs.h. */
5460 $ac_includes_default
5464 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5471 rm -f conftest.$ac_objext
5472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5473 (eval $ac_compile) 2>&5
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); } &&
5477 { ac_try='test -s conftest.$ac_objext'
5478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); }; }; then
5485 cat >conftest.$ac_ext <<_ACEOF
5486 #line $LINENO "configure"
5489 cat confdefs.h >>conftest.$ac_ext
5490 cat >>conftest.$ac_ext <<_ACEOF
5491 /* end confdefs.h. */
5492 $ac_includes_default
5496 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5503 rm -f conftest.$ac_objext
5504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5505 (eval $ac_compile) 2>&5
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); } &&
5509 { ac_try='test -s conftest.$ac_objext'
5510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514 (exit $ac_status); }; }; then
5515 ac_lo=$ac_mid; break
5517 echo "$as_me: failed program was:" >&5
5518 sed 's/^/| /' conftest.$ac_ext >&5
5520 ac_hi=`expr '(' $ac_mid ')' - 1`
5521 if test $ac_mid -le $ac_hi; then
5525 ac_mid=`expr 2 '*' $ac_mid`
5527 rm -f conftest.$ac_objext conftest.$ac_ext
5530 echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.$ac_ext >&5
5535 rm -f conftest.$ac_objext conftest.$ac_ext
5537 rm -f conftest.$ac_objext conftest.$ac_ext
5538 # Binary search between lo and hi bounds.
5539 while test "x$ac_lo" != "x$ac_hi"; do
5540 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5541 cat >conftest.$ac_ext <<_ACEOF
5542 #line $LINENO "configure"
5545 cat confdefs.h >>conftest.$ac_ext
5546 cat >>conftest.$ac_ext <<_ACEOF
5547 /* end confdefs.h. */
5548 $ac_includes_default
5552 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5559 rm -f conftest.$ac_objext
5560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5561 (eval $ac_compile) 2>&5
5563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564 (exit $ac_status); } &&
5565 { ac_try='test -s conftest.$ac_objext'
5566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570 (exit $ac_status); }; }; then
5573 echo "$as_me: failed program was:" >&5
5574 sed 's/^/| /' conftest.$ac_ext >&5
5576 ac_lo=`expr '(' $ac_mid ')' + 1`
5578 rm -f conftest.$ac_objext conftest.$ac_ext
5581 ?*) ac_cv_sizeof_int=$ac_lo;;
5582 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5583 See \`config.log' for more details." >&5
5584 echo "$as_me: error: cannot compute sizeof (int), 77
5585 See \`config.log' for more details." >&2;}
5586 { (exit 1); exit 1; }; } ;;
5589 if test "$cross_compiling" = yes; then
5590 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5591 See \`config.log' for more details." >&5
5592 echo "$as_me: error: cannot run test program while cross compiling
5593 See \`config.log' for more details." >&2;}
5594 { (exit 1); exit 1; }; }
5596 cat >conftest.$ac_ext <<_ACEOF
5597 #line $LINENO "configure"
5600 cat confdefs.h >>conftest.$ac_ext
5601 cat >>conftest.$ac_ext <<_ACEOF
5602 /* end confdefs.h. */
5603 $ac_includes_default
5604 long longval () { return (long) (sizeof (int)); }
5605 unsigned long ulongval () { return (long) (sizeof (int)); }
5612 FILE *f = fopen ("conftest.val", "w");
5615 if (((long) (sizeof (int))) < 0)
5617 long i = longval ();
5618 if (i != ((long) (sizeof (int))))
5620 fprintf (f, "%ld\n", i);
5624 unsigned long i = ulongval ();
5625 if (i != ((long) (sizeof (int))))
5627 fprintf (f, "%lu\n", i);
5629 exit (ferror (f) || fclose (f) != 0);
5635 rm -f conftest$ac_exeext
5636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5637 (eval $ac_link) 2>&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); }; }; then
5646 ac_cv_sizeof_int=`cat conftest.val`
5648 echo "$as_me: program exited with status $ac_status" >&5
5649 echo "$as_me: failed program was:" >&5
5650 sed 's/^/| /' conftest.$ac_ext >&5
5653 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5654 See \`config.log' for more details." >&5
5655 echo "$as_me: error: cannot compute sizeof (int), 77
5656 See \`config.log' for more details." >&2;}
5657 { (exit 1); exit 1; }; }
5659 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5667 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5668 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5669 cat >>confdefs.h <<_ACEOF
5670 #define SIZEOF_INT $ac_cv_sizeof_int
5674 echo "$as_me:$LINENO: checking for long" >&5
5675 echo $ECHO_N "checking for long... $ECHO_C" >&6
5676 if test "${ac_cv_type_long+set}" = set; then
5677 echo $ECHO_N "(cached) $ECHO_C" >&6
5679 cat >conftest.$ac_ext <<_ACEOF
5680 #line $LINENO "configure"
5683 cat confdefs.h >>conftest.$ac_ext
5684 cat >>conftest.$ac_ext <<_ACEOF
5685 /* end confdefs.h. */
5686 $ac_includes_default
5698 rm -f conftest.$ac_objext
5699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5700 (eval $ac_compile) 2>&5
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); } &&
5704 { ac_try='test -s conftest.$ac_objext'
5705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); }; }; then
5712 echo "$as_me: failed program was:" >&5
5713 sed 's/^/| /' conftest.$ac_ext >&5
5717 rm -f conftest.$ac_objext conftest.$ac_ext
5719 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5720 echo "${ECHO_T}$ac_cv_type_long" >&6
5722 echo "$as_me:$LINENO: checking size of long" >&5
5723 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5724 if test "${ac_cv_sizeof_long+set}" = set; then
5725 echo $ECHO_N "(cached) $ECHO_C" >&6
5727 if test "$ac_cv_type_long" = yes; then
5728 # The cast to unsigned long works around a bug in the HP C Compiler
5729 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5730 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5731 # This bug is HP SR number 8606223364.
5732 if test "$cross_compiling" = yes; then
5733 # Depending upon the size, compute the lo and hi bounds.
5734 cat >conftest.$ac_ext <<_ACEOF
5735 #line $LINENO "configure"
5738 cat confdefs.h >>conftest.$ac_ext
5739 cat >>conftest.$ac_ext <<_ACEOF
5740 /* end confdefs.h. */
5741 $ac_includes_default
5745 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5752 rm -f conftest.$ac_objext
5753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5754 (eval $ac_compile) 2>&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); } &&
5758 { ac_try='test -s conftest.$ac_objext'
5759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); }; }; then
5766 cat >conftest.$ac_ext <<_ACEOF
5767 #line $LINENO "configure"
5770 cat confdefs.h >>conftest.$ac_ext
5771 cat >>conftest.$ac_ext <<_ACEOF
5772 /* end confdefs.h. */
5773 $ac_includes_default
5777 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5784 rm -f conftest.$ac_objext
5785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5786 (eval $ac_compile) 2>&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); } &&
5790 { ac_try='test -s conftest.$ac_objext'
5791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); }; }; then
5796 ac_hi=$ac_mid; break
5798 echo "$as_me: failed program was:" >&5
5799 sed 's/^/| /' conftest.$ac_ext >&5
5801 ac_lo=`expr $ac_mid + 1`
5802 if test $ac_lo -le $ac_mid; then
5806 ac_mid=`expr 2 '*' $ac_mid + 1`
5808 rm -f conftest.$ac_objext conftest.$ac_ext
5811 echo "$as_me: failed program was:" >&5
5812 sed 's/^/| /' conftest.$ac_ext >&5
5814 cat >conftest.$ac_ext <<_ACEOF
5815 #line $LINENO "configure"
5818 cat confdefs.h >>conftest.$ac_ext
5819 cat >>conftest.$ac_ext <<_ACEOF
5820 /* end confdefs.h. */
5821 $ac_includes_default
5825 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5832 rm -f conftest.$ac_objext
5833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5834 (eval $ac_compile) 2>&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); } &&
5838 { ac_try='test -s conftest.$ac_objext'
5839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843 (exit $ac_status); }; }; then
5846 cat >conftest.$ac_ext <<_ACEOF
5847 #line $LINENO "configure"
5850 cat confdefs.h >>conftest.$ac_ext
5851 cat >>conftest.$ac_ext <<_ACEOF
5852 /* end confdefs.h. */
5853 $ac_includes_default
5857 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5864 rm -f conftest.$ac_objext
5865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5866 (eval $ac_compile) 2>&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); } &&
5870 { ac_try='test -s conftest.$ac_objext'
5871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); }; }; then
5876 ac_lo=$ac_mid; break
5878 echo "$as_me: failed program was:" >&5
5879 sed 's/^/| /' conftest.$ac_ext >&5
5881 ac_hi=`expr '(' $ac_mid ')' - 1`
5882 if test $ac_mid -le $ac_hi; then
5886 ac_mid=`expr 2 '*' $ac_mid`
5888 rm -f conftest.$ac_objext conftest.$ac_ext
5891 echo "$as_me: failed program was:" >&5
5892 sed 's/^/| /' conftest.$ac_ext >&5
5896 rm -f conftest.$ac_objext conftest.$ac_ext
5898 rm -f conftest.$ac_objext conftest.$ac_ext
5899 # Binary search between lo and hi bounds.
5900 while test "x$ac_lo" != "x$ac_hi"; do
5901 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5902 cat >conftest.$ac_ext <<_ACEOF
5903 #line $LINENO "configure"
5906 cat confdefs.h >>conftest.$ac_ext
5907 cat >>conftest.$ac_ext <<_ACEOF
5908 /* end confdefs.h. */
5909 $ac_includes_default
5913 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5920 rm -f conftest.$ac_objext
5921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5922 (eval $ac_compile) 2>&5
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); } &&
5926 { ac_try='test -s conftest.$ac_objext'
5927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931 (exit $ac_status); }; }; then
5934 echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.$ac_ext >&5
5937 ac_lo=`expr '(' $ac_mid ')' + 1`
5939 rm -f conftest.$ac_objext conftest.$ac_ext
5942 ?*) ac_cv_sizeof_long=$ac_lo;;
5943 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5944 See \`config.log' for more details." >&5
5945 echo "$as_me: error: cannot compute sizeof (long), 77
5946 See \`config.log' for more details." >&2;}
5947 { (exit 1); exit 1; }; } ;;
5950 if test "$cross_compiling" = yes; then
5951 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5952 See \`config.log' for more details." >&5
5953 echo "$as_me: error: cannot run test program while cross compiling
5954 See \`config.log' for more details." >&2;}
5955 { (exit 1); exit 1; }; }
5957 cat >conftest.$ac_ext <<_ACEOF
5958 #line $LINENO "configure"
5961 cat confdefs.h >>conftest.$ac_ext
5962 cat >>conftest.$ac_ext <<_ACEOF
5963 /* end confdefs.h. */
5964 $ac_includes_default
5965 long longval () { return (long) (sizeof (long)); }
5966 unsigned long ulongval () { return (long) (sizeof (long)); }
5973 FILE *f = fopen ("conftest.val", "w");
5976 if (((long) (sizeof (long))) < 0)
5978 long i = longval ();
5979 if (i != ((long) (sizeof (long))))
5981 fprintf (f, "%ld\n", i);
5985 unsigned long i = ulongval ();
5986 if (i != ((long) (sizeof (long))))
5988 fprintf (f, "%lu\n", i);
5990 exit (ferror (f) || fclose (f) != 0);
5996 rm -f conftest$ac_exeext
5997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5998 (eval $ac_link) 2>&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); }; }; then
6007 ac_cv_sizeof_long=`cat conftest.val`
6009 echo "$as_me: program exited with status $ac_status" >&5
6010 echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6014 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6015 See \`config.log' for more details." >&5
6016 echo "$as_me: error: cannot compute sizeof (long), 77
6017 See \`config.log' for more details." >&2;}
6018 { (exit 1); exit 1; }; }
6020 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6028 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6029 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6030 cat >>confdefs.h <<_ACEOF
6031 #define SIZEOF_LONG $ac_cv_sizeof_long
6035 echo "$as_me:$LINENO: checking for long long" >&5
6036 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6037 if test "${ac_cv_type_long_long+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6040 cat >conftest.$ac_ext <<_ACEOF
6041 #line $LINENO "configure"
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h. */
6047 $ac_includes_default
6051 if ((long long *) 0)
6053 if (sizeof (long long))
6059 rm -f conftest.$ac_objext
6060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6061 (eval $ac_compile) 2>&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); } &&
6065 { ac_try='test -s conftest.$ac_objext'
6066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); }; }; then
6071 ac_cv_type_long_long=yes
6073 echo "$as_me: failed program was:" >&5
6074 sed 's/^/| /' conftest.$ac_ext >&5
6076 ac_cv_type_long_long=no
6078 rm -f conftest.$ac_objext conftest.$ac_ext
6080 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6081 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6083 echo "$as_me:$LINENO: checking size of long long" >&5
6084 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6085 if test "${ac_cv_sizeof_long_long+set}" = set; then
6086 echo $ECHO_N "(cached) $ECHO_C" >&6
6088 if test "$ac_cv_type_long_long" = yes; then
6089 # The cast to unsigned long works around a bug in the HP C Compiler
6090 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6091 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6092 # This bug is HP SR number 8606223364.
6093 if test "$cross_compiling" = yes; then
6094 # Depending upon the size, compute the lo and hi bounds.
6095 cat >conftest.$ac_ext <<_ACEOF
6096 #line $LINENO "configure"
6099 cat confdefs.h >>conftest.$ac_ext
6100 cat >>conftest.$ac_ext <<_ACEOF
6101 /* end confdefs.h. */
6102 $ac_includes_default
6106 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6113 rm -f conftest.$ac_objext
6114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6115 (eval $ac_compile) 2>&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
6127 cat >conftest.$ac_ext <<_ACEOF
6128 #line $LINENO "configure"
6131 cat confdefs.h >>conftest.$ac_ext
6132 cat >>conftest.$ac_ext <<_ACEOF
6133 /* end confdefs.h. */
6134 $ac_includes_default
6138 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6145 rm -f conftest.$ac_objext
6146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6147 (eval $ac_compile) 2>&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } &&
6151 { ac_try='test -s conftest.$ac_objext'
6152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); }; }; then
6157 ac_hi=$ac_mid; break
6159 echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.$ac_ext >&5
6162 ac_lo=`expr $ac_mid + 1`
6163 if test $ac_lo -le $ac_mid; then
6167 ac_mid=`expr 2 '*' $ac_mid + 1`
6169 rm -f conftest.$ac_objext conftest.$ac_ext
6172 echo "$as_me: failed program was:" >&5
6173 sed 's/^/| /' conftest.$ac_ext >&5
6175 cat >conftest.$ac_ext <<_ACEOF
6176 #line $LINENO "configure"
6179 cat confdefs.h >>conftest.$ac_ext
6180 cat >>conftest.$ac_ext <<_ACEOF
6181 /* end confdefs.h. */
6182 $ac_includes_default
6186 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6193 rm -f conftest.$ac_objext
6194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6195 (eval $ac_compile) 2>&5
6197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); } &&
6199 { ac_try='test -s conftest.$ac_objext'
6200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204 (exit $ac_status); }; }; then
6207 cat >conftest.$ac_ext <<_ACEOF
6208 #line $LINENO "configure"
6211 cat confdefs.h >>conftest.$ac_ext
6212 cat >>conftest.$ac_ext <<_ACEOF
6213 /* end confdefs.h. */
6214 $ac_includes_default
6218 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6225 rm -f conftest.$ac_objext
6226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6227 (eval $ac_compile) 2>&5
6229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230 (exit $ac_status); } &&
6231 { ac_try='test -s conftest.$ac_objext'
6232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); }; }; then
6237 ac_lo=$ac_mid; break
6239 echo "$as_me: failed program was:" >&5
6240 sed 's/^/| /' conftest.$ac_ext >&5
6242 ac_hi=`expr '(' $ac_mid ')' - 1`
6243 if test $ac_mid -le $ac_hi; then
6247 ac_mid=`expr 2 '*' $ac_mid`
6249 rm -f conftest.$ac_objext conftest.$ac_ext
6252 echo "$as_me: failed program was:" >&5
6253 sed 's/^/| /' conftest.$ac_ext >&5
6257 rm -f conftest.$ac_objext conftest.$ac_ext
6259 rm -f conftest.$ac_objext conftest.$ac_ext
6260 # Binary search between lo and hi bounds.
6261 while test "x$ac_lo" != "x$ac_hi"; do
6262 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6263 cat >conftest.$ac_ext <<_ACEOF
6264 #line $LINENO "configure"
6267 cat confdefs.h >>conftest.$ac_ext
6268 cat >>conftest.$ac_ext <<_ACEOF
6269 /* end confdefs.h. */
6270 $ac_includes_default
6274 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6281 rm -f conftest.$ac_objext
6282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6283 (eval $ac_compile) 2>&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); } &&
6287 { ac_try='test -s conftest.$ac_objext'
6288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); }; }; then
6295 echo "$as_me: failed program was:" >&5
6296 sed 's/^/| /' conftest.$ac_ext >&5
6298 ac_lo=`expr '(' $ac_mid ')' + 1`
6300 rm -f conftest.$ac_objext conftest.$ac_ext
6303 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6304 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6305 See \`config.log' for more details." >&5
6306 echo "$as_me: error: cannot compute sizeof (long long), 77
6307 See \`config.log' for more details." >&2;}
6308 { (exit 1); exit 1; }; } ;;
6311 if test "$cross_compiling" = yes; then
6312 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6313 See \`config.log' for more details." >&5
6314 echo "$as_me: error: cannot run test program while cross compiling
6315 See \`config.log' for more details." >&2;}
6316 { (exit 1); exit 1; }; }
6318 cat >conftest.$ac_ext <<_ACEOF
6319 #line $LINENO "configure"
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h. */
6325 $ac_includes_default
6326 long longval () { return (long) (sizeof (long long)); }
6327 unsigned long ulongval () { return (long) (sizeof (long long)); }
6334 FILE *f = fopen ("conftest.val", "w");
6337 if (((long) (sizeof (long long))) < 0)
6339 long i = longval ();
6340 if (i != ((long) (sizeof (long long))))
6342 fprintf (f, "%ld\n", i);
6346 unsigned long i = ulongval ();
6347 if (i != ((long) (sizeof (long long))))
6349 fprintf (f, "%lu\n", i);
6351 exit (ferror (f) || fclose (f) != 0);
6357 rm -f conftest$ac_exeext
6358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6359 (eval $ac_link) 2>&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); }; }; then
6368 ac_cv_sizeof_long_long=`cat conftest.val`
6370 echo "$as_me: program exited with status $ac_status" >&5
6371 echo "$as_me: failed program was:" >&5
6372 sed 's/^/| /' conftest.$ac_ext >&5
6375 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6376 See \`config.log' for more details." >&5
6377 echo "$as_me: error: cannot compute sizeof (long long), 77
6378 See \`config.log' for more details." >&2;}
6379 { (exit 1); exit 1; }; }
6381 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6386 ac_cv_sizeof_long_long=0
6389 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6390 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6391 cat >>confdefs.h <<_ACEOF
6392 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6402 ac_aux_path_sendmail=/usr/sbin:/usr/lib
6403 # Extract the first word of "sendmail", so it can be a program name with args.
6404 set dummy sendmail; ac_word=$2
6405 echo "$as_me:$LINENO: checking for $ac_word" >&5
6406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6407 if test "${ac_cv_path_SENDMAIL+set}" = set; then
6408 echo $ECHO_N "(cached) $ECHO_C" >&6
6412 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
6415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416 as_dummy="$PATH:$ac_aux_path_sendmail"
6417 for as_dir in $as_dummy
6420 test -z "$as_dir" && as_dir=.
6421 for ac_exec_ext in '' $ac_executable_extensions; do
6422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6423 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
6424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6430 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/sbin/sendmail"
6434 SENDMAIL=$ac_cv_path_SENDMAIL
6436 if test -n "$SENDMAIL"; then
6437 echo "$as_me:$LINENO: result: $SENDMAIL" >&5
6438 echo "${ECHO_T}$SENDMAIL" >&6
6440 echo "$as_me:$LINENO: result: no" >&5
6441 echo "${ECHO_T}no" >&6
6445 cat >>confdefs.h <<_ACEOF
6446 #define SENDMAIL "$ac_cv_path_SENDMAIL"
6451 if test -f $srcdir/EXPORTABLE ; then
6456 # Check whether --enable-gpgme or --disable-gpgme was given.
6457 if test "${enable_gpgme+set}" = set; then
6458 enableval="$enable_gpgme"
6459 if test x$enableval = xyes; then
6465 # Check whether --with-gpgme-prefix or --without-gpgme-prefix was given.
6466 if test "${with_gpgme_prefix+set}" = set; then
6467 withval="$with_gpgme_prefix"
6468 gpgme_config_prefix="$withval"
6470 gpgme_config_prefix=""
6473 if test x$have_gpgme = xyes; then
6474 if test x$gpgme_config_prefix != x; then
6475 GPGME_CONFIG="$gpgme_config_prefix/bin/gpgme-config"
6477 # Extract the first word of "gpgme-config", so it can be a program name with args.
6478 set dummy gpgme-config; ac_word=$2
6479 echo "$as_me:$LINENO: checking for $ac_word" >&5
6480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6481 if test "${ac_cv_path_GPGME_CONFIG+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6484 case $GPGME_CONFIG in
6486 ac_cv_path_GPGME_CONFIG="$GPGME_CONFIG" # Let the user override the test with a path.
6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 test -z "$as_dir" && as_dir=.
6494 for ac_exec_ext in '' $ac_executable_extensions; do
6495 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6496 ac_cv_path_GPGME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6503 test -z "$ac_cv_path_GPGME_CONFIG" && ac_cv_path_GPGME_CONFIG="no"
6507 GPGME_CONFIG=$ac_cv_path_GPGME_CONFIG
6509 if test -n "$GPGME_CONFIG"; then
6510 echo "$as_me:$LINENO: result: $GPGME_CONFIG" >&5
6511 echo "${ECHO_T}$GPGME_CONFIG" >&6
6513 echo "$as_me:$LINENO: result: no" >&5
6514 echo "${ECHO_T}no" >&6
6518 if test "x$GPGME_CONFIG" = "xno"; then
6519 { { echo "$as_me:$LINENO: error: GPGME not found" >&5
6520 echo "$as_me: error: GPGME not found" >&2;}
6521 { (exit 1); exit 1; }; }
6523 LIBGPGME_CFLAGS=`$GPGME_CONFIG --cflags`
6524 LIBGPGME_LIBS=`$GPGME_CONFIG --libs`
6525 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS crypt-gpgme.o crypt-mod-pgp-gpgme.o crypt-mod-smime-gpgme.o"
6527 cat >>confdefs.h <<\_ACEOF
6528 #define CRYPT_BACKEND_GPGME 1
6536 # Check whether --enable-pgp or --disable-pgp was given.
6537 if test "${enable_pgp+set}" = set; then
6538 enableval="$enable_pgp"
6539 if test x$enableval = xno ; then
6545 if test x$have_pgp != xno ; then
6547 cat >>confdefs.h <<\_ACEOF
6548 #define CRYPT_BACKEND_CLASSIC_PGP 1
6551 PGPAUX_TARGET="pgpringng pgpewrapng"
6552 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"
6555 # Check whether --enable-smime or --disable-smime was given.
6556 if test "${enable_smime+set}" = set; then
6557 enableval="$enable_smime"
6558 if test x$enableval = xno ; then
6564 if test x$have_smime != xno ; then
6566 cat >>confdefs.h <<\_ACEOF
6567 #define CRYPT_BACKEND_CLASSIC_SMIME 1
6570 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS smime.o crypt-mod-smime-classic.o"
6571 SMIMEAUX_TARGET="smime_keysng"
6575 # Check whether --with-mixmaster or --without-mixmaster was given.
6576 if test "${with_mixmaster+set}" = set; then
6577 withval="$with_mixmaster"
6578 if test -x "$withval" ; then
6579 MIXMASTER="$withval"
6581 MIXMASTER="mixmaster"
6583 OPS="$OPS \$(srcdir)/OPS.MIX"
6584 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS remailer.o"
6586 cat >>confdefs.h <<_ACEOF
6587 #define MIXMASTER "$MIXMASTER"
6594 # We now require all OPS
6595 OPS="$OPS \$(srcdir)/OPS.PGP \$(srcdir)/OPS.SMIME \$(srcdir)/OPS.CRYPT "
6603 cat >>confdefs.h <<_ACEOF
6604 #define SUBVERSION "$SUBVERSION"
6609 # Extract the first word of "ispell", so it can be a program name with args.
6610 set dummy ispell; ac_word=$2
6611 echo "$as_me:$LINENO: checking for $ac_word" >&5
6612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6613 if test "${ac_cv_path_ISPELL+set}" = set; then
6614 echo $ECHO_N "(cached) $ECHO_C" >&6
6618 ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a path.
6621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6625 test -z "$as_dir" && as_dir=.
6626 for ac_exec_ext in '' $ac_executable_extensions; do
6627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6628 ac_cv_path_ISPELL="$as_dir/$ac_word$ac_exec_ext"
6629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6635 test -z "$ac_cv_path_ISPELL" && ac_cv_path_ISPELL="no"
6639 ISPELL=$ac_cv_path_ISPELL
6641 if test -n "$ISPELL"; then
6642 echo "$as_me:$LINENO: result: $ISPELL" >&5
6643 echo "${ECHO_T}$ISPELL" >&6
6645 echo "$as_me:$LINENO: result: no" >&5
6646 echo "${ECHO_T}no" >&6
6649 if test $ISPELL != no; then
6651 cat >>confdefs.h <<_ACEOF
6652 #define ISPELL "$ISPELL"
6658 # Check whether --with-slang or --without-slang was given.
6659 if test "${with_slang+set}" = set; then
6660 withval="$with_slang"
6661 echo "$as_me:$LINENO: checking if this is a BSD system" >&5
6662 echo $ECHO_N "checking if this is a BSD system... $ECHO_C" >&6
6663 if test "${mutt_cv_bsdish+set}" = set; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
6666 if test "$cross_compiling" = yes; then
6669 cat >conftest.$ac_ext <<_ACEOF
6670 #line $LINENO "configure"
6673 cat confdefs.h >>conftest.$ac_ext
6674 cat >>conftest.$ac_ext <<_ACEOF
6675 /* end confdefs.h. */
6676 #include <sys/param.h>
6687 rm -f conftest$ac_exeext
6688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6689 (eval $ac_link) 2>&5
6691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); }; }; then
6700 echo "$as_me: program exited with status $ac_status" >&5
6701 echo "$as_me: failed program was:" >&5
6702 sed 's/^/| /' conftest.$ac_ext >&5
6707 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6710 echo "$as_me:$LINENO: result: $mutt_cv_bsdish" >&5
6711 echo "${ECHO_T}$mutt_cv_bsdish" >&6
6713 echo "$as_me:$LINENO: checking for S-Lang" >&5
6714 echo $ECHO_N "checking for S-Lang... $ECHO_C" >&6
6715 if test $withval = yes; then
6716 if test -d $srcdir/../slang; then
6717 mutt_cv_slang=$srcdir/../slang/src
6718 CFLAGS="$CFLAGS -I${mutt_cv_slang}"
6719 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
6721 if test -d $mutt_cv_prefix/include/slang; then
6722 CFLAGS="$CFLAGS -I$mutt_cv_prefix/include/slang"
6723 elif test -d /usr/include/slang; then
6724 CFLAGS="$CFLAGS -I/usr/include/slang"
6729 if test -f $withval/src/slang.h; then
6730 mutt_cv_slang=$withval/src
6731 CFLAGS="$CFLAGS -I${mutt_cv_slang}"
6732 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
6734 mutt_cv_slang=$withval
6735 if test -d $withval/include/slang; then
6736 CFLAGS="$CFLAGS -I${withval}/include/slang"
6737 elif test -d $withval/include; then
6738 CFLAGS="$CFLAGS -I${withval}/include"
6740 LDFLAGS="$LDFLAGS -L${withval}/lib"
6743 echo "$as_me:$LINENO: result: $mutt_cv_slang" >&5
6744 echo "${ECHO_T}$mutt_cv_slang" >&6
6745 if test $mutt_cv_bsdish = yes; then
6747 echo "$as_me:$LINENO: checking for main in -ltermlib" >&5
6748 echo $ECHO_N "checking for main in -ltermlib... $ECHO_C" >&6
6749 if test "${ac_cv_lib_termlib_main+set}" = set; then
6750 echo $ECHO_N "(cached) $ECHO_C" >&6
6752 ac_check_lib_save_LIBS=$LIBS
6753 LIBS="-ltermlib $LIBS"
6754 cat >conftest.$ac_ext <<_ACEOF
6755 #line $LINENO "configure"
6758 cat confdefs.h >>conftest.$ac_ext
6759 cat >>conftest.$ac_ext <<_ACEOF
6760 /* end confdefs.h. */
6771 rm -f conftest.$ac_objext conftest$ac_exeext
6772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6773 (eval $ac_link) 2>&5
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); } &&
6777 { ac_try='test -s conftest$ac_exeext'
6778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); }; }; then
6783 ac_cv_lib_termlib_main=yes
6785 echo "$as_me: failed program was:" >&5
6786 sed 's/^/| /' conftest.$ac_ext >&5
6788 ac_cv_lib_termlib_main=no
6790 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6791 LIBS=$ac_check_lib_save_LIBS
6793 echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_main" >&5
6794 echo "${ECHO_T}$ac_cv_lib_termlib_main" >&6
6795 if test $ac_cv_lib_termlib_main = yes; then
6796 cat >>confdefs.h <<_ACEOF
6797 #define HAVE_LIBTERMLIB 1
6800 LIBS="-ltermlib $LIBS"
6806 cat >>confdefs.h <<\_ACEOF
6807 #define USE_SLANG_CURSES 1
6811 cat >>confdefs.h <<\_ACEOF
6812 #define HAVE_COLOR 1
6815 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
6818 echo "$as_me:$LINENO: checking for SLtt_get_terminfo in -lslang" >&5
6819 echo $ECHO_N "checking for SLtt_get_terminfo in -lslang... $ECHO_C" >&6
6820 if test "${ac_cv_lib_slang_SLtt_get_terminfo+set}" = set; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6823 ac_check_lib_save_LIBS=$LIBS
6824 LIBS="-lslang -lm $LIBS"
6825 cat >conftest.$ac_ext <<_ACEOF
6826 #line $LINENO "configure"
6829 cat confdefs.h >>conftest.$ac_ext
6830 cat >>conftest.$ac_ext <<_ACEOF
6831 /* end confdefs.h. */
6833 /* Override any gcc2 internal prototype to avoid an error. */
6837 /* We use char because int might match the return type of a gcc2
6838 builtin and then its argument prototype would still apply. */
6839 char SLtt_get_terminfo ();
6843 SLtt_get_terminfo ();
6848 rm -f conftest.$ac_objext conftest$ac_exeext
6849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6850 (eval $ac_link) 2>&5
6852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853 (exit $ac_status); } &&
6854 { ac_try='test -s conftest$ac_exeext'
6855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); }; }; then
6860 ac_cv_lib_slang_SLtt_get_terminfo=yes
6862 echo "$as_me: failed program was:" >&5
6863 sed 's/^/| /' conftest.$ac_ext >&5
6865 ac_cv_lib_slang_SLtt_get_terminfo=no
6867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6868 LIBS=$ac_check_lib_save_LIBS
6870 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLtt_get_terminfo" >&5
6871 echo "${ECHO_T}$ac_cv_lib_slang_SLtt_get_terminfo" >&6
6872 if test $ac_cv_lib_slang_SLtt_get_terminfo = yes; then
6873 MUTTLIBS="$MUTTLIBS -lslang -lm"
6875 { { echo "$as_me:$LINENO: error: unable to compile. check config.log" >&5
6876 echo "$as_me: error: unable to compile. check config.log" >&2;}
6877 { (exit 1); exit 1; }; }
6885 # Check whether --with-curses or --without-curses was given.
6886 if test "${with_curses+set}" = set; then
6887 withval="$with_curses"
6888 if test $withval != yes; then
6889 mutt_cv_curses=$withval
6891 if test x$mutt_cv_curses != x/usr; then
6892 LDFLAGS="-L${mutt_cv_curses}/lib $LDFLAGS"
6893 CPPFLAGS="$CPPFLAGS -I${mutt_cv_curses}/include"
6897 echo "$as_me:$LINENO: checking for initscr" >&5
6898 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
6899 if test "${ac_cv_func_initscr+set}" = set; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
6902 cat >conftest.$ac_ext <<_ACEOF
6903 #line $LINENO "configure"
6906 cat confdefs.h >>conftest.$ac_ext
6907 cat >>conftest.$ac_ext <<_ACEOF
6908 /* end confdefs.h. */
6909 /* System header to define __stub macros and hopefully few prototypes,
6910 which can conflict with char initscr (); below.
6911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6912 <limits.h> exists even on freestanding compilers. */
6914 # include <limits.h>
6916 # include <assert.h>
6918 /* Override any gcc2 internal prototype to avoid an error. */
6923 /* We use char because int might match the return type of a gcc2
6924 builtin and then its argument prototype would still apply. */
6926 /* The GNU C library defines this for functions which it implements
6927 to always fail with ENOSYS. Some functions are actually named
6928 something starting with __ and the normal name is an alias. */
6929 #if defined (__stub_initscr) || defined (__stub___initscr)
6932 char (*f) () = initscr;
6941 return f != initscr;
6946 rm -f conftest.$ac_objext conftest$ac_exeext
6947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6948 (eval $ac_link) 2>&5
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); } &&
6952 { ac_try='test -s conftest$ac_exeext'
6953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957 (exit $ac_status); }; }; then
6958 ac_cv_func_initscr=yes
6960 echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6963 ac_cv_func_initscr=no
6965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6967 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
6968 echo "${ECHO_T}$ac_cv_func_initscr" >&6
6969 if test $ac_cv_func_initscr = yes; then
6973 cf_ncurses="ncurses"
6974 for lib in ncurses ncursesw
6976 as_ac_Lib=`echo "ac_cv_lib_$lib''_waddnwstr" | $as_tr_sh`
6977 echo "$as_me:$LINENO: checking for waddnwstr in -l$lib" >&5
6978 echo $ECHO_N "checking for waddnwstr in -l$lib... $ECHO_C" >&6
6979 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
6982 ac_check_lib_save_LIBS=$LIBS
6984 cat >conftest.$ac_ext <<_ACEOF
6985 #line $LINENO "configure"
6988 cat confdefs.h >>conftest.$ac_ext
6989 cat >>conftest.$ac_ext <<_ACEOF
6990 /* end confdefs.h. */
6992 /* Override any gcc2 internal prototype to avoid an error. */
6996 /* We use char because int might match the return type of a gcc2
6997 builtin and then its argument prototype would still apply. */
7007 rm -f conftest.$ac_objext conftest$ac_exeext
7008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7009 (eval $ac_link) 2>&5
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); } &&
7013 { ac_try='test -s conftest$ac_exeext'
7014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); }; }; then
7019 eval "$as_ac_Lib=yes"
7021 echo "$as_me: failed program was:" >&5
7022 sed 's/^/| /' conftest.$ac_ext >&5
7024 eval "$as_ac_Lib=no"
7026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7027 LIBS=$ac_check_lib_save_LIBS
7029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7030 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7031 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7032 cf_ncurses="$lib"; break
7036 as_ac_Lib=`echo "ac_cv_lib_$cf_ncurses''_initscr" | $as_tr_sh`
7037 echo "$as_me:$LINENO: checking for initscr in -l$cf_ncurses" >&5
7038 echo $ECHO_N "checking for initscr in -l$cf_ncurses... $ECHO_C" >&6
7039 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7040 echo $ECHO_N "(cached) $ECHO_C" >&6
7042 ac_check_lib_save_LIBS=$LIBS
7043 LIBS="-l$cf_ncurses $LIBS"
7044 cat >conftest.$ac_ext <<_ACEOF
7045 #line $LINENO "configure"
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h. */
7052 /* Override any gcc2 internal prototype to avoid an error. */
7056 /* We use char because int might match the return type of a gcc2
7057 builtin and then its argument prototype would still apply. */
7067 rm -f conftest.$ac_objext conftest$ac_exeext
7068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7069 (eval $ac_link) 2>&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); } &&
7073 { ac_try='test -s conftest$ac_exeext'
7074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); }; }; then
7079 eval "$as_ac_Lib=yes"
7081 echo "$as_me: failed program was:" >&5
7082 sed 's/^/| /' conftest.$ac_ext >&5
7084 eval "$as_ac_Lib=no"
7086 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7087 LIBS=$ac_check_lib_save_LIBS
7089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7090 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7091 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7092 MUTTLIBS="$MUTTLIBS -l$cf_ncurses"
7093 if test x$mutt_cv_curses = x/usr -a -d /usr/include/ncurses; then
7094 CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
7097 if test "$cf_ncurses" = ncursesw; then
7099 for ac_header in ncursesw/ncurses.h
7101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7103 echo "$as_me:$LINENO: checking for $ac_header" >&5
7104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7106 echo $ECHO_N "(cached) $ECHO_C" >&6
7108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7111 # Is the header compilable?
7112 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7114 cat >conftest.$ac_ext <<_ACEOF
7115 #line $LINENO "configure"
7118 cat confdefs.h >>conftest.$ac_ext
7119 cat >>conftest.$ac_ext <<_ACEOF
7120 /* end confdefs.h. */
7121 $ac_includes_default
7122 #include <$ac_header>
7124 rm -f conftest.$ac_objext
7125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7126 (eval $ac_compile) 2>&5
7128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129 (exit $ac_status); } &&
7130 { ac_try='test -s conftest.$ac_objext'
7131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); }; }; then
7136 ac_header_compiler=yes
7138 echo "$as_me: failed program was:" >&5
7139 sed 's/^/| /' conftest.$ac_ext >&5
7141 ac_header_compiler=no
7143 rm -f conftest.$ac_objext conftest.$ac_ext
7144 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7145 echo "${ECHO_T}$ac_header_compiler" >&6
7147 # Is the header present?
7148 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7149 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7150 cat >conftest.$ac_ext <<_ACEOF
7151 #line $LINENO "configure"
7154 cat confdefs.h >>conftest.$ac_ext
7155 cat >>conftest.$ac_ext <<_ACEOF
7156 /* end confdefs.h. */
7157 #include <$ac_header>
7159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7160 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7162 grep -v '^ *+' conftest.er1 >conftest.err
7164 cat conftest.err >&5
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); } >/dev/null; then
7167 if test -s conftest.err; then
7168 ac_cpp_err=$ac_c_preproc_warn_flag
7175 if test -z "$ac_cpp_err"; then
7176 ac_header_preproc=yes
7178 echo "$as_me: failed program was:" >&5
7179 sed 's/^/| /' conftest.$ac_ext >&5
7181 ac_header_preproc=no
7183 rm -f conftest.err conftest.$ac_ext
7184 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7185 echo "${ECHO_T}$ac_header_preproc" >&6
7187 # So? What about this header?
7188 case $ac_header_compiler:$ac_header_preproc in
7190 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7191 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7196 ## ------------------------------------ ##
7197 ## Report this to bug-autoconf@gnu.org. ##
7198 ## ------------------------------------ ##
7201 sed "s/^/$as_me: WARNING: /" >&2
7204 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7205 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7206 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7207 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7209 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7212 ## ------------------------------------ ##
7213 ## Report this to bug-autoconf@gnu.org. ##
7214 ## ------------------------------------ ##
7217 sed "s/^/$as_me: WARNING: /" >&2
7220 echo "$as_me:$LINENO: checking for $ac_header" >&5
7221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7225 eval "$as_ac_Header=$ac_header_preproc"
7227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7232 cat >>confdefs.h <<_ACEOF
7233 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7235 cf_cv_ncurses_header="ncursesw/ncurses.h"
7242 for ac_header in ncurses.h
7244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7246 echo "$as_me:$LINENO: checking for $ac_header" >&5
7247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
7251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7254 # Is the header compilable?
7255 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7257 cat >conftest.$ac_ext <<_ACEOF
7258 #line $LINENO "configure"
7261 cat confdefs.h >>conftest.$ac_ext
7262 cat >>conftest.$ac_ext <<_ACEOF
7263 /* end confdefs.h. */
7264 $ac_includes_default
7265 #include <$ac_header>
7267 rm -f conftest.$ac_objext
7268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7269 (eval $ac_compile) 2>&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } &&
7273 { ac_try='test -s conftest.$ac_objext'
7274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); }; }; then
7279 ac_header_compiler=yes
7281 echo "$as_me: failed program was:" >&5
7282 sed 's/^/| /' conftest.$ac_ext >&5
7284 ac_header_compiler=no
7286 rm -f conftest.$ac_objext conftest.$ac_ext
7287 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7288 echo "${ECHO_T}$ac_header_compiler" >&6
7290 # Is the header present?
7291 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7292 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7293 cat >conftest.$ac_ext <<_ACEOF
7294 #line $LINENO "configure"
7297 cat confdefs.h >>conftest.$ac_ext
7298 cat >>conftest.$ac_ext <<_ACEOF
7299 /* end confdefs.h. */
7300 #include <$ac_header>
7302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7303 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7305 grep -v '^ *+' conftest.er1 >conftest.err
7307 cat conftest.err >&5
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); } >/dev/null; then
7310 if test -s conftest.err; then
7311 ac_cpp_err=$ac_c_preproc_warn_flag
7318 if test -z "$ac_cpp_err"; then
7319 ac_header_preproc=yes
7321 echo "$as_me: failed program was:" >&5
7322 sed 's/^/| /' conftest.$ac_ext >&5
7324 ac_header_preproc=no
7326 rm -f conftest.err conftest.$ac_ext
7327 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7328 echo "${ECHO_T}$ac_header_preproc" >&6
7330 # So? What about this header?
7331 case $ac_header_compiler:$ac_header_preproc in
7333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7339 ## ------------------------------------ ##
7340 ## Report this to bug-autoconf@gnu.org. ##
7341 ## ------------------------------------ ##
7344 sed "s/^/$as_me: WARNING: /" >&2
7347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7350 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7355 ## ------------------------------------ ##
7356 ## Report this to bug-autoconf@gnu.org. ##
7357 ## ------------------------------------ ##
7360 sed "s/^/$as_me: WARNING: /" >&2
7363 echo "$as_me:$LINENO: checking for $ac_header" >&5
7364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7366 echo $ECHO_N "(cached) $ECHO_C" >&6
7368 eval "$as_ac_Header=$ac_header_preproc"
7370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7375 cat >>confdefs.h <<_ACEOF
7376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7378 cf_cv_ncurses_header="ncurses.h"
7386 echo "$as_me:$LINENO: checking for initscr" >&5
7387 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
7388 if test "${ac_cv_func_initscr+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7391 cat >conftest.$ac_ext <<_ACEOF
7392 #line $LINENO "configure"
7395 cat confdefs.h >>conftest.$ac_ext
7396 cat >>conftest.$ac_ext <<_ACEOF
7397 /* end confdefs.h. */
7398 /* System header to define __stub macros and hopefully few prototypes,
7399 which can conflict with char initscr (); below.
7400 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7401 <limits.h> exists even on freestanding compilers. */
7403 # include <limits.h>
7405 # include <assert.h>
7407 /* Override any gcc2 internal prototype to avoid an error. */
7412 /* We use char because int might match the return type of a gcc2
7413 builtin and then its argument prototype would still apply. */
7415 /* The GNU C library defines this for functions which it implements
7416 to always fail with ENOSYS. Some functions are actually named
7417 something starting with __ and the normal name is an alias. */
7418 #if defined (__stub_initscr) || defined (__stub___initscr)
7421 char (*f) () = initscr;
7430 return f != initscr;
7435 rm -f conftest.$ac_objext conftest$ac_exeext
7436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7437 (eval $ac_link) 2>&5
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); } &&
7441 { ac_try='test -s conftest$ac_exeext'
7442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446 (exit $ac_status); }; }; then
7447 ac_cv_func_initscr=yes
7449 echo "$as_me: failed program was:" >&5
7450 sed 's/^/| /' conftest.$ac_ext >&5
7452 ac_cv_func_initscr=no
7454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7456 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
7457 echo "${ECHO_T}$ac_cv_func_initscr" >&6
7458 if test $ac_cv_func_initscr = yes; then
7462 case $host_os in #(vi
7464 echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5
7465 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
7466 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
7467 echo $ECHO_N "(cached) $ECHO_C" >&6
7469 ac_check_lib_save_LIBS=$LIBS
7470 LIBS="-lmytinfo $LIBS"
7471 cat >conftest.$ac_ext <<_ACEOF
7472 #line $LINENO "configure"
7475 cat confdefs.h >>conftest.$ac_ext
7476 cat >>conftest.$ac_ext <<_ACEOF
7477 /* end confdefs.h. */
7479 /* Override any gcc2 internal prototype to avoid an error. */
7483 /* We use char because int might match the return type of a gcc2
7484 builtin and then its argument prototype would still apply. */
7494 rm -f conftest.$ac_objext conftest$ac_exeext
7495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7496 (eval $ac_link) 2>&5
7498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499 (exit $ac_status); } &&
7500 { ac_try='test -s conftest$ac_exeext'
7501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); }; }; then
7506 ac_cv_lib_mytinfo_tgoto=yes
7508 echo "$as_me: failed program was:" >&5
7509 sed 's/^/| /' conftest.$ac_ext >&5
7511 ac_cv_lib_mytinfo_tgoto=no
7513 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7514 LIBS=$ac_check_lib_save_LIBS
7516 echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5
7517 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
7518 if test $ac_cv_lib_mytinfo_tgoto = yes; then
7519 LIBS="-lmytinfo $LIBS"
7524 echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5
7525 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
7526 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
7527 echo $ECHO_N "(cached) $ECHO_C" >&6
7529 ac_check_lib_save_LIBS=$LIBS
7530 LIBS="-lcur_colr $LIBS"
7531 cat >conftest.$ac_ext <<_ACEOF
7532 #line $LINENO "configure"
7535 cat confdefs.h >>conftest.$ac_ext
7536 cat >>conftest.$ac_ext <<_ACEOF
7537 /* end confdefs.h. */
7539 /* Override any gcc2 internal prototype to avoid an error. */
7543 /* We use char because int might match the return type of a gcc2
7544 builtin and then its argument prototype would still apply. */
7554 rm -f conftest.$ac_objext conftest$ac_exeext
7555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7556 (eval $ac_link) 2>&5
7558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559 (exit $ac_status); } &&
7560 { ac_try='test -s conftest$ac_exeext'
7561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); }; }; then
7566 ac_cv_lib_cur_colr_initscr=yes
7568 echo "$as_me: failed program was:" >&5
7569 sed 's/^/| /' conftest.$ac_ext >&5
7571 ac_cv_lib_cur_colr_initscr=no
7573 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7574 LIBS=$ac_check_lib_save_LIBS
7576 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5
7577 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
7578 if test $ac_cv_lib_cur_colr_initscr = yes; then
7580 LIBS="-lcur_colr $LIBS"
7581 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
7582 ac_cv_func_initscr=yes
7586 echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5
7587 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
7588 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
7589 echo $ECHO_N "(cached) $ECHO_C" >&6
7591 ac_check_lib_save_LIBS=$LIBS
7592 LIBS="-lHcurses $LIBS"
7593 cat >conftest.$ac_ext <<_ACEOF
7594 #line $LINENO "configure"
7597 cat confdefs.h >>conftest.$ac_ext
7598 cat >>conftest.$ac_ext <<_ACEOF
7599 /* end confdefs.h. */
7601 /* Override any gcc2 internal prototype to avoid an error. */
7605 /* We use char because int might match the return type of a gcc2
7606 builtin and then its argument prototype would still apply. */
7616 rm -f conftest.$ac_objext conftest$ac_exeext
7617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7618 (eval $ac_link) 2>&5
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); } &&
7622 { ac_try='test -s conftest$ac_exeext'
7623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); }; }; then
7628 ac_cv_lib_Hcurses_initscr=yes
7630 echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.$ac_ext >&5
7633 ac_cv_lib_Hcurses_initscr=no
7635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7636 LIBS=$ac_check_lib_save_LIBS
7638 echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5
7639 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
7640 if test $ac_cv_lib_Hcurses_initscr = yes; then
7642 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
7643 LIBS="-lHcurses $LIBS"
7644 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
7645 ac_cv_func_initscr=yes
7652 linux*) # Suse Linux does not follow /usr/lib convention
7657 if test ".$With5lib" != ".no" ; then
7658 if test -d /usr/5lib ; then
7660 CPPFLAGS="$CPPFLAGS -I/usr/5include"
7661 LIBS="$LIBS -L/usr/5lib"
7665 if test ".$ac_cv_func_initscr" != .yes ; then
7666 cf_save_LIBS="$LIBS"
7670 # Check for library containing tgoto. Do this before curses library
7671 # because it may be needed to link the test-case for initscr.
7672 echo "$as_me:$LINENO: checking for tgoto" >&5
7673 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
7674 if test "${ac_cv_func_tgoto+set}" = set; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7677 cat >conftest.$ac_ext <<_ACEOF
7678 #line $LINENO "configure"
7681 cat confdefs.h >>conftest.$ac_ext
7682 cat >>conftest.$ac_ext <<_ACEOF
7683 /* end confdefs.h. */
7684 /* System header to define __stub macros and hopefully few prototypes,
7685 which can conflict with char tgoto (); below.
7686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7687 <limits.h> exists even on freestanding compilers. */
7689 # include <limits.h>
7691 # include <assert.h>
7693 /* Override any gcc2 internal prototype to avoid an error. */
7698 /* We use char because int might match the return type of a gcc2
7699 builtin and then its argument prototype would still apply. */
7701 /* The GNU C library defines this for functions which it implements
7702 to always fail with ENOSYS. Some functions are actually named
7703 something starting with __ and the normal name is an alias. */
7704 #if defined (__stub_tgoto) || defined (__stub___tgoto)
7707 char (*f) () = tgoto;
7721 rm -f conftest.$ac_objext conftest$ac_exeext
7722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7723 (eval $ac_link) 2>&5
7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); } &&
7727 { ac_try='test -s conftest$ac_exeext'
7728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732 (exit $ac_status); }; }; then
7733 ac_cv_func_tgoto=yes
7735 echo "$as_me: failed program was:" >&5
7736 sed 's/^/| /' conftest.$ac_ext >&5
7740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7742 echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5
7743 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
7744 if test $ac_cv_func_tgoto = yes; then
7745 cf_term_lib=predefined
7748 for cf_term_lib in termcap termlib unknown
7750 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
7751 echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5
7752 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
7753 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7754 echo $ECHO_N "(cached) $ECHO_C" >&6
7756 ac_check_lib_save_LIBS=$LIBS
7757 LIBS="-l$cf_term_lib $LIBS"
7758 cat >conftest.$ac_ext <<_ACEOF
7759 #line $LINENO "configure"
7762 cat confdefs.h >>conftest.$ac_ext
7763 cat >>conftest.$ac_ext <<_ACEOF
7764 /* end confdefs.h. */
7766 /* Override any gcc2 internal prototype to avoid an error. */
7770 /* We use char because int might match the return type of a gcc2
7771 builtin and then its argument prototype would still apply. */
7781 rm -f conftest.$ac_objext conftest$ac_exeext
7782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7783 (eval $ac_link) 2>&5
7785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786 (exit $ac_status); } &&
7787 { ac_try='test -s conftest$ac_exeext'
7788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792 (exit $ac_status); }; }; then
7793 eval "$as_ac_Lib=yes"
7795 echo "$as_me: failed program was:" >&5
7796 sed 's/^/| /' conftest.$ac_ext >&5
7798 eval "$as_ac_Lib=no"
7800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7801 LIBS=$ac_check_lib_save_LIBS
7803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7804 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7805 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7814 # Check for library containing initscr
7815 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
7816 for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
7818 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
7819 echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5
7820 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
7821 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7822 echo $ECHO_N "(cached) $ECHO_C" >&6
7824 ac_check_lib_save_LIBS=$LIBS
7825 LIBS="-l$cf_curs_lib $LIBS"
7826 cat >conftest.$ac_ext <<_ACEOF
7827 #line $LINENO "configure"
7830 cat confdefs.h >>conftest.$ac_ext
7831 cat >>conftest.$ac_ext <<_ACEOF
7832 /* end confdefs.h. */
7834 /* Override any gcc2 internal prototype to avoid an error. */
7838 /* We use char because int might match the return type of a gcc2
7839 builtin and then its argument prototype would still apply. */
7849 rm -f conftest.$ac_objext conftest$ac_exeext
7850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7851 (eval $ac_link) 2>&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); } &&
7855 { ac_try='test -s conftest$ac_exeext'
7856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); }; }; then
7861 eval "$as_ac_Lib=yes"
7863 echo "$as_me: failed program was:" >&5
7864 sed 's/^/| /' conftest.$ac_ext >&5
7866 eval "$as_ac_Lib=no"
7868 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7869 LIBS=$ac_check_lib_save_LIBS
7871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7872 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7873 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7878 test $cf_curs_lib = unknown && { { echo "$as_me:$LINENO: error: no curses library found" >&5
7879 echo "$as_me: error: no curses library found" >&2;}
7880 { (exit 1); exit 1; }; }
7882 LIBS="-l$cf_curs_lib $cf_save_LIBS"
7883 if test "$cf_term_lib" = unknown ; then
7884 echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5
7885 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
7886 cat >conftest.$ac_ext <<_ACEOF
7887 #line $LINENO "configure"
7890 cat confdefs.h >>conftest.$ac_ext
7891 cat >>conftest.$ac_ext <<_ACEOF
7892 /* end confdefs.h. */
7893 #include <${cf_cv_ncurses_header-curses.h}>
7902 rm -f conftest.$ac_objext conftest$ac_exeext
7903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7904 (eval $ac_link) 2>&5
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); } &&
7908 { ac_try='test -s conftest$ac_exeext'
7909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); }; }; then
7916 echo "$as_me: failed program was:" >&5
7917 sed 's/^/| /' conftest.$ac_ext >&5
7921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7922 echo "$as_me:$LINENO: result: $cf_result" >&5
7923 echo "${ECHO_T}$cf_result" >&6
7924 test $cf_result = no && { { echo "$as_me:$LINENO: error: Cannot link curses library" >&5
7925 echo "$as_me: error: Cannot link curses library" >&2;}
7926 { (exit 1); exit 1; }; }
7927 elif test "$cf_term_lib" != predefined ; then
7928 echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
7929 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
7930 cat >conftest.$ac_ext <<_ACEOF
7931 #line $LINENO "configure"
7934 cat confdefs.h >>conftest.$ac_ext
7935 cat >>conftest.$ac_ext <<_ACEOF
7936 /* end confdefs.h. */
7937 #include <${cf_cv_ncurses_header-curses.h}>
7941 initscr(); tgoto((char *)0, 0, 0);
7946 rm -f conftest.$ac_objext conftest$ac_exeext
7947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7948 (eval $ac_link) 2>&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); } &&
7952 { ac_try='test -s conftest$ac_exeext'
7953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); }; }; then
7960 echo "$as_me: failed program was:" >&5
7961 sed 's/^/| /' conftest.$ac_ext >&5
7964 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
7965 cat >conftest.$ac_ext <<_ACEOF
7966 #line $LINENO "configure"
7969 cat confdefs.h >>conftest.$ac_ext
7970 cat >>conftest.$ac_ext <<_ACEOF
7971 /* end confdefs.h. */
7972 #include <${cf_cv_ncurses_header-curses.h}>
7981 rm -f conftest.$ac_objext conftest$ac_exeext
7982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7983 (eval $ac_link) 2>&5
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); } &&
7987 { ac_try='test -s conftest$ac_exeext'
7988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); }; }; then
7995 echo "$as_me: failed program was:" >&5
7996 sed 's/^/| /' conftest.$ac_ext >&5
8000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8004 echo "$as_me:$LINENO: result: $cf_result" >&5
8005 echo "${ECHO_T}$cf_result" >&6
8019 LIBS="$LIBS $MUTTLIBS"
8020 for ac_func in start_color typeahead bkgdset curs_set meta use_default_colors resizeterm
8023 echo "$as_me:$LINENO: checking for $ac_func declaration" >&5
8024 echo $ECHO_N "checking for $ac_func declaration... $ECHO_C" >&6
8025 if eval "test \"\${ac_cv_func_decl_$ac_func+set}\" = set"; then
8026 echo $ECHO_N "(cached) $ECHO_C" >&6
8028 cat >conftest.$ac_ext <<_ACEOF
8029 #line $LINENO "configure"
8032 cat confdefs.h >>conftest.$ac_ext
8033 cat >>conftest.$ac_ext <<_ACEOF
8034 /* end confdefs.h. */
8035 #include <${cf_cv_ncurses_header-curses.h}>
8040 extern int ${ac_func}();
8046 rm -f conftest.$ac_objext
8047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8048 (eval $ac_compile) 2>&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); } &&
8052 { ac_try='test -s conftest.$ac_objext'
8053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); }; }; then
8059 cat >conftest.$ac_ext <<_ACEOF
8060 #line $LINENO "configure"
8063 cat confdefs.h >>conftest.$ac_ext
8064 cat >>conftest.$ac_ext <<_ACEOF
8065 /* end confdefs.h. */
8066 #include <${cf_cv_ncurses_header-curses.h}>
8071 int (*p)() = ${ac_func};
8077 rm -f conftest.$ac_objext
8078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8079 (eval $ac_compile) 2>&5
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } &&
8083 { ac_try='test -s conftest.$ac_objext'
8084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); }; }; then
8090 eval "ac_cv_func_decl_$ac_func=yes"
8092 echo "$as_me: failed program was:" >&5
8093 sed 's/^/| /' conftest.$ac_ext >&5
8096 eval "ac_cv_func_decl_$ac_func=no"
8098 rm -f conftest.$ac_objext conftest.$ac_ext
8100 echo "$as_me: failed program was:" >&5
8101 sed 's/^/| /' conftest.$ac_ext >&5
8104 eval "ac_cv_func_decl_$ac_func=yes"
8106 rm -f conftest.$ac_objext conftest.$ac_ext
8109 if eval "test \"`echo '$ac_cv_func_'decl_$ac_func`\" = yes"; then
8110 echo "$as_me:$LINENO: result: yes" >&5
8111 echo "${ECHO_T}yes" >&6
8114 ac_tr_func=`echo HAVE_$ac_func | tr '[a-z]' '[A-Z]'`
8116 cat >>confdefs.h <<_ACEOF
8117 #define $ac_tr_func 1
8121 echo "$as_me:$LINENO: result: no" >&5
8122 echo "${ECHO_T}no" >&6
8126 if test "$ac_cv_func_decl_start_color" = yes; then
8128 cat >>confdefs.h <<\_ACEOF
8129 #define HAVE_COLOR 1
8133 if test "$ac_cv_func_decl_resizeterm" = yes; then
8134 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
8140 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8141 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8142 if test "${ac_cv_header_stdc+set}" = set; then
8143 echo $ECHO_N "(cached) $ECHO_C" >&6
8145 cat >conftest.$ac_ext <<_ACEOF
8146 #line $LINENO "configure"
8149 cat confdefs.h >>conftest.$ac_ext
8150 cat >>conftest.$ac_ext <<_ACEOF
8151 /* end confdefs.h. */
8165 rm -f conftest.$ac_objext
8166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8167 (eval $ac_compile) 2>&5
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); } &&
8171 { ac_try='test -s conftest.$ac_objext'
8172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); }; }; then
8177 ac_cv_header_stdc=yes
8179 echo "$as_me: failed program was:" >&5
8180 sed 's/^/| /' conftest.$ac_ext >&5
8182 ac_cv_header_stdc=no
8184 rm -f conftest.$ac_objext conftest.$ac_ext
8186 if test $ac_cv_header_stdc = yes; then
8187 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8188 cat >conftest.$ac_ext <<_ACEOF
8189 #line $LINENO "configure"
8192 cat confdefs.h >>conftest.$ac_ext
8193 cat >>conftest.$ac_ext <<_ACEOF
8194 /* end confdefs.h. */
8198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8199 $EGREP "memchr" >/dev/null 2>&1; then
8202 ac_cv_header_stdc=no
8208 if test $ac_cv_header_stdc = yes; then
8209 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8210 cat >conftest.$ac_ext <<_ACEOF
8211 #line $LINENO "configure"
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h. */
8220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8221 $EGREP "free" >/dev/null 2>&1; then
8224 ac_cv_header_stdc=no
8230 if test $ac_cv_header_stdc = yes; then
8231 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8232 if test "$cross_compiling" = yes; then
8235 cat >conftest.$ac_ext <<_ACEOF
8236 #line $LINENO "configure"
8239 cat confdefs.h >>conftest.$ac_ext
8240 cat >>conftest.$ac_ext <<_ACEOF
8241 /* end confdefs.h. */
8243 #if ((' ' & 0x0FF) == 0x020)
8244 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8245 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8247 # define ISLOWER(c) \
8248 (('a' <= (c) && (c) <= 'i') \
8249 || ('j' <= (c) && (c) <= 'r') \
8250 || ('s' <= (c) && (c) <= 'z'))
8251 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8254 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8259 for (i = 0; i < 256; i++)
8260 if (XOR (islower (i), ISLOWER (i))
8261 || toupper (i) != TOUPPER (i))
8266 rm -f conftest$ac_exeext
8267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8268 (eval $ac_link) 2>&5
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); }; }; then
8279 echo "$as_me: program exited with status $ac_status" >&5
8280 echo "$as_me: failed program was:" >&5
8281 sed 's/^/| /' conftest.$ac_ext >&5
8284 ac_cv_header_stdc=no
8286 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8290 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8291 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8292 if test $ac_cv_header_stdc = yes; then
8294 cat >>confdefs.h <<\_ACEOF
8295 #define STDC_HEADERS 1
8305 for ac_header in stdarg.h sys/ioctl.h ioctl.h sysexits.h
8307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8309 echo "$as_me:$LINENO: checking for $ac_header" >&5
8310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8317 # Is the header compilable?
8318 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8319 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8320 cat >conftest.$ac_ext <<_ACEOF
8321 #line $LINENO "configure"
8324 cat confdefs.h >>conftest.$ac_ext
8325 cat >>conftest.$ac_ext <<_ACEOF
8326 /* end confdefs.h. */
8327 $ac_includes_default
8328 #include <$ac_header>
8330 rm -f conftest.$ac_objext
8331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8332 (eval $ac_compile) 2>&5
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); } &&
8336 { ac_try='test -s conftest.$ac_objext'
8337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); }; }; then
8342 ac_header_compiler=yes
8344 echo "$as_me: failed program was:" >&5
8345 sed 's/^/| /' conftest.$ac_ext >&5
8347 ac_header_compiler=no
8349 rm -f conftest.$ac_objext conftest.$ac_ext
8350 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8351 echo "${ECHO_T}$ac_header_compiler" >&6
8353 # Is the header present?
8354 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8355 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8356 cat >conftest.$ac_ext <<_ACEOF
8357 #line $LINENO "configure"
8360 cat confdefs.h >>conftest.$ac_ext
8361 cat >>conftest.$ac_ext <<_ACEOF
8362 /* end confdefs.h. */
8363 #include <$ac_header>
8365 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8366 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8368 grep -v '^ *+' conftest.er1 >conftest.err
8370 cat conftest.err >&5
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); } >/dev/null; then
8373 if test -s conftest.err; then
8374 ac_cpp_err=$ac_c_preproc_warn_flag
8381 if test -z "$ac_cpp_err"; then
8382 ac_header_preproc=yes
8384 echo "$as_me: failed program was:" >&5
8385 sed 's/^/| /' conftest.$ac_ext >&5
8387 ac_header_preproc=no
8389 rm -f conftest.err conftest.$ac_ext
8390 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8391 echo "${ECHO_T}$ac_header_preproc" >&6
8393 # So? What about this header?
8394 case $ac_header_compiler:$ac_header_preproc in
8396 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8397 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8402 ## ------------------------------------ ##
8403 ## Report this to bug-autoconf@gnu.org. ##
8404 ## ------------------------------------ ##
8407 sed "s/^/$as_me: WARNING: /" >&2
8410 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8411 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8412 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8413 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8414 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8415 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8418 ## ------------------------------------ ##
8419 ## Report this to bug-autoconf@gnu.org. ##
8420 ## ------------------------------------ ##
8423 sed "s/^/$as_me: WARNING: /" >&2
8426 echo "$as_me:$LINENO: checking for $ac_header" >&5
8427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8429 echo $ECHO_N "(cached) $ECHO_C" >&6
8431 eval "$as_ac_Header=$ac_header_preproc"
8433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8434 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8438 cat >>confdefs.h <<_ACEOF
8439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8448 for ac_header in sys/time.h sys/resource.h
8450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8452 echo "$as_me:$LINENO: checking for $ac_header" >&5
8453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8455 echo $ECHO_N "(cached) $ECHO_C" >&6
8457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8460 # Is the header compilable?
8461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8463 cat >conftest.$ac_ext <<_ACEOF
8464 #line $LINENO "configure"
8467 cat confdefs.h >>conftest.$ac_ext
8468 cat >>conftest.$ac_ext <<_ACEOF
8469 /* end confdefs.h. */
8470 $ac_includes_default
8471 #include <$ac_header>
8473 rm -f conftest.$ac_objext
8474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8475 (eval $ac_compile) 2>&5
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); } &&
8479 { ac_try='test -s conftest.$ac_objext'
8480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); }; }; then
8485 ac_header_compiler=yes
8487 echo "$as_me: failed program was:" >&5
8488 sed 's/^/| /' conftest.$ac_ext >&5
8490 ac_header_compiler=no
8492 rm -f conftest.$ac_objext conftest.$ac_ext
8493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8494 echo "${ECHO_T}$ac_header_compiler" >&6
8496 # Is the header present?
8497 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8499 cat >conftest.$ac_ext <<_ACEOF
8500 #line $LINENO "configure"
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h. */
8506 #include <$ac_header>
8508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8509 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8511 grep -v '^ *+' conftest.er1 >conftest.err
8513 cat conftest.err >&5
8514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515 (exit $ac_status); } >/dev/null; then
8516 if test -s conftest.err; then
8517 ac_cpp_err=$ac_c_preproc_warn_flag
8524 if test -z "$ac_cpp_err"; then
8525 ac_header_preproc=yes
8527 echo "$as_me: failed program was:" >&5
8528 sed 's/^/| /' conftest.$ac_ext >&5
8530 ac_header_preproc=no
8532 rm -f conftest.err conftest.$ac_ext
8533 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8534 echo "${ECHO_T}$ac_header_preproc" >&6
8536 # So? What about this header?
8537 case $ac_header_compiler:$ac_header_preproc in
8539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8545 ## ------------------------------------ ##
8546 ## Report this to bug-autoconf@gnu.org. ##
8547 ## ------------------------------------ ##
8550 sed "s/^/$as_me: WARNING: /" >&2
8553 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8554 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8555 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8556 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8561 ## ------------------------------------ ##
8562 ## Report this to bug-autoconf@gnu.org. ##
8563 ## ------------------------------------ ##
8566 sed "s/^/$as_me: WARNING: /" >&2
8569 echo "$as_me:$LINENO: checking for $ac_header" >&5
8570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8572 echo $ECHO_N "(cached) $ECHO_C" >&6
8574 eval "$as_ac_Header=$ac_header_preproc"
8576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8581 cat >>confdefs.h <<_ACEOF
8582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8590 for ac_header in unix.h
8592 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8594 echo "$as_me:$LINENO: checking for $ac_header" >&5
8595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8597 echo $ECHO_N "(cached) $ECHO_C" >&6
8599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8602 # Is the header compilable?
8603 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8605 cat >conftest.$ac_ext <<_ACEOF
8606 #line $LINENO "configure"
8609 cat confdefs.h >>conftest.$ac_ext
8610 cat >>conftest.$ac_ext <<_ACEOF
8611 /* end confdefs.h. */
8612 $ac_includes_default
8613 #include <$ac_header>
8615 rm -f conftest.$ac_objext
8616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8617 (eval $ac_compile) 2>&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); } &&
8621 { ac_try='test -s conftest.$ac_objext'
8622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }; }; then
8627 ac_header_compiler=yes
8629 echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8632 ac_header_compiler=no
8634 rm -f conftest.$ac_objext conftest.$ac_ext
8635 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8636 echo "${ECHO_T}$ac_header_compiler" >&6
8638 # Is the header present?
8639 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8640 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8641 cat >conftest.$ac_ext <<_ACEOF
8642 #line $LINENO "configure"
8645 cat confdefs.h >>conftest.$ac_ext
8646 cat >>conftest.$ac_ext <<_ACEOF
8647 /* end confdefs.h. */
8648 #include <$ac_header>
8650 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8651 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8653 grep -v '^ *+' conftest.er1 >conftest.err
8655 cat conftest.err >&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); } >/dev/null; then
8658 if test -s conftest.err; then
8659 ac_cpp_err=$ac_c_preproc_warn_flag
8666 if test -z "$ac_cpp_err"; then
8667 ac_header_preproc=yes
8669 echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8672 ac_header_preproc=no
8674 rm -f conftest.err conftest.$ac_ext
8675 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8676 echo "${ECHO_T}$ac_header_preproc" >&6
8678 # So? What about this header?
8679 case $ac_header_compiler:$ac_header_preproc in
8681 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8682 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8687 ## ------------------------------------ ##
8688 ## Report this to bug-autoconf@gnu.org. ##
8689 ## ------------------------------------ ##
8692 sed "s/^/$as_me: WARNING: /" >&2
8695 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8696 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8697 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8698 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8700 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8703 ## ------------------------------------ ##
8704 ## Report this to bug-autoconf@gnu.org. ##
8705 ## ------------------------------------ ##
8708 sed "s/^/$as_me: WARNING: /" >&2
8711 echo "$as_me:$LINENO: checking for $ac_header" >&5
8712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8714 echo $ECHO_N "(cached) $ECHO_C" >&6
8716 eval "$as_ac_Header=$ac_header_preproc"
8718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8722 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8723 cat >>confdefs.h <<_ACEOF
8724 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8735 for ac_func in setrlimit getsid isctype
8737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8738 echo "$as_me:$LINENO: checking for $ac_func" >&5
8739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8740 if eval "test \"\${$as_ac_var+set}\" = set"; then
8741 echo $ECHO_N "(cached) $ECHO_C" >&6
8743 cat >conftest.$ac_ext <<_ACEOF
8744 #line $LINENO "configure"
8747 cat confdefs.h >>conftest.$ac_ext
8748 cat >>conftest.$ac_ext <<_ACEOF
8749 /* end confdefs.h. */
8750 /* System header to define __stub macros and hopefully few prototypes,
8751 which can conflict with char $ac_func (); below.
8752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8753 <limits.h> exists even on freestanding compilers. */
8755 # include <limits.h>
8757 # include <assert.h>
8759 /* Override any gcc2 internal prototype to avoid an error. */
8764 /* We use char because int might match the return type of a gcc2
8765 builtin and then its argument prototype would still apply. */
8767 /* The GNU C library defines this for functions which it implements
8768 to always fail with ENOSYS. Some functions are actually named
8769 something starting with __ and the normal name is an alias. */
8770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8773 char (*f) () = $ac_func;
8782 return f != $ac_func;
8787 rm -f conftest.$ac_objext conftest$ac_exeext
8788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8789 (eval $ac_link) 2>&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 (exit $ac_status); } &&
8793 { ac_try='test -s conftest$ac_exeext'
8794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798 (exit $ac_status); }; }; then
8799 eval "$as_ac_var=yes"
8801 echo "$as_me: failed program was:" >&5
8802 sed 's/^/| /' conftest.$ac_ext >&5
8804 eval "$as_ac_var=no"
8806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8809 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8810 if test `eval echo '${'$as_ac_var'}'` = yes; then
8811 cat >>confdefs.h <<_ACEOF
8812 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8819 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8820 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
8821 if test "${ac_cv_type_signal+set}" = set; then
8822 echo $ECHO_N "(cached) $ECHO_C" >&6
8824 cat >conftest.$ac_ext <<_ACEOF
8825 #line $LINENO "configure"
8828 cat confdefs.h >>conftest.$ac_ext
8829 cat >>conftest.$ac_ext <<_ACEOF
8830 /* end confdefs.h. */
8831 #include <sys/types.h>
8837 extern "C" void (*signal (int, void (*)(int)))(int);
8839 void (*signal ()) ();
8850 rm -f conftest.$ac_objext
8851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8852 (eval $ac_compile) 2>&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); } &&
8856 { ac_try='test -s conftest.$ac_objext'
8857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); }; }; then
8862 ac_cv_type_signal=void
8864 echo "$as_me: failed program was:" >&5
8865 sed 's/^/| /' conftest.$ac_ext >&5
8867 ac_cv_type_signal=int
8869 rm -f conftest.$ac_objext conftest.$ac_ext
8871 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8872 echo "${ECHO_T}$ac_cv_type_signal" >&6
8874 cat >>confdefs.h <<_ACEOF
8875 #define RETSIGTYPE $ac_cv_type_signal
8880 echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5
8881 echo $ECHO_N "checking for sig_atomic_t in signal.h... $ECHO_C" >&6
8882 cat >conftest.$ac_ext <<_ACEOF
8883 #line $LINENO "configure"
8886 cat confdefs.h >>conftest.$ac_ext
8887 cat >>conftest.$ac_ext <<_ACEOF
8888 /* end confdefs.h. */
8892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8893 $EGREP "sig_atomic_t" >/dev/null 2>&1; then
8895 ac_cv_type_sig_atomic_t=yes;
8896 cat >conftest.$ac_ext <<_ACEOF
8897 #line $LINENO "configure"
8900 cat confdefs.h >>conftest.$ac_ext
8901 cat >>conftest.$ac_ext <<_ACEOF
8902 /* end confdefs.h. */
8906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8907 $EGREP "volatile.*sig_atomic_t" >/dev/null 2>&1; then
8909 is_sig_atomic_t_volatile=yes;
8910 echo "$as_me:$LINENO: result: yes, volatile" >&5
8911 echo "${ECHO_T}yes, volatile" >&6
8915 is_sig_atomic_t_volatile=no;
8916 echo "$as_me:$LINENO: result: yes, non volatile" >&5
8917 echo "${ECHO_T}yes, non volatile" >&6
8925 echo "$as_me:$LINENO: result: no" >&5
8926 echo "${ECHO_T}no" >&6
8927 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
8928 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
8929 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
8930 echo $ECHO_N "(cached) $ECHO_C" >&6
8932 cat >conftest.$ac_ext <<_ACEOF
8933 #line $LINENO "configure"
8936 cat confdefs.h >>conftest.$ac_ext
8937 cat >>conftest.$ac_ext <<_ACEOF
8938 /* end confdefs.h. */
8939 $ac_includes_default
8943 if ((sig_atomic_t *) 0)
8945 if (sizeof (sig_atomic_t))
8951 rm -f conftest.$ac_objext
8952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8953 (eval $ac_compile) 2>&5
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); } &&
8957 { ac_try='test -s conftest.$ac_objext'
8958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); }; }; then
8963 ac_cv_type_sig_atomic_t=yes
8965 echo "$as_me: failed program was:" >&5
8966 sed 's/^/| /' conftest.$ac_ext >&5
8968 ac_cv_type_sig_atomic_t=no
8970 rm -f conftest.$ac_objext conftest.$ac_ext
8972 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
8973 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
8974 if test $ac_cv_type_sig_atomic_t = yes; then
8978 cat >>confdefs.h <<_ACEOF
8979 #define sig_atomic_t int
8984 is_sig_atomic_t_volatile=no
8989 if test $is_sig_atomic_t_volatile = 'yes'
8991 cat >>confdefs.h <<\_ACEOF
8992 #define SIG_ATOMIC_VOLATILE_T sig_atomic_t
8996 cat >>confdefs.h <<\_ACEOF
8997 #define SIG_ATOMIC_VOLATILE_T volatile sig_atomic_t
9002 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
9003 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
9004 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
9005 echo $ECHO_N "(cached) $ECHO_C" >&6
9007 cat >conftest.$ac_ext <<_ACEOF
9008 #line $LINENO "configure"
9011 cat confdefs.h >>conftest.$ac_ext
9012 cat >>conftest.$ac_ext <<_ACEOF
9013 /* end confdefs.h. */
9014 $ac_includes_default
9019 char *p = (char *) sys_siglist;
9026 rm -f conftest.$ac_objext
9027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9028 (eval $ac_compile) 2>&5
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); } &&
9032 { ac_try='test -s conftest.$ac_objext'
9033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); }; }; then
9038 ac_cv_have_decl_sys_siglist=yes
9040 echo "$as_me: failed program was:" >&5
9041 sed 's/^/| /' conftest.$ac_ext >&5
9043 ac_cv_have_decl_sys_siglist=no
9045 rm -f conftest.$ac_objext conftest.$ac_ext
9047 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
9048 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
9049 if test $ac_cv_have_decl_sys_siglist = yes; then
9051 cat >>confdefs.h <<_ACEOF
9052 #define HAVE_DECL_SYS_SIGLIST 1
9057 cat >>confdefs.h <<_ACEOF
9058 #define HAVE_DECL_SYS_SIGLIST 0
9067 echo "$as_me:$LINENO: checking for pid_t" >&5
9068 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9069 if test "${ac_cv_type_pid_t+set}" = set; then
9070 echo $ECHO_N "(cached) $ECHO_C" >&6
9072 cat >conftest.$ac_ext <<_ACEOF
9073 #line $LINENO "configure"
9076 cat confdefs.h >>conftest.$ac_ext
9077 cat >>conftest.$ac_ext <<_ACEOF
9078 /* end confdefs.h. */
9079 $ac_includes_default
9091 rm -f conftest.$ac_objext
9092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9093 (eval $ac_compile) 2>&5
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 (exit $ac_status); } &&
9097 { ac_try='test -s conftest.$ac_objext'
9098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 (exit $ac_status); }; }; then
9103 ac_cv_type_pid_t=yes
9105 echo "$as_me: failed program was:" >&5
9106 sed 's/^/| /' conftest.$ac_ext >&5
9110 rm -f conftest.$ac_objext conftest.$ac_ext
9112 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9113 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9114 if test $ac_cv_type_pid_t = yes; then
9118 cat >>confdefs.h <<_ACEOF
9130 for ac_func in fgetpos memmove setegid srand48 strerror
9132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9133 echo "$as_me:$LINENO: checking for $ac_func" >&5
9134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9135 if eval "test \"\${$as_ac_var+set}\" = set"; then
9136 echo $ECHO_N "(cached) $ECHO_C" >&6
9138 cat >conftest.$ac_ext <<_ACEOF
9139 #line $LINENO "configure"
9142 cat confdefs.h >>conftest.$ac_ext
9143 cat >>conftest.$ac_ext <<_ACEOF
9144 /* end confdefs.h. */
9145 /* System header to define __stub macros and hopefully few prototypes,
9146 which can conflict with char $ac_func (); below.
9147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9148 <limits.h> exists even on freestanding compilers. */
9150 # include <limits.h>
9152 # include <assert.h>
9154 /* Override any gcc2 internal prototype to avoid an error. */
9159 /* We use char because int might match the return type of a gcc2
9160 builtin and then its argument prototype would still apply. */
9162 /* The GNU C library defines this for functions which it implements
9163 to always fail with ENOSYS. Some functions are actually named
9164 something starting with __ and the normal name is an alias. */
9165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9168 char (*f) () = $ac_func;
9177 return f != $ac_func;
9182 rm -f conftest.$ac_objext conftest$ac_exeext
9183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9184 (eval $ac_link) 2>&5
9186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187 (exit $ac_status); } &&
9188 { ac_try='test -s conftest$ac_exeext'
9189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); }; }; then
9194 eval "$as_ac_var=yes"
9196 echo "$as_me: failed program was:" >&5
9197 sed 's/^/| /' conftest.$ac_ext >&5
9199 eval "$as_ac_var=no"
9201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9205 if test `eval echo '${'$as_ac_var'}'` = yes; then
9206 cat >>confdefs.h <<_ACEOF
9207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9216 for ac_func in strcasecmp strdup
9218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9219 echo "$as_me:$LINENO: checking for $ac_func" >&5
9220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9221 if eval "test \"\${$as_ac_var+set}\" = set"; then
9222 echo $ECHO_N "(cached) $ECHO_C" >&6
9224 cat >conftest.$ac_ext <<_ACEOF
9225 #line $LINENO "configure"
9228 cat confdefs.h >>conftest.$ac_ext
9229 cat >>conftest.$ac_ext <<_ACEOF
9230 /* end confdefs.h. */
9231 /* System header to define __stub macros and hopefully few prototypes,
9232 which can conflict with char $ac_func (); below.
9233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9234 <limits.h> exists even on freestanding compilers. */
9236 # include <limits.h>
9238 # include <assert.h>
9240 /* Override any gcc2 internal prototype to avoid an error. */
9245 /* We use char because int might match the return type of a gcc2
9246 builtin and then its argument prototype would still apply. */
9248 /* The GNU C library defines this for functions which it implements
9249 to always fail with ENOSYS. Some functions are actually named
9250 something starting with __ and the normal name is an alias. */
9251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9254 char (*f) () = $ac_func;
9263 return f != $ac_func;
9268 rm -f conftest.$ac_objext conftest$ac_exeext
9269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9270 (eval $ac_link) 2>&5
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); } &&
9274 { ac_try='test -s conftest$ac_exeext'
9275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); }; }; then
9280 eval "$as_ac_var=yes"
9282 echo "$as_me: failed program was:" >&5
9283 sed 's/^/| /' conftest.$ac_ext >&5
9285 eval "$as_ac_var=no"
9287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9290 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9291 if test `eval echo '${'$as_ac_var'}'` = yes; then
9292 cat >>confdefs.h <<_ACEOF
9293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9297 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
9303 echo "$as_me:$LINENO: checking for getopt" >&5
9304 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
9305 if test "${ac_cv_func_getopt+set}" = set; then
9306 echo $ECHO_N "(cached) $ECHO_C" >&6
9308 cat >conftest.$ac_ext <<_ACEOF
9309 #line $LINENO "configure"
9312 cat confdefs.h >>conftest.$ac_ext
9313 cat >>conftest.$ac_ext <<_ACEOF
9314 /* end confdefs.h. */
9315 /* System header to define __stub macros and hopefully few prototypes,
9316 which can conflict with char getopt (); below.
9317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9318 <limits.h> exists even on freestanding compilers. */
9320 # include <limits.h>
9322 # include <assert.h>
9324 /* Override any gcc2 internal prototype to avoid an error. */
9329 /* We use char because int might match the return type of a gcc2
9330 builtin and then its argument prototype would still apply. */
9332 /* The GNU C library defines this for functions which it implements
9333 to always fail with ENOSYS. Some functions are actually named
9334 something starting with __ and the normal name is an alias. */
9335 #if defined (__stub_getopt) || defined (__stub___getopt)
9338 char (*f) () = getopt;
9352 rm -f conftest.$ac_objext conftest$ac_exeext
9353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9354 (eval $ac_link) 2>&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); } &&
9358 { ac_try='test -s conftest$ac_exeext'
9359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); }; }; then
9364 ac_cv_func_getopt=yes
9366 echo "$as_me: failed program was:" >&5
9367 sed 's/^/| /' conftest.$ac_ext >&5
9369 ac_cv_func_getopt=no
9371 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9373 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
9374 echo "${ECHO_T}$ac_cv_func_getopt" >&6
9376 if test $ac_cv_func_getopt = yes; then
9378 for ac_header in getopt.h
9380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9382 echo "$as_me:$LINENO: checking for $ac_header" >&5
9383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9385 echo $ECHO_N "(cached) $ECHO_C" >&6
9387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9390 # Is the header compilable?
9391 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9393 cat >conftest.$ac_ext <<_ACEOF
9394 #line $LINENO "configure"
9397 cat confdefs.h >>conftest.$ac_ext
9398 cat >>conftest.$ac_ext <<_ACEOF
9399 /* end confdefs.h. */
9400 $ac_includes_default
9401 #include <$ac_header>
9403 rm -f conftest.$ac_objext
9404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9405 (eval $ac_compile) 2>&5
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); } &&
9409 { ac_try='test -s conftest.$ac_objext'
9410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); }; }; then
9415 ac_header_compiler=yes
9417 echo "$as_me: failed program was:" >&5
9418 sed 's/^/| /' conftest.$ac_ext >&5
9420 ac_header_compiler=no
9422 rm -f conftest.$ac_objext conftest.$ac_ext
9423 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9424 echo "${ECHO_T}$ac_header_compiler" >&6
9426 # Is the header present?
9427 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9428 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9429 cat >conftest.$ac_ext <<_ACEOF
9430 #line $LINENO "configure"
9433 cat confdefs.h >>conftest.$ac_ext
9434 cat >>conftest.$ac_ext <<_ACEOF
9435 /* end confdefs.h. */
9436 #include <$ac_header>
9438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9439 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9441 grep -v '^ *+' conftest.er1 >conftest.err
9443 cat conftest.err >&5
9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445 (exit $ac_status); } >/dev/null; then
9446 if test -s conftest.err; then
9447 ac_cpp_err=$ac_c_preproc_warn_flag
9454 if test -z "$ac_cpp_err"; then
9455 ac_header_preproc=yes
9457 echo "$as_me: failed program was:" >&5
9458 sed 's/^/| /' conftest.$ac_ext >&5
9460 ac_header_preproc=no
9462 rm -f conftest.err conftest.$ac_ext
9463 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9464 echo "${ECHO_T}$ac_header_preproc" >&6
9466 # So? What about this header?
9467 case $ac_header_compiler:$ac_header_preproc in
9469 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9470 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9472 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9475 ## ------------------------------------ ##
9476 ## Report this to bug-autoconf@gnu.org. ##
9477 ## ------------------------------------ ##
9480 sed "s/^/$as_me: WARNING: /" >&2
9483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9486 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9491 ## ------------------------------------ ##
9492 ## Report this to bug-autoconf@gnu.org. ##
9493 ## ------------------------------------ ##
9496 sed "s/^/$as_me: WARNING: /" >&2
9499 echo "$as_me:$LINENO: checking for $ac_header" >&5
9500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9502 echo $ECHO_N "(cached) $ECHO_C" >&6
9504 eval "$as_ac_Header=$ac_header_preproc"
9506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9511 cat >>confdefs.h <<_ACEOF
9512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9524 for ac_func in snprintf
9526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9527 echo "$as_me:$LINENO: checking for $ac_func" >&5
9528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9529 if eval "test \"\${$as_ac_var+set}\" = set"; then
9530 echo $ECHO_N "(cached) $ECHO_C" >&6
9532 cat >conftest.$ac_ext <<_ACEOF
9533 #line $LINENO "configure"
9536 cat confdefs.h >>conftest.$ac_ext
9537 cat >>conftest.$ac_ext <<_ACEOF
9538 /* end confdefs.h. */
9539 /* System header to define __stub macros and hopefully few prototypes,
9540 which can conflict with char $ac_func (); below.
9541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9542 <limits.h> exists even on freestanding compilers. */
9544 # include <limits.h>
9546 # include <assert.h>
9548 /* Override any gcc2 internal prototype to avoid an error. */
9553 /* We use char because int might match the return type of a gcc2
9554 builtin and then its argument prototype would still apply. */
9556 /* The GNU C library defines this for functions which it implements
9557 to always fail with ENOSYS. Some functions are actually named
9558 something starting with __ and the normal name is an alias. */
9559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9562 char (*f) () = $ac_func;
9571 return f != $ac_func;
9576 rm -f conftest.$ac_objext conftest$ac_exeext
9577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9578 (eval $ac_link) 2>&5
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); } &&
9582 { ac_try='test -s conftest$ac_exeext'
9583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); }; }; then
9588 eval "$as_ac_var=yes"
9590 echo "$as_me: failed program was:" >&5
9591 sed 's/^/| /' conftest.$ac_ext >&5
9593 eval "$as_ac_var=no"
9595 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9598 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9599 if test `eval echo '${'$as_ac_var'}'` = yes; then
9600 cat >>confdefs.h <<_ACEOF
9601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9605 mutt_cv_snprintf=yes
9610 for ac_func in vsnprintf
9612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9613 echo "$as_me:$LINENO: checking for $ac_func" >&5
9614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9615 if eval "test \"\${$as_ac_var+set}\" = set"; then
9616 echo $ECHO_N "(cached) $ECHO_C" >&6
9618 cat >conftest.$ac_ext <<_ACEOF
9619 #line $LINENO "configure"
9622 cat confdefs.h >>conftest.$ac_ext
9623 cat >>conftest.$ac_ext <<_ACEOF
9624 /* end confdefs.h. */
9625 /* System header to define __stub macros and hopefully few prototypes,
9626 which can conflict with char $ac_func (); below.
9627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9628 <limits.h> exists even on freestanding compilers. */
9630 # include <limits.h>
9632 # include <assert.h>
9634 /* Override any gcc2 internal prototype to avoid an error. */
9639 /* We use char because int might match the return type of a gcc2
9640 builtin and then its argument prototype would still apply. */
9642 /* The GNU C library defines this for functions which it implements
9643 to always fail with ENOSYS. Some functions are actually named
9644 something starting with __ and the normal name is an alias. */
9645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9648 char (*f) () = $ac_func;
9657 return f != $ac_func;
9662 rm -f conftest.$ac_objext conftest$ac_exeext
9663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9664 (eval $ac_link) 2>&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); } &&
9668 { ac_try='test -s conftest$ac_exeext'
9669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); }; }; then
9674 eval "$as_ac_var=yes"
9676 echo "$as_me: failed program was:" >&5
9677 sed 's/^/| /' conftest.$ac_ext >&5
9679 eval "$as_ac_var=no"
9681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9684 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9685 if test `eval echo '${'$as_ac_var'}'` = yes; then
9686 cat >>confdefs.h <<_ACEOF
9687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9691 mutt_cv_snprintf=yes
9695 if test $mutt_cv_snprintf = yes; then
9696 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
9700 for ac_func in ftruncate
9702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9703 echo "$as_me:$LINENO: checking for $ac_func" >&5
9704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9705 if eval "test \"\${$as_ac_var+set}\" = set"; then
9706 echo $ECHO_N "(cached) $ECHO_C" >&6
9708 cat >conftest.$ac_ext <<_ACEOF
9709 #line $LINENO "configure"
9712 cat confdefs.h >>conftest.$ac_ext
9713 cat >>conftest.$ac_ext <<_ACEOF
9714 /* end confdefs.h. */
9715 /* System header to define __stub macros and hopefully few prototypes,
9716 which can conflict with char $ac_func (); below.
9717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9718 <limits.h> exists even on freestanding compilers. */
9720 # include <limits.h>
9722 # include <assert.h>
9724 /* Override any gcc2 internal prototype to avoid an error. */
9729 /* We use char because int might match the return type of a gcc2
9730 builtin and then its argument prototype would still apply. */
9732 /* The GNU C library defines this for functions which it implements
9733 to always fail with ENOSYS. Some functions are actually named
9734 something starting with __ and the normal name is an alias. */
9735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9738 char (*f) () = $ac_func;
9747 return f != $ac_func;
9752 rm -f conftest.$ac_objext conftest$ac_exeext
9753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9754 (eval $ac_link) 2>&5
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); } &&
9758 { ac_try='test -s conftest$ac_exeext'
9759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763 (exit $ac_status); }; }; then
9764 eval "$as_ac_var=yes"
9766 echo "$as_me: failed program was:" >&5
9767 sed 's/^/| /' conftest.$ac_ext >&5
9769 eval "$as_ac_var=no"
9771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9774 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9775 if test `eval echo '${'$as_ac_var'}'` = yes; then
9776 cat >>confdefs.h <<_ACEOF
9777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9782 echo "$as_me:$LINENO: checking for chsize in -lx" >&5
9783 echo $ECHO_N "checking for chsize in -lx... $ECHO_C" >&6
9784 if test "${ac_cv_lib_x_chsize+set}" = set; then
9785 echo $ECHO_N "(cached) $ECHO_C" >&6
9787 ac_check_lib_save_LIBS=$LIBS
9789 cat >conftest.$ac_ext <<_ACEOF
9790 #line $LINENO "configure"
9793 cat confdefs.h >>conftest.$ac_ext
9794 cat >>conftest.$ac_ext <<_ACEOF
9795 /* end confdefs.h. */
9797 /* Override any gcc2 internal prototype to avoid an error. */
9801 /* We use char because int might match the return type of a gcc2
9802 builtin and then its argument prototype would still apply. */
9812 rm -f conftest.$ac_objext conftest$ac_exeext
9813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9814 (eval $ac_link) 2>&5
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); } &&
9818 { ac_try='test -s conftest$ac_exeext'
9819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); }; }; then
9824 ac_cv_lib_x_chsize=yes
9826 echo "$as_me: failed program was:" >&5
9827 sed 's/^/| /' conftest.$ac_ext >&5
9829 ac_cv_lib_x_chsize=no
9831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9832 LIBS=$ac_check_lib_save_LIBS
9834 echo "$as_me:$LINENO: result: $ac_cv_lib_x_chsize" >&5
9835 echo "${ECHO_T}$ac_cv_lib_x_chsize" >&6
9836 if test $ac_cv_lib_x_chsize = yes; then
9837 cat >>confdefs.h <<_ACEOF
9850 for ac_func in strftime
9852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9853 echo "$as_me:$LINENO: checking for $ac_func" >&5
9854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9855 if eval "test \"\${$as_ac_var+set}\" = set"; then
9856 echo $ECHO_N "(cached) $ECHO_C" >&6
9858 cat >conftest.$ac_ext <<_ACEOF
9859 #line $LINENO "configure"
9862 cat confdefs.h >>conftest.$ac_ext
9863 cat >>conftest.$ac_ext <<_ACEOF
9864 /* end confdefs.h. */
9865 /* System header to define __stub macros and hopefully few prototypes,
9866 which can conflict with char $ac_func (); below.
9867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9868 <limits.h> exists even on freestanding compilers. */
9870 # include <limits.h>
9872 # include <assert.h>
9874 /* Override any gcc2 internal prototype to avoid an error. */
9879 /* We use char because int might match the return type of a gcc2
9880 builtin and then its argument prototype would still apply. */
9882 /* The GNU C library defines this for functions which it implements
9883 to always fail with ENOSYS. Some functions are actually named
9884 something starting with __ and the normal name is an alias. */
9885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9888 char (*f) () = $ac_func;
9897 return f != $ac_func;
9902 rm -f conftest.$ac_objext conftest$ac_exeext
9903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9904 (eval $ac_link) 2>&5
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); } &&
9908 { ac_try='test -s conftest$ac_exeext'
9909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); }; }; then
9914 eval "$as_ac_var=yes"
9916 echo "$as_me: failed program was:" >&5
9917 sed 's/^/| /' conftest.$ac_ext >&5
9919 eval "$as_ac_var=no"
9921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9924 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9925 if test `eval echo '${'$as_ac_var'}'` = yes; then
9926 cat >>confdefs.h <<_ACEOF
9927 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9932 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
9933 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
9934 if test "${ac_cv_lib_intl_strftime+set}" = set; then
9935 echo $ECHO_N "(cached) $ECHO_C" >&6
9937 ac_check_lib_save_LIBS=$LIBS
9939 cat >conftest.$ac_ext <<_ACEOF
9940 #line $LINENO "configure"
9943 cat confdefs.h >>conftest.$ac_ext
9944 cat >>conftest.$ac_ext <<_ACEOF
9945 /* end confdefs.h. */
9947 /* Override any gcc2 internal prototype to avoid an error. */
9951 /* We use char because int might match the return type of a gcc2
9952 builtin and then its argument prototype would still apply. */
9962 rm -f conftest.$ac_objext conftest$ac_exeext
9963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9964 (eval $ac_link) 2>&5
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); } &&
9968 { ac_try='test -s conftest$ac_exeext'
9969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); }; }; then
9974 ac_cv_lib_intl_strftime=yes
9976 echo "$as_me: failed program was:" >&5
9977 sed 's/^/| /' conftest.$ac_ext >&5
9979 ac_cv_lib_intl_strftime=no
9981 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9982 LIBS=$ac_check_lib_save_LIBS
9984 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
9985 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
9986 if test $ac_cv_lib_intl_strftime = yes; then
9987 cat >>confdefs.h <<_ACEOF
9988 #define HAVE_LIBINTL 1
10000 for ac_func in fchdir
10002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10003 echo "$as_me:$LINENO: checking for $ac_func" >&5
10004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10005 if eval "test \"\${$as_ac_var+set}\" = set"; then
10006 echo $ECHO_N "(cached) $ECHO_C" >&6
10008 cat >conftest.$ac_ext <<_ACEOF
10009 #line $LINENO "configure"
10012 cat confdefs.h >>conftest.$ac_ext
10013 cat >>conftest.$ac_ext <<_ACEOF
10014 /* end confdefs.h. */
10015 /* System header to define __stub macros and hopefully few prototypes,
10016 which can conflict with char $ac_func (); below.
10017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10018 <limits.h> exists even on freestanding compilers. */
10020 # include <limits.h>
10022 # include <assert.h>
10024 /* Override any gcc2 internal prototype to avoid an error. */
10029 /* We use char because int might match the return type of a gcc2
10030 builtin and then its argument prototype would still apply. */
10032 /* The GNU C library defines this for functions which it implements
10033 to always fail with ENOSYS. Some functions are actually named
10034 something starting with __ and the normal name is an alias. */
10035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10038 char (*f) () = $ac_func;
10047 return f != $ac_func;
10052 rm -f conftest.$ac_objext conftest$ac_exeext
10053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10054 (eval $ac_link) 2>&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); } &&
10058 { ac_try='test -s conftest$ac_exeext'
10059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10060 (eval $ac_try) 2>&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); }; }; then
10064 eval "$as_ac_var=yes"
10066 echo "$as_me: failed program was:" >&5
10067 sed 's/^/| /' conftest.$ac_ext >&5
10069 eval "$as_ac_var=no"
10071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10074 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10075 if test `eval echo '${'$as_ac_var'}'` = yes; then
10076 cat >>confdefs.h <<_ACEOF
10077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10087 # Check whether --with-regex or --without-regex was given.
10088 if test "${with_regex+set}" = set; then
10089 withval="$with_regex"
10093 for ac_func in regcomp
10095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10096 echo "$as_me:$LINENO: checking for $ac_func" >&5
10097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10098 if eval "test \"\${$as_ac_var+set}\" = set"; then
10099 echo $ECHO_N "(cached) $ECHO_C" >&6
10101 cat >conftest.$ac_ext <<_ACEOF
10102 #line $LINENO "configure"
10105 cat confdefs.h >>conftest.$ac_ext
10106 cat >>conftest.$ac_ext <<_ACEOF
10107 /* end confdefs.h. */
10108 /* System header to define __stub macros and hopefully few prototypes,
10109 which can conflict with char $ac_func (); below.
10110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10111 <limits.h> exists even on freestanding compilers. */
10113 # include <limits.h>
10115 # include <assert.h>
10117 /* Override any gcc2 internal prototype to avoid an error. */
10122 /* We use char because int might match the return type of a gcc2
10123 builtin and then its argument prototype would still apply. */
10125 /* The GNU C library defines this for functions which it implements
10126 to always fail with ENOSYS. Some functions are actually named
10127 something starting with __ and the normal name is an alias. */
10128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10131 char (*f) () = $ac_func;
10140 return f != $ac_func;
10145 rm -f conftest.$ac_objext conftest$ac_exeext
10146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10147 (eval $ac_link) 2>&5
10149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150 (exit $ac_status); } &&
10151 { ac_try='test -s conftest$ac_exeext'
10152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10153 (eval $ac_try) 2>&5
10155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156 (exit $ac_status); }; }; then
10157 eval "$as_ac_var=yes"
10159 echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10162 eval "$as_ac_var=no"
10164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10167 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10168 if test `eval echo '${'$as_ac_var'}'` = yes; then
10169 cat >>confdefs.h <<_ACEOF
10170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10180 if test $mutt_cv_regex = no ; then
10181 echo "$as_me:$LINENO: checking whether your system's regexp library is completely broken" >&5
10182 echo $ECHO_N "checking whether your system's regexp library is completely broken... $ECHO_C" >&6
10183 if test "${mutt_cv_regex_broken+set}" = set; then
10184 echo $ECHO_N "(cached) $ECHO_C" >&6
10186 if test "$cross_compiling" = yes; then
10187 mutt_cv_regex_broken=yes
10189 cat >conftest.$ac_ext <<_ACEOF
10190 #line $LINENO "configure"
10193 cat confdefs.h >>conftest.$ac_ext
10194 cat >>conftest.$ac_ext <<_ACEOF
10195 /* end confdefs.h. */
10197 #include <unistd.h>
10199 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); }
10201 rm -f conftest$ac_exeext
10202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10203 (eval $ac_link) 2>&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10208 (eval $ac_try) 2>&5
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); }; }; then
10212 mutt_cv_regex_broken=no
10214 echo "$as_me: program exited with status $ac_status" >&5
10215 echo "$as_me: failed program was:" >&5
10216 sed 's/^/| /' conftest.$ac_ext >&5
10218 ( exit $ac_status )
10219 mutt_cv_regex_broken=yes
10221 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10224 echo "$as_me:$LINENO: result: $mutt_cv_regex_broken" >&5
10225 echo "${ECHO_T}$mutt_cv_regex_broken" >&6
10226 if test $mutt_cv_regex_broken = yes ; then
10227 echo "Using the included GNU regex instead." >&6
10232 if test $mutt_cv_regex = yes; then
10234 cat >>confdefs.h <<\_ACEOF
10235 #define USE_GNU_REGEX 1
10238 LIBOBJS="$LIBOBJS regex.$ac_objext"
10243 # Check whether --with-homespool or --without-homespool was given.
10244 if test "${with_homespool+set}" = set; then
10245 withval="$with_homespool"
10246 with_homespool=${withval}
10248 if test x$with_homespool != x; then
10249 if test $with_homespool = yes; then
10250 with_homespool=mailbox
10253 cat >>confdefs.h <<_ACEOF
10254 #define MAILPATH "$with_homespool"
10258 cat >>confdefs.h <<\_ACEOF
10259 #define HOMESPOOL 1
10263 cat >>confdefs.h <<\_ACEOF
10264 #define USE_DOTLOCK 1
10270 # Check whether --with-mailpath or --without-mailpath was given.
10271 if test "${with_mailpath+set}" = set; then
10272 withval="$with_mailpath"
10273 mutt_cv_mailpath=$withval
10275 echo "$as_me:$LINENO: checking where new mail is stored" >&5
10276 echo $ECHO_N "checking where new mail is stored... $ECHO_C" >&6
10277 if test "${mutt_cv_mailpath+set}" = set; then
10278 echo $ECHO_N "(cached) $ECHO_C" >&6
10280 mutt_cv_mailpath=no
10281 if test -d /var/mail; then
10282 mutt_cv_mailpath=/var/mail
10283 elif test -d /var/spool/mail; then
10284 mutt_cv_mailpath=/var/spool/mail
10285 elif test -d /usr/spool/mail; then
10286 mutt_cv_mailpath=/usr/spool/mail
10287 elif test -d /usr/mail; then
10288 mutt_cv_mailpath=/usr/mail
10291 echo "$as_me:$LINENO: result: $mutt_cv_mailpath" >&5
10292 echo "${ECHO_T}$mutt_cv_mailpath" >&6
10295 if test "$mutt_cv_mailpath" = no; then
10296 { { echo "$as_me:$LINENO: error: \"Could not determine where new mail is stored.\"" >&5
10297 echo "$as_me: error: \"Could not determine where new mail is stored.\"" >&2;}
10298 { (exit 1); exit 1; }; }
10301 cat >>confdefs.h <<_ACEOF
10302 #define MAILPATH "$mutt_cv_mailpath"
10306 echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is world writable" >&5
10307 echo $ECHO_N "checking if $mutt_cv_mailpath is world writable... $ECHO_C" >&6
10308 if test "${mutt_cv_worldwrite+set}" = set; then
10309 echo $ECHO_N "(cached) $ECHO_C" >&6
10311 if test "$cross_compiling" = yes; then
10312 mutt_cv_worldwrite=no
10314 cat >conftest.$ac_ext <<_ACEOF
10315 #line $LINENO "configure"
10318 cat confdefs.h >>conftest.$ac_ext
10319 cat >>conftest.$ac_ext <<_ACEOF
10320 /* end confdefs.h. */
10321 #include <sys/types.h>
10322 #include <sys/stat.h>
10324 int main (int argc, char **argv)
10328 stat ("$mutt_cv_mailpath", &s);
10329 if (s.st_mode & S_IWOTH) exit (0);
10333 rm -f conftest$ac_exeext
10334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10335 (eval $ac_link) 2>&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10340 (eval $ac_try) 2>&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); }; }; then
10344 mutt_cv_worldwrite=yes
10346 echo "$as_me: program exited with status $ac_status" >&5
10347 echo "$as_me: failed program was:" >&5
10348 sed 's/^/| /' conftest.$ac_ext >&5
10350 ( exit $ac_status )
10351 mutt_cv_worldwrite=no
10353 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10356 echo "$as_me:$LINENO: result: $mutt_cv_worldwrite" >&5
10357 echo "${ECHO_T}$mutt_cv_worldwrite" >&6
10360 if test $mutt_cv_worldwrite = yes; then
10362 cat >>confdefs.h <<\_ACEOF
10363 #define USE_DOTLOCK 1
10368 echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is group writable" >&5
10369 echo $ECHO_N "checking if $mutt_cv_mailpath is group writable... $ECHO_C" >&6
10370 if test "${mutt_cv_groupwrite+set}" = set; then
10371 echo $ECHO_N "(cached) $ECHO_C" >&6
10373 if test "$cross_compiling" = yes; then
10374 mutt_cv_groupwrite=no
10376 cat >conftest.$ac_ext <<_ACEOF
10377 #line $LINENO "configure"
10380 cat confdefs.h >>conftest.$ac_ext
10381 cat >>conftest.$ac_ext <<_ACEOF
10382 /* end confdefs.h. */
10383 #include <sys/types.h>
10384 #include <sys/stat.h>
10386 int main (int argc, char **argv)
10390 stat ("$mutt_cv_mailpath", &s);
10391 if (s.st_mode & S_IWGRP) exit (0);
10395 rm -f conftest$ac_exeext
10396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10397 (eval $ac_link) 2>&5
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10402 (eval $ac_try) 2>&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); }; }; then
10406 mutt_cv_groupwrite=yes
10408 echo "$as_me: program exited with status $ac_status" >&5
10409 echo "$as_me: failed program was:" >&5
10410 sed 's/^/| /' conftest.$ac_ext >&5
10412 ( exit $ac_status )
10413 mutt_cv_groupwrite=no
10415 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10418 echo "$as_me:$LINENO: result: $mutt_cv_groupwrite" >&5
10419 echo "${ECHO_T}$mutt_cv_groupwrite" >&6
10421 if test $mutt_cv_groupwrite = yes; then
10423 cat >>confdefs.h <<\_ACEOF
10424 #define USE_DOTLOCK 1
10428 cat >>confdefs.h <<\_ACEOF
10429 #define USE_SETGID 1
10437 # Check whether --enable-external_dotlock or --disable-external_dotlock was given.
10438 if test "${enable_external_dotlock+set}" = set; then
10439 enableval="$enable_external_dotlock"
10440 mutt_cv_external_dotlock="$enableval"
10443 if test "x$mutt_cv_setgid" = "xyes" || test "x$mutt_cv_fchdir" = "xno" \
10444 || test "x$mutt_cv_external_dotlock" = "xyes"
10447 cat >>confdefs.h <<\_ACEOF
10448 #define DL_STANDALONE 1
10451 DOTLOCK_TARGET="muttng_dotlock"
10453 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS dotlock.o"
10459 echo "$as_me:$LINENO: checking where to put the documentation" >&5
10460 echo $ECHO_N "checking where to put the documentation... $ECHO_C" >&6
10462 # Check whether --with-docdir or --without-docdir was given.
10463 if test "${with_docdir+set}" = set; then
10464 withval="$with_docdir"
10465 mutt_cv_docdir=$withval
10467 mutt_cv_docdir="$mutt_cv_prefix/doc/muttng"
10469 echo "$as_me:$LINENO: result: $mutt_cv_docdir" >&5
10470 echo "${ECHO_T}$mutt_cv_docdir" >&6
10472 docdir=$mutt_cv_docdir
10475 if test x$mutt_cv_setgid = xyes; then
10476 DOTLOCK_GROUP='mail'
10477 DOTLOCK_PERMISSION=2755
10480 DOTLOCK_PERMISSION=755
10486 # Check whether --with-domain or --without-domain was given.
10487 if test "${with_domain+set}" = set; then
10488 withval="$with_domain"
10489 if test $withval != yes; then
10491 cat >>confdefs.h <<_ACEOF
10492 #define DOMAIN "$withval"
10501 # Check whether --enable-pop or --disable-pop was given.
10502 if test "${enable_pop+set}" = set; then
10503 enableval="$enable_pop"
10504 if test x$enableval = xyes ; then
10506 cat >>confdefs.h <<\_ACEOF
10510 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pop.o pop_lib.o pop_auth.o"
10518 # Check whether --enable-imap or --disable-imap was given.
10519 if test "${enable_imap+set}" = set; then
10520 enableval="$enable_imap"
10521 if test x$enableval = xyes ; then
10523 cat >>confdefs.h <<\_ACEOF
10527 LIBIMAP="-Limap -limap"
10528 LIBIMAPDEPS="\$(top_srcdir)/imap/imap.h imap/libimap.a"
10537 if test x$need_imap = xyes; then
10539 BUILD_IMAP_FALSE='#'
10541 BUILD_IMAP_TRUE='#'
10546 # Check whether --enable-nntp or --disable-nntp was given.
10547 if test "${enable_nntp+set}" = set; then
10548 enableval="$enable_nntp"
10549 if test x$enableval = xyes ; then
10550 cat >>confdefs.h <<\_ACEOF
10554 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS nntp.o newsrc.o"
10561 if test "$need_socket" = "yes"
10563 echo "$as_me:$LINENO: checking for socklen_t" >&5
10564 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10565 cat >conftest.$ac_ext <<_ACEOF
10566 #line $LINENO "configure"
10569 cat confdefs.h >>conftest.$ac_ext
10570 cat >>conftest.$ac_ext <<_ACEOF
10571 /* end confdefs.h. */
10572 #include <sys/socket.h>
10575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10576 $EGREP "socklen_t" >/dev/null 2>&1; then
10577 echo "$as_me:$LINENO: result: yes" >&5
10578 echo "${ECHO_T}yes" >&6
10580 echo "$as_me:$LINENO: result: no" >&5
10581 echo "${ECHO_T}no" >&6
10583 cat >>confdefs.h <<\_ACEOF
10584 #define socklen_t int
10590 echo "$as_me:$LINENO: checking for gethostent" >&5
10591 echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
10592 if test "${ac_cv_func_gethostent+set}" = set; then
10593 echo $ECHO_N "(cached) $ECHO_C" >&6
10595 cat >conftest.$ac_ext <<_ACEOF
10596 #line $LINENO "configure"
10599 cat confdefs.h >>conftest.$ac_ext
10600 cat >>conftest.$ac_ext <<_ACEOF
10601 /* end confdefs.h. */
10602 /* System header to define __stub macros and hopefully few prototypes,
10603 which can conflict with char gethostent (); below.
10604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10605 <limits.h> exists even on freestanding compilers. */
10607 # include <limits.h>
10609 # include <assert.h>
10611 /* Override any gcc2 internal prototype to avoid an error. */
10616 /* We use char because int might match the return type of a gcc2
10617 builtin and then its argument prototype would still apply. */
10618 char gethostent ();
10619 /* The GNU C library defines this for functions which it implements
10620 to always fail with ENOSYS. Some functions are actually named
10621 something starting with __ and the normal name is an alias. */
10622 #if defined (__stub_gethostent) || defined (__stub___gethostent)
10625 char (*f) () = gethostent;
10634 return f != gethostent;
10639 rm -f conftest.$ac_objext conftest$ac_exeext
10640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10641 (eval $ac_link) 2>&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); } &&
10645 { ac_try='test -s conftest$ac_exeext'
10646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10647 (eval $ac_try) 2>&5
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); }; }; then
10651 ac_cv_func_gethostent=yes
10653 echo "$as_me: failed program was:" >&5
10654 sed 's/^/| /' conftest.$ac_ext >&5
10656 ac_cv_func_gethostent=no
10658 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10660 echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5
10661 echo "${ECHO_T}$ac_cv_func_gethostent" >&6
10662 if test $ac_cv_func_gethostent = yes; then
10666 echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
10667 echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
10668 if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
10669 echo $ECHO_N "(cached) $ECHO_C" >&6
10671 ac_check_lib_save_LIBS=$LIBS
10673 cat >conftest.$ac_ext <<_ACEOF
10674 #line $LINENO "configure"
10677 cat confdefs.h >>conftest.$ac_ext
10678 cat >>conftest.$ac_ext <<_ACEOF
10679 /* end confdefs.h. */
10681 /* Override any gcc2 internal prototype to avoid an error. */
10685 /* We use char because int might match the return type of a gcc2
10686 builtin and then its argument prototype would still apply. */
10687 char gethostent ();
10696 rm -f conftest.$ac_objext conftest$ac_exeext
10697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10698 (eval $ac_link) 2>&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); } &&
10702 { ac_try='test -s conftest$ac_exeext'
10703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10704 (eval $ac_try) 2>&5
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); }; }; then
10708 ac_cv_lib_nsl_gethostent=yes
10710 echo "$as_me: failed program was:" >&5
10711 sed 's/^/| /' conftest.$ac_ext >&5
10713 ac_cv_lib_nsl_gethostent=no
10715 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10716 LIBS=$ac_check_lib_save_LIBS
10718 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
10719 echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
10720 if test $ac_cv_lib_nsl_gethostent = yes; then
10721 cat >>confdefs.h <<_ACEOF
10722 #define HAVE_LIBNSL 1
10731 echo "$as_me:$LINENO: checking for setsockopt" >&5
10732 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
10733 if test "${ac_cv_func_setsockopt+set}" = set; then
10734 echo $ECHO_N "(cached) $ECHO_C" >&6
10736 cat >conftest.$ac_ext <<_ACEOF
10737 #line $LINENO "configure"
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h. */
10743 /* System header to define __stub macros and hopefully few prototypes,
10744 which can conflict with char setsockopt (); below.
10745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10746 <limits.h> exists even on freestanding compilers. */
10748 # include <limits.h>
10750 # include <assert.h>
10752 /* Override any gcc2 internal prototype to avoid an error. */
10757 /* We use char because int might match the return type of a gcc2
10758 builtin and then its argument prototype would still apply. */
10759 char setsockopt ();
10760 /* The GNU C library defines this for functions which it implements
10761 to always fail with ENOSYS. Some functions are actually named
10762 something starting with __ and the normal name is an alias. */
10763 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
10766 char (*f) () = setsockopt;
10775 return f != setsockopt;
10780 rm -f conftest.$ac_objext conftest$ac_exeext
10781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10782 (eval $ac_link) 2>&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); } &&
10786 { ac_try='test -s conftest$ac_exeext'
10787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10788 (eval $ac_try) 2>&5
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); }; }; then
10792 ac_cv_func_setsockopt=yes
10794 echo "$as_me: failed program was:" >&5
10795 sed 's/^/| /' conftest.$ac_ext >&5
10797 ac_cv_func_setsockopt=no
10799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10801 echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
10802 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
10803 if test $ac_cv_func_setsockopt = yes; then
10807 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
10808 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
10809 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
10810 echo $ECHO_N "(cached) $ECHO_C" >&6
10812 ac_check_lib_save_LIBS=$LIBS
10813 LIBS="-lsocket $LIBS"
10814 cat >conftest.$ac_ext <<_ACEOF
10815 #line $LINENO "configure"
10818 cat confdefs.h >>conftest.$ac_ext
10819 cat >>conftest.$ac_ext <<_ACEOF
10820 /* end confdefs.h. */
10822 /* Override any gcc2 internal prototype to avoid an error. */
10826 /* We use char because int might match the return type of a gcc2
10827 builtin and then its argument prototype would still apply. */
10828 char setsockopt ();
10837 rm -f conftest.$ac_objext conftest$ac_exeext
10838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10839 (eval $ac_link) 2>&5
10841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842 (exit $ac_status); } &&
10843 { ac_try='test -s conftest$ac_exeext'
10844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10845 (eval $ac_try) 2>&5
10847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848 (exit $ac_status); }; }; then
10849 ac_cv_lib_socket_setsockopt=yes
10851 echo "$as_me: failed program was:" >&5
10852 sed 's/^/| /' conftest.$ac_ext >&5
10854 ac_cv_lib_socket_setsockopt=no
10856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10857 LIBS=$ac_check_lib_save_LIBS
10859 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
10860 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
10861 if test $ac_cv_lib_socket_setsockopt = yes; then
10862 cat >>confdefs.h <<_ACEOF
10863 #define HAVE_LIBSOCKET 1
10866 LIBS="-lsocket $LIBS"
10873 for ac_func in getaddrinfo
10875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10876 echo "$as_me:$LINENO: checking for $ac_func" >&5
10877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10878 if eval "test \"\${$as_ac_var+set}\" = set"; then
10879 echo $ECHO_N "(cached) $ECHO_C" >&6
10881 cat >conftest.$ac_ext <<_ACEOF
10882 #line $LINENO "configure"
10885 cat confdefs.h >>conftest.$ac_ext
10886 cat >>conftest.$ac_ext <<_ACEOF
10887 /* end confdefs.h. */
10888 /* System header to define __stub macros and hopefully few prototypes,
10889 which can conflict with char $ac_func (); below.
10890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10891 <limits.h> exists even on freestanding compilers. */
10893 # include <limits.h>
10895 # include <assert.h>
10897 /* Override any gcc2 internal prototype to avoid an error. */
10902 /* We use char because int might match the return type of a gcc2
10903 builtin and then its argument prototype would still apply. */
10905 /* The GNU C library defines this for functions which it implements
10906 to always fail with ENOSYS. Some functions are actually named
10907 something starting with __ and the normal name is an alias. */
10908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10911 char (*f) () = $ac_func;
10920 return f != $ac_func;
10925 rm -f conftest.$ac_objext conftest$ac_exeext
10926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10927 (eval $ac_link) 2>&5
10929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930 (exit $ac_status); } &&
10931 { ac_try='test -s conftest$ac_exeext'
10932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10933 (eval $ac_try) 2>&5
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); }; }; then
10937 eval "$as_ac_var=yes"
10939 echo "$as_me: failed program was:" >&5
10940 sed 's/^/| /' conftest.$ac_ext >&5
10942 eval "$as_ac_var=no"
10944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10947 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10948 if test `eval echo '${'$as_ac_var'}'` = yes; then
10949 cat >>confdefs.h <<_ACEOF
10950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10957 cat >>confdefs.h <<\_ACEOF
10958 #define USE_SOCKET 1
10961 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS account.o mutt_socket.o mutt_tunnel.o"
10966 # Check whether --with-gss or --without-gss was given.
10967 if test "${with_gss+set}" = set; then
10968 withval="$with_gss"
10969 gss_prefix="$withval"
10973 if test "$gss_prefix" != "no"
10975 if test "$need_imap" = "yes"
10978 GSSAPI_PREFIX=$gss_prefix
10980 saved_CPPFLAGS="$CPPFLAGS"
10981 saved_LDFLAGS="$LDFLAGS"
10983 if test "$GSSAPI_PREFIX" != "yes"
10985 krb5_path="$GSSAPI_PREFIX/bin"
10989 # Extract the first word of "krb5-config", so it can be a program name with args.
10990 set dummy krb5-config; ac_word=$2
10991 echo "$as_me:$LINENO: checking for $ac_word" >&5
10992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10993 if test "${ac_cv_path_KRB5CFGPATH+set}" = set; then
10994 echo $ECHO_N "(cached) $ECHO_C" >&6
10996 case $KRB5CFGPATH in
10998 ac_cv_path_KRB5CFGPATH="$KRB5CFGPATH" # Let the user override the test with a path.
11001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11002 for as_dir in $krb5_path
11005 test -z "$as_dir" && as_dir=.
11006 for ac_exec_ext in '' $ac_executable_extensions; do
11007 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11008 ac_cv_path_KRB5CFGPATH="$as_dir/$ac_word$ac_exec_ext"
11009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11015 test -z "$ac_cv_path_KRB5CFGPATH" && ac_cv_path_KRB5CFGPATH="none"
11019 KRB5CFGPATH=$ac_cv_path_KRB5CFGPATH
11021 if test -n "$KRB5CFGPATH"; then
11022 echo "$as_me:$LINENO: result: $KRB5CFGPATH" >&5
11023 echo "${ECHO_T}$KRB5CFGPATH" >&6
11025 echo "$as_me:$LINENO: result: no" >&5
11026 echo "${ECHO_T}no" >&6
11029 if test "$KRB5CFGPATH" != "none"
11031 GSSAPI_CFLAGS="$CPPFLAGS `$KRB5CFGPATH --cflags gssapi`"
11032 GSSAPI_LIBS="$MUTTLIBS `$KRB5CFGPATH --libs gssapi`"
11033 case "`$KRB5CFGPATH --version`" in
11034 "Kerberos 5 "*) GSSAPI_IMPL="MIT";;
11035 ?eimdal*) GSSAPI_IMPL="Heimdal";;
11036 *) GSSAPI_IMPL="Unknown";;
11039 if test "$GSSAPI_PREFIX" != "yes"
11041 GSSAPI_CFLAGS="-I$GSSAPI_PREFIX/include"
11042 GSSAPI_LDFLAGS="-L$GSSAPI_PREFIX/lib"
11043 CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
11044 LDFLAGS="$LDFLAGS $GSSAPI_LDFLAGS"
11047 echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
11048 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6
11049 if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
11050 echo $ECHO_N "(cached) $ECHO_C" >&6
11052 ac_check_lib_save_LIBS=$LIBS
11053 LIBS="-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err $LIBS"
11054 cat >conftest.$ac_ext <<_ACEOF
11055 #line $LINENO "configure"
11058 cat confdefs.h >>conftest.$ac_ext
11059 cat >>conftest.$ac_ext <<_ACEOF
11060 /* end confdefs.h. */
11062 /* Override any gcc2 internal prototype to avoid an error. */
11066 /* We use char because int might match the return type of a gcc2
11067 builtin and then its argument prototype would still apply. */
11068 char gss_init_sec_context ();
11072 gss_init_sec_context ();
11077 rm -f conftest.$ac_objext conftest$ac_exeext
11078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11079 (eval $ac_link) 2>&5
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); } &&
11083 { ac_try='test -s conftest$ac_exeext'
11084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085 (eval $ac_try) 2>&5
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; }; then
11089 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
11091 echo "$as_me: failed program was:" >&5
11092 sed 's/^/| /' conftest.$ac_ext >&5
11094 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
11096 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11097 LIBS=$ac_check_lib_save_LIBS
11099 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
11100 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6
11101 if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
11104 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err"
11109 if test "$GSSAPI_IMPL" = "none"
11111 echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
11112 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6
11113 if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
11114 echo $ECHO_N "(cached) $ECHO_C" >&6
11116 ac_check_lib_save_LIBS=$LIBS
11117 LIBS="-lgssapi -lkrb5 -ldes -lasn1 -lroken -lcrypt -lcom_err $LIBS"
11118 cat >conftest.$ac_ext <<_ACEOF
11119 #line $LINENO "configure"
11122 cat confdefs.h >>conftest.$ac_ext
11123 cat >>conftest.$ac_ext <<_ACEOF
11124 /* end confdefs.h. */
11126 /* Override any gcc2 internal prototype to avoid an error. */
11130 /* We use char because int might match the return type of a gcc2
11131 builtin and then its argument prototype would still apply. */
11132 char gss_init_sec_context ();
11136 gss_init_sec_context ();
11141 rm -f conftest.$ac_objext conftest$ac_exeext
11142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11143 (eval $ac_link) 2>&5
11145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146 (exit $ac_status); } &&
11147 { ac_try='test -s conftest$ac_exeext'
11148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11149 (eval $ac_try) 2>&5
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); }; }; then
11153 ac_cv_lib_gssapi_gss_init_sec_context=yes
11155 echo "$as_me: failed program was:" >&5
11156 sed 's/^/| /' conftest.$ac_ext >&5
11158 ac_cv_lib_gssapi_gss_init_sec_context=no
11160 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11161 LIBS=$ac_check_lib_save_LIBS
11163 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
11164 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6
11165 if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
11167 GSSAPI_IMPL="Heimdal"
11168 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi -lkrb5 -ldes -lasn1 -lroken"
11169 GSSAPI_LIBS="$GSSAPI_LIBS -lcrypt -lcom_err"
11175 if test "$GSSAPI_IMPL" = "none"
11177 echo "$as_me:$LINENO: checking for g_order_init in -lgssapi_krb5" >&5
11178 echo $ECHO_N "checking for g_order_init in -lgssapi_krb5... $ECHO_C" >&6
11179 if test "${ac_cv_lib_gssapi_krb5_g_order_init+set}" = set; then
11180 echo $ECHO_N "(cached) $ECHO_C" >&6
11182 ac_check_lib_save_LIBS=$LIBS
11183 LIBS="-lgssapi_krb5 -lkrb5 -lcrypto -lcom_err $LIBS"
11184 cat >conftest.$ac_ext <<_ACEOF
11185 #line $LINENO "configure"
11188 cat confdefs.h >>conftest.$ac_ext
11189 cat >>conftest.$ac_ext <<_ACEOF
11190 /* end confdefs.h. */
11192 /* Override any gcc2 internal prototype to avoid an error. */
11196 /* We use char because int might match the return type of a gcc2
11197 builtin and then its argument prototype would still apply. */
11198 char g_order_init ();
11207 rm -f conftest.$ac_objext conftest$ac_exeext
11208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11209 (eval $ac_link) 2>&5
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); } &&
11213 { ac_try='test -s conftest$ac_exeext'
11214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11215 (eval $ac_try) 2>&5
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); }; }; then
11219 ac_cv_lib_gssapi_krb5_g_order_init=yes
11221 echo "$as_me: failed program was:" >&5
11222 sed 's/^/| /' conftest.$ac_ext >&5
11224 ac_cv_lib_gssapi_krb5_g_order_init=no
11226 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11227 LIBS=$ac_check_lib_save_LIBS
11229 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_g_order_init" >&5
11230 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_g_order_init" >&6
11231 if test $ac_cv_lib_gssapi_krb5_g_order_init = yes; then
11233 GSSAPI_IMPL="OldMIT",
11234 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err"
11241 CPPFLAGS="$saved_CPPFLAGS"
11242 LDFLAGS="$saved_LDFLAGS"
11245 echo "$as_me:$LINENO: checking GSSAPI implementation" >&5
11246 echo $ECHO_N "checking GSSAPI implementation... $ECHO_C" >&6
11247 echo "$as_me:$LINENO: result: $GSSAPI_IMPL" >&5
11248 echo "${ECHO_T}$GSSAPI_IMPL" >&6
11249 if test "$GSSAPI_IMPL" = "none"
11251 cat >confcache <<\_ACEOF
11252 # This file is a shell script that caches the results of configure
11253 # tests run on this system so they can be shared between configure
11254 # scripts and configure runs, see configure's option --config-cache.
11255 # It is not useful on other systems. If it contains results you don't
11256 # want to keep, you may remove or edit it.
11258 # config.status only pays attention to the cache file if you give it
11259 # the --recheck option to rerun configure.
11261 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11262 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11263 # following values.
11267 # The following way of writing the cache mishandles newlines in values,
11268 # but we know of no workaround that is simple, portable, and efficient.
11269 # So, don't put newlines in cache variables' values.
11270 # Ultrix sh set writes to stderr and can't be redirected directly,
11271 # and sets the high bit in the cache file unless we assign to the vars.
11274 case `(ac_space=' '; set | grep ac_space) 2>&1` in
11276 # `set' does not quote correctly, so add quotes (double-quote
11277 # substitution turns \\\\ into \\, and sed turns \\ into \).
11280 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11283 # `set' quotes correctly as required by POSIX, so do not add quotes.
11285 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11292 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11294 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11296 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11297 if test -w $cache_file; then
11298 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11299 cat confcache >$cache_file
11301 echo "not updating unwritable cache $cache_file"
11305 echo "$as_me:$LINENO: result: GSSAPI libraries not found" >&5
11306 echo "${ECHO_T}GSSAPI libraries not found" >&6
11308 if test "$GSSAPI_IMPL" = "Heimdal"
11311 cat >>confdefs.h <<\_ACEOF
11312 #define HAVE_HEIMDAL 1
11316 CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
11317 MUTTLIBS="$MUTTLIBS $GSSAPI_LIBS"
11319 cat >>confdefs.h <<\_ACEOF
11325 { echo "$as_me:$LINENO: WARNING: GSS was requested but IMAP is not enabled" >&5
11326 echo "$as_me: WARNING: GSS was requested but IMAP is not enabled" >&2;}
11331 if test x$need_gss = xyes; then
11342 # Check whether --with-ssl or --without-ssl was given.
11343 if test "${with_ssl+set}" = set; then
11344 withval="$with_ssl"
11345 if test "$with_ssl" != "no"
11347 if test "$need_socket" != "yes"; then
11348 { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
11349 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
11350 { (exit 1); exit 1; }; }
11353 if test "$with_ssl" != "yes"
11355 LDFLAGS="$LDFLAGS -L$withval/lib"
11356 CPPFLAGS="$CPPFLAGS -I$withval/include"
11361 echo "$as_me:$LINENO: checking for X509_new in -lcrypto" >&5
11362 echo $ECHO_N "checking for X509_new in -lcrypto... $ECHO_C" >&6
11363 if test "${ac_cv_lib_crypto_X509_new+set}" = set; then
11364 echo $ECHO_N "(cached) $ECHO_C" >&6
11366 ac_check_lib_save_LIBS=$LIBS
11367 LIBS="-lcrypto $LIBS"
11368 cat >conftest.$ac_ext <<_ACEOF
11369 #line $LINENO "configure"
11372 cat confdefs.h >>conftest.$ac_ext
11373 cat >>conftest.$ac_ext <<_ACEOF
11374 /* end confdefs.h. */
11376 /* Override any gcc2 internal prototype to avoid an error. */
11380 /* We use char because int might match the return type of a gcc2
11381 builtin and then its argument prototype would still apply. */
11391 rm -f conftest.$ac_objext conftest$ac_exeext
11392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11393 (eval $ac_link) 2>&5
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); } &&
11397 { ac_try='test -s conftest$ac_exeext'
11398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11399 (eval $ac_try) 2>&5
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); }; }; then
11403 ac_cv_lib_crypto_X509_new=yes
11405 echo "$as_me: failed program was:" >&5
11406 sed 's/^/| /' conftest.$ac_ext >&5
11408 ac_cv_lib_crypto_X509_new=no
11410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11411 LIBS=$ac_check_lib_save_LIBS
11413 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_X509_new" >&5
11414 echo "${ECHO_T}$ac_cv_lib_crypto_X509_new" >&6
11415 if test $ac_cv_lib_crypto_X509_new = yes; then
11416 cat >>confdefs.h <<_ACEOF
11417 #define HAVE_LIBCRYPTO 1
11420 LIBS="-lcrypto $LIBS"
11423 { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
11424 echo "$as_me: error: Unable to find SSL library" >&2;}
11425 { (exit 1); exit 1; }; }
11429 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
11430 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
11431 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
11432 echo $ECHO_N "(cached) $ECHO_C" >&6
11434 ac_check_lib_save_LIBS=$LIBS
11435 LIBS="-lssl -lcrypto $LIBS"
11436 cat >conftest.$ac_ext <<_ACEOF
11437 #line $LINENO "configure"
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h. */
11444 /* Override any gcc2 internal prototype to avoid an error. */
11448 /* We use char because int might match the return type of a gcc2
11449 builtin and then its argument prototype would still apply. */
11459 rm -f conftest.$ac_objext conftest$ac_exeext
11460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11461 (eval $ac_link) 2>&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } &&
11465 { ac_try='test -s conftest$ac_exeext'
11466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11467 (eval $ac_try) 2>&5
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); }; }; then
11471 ac_cv_lib_ssl_SSL_new=yes
11473 echo "$as_me: failed program was:" >&5
11474 sed 's/^/| /' conftest.$ac_ext >&5
11476 ac_cv_lib_ssl_SSL_new=no
11478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11479 LIBS=$ac_check_lib_save_LIBS
11481 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
11482 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6
11483 if test $ac_cv_lib_ssl_SSL_new = yes; then
11484 cat >>confdefs.h <<_ACEOF
11485 #define HAVE_LIBSSL 1
11491 { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
11492 echo "$as_me: error: Unable to find SSL library" >&2;}
11493 { (exit 1); exit 1; }; }
11499 for ac_func in RAND_status RAND_egd
11501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11502 echo "$as_me:$LINENO: checking for $ac_func" >&5
11503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11504 if eval "test \"\${$as_ac_var+set}\" = set"; then
11505 echo $ECHO_N "(cached) $ECHO_C" >&6
11507 cat >conftest.$ac_ext <<_ACEOF
11508 #line $LINENO "configure"
11511 cat confdefs.h >>conftest.$ac_ext
11512 cat >>conftest.$ac_ext <<_ACEOF
11513 /* end confdefs.h. */
11514 /* System header to define __stub macros and hopefully few prototypes,
11515 which can conflict with char $ac_func (); below.
11516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11517 <limits.h> exists even on freestanding compilers. */
11519 # include <limits.h>
11521 # include <assert.h>
11523 /* Override any gcc2 internal prototype to avoid an error. */
11528 /* We use char because int might match the return type of a gcc2
11529 builtin and then its argument prototype would still apply. */
11531 /* The GNU C library defines this for functions which it implements
11532 to always fail with ENOSYS. Some functions are actually named
11533 something starting with __ and the normal name is an alias. */
11534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11537 char (*f) () = $ac_func;
11546 return f != $ac_func;
11551 rm -f conftest.$ac_objext conftest$ac_exeext
11552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11553 (eval $ac_link) 2>&5
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); } &&
11557 { ac_try='test -s conftest$ac_exeext'
11558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11559 (eval $ac_try) 2>&5
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); }; }; then
11563 eval "$as_ac_var=yes"
11565 echo "$as_me: failed program was:" >&5
11566 sed 's/^/| /' conftest.$ac_ext >&5
11568 eval "$as_ac_var=no"
11570 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11573 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11574 if test `eval echo '${'$as_ac_var'}'` = yes; then
11575 cat >>confdefs.h <<_ACEOF
11576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11584 cat >>confdefs.h <<\_ACEOF
11589 MUTTLIBS="$MUTTLIBS -lssl -lcrypto"
11590 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl.o"
11598 if test x$need_ssl = xyes; then
11608 # Check whether --with-nss or --without-nss was given.
11609 if test "${with_nss+set}" = set; then
11610 withval="$with_nss"
11611 if test "$with_nss" != no
11613 if test "$need_socket" != "yes"; then
11614 { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
11615 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
11616 { (exit 1); exit 1; }; }
11619 if test "$with_nss" != "yes"
11621 LDFLAGS="$LDFLAGS -L$withval/lib"
11622 CPPFLAGS="$CPPFLAGS -I$withval/include -I$withval/public/security"
11626 cat >>confdefs.h <<\_ACEOF
11630 MUTTLIBS="$MUTTLIBS -lssl -lnss -lcertdb -lcerthi -lcryptohi"
11631 MUTTLIBS="$MUTTLIBS -lpk11wrap -lsoftoken -lsecutil -ldbm -lplds4 -lplc4 -lfreebl"
11632 MUTTLIBS="$MUTTLIBS -lnspr4"
11634 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_nss.o"
11641 # Check whether --with-gnutls or --without-gnutls was given.
11642 if test "${with_gnutls+set}" = set; then
11643 withval="$with_gnutls"
11644 gnutls_prefix="$withval"
11648 if test "$gnutls_prefix" != "no"
11650 if test "$need_socket" != "yes"
11652 { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
11653 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
11654 { (exit 1); exit 1; }; }
11656 libgnutls_config_prefix=$gnutls_prefix
11657 min_libgnutls_version=0.1.0
11659 if test x$libgnutls_config_prefix != x ; then
11660 if test x${LIBGNUTLS_CONFIG+set} != xset ; then
11661 LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
11665 # Extract the first word of "libgnutls-config", so it can be a program name with args.
11666 set dummy libgnutls-config; ac_word=$2
11667 echo "$as_me:$LINENO: checking for $ac_word" >&5
11668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11669 if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
11670 echo $ECHO_N "(cached) $ECHO_C" >&6
11672 case $LIBGNUTLS_CONFIG in
11674 ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
11677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11678 for as_dir in $PATH
11681 test -z "$as_dir" && as_dir=.
11682 for ac_exec_ext in '' $ac_executable_extensions; do
11683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11684 ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11691 test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
11695 LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
11697 if test -n "$LIBGNUTLS_CONFIG"; then
11698 echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
11699 echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6
11701 echo "$as_me:$LINENO: result: no" >&5
11702 echo "${ECHO_T}no" >&6
11705 echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
11706 echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6
11708 if test "$LIBGNUTLS_CONFIG" = "no" ; then
11711 LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
11712 LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
11713 libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
11716 ac_save_CFLAGS="$CFLAGS"
11717 ac_save_LIBS="$LIBS"
11718 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11719 LIBS="$LIBS $LIBGNUTLS_LIBS"
11721 rm -f conf.libgnutlstest
11722 if test "$cross_compiling" = yes; then
11723 echo $ac_n "cross compiling; assumed OK... $ac_c"
11725 cat >conftest.$ac_ext <<_ACEOF
11726 #line $LINENO "configure"
11729 cat confdefs.h >>conftest.$ac_ext
11730 cat >>conftest.$ac_ext <<_ACEOF
11731 /* end confdefs.h. */
11734 #include <stdlib.h>
11735 #include <string.h>
11736 #include <gnutls/gnutls.h>
11741 system ("touch conf.libgnutlstest");
11743 if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
11745 printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
11746 "$libgnutls_config_version", gnutls_check_version(NULL) );
11747 printf("*** was found! If libgnutls-config was correct, then it is best\n");
11748 printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
11749 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11750 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11751 printf("*** required on your system.\n");
11752 printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
11753 printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
11754 printf("*** before re-running configure\n");
11756 else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
11758 printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
11759 printf("*** library (version %s)\n", gnutls_check_version(NULL) );
11763 if ( gnutls_check_version( "$min_libgnutls_version" ) )
11769 printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
11770 gnutls_check_version(NULL) );
11771 printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
11772 "$min_libgnutls_version" );
11773 printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
11775 printf("*** If you have already installed a sufficiently new version, this error\n");
11776 printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
11777 printf("*** being found. The easiest way to fix this is to remove the old version\n");
11778 printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
11779 printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
11780 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11781 printf("*** so that the correct libraries are found at run-time))\n");
11788 rm -f conftest$ac_exeext
11789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11790 (eval $ac_link) 2>&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795 (eval $ac_try) 2>&5
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); }; }; then
11801 echo "$as_me: program exited with status $ac_status" >&5
11802 echo "$as_me: failed program was:" >&5
11803 sed 's/^/| /' conftest.$ac_ext >&5
11805 ( exit $ac_status )
11808 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11810 CFLAGS="$ac_save_CFLAGS"
11811 LIBS="$ac_save_LIBS"
11814 if test "x$no_libgnutls" = x ; then
11815 echo "$as_me:$LINENO: result: yes" >&5
11816 echo "${ECHO_T}yes" >&6
11818 for ac_header in gnutls/openssl.h
11820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11822 echo "$as_me:$LINENO: checking for $ac_header" >&5
11823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11825 echo $ECHO_N "(cached) $ECHO_C" >&6
11827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11830 # Is the header compilable?
11831 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11833 cat >conftest.$ac_ext <<_ACEOF
11834 #line $LINENO "configure"
11837 cat confdefs.h >>conftest.$ac_ext
11838 cat >>conftest.$ac_ext <<_ACEOF
11839 /* end confdefs.h. */
11840 $ac_includes_default
11841 #include <$ac_header>
11843 rm -f conftest.$ac_objext
11844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11845 (eval $ac_compile) 2>&5
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); } &&
11849 { ac_try='test -s conftest.$ac_objext'
11850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11851 (eval $ac_try) 2>&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); }; }; then
11855 ac_header_compiler=yes
11857 echo "$as_me: failed program was:" >&5
11858 sed 's/^/| /' conftest.$ac_ext >&5
11860 ac_header_compiler=no
11862 rm -f conftest.$ac_objext conftest.$ac_ext
11863 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11864 echo "${ECHO_T}$ac_header_compiler" >&6
11866 # Is the header present?
11867 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11868 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11869 cat >conftest.$ac_ext <<_ACEOF
11870 #line $LINENO "configure"
11873 cat confdefs.h >>conftest.$ac_ext
11874 cat >>conftest.$ac_ext <<_ACEOF
11875 /* end confdefs.h. */
11876 #include <$ac_header>
11878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11881 grep -v '^ *+' conftest.er1 >conftest.err
11883 cat conftest.err >&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); } >/dev/null; then
11886 if test -s conftest.err; then
11887 ac_cpp_err=$ac_c_preproc_warn_flag
11894 if test -z "$ac_cpp_err"; then
11895 ac_header_preproc=yes
11897 echo "$as_me: failed program was:" >&5
11898 sed 's/^/| /' conftest.$ac_ext >&5
11900 ac_header_preproc=no
11902 rm -f conftest.err conftest.$ac_ext
11903 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11904 echo "${ECHO_T}$ac_header_preproc" >&6
11906 # So? What about this header?
11907 case $ac_header_compiler:$ac_header_preproc in
11909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11915 ## ------------------------------------ ##
11916 ## Report this to bug-autoconf@gnu.org. ##
11917 ## ------------------------------------ ##
11920 sed "s/^/$as_me: WARNING: /" >&2
11923 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11925 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11926 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11927 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11931 ## ------------------------------------ ##
11932 ## Report this to bug-autoconf@gnu.org. ##
11933 ## ------------------------------------ ##
11936 sed "s/^/$as_me: WARNING: /" >&2
11939 echo "$as_me:$LINENO: checking for $ac_header" >&5
11940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11942 echo $ECHO_N "(cached) $ECHO_C" >&6
11944 eval "$as_ac_Header=$ac_header_preproc"
11946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11951 cat >>confdefs.h <<_ACEOF
11952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11959 CPPFLAGS="$CPPFLAGS $LIBGNUTLS_CFLAGS"
11960 MUTTLIBS="$MUTTLIBS $LIBGNUTLS_LIBS"
11962 cat >>confdefs.h <<\_ACEOF
11963 #define USE_GNUTLS 1
11967 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_gnutls.o"
11970 if test -f conf.libgnutlstest ; then
11973 echo "$as_me:$LINENO: result: no" >&5
11974 echo "${ECHO_T}no" >&6
11976 if test "$LIBGNUTLS_CONFIG" = "no" ; then
11977 echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
11978 echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
11979 echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
11980 echo "*** full path to libgnutls-config."
11982 if test -f conf.libgnutlstest ; then
11985 echo "*** Could not run libgnutls test program, checking why..."
11986 CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11987 LIBS="$LIBS $LIBGNUTLS_LIBS"
11988 cat >conftest.$ac_ext <<_ACEOF
11989 #line $LINENO "configure"
11992 cat confdefs.h >>conftest.$ac_ext
11993 cat >>conftest.$ac_ext <<_ACEOF
11994 /* end confdefs.h. */
11997 #include <stdlib.h>
11998 #include <string.h>
11999 #include <gnutls/gnutls.h>
12004 return !!gnutls_check_version(NULL);
12009 rm -f conftest.$ac_objext conftest$ac_exeext
12010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12011 (eval $ac_link) 2>&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); } &&
12015 { ac_try='test -s conftest$ac_exeext'
12016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12017 (eval $ac_try) 2>&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; }; then
12021 echo "*** The test program compiled, but did not run. This usually means"
12022 echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
12023 echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
12024 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12025 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12026 echo "*** is required on your system"
12028 echo "*** If you have an old version installed, it is best to remove it, although"
12029 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12032 echo "$as_me: failed program was:" >&5
12033 sed 's/^/| /' conftest.$ac_ext >&5
12035 echo "*** The test program failed to compile or link. See the file config.log for the"
12036 echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
12037 echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
12038 echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
12040 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12041 CFLAGS="$ac_save_CFLAGS"
12042 LIBS="$ac_save_LIBS"
12045 LIBGNUTLS_CFLAGS=""
12047 { { echo "$as_me:$LINENO: error: could not find libgnutls" >&5
12048 echo "$as_me: error: could not find libgnutls" >&2;}
12049 { (exit 1); exit 1; }; }
12052 rm -f conf.libgnutlstest
12059 # Check whether --with-sasl or --without-sasl was given.
12060 if test "${with_sasl+set}" = set; then
12061 withval="$with_sasl"
12063 if test "$with_sasl" != "no" -a "$need_imap" != "yes" -a "$need_pop" != "yes"
12065 { { echo "$as_me:$LINENO: error: SASL support is only useful with POP or IMAP support" >&5
12066 echo "$as_me: error: SASL support is only useful with POP or IMAP support" >&2;}
12067 { (exit 1); exit 1; }; }
12070 if test "$with_sasl" != "no"
12072 if test "$with_sasl" != "yes"
12074 CPPFLAGS="$CPPFLAGS -I$with_sasl/include"
12075 LDFLAGS="$LDFLAGS -L$with_sasl/lib"
12081 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
12082 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
12083 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
12084 echo $ECHO_N "(cached) $ECHO_C" >&6
12086 ac_check_lib_save_LIBS=$LIBS
12087 LIBS="-lsasl $LIBS"
12088 cat >conftest.$ac_ext <<_ACEOF
12089 #line $LINENO "configure"
12092 cat confdefs.h >>conftest.$ac_ext
12093 cat >>conftest.$ac_ext <<_ACEOF
12094 /* end confdefs.h. */
12096 /* Override any gcc2 internal prototype to avoid an error. */
12100 /* We use char because int might match the return type of a gcc2
12101 builtin and then its argument prototype would still apply. */
12102 char sasl_client_init ();
12106 sasl_client_init ();
12111 rm -f conftest.$ac_objext conftest$ac_exeext
12112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12113 (eval $ac_link) 2>&5
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); } &&
12117 { ac_try='test -s conftest$ac_exeext'
12118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12119 (eval $ac_try) 2>&5
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); }; }; then
12123 ac_cv_lib_sasl_sasl_client_init=yes
12125 echo "$as_me: failed program was:" >&5
12126 sed 's/^/| /' conftest.$ac_ext >&5
12128 ac_cv_lib_sasl_sasl_client_init=no
12130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12131 LIBS=$ac_check_lib_save_LIBS
12133 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
12134 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
12135 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
12136 cat >>confdefs.h <<_ACEOF
12137 #define HAVE_LIBSASL 1
12140 LIBS="-lsasl $LIBS"
12143 { { echo "$as_me:$LINENO: error: could not find libsasl" >&5
12144 echo "$as_me: error: could not find libsasl" >&2;}
12145 { (exit 1); exit 1; }; }
12149 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
12150 MUTTLIBS="$MUTTLIBS -lsasl"
12153 cat >>confdefs.h <<\_ACEOF
12163 if test x$need_sasl = xyes; then
12173 # Check whether --with-sasl2 or --without-sasl2 was given.
12174 if test "${with_sasl2+set}" = set; then
12175 withval="$with_sasl2"
12177 if test "$with_sasl2" != "no" -a "$need_imap" != "yes" -a "$need_pop" != "yes"
12179 { { echo "$as_me:$LINENO: error: SASL2 support is only useful with POP or IMAP support" >&5
12180 echo "$as_me: error: SASL2 support is only useful with POP or IMAP support" >&2;}
12181 { (exit 1); exit 1; }; }
12184 if test "$with_sasl2" != "no"
12186 if test "$with_sasl2" != "yes"
12188 CPPFLAGS="$CPPFLAGS -I$with_sasl2/include"
12189 LDFLAGS="$LDFLAGS -L$with_sasl2/lib"
12195 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
12196 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
12197 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
12198 echo $ECHO_N "(cached) $ECHO_C" >&6
12200 ac_check_lib_save_LIBS=$LIBS
12201 LIBS="-lsasl2 $LIBS"
12202 cat >conftest.$ac_ext <<_ACEOF
12203 #line $LINENO "configure"
12206 cat confdefs.h >>conftest.$ac_ext
12207 cat >>conftest.$ac_ext <<_ACEOF
12208 /* end confdefs.h. */
12210 /* Override any gcc2 internal prototype to avoid an error. */
12214 /* We use char because int might match the return type of a gcc2
12215 builtin and then its argument prototype would still apply. */
12216 char sasl_client_init ();
12220 sasl_client_init ();
12225 rm -f conftest.$ac_objext conftest$ac_exeext
12226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12227 (eval $ac_link) 2>&5
12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); } &&
12231 { ac_try='test -s conftest$ac_exeext'
12232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12233 (eval $ac_try) 2>&5
12235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236 (exit $ac_status); }; }; then
12237 ac_cv_lib_sasl2_sasl_client_init=yes
12239 echo "$as_me: failed program was:" >&5
12240 sed 's/^/| /' conftest.$ac_ext >&5
12242 ac_cv_lib_sasl2_sasl_client_init=no
12244 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12245 LIBS=$ac_check_lib_save_LIBS
12247 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
12248 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
12249 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
12250 cat >>confdefs.h <<_ACEOF
12251 #define HAVE_LIBSASL2 1
12254 LIBS="-lsasl2 $LIBS"
12257 { { echo "$as_me:$LINENO: error: could not find libsasl2" >&5
12258 echo "$as_me: error: could not find libsasl2" >&2;}
12259 { (exit 1); exit 1; }; }
12263 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
12264 MUTTLIBS="$MUTTLIBS -lsasl2"
12267 cat >>confdefs.h <<\_ACEOF
12272 cat >>confdefs.h <<\_ACEOF
12273 #define USE_SASL2 1
12282 if test x$need_sasl = xyes; then
12292 # Check whether --with-idn or --without-idn was given.
12293 if test "${with_idn+set}" = set; then
12294 withval="$with_idn"
12296 if test "$with_idn" != "no" ; then
12297 if test "$with_idn" != "yes" ; then
12298 CPPFLAGS="$CPPFLAGS -I$with_idn/include"
12299 LDFLAGS="$LDFLAGS -L$with_idn/lib"
12306 if test "x$with_idn" != "xno"; then
12308 echo "$as_me:$LINENO: checking for stringprep_check_version in -lidn" >&5
12309 echo $ECHO_N "checking for stringprep_check_version in -lidn... $ECHO_C" >&6
12310 if test "${ac_cv_lib_idn_stringprep_check_version+set}" = set; then
12311 echo $ECHO_N "(cached) $ECHO_C" >&6
12313 ac_check_lib_save_LIBS=$LIBS
12315 cat >conftest.$ac_ext <<_ACEOF
12316 #line $LINENO "configure"
12319 cat confdefs.h >>conftest.$ac_ext
12320 cat >>conftest.$ac_ext <<_ACEOF
12321 /* end confdefs.h. */
12323 /* Override any gcc2 internal prototype to avoid an error. */
12327 /* We use char because int might match the return type of a gcc2
12328 builtin and then its argument prototype would still apply. */
12329 char stringprep_check_version ();
12333 stringprep_check_version ();
12338 rm -f conftest.$ac_objext conftest$ac_exeext
12339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12340 (eval $ac_link) 2>&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); } &&
12344 { ac_try='test -s conftest$ac_exeext'
12345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346 (eval $ac_try) 2>&5
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); }; }; then
12350 ac_cv_lib_idn_stringprep_check_version=yes
12352 echo "$as_me: failed program was:" >&5
12353 sed 's/^/| /' conftest.$ac_ext >&5
12355 ac_cv_lib_idn_stringprep_check_version=no
12357 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12358 LIBS=$ac_check_lib_save_LIBS
12360 echo "$as_me:$LINENO: result: $ac_cv_lib_idn_stringprep_check_version" >&5
12361 echo "${ECHO_T}$ac_cv_lib_idn_stringprep_check_version" >&6
12362 if test $ac_cv_lib_idn_stringprep_check_version = yes; then
12363 cat >>confdefs.h <<_ACEOF
12364 #define HAVE_LIBIDN 1
12373 for ac_func in idna_to_unicode_utf8_from_utf8 idna_to_unicode_8z8z
12375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12376 echo "$as_me:$LINENO: checking for $ac_func" >&5
12377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12378 if eval "test \"\${$as_ac_var+set}\" = set"; then
12379 echo $ECHO_N "(cached) $ECHO_C" >&6
12381 cat >conftest.$ac_ext <<_ACEOF
12382 #line $LINENO "configure"
12385 cat confdefs.h >>conftest.$ac_ext
12386 cat >>conftest.$ac_ext <<_ACEOF
12387 /* end confdefs.h. */
12388 /* System header to define __stub macros and hopefully few prototypes,
12389 which can conflict with char $ac_func (); below.
12390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12391 <limits.h> exists even on freestanding compilers. */
12393 # include <limits.h>
12395 # include <assert.h>
12397 /* Override any gcc2 internal prototype to avoid an error. */
12402 /* We use char because int might match the return type of a gcc2
12403 builtin and then its argument prototype would still apply. */
12405 /* The GNU C library defines this for functions which it implements
12406 to always fail with ENOSYS. Some functions are actually named
12407 something starting with __ and the normal name is an alias. */
12408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12411 char (*f) () = $ac_func;
12420 return f != $ac_func;
12425 rm -f conftest.$ac_objext conftest$ac_exeext
12426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12427 (eval $ac_link) 2>&5
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); } &&
12431 { ac_try='test -s conftest$ac_exeext'
12432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433 (eval $ac_try) 2>&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; }; then
12437 eval "$as_ac_var=yes"
12439 echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12442 eval "$as_ac_var=no"
12444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12447 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12448 if test `eval echo '${'$as_ac_var'}'` = yes; then
12449 cat >>confdefs.h <<_ACEOF
12450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12458 for ac_func in idna_to_ascii_from_utf8 idna_to_ascii_8z
12460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12461 echo "$as_me:$LINENO: checking for $ac_func" >&5
12462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12463 if eval "test \"\${$as_ac_var+set}\" = set"; then
12464 echo $ECHO_N "(cached) $ECHO_C" >&6
12466 cat >conftest.$ac_ext <<_ACEOF
12467 #line $LINENO "configure"
12470 cat confdefs.h >>conftest.$ac_ext
12471 cat >>conftest.$ac_ext <<_ACEOF
12472 /* end confdefs.h. */
12473 /* System header to define __stub macros and hopefully few prototypes,
12474 which can conflict with char $ac_func (); below.
12475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12476 <limits.h> exists even on freestanding compilers. */
12478 # include <limits.h>
12480 # include <assert.h>
12482 /* Override any gcc2 internal prototype to avoid an error. */
12487 /* We use char because int might match the return type of a gcc2
12488 builtin and then its argument prototype would still apply. */
12490 /* The GNU C library defines this for functions which it implements
12491 to always fail with ENOSYS. Some functions are actually named
12492 something starting with __ and the normal name is an alias. */
12493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12496 char (*f) () = $ac_func;
12505 return f != $ac_func;
12510 rm -f conftest.$ac_objext conftest$ac_exeext
12511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12512 (eval $ac_link) 2>&5
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); } &&
12516 { ac_try='test -s conftest$ac_exeext'
12517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12518 (eval $ac_try) 2>&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); }; }; then
12522 eval "$as_ac_var=yes"
12524 echo "$as_me: failed program was:" >&5
12525 sed 's/^/| /' conftest.$ac_ext >&5
12527 eval "$as_ac_var=no"
12529 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12532 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12533 if test `eval echo '${'$as_ac_var'}'` = yes; then
12534 cat >>confdefs.h <<_ACEOF
12535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12543 for ac_func in idna_to_ascii_lz idna_to_ascii_from_locale
12545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12546 echo "$as_me:$LINENO: checking for $ac_func" >&5
12547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12548 if eval "test \"\${$as_ac_var+set}\" = set"; then
12549 echo $ECHO_N "(cached) $ECHO_C" >&6
12551 cat >conftest.$ac_ext <<_ACEOF
12552 #line $LINENO "configure"
12555 cat confdefs.h >>conftest.$ac_ext
12556 cat >>conftest.$ac_ext <<_ACEOF
12557 /* end confdefs.h. */
12558 /* System header to define __stub macros and hopefully few prototypes,
12559 which can conflict with char $ac_func (); below.
12560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12561 <limits.h> exists even on freestanding compilers. */
12563 # include <limits.h>
12565 # include <assert.h>
12567 /* Override any gcc2 internal prototype to avoid an error. */
12572 /* We use char because int might match the return type of a gcc2
12573 builtin and then its argument prototype would still apply. */
12575 /* The GNU C library defines this for functions which it implements
12576 to always fail with ENOSYS. Some functions are actually named
12577 something starting with __ and the normal name is an alias. */
12578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12581 char (*f) () = $ac_func;
12590 return f != $ac_func;
12595 rm -f conftest.$ac_objext conftest$ac_exeext
12596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12597 (eval $ac_link) 2>&5
12599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600 (exit $ac_status); } &&
12601 { ac_try='test -s conftest$ac_exeext'
12602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12603 (eval $ac_try) 2>&5
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); }; }; then
12607 eval "$as_ac_var=yes"
12609 echo "$as_me: failed program was:" >&5
12610 sed 's/^/| /' conftest.$ac_ext >&5
12612 eval "$as_ac_var=no"
12614 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12617 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12618 if test `eval echo '${'$as_ac_var'}'` = yes; then
12619 cat >>confdefs.h <<_ACEOF
12620 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12629 # Check whether --enable-debug or --disable-debug was given.
12630 if test "${enable_debug+set}" = set; then
12631 enableval="$enable_debug"
12632 if test x$enableval = xyes ; then
12634 cat >>confdefs.h <<\_ACEOF
12642 # Check whether --enable-flock or --disable-flock was given.
12643 if test "${enable_flock+set}" = set; then
12644 enableval="$enable_flock"
12645 if test $enableval = yes; then
12647 cat >>confdefs.h <<\_ACEOF
12648 #define USE_FLOCK 1
12655 # Check whether --enable-fcntl or --disable-fcntl was given.
12656 if test "${enable_fcntl+set}" = set; then
12657 enableval="$enable_fcntl"
12658 if test $enableval = no; then mutt_cv_fcntl=no; fi
12661 if test $mutt_cv_fcntl = yes; then
12663 cat >>confdefs.h <<\_ACEOF
12664 #define USE_FCNTL 1
12669 mutt_cv_inodesort=no
12670 # Check whether --enable-inodesort or --disable-inodesort was given.
12671 if test "${enable_inodesort+set}" = set; then
12672 enableval="$enable_inodesort"
12673 if test x$enableval = xyes ; then mutt_cv_inodesort=yes; fi
12676 if test $mutt_cv_inodesort = yes; then
12678 cat >>confdefs.h <<\_ACEOF
12679 #define USE_INODESORT 1
12684 mutt_cv_warnings=yes
12685 # Check whether --enable-warnings or --disable-warnings was given.
12686 if test "${enable_warnings+set}" = set; then
12687 enableval="$enable_warnings"
12688 if test $enableval = no; then
12689 mutt_cv_warnings=no
12693 if test x$GCC = xyes -a $mutt_cv_warnings = yes; then
12694 CFLAGS="-Wall -pedantic $CFLAGS"
12697 # Check whether --enable-nfs-fix or --disable-nfs-fix was given.
12698 if test "${enable_nfs_fix+set}" = set; then
12699 enableval="$enable_nfs_fix"
12700 if test x$enableval = xyes; then
12702 cat >>confdefs.h <<\_ACEOF
12703 #define NFS_ATTRIBUTE_HACK 1
12709 # Check whether --enable-buffy-size or --disable-buffy-size was given.
12710 if test "${enable_buffy_size+set}" = set; then
12711 enableval="$enable_buffy_size"
12712 if test x$enableval = xyes; then
12714 cat >>confdefs.h <<\_ACEOF
12715 #define BUFFY_SIZE 1
12721 # Check whether --enable-mailtool or --disable-mailtool was given.
12722 if test "${enable_mailtool+set}" = set; then
12723 enableval="$enable_mailtool"
12724 if test x$enableval = xyes; then
12726 cat >>confdefs.h <<\_ACEOF
12727 #define SUN_ATTACHMENT 1
12733 # Check whether --enable-compressed or --disable-compressed was given.
12734 if test "${enable_compressed+set}" = set; then
12735 enableval="$enable_compressed"
12736 if test x$enableval = xyes; then
12737 cat >>confdefs.h <<\_ACEOF
12738 #define USE_COMPRESSED 1
12744 # Check whether --enable-locales-fix or --disable-locales-fix was given.
12745 if test "${enable_locales_fix+set}" = set; then
12746 enableval="$enable_locales_fix"
12747 if test x$enableval = xyes; then
12749 cat >>confdefs.h <<\_ACEOF
12750 #define LOCALES_HACK 1
12757 # Check whether --with-exec-shell or --without-exec-shell was given.
12758 if test "${with_exec_shell+set}" = set; then
12759 withval="$with_exec_shell"
12760 if test $withval != yes; then
12762 cat >>confdefs.h <<_ACEOF
12763 #define EXECSHELL "$withval"
12767 cat >>confdefs.h <<_ACEOF
12768 #define EXECSHELL "/bin/sh"
12773 cat >>confdefs.h <<_ACEOF
12774 #define EXECSHELL "/bin/sh"
12779 # Check whether --enable-exact-address or --disable-exact-address was given.
12780 if test "${enable_exact_address+set}" = set; then
12781 enableval="$enable_exact_address"
12782 if test $enableval = yes; then
12784 cat >>confdefs.h <<\_ACEOF
12785 #define EXACT_ADDRESS 1
12792 # Check whether --enable-hcache or --disable-hcache was given.
12793 if test "${enable_hcache+set}" = set; then
12794 enableval="$enable_hcache"
12795 if test x$enableval = xyes; then
12797 cat >>confdefs.h <<\_ACEOF
12798 #define USE_HCACHE 1
12802 OLDCPPFLAGS="$CPPFLAGS"
12808 # Check whether --with-gdbm or --without-gdbm was given.
12809 if test "${with_gdbm+set}" = set; then
12810 withval="$with_gdbm"
12811 ac_prefer_gdbm=$withval
12813 if test x$ac_prefer_gdbm != xno; then
12814 CPPFLAGS="$OLDCPPFLAGS"
12815 LIBS="$OLDLIBS -lgdbm";
12816 echo "$as_me:$LINENO: checking for gdbm_open" >&5
12817 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
12818 if test "${ac_cv_gdbmopen+set}" = set; then
12819 echo $ECHO_N "(cached) $ECHO_C" >&6
12823 cat >conftest.$ac_ext <<_ACEOF
12824 #line $LINENO "configure"
12827 cat confdefs.h >>conftest.$ac_ext
12828 cat >>conftest.$ac_ext <<_ACEOF
12829 /* end confdefs.h. */
12834 gdbm_open(0,0,0,0,0);
12839 rm -f conftest.$ac_objext conftest$ac_exeext
12840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12841 (eval $ac_link) 2>&5
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); } &&
12845 { ac_try='test -s conftest$ac_exeext'
12846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12847 (eval $ac_try) 2>&5
12849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850 (exit $ac_status); }; }; then
12853 echo "$as_me: failed program was:" >&5
12854 sed 's/^/| /' conftest.$ac_ext >&5
12857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12860 echo "$as_me:$LINENO: result: $ac_cv_gdbmopen" >&5
12861 echo "${ECHO_T}$ac_cv_gdbmopen" >&6
12866 # Check whether --with-bdb or --without-bdb was given.
12867 if test "${with_bdb+set}" = set; then
12868 withval="$with_bdb"
12869 ac_bdb_prefix=$withval
12871 if test x$ac_bdb_prefix != xno -a x$ac_cv_gdbmopen != xyes; then
12872 test x$ac_bdb_prefix = xyes && ac_bdb_prefix="$mutt_cv_prefix /opt/csw/bdb4 /opt /usr/local /usr"
12873 for d in $ac_bdb_prefix; do
12874 bdbpfx="$bdbpfx $d"
12875 for v in BerkeleyDB.4.3 BerkeleyDB.4.2 BerkeleyDB.4.1; do
12876 bdbpfx="$bdbpfx $d/$v"
12879 BDB_VERSIONS="db-4 db4 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db ''"
12880 echo "$as_me:$LINENO: checking for BerkeleyDB > 4.0" >&5
12881 echo $ECHO_N "checking for BerkeleyDB > 4.0... $ECHO_C" >&6
12882 for d in $bdbpfx; do
12885 for v in / $BDB_VERSIONS; do
12886 if test -r "$d/include/$v/db.h"; then
12887 BDB_INCLUDE_DIR="$d/include/$v"
12888 if test -d "$d/lib/$v"; then
12889 BDB_LIB_DIR="$d/lib/$v"
12890 for l in `echo $BDB_VERSIONS`; do
12891 CPPFLAGS="-I$BDB_INCLUDE_DIR $OLDCPPFLAGS"
12892 LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$l"
12893 cat >conftest.$ac_ext <<_ACEOF
12894 #line $LINENO "configure"
12897 cat confdefs.h >>conftest.$ac_ext
12898 cat >>conftest.$ac_ext <<_ACEOF
12899 /* end confdefs.h. */
12901 #include <stdlib.h>
12909 db->open(db,NULL,NULL,NULL,0,0,0);
12915 rm -f conftest.$ac_objext conftest$ac_exeext
12916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12917 (eval $ac_link) 2>&5
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); } &&
12921 { ac_try='test -s conftest$ac_exeext'
12922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12923 (eval $ac_try) 2>&5
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); }; }; then
12933 echo "$as_me: failed program was:" >&5
12934 sed 's/^/| /' conftest.$ac_ext >&5
12937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12939 test x$ac_dbcreate = xyes && break
12943 test x$BDB_LIB != x && break
12945 if test x$ac_cv_dbcreate = xyes; then
12946 echo "$as_me:$LINENO: result: yes" >&5
12947 echo "${ECHO_T}yes" >&6
12949 echo "$as_me:$LINENO: result: no" >&5
12950 echo "${ECHO_T}no" >&6
12954 if test x$ac_cv_gdbmopen = xyes; then
12955 CPPFLAGS="$OLDCPPFLAGS"
12956 LIBS="$OLDLIBS -lgdbm";
12958 cat >>confdefs.h <<\_ACEOF
12959 #define HAVE_GDBM 1
12962 elif test x$ac_cv_dbcreate = xyes; then
12963 CPPFLAGS="-I$BDB_INCLUDE_DIR $OLDCPPFLAGS"
12964 LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$BDB_LIB"
12966 cat >>confdefs.h <<\_ACEOF
12971 { { echo "$as_me:$LINENO: error: You need Sleepycat DB4 or GDBM for --enable-hcache" >&5
12972 echo "$as_me: error: You need Sleepycat DB4 or GDBM for --enable-hcache" >&2;}
12973 { (exit 1); exit 1; }; }
12984 # Check whether --enable-iconv or --disable-iconv was given.
12985 if test "${enable_iconv+set}" = set; then
12986 enableval="$enable_iconv"
12987 if test x$enableval = xno ; then
12988 am_cv_func_iconv=no
12993 echo "$as_me:$LINENO: checking for off_t" >&5
12994 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12995 if test "${ac_cv_type_off_t+set}" = set; then
12996 echo $ECHO_N "(cached) $ECHO_C" >&6
12998 cat >conftest.$ac_ext <<_ACEOF
12999 #line $LINENO "configure"
13002 cat confdefs.h >>conftest.$ac_ext
13003 cat >>conftest.$ac_ext <<_ACEOF
13004 /* end confdefs.h. */
13005 $ac_includes_default
13011 if (sizeof (off_t))
13017 rm -f conftest.$ac_objext
13018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13019 (eval $ac_compile) 2>&5
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); } &&
13023 { ac_try='test -s conftest.$ac_objext'
13024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13025 (eval $ac_try) 2>&5
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); }; }; then
13029 ac_cv_type_off_t=yes
13031 echo "$as_me: failed program was:" >&5
13032 sed 's/^/| /' conftest.$ac_ext >&5
13034 ac_cv_type_off_t=no
13036 rm -f conftest.$ac_objext conftest.$ac_ext
13038 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13039 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13040 if test $ac_cv_type_off_t = yes; then
13044 cat >>confdefs.h <<_ACEOF
13050 echo "$as_me:$LINENO: checking for size_t" >&5
13051 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13052 if test "${ac_cv_type_size_t+set}" = set; then
13053 echo $ECHO_N "(cached) $ECHO_C" >&6
13055 cat >conftest.$ac_ext <<_ACEOF
13056 #line $LINENO "configure"
13059 cat confdefs.h >>conftest.$ac_ext
13060 cat >>conftest.$ac_ext <<_ACEOF
13061 /* end confdefs.h. */
13062 $ac_includes_default
13068 if (sizeof (size_t))
13074 rm -f conftest.$ac_objext
13075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13076 (eval $ac_compile) 2>&5
13078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079 (exit $ac_status); } &&
13080 { ac_try='test -s conftest.$ac_objext'
13081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13082 (eval $ac_try) 2>&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); }; }; then
13086 ac_cv_type_size_t=yes
13088 echo "$as_me: failed program was:" >&5
13089 sed 's/^/| /' conftest.$ac_ext >&5
13091 ac_cv_type_size_t=no
13093 rm -f conftest.$ac_objext conftest.$ac_ext
13095 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13096 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13097 if test $ac_cv_type_size_t = yes; then
13101 cat >>confdefs.h <<_ACEOF
13102 #define size_t unsigned
13107 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13108 # for constant arguments. Useless!
13109 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13110 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13111 if test "${ac_cv_working_alloca_h+set}" = set; then
13112 echo $ECHO_N "(cached) $ECHO_C" >&6
13114 cat >conftest.$ac_ext <<_ACEOF
13115 #line $LINENO "configure"
13118 cat confdefs.h >>conftest.$ac_ext
13119 cat >>conftest.$ac_ext <<_ACEOF
13120 /* end confdefs.h. */
13121 #include <alloca.h>
13125 char *p = (char *) alloca (2 * sizeof (int));
13130 rm -f conftest.$ac_objext conftest$ac_exeext
13131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13132 (eval $ac_link) 2>&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } &&
13136 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
13142 ac_cv_working_alloca_h=yes
13144 echo "$as_me: failed program was:" >&5
13145 sed 's/^/| /' conftest.$ac_ext >&5
13147 ac_cv_working_alloca_h=no
13149 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13151 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13152 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13153 if test $ac_cv_working_alloca_h = yes; then
13155 cat >>confdefs.h <<\_ACEOF
13156 #define HAVE_ALLOCA_H 1
13161 echo "$as_me:$LINENO: checking for alloca" >&5
13162 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13163 if test "${ac_cv_func_alloca_works+set}" = set; then
13164 echo $ECHO_N "(cached) $ECHO_C" >&6
13166 cat >conftest.$ac_ext <<_ACEOF
13167 #line $LINENO "configure"
13170 cat confdefs.h >>conftest.$ac_ext
13171 cat >>conftest.$ac_ext <<_ACEOF
13172 /* end confdefs.h. */
13174 # define alloca __builtin_alloca
13177 # include <malloc.h>
13178 # define alloca _alloca
13181 # include <alloca.h>
13186 # ifndef alloca /* predefined by HP cc +Olibcalls */
13197 char *p = (char *) alloca (1);
13202 rm -f conftest.$ac_objext conftest$ac_exeext
13203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13204 (eval $ac_link) 2>&5
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); } &&
13208 { ac_try='test -s conftest$ac_exeext'
13209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13210 (eval $ac_try) 2>&5
13212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213 (exit $ac_status); }; }; then
13214 ac_cv_func_alloca_works=yes
13216 echo "$as_me: failed program was:" >&5
13217 sed 's/^/| /' conftest.$ac_ext >&5
13219 ac_cv_func_alloca_works=no
13221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13223 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13224 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13226 if test $ac_cv_func_alloca_works = yes; then
13228 cat >>confdefs.h <<\_ACEOF
13229 #define HAVE_ALLOCA 1
13233 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13234 # that cause trouble. Some versions do not even contain alloca or
13235 # contain a buggy version. If you still want to use their alloca,
13236 # use ar to extract alloca.o from them instead of compiling alloca.c.
13238 ALLOCA=alloca.$ac_objext
13240 cat >>confdefs.h <<\_ACEOF
13245 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13246 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13247 if test "${ac_cv_os_cray+set}" = set; then
13248 echo $ECHO_N "(cached) $ECHO_C" >&6
13250 cat >conftest.$ac_ext <<_ACEOF
13251 #line $LINENO "configure"
13254 cat confdefs.h >>conftest.$ac_ext
13255 cat >>conftest.$ac_ext <<_ACEOF
13256 /* end confdefs.h. */
13257 #if defined(CRAY) && ! defined(CRAY2)
13264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13265 $EGREP "webecray" >/dev/null 2>&1; then
13273 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13274 echo "${ECHO_T}$ac_cv_os_cray" >&6
13275 if test $ac_cv_os_cray = yes; then
13276 for ac_func in _getb67 GETB67 getb67; do
13277 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13278 echo "$as_me:$LINENO: checking for $ac_func" >&5
13279 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13280 if eval "test \"\${$as_ac_var+set}\" = set"; then
13281 echo $ECHO_N "(cached) $ECHO_C" >&6
13283 cat >conftest.$ac_ext <<_ACEOF
13284 #line $LINENO "configure"
13287 cat confdefs.h >>conftest.$ac_ext
13288 cat >>conftest.$ac_ext <<_ACEOF
13289 /* end confdefs.h. */
13290 /* System header to define __stub macros and hopefully few prototypes,
13291 which can conflict with char $ac_func (); below.
13292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13293 <limits.h> exists even on freestanding compilers. */
13295 # include <limits.h>
13297 # include <assert.h>
13299 /* Override any gcc2 internal prototype to avoid an error. */
13304 /* We use char because int might match the return type of a gcc2
13305 builtin and then its argument prototype would still apply. */
13307 /* The GNU C library defines this for functions which it implements
13308 to always fail with ENOSYS. Some functions are actually named
13309 something starting with __ and the normal name is an alias. */
13310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13313 char (*f) () = $ac_func;
13322 return f != $ac_func;
13327 rm -f conftest.$ac_objext conftest$ac_exeext
13328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13329 (eval $ac_link) 2>&5
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); } &&
13333 { ac_try='test -s conftest$ac_exeext'
13334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13335 (eval $ac_try) 2>&5
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); }; }; then
13339 eval "$as_ac_var=yes"
13341 echo "$as_me: failed program was:" >&5
13342 sed 's/^/| /' conftest.$ac_ext >&5
13344 eval "$as_ac_var=no"
13346 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13349 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13350 if test `eval echo '${'$as_ac_var'}'` = yes; then
13352 cat >>confdefs.h <<_ACEOF
13353 #define CRAY_STACKSEG_END $ac_func
13362 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13363 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13364 if test "${ac_cv_c_stack_direction+set}" = set; then
13365 echo $ECHO_N "(cached) $ECHO_C" >&6
13367 if test "$cross_compiling" = yes; then
13368 ac_cv_c_stack_direction=0
13370 cat >conftest.$ac_ext <<_ACEOF
13371 #line $LINENO "configure"
13374 cat confdefs.h >>conftest.$ac_ext
13375 cat >>conftest.$ac_ext <<_ACEOF
13376 /* end confdefs.h. */
13378 find_stack_direction ()
13380 static char *addr = 0;
13385 return find_stack_direction ();
13388 return (&dummy > addr) ? 1 : -1;
13394 exit (find_stack_direction () < 0);
13397 rm -f conftest$ac_exeext
13398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13399 (eval $ac_link) 2>&5
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13404 (eval $ac_try) 2>&5
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); }; }; then
13408 ac_cv_c_stack_direction=1
13410 echo "$as_me: program exited with status $ac_status" >&5
13411 echo "$as_me: failed program was:" >&5
13412 sed 's/^/| /' conftest.$ac_ext >&5
13414 ( exit $ac_status )
13415 ac_cv_c_stack_direction=-1
13417 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13420 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13421 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13423 cat >>confdefs.h <<_ACEOF
13424 #define STACK_DIRECTION $ac_cv_c_stack_direction
13432 for ac_header in stdlib.h unistd.h
13434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13436 echo "$as_me:$LINENO: checking for $ac_header" >&5
13437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13439 echo $ECHO_N "(cached) $ECHO_C" >&6
13441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13444 # Is the header compilable?
13445 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13446 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13447 cat >conftest.$ac_ext <<_ACEOF
13448 #line $LINENO "configure"
13451 cat confdefs.h >>conftest.$ac_ext
13452 cat >>conftest.$ac_ext <<_ACEOF
13453 /* end confdefs.h. */
13454 $ac_includes_default
13455 #include <$ac_header>
13457 rm -f conftest.$ac_objext
13458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13459 (eval $ac_compile) 2>&5
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); } &&
13463 { ac_try='test -s conftest.$ac_objext'
13464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13465 (eval $ac_try) 2>&5
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); }; }; then
13469 ac_header_compiler=yes
13471 echo "$as_me: failed program was:" >&5
13472 sed 's/^/| /' conftest.$ac_ext >&5
13474 ac_header_compiler=no
13476 rm -f conftest.$ac_objext conftest.$ac_ext
13477 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13478 echo "${ECHO_T}$ac_header_compiler" >&6
13480 # Is the header present?
13481 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13482 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13483 cat >conftest.$ac_ext <<_ACEOF
13484 #line $LINENO "configure"
13487 cat confdefs.h >>conftest.$ac_ext
13488 cat >>conftest.$ac_ext <<_ACEOF
13489 /* end confdefs.h. */
13490 #include <$ac_header>
13492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13493 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13495 grep -v '^ *+' conftest.er1 >conftest.err
13497 cat conftest.err >&5
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); } >/dev/null; then
13500 if test -s conftest.err; then
13501 ac_cpp_err=$ac_c_preproc_warn_flag
13508 if test -z "$ac_cpp_err"; then
13509 ac_header_preproc=yes
13511 echo "$as_me: failed program was:" >&5
13512 sed 's/^/| /' conftest.$ac_ext >&5
13514 ac_header_preproc=no
13516 rm -f conftest.err conftest.$ac_ext
13517 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13518 echo "${ECHO_T}$ac_header_preproc" >&6
13520 # So? What about this header?
13521 case $ac_header_compiler:$ac_header_preproc in
13523 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13524 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13529 ## ------------------------------------ ##
13530 ## Report this to bug-autoconf@gnu.org. ##
13531 ## ------------------------------------ ##
13534 sed "s/^/$as_me: WARNING: /" >&2
13537 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13538 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13539 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13540 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13545 ## ------------------------------------ ##
13546 ## Report this to bug-autoconf@gnu.org. ##
13547 ## ------------------------------------ ##
13550 sed "s/^/$as_me: WARNING: /" >&2
13553 echo "$as_me:$LINENO: checking for $ac_header" >&5
13554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13556 echo $ECHO_N "(cached) $ECHO_C" >&6
13558 eval "$as_ac_Header=$ac_header_preproc"
13560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13561 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13565 cat >>confdefs.h <<_ACEOF
13566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13574 for ac_func in getpagesize
13576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13577 echo "$as_me:$LINENO: checking for $ac_func" >&5
13578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13579 if eval "test \"\${$as_ac_var+set}\" = set"; then
13580 echo $ECHO_N "(cached) $ECHO_C" >&6
13582 cat >conftest.$ac_ext <<_ACEOF
13583 #line $LINENO "configure"
13586 cat confdefs.h >>conftest.$ac_ext
13587 cat >>conftest.$ac_ext <<_ACEOF
13588 /* end confdefs.h. */
13589 /* System header to define __stub macros and hopefully few prototypes,
13590 which can conflict with char $ac_func (); below.
13591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13592 <limits.h> exists even on freestanding compilers. */
13594 # include <limits.h>
13596 # include <assert.h>
13598 /* Override any gcc2 internal prototype to avoid an error. */
13603 /* We use char because int might match the return type of a gcc2
13604 builtin and then its argument prototype would still apply. */
13606 /* The GNU C library defines this for functions which it implements
13607 to always fail with ENOSYS. Some functions are actually named
13608 something starting with __ and the normal name is an alias. */
13609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13612 char (*f) () = $ac_func;
13621 return f != $ac_func;
13626 rm -f conftest.$ac_objext conftest$ac_exeext
13627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13628 (eval $ac_link) 2>&5
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); } &&
13632 { ac_try='test -s conftest$ac_exeext'
13633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13634 (eval $ac_try) 2>&5
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); }; }; then
13638 eval "$as_ac_var=yes"
13640 echo "$as_me: failed program was:" >&5
13641 sed 's/^/| /' conftest.$ac_ext >&5
13643 eval "$as_ac_var=no"
13645 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13649 if test `eval echo '${'$as_ac_var'}'` = yes; then
13650 cat >>confdefs.h <<_ACEOF
13651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13657 echo "$as_me:$LINENO: checking for working mmap" >&5
13658 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
13659 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
13660 echo $ECHO_N "(cached) $ECHO_C" >&6
13662 if test "$cross_compiling" = yes; then
13663 ac_cv_func_mmap_fixed_mapped=no
13665 cat >conftest.$ac_ext <<_ACEOF
13666 #line $LINENO "configure"
13669 cat confdefs.h >>conftest.$ac_ext
13670 cat >>conftest.$ac_ext <<_ACEOF
13671 /* end confdefs.h. */
13672 $ac_includes_default
13673 /* malloc might have been renamed as rpl_malloc. */
13676 /* Thanks to Mike Haertel and Jim Avera for this test.
13677 Here is a matrix of mmap possibilities:
13678 mmap private not fixed
13679 mmap private fixed at somewhere currently unmapped
13680 mmap private fixed at somewhere already mapped
13681 mmap shared not fixed
13682 mmap shared fixed at somewhere currently unmapped
13683 mmap shared fixed at somewhere already mapped
13684 For private mappings, we should verify that changes cannot be read()
13685 back from the file, nor mmap's back from the file at a different
13686 address. (There have been systems where private was not correctly
13687 implemented like the infamous i386 svr4.0, and systems where the
13688 VM page cache was not coherent with the file system buffer cache
13689 like early versions of FreeBSD and possibly contemporary NetBSD.)
13690 For shared mappings, we should conversely verify that changes get
13691 propagated back to all the places they're supposed to be.
13693 Grep wants private fixed already mapped.
13694 The main things grep needs to know about mmap are:
13695 * does it exist and is it safe to write into the mmap'd area
13696 * how to use it (BSD variants) */
13699 #include <sys/mman.h>
13701 #if !STDC_HEADERS && !HAVE_STDLIB_H
13705 /* This mess was copied from the GNU getpagesize.h. */
13706 #if !HAVE_GETPAGESIZE
13707 /* Assume that all systems that can run configure have sys/param.h. */
13708 # if !HAVE_SYS_PARAM_H
13709 # define HAVE_SYS_PARAM_H 1
13712 # ifdef _SC_PAGESIZE
13713 # define getpagesize() sysconf(_SC_PAGESIZE)
13714 # else /* no _SC_PAGESIZE */
13715 # if HAVE_SYS_PARAM_H
13716 # include <sys/param.h>
13717 # ifdef EXEC_PAGESIZE
13718 # define getpagesize() EXEC_PAGESIZE
13719 # else /* no EXEC_PAGESIZE */
13721 # define getpagesize() NBPG * CLSIZE
13724 # endif /* no CLSIZE */
13725 # else /* no NBPG */
13727 # define getpagesize() NBPC
13728 # else /* no NBPC */
13730 # define getpagesize() PAGESIZE
13731 # endif /* PAGESIZE */
13732 # endif /* no NBPC */
13733 # endif /* no NBPG */
13734 # endif /* no EXEC_PAGESIZE */
13735 # else /* no HAVE_SYS_PARAM_H */
13736 # define getpagesize() 8192 /* punt totally */
13737 # endif /* no HAVE_SYS_PARAM_H */
13738 # endif /* no _SC_PAGESIZE */
13740 #endif /* no HAVE_GETPAGESIZE */
13745 char *data, *data2, *data3;
13749 pagesize = getpagesize ();
13751 /* First, make a file with some known garbage in it. */
13752 data = (char *) malloc (pagesize);
13755 for (i = 0; i < pagesize; ++i)
13756 *(data + i) = rand ();
13758 fd = creat ("conftest.mmap", 0600);
13761 if (write (fd, data, pagesize) != pagesize)
13765 /* Next, try to mmap the file at a fixed address which already has
13766 something else allocated at it. If we can, also make sure that
13767 we see the same garbage. */
13768 fd = open ("conftest.mmap", O_RDWR);
13771 data2 = (char *) malloc (2 * pagesize);
13774 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
13775 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13776 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13778 for (i = 0; i < pagesize; ++i)
13779 if (*(data + i) != *(data2 + i))
13782 /* Finally, make sure that changes to the mapped area do not
13783 percolate back to the file as seen by read(). (This is a bug on
13784 some variants of i386 svr4.0.) */
13785 for (i = 0; i < pagesize; ++i)
13786 *(data2 + i) = *(data2 + i) + 1;
13787 data3 = (char *) malloc (pagesize);
13790 if (read (fd, data3, pagesize) != pagesize)
13792 for (i = 0; i < pagesize; ++i)
13793 if (*(data + i) != *(data3 + i))
13799 rm -f conftest$ac_exeext
13800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13801 (eval $ac_link) 2>&5
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13806 (eval $ac_try) 2>&5
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); }; }; then
13810 ac_cv_func_mmap_fixed_mapped=yes
13812 echo "$as_me: program exited with status $ac_status" >&5
13813 echo "$as_me: failed program was:" >&5
13814 sed 's/^/| /' conftest.$ac_ext >&5
13816 ( exit $ac_status )
13817 ac_cv_func_mmap_fixed_mapped=no
13819 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13822 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
13823 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
13824 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13826 cat >>confdefs.h <<\_ACEOF
13827 #define HAVE_MMAP 1
13831 rm -f conftest.mmap
13834 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
13835 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
13836 if test "${ac_cv_gnu_library_2_1+set}" = set; then
13837 echo $ECHO_N "(cached) $ECHO_C" >&6
13839 cat >conftest.$ac_ext <<_ACEOF
13840 #line $LINENO "configure"
13843 cat confdefs.h >>conftest.$ac_ext
13844 cat >>conftest.$ac_ext <<_ACEOF
13845 /* end confdefs.h. */
13847 #include <features.h>
13848 #ifdef __GNU_LIBRARY__
13849 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
13855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13856 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
13857 ac_cv_gnu_library_2_1=yes
13859 ac_cv_gnu_library_2_1=no
13866 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
13867 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
13869 GLIBC21="$ac_cv_gnu_library_2_1"
13883 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
13884 stdlib.h string.h unistd.h sys/param.h
13886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13888 echo "$as_me:$LINENO: checking for $ac_header" >&5
13889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13891 echo $ECHO_N "(cached) $ECHO_C" >&6
13893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13896 # Is the header compilable?
13897 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13898 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13899 cat >conftest.$ac_ext <<_ACEOF
13900 #line $LINENO "configure"
13903 cat confdefs.h >>conftest.$ac_ext
13904 cat >>conftest.$ac_ext <<_ACEOF
13905 /* end confdefs.h. */
13906 $ac_includes_default
13907 #include <$ac_header>
13909 rm -f conftest.$ac_objext
13910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13911 (eval $ac_compile) 2>&5
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); } &&
13915 { ac_try='test -s conftest.$ac_objext'
13916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13917 (eval $ac_try) 2>&5
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); }; }; then
13921 ac_header_compiler=yes
13923 echo "$as_me: failed program was:" >&5
13924 sed 's/^/| /' conftest.$ac_ext >&5
13926 ac_header_compiler=no
13928 rm -f conftest.$ac_objext conftest.$ac_ext
13929 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13930 echo "${ECHO_T}$ac_header_compiler" >&6
13932 # Is the header present?
13933 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13934 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13935 cat >conftest.$ac_ext <<_ACEOF
13936 #line $LINENO "configure"
13939 cat confdefs.h >>conftest.$ac_ext
13940 cat >>conftest.$ac_ext <<_ACEOF
13941 /* end confdefs.h. */
13942 #include <$ac_header>
13944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13945 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13947 grep -v '^ *+' conftest.er1 >conftest.err
13949 cat conftest.err >&5
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); } >/dev/null; then
13952 if test -s conftest.err; then
13953 ac_cpp_err=$ac_c_preproc_warn_flag
13960 if test -z "$ac_cpp_err"; then
13961 ac_header_preproc=yes
13963 echo "$as_me: failed program was:" >&5
13964 sed 's/^/| /' conftest.$ac_ext >&5
13966 ac_header_preproc=no
13968 rm -f conftest.err conftest.$ac_ext
13969 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13970 echo "${ECHO_T}$ac_header_preproc" >&6
13972 # So? What about this header?
13973 case $ac_header_compiler:$ac_header_preproc in
13975 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13976 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13981 ## ------------------------------------ ##
13982 ## Report this to bug-autoconf@gnu.org. ##
13983 ## ------------------------------------ ##
13986 sed "s/^/$as_me: WARNING: /" >&2
13989 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13991 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13992 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13997 ## ------------------------------------ ##
13998 ## Report this to bug-autoconf@gnu.org. ##
13999 ## ------------------------------------ ##
14002 sed "s/^/$as_me: WARNING: /" >&2
14005 echo "$as_me:$LINENO: checking for $ac_header" >&5
14006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14008 echo $ECHO_N "(cached) $ECHO_C" >&6
14010 eval "$as_ac_Header=$ac_header_preproc"
14012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14017 cat >>confdefs.h <<_ACEOF
14018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14046 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
14047 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
14048 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
14050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14051 echo "$as_me:$LINENO: checking for $ac_func" >&5
14052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14053 if eval "test \"\${$as_ac_var+set}\" = set"; then
14054 echo $ECHO_N "(cached) $ECHO_C" >&6
14056 cat >conftest.$ac_ext <<_ACEOF
14057 #line $LINENO "configure"
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h. */
14063 /* System header to define __stub macros and hopefully few prototypes,
14064 which can conflict with char $ac_func (); below.
14065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14066 <limits.h> exists even on freestanding compilers. */
14068 # include <limits.h>
14070 # include <assert.h>
14072 /* Override any gcc2 internal prototype to avoid an error. */
14077 /* We use char because int might match the return type of a gcc2
14078 builtin and then its argument prototype would still apply. */
14080 /* The GNU C library defines this for functions which it implements
14081 to always fail with ENOSYS. Some functions are actually named
14082 something starting with __ and the normal name is an alias. */
14083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14086 char (*f) () = $ac_func;
14095 return f != $ac_func;
14100 rm -f conftest.$ac_objext conftest$ac_exeext
14101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14102 (eval $ac_link) 2>&5
14104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105 (exit $ac_status); } &&
14106 { ac_try='test -s conftest$ac_exeext'
14107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14108 (eval $ac_try) 2>&5
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); }; }; then
14112 eval "$as_ac_var=yes"
14114 echo "$as_me: failed program was:" >&5
14115 sed 's/^/| /' conftest.$ac_ext >&5
14117 eval "$as_ac_var=no"
14119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14122 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14123 if test `eval echo '${'$as_ac_var'}'` = yes; then
14124 cat >>confdefs.h <<_ACEOF
14125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14135 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
14136 if test "${with_libiconv_prefix+set}" = set; then
14137 withval="$with_libiconv_prefix"
14139 for dir in `echo "$withval" | tr : ' '`; do
14140 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
14141 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
14146 echo "$as_me:$LINENO: checking for iconv" >&5
14147 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
14148 if test "${am_cv_func_iconv+set}" = set; then
14149 echo $ECHO_N "(cached) $ECHO_C" >&6
14152 am_cv_func_iconv="no, consider installing GNU libiconv"
14154 cat >conftest.$ac_ext <<_ACEOF
14155 #line $LINENO "configure"
14158 cat confdefs.h >>conftest.$ac_ext
14159 cat >>conftest.$ac_ext <<_ACEOF
14160 /* end confdefs.h. */
14161 #include <stdlib.h>
14166 iconv_t cd = iconv_open("","");
14167 iconv(cd,NULL,NULL,NULL,NULL);
14173 rm -f conftest.$ac_objext conftest$ac_exeext
14174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14175 (eval $ac_link) 2>&5
14177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178 (exit $ac_status); } &&
14179 { ac_try='test -s conftest$ac_exeext'
14180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181 (eval $ac_try) 2>&5
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; }; then
14185 am_cv_func_iconv=yes
14187 echo "$as_me: failed program was:" >&5
14188 sed 's/^/| /' conftest.$ac_ext >&5
14191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14192 if test "$am_cv_func_iconv" != yes; then
14193 am_save_LIBS="$LIBS"
14194 LIBS="$LIBS -liconv"
14195 cat >conftest.$ac_ext <<_ACEOF
14196 #line $LINENO "configure"
14199 cat confdefs.h >>conftest.$ac_ext
14200 cat >>conftest.$ac_ext <<_ACEOF
14201 /* end confdefs.h. */
14202 #include <stdlib.h>
14207 iconv_t cd = iconv_open("","");
14208 iconv(cd,NULL,NULL,NULL,NULL);
14214 rm -f conftest.$ac_objext conftest$ac_exeext
14215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14216 (eval $ac_link) 2>&5
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); } &&
14220 { ac_try='test -s conftest$ac_exeext'
14221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14222 (eval $ac_try) 2>&5
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); }; }; then
14226 am_cv_lib_iconv=yes
14227 am_cv_func_iconv=yes
14229 echo "$as_me: failed program was:" >&5
14230 sed 's/^/| /' conftest.$ac_ext >&5
14233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14234 LIBS="$am_save_LIBS"
14238 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
14239 echo "${ECHO_T}$am_cv_func_iconv" >&6
14240 if test "$am_cv_func_iconv" = yes; then
14242 cat >>confdefs.h <<\_ACEOF
14243 #define HAVE_ICONV 1
14246 echo "$as_me:$LINENO: checking for iconv declaration" >&5
14247 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
14248 if test "${am_cv_proto_iconv+set}" = set; then
14249 echo $ECHO_N "(cached) $ECHO_C" >&6
14252 cat >conftest.$ac_ext <<_ACEOF
14253 #line $LINENO "configure"
14256 cat confdefs.h >>conftest.$ac_ext
14257 cat >>conftest.$ac_ext <<_ACEOF
14258 /* end confdefs.h. */
14260 #include <stdlib.h>
14266 #if defined(__STDC__) || defined(__cplusplus)
14267 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14280 rm -f conftest.$ac_objext
14281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14282 (eval $ac_compile) 2>&5
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); } &&
14286 { ac_try='test -s conftest.$ac_objext'
14287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14288 (eval $ac_try) 2>&5
14290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291 (exit $ac_status); }; }; then
14292 am_cv_proto_iconv_arg1=""
14294 echo "$as_me: failed program was:" >&5
14295 sed 's/^/| /' conftest.$ac_ext >&5
14297 am_cv_proto_iconv_arg1="const"
14299 rm -f conftest.$ac_objext conftest.$ac_ext
14300 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);"
14303 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14304 echo "$as_me:$LINENO: result: ${ac_t:-
14305 }$am_cv_proto_iconv" >&5
14306 echo "${ECHO_T}${ac_t:-
14307 }$am_cv_proto_iconv" >&6
14309 cat >>confdefs.h <<_ACEOF
14310 #define ICONV_CONST $am_cv_proto_iconv_arg1
14315 if test "$am_cv_lib_iconv" = yes; then
14321 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
14322 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
14323 if test "${am_cv_langinfo_codeset+set}" = set; then
14324 echo $ECHO_N "(cached) $ECHO_C" >&6
14326 cat >conftest.$ac_ext <<_ACEOF
14327 #line $LINENO "configure"
14330 cat confdefs.h >>conftest.$ac_ext
14331 cat >>conftest.$ac_ext <<_ACEOF
14332 /* end confdefs.h. */
14333 #include <langinfo.h>
14337 char* cs = nl_langinfo(CODESET);
14342 rm -f conftest.$ac_objext conftest$ac_exeext
14343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14344 (eval $ac_link) 2>&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); } &&
14348 { ac_try='test -s conftest$ac_exeext'
14349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14350 (eval $ac_try) 2>&5
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); }; }; then
14354 am_cv_langinfo_codeset=yes
14356 echo "$as_me: failed program was:" >&5
14357 sed 's/^/| /' conftest.$ac_ext >&5
14359 am_cv_langinfo_codeset=no
14361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14364 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
14365 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
14366 if test $am_cv_langinfo_codeset = yes; then
14368 cat >>confdefs.h <<\_ACEOF
14369 #define HAVE_LANGINFO_CODESET 1
14374 if test $ac_cv_header_locale_h = yes; then
14375 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
14376 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
14377 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
14378 echo $ECHO_N "(cached) $ECHO_C" >&6
14380 cat >conftest.$ac_ext <<_ACEOF
14381 #line $LINENO "configure"
14384 cat confdefs.h >>conftest.$ac_ext
14385 cat >>conftest.$ac_ext <<_ACEOF
14386 /* end confdefs.h. */
14387 #include <locale.h>
14396 rm -f conftest.$ac_objext conftest$ac_exeext
14397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14398 (eval $ac_link) 2>&5
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); } &&
14402 { ac_try='test -s conftest$ac_exeext'
14403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14404 (eval $ac_try) 2>&5
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); }; }; then
14408 am_cv_val_LC_MESSAGES=yes
14410 echo "$as_me: failed program was:" >&5
14411 sed 's/^/| /' conftest.$ac_ext >&5
14413 am_cv_val_LC_MESSAGES=no
14415 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14417 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
14418 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
14419 if test $am_cv_val_LC_MESSAGES = yes; then
14421 cat >>confdefs.h <<\_ACEOF
14422 #define HAVE_LC_MESSAGES 1
14427 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
14428 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
14429 # Check whether --enable-nls or --disable-nls was given.
14430 if test "${enable_nls+set}" = set; then
14431 enableval="$enable_nls"
14436 echo "$as_me:$LINENO: result: $USE_NLS" >&5
14437 echo "${ECHO_T}$USE_NLS" >&6
14440 BUILD_INCLUDED_LIBINTL=no
14441 USE_INCLUDED_LIBINTL=no
14444 if test "$USE_NLS" = "yes"; then
14446 cat >>confdefs.h <<\_ACEOF
14447 #define ENABLE_NLS 1
14450 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
14451 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
14453 # Check whether --with-included-gettext or --without-included-gettext was given.
14454 if test "${with_included_gettext+set}" = set; then
14455 withval="$with_included_gettext"
14456 nls_cv_force_use_gnu_gettext=$withval
14458 nls_cv_force_use_gnu_gettext=no
14460 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
14461 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
14463 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
14464 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
14470 if test "${ac_cv_header_libintl_h+set}" = set; then
14471 echo "$as_me:$LINENO: checking for libintl.h" >&5
14472 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
14473 if test "${ac_cv_header_libintl_h+set}" = set; then
14474 echo $ECHO_N "(cached) $ECHO_C" >&6
14476 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
14477 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
14479 # Is the header compilable?
14480 echo "$as_me:$LINENO: checking libintl.h usability" >&5
14481 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
14482 cat >conftest.$ac_ext <<_ACEOF
14483 #line $LINENO "configure"
14486 cat confdefs.h >>conftest.$ac_ext
14487 cat >>conftest.$ac_ext <<_ACEOF
14488 /* end confdefs.h. */
14489 $ac_includes_default
14490 #include <libintl.h>
14492 rm -f conftest.$ac_objext
14493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14494 (eval $ac_compile) 2>&5
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); } &&
14498 { ac_try='test -s conftest.$ac_objext'
14499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14500 (eval $ac_try) 2>&5
14502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 (exit $ac_status); }; }; then
14504 ac_header_compiler=yes
14506 echo "$as_me: failed program was:" >&5
14507 sed 's/^/| /' conftest.$ac_ext >&5
14509 ac_header_compiler=no
14511 rm -f conftest.$ac_objext conftest.$ac_ext
14512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14513 echo "${ECHO_T}$ac_header_compiler" >&6
14515 # Is the header present?
14516 echo "$as_me:$LINENO: checking libintl.h presence" >&5
14517 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
14518 cat >conftest.$ac_ext <<_ACEOF
14519 #line $LINENO "configure"
14522 cat confdefs.h >>conftest.$ac_ext
14523 cat >>conftest.$ac_ext <<_ACEOF
14524 /* end confdefs.h. */
14525 #include <libintl.h>
14527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14530 grep -v '^ *+' conftest.er1 >conftest.err
14532 cat conftest.err >&5
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); } >/dev/null; then
14535 if test -s conftest.err; then
14536 ac_cpp_err=$ac_c_preproc_warn_flag
14543 if test -z "$ac_cpp_err"; then
14544 ac_header_preproc=yes
14546 echo "$as_me: failed program was:" >&5
14547 sed 's/^/| /' conftest.$ac_ext >&5
14549 ac_header_preproc=no
14551 rm -f conftest.err conftest.$ac_ext
14552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14553 echo "${ECHO_T}$ac_header_preproc" >&6
14555 # So? What about this header?
14556 case $ac_header_compiler:$ac_header_preproc in
14558 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
14559 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14560 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
14561 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
14564 ## ------------------------------------ ##
14565 ## Report this to bug-autoconf@gnu.org. ##
14566 ## ------------------------------------ ##
14569 sed "s/^/$as_me: WARNING: /" >&2
14572 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
14573 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
14574 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
14575 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
14576 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
14577 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
14580 ## ------------------------------------ ##
14581 ## Report this to bug-autoconf@gnu.org. ##
14582 ## ------------------------------------ ##
14585 sed "s/^/$as_me: WARNING: /" >&2
14588 echo "$as_me:$LINENO: checking for libintl.h" >&5
14589 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
14590 if test "${ac_cv_header_libintl_h+set}" = set; then
14591 echo $ECHO_N "(cached) $ECHO_C" >&6
14593 ac_cv_header_libintl_h=$ac_header_preproc
14595 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
14596 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
14599 if test $ac_cv_header_libintl_h = yes; then
14600 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
14601 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
14602 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
14603 echo $ECHO_N "(cached) $ECHO_C" >&6
14605 cat >conftest.$ac_ext <<_ACEOF
14606 #line $LINENO "configure"
14609 cat confdefs.h >>conftest.$ac_ext
14610 cat >>conftest.$ac_ext <<_ACEOF
14611 /* end confdefs.h. */
14612 #include <libintl.h>
14613 extern int _nl_msg_cat_cntr;
14617 bindtextdomain ("", "");
14618 return (int) gettext ("") + _nl_msg_cat_cntr
14623 rm -f conftest.$ac_objext conftest$ac_exeext
14624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14625 (eval $ac_link) 2>&5
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); } &&
14629 { ac_try='test -s conftest$ac_exeext'
14630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14631 (eval $ac_try) 2>&5
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); }; }; then
14635 gt_cv_func_gnugettext1_libc=yes
14637 echo "$as_me: failed program was:" >&5
14638 sed 's/^/| /' conftest.$ac_ext >&5
14640 gt_cv_func_gnugettext1_libc=no
14642 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14644 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
14645 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
14647 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
14648 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
14649 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
14650 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
14651 echo $ECHO_N "(cached) $ECHO_C" >&6
14653 gt_save_LIBS="$LIBS"
14654 LIBS="$LIBS -lintl $LIBICONV"
14655 cat >conftest.$ac_ext <<_ACEOF
14656 #line $LINENO "configure"
14659 cat confdefs.h >>conftest.$ac_ext
14660 cat >>conftest.$ac_ext <<_ACEOF
14661 /* end confdefs.h. */
14662 #include <libintl.h>
14663 extern int _nl_msg_cat_cntr;
14667 bindtextdomain ("", "");
14668 return (int) gettext ("") + _nl_msg_cat_cntr
14673 rm -f conftest.$ac_objext conftest$ac_exeext
14674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14675 (eval $ac_link) 2>&5
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); } &&
14679 { ac_try='test -s conftest$ac_exeext'
14680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14681 (eval $ac_try) 2>&5
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); }; }; then
14685 gt_cv_func_gnugettext1_libintl=yes
14687 echo "$as_me: failed program was:" >&5
14688 sed 's/^/| /' conftest.$ac_ext >&5
14690 gt_cv_func_gnugettext1_libintl=no
14692 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14693 LIBS="$gt_save_LIBS"
14695 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
14696 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
14699 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
14700 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
14701 && test "$PACKAGE" != gettext; }; then
14703 cat >>confdefs.h <<\_ACEOF
14704 #define HAVE_GETTEXT 1
14708 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14709 INTLLIBS="-lintl $LIBICONV"
14712 gt_save_LIBS="$LIBS"
14713 LIBS="$LIBS $INTLLIBS"
14715 for ac_func in dcgettext
14717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14718 echo "$as_me:$LINENO: checking for $ac_func" >&5
14719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14720 if eval "test \"\${$as_ac_var+set}\" = set"; then
14721 echo $ECHO_N "(cached) $ECHO_C" >&6
14723 cat >conftest.$ac_ext <<_ACEOF
14724 #line $LINENO "configure"
14727 cat confdefs.h >>conftest.$ac_ext
14728 cat >>conftest.$ac_ext <<_ACEOF
14729 /* end confdefs.h. */
14730 /* System header to define __stub macros and hopefully few prototypes,
14731 which can conflict with char $ac_func (); below.
14732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14733 <limits.h> exists even on freestanding compilers. */
14735 # include <limits.h>
14737 # include <assert.h>
14739 /* Override any gcc2 internal prototype to avoid an error. */
14744 /* We use char because int might match the return type of a gcc2
14745 builtin and then its argument prototype would still apply. */
14747 /* The GNU C library defines this for functions which it implements
14748 to always fail with ENOSYS. Some functions are actually named
14749 something starting with __ and the normal name is an alias. */
14750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14753 char (*f) () = $ac_func;
14762 return f != $ac_func;
14767 rm -f conftest.$ac_objext conftest$ac_exeext
14768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14769 (eval $ac_link) 2>&5
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); } &&
14773 { ac_try='test -s conftest$ac_exeext'
14774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14775 (eval $ac_try) 2>&5
14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778 (exit $ac_status); }; }; then
14779 eval "$as_ac_var=yes"
14781 echo "$as_me: failed program was:" >&5
14782 sed 's/^/| /' conftest.$ac_ext >&5
14784 eval "$as_ac_var=no"
14786 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14789 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14790 if test `eval echo '${'$as_ac_var'}'` = yes; then
14791 cat >>confdefs.h <<_ACEOF
14792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14798 LIBS="$gt_save_LIBS"
14800 # Extract the first word of "msgfmt", so it can be a program name with args.
14801 set dummy msgfmt; ac_word=$2
14802 echo "$as_me:$LINENO: checking for $ac_word" >&5
14803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14804 if test "${ac_cv_path_MSGFMT+set}" = set; then
14805 echo $ECHO_N "(cached) $ECHO_C" >&6
14809 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14813 for ac_dir in $PATH; do
14814 test -z "$ac_dir" && ac_dir=.
14815 if test -f $ac_dir/$ac_word; then
14816 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
14817 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
14823 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14827 MSGFMT="$ac_cv_path_MSGFMT"
14828 if test "$MSGFMT" != ":"; then
14829 echo "$as_me:$LINENO: result: $MSGFMT" >&5
14830 echo "${ECHO_T}$MSGFMT" >&6
14832 echo "$as_me:$LINENO: result: no" >&5
14833 echo "${ECHO_T}no" >&6
14836 # Extract the first word of "gmsgfmt", so it can be a program name with args.
14837 set dummy gmsgfmt; ac_word=$2
14838 echo "$as_me:$LINENO: checking for $ac_word" >&5
14839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14840 if test "${ac_cv_path_GMSGFMT+set}" = set; then
14841 echo $ECHO_N "(cached) $ECHO_C" >&6
14845 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14849 for as_dir in $PATH
14852 test -z "$as_dir" && as_dir=.
14853 for ac_exec_ext in '' $ac_executable_extensions; do
14854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14855 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14862 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14866 GMSGFMT=$ac_cv_path_GMSGFMT
14868 if test -n "$GMSGFMT"; then
14869 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
14870 echo "${ECHO_T}$GMSGFMT" >&6
14872 echo "$as_me:$LINENO: result: no" >&5
14873 echo "${ECHO_T}no" >&6
14877 # Extract the first word of "xgettext", so it can be a program name with args.
14878 set dummy xgettext; ac_word=$2
14879 echo "$as_me:$LINENO: checking for $ac_word" >&5
14880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14881 if test "${ac_cv_path_XGETTEXT+set}" = set; then
14882 echo $ECHO_N "(cached) $ECHO_C" >&6
14884 case "$XGETTEXT" in
14886 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14889 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14890 for ac_dir in $PATH; do
14891 test -z "$ac_dir" && ac_dir=.
14892 if test -f $ac_dir/$ac_word; then
14893 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
14894 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
14900 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14904 XGETTEXT="$ac_cv_path_XGETTEXT"
14905 if test "$XGETTEXT" != ":"; then
14906 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
14907 echo "${ECHO_T}$XGETTEXT" >&6
14909 echo "$as_me:$LINENO: result: no" >&5
14910 echo "${ECHO_T}no" >&6
14921 if test "$CATOBJEXT" = "NONE"; then
14922 nls_cv_use_gnu_gettext=yes
14926 if test "$nls_cv_use_gnu_gettext" = "yes"; then
14927 INTLOBJS="\$(GETTOBJS)"
14928 # Extract the first word of "msgfmt", so it can be a program name with args.
14929 set dummy msgfmt; ac_word=$2
14930 echo "$as_me:$LINENO: checking for $ac_word" >&5
14931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14932 if test "${ac_cv_path_MSGFMT+set}" = set; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
14937 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14940 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14941 for ac_dir in $PATH; do
14942 test -z "$ac_dir" && ac_dir=.
14943 if test -f $ac_dir/$ac_word; then
14944 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
14945 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
14951 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14955 MSGFMT="$ac_cv_path_MSGFMT"
14956 if test "$MSGFMT" != ":"; then
14957 echo "$as_me:$LINENO: result: $MSGFMT" >&5
14958 echo "${ECHO_T}$MSGFMT" >&6
14960 echo "$as_me:$LINENO: result: no" >&5
14961 echo "${ECHO_T}no" >&6
14964 # Extract the first word of "gmsgfmt", so it can be a program name with args.
14965 set dummy gmsgfmt; ac_word=$2
14966 echo "$as_me:$LINENO: checking for $ac_word" >&5
14967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14968 if test "${ac_cv_path_GMSGFMT+set}" = set; then
14969 echo $ECHO_N "(cached) $ECHO_C" >&6
14973 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14977 for as_dir in $PATH
14980 test -z "$as_dir" && as_dir=.
14981 for ac_exec_ext in '' $ac_executable_extensions; do
14982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14983 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14990 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14994 GMSGFMT=$ac_cv_path_GMSGFMT
14996 if test -n "$GMSGFMT"; then
14997 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
14998 echo "${ECHO_T}$GMSGFMT" >&6
15000 echo "$as_me:$LINENO: result: no" >&5
15001 echo "${ECHO_T}no" >&6
15004 # Extract the first word of "xgettext", so it can be a program name with args.
15005 set dummy xgettext; ac_word=$2
15006 echo "$as_me:$LINENO: checking for $ac_word" >&5
15007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15008 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15009 echo $ECHO_N "(cached) $ECHO_C" >&6
15011 case "$XGETTEXT" in
15013 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15016 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15017 for ac_dir in $PATH; do
15018 test -z "$ac_dir" && ac_dir=.
15019 if test -f $ac_dir/$ac_word; then
15020 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
15021 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
15027 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15031 XGETTEXT="$ac_cv_path_XGETTEXT"
15032 if test "$XGETTEXT" != ":"; then
15033 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15034 echo "${ECHO_T}$XGETTEXT" >&6
15036 echo "$as_me:$LINENO: result: no" >&5
15037 echo "${ECHO_T}no" >&6
15041 BUILD_INCLUDED_LIBINTL=yes
15042 USE_INCLUDED_LIBINTL=yes
15044 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
15045 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
15048 if test "$GMSGFMT" != ":"; then
15049 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
15052 echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
15053 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
15058 if test "$XGETTEXT" != ":"; then
15059 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
15062 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15063 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
15070 ac_config_commands="$ac_config_commands default-1"
15074 if test "$PACKAGE" = gettext; then
15075 BUILD_INCLUDED_LIBINTL=yes
15078 for ac_prog in bison
15080 # Extract the first word of "$ac_prog", so it can be a program name with args.
15081 set dummy $ac_prog; ac_word=$2
15082 echo "$as_me:$LINENO: checking for $ac_word" >&5
15083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15084 if test "${ac_cv_prog_INTLBISON+set}" = set; then
15085 echo $ECHO_N "(cached) $ECHO_C" >&6
15087 if test -n "$INTLBISON"; then
15088 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
15090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15091 for as_dir in $PATH
15094 test -z "$as_dir" && as_dir=.
15095 for ac_exec_ext in '' $ac_executable_extensions; do
15096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15097 ac_cv_prog_INTLBISON="$ac_prog"
15098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15106 INTLBISON=$ac_cv_prog_INTLBISON
15107 if test -n "$INTLBISON"; then
15108 echo "$as_me:$LINENO: result: $INTLBISON" >&5
15109 echo "${ECHO_T}$INTLBISON" >&6
15111 echo "$as_me:$LINENO: result: no" >&5
15112 echo "${ECHO_T}no" >&6
15115 test -n "$INTLBISON" && break
15118 if test -z "$INTLBISON"; then
15121 echo "$as_me:$LINENO: checking version of bison" >&5
15122 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
15123 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
15124 case $ac_prog_version in
15125 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
15126 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
15127 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
15128 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
15130 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
15131 echo "${ECHO_T}$ac_prog_version" >&6
15133 if test $ac_verc_fail = yes; then
15137 for lang in $ALL_LINGUAS; do
15138 GMOFILES="$GMOFILES $lang.gmo"
15139 POFILES="$POFILES $lang.po"
15152 nls_cv_header_intl=
15153 nls_cv_header_libgt=
15165 if test "x$CATOBJEXT" != "x"; then
15166 if test "x$ALL_LINGUAS" = "x"; then
15169 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
15170 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
15172 for presentlang in $ALL_LINGUAS; do
15174 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
15175 # Use the presentlang catalog if desiredlang is
15176 # a. equal to presentlang, or
15177 # b. a variant of presentlang (because in this case,
15178 # presentlang can be used as a fallback for messages
15179 # which are not translated in the desiredlang catalog).
15180 case "$desiredlang" in
15181 "$presentlang"*) useit=yes;;
15184 if test $useit = yes; then
15185 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
15188 LINGUAS=$NEW_LINGUAS
15189 echo "$as_me:$LINENO: result: $LINGUAS" >&5
15190 echo "${ECHO_T}$LINGUAS" >&6
15193 if test -n "$LINGUAS"; then
15194 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
15199 if test -n "$ac_aux_dir"; then
15200 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
15202 if test -z "$MKINSTALLDIRS"; then
15203 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15207 INTL_LIBTOOL_SUFFIX_PREFIX=
15211 if test "$am_cv_func_iconv" != "yes"
15213 { echo "$as_me:$LINENO: WARNING: Configuring without iconv support. See INSTALL for details" >&5
15214 echo "$as_me: WARNING: Configuring without iconv support. See INSTALL for details" >&2;}
15218 for ac_header in iconv.h
15220 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15222 echo "$as_me:$LINENO: checking for $ac_header" >&5
15223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15225 echo $ECHO_N "(cached) $ECHO_C" >&6
15227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15230 # Is the header compilable?
15231 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15232 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15233 cat >conftest.$ac_ext <<_ACEOF
15234 #line $LINENO "configure"
15237 cat confdefs.h >>conftest.$ac_ext
15238 cat >>conftest.$ac_ext <<_ACEOF
15239 /* end confdefs.h. */
15240 $ac_includes_default
15241 #include <$ac_header>
15243 rm -f conftest.$ac_objext
15244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15245 (eval $ac_compile) 2>&5
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); } &&
15249 { ac_try='test -s conftest.$ac_objext'
15250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15251 (eval $ac_try) 2>&5
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); }; }; then
15255 ac_header_compiler=yes
15257 echo "$as_me: failed program was:" >&5
15258 sed 's/^/| /' conftest.$ac_ext >&5
15260 ac_header_compiler=no
15262 rm -f conftest.$ac_objext conftest.$ac_ext
15263 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15264 echo "${ECHO_T}$ac_header_compiler" >&6
15266 # Is the header present?
15267 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15268 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15269 cat >conftest.$ac_ext <<_ACEOF
15270 #line $LINENO "configure"
15273 cat confdefs.h >>conftest.$ac_ext
15274 cat >>conftest.$ac_ext <<_ACEOF
15275 /* end confdefs.h. */
15276 #include <$ac_header>
15278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15279 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15281 grep -v '^ *+' conftest.er1 >conftest.err
15283 cat conftest.err >&5
15284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285 (exit $ac_status); } >/dev/null; then
15286 if test -s conftest.err; then
15287 ac_cpp_err=$ac_c_preproc_warn_flag
15294 if test -z "$ac_cpp_err"; then
15295 ac_header_preproc=yes
15297 echo "$as_me: failed program was:" >&5
15298 sed 's/^/| /' conftest.$ac_ext >&5
15300 ac_header_preproc=no
15302 rm -f conftest.err conftest.$ac_ext
15303 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15304 echo "${ECHO_T}$ac_header_preproc" >&6
15306 # So? What about this header?
15307 case $ac_header_compiler:$ac_header_preproc in
15309 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15310 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15312 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15315 ## ------------------------------------ ##
15316 ## Report this to bug-autoconf@gnu.org. ##
15317 ## ------------------------------------ ##
15320 sed "s/^/$as_me: WARNING: /" >&2
15323 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15324 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15325 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15326 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15327 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15328 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15331 ## ------------------------------------ ##
15332 ## Report this to bug-autoconf@gnu.org. ##
15333 ## ------------------------------------ ##
15336 sed "s/^/$as_me: WARNING: /" >&2
15339 echo "$as_me:$LINENO: checking for $ac_header" >&5
15340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15342 echo $ECHO_N "(cached) $ECHO_C" >&6
15344 eval "$as_ac_Header=$ac_header_preproc"
15346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15351 cat >>confdefs.h <<_ACEOF
15352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15354 echo "$as_me:$LINENO: checking whether iconv.h defines iconv_t" >&5
15355 echo $ECHO_N "checking whether iconv.h defines iconv_t... $ECHO_C" >&6
15356 cat >conftest.$ac_ext <<_ACEOF
15357 #line $LINENO "configure"
15360 cat confdefs.h >>conftest.$ac_ext
15361 cat >>conftest.$ac_ext <<_ACEOF
15362 /* end confdefs.h. */
15366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15367 $EGREP "typedef.*iconv_t" >/dev/null 2>&1; then
15368 echo "$as_me:$LINENO: result: yes" >&5
15369 echo "${ECHO_T}yes" >&6
15371 cat >>confdefs.h <<\_ACEOF
15372 #define HAVE_ICONV_T_DEF 1
15376 echo "$as_me:$LINENO: result: no" >&5
15377 echo "${ECHO_T}no" >&6
15386 echo "$as_me:$LINENO: checking whether this iconv is good enough" >&5
15387 echo $ECHO_N "checking whether this iconv is good enough... $ECHO_C" >&6
15388 if test "${mutt_cv_iconv_good+set}" = set; then
15389 echo $ECHO_N "(cached) $ECHO_C" >&6
15391 mutt_save_LIBS="$LIBS"
15392 LIBS="$LIBS $LIBICONV"
15393 if test "$cross_compiling" = yes; then
15394 mutt_cv_iconv_good=yes
15396 cat >conftest.$ac_ext <<_ACEOF
15397 #line $LINENO "configure"
15400 cat confdefs.h >>conftest.$ac_ext
15401 cat >>conftest.$ac_ext <<_ACEOF
15402 /* end confdefs.h. */
15411 ob = buf, obl = sizeof(buf);
15412 return ((cd = iconv_open("UTF-8", "UTF-8")) != (iconv_t)(-1) &&
15413 (iconv(cd, 0, 0, &ob, &obl) ||
15414 !(ob == buf && obl == sizeof(buf)) ||
15419 rm -f conftest$ac_exeext
15420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15421 (eval $ac_link) 2>&5
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); } && { ac_try='./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 mutt_cv_iconv_good=yes
15432 echo "$as_me: program exited with status $ac_status" >&5
15433 echo "$as_me: failed program was:" >&5
15434 sed 's/^/| /' conftest.$ac_ext >&5
15436 ( exit $ac_status )
15437 mutt_cv_iconv_good=no
15439 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15441 LIBS="$mutt_save_LIBS"
15443 echo "$as_me:$LINENO: result: $mutt_cv_iconv_good" >&5
15444 echo "${ECHO_T}$mutt_cv_iconv_good" >&6
15445 if test "$mutt_cv_iconv_good" = no; then
15446 { { echo "$as_me:$LINENO: error: Try using libiconv instead" >&5
15447 echo "$as_me: error: Try using libiconv instead" >&2;}
15448 { (exit 1); exit 1; }; }
15451 echo "$as_me:$LINENO: checking whether iconv is non-transcribing" >&5
15452 echo $ECHO_N "checking whether iconv is non-transcribing... $ECHO_C" >&6
15453 if test "${mutt_cv_iconv_nontrans+set}" = set; then
15454 echo $ECHO_N "(cached) $ECHO_C" >&6
15456 mutt_save_LIBS="$LIBS"
15457 LIBS="$LIBS $LIBICONV"
15458 if test "$cross_compiling" = yes; then
15459 mutt_cv_iconv_nontrans=no
15461 cat >conftest.$ac_ext <<_ACEOF
15462 #line $LINENO "configure"
15465 cat confdefs.h >>conftest.$ac_ext
15466 cat >>conftest.$ac_ext <<_ACEOF
15467 /* end confdefs.h. */
15470 #include <string.h>
15477 const char *s = "\304\211";
15479 ib = s, ibl = 2, ob = t, obl = 3;
15480 return ((cd = iconv_open("UTF-8", "UTF-8")) == (iconv_t)(-1) ||
15481 iconv(cd, &ib, &ibl, &ob, &obl));
15485 rm -f conftest$ac_exeext
15486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15487 (eval $ac_link) 2>&5
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15492 (eval $ac_try) 2>&5
15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); }; }; then
15496 mutt_cv_iconv_nontrans=no
15498 echo "$as_me: program exited with status $ac_status" >&5
15499 echo "$as_me: failed program was:" >&5
15500 sed 's/^/| /' conftest.$ac_ext >&5
15502 ( exit $ac_status )
15503 mutt_cv_iconv_nontrans=yes
15505 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15507 LIBS="$mutt_save_LIBS"
15509 echo "$as_me:$LINENO: result: $mutt_cv_iconv_nontrans" >&5
15510 echo "${ECHO_T}$mutt_cv_iconv_nontrans" >&6
15511 if test "$mutt_cv_iconv_nontrans" = yes; then
15512 cat >>confdefs.h <<\_ACEOF
15513 #define ICONV_NONTRANS 1
15517 cat >>confdefs.h <<\_ACEOF
15518 #define ICONV_NONTRANS 0
15523 CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/intl"
15525 if test "$BUILD_INCLUDED_LIBINTL" = "yes"; then
15527 cat >>confdefs.h <<\_ACEOF
15528 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
15533 for ac_func in bind_textdomain_codeset
15535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15536 echo "$as_me:$LINENO: checking for $ac_func" >&5
15537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15538 if eval "test \"\${$as_ac_var+set}\" = set"; then
15539 echo $ECHO_N "(cached) $ECHO_C" >&6
15541 cat >conftest.$ac_ext <<_ACEOF
15542 #line $LINENO "configure"
15545 cat confdefs.h >>conftest.$ac_ext
15546 cat >>conftest.$ac_ext <<_ACEOF
15547 /* end confdefs.h. */
15548 /* System header to define __stub macros and hopefully few prototypes,
15549 which can conflict with char $ac_func (); below.
15550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15551 <limits.h> exists even on freestanding compilers. */
15553 # include <limits.h>
15555 # include <assert.h>
15557 /* Override any gcc2 internal prototype to avoid an error. */
15562 /* We use char because int might match the return type of a gcc2
15563 builtin and then its argument prototype would still apply. */
15565 /* The GNU C library defines this for functions which it implements
15566 to always fail with ENOSYS. Some functions are actually named
15567 something starting with __ and the normal name is an alias. */
15568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15571 char (*f) () = $ac_func;
15580 return f != $ac_func;
15585 rm -f conftest.$ac_objext conftest$ac_exeext
15586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15587 (eval $ac_link) 2>&5
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); } &&
15591 { ac_try='test -s conftest$ac_exeext'
15592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593 (eval $ac_try) 2>&5
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); }; }; then
15597 eval "$as_ac_var=yes"
15599 echo "$as_me: failed program was:" >&5
15600 sed 's/^/| /' conftest.$ac_ext >&5
15602 eval "$as_ac_var=no"
15604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15607 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15608 if test `eval echo '${'$as_ac_var'}'` = yes; then
15609 cat >>confdefs.h <<_ACEOF
15610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15622 for ac_header in wchar.h
15624 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15626 echo "$as_me:$LINENO: checking for $ac_header" >&5
15627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15629 echo $ECHO_N "(cached) $ECHO_C" >&6
15631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15634 # Is the header compilable?
15635 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15636 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15637 cat >conftest.$ac_ext <<_ACEOF
15638 #line $LINENO "configure"
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h. */
15644 $ac_includes_default
15645 #include <$ac_header>
15647 rm -f conftest.$ac_objext
15648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15649 (eval $ac_compile) 2>&5
15651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652 (exit $ac_status); } &&
15653 { ac_try='test -s conftest.$ac_objext'
15654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15655 (eval $ac_try) 2>&5
15657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); }; }; then
15659 ac_header_compiler=yes
15661 echo "$as_me: failed program was:" >&5
15662 sed 's/^/| /' conftest.$ac_ext >&5
15664 ac_header_compiler=no
15666 rm -f conftest.$ac_objext conftest.$ac_ext
15667 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15668 echo "${ECHO_T}$ac_header_compiler" >&6
15670 # Is the header present?
15671 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15673 cat >conftest.$ac_ext <<_ACEOF
15674 #line $LINENO "configure"
15677 cat confdefs.h >>conftest.$ac_ext
15678 cat >>conftest.$ac_ext <<_ACEOF
15679 /* end confdefs.h. */
15680 #include <$ac_header>
15682 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15683 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15685 grep -v '^ *+' conftest.er1 >conftest.err
15687 cat conftest.err >&5
15688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689 (exit $ac_status); } >/dev/null; then
15690 if test -s conftest.err; then
15691 ac_cpp_err=$ac_c_preproc_warn_flag
15698 if test -z "$ac_cpp_err"; then
15699 ac_header_preproc=yes
15701 echo "$as_me: failed program was:" >&5
15702 sed 's/^/| /' conftest.$ac_ext >&5
15704 ac_header_preproc=no
15706 rm -f conftest.err conftest.$ac_ext
15707 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15708 echo "${ECHO_T}$ac_header_preproc" >&6
15710 # So? What about this header?
15711 case $ac_header_compiler:$ac_header_preproc in
15713 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15714 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15716 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15719 ## ------------------------------------ ##
15720 ## Report this to bug-autoconf@gnu.org. ##
15721 ## ------------------------------------ ##
15724 sed "s/^/$as_me: WARNING: /" >&2
15727 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15728 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15729 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15730 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15732 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15735 ## ------------------------------------ ##
15736 ## Report this to bug-autoconf@gnu.org. ##
15737 ## ------------------------------------ ##
15740 sed "s/^/$as_me: WARNING: /" >&2
15743 echo "$as_me:$LINENO: checking for $ac_header" >&5
15744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15746 echo $ECHO_N "(cached) $ECHO_C" >&6
15748 eval "$as_ac_Header=$ac_header_preproc"
15750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15751 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15754 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15755 cat >>confdefs.h <<_ACEOF
15756 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15764 echo "$as_me:$LINENO: checking for wchar_t" >&5
15765 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
15766 if test "${mutt_cv_wchar_t+set}" = set; then
15767 echo $ECHO_N "(cached) $ECHO_C" >&6
15769 cat >conftest.$ac_ext <<_ACEOF
15770 #line $LINENO "configure"
15773 cat confdefs.h >>conftest.$ac_ext
15774 cat >>conftest.$ac_ext <<_ACEOF
15775 /* end confdefs.h. */
15777 #include <stddef.h>
15778 #include <stdlib.h>
15779 #ifdef HAVE_WCHAR_H
15786 wchar_t wc; return 0;
15791 rm -f conftest.$ac_objext
15792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15793 (eval $ac_compile) 2>&5
15795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796 (exit $ac_status); } &&
15797 { ac_try='test -s conftest.$ac_objext'
15798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15799 (eval $ac_try) 2>&5
15801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802 (exit $ac_status); }; }; then
15803 mutt_cv_wchar_t=yes
15805 echo "$as_me: failed program was:" >&5
15806 sed 's/^/| /' conftest.$ac_ext >&5
15810 rm -f conftest.$ac_objext conftest.$ac_ext
15812 echo "$as_me:$LINENO: result: $mutt_cv_wchar_t" >&5
15813 echo "${ECHO_T}$mutt_cv_wchar_t" >&6
15815 if test "$mutt_cv_wchar_t" = no; then
15817 cat >>confdefs.h <<\_ACEOF
15818 #define wchar_t int
15823 echo "$as_me:$LINENO: checking for wint_t" >&5
15824 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
15825 if test "${mutt_cv_wint_t+set}" = set; then
15826 echo $ECHO_N "(cached) $ECHO_C" >&6
15828 cat >conftest.$ac_ext <<_ACEOF
15829 #line $LINENO "configure"
15832 cat confdefs.h >>conftest.$ac_ext
15833 cat >>conftest.$ac_ext <<_ACEOF
15834 /* end confdefs.h. */
15836 #include <stddef.h>
15837 #include <stdlib.h>
15838 #ifdef HAVE_WCHAR_H
15845 wint_t wc; return 0;
15850 rm -f conftest.$ac_objext
15851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15852 (eval $ac_compile) 2>&5
15854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855 (exit $ac_status); } &&
15856 { ac_try='test -s conftest.$ac_objext'
15857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15858 (eval $ac_try) 2>&5
15860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861 (exit $ac_status); }; }; then
15864 echo "$as_me: failed program was:" >&5
15865 sed 's/^/| /' conftest.$ac_ext >&5
15869 rm -f conftest.$ac_objext conftest.$ac_ext
15871 echo "$as_me:$LINENO: result: $mutt_cv_wint_t" >&5
15872 echo "${ECHO_T}$mutt_cv_wint_t" >&6
15874 if test "$mutt_cv_wint_t" = no; then
15876 cat >>confdefs.h <<\_ACEOF
15883 for ac_header in wctype.h
15885 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15887 echo "$as_me:$LINENO: checking for $ac_header" >&5
15888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15890 echo $ECHO_N "(cached) $ECHO_C" >&6
15892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15895 # Is the header compilable?
15896 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15897 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15898 cat >conftest.$ac_ext <<_ACEOF
15899 #line $LINENO "configure"
15902 cat confdefs.h >>conftest.$ac_ext
15903 cat >>conftest.$ac_ext <<_ACEOF
15904 /* end confdefs.h. */
15905 $ac_includes_default
15906 #include <$ac_header>
15908 rm -f conftest.$ac_objext
15909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15910 (eval $ac_compile) 2>&5
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); } &&
15914 { ac_try='test -s conftest.$ac_objext'
15915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15916 (eval $ac_try) 2>&5
15918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919 (exit $ac_status); }; }; then
15920 ac_header_compiler=yes
15922 echo "$as_me: failed program was:" >&5
15923 sed 's/^/| /' conftest.$ac_ext >&5
15925 ac_header_compiler=no
15927 rm -f conftest.$ac_objext conftest.$ac_ext
15928 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15929 echo "${ECHO_T}$ac_header_compiler" >&6
15931 # Is the header present?
15932 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15933 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15934 cat >conftest.$ac_ext <<_ACEOF
15935 #line $LINENO "configure"
15938 cat confdefs.h >>conftest.$ac_ext
15939 cat >>conftest.$ac_ext <<_ACEOF
15940 /* end confdefs.h. */
15941 #include <$ac_header>
15943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15946 grep -v '^ *+' conftest.er1 >conftest.err
15948 cat conftest.err >&5
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); } >/dev/null; then
15951 if test -s conftest.err; then
15952 ac_cpp_err=$ac_c_preproc_warn_flag
15959 if test -z "$ac_cpp_err"; then
15960 ac_header_preproc=yes
15962 echo "$as_me: failed program was:" >&5
15963 sed 's/^/| /' conftest.$ac_ext >&5
15965 ac_header_preproc=no
15967 rm -f conftest.err conftest.$ac_ext
15968 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15969 echo "${ECHO_T}$ac_header_preproc" >&6
15971 # So? What about this header?
15972 case $ac_header_compiler:$ac_header_preproc in
15974 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15975 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15980 ## ------------------------------------ ##
15981 ## Report this to bug-autoconf@gnu.org. ##
15982 ## ------------------------------------ ##
15985 sed "s/^/$as_me: WARNING: /" >&2
15988 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15989 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15990 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15991 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15992 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15993 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15996 ## ------------------------------------ ##
15997 ## Report this to bug-autoconf@gnu.org. ##
15998 ## ------------------------------------ ##
16001 sed "s/^/$as_me: WARNING: /" >&2
16004 echo "$as_me:$LINENO: checking for $ac_header" >&5
16005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16007 echo $ECHO_N "(cached) $ECHO_C" >&6
16009 eval "$as_ac_Header=$ac_header_preproc"
16011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16016 cat >>confdefs.h <<_ACEOF
16017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16028 for ac_func in iswalnum iswalpha iswcntrl iswdigit
16030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16031 echo "$as_me:$LINENO: checking for $ac_func" >&5
16032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16033 if eval "test \"\${$as_ac_var+set}\" = set"; then
16034 echo $ECHO_N "(cached) $ECHO_C" >&6
16036 cat >conftest.$ac_ext <<_ACEOF
16037 #line $LINENO "configure"
16040 cat confdefs.h >>conftest.$ac_ext
16041 cat >>conftest.$ac_ext <<_ACEOF
16042 /* end confdefs.h. */
16043 /* System header to define __stub macros and hopefully few prototypes,
16044 which can conflict with char $ac_func (); below.
16045 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16046 <limits.h> exists even on freestanding compilers. */
16048 # include <limits.h>
16050 # include <assert.h>
16052 /* Override any gcc2 internal prototype to avoid an error. */
16057 /* We use char because int might match the return type of a gcc2
16058 builtin and then its argument prototype would still apply. */
16060 /* The GNU C library defines this for functions which it implements
16061 to always fail with ENOSYS. Some functions are actually named
16062 something starting with __ and the normal name is an alias. */
16063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16066 char (*f) () = $ac_func;
16075 return f != $ac_func;
16080 rm -f conftest.$ac_objext conftest$ac_exeext
16081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16082 (eval $ac_link) 2>&5
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); } &&
16086 { ac_try='test -s conftest$ac_exeext'
16087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16088 (eval $ac_try) 2>&5
16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091 (exit $ac_status); }; }; then
16092 eval "$as_ac_var=yes"
16094 echo "$as_me: failed program was:" >&5
16095 sed 's/^/| /' conftest.$ac_ext >&5
16097 eval "$as_ac_var=no"
16099 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16102 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16103 if test `eval echo '${'$as_ac_var'}'` = yes; then
16104 cat >>confdefs.h <<_ACEOF
16105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16117 for ac_func in iswgraph iswlower iswprint iswpunct iswspace iswupper
16119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16120 echo "$as_me:$LINENO: checking for $ac_func" >&5
16121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16122 if eval "test \"\${$as_ac_var+set}\" = set"; then
16123 echo $ECHO_N "(cached) $ECHO_C" >&6
16125 cat >conftest.$ac_ext <<_ACEOF
16126 #line $LINENO "configure"
16129 cat confdefs.h >>conftest.$ac_ext
16130 cat >>conftest.$ac_ext <<_ACEOF
16131 /* end confdefs.h. */
16132 /* System header to define __stub macros and hopefully few prototypes,
16133 which can conflict with char $ac_func (); below.
16134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16135 <limits.h> exists even on freestanding compilers. */
16137 # include <limits.h>
16139 # include <assert.h>
16141 /* Override any gcc2 internal prototype to avoid an error. */
16146 /* We use char because int might match the return type of a gcc2
16147 builtin and then its argument prototype would still apply. */
16149 /* The GNU C library defines this for functions which it implements
16150 to always fail with ENOSYS. Some functions are actually named
16151 something starting with __ and the normal name is an alias. */
16152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16155 char (*f) () = $ac_func;
16164 return f != $ac_func;
16169 rm -f conftest.$ac_objext conftest$ac_exeext
16170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16171 (eval $ac_link) 2>&5
16173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); } &&
16175 { ac_try='test -s conftest$ac_exeext'
16176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16177 (eval $ac_try) 2>&5
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); }; }; then
16181 eval "$as_ac_var=yes"
16183 echo "$as_me: failed program was:" >&5
16184 sed 's/^/| /' conftest.$ac_ext >&5
16186 eval "$as_ac_var=no"
16188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16191 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16192 if test `eval echo '${'$as_ac_var'}'` = yes; then
16193 cat >>confdefs.h <<_ACEOF
16194 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16203 for ac_func in iswxdigit towupper towlower
16205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16206 echo "$as_me:$LINENO: checking for $ac_func" >&5
16207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16208 if eval "test \"\${$as_ac_var+set}\" = set"; then
16209 echo $ECHO_N "(cached) $ECHO_C" >&6
16211 cat >conftest.$ac_ext <<_ACEOF
16212 #line $LINENO "configure"
16215 cat confdefs.h >>conftest.$ac_ext
16216 cat >>conftest.$ac_ext <<_ACEOF
16217 /* end confdefs.h. */
16218 /* System header to define __stub macros and hopefully few prototypes,
16219 which can conflict with char $ac_func (); below.
16220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16221 <limits.h> exists even on freestanding compilers. */
16223 # include <limits.h>
16225 # include <assert.h>
16227 /* Override any gcc2 internal prototype to avoid an error. */
16232 /* We use char because int might match the return type of a gcc2
16233 builtin and then its argument prototype would still apply. */
16235 /* The GNU C library defines this for functions which it implements
16236 to always fail with ENOSYS. Some functions are actually named
16237 something starting with __ and the normal name is an alias. */
16238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16241 char (*f) () = $ac_func;
16250 return f != $ac_func;
16255 rm -f conftest.$ac_objext conftest$ac_exeext
16256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16257 (eval $ac_link) 2>&5
16259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260 (exit $ac_status); } &&
16261 { ac_try='test -s conftest$ac_exeext'
16262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16263 (eval $ac_try) 2>&5
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); }; }; then
16267 eval "$as_ac_var=yes"
16269 echo "$as_me: failed program was:" >&5
16270 sed 's/^/| /' conftest.$ac_ext >&5
16272 eval "$as_ac_var=no"
16274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16277 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16278 if test `eval echo '${'$as_ac_var'}'` = yes; then
16279 cat >>confdefs.h <<_ACEOF
16280 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16287 echo "$as_me:$LINENO: checking for mbstate_t" >&5
16288 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
16289 if test "${mutt_cv_mbstate_t+set}" = set; then
16290 echo $ECHO_N "(cached) $ECHO_C" >&6
16292 cat >conftest.$ac_ext <<_ACEOF
16293 #line $LINENO "configure"
16296 cat confdefs.h >>conftest.$ac_ext
16297 cat >>conftest.$ac_ext <<_ACEOF
16298 /* end confdefs.h. */
16300 #include <stddef.h>
16301 #include <stdlib.h>
16302 #ifdef HAVE_WCHAR_H
16309 mbstate_t s; return 0;
16314 rm -f conftest.$ac_objext
16315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16316 (eval $ac_compile) 2>&5
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); } &&
16320 { ac_try='test -s conftest.$ac_objext'
16321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16322 (eval $ac_try) 2>&5
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); }; }; then
16326 mutt_cv_mbstate_t=yes
16328 echo "$as_me: failed program was:" >&5
16329 sed 's/^/| /' conftest.$ac_ext >&5
16331 mutt_cv_mbstate_t=no
16333 rm -f conftest.$ac_objext conftest.$ac_ext
16335 echo "$as_me:$LINENO: result: $mutt_cv_mbstate_t" >&5
16336 echo "${ECHO_T}$mutt_cv_mbstate_t" >&6
16338 if test "$mutt_cv_mbstate_t" = no; then
16340 cat >>confdefs.h <<\_ACEOF
16341 #define mbstate_t int
16348 # Check whether --with-wc-funcs or --without-wc-funcs was given.
16349 if test "${with_wc_funcs+set}" = set; then
16350 withval="$with_wc_funcs"
16354 if test "$wc_funcs" != yes -a "$wc_funcs" != no; then
16355 echo "$as_me:$LINENO: checking for wchar_t functions" >&5
16356 echo $ECHO_N "checking for wchar_t functions... $ECHO_C" >&6
16357 if test "${mutt_cv_wc_funcs+set}" = set; then
16358 echo $ECHO_N "(cached) $ECHO_C" >&6
16360 mutt_cv_wc_funcs=no
16361 cat >conftest.$ac_ext <<_ACEOF
16362 #line $LINENO "configure"
16365 cat confdefs.h >>conftest.$ac_ext
16366 cat >>conftest.$ac_ext <<_ACEOF
16367 /* end confdefs.h. */
16369 #define _XOPEN_SOURCE 1
16370 #include <stddef.h>
16371 #include <stdlib.h>
16372 #ifdef HAVE_WCTYPE_H
16373 #include <wctype.h>
16375 #ifdef HAVE_WCHAR_H
16381 mbrtowc(0, 0, 0, 0); wctomb(0, 0); wcwidth(0);
16382 iswprint(0); iswspace(0); towlower(0); towupper(0); iswalnum(0)
16387 rm -f conftest.$ac_objext conftest$ac_exeext
16388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16389 (eval $ac_link) 2>&5
16391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392 (exit $ac_status); } &&
16393 { ac_try='test -s conftest$ac_exeext'
16394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16395 (eval $ac_try) 2>&5
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); }; }; then
16399 mutt_cv_wc_funcs=yes
16401 echo "$as_me: failed program was:" >&5
16402 sed 's/^/| /' conftest.$ac_ext >&5
16405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16407 echo "$as_me:$LINENO: result: $mutt_cv_wc_funcs" >&5
16408 echo "${ECHO_T}$mutt_cv_wc_funcs" >&6
16409 wc_funcs=$mutt_cv_wc_funcs
16412 if test $wc_funcs = yes; then
16414 cat >>confdefs.h <<\_ACEOF
16415 #define HAVE_WC_FUNCS 1
16420 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
16421 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
16422 if test "${mutt_cv_langinfo_codeset+set}" = set; then
16423 echo $ECHO_N "(cached) $ECHO_C" >&6
16425 cat >conftest.$ac_ext <<_ACEOF
16426 #line $LINENO "configure"
16429 cat confdefs.h >>conftest.$ac_ext
16430 cat >>conftest.$ac_ext <<_ACEOF
16431 /* end confdefs.h. */
16432 #include <langinfo.h>
16436 char* cs = nl_langinfo(CODESET);
16441 rm -f conftest.$ac_objext conftest$ac_exeext
16442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16443 (eval $ac_link) 2>&5
16445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446 (exit $ac_status); } &&
16447 { ac_try='test -s conftest$ac_exeext'
16448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16449 (eval $ac_try) 2>&5
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); }; }; then
16453 mutt_cv_langinfo_codeset=yes
16455 echo "$as_me: failed program was:" >&5
16456 sed 's/^/| /' conftest.$ac_ext >&5
16458 mutt_cv_langinfo_codeset=no
16460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16462 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_codeset" >&5
16463 echo "${ECHO_T}$mutt_cv_langinfo_codeset" >&6
16464 if test $mutt_cv_langinfo_codeset = yes; then
16466 cat >>confdefs.h <<\_ACEOF
16467 #define HAVE_LANGINFO_CODESET 1
16472 echo "$as_me:$LINENO: checking for nl_langinfo and YESEXPR" >&5
16473 echo $ECHO_N "checking for nl_langinfo and YESEXPR... $ECHO_C" >&6
16474 if test "${mutt_cv_langinfo_yesexpr+set}" = set; then
16475 echo $ECHO_N "(cached) $ECHO_C" >&6
16477 cat >conftest.$ac_ext <<_ACEOF
16478 #line $LINENO "configure"
16481 cat confdefs.h >>conftest.$ac_ext
16482 cat >>conftest.$ac_ext <<_ACEOF
16483 /* end confdefs.h. */
16484 #include <langinfo.h>
16488 char* cs = nl_langinfo(YESEXPR);
16493 rm -f conftest.$ac_objext conftest$ac_exeext
16494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16495 (eval $ac_link) 2>&5
16497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498 (exit $ac_status); } &&
16499 { ac_try='test -s conftest$ac_exeext'
16500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16501 (eval $ac_try) 2>&5
16503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504 (exit $ac_status); }; }; then
16505 mutt_cv_langinfo_yesexpr=yes
16507 echo "$as_me: failed program was:" >&5
16508 sed 's/^/| /' conftest.$ac_ext >&5
16510 mutt_cv_langinfo_yesexpr=no
16512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16514 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_yesexpr" >&5
16515 echo "${ECHO_T}$mutt_cv_langinfo_yesexpr" >&6
16516 if test $mutt_cv_langinfo_yesexpr = yes; then
16518 cat >>confdefs.h <<\_ACEOF
16519 #define HAVE_LANGINFO_YESEXPR 1
16526 # Check whether --with-libesmtp or --without-libesmtp was given.
16527 if test "${with_libesmtp+set}" = set; then
16528 withval="$with_libesmtp"
16529 if test "$with_libesmtp" != "no"
16531 mutt_libesmtp_check_path="$PATH"
16533 if test "$with_libesmtp" != "yes"
16535 mutt_libesmtp_check_path="$tmp_path:$withval/bin"
16538 # Extract the first word of "libesmtp-config", so it can be a program name with args.
16539 set dummy libesmtp-config; ac_word=$2
16540 echo "$as_me:$LINENO: checking for $ac_word" >&5
16541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16542 if test "${ac_cv_path_mutt_libesmtp_config_path+set}" = set; then
16543 echo $ECHO_N "(cached) $ECHO_C" >&6
16545 case $mutt_libesmtp_config_path in
16547 ac_cv_path_mutt_libesmtp_config_path="$mutt_libesmtp_config_path" # Let the user override the test with a path.
16550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16551 for as_dir in $mutt_libesmtp_check_path
16554 test -z "$as_dir" && as_dir=.
16555 for ac_exec_ext in '' $ac_executable_extensions; do
16556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16557 ac_cv_path_mutt_libesmtp_config_path="$as_dir/$ac_word$ac_exec_ext"
16558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16564 test -z "$ac_cv_path_mutt_libesmtp_config_path" && ac_cv_path_mutt_libesmtp_config_path="no"
16568 mutt_libesmtp_config_path=$ac_cv_path_mutt_libesmtp_config_path
16570 if test -n "$mutt_libesmtp_config_path"; then
16571 echo "$as_me:$LINENO: result: $mutt_libesmtp_config_path" >&5
16572 echo "${ECHO_T}$mutt_libesmtp_config_path" >&6
16574 echo "$as_me:$LINENO: result: no" >&5
16575 echo "${ECHO_T}no" >&6
16579 if test "$mutt_libesmtp_config_path" = "no"
16581 { { echo "$as_me:$LINENO: error: libesmtp-config binary not found." >&5
16582 echo "$as_me: error: libesmtp-config binary not found." >&2;}
16583 { (exit 1); exit 1; }; }
16586 mutt_libesmtp_cflags=`$mutt_libesmtp_config_path --cflags`
16587 mutt_libesmtp_libs=`$mutt_libesmtp_config_path --libs`
16589 temp_CFLAGS="$CFLAGS"
16590 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
16591 if test "${ac_cv_header_libesmtp_h+set}" = set; then
16592 echo "$as_me:$LINENO: checking for libesmtp.h" >&5
16593 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
16594 if test "${ac_cv_header_libesmtp_h+set}" = set; then
16595 echo $ECHO_N "(cached) $ECHO_C" >&6
16597 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
16598 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
16600 # Is the header compilable?
16601 echo "$as_me:$LINENO: checking libesmtp.h usability" >&5
16602 echo $ECHO_N "checking libesmtp.h usability... $ECHO_C" >&6
16603 cat >conftest.$ac_ext <<_ACEOF
16604 #line $LINENO "configure"
16607 cat confdefs.h >>conftest.$ac_ext
16608 cat >>conftest.$ac_ext <<_ACEOF
16609 /* end confdefs.h. */
16610 $ac_includes_default
16611 #include <libesmtp.h>
16613 rm -f conftest.$ac_objext
16614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16615 (eval $ac_compile) 2>&5
16617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618 (exit $ac_status); } &&
16619 { ac_try='test -s conftest.$ac_objext'
16620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16621 (eval $ac_try) 2>&5
16623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624 (exit $ac_status); }; }; then
16625 ac_header_compiler=yes
16627 echo "$as_me: failed program was:" >&5
16628 sed 's/^/| /' conftest.$ac_ext >&5
16630 ac_header_compiler=no
16632 rm -f conftest.$ac_objext conftest.$ac_ext
16633 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16634 echo "${ECHO_T}$ac_header_compiler" >&6
16636 # Is the header present?
16637 echo "$as_me:$LINENO: checking libesmtp.h presence" >&5
16638 echo $ECHO_N "checking libesmtp.h presence... $ECHO_C" >&6
16639 cat >conftest.$ac_ext <<_ACEOF
16640 #line $LINENO "configure"
16643 cat confdefs.h >>conftest.$ac_ext
16644 cat >>conftest.$ac_ext <<_ACEOF
16645 /* end confdefs.h. */
16646 #include <libesmtp.h>
16648 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16649 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
16656 if test -s conftest.err; then
16657 ac_cpp_err=$ac_c_preproc_warn_flag
16664 if test -z "$ac_cpp_err"; then
16665 ac_header_preproc=yes
16667 echo "$as_me: failed program was:" >&5
16668 sed 's/^/| /' conftest.$ac_ext >&5
16670 ac_header_preproc=no
16672 rm -f conftest.err conftest.$ac_ext
16673 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16674 echo "${ECHO_T}$ac_header_preproc" >&6
16676 # So? What about this header?
16677 case $ac_header_compiler:$ac_header_preproc in
16679 { echo "$as_me:$LINENO: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&5
16680 echo "$as_me: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16681 { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&5
16682 echo "$as_me: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&2;}
16685 ## ------------------------------------ ##
16686 ## Report this to bug-autoconf@gnu.org. ##
16687 ## ------------------------------------ ##
16690 sed "s/^/$as_me: WARNING: /" >&2
16693 { echo "$as_me:$LINENO: WARNING: libesmtp.h: present but cannot be compiled" >&5
16694 echo "$as_me: WARNING: libesmtp.h: present but cannot be compiled" >&2;}
16695 { echo "$as_me:$LINENO: WARNING: libesmtp.h: check for missing prerequisite headers?" >&5
16696 echo "$as_me: WARNING: libesmtp.h: check for missing prerequisite headers?" >&2;}
16697 { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&5
16698 echo "$as_me: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&2;}
16701 ## ------------------------------------ ##
16702 ## Report this to bug-autoconf@gnu.org. ##
16703 ## ------------------------------------ ##
16706 sed "s/^/$as_me: WARNING: /" >&2
16709 echo "$as_me:$LINENO: checking for libesmtp.h" >&5
16710 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
16711 if test "${ac_cv_header_libesmtp_h+set}" = set; then
16712 echo $ECHO_N "(cached) $ECHO_C" >&6
16714 ac_cv_header_libesmtp_h=$ac_header_preproc
16716 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
16717 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
16720 if test $ac_cv_header_libesmtp_h = yes; then
16723 { { echo "$as_me:$LINENO: error: Could not find libesmtp.h" >&5
16724 echo "$as_me: error: Could not find libesmtp.h" >&2;}
16725 { (exit 1); exit 1; }; }
16729 CFLAGS="$temp_CFLAGS"
16731 temp_CFLAGS="$CFLAGS"
16733 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
16734 LIBS="$LIBS $mutt_libesmtp_libs"
16736 echo "$as_me:$LINENO: checking for smtp_create_session in -lesmtp" >&5
16737 echo $ECHO_N "checking for smtp_create_session in -lesmtp... $ECHO_C" >&6
16738 if test "${ac_cv_lib_esmtp_smtp_create_session+set}" = set; then
16739 echo $ECHO_N "(cached) $ECHO_C" >&6
16741 ac_check_lib_save_LIBS=$LIBS
16742 LIBS="-lesmtp $LIBS"
16743 cat >conftest.$ac_ext <<_ACEOF
16744 #line $LINENO "configure"
16747 cat confdefs.h >>conftest.$ac_ext
16748 cat >>conftest.$ac_ext <<_ACEOF
16749 /* end confdefs.h. */
16751 /* Override any gcc2 internal prototype to avoid an error. */
16755 /* We use char because int might match the return type of a gcc2
16756 builtin and then its argument prototype would still apply. */
16757 char smtp_create_session ();
16761 smtp_create_session ();
16766 rm -f conftest.$ac_objext conftest$ac_exeext
16767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16768 (eval $ac_link) 2>&5
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); } &&
16772 { ac_try='test -s conftest$ac_exeext'
16773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16774 (eval $ac_try) 2>&5
16776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777 (exit $ac_status); }; }; then
16778 ac_cv_lib_esmtp_smtp_create_session=yes
16780 echo "$as_me: failed program was:" >&5
16781 sed 's/^/| /' conftest.$ac_ext >&5
16783 ac_cv_lib_esmtp_smtp_create_session=no
16785 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16786 LIBS=$ac_check_lib_save_LIBS
16788 echo "$as_me:$LINENO: result: $ac_cv_lib_esmtp_smtp_create_session" >&5
16789 echo "${ECHO_T}$ac_cv_lib_esmtp_smtp_create_session" >&6
16790 if test $ac_cv_lib_esmtp_smtp_create_session = yes; then
16791 cat >>confdefs.h <<_ACEOF
16792 #define HAVE_LIBESMTP 1
16795 LIBS="-lesmtp $LIBS"
16798 { { echo "$as_me:$LINENO: error: Could not find libesmtp" >&5
16799 echo "$as_me: error: Could not find libesmtp" >&2;}
16800 { (exit 1); exit 1; }; }
16803 CFLAGS="$temp_CFLAGS"
16812 if test x$use_libesmtp = xyes; then
16813 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
16814 MUTTLIBS="$MUTTLIBS $mutt_libesmtp_libs"
16815 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_libesmtp.o"
16818 cat >>confdefs.h <<\_ACEOF
16819 #define USE_LIBESMTP 1
16824 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"
16825 cat >confcache <<\_ACEOF
16826 # This file is a shell script that caches the results of configure
16827 # tests run on this system so they can be shared between configure
16828 # scripts and configure runs, see configure's option --config-cache.
16829 # It is not useful on other systems. If it contains results you don't
16830 # want to keep, you may remove or edit it.
16832 # config.status only pays attention to the cache file if you give it
16833 # the --recheck option to rerun configure.
16835 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16836 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16837 # following values.
16841 # The following way of writing the cache mishandles newlines in values,
16842 # but we know of no workaround that is simple, portable, and efficient.
16843 # So, don't put newlines in cache variables' values.
16844 # Ultrix sh set writes to stderr and can't be redirected directly,
16845 # and sets the high bit in the cache file unless we assign to the vars.
16848 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16850 # `set' does not quote correctly, so add quotes (double-quote
16851 # substitution turns \\\\ into \\, and sed turns \\ into \).
16854 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16857 # `set' quotes correctly as required by POSIX, so do not add quotes.
16859 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16866 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16868 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16870 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16871 if test -w $cache_file; then
16872 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16873 cat confcache >$cache_file
16875 echo "not updating unwritable cache $cache_file"
16880 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16881 # Let make expand exec_prefix.
16882 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16884 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16885 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16886 # trailing colons and then remove the whole line if VPATH becomes empty
16887 # (actually we leave an empty line to preserve line numbers).
16888 if test "x$srcdir" = x.; then
16889 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16890 s/:*\$(srcdir):*/:/;
16891 s/:*\${srcdir}:*/:/;
16893 s/^\([^=]*=[ ]*\):*/\1/;
16899 DEFS=-DHAVE_CONFIG_H
16903 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16904 # 1. Remove the extension, and $U if already installed.
16905 ac_i=`echo "$ac_i" |
16906 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16908 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16909 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16911 LIBOBJS=$ac_libobjs
16913 LTLIBOBJS=$ac_ltlibobjs
16916 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16917 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16918 Usually this means the macro was only invoked conditionally." >&5
16919 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16920 Usually this means the macro was only invoked conditionally." >&2;}
16921 { (exit 1); exit 1; }; }
16923 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16924 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16925 Usually this means the macro was only invoked conditionally." >&5
16926 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16927 Usually this means the macro was only invoked conditionally." >&2;}
16928 { (exit 1); exit 1; }; }
16930 if test -z "${BUILD_IMAP_TRUE}" && test -z "${BUILD_IMAP_FALSE}"; then
16931 { { echo "$as_me:$LINENO: error: conditional \"BUILD_IMAP\" was never defined.
16932 Usually this means the macro was only invoked conditionally." >&5
16933 echo "$as_me: error: conditional \"BUILD_IMAP\" was never defined.
16934 Usually this means the macro was only invoked conditionally." >&2;}
16935 { (exit 1); exit 1; }; }
16937 if test -z "${USE_GSS_TRUE}" && test -z "${USE_GSS_FALSE}"; then
16938 { { echo "$as_me:$LINENO: error: conditional \"USE_GSS\" was never defined.
16939 Usually this means the macro was only invoked conditionally." >&5
16940 echo "$as_me: error: conditional \"USE_GSS\" was never defined.
16941 Usually this means the macro was only invoked conditionally." >&2;}
16942 { (exit 1); exit 1; }; }
16944 if test -z "${USE_SSL_TRUE}" && test -z "${USE_SSL_FALSE}"; then
16945 { { echo "$as_me:$LINENO: error: conditional \"USE_SSL\" was never defined.
16946 Usually this means the macro was only invoked conditionally." >&5
16947 echo "$as_me: error: conditional \"USE_SSL\" was never defined.
16948 Usually this means the macro was only invoked conditionally." >&2;}
16949 { (exit 1); exit 1; }; }
16951 if test -z "${USE_SASL_TRUE}" && test -z "${USE_SASL_FALSE}"; then
16952 { { echo "$as_me:$LINENO: error: conditional \"USE_SASL\" was never defined.
16953 Usually this means the macro was only invoked conditionally." >&5
16954 echo "$as_me: error: conditional \"USE_SASL\" was never defined.
16955 Usually this means the macro was only invoked conditionally." >&2;}
16956 { (exit 1); exit 1; }; }
16958 if test -z "${USE_SASL_TRUE}" && test -z "${USE_SASL_FALSE}"; then
16959 { { echo "$as_me:$LINENO: error: conditional \"USE_SASL\" was never defined.
16960 Usually this means the macro was only invoked conditionally." >&5
16961 echo "$as_me: error: conditional \"USE_SASL\" was never defined.
16962 Usually this means the macro was only invoked conditionally." >&2;}
16963 { (exit 1); exit 1; }; }
16966 : ${CONFIG_STATUS=./config.status}
16967 ac_clean_files_save=$ac_clean_files
16968 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16969 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16970 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16971 cat >$CONFIG_STATUS <<_ACEOF
16973 # Generated by $as_me.
16974 # Run this file to recreate the current configuration.
16975 # Compiler output produced by configure, useful for debugging
16976 # configure, is in config.log if it exists.
16979 ac_cs_recheck=false
16981 SHELL=\${CONFIG_SHELL-$SHELL}
16984 cat >>$CONFIG_STATUS <<\_ACEOF
16985 ## --------------------- ##
16986 ## M4sh Initialization. ##
16987 ## --------------------- ##
16989 # Be Bourne compatible
16990 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16993 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16994 # is contrary to our usage. Disable this feature.
16995 alias -g '${1+"$@"}'='"$@"'
16996 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17000 # Support unset when possible.
17001 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17008 # Work around bugs in pre-3.0 UWIN ksh.
17009 $as_unset ENV MAIL MAILPATH
17016 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17017 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17018 LC_TELEPHONE LC_TIME
17020 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
17021 eval $as_var=C; export $as_var
17027 # Required to use basename.
17028 if expr a : '\(a\)' >/dev/null 2>&1; then
17034 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17035 as_basename=basename
17041 # Name of the executable.
17042 as_me=`$as_basename "$0" ||
17043 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17044 X"$0" : 'X\(//\)$' \| \
17045 X"$0" : 'X\(/\)$' \| \
17046 . : '\(.\)' 2>/dev/null ||
17048 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17049 /^X\/\(\/\/\)$/{ s//\1/; q; }
17050 /^X\/\(\/\).*/{ s//\1/; q; }
17054 # PATH needs CR, and LINENO needs CR and PATH.
17055 # Avoid depending upon Character Ranges.
17056 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17057 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17058 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17059 as_cr_digits='0123456789'
17060 as_cr_alnum=$as_cr_Letters$as_cr_digits
17062 # The user is always right.
17063 if test "${PATH_SEPARATOR+set}" != set; then
17064 echo "#! /bin/sh" >conf$$.sh
17065 echo "exit 0" >>conf$$.sh
17067 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17076 as_lineno_1=$LINENO
17077 as_lineno_2=$LINENO
17078 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17079 test "x$as_lineno_1" != "x$as_lineno_2" &&
17080 test "x$as_lineno_3" = "x$as_lineno_2" || {
17081 # Find who we are. Look in the path if we contain no path at all
17084 *[\\/]* ) as_myself=$0 ;;
17085 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17086 for as_dir in $PATH
17089 test -z "$as_dir" && as_dir=.
17090 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17095 # We did not find ourselves, most probably we were run as `sh COMMAND'
17096 # in which case we are not to be found in the path.
17097 if test "x$as_myself" = x; then
17100 if test ! -f "$as_myself"; then
17101 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17102 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17103 { (exit 1); exit 1; }; }
17105 case $CONFIG_SHELL in
17107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17108 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17111 test -z "$as_dir" && as_dir=.
17112 for as_base in sh bash ksh sh5; do
17115 if ("$as_dir/$as_base" -c '
17116 as_lineno_1=$LINENO
17117 as_lineno_2=$LINENO
17118 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17119 test "x$as_lineno_1" != "x$as_lineno_2" &&
17120 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17121 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17122 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17123 CONFIG_SHELL=$as_dir/$as_base
17124 export CONFIG_SHELL
17125 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17133 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17134 # uniformly replaced by the line number. The first 'sed' inserts a
17135 # line-number line before each line; the second 'sed' does the real
17136 # work. The second script uses 'N' to pair each line-number line
17137 # with the numbered line, and appends trailing '-' during
17138 # substitution so that $LINENO is not a special case at line end.
17139 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17140 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17141 sed '=' <$as_myself |
17146 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17149 s,^['$as_cr_digits']*\n,,
17150 ' >$as_me.lineno &&
17151 chmod +x $as_me.lineno ||
17152 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17153 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17154 { (exit 1); exit 1; }; }
17156 # Don't try to exec as it changes $[0], causing all sort of problems
17157 # (the dirname of $[0] is not the place where we might find the
17158 # original and so on. Autoconf is especially sensible to this).
17160 # Exit status is that of the last command.
17165 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17166 *c*,-n*) ECHO_N= ECHO_C='
17168 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17169 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17172 if expr a : '\(a\)' >/dev/null 2>&1; then
17178 rm -f conf$$ conf$$.exe conf$$.file
17180 if ln -s conf$$.file conf$$ 2>/dev/null; then
17181 # We could just check for DJGPP; but this test a) works b) is more generic
17182 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17183 if test -f conf$$.exe; then
17184 # Don't use ln at all; we don't have any links
17189 elif ln conf$$.file conf$$ 2>/dev/null; then
17194 rm -f conf$$ conf$$.exe conf$$.file
17196 if mkdir -p . 2>/dev/null; then
17202 as_executable_p="test -f"
17204 # Sed expression to map a string onto a valid CPP name.
17205 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17207 # Sed expression to map a string onto a valid variable name.
17208 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17212 # We need space, tab and new line, in precisely that order.
17222 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17223 # report actual input values of CONFIG_FILES etc. instead of their
17224 # values after options handling. Logging --version etc. is OK.
17228 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17229 ## Running $as_me. ##
17234 This file was extended by $as_me, which was
17235 generated by GNU Autoconf 2.57. Invocation command line was
17237 CONFIG_FILES = $CONFIG_FILES
17238 CONFIG_HEADERS = $CONFIG_HEADERS
17239 CONFIG_LINKS = $CONFIG_LINKS
17240 CONFIG_COMMANDS = $CONFIG_COMMANDS
17244 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17248 # Files that config.status was made for.
17249 if test -n "$ac_config_files"; then
17250 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17253 if test -n "$ac_config_headers"; then
17254 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17257 if test -n "$ac_config_links"; then
17258 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17261 if test -n "$ac_config_commands"; then
17262 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17265 cat >>$CONFIG_STATUS <<\_ACEOF
17268 \`$as_me' instantiates files from templates according to the
17269 current configuration.
17271 Usage: $0 [OPTIONS] [FILE]...
17273 -h, --help print this help, then exit
17274 -V, --version print version number, then exit
17275 -q, --quiet do not print progress messages
17276 -d, --debug don't remove temporary files
17277 --recheck update $as_me by reconfiguring in the same conditions
17278 --file=FILE[:TEMPLATE]
17279 instantiate the configuration file FILE
17280 --header=FILE[:TEMPLATE]
17281 instantiate the configuration header FILE
17283 Configuration files:
17286 Configuration headers:
17289 Configuration commands:
17292 Report bugs to <bug-autoconf@gnu.org>."
17295 cat >>$CONFIG_STATUS <<_ACEOF
17298 configured by $0, generated by GNU Autoconf 2.57,
17299 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17301 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17302 Free Software Foundation, Inc.
17303 This config.status script is free software; the Free Software Foundation
17304 gives unlimited permission to copy, distribute and modify it."
17309 cat >>$CONFIG_STATUS <<\_ACEOF
17310 # If no file are specified by the user, then we need to provide default
17311 # value. By we need to know if files were specified by the user.
17317 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17318 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17326 *) # This is not an option, so the user has probably given explicit
17329 ac_need_defaults=false;;
17333 # Handling of the options.
17335 cat >>$CONFIG_STATUS <<\_ACEOF
17336 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17338 --version | --vers* | -V )
17339 echo "$ac_cs_version"; exit 0 ;;
17341 # Conflict between --help and --header
17342 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17343 Try \`$0 --help' for more information." >&5
17344 echo "$as_me: error: ambiguous option: $1
17345 Try \`$0 --help' for more information." >&2;}
17346 { (exit 1); exit 1; }; };;
17347 --help | --hel | -h )
17348 echo "$ac_cs_usage"; exit 0 ;;
17349 --debug | --d* | -d )
17351 --file | --fil | --fi | --f )
17353 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17354 ac_need_defaults=false;;
17355 --header | --heade | --head | --hea )
17357 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17358 ac_need_defaults=false;;
17359 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17360 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17363 # This is an error.
17364 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17365 Try \`$0 --help' for more information." >&5
17366 echo "$as_me: error: unrecognized option: $1
17367 Try \`$0 --help' for more information." >&2;}
17368 { (exit 1); exit 1; }; } ;;
17370 *) ac_config_targets="$ac_config_targets $1" ;;
17376 ac_configure_extra_args=
17378 if $ac_cs_silent; then
17380 ac_configure_extra_args="$ac_configure_extra_args --silent"
17384 cat >>$CONFIG_STATUS <<_ACEOF
17385 if \$ac_cs_recheck; then
17386 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17387 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17392 cat >>$CONFIG_STATUS <<_ACEOF
17394 # INIT-COMMANDS section.
17397 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17404 cat >>$CONFIG_STATUS <<\_ACEOF
17405 for ac_config_target in $ac_config_targets
17407 case "$ac_config_target" in
17408 # Handling of arguments.
17409 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17410 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
17411 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
17412 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17413 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17414 "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
17415 "muttbug.sh" ) CONFIG_FILES="$CONFIG_FILES muttbug.sh" ;;
17416 "imap/Makefile" ) CONFIG_FILES="$CONFIG_FILES imap/Makefile" ;;
17417 "Muttngrc.head" ) CONFIG_FILES="$CONFIG_FILES Muttngrc.head" ;;
17418 "doc/instdoc.sh" ) CONFIG_FILES="$CONFIG_FILES doc/instdoc.sh" ;;
17419 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17420 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17421 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17422 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17423 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17424 { (exit 1); exit 1; }; };;
17428 # If the user did not use the arguments to specify the items to instantiate,
17429 # then the envvar interface is used. Set only those that are not.
17430 # We use the long form for the default assignment because of an extremely
17431 # bizarre bug on SunOS 4.1.3.
17432 if $ac_need_defaults; then
17433 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17434 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17435 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17438 # Have a temporary directory for convenience. Make it in the build tree
17439 # simply because there is no reason to put it here, and in addition,
17440 # creating and moving files from /tmp can sometimes cause problems.
17441 # Create a temporary directory, and hook for its removal unless debugging.
17444 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17445 trap '{ (exit 1); exit 1; }' 1 2 13 15
17448 # Create a (secure) tmp directory for tmp files.
17451 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17452 test -n "$tmp" && test -d "$tmp"
17455 tmp=./confstat$$-$RANDOM
17456 (umask 077 && mkdir $tmp)
17459 echo "$me: cannot create a temporary directory in ." >&2
17460 { (exit 1); exit 1; }
17465 cat >>$CONFIG_STATUS <<_ACEOF
17468 # CONFIG_FILES section.
17471 # No need to generate the scripts if there are no CONFIG_FILES.
17472 # This happens for instance when ./config.status config.h
17473 if test -n "\$CONFIG_FILES"; then
17474 # Protect against being on the right side of a sed subst in config.status.
17475 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17476 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17477 s,@SHELL@,$SHELL,;t t
17478 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17479 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17480 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17481 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17482 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17483 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17484 s,@exec_prefix@,$exec_prefix,;t t
17485 s,@prefix@,$prefix,;t t
17486 s,@program_transform_name@,$program_transform_name,;t t
17487 s,@bindir@,$bindir,;t t
17488 s,@sbindir@,$sbindir,;t t
17489 s,@libexecdir@,$libexecdir,;t t
17490 s,@datadir@,$datadir,;t t
17491 s,@sysconfdir@,$sysconfdir,;t t
17492 s,@sharedstatedir@,$sharedstatedir,;t t
17493 s,@localstatedir@,$localstatedir,;t t
17494 s,@libdir@,$libdir,;t t
17495 s,@includedir@,$includedir,;t t
17496 s,@oldincludedir@,$oldincludedir,;t t
17497 s,@infodir@,$infodir,;t t
17498 s,@mandir@,$mandir,;t t
17499 s,@build_alias@,$build_alias,;t t
17500 s,@host_alias@,$host_alias,;t t
17501 s,@target_alias@,$target_alias,;t t
17502 s,@DEFS@,$DEFS,;t t
17503 s,@ECHO_C@,$ECHO_C,;t t
17504 s,@ECHO_N@,$ECHO_N,;t t
17505 s,@ECHO_T@,$ECHO_T,;t t
17506 s,@LIBS@,$LIBS,;t t
17507 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17508 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17509 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17510 s,@CYGPATH_W@,$CYGPATH_W,;t t
17511 s,@PACKAGE@,$PACKAGE,;t t
17512 s,@VERSION@,$VERSION,;t t
17513 s,@ACLOCAL@,$ACLOCAL,;t t
17514 s,@AUTOCONF@,$AUTOCONF,;t t
17515 s,@AUTOMAKE@,$AUTOMAKE,;t t
17516 s,@AUTOHEADER@,$AUTOHEADER,;t t
17517 s,@MAKEINFO@,$MAKEINFO,;t t
17518 s,@AMTAR@,$AMTAR,;t t
17519 s,@install_sh@,$install_sh,;t t
17520 s,@STRIP@,$STRIP,;t t
17521 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17522 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17524 s,@SET_MAKE@,$SET_MAKE,;t t
17525 s,@am__leading_dot@,$am__leading_dot,;t t
17526 s,@build@,$build,;t t
17527 s,@build_cpu@,$build_cpu,;t t
17528 s,@build_vendor@,$build_vendor,;t t
17529 s,@build_os@,$build_os,;t t
17530 s,@host@,$host,;t t
17531 s,@host_cpu@,$host_cpu,;t t
17532 s,@host_vendor@,$host_vendor,;t t
17533 s,@host_os@,$host_os,;t t
17535 s,@CFLAGS@,$CFLAGS,;t t
17536 s,@LDFLAGS@,$LDFLAGS,;t t
17537 s,@CPPFLAGS@,$CPPFLAGS,;t t
17538 s,@ac_ct_CC@,$ac_ct_CC,;t t
17539 s,@EXEEXT@,$EXEEXT,;t t
17540 s,@OBJEXT@,$OBJEXT,;t t
17541 s,@DEPDIR@,$DEPDIR,;t t
17542 s,@am__include@,$am__include,;t t
17543 s,@am__quote@,$am__quote,;t t
17544 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17545 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17546 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17547 s,@CCDEPMODE@,$CCDEPMODE,;t t
17548 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17549 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17551 s,@EGREP@,$EGREP,;t t
17553 s,@ANSI2KNR@,$ANSI2KNR,;t t
17554 s,@RANLIB@,$RANLIB,;t t
17555 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17557 s,@ac_ct_AR@,$ac_ct_AR,;t t
17561 s,@DEBUGGER@,$DEBUGGER,;t t
17562 s,@SENDMAIL@,$SENDMAIL,;t t
17563 s,@GPGME_CONFIG@,$GPGME_CONFIG,;t t
17564 s,@LIBGPGME_CFLAGS@,$LIBGPGME_CFLAGS,;t t
17565 s,@LIBGPGME_LIBS@,$LIBGPGME_LIBS,;t t
17567 s,@PGPAUX_TARGET@,$PGPAUX_TARGET,;t t
17568 s,@SMIMEAUX_TARGET@,$SMIMEAUX_TARGET,;t t
17569 s,@SUBVERSION@,$SUBVERSION,;t t
17570 s,@ISPELL@,$ISPELL,;t t
17571 s,@LIBOBJS@,$LIBOBJS,;t t
17572 s,@DOTLOCK_TARGET@,$DOTLOCK_TARGET,;t t
17573 s,@docdir@,$docdir,;t t
17574 s,@DOTLOCK_GROUP@,$DOTLOCK_GROUP,;t t
17575 s,@DOTLOCK_PERMISSION@,$DOTLOCK_PERMISSION,;t t
17576 s,@BUILD_IMAP_TRUE@,$BUILD_IMAP_TRUE,;t t
17577 s,@BUILD_IMAP_FALSE@,$BUILD_IMAP_FALSE,;t t
17578 s,@KRB5CFGPATH@,$KRB5CFGPATH,;t t
17579 s,@USE_GSS_TRUE@,$USE_GSS_TRUE,;t t
17580 s,@USE_GSS_FALSE@,$USE_GSS_FALSE,;t t
17581 s,@USE_SSL_TRUE@,$USE_SSL_TRUE,;t t
17582 s,@USE_SSL_FALSE@,$USE_SSL_FALSE,;t t
17583 s,@LIBGNUTLS_CONFIG@,$LIBGNUTLS_CONFIG,;t t
17584 s,@LIBGNUTLS_CFLAGS@,$LIBGNUTLS_CFLAGS,;t t
17585 s,@LIBGNUTLS_LIBS@,$LIBGNUTLS_LIBS,;t t
17586 s,@USE_SASL_TRUE@,$USE_SASL_TRUE,;t t
17587 s,@USE_SASL_FALSE@,$USE_SASL_FALSE,;t t
17588 s,@MUTTLIBS@,$MUTTLIBS,;t t
17589 s,@MUTT_LIB_OBJECTS@,$MUTT_LIB_OBJECTS,;t t
17590 s,@LIBIMAP@,$LIBIMAP,;t t
17591 s,@LIBIMAPDEPS@,$LIBIMAPDEPS,;t t
17592 s,@ALLOCA@,$ALLOCA,;t t
17593 s,@GLIBC21@,$GLIBC21,;t t
17594 s,@LIBICONV@,$LIBICONV,;t t
17595 s,@USE_NLS@,$USE_NLS,;t t
17596 s,@MSGFMT@,$MSGFMT,;t t
17597 s,@GMSGFMT@,$GMSGFMT,;t t
17598 s,@XGETTEXT@,$XGETTEXT,;t t
17599 s,@INTLBISON@,$INTLBISON,;t t
17600 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
17601 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
17602 s,@CATALOGS@,$CATALOGS,;t t
17603 s,@CATOBJEXT@,$CATOBJEXT,;t t
17604 s,@GMOFILES@,$GMOFILES,;t t
17605 s,@INTLLIBS@,$INTLLIBS,;t t
17606 s,@INTLOBJS@,$INTLOBJS,;t t
17607 s,@POFILES@,$POFILES,;t t
17608 s,@POSUB@,$POSUB,;t t
17609 s,@DATADIRNAME@,$DATADIRNAME,;t t
17610 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
17611 s,@GENCAT@,$GENCAT,;t t
17612 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
17613 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
17614 s,@mutt_libesmtp_config_path@,$mutt_libesmtp_config_path,;t t
17615 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17620 cat >>$CONFIG_STATUS <<\_ACEOF
17621 # Split the substitutions into bite-sized pieces for seds with
17622 # small command number limits, like on Digital OSF/1 and HP-UX.
17623 ac_max_sed_lines=48
17624 ac_sed_frag=1 # Number of current file.
17625 ac_beg=1 # First line for current file.
17626 ac_end=$ac_max_sed_lines # Line after last line for current file.
17629 while $ac_more_lines; do
17630 if test $ac_beg -gt 1; then
17631 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17633 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17635 if test ! -s $tmp/subs.frag; then
17636 ac_more_lines=false
17638 # The purpose of the label and of the branching condition is to
17639 # speed up the sed processing (if there are no `@' at all, there
17640 # is no need to browse any of the substitutions).
17641 # These are the two extra sed commands mentioned above.
17643 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17644 if test -z "$ac_sed_cmds"; then
17645 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17647 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17649 ac_sed_frag=`expr $ac_sed_frag + 1`
17651 ac_end=`expr $ac_end + $ac_max_sed_lines`
17654 if test -z "$ac_sed_cmds"; then
17657 fi # test -n "$CONFIG_FILES"
17660 cat >>$CONFIG_STATUS <<\_ACEOF
17661 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17662 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17664 - | *:- | *:-:* ) # input from stdin
17666 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17667 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17668 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17669 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17670 * ) ac_file_in=$ac_file.in ;;
17673 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17674 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17675 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17676 X"$ac_file" : 'X\(//\)[^/]' \| \
17677 X"$ac_file" : 'X\(//\)$' \| \
17678 X"$ac_file" : 'X\(/\)' \| \
17679 . : '\(.\)' 2>/dev/null ||
17681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17682 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17683 /^X\(\/\/\)$/{ s//\1/; q; }
17684 /^X\(\/\).*/{ s//\1/; q; }
17686 { if $as_mkdir_p; then
17691 while test ! -d "$as_dir"; do
17692 as_dirs="$as_dir $as_dirs"
17693 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17694 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17695 X"$as_dir" : 'X\(//\)[^/]' \| \
17696 X"$as_dir" : 'X\(//\)$' \| \
17697 X"$as_dir" : 'X\(/\)' \| \
17698 . : '\(.\)' 2>/dev/null ||
17700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17701 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17702 /^X\(\/\/\)$/{ s//\1/; q; }
17703 /^X\(\/\).*/{ s//\1/; q; }
17706 test ! -n "$as_dirs" || mkdir $as_dirs
17707 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17708 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17709 { (exit 1); exit 1; }; }; }
17713 if test "$ac_dir" != .; then
17714 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17715 # A "../" for each directory in $ac_dir_suffix.
17716 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17718 ac_dir_suffix= ac_top_builddir=
17722 .) # No --srcdir option. We are building in place.
17724 if test -z "$ac_top_builddir"; then
17727 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17729 [\\/]* | ?:[\\/]* ) # Absolute path.
17730 ac_srcdir=$srcdir$ac_dir_suffix;
17731 ac_top_srcdir=$srcdir ;;
17732 *) # Relative path.
17733 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17734 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17736 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17738 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17739 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
17740 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17741 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17745 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17746 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17749 if test x"$ac_file" != x-; then
17750 { echo "$as_me:$LINENO: creating $ac_file" >&5
17751 echo "$as_me: creating $ac_file" >&6;}
17754 # Let's still pretend it is `configure' which instantiates (i.e., don't
17755 # use $as_me), people would be surprised to read:
17756 # /* config.h. Generated by config.status. */
17757 if test x"$ac_file" = x-; then
17760 configure_input="$ac_file. "
17762 configure_input=$configure_input"Generated from `echo $ac_file_in |
17763 sed 's,.*/,,'` by configure."
17765 # First look for the input files in the build tree, otherwise in the
17767 ac_file_inputs=`IFS=:
17768 for f in $ac_file_in; do
17770 -) echo $tmp/stdin ;;
17772 # Absolute (can't be DOS-style, as IFS=:)
17773 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17774 echo "$as_me: error: cannot find input file: $f" >&2;}
17775 { (exit 1); exit 1; }; }
17778 if test -f "$f"; then
17781 elif test -f "$srcdir/$f"; then
17786 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17787 echo "$as_me: error: cannot find input file: $f" >&2;}
17788 { (exit 1); exit 1; }; }
17791 done` || { (exit 1); exit 1; }
17793 cat >>$CONFIG_STATUS <<_ACEOF
17797 cat >>$CONFIG_STATUS <<\_ACEOF
17799 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17800 s,@configure_input@,$configure_input,;t t
17801 s,@srcdir@,$ac_srcdir,;t t
17802 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17803 s,@top_srcdir@,$ac_top_srcdir,;t t
17804 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17805 s,@builddir@,$ac_builddir,;t t
17806 s,@abs_builddir@,$ac_abs_builddir,;t t
17807 s,@top_builddir@,$ac_top_builddir,;t t
17808 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17809 s,@INSTALL@,$ac_INSTALL,;t t
17810 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17812 if test x"$ac_file" != x-; then
17813 mv $tmp/out $ac_file
17821 cat >>$CONFIG_STATUS <<\_ACEOF
17824 # CONFIG_HEADER section.
17827 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17828 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17830 # ac_d sets the value in "#define NAME VALUE" lines.
17831 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17832 ac_dB='[ ].*$,\1#\2'
17835 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17836 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17837 ac_uB='$,\1#\2define\3'
17841 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17842 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17844 - | *:- | *:-:* ) # input from stdin
17846 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17847 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17848 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17849 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17850 * ) ac_file_in=$ac_file.in ;;
17853 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17854 echo "$as_me: creating $ac_file" >&6;}
17856 # First look for the input files in the build tree, otherwise in the
17858 ac_file_inputs=`IFS=:
17859 for f in $ac_file_in; do
17861 -) echo $tmp/stdin ;;
17863 # Absolute (can't be DOS-style, as IFS=:)
17864 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17865 echo "$as_me: error: cannot find input file: $f" >&2;}
17866 { (exit 1); exit 1; }; }
17869 if test -f "$f"; then
17872 elif test -f "$srcdir/$f"; then
17877 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17878 echo "$as_me: error: cannot find input file: $f" >&2;}
17879 { (exit 1); exit 1; }; }
17882 done` || { (exit 1); exit 1; }
17883 # Remove the trailing spaces.
17884 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17888 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17889 # `conftest.undefs', that substitutes the proper values into
17890 # config.h.in to produce config.h. The first handles `#define'
17891 # templates, and the second `#undef' templates.
17892 # And first: Protect against being on the right side of a sed subst in
17893 # config.status. Protect against being in an unquoted here document
17894 # in config.status.
17895 rm -f conftest.defines conftest.undefs
17896 # Using a here document instead of a string reduces the quoting nightmare.
17897 # Putting comments in sed scripts is not portable.
17899 # `end' is used to avoid that the second main sed command (meant for
17900 # 0-ary CPP macros) applies to n-ary macro definitions.
17901 # See the Autoconf documentation for `clear'.
17902 cat >confdef2sed.sed <<\_ACEOF
17907 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17909 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17912 # If some macros were called several times there might be several times
17913 # the same #defines, which is useless. Nevertheless, we may not want to
17914 # sort them, since we want the *last* AC-DEFINE to be honored.
17915 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17916 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17917 rm -f confdef2sed.sed
17919 # This sed command replaces #undef with comments. This is necessary, for
17920 # example, in the case of _POSIX_SOURCE, which is predefined and required
17921 # on some systems where configure will not decide to define it.
17922 cat >>conftest.undefs <<\_ACEOF
17923 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17926 # Break up conftest.defines because some shells have a limit on the size
17927 # of here documents, and old seds have small limits too (100 cmds).
17928 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17929 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17930 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17931 echo ' :' >>$CONFIG_STATUS
17932 rm -f conftest.tail
17933 while grep . conftest.defines >/dev/null
17935 # Write a limited-size here document to $tmp/defines.sed.
17936 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17937 # Speed up: don't consider the non `#define' lines.
17938 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17939 # Work around the forget-to-reset-the-flag bug.
17940 echo 't clr' >>$CONFIG_STATUS
17941 echo ': clr' >>$CONFIG_STATUS
17942 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17944 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17946 mv $tmp/out $tmp/in
17948 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17949 rm -f conftest.defines
17950 mv conftest.tail conftest.defines
17952 rm -f conftest.defines
17953 echo ' fi # grep' >>$CONFIG_STATUS
17954 echo >>$CONFIG_STATUS
17956 # Break up conftest.undefs because some shells have a limit on the size
17957 # of here documents, and old seds have small limits too (100 cmds).
17958 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17959 rm -f conftest.tail
17960 while grep . conftest.undefs >/dev/null
17962 # Write a limited-size here document to $tmp/undefs.sed.
17963 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17964 # Speed up: don't consider the non `#undef'
17965 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17966 # Work around the forget-to-reset-the-flag bug.
17967 echo 't clr' >>$CONFIG_STATUS
17968 echo ': clr' >>$CONFIG_STATUS
17969 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17971 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17973 mv $tmp/out $tmp/in
17975 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17976 rm -f conftest.undefs
17977 mv conftest.tail conftest.undefs
17979 rm -f conftest.undefs
17981 cat >>$CONFIG_STATUS <<\_ACEOF
17982 # Let's still pretend it is `configure' which instantiates (i.e., don't
17983 # use $as_me), people would be surprised to read:
17984 # /* config.h. Generated by config.status. */
17985 if test x"$ac_file" = x-; then
17986 echo "/* Generated by configure. */" >$tmp/config.h
17988 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17990 cat $tmp/in >>$tmp/config.h
17992 if test x"$ac_file" != x-; then
17993 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17994 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17995 echo "$as_me: $ac_file is unchanged" >&6;}
17997 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17998 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17999 X"$ac_file" : 'X\(//\)[^/]' \| \
18000 X"$ac_file" : 'X\(//\)$' \| \
18001 X"$ac_file" : 'X\(/\)' \| \
18002 . : '\(.\)' 2>/dev/null ||
18004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18005 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18006 /^X\(\/\/\)$/{ s//\1/; q; }
18007 /^X\(\/\).*/{ s//\1/; q; }
18009 { if $as_mkdir_p; then
18014 while test ! -d "$as_dir"; do
18015 as_dirs="$as_dir $as_dirs"
18016 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18017 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18018 X"$as_dir" : 'X\(//\)[^/]' \| \
18019 X"$as_dir" : 'X\(//\)$' \| \
18020 X"$as_dir" : 'X\(/\)' \| \
18021 . : '\(.\)' 2>/dev/null ||
18023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18024 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18025 /^X\(\/\/\)$/{ s//\1/; q; }
18026 /^X\(\/\).*/{ s//\1/; q; }
18029 test ! -n "$as_dirs" || mkdir $as_dirs
18030 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18031 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18032 { (exit 1); exit 1; }; }; }
18035 mv $tmp/config.h $ac_file
18039 rm -f $tmp/config.h
18041 # Compute $ac_file's index in $config_headers.
18043 for _am_header in $config_headers :; do
18044 case $_am_header in
18045 $ac_file | $ac_file:* )
18048 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18051 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18052 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18053 X$ac_file : 'X\(//\)[^/]' \| \
18054 X$ac_file : 'X\(//\)$' \| \
18055 X$ac_file : 'X\(/\)' \| \
18056 . : '\(.\)' 2>/dev/null ||
18058 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18059 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18060 /^X\(\/\/\)$/{ s//\1/; q; }
18061 /^X\(\/\).*/{ s//\1/; q; }
18062 s/.*/./; q'`/stamp-h$_am_stamp_count
18065 cat >>$CONFIG_STATUS <<\_ACEOF
18068 # CONFIG_COMMANDS section.
18070 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18071 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18072 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18073 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18074 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18075 X"$ac_dest" : 'X\(//\)[^/]' \| \
18076 X"$ac_dest" : 'X\(//\)$' \| \
18077 X"$ac_dest" : 'X\(/\)' \| \
18078 . : '\(.\)' 2>/dev/null ||
18080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18081 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18082 /^X\(\/\/\)$/{ s//\1/; q; }
18083 /^X\(\/\).*/{ s//\1/; q; }
18087 if test "$ac_dir" != .; then
18088 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18089 # A "../" for each directory in $ac_dir_suffix.
18090 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18092 ac_dir_suffix= ac_top_builddir=
18096 .) # No --srcdir option. We are building in place.
18098 if test -z "$ac_top_builddir"; then
18101 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18103 [\\/]* | ?:[\\/]* ) # Absolute path.
18104 ac_srcdir=$srcdir$ac_dir_suffix;
18105 ac_top_srcdir=$srcdir ;;
18106 *) # Relative path.
18107 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18108 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18110 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18112 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18113 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18114 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18115 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18118 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18119 echo "$as_me: executing $ac_dest commands" >&6;}
18121 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18122 # Strip MF so we end up with the name of the file.
18123 mf=`echo "$mf" | sed -e 's/:.*$//'`
18124 # Check whether this is an Automake generated Makefile or not.
18125 # We used to match only the files named `Makefile.in', but
18126 # some people rename them; so instead we look at the file content.
18127 # Grep'ing the first line is not enough: some people post-process
18128 # each Makefile.in and add a new line on top of each file to say so.
18129 # So let's grep whole file.
18130 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18131 dirpart=`(dirname "$mf") 2>/dev/null ||
18132 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18133 X"$mf" : 'X\(//\)[^/]' \| \
18134 X"$mf" : 'X\(//\)$' \| \
18135 X"$mf" : 'X\(/\)' \| \
18136 . : '\(.\)' 2>/dev/null ||
18138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18139 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18140 /^X\(\/\/\)$/{ s//\1/; q; }
18141 /^X\(\/\).*/{ s//\1/; q; }
18146 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
18147 # Extract the definition of DEP_FILES from the Makefile without
18149 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
18150 test -z "$DEPDIR" && continue
18151 # When using ansi2knr, U may be empty or an underscore; expand it
18152 U=`sed -n -e '/^U = / s///p' < "$mf"`
18153 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
18154 # We invoke sed twice because it is the simplest approach to
18155 # changing $(DEPDIR) to its actual value in the expansion.
18156 for file in `sed -n -e '
18157 /^DEP_FILES = .*\\\\$/ {
18166 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
18167 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18168 # Make sure the directory exists.
18169 test -f "$dirpart/$file" && continue
18170 fdir=`(dirname "$file") 2>/dev/null ||
18171 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18172 X"$file" : 'X\(//\)[^/]' \| \
18173 X"$file" : 'X\(//\)$' \| \
18174 X"$file" : 'X\(/\)' \| \
18175 . : '\(.\)' 2>/dev/null ||
18177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18178 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18179 /^X\(\/\/\)$/{ s//\1/; q; }
18180 /^X\(\/\).*/{ s//\1/; q; }
18182 { if $as_mkdir_p; then
18183 mkdir -p $dirpart/$fdir
18185 as_dir=$dirpart/$fdir
18187 while test ! -d "$as_dir"; do
18188 as_dirs="$as_dir $as_dirs"
18189 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18190 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18191 X"$as_dir" : 'X\(//\)[^/]' \| \
18192 X"$as_dir" : 'X\(//\)$' \| \
18193 X"$as_dir" : 'X\(/\)' \| \
18194 . : '\(.\)' 2>/dev/null ||
18196 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18197 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18198 /^X\(\/\/\)$/{ s//\1/; q; }
18199 /^X\(\/\).*/{ s//\1/; q; }
18202 test ! -n "$as_dirs" || mkdir $as_dirs
18203 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18204 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18205 { (exit 1); exit 1; }; }; }
18207 # echo "creating $dirpart/$file"
18208 echo '# dummy' > "$dirpart/$file"
18212 default-1 ) for ac_file in $CONFIG_FILES; do
18213 # Support "outfile[:infile[:infile...]]"
18215 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18217 # PO directories have a Makefile.in generated from Makefile.in.in.
18218 case "$ac_file" in */Makefile.in)
18219 # Adjust a relative srcdir.
18220 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18221 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18222 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18223 # In autoconf-2.13 it is called $ac_given_srcdir.
18224 # In autoconf-2.50 it is called $srcdir.
18225 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18226 case "$ac_given_srcdir" in
18227 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18228 /*) top_srcdir="$ac_given_srcdir" ;;
18229 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
18231 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18232 rm -f "$ac_dir/POTFILES"
18233 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18234 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
18235 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18236 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
18245 cat >>$CONFIG_STATUS <<\_ACEOF
18247 { (exit 0); exit 0; }
18249 chmod +x $CONFIG_STATUS
18250 ac_clean_files=$ac_clean_files_save
18253 # configure is writing to config.log, and then calls config.status.
18254 # config.status does its own redirection, appending to config.log.
18255 # Unfortunately, on DOS this fails, as config.log is still kept open
18256 # by configure, so config.status won't be able to write to it; its
18257 # output is simply discarded. So we exec the FD to /dev/null,
18258 # effectively closing config.log, so it can be properly (re)opened and
18259 # appended to by config.status. When coming back to configure, we
18260 # need to make the FD available again.
18261 if test "$no_create" != yes; then
18263 ac_config_status_args=
18264 test "$silent" = yes &&
18265 ac_config_status_args="$ac_config_status_args --quiet"
18267 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18269 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18270 # would make configure fail if this is the last instruction.
18271 $ac_cs_success || { (exit 1); exit 1; }