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 OPS PGPAUX_TARGET SMIMEAUX_TARGET SUBVERSION ISPELL LIBOBJS DOTLOCK_TARGET docdir DOTLOCK_GROUP DOTLOCK_PERMISSION BUILD_IMAP_TRUE BUILD_IMAP_FALSE KRB5CFGPATH USE_GSS_TRUE USE_GSS_FALSE USE_SSL_TRUE USE_SSL_FALSE USE_GNUTLS_TRUE USE_GNUTLS_FALSE 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-pgp Disable PGP support
854 --disable-smime Disable SMIME support
855 --enable-external-dotlock Force use of an external dotlock program
856 --enable-pop Enable POP3 support
857 --enable-imap Enable IMAP support
858 --enable-nntp Enable NNTP support
859 --enable-debug Enable debugging support
860 --enable-flock Use flock() to lock files
861 --disable-fcntl Do NOT use fcntl() to lock files
862 --disable-warnings Turn off compiler warnings (not recommended)
863 --enable-nfs-fix Work around an NFS with broken attributes caching
864 --enable-buffy-size Use file size attribute instead of access time
865 --enable-mailtool Enable Sun mailtool attachments support
866 --enable-compressed Enable compressed folders support
867 --enable-locales-fix The result of isprint() is unreliable
868 --enable-exact-address Enable regeneration of email addresses
869 --disable-iconv Disable iconv support
870 --disable-nls Do not use Native Language Support
873 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
874 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
875 --with-mixmaster=PATH Include Mixmaster support
876 --with-slang=DIR Use S-Lang instead of ncurses
877 --with-curses=DIR Where ncurses is installed
878 --with-regex Use the GNU regex library
879 --with-homespool=FILE File in user's directory where new mail is spooled
880 --with-mailpath=DIR Directory where spool mailboxes are located
881 --with-docdir=PATH Specify where to put the documentation
882 --with-domain=DOMAIN Specify your DNS domain name
883 --with-gss=PFX Compile in GSSAPI authentication for IMAP
884 --with-ssl=PFX Compile in SSL support for POP/IMAP
885 --with-gnutls=PFX Compile in GNU TLS support for POP/IMAP
886 --with-nss=PFX Compile in SSL support for POP/IMAP via NSS
887 --with-sasl=PFX Use Cyrus SASL library for POP/IMAP authentication
888 --with-sasl2=PFX Use Cyrus SASL library version 2 for POP/IMAP authentication
889 --with-idn=PFX Use GNU libidn for domain names
890 --with-exec-shell=SHELL Specify alternate shell (ONLY if /bin/sh is broken)
891 --with-libiconv-prefix=DIR Search for libiconv in DIR/include and DIR/lib
892 --with-included-gettext Use the GNU gettext library included here
893 --without-wc-funcs Do not use the system's wchar_t functions
894 --with-libesmtp=DIR Compile in support for libesmtp for the MTA
896 Some influential environment variables:
897 CC C compiler command
898 CFLAGS C compiler flags
899 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
900 nonstandard directory <lib dir>
901 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
902 headers in a nonstandard directory <include dir>
905 Use these variables to override the choices made by `configure' or to help
906 it to find libraries and programs with nonstandard names/locations.
911 if test "$ac_init_help" = "recursive"; then
912 # If there are subdirs, report their specific --help.
914 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
915 test -d $ac_dir || continue
918 if test "$ac_dir" != .; then
919 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
920 # A "../" for each directory in $ac_dir_suffix.
921 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
923 ac_dir_suffix= ac_top_builddir=
927 .) # No --srcdir option. We are building in place.
929 if test -z "$ac_top_builddir"; then
932 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
934 [\\/]* | ?:[\\/]* ) # Absolute path.
935 ac_srcdir=$srcdir$ac_dir_suffix;
936 ac_top_srcdir=$srcdir ;;
938 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
939 ac_top_srcdir=$ac_top_builddir$srcdir ;;
941 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
943 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
944 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
945 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
946 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
949 # Check for guested configure; otherwise get Cygnus style configure.
950 if test -f $ac_srcdir/configure.gnu; then
952 $SHELL $ac_srcdir/configure.gnu --help=recursive
953 elif test -f $ac_srcdir/configure; then
955 $SHELL $ac_srcdir/configure --help=recursive
956 elif test -f $ac_srcdir/configure.ac ||
957 test -f $ac_srcdir/configure.in; then
961 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
967 test -n "$ac_init_help" && exit 0
968 if $ac_init_version; then
971 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
972 Free Software Foundation, Inc.
973 This configure script is free software; the Free Software Foundation
974 gives unlimited permission to copy, distribute and modify it.
980 This file contains any messages produced by compilers while
981 running configure, to aid debugging if configure makes a mistake.
983 It was created by $as_me, which was
984 generated by GNU Autoconf 2.57. Invocation command line was
995 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
996 uname -m = `(uname -m) 2>/dev/null || echo unknown`
997 uname -r = `(uname -r) 2>/dev/null || echo unknown`
998 uname -s = `(uname -s) 2>/dev/null || echo unknown`
999 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1001 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1002 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1004 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1005 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1006 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1007 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1008 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1009 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1010 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1018 test -z "$as_dir" && as_dir=.
1019 echo "PATH: $as_dir"
1034 # Keep a trace of the command line.
1035 # Strip out --no-create and --no-recursion so they do not pile up.
1036 # Strip out --silent because we don't want to record it for future runs.
1037 # Also quote any args containing shell meta-characters.
1038 # Make two passes to allow for proper duplicate-argument suppression.
1043 ac_must_keep_next=false
1049 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1050 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1051 | -silent | --silent | --silen | --sile | --sil)
1053 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1054 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1057 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1059 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1060 if test $ac_must_keep_next = true; then
1061 ac_must_keep_next=false # Got value, back to normal.
1064 *=* | --config-cache | -C | -disable-* | --disable-* \
1065 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1066 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1067 | -with-* | --with-* | -without-* | --without-* | --x)
1068 case "$ac_configure_args0 " in
1069 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1072 -* ) ac_must_keep_next=true ;;
1075 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1076 # Get rid of the leading space.
1082 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1083 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1085 # When interrupted or exit'd, cleanup temporary files, and complete
1086 # config.log. We remove comments because anyway the quotes in there
1087 # would cause problems or look ugly.
1088 # WARNING: Be sure not to use single quotes in there, as some shells,
1089 # such as our DU 5.0 friend, will then `close' the trap.
1090 trap 'exit_status=$?
1091 # Save into config.log some information that might help in debugging.
1096 ## ---------------- ##
1097 ## Cache variables. ##
1098 ## ---------------- ##
1101 # The following way of writing the cache mishandles newlines in values,
1104 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1107 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1108 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1112 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1119 ## ----------------- ##
1120 ## Output variables. ##
1121 ## ----------------- ##
1124 for ac_var in $ac_subst_vars
1126 eval ac_val=$`echo $ac_var`
1127 echo "$ac_var='"'"'$ac_val'"'"'"
1131 if test -n "$ac_subst_files"; then
1138 for ac_var in $ac_subst_files
1140 eval ac_val=$`echo $ac_var`
1141 echo "$ac_var='"'"'$ac_val'"'"'"
1146 if test -s confdefs.h; then
1153 sed "/^$/d" confdefs.h | sort
1156 test "$ac_signal" != 0 &&
1157 echo "$as_me: caught signal $ac_signal"
1158 echo "$as_me: exit $exit_status"
1160 rm -f core core.* *.core &&
1161 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1164 for ac_signal in 1 2 13 15; do
1165 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1169 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1170 rm -rf conftest* confdefs.h
1171 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1174 # Predefined preprocessor variables.
1176 cat >>confdefs.h <<_ACEOF
1177 #define PACKAGE_NAME "$PACKAGE_NAME"
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_STRING "$PACKAGE_STRING"
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1201 # Let the site file select an alternate cache file if it wants to.
1202 # Prefer explicitly selected file to automatically selected ones.
1203 if test -z "$CONFIG_SITE"; then
1204 if test "x$prefix" != xNONE; then
1205 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1207 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1210 for ac_site_file in $CONFIG_SITE; do
1211 if test -r "$ac_site_file"; then
1212 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1213 echo "$as_me: loading site script $ac_site_file" >&6;}
1214 sed 's/^/| /' "$ac_site_file" >&5
1219 if test -r "$cache_file"; then
1220 # Some versions of bash will fail to source /dev/null (special
1221 # files actually), so we avoid doing that.
1222 if test -f "$cache_file"; then
1223 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1224 echo "$as_me: loading cache $cache_file" >&6;}
1226 [\\/]* | ?:[\\/]* ) . $cache_file;;
1227 *) . ./$cache_file;;
1231 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1232 echo "$as_me: creating cache $cache_file" >&6;}
1236 # Check that the precious variables saved in the cache have kept the same
1238 ac_cache_corrupted=false
1239 for ac_var in `(set) 2>&1 |
1240 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1241 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1242 eval ac_new_set=\$ac_env_${ac_var}_set
1243 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1244 eval ac_new_val="\$ac_env_${ac_var}_value"
1245 case $ac_old_set,$ac_new_set in
1247 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1248 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1249 ac_cache_corrupted=: ;;
1251 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1252 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1253 ac_cache_corrupted=: ;;
1256 if test "x$ac_old_val" != "x$ac_new_val"; then
1257 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1258 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1259 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1260 echo "$as_me: former value: $ac_old_val" >&2;}
1261 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1262 echo "$as_me: current value: $ac_new_val" >&2;}
1263 ac_cache_corrupted=:
1266 # Pass precious variables to config.status.
1267 if test "$ac_new_set" = set; then
1269 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1270 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1271 *) ac_arg=$ac_var=$ac_new_val ;;
1273 case " $ac_configure_args " in
1274 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1275 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1279 if $ac_cache_corrupted; then
1280 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1281 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1282 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1283 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1284 { (exit 1); exit 1; }; }
1288 ac_cpp='$CPP $CPPFLAGS'
1289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1311 ac_config_headers="$ac_config_headers config.h"
1314 mutt_cv_version=`cat $srcdir/VERSION`
1317 am__api_version="1.7"
1319 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1320 if test -f $ac_dir/install-sh; then
1322 ac_install_sh="$ac_aux_dir/install-sh -c"
1324 elif test -f $ac_dir/install.sh; then
1326 ac_install_sh="$ac_aux_dir/install.sh -c"
1328 elif test -f $ac_dir/shtool; then
1330 ac_install_sh="$ac_aux_dir/shtool install -c"
1334 if test -z "$ac_aux_dir"; then
1335 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1336 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1337 { (exit 1); exit 1; }; }
1339 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1340 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1341 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1343 # Find a good install program. We prefer a C program (faster),
1344 # so one script is as good as another. But avoid the broken or
1345 # incompatible versions:
1346 # SysV /etc/install, /usr/sbin/install
1347 # SunOS /usr/etc/install
1348 # IRIX /sbin/install
1350 # AmigaOS /C/install, which installs bootblocks on floppy discs
1351 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1352 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1353 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1354 # ./install, which can be erroneously created by make from ./install.sh.
1355 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1356 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1357 if test -z "$INSTALL"; then
1358 if test "${ac_cv_path_install+set}" = set; then
1359 echo $ECHO_N "(cached) $ECHO_C" >&6
1361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1365 test -z "$as_dir" && as_dir=.
1366 # Account for people who put trailing slashes in PATH elements.
1368 ./ | .// | /cC/* | \
1369 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1372 # OSF1 and SCO ODT 3.0 have their own names for install.
1373 # Don't use installbsd from OSF since it installs stuff as root
1375 for ac_prog in ginstall scoinst install; do
1376 for ac_exec_ext in '' $ac_executable_extensions; do
1377 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1378 if test $ac_prog = install &&
1379 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1380 # AIX install. It has an incompatible calling convention.
1382 elif test $ac_prog = install &&
1383 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1384 # program-specific install script used by HP pwplus--don't use.
1387 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1399 if test "${ac_cv_path_install+set}" = set; then
1400 INSTALL=$ac_cv_path_install
1402 # As a last resort, use the slow shell script. We don't cache a
1403 # path for INSTALL within a source directory, because that will
1404 # break other packages using the cache if that directory is
1405 # removed, or if the path is relative.
1406 INSTALL=$ac_install_sh
1409 echo "$as_me:$LINENO: result: $INSTALL" >&5
1410 echo "${ECHO_T}$INSTALL" >&6
1412 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1413 # It thinks the first close brace ends the variable substitution.
1414 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1416 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1418 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1420 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1421 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1424 echo timestamp > conftest.file
1425 # Do `set' in a subshell so we don't clobber the current shell's
1426 # arguments. Must try -L first in case configure is actually a
1427 # symlink; some systems play weird games with the mod time of symlinks
1428 # (eg FreeBSD returns the mod time of the symlink's containing
1431 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1432 if test "$*" = "X"; then
1434 set X `ls -t $srcdir/configure conftest.file`
1437 if test "$*" != "X $srcdir/configure conftest.file" \
1438 && test "$*" != "X conftest.file $srcdir/configure"; then
1440 # If neither matched, then we have a broken ls. This can happen
1441 # if, for instance, CONFIG_SHELL is bash and it inherits a
1442 # broken ls alias from the environment. This has actually
1443 # happened. Such a system could not be considered "sane".
1444 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1445 alias in your environment" >&5
1446 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1447 alias in your environment" >&2;}
1448 { (exit 1); exit 1; }; }
1451 test "$2" = conftest.file
1457 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1458 Check your system clock" >&5
1459 echo "$as_me: error: newly created file is older than distributed files!
1460 Check your system clock" >&2;}
1461 { (exit 1); exit 1; }; }
1463 echo "$as_me:$LINENO: result: yes" >&5
1464 echo "${ECHO_T}yes" >&6
1465 test "$program_prefix" != NONE &&
1466 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1467 # Use a double $ so make ignores it.
1468 test "$program_suffix" != NONE &&
1469 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1470 # Double any \ or $. echo might interpret backslashes.
1471 # By default was `s,x,x', remove it if useless.
1472 cat <<\_ACEOF >conftest.sed
1473 s/[\\$]/&&/g;s/;s,x,x,$//
1475 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1479 # expand $ac_aux_dir to an absolute path
1480 am_aux_dir=`cd $ac_aux_dir && pwd`
1482 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1483 # Use eval to expand $SHELL
1484 if eval "$MISSING --run true"; then
1485 am_missing_run="$MISSING --run "
1488 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1489 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1492 for ac_prog in gawk mawk nawk awk
1494 # Extract the first word of "$ac_prog", so it can be a program name with args.
1495 set dummy $ac_prog; ac_word=$2
1496 echo "$as_me:$LINENO: checking for $ac_word" >&5
1497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1498 if test "${ac_cv_prog_AWK+set}" = set; then
1499 echo $ECHO_N "(cached) $ECHO_C" >&6
1501 if test -n "$AWK"; then
1502 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1508 test -z "$as_dir" && as_dir=.
1509 for ac_exec_ext in '' $ac_executable_extensions; do
1510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1511 ac_cv_prog_AWK="$ac_prog"
1512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1521 if test -n "$AWK"; then
1522 echo "$as_me:$LINENO: result: $AWK" >&5
1523 echo "${ECHO_T}$AWK" >&6
1525 echo "$as_me:$LINENO: result: no" >&5
1526 echo "${ECHO_T}no" >&6
1529 test -n "$AWK" && break
1532 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1533 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1534 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1535 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1536 echo $ECHO_N "(cached) $ECHO_C" >&6
1538 cat >conftest.make <<\_ACEOF
1540 @echo 'ac_maketemp="$(MAKE)"'
1542 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1543 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1544 if test -n "$ac_maketemp"; then
1545 eval ac_cv_prog_make_${ac_make}_set=yes
1547 eval ac_cv_prog_make_${ac_make}_set=no
1551 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1552 echo "$as_me:$LINENO: result: yes" >&5
1553 echo "${ECHO_T}yes" >&6
1556 echo "$as_me:$LINENO: result: no" >&5
1557 echo "${ECHO_T}no" >&6
1558 SET_MAKE="MAKE=${MAKE-make}"
1561 rm -rf .tst 2>/dev/null
1562 mkdir .tst 2>/dev/null
1563 if test -d .tst; then
1568 rmdir .tst 2>/dev/null
1570 # test to see if srcdir already configured
1571 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1572 test -f $srcdir/config.status; then
1573 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1574 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1575 { (exit 1); exit 1; }; }
1578 # test whether we have cygpath
1579 if test -z "$CYGPATH_W"; then
1580 if (cygpath --version) >/dev/null 2>/dev/null; then
1581 CYGPATH_W='cygpath -w'
1588 # Define the identity of the package.
1590 VERSION=$mutt_cv_version
1593 cat >>confdefs.h <<_ACEOF
1594 #define PACKAGE "$PACKAGE"
1598 cat >>confdefs.h <<_ACEOF
1599 #define VERSION "$VERSION"
1602 # Some tools Automake needs.
1604 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1607 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1610 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1613 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1616 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1619 AMTAR=${AMTAR-"${am_missing_run}tar"}
1621 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1623 # Installed binaries are usually stripped using `strip' when the user
1624 # run `make install-strip'. However `strip' might not be the right
1625 # tool to use in cross-compilation environments, therefore Automake
1626 # will honor the `STRIP' environment variable to overrule this program.
1627 if test "$cross_compiling" != no; then
1628 if test -n "$ac_tool_prefix"; then
1629 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1630 set dummy ${ac_tool_prefix}strip; ac_word=$2
1631 echo "$as_me:$LINENO: checking for $ac_word" >&5
1632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1633 if test "${ac_cv_prog_STRIP+set}" = set; then
1634 echo $ECHO_N "(cached) $ECHO_C" >&6
1636 if test -n "$STRIP"; then
1637 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1643 test -z "$as_dir" && as_dir=.
1644 for ac_exec_ext in '' $ac_executable_extensions; do
1645 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1646 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1655 STRIP=$ac_cv_prog_STRIP
1656 if test -n "$STRIP"; then
1657 echo "$as_me:$LINENO: result: $STRIP" >&5
1658 echo "${ECHO_T}$STRIP" >&6
1660 echo "$as_me:$LINENO: result: no" >&5
1661 echo "${ECHO_T}no" >&6
1665 if test -z "$ac_cv_prog_STRIP"; then
1667 # Extract the first word of "strip", so it can be a program name with args.
1668 set dummy strip; ac_word=$2
1669 echo "$as_me:$LINENO: checking for $ac_word" >&5
1670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1671 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1672 echo $ECHO_N "(cached) $ECHO_C" >&6
1674 if test -n "$ac_ct_STRIP"; then
1675 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1681 test -z "$as_dir" && as_dir=.
1682 for ac_exec_ext in '' $ac_executable_extensions; do
1683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1684 ac_cv_prog_ac_ct_STRIP="strip"
1685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1691 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1694 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1695 if test -n "$ac_ct_STRIP"; then
1696 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1697 echo "${ECHO_T}$ac_ct_STRIP" >&6
1699 echo "$as_me:$LINENO: result: no" >&5
1700 echo "${ECHO_T}no" >&6
1705 STRIP="$ac_cv_prog_STRIP"
1709 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1711 # We need awk for the "check" target. The system "awk" is bad on
1719 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"
1721 # Make sure we can run config.sub.
1722 $ac_config_sub sun4 >/dev/null 2>&1 ||
1723 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1724 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1725 { (exit 1); exit 1; }; }
1727 echo "$as_me:$LINENO: checking build system type" >&5
1728 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1729 if test "${ac_cv_build+set}" = set; then
1730 echo $ECHO_N "(cached) $ECHO_C" >&6
1732 ac_cv_build_alias=$build_alias
1733 test -z "$ac_cv_build_alias" &&
1734 ac_cv_build_alias=`$ac_config_guess`
1735 test -z "$ac_cv_build_alias" &&
1736 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1737 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1738 { (exit 1); exit 1; }; }
1739 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1740 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1741 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1742 { (exit 1); exit 1; }; }
1745 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1746 echo "${ECHO_T}$ac_cv_build" >&6
1748 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1749 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1750 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1753 echo "$as_me:$LINENO: checking host system type" >&5
1754 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1755 if test "${ac_cv_host+set}" = set; then
1756 echo $ECHO_N "(cached) $ECHO_C" >&6
1758 ac_cv_host_alias=$host_alias
1759 test -z "$ac_cv_host_alias" &&
1760 ac_cv_host_alias=$ac_cv_build_alias
1761 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1762 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1763 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1764 { (exit 1); exit 1; }; }
1767 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1768 echo "${ECHO_T}$ac_cv_host" >&6
1770 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1771 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1772 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1776 echo "$as_me:$LINENO: checking for prefix" >&5
1777 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1778 if test x$prefix = xNONE; then
1779 mutt_cv_prefix=$ac_default_prefix
1781 mutt_cv_prefix=$prefix
1783 echo "$as_me:$LINENO: result: $mutt_cv_prefix" >&5
1784 echo "${ECHO_T}$mutt_cv_prefix" >&6
1787 ac_cpp='$CPP $CPPFLAGS'
1788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1791 if test -n "$ac_tool_prefix"; then
1792 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1793 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1794 echo "$as_me:$LINENO: checking for $ac_word" >&5
1795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1796 if test "${ac_cv_prog_CC+set}" = set; then
1797 echo $ECHO_N "(cached) $ECHO_C" >&6
1799 if test -n "$CC"; then
1800 ac_cv_prog_CC="$CC" # Let the user override the test.
1802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1806 test -z "$as_dir" && as_dir=.
1807 for ac_exec_ext in '' $ac_executable_extensions; do
1808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1809 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1819 if test -n "$CC"; then
1820 echo "$as_me:$LINENO: result: $CC" >&5
1821 echo "${ECHO_T}$CC" >&6
1823 echo "$as_me:$LINENO: result: no" >&5
1824 echo "${ECHO_T}no" >&6
1828 if test -z "$ac_cv_prog_CC"; then
1830 # Extract the first word of "gcc", so it can be a program name with args.
1831 set dummy gcc; ac_word=$2
1832 echo "$as_me:$LINENO: checking for $ac_word" >&5
1833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1834 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1835 echo $ECHO_N "(cached) $ECHO_C" >&6
1837 if test -n "$ac_ct_CC"; then
1838 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844 test -z "$as_dir" && as_dir=.
1845 for ac_exec_ext in '' $ac_executable_extensions; do
1846 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1847 ac_cv_prog_ac_ct_CC="gcc"
1848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1856 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1857 if test -n "$ac_ct_CC"; then
1858 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1859 echo "${ECHO_T}$ac_ct_CC" >&6
1861 echo "$as_me:$LINENO: result: no" >&5
1862 echo "${ECHO_T}no" >&6
1870 if test -z "$CC"; then
1871 if test -n "$ac_tool_prefix"; then
1872 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1873 set dummy ${ac_tool_prefix}cc; ac_word=$2
1874 echo "$as_me:$LINENO: checking for $ac_word" >&5
1875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1876 if test "${ac_cv_prog_CC+set}" = set; then
1877 echo $ECHO_N "(cached) $ECHO_C" >&6
1879 if test -n "$CC"; then
1880 ac_cv_prog_CC="$CC" # Let the user override the test.
1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1886 test -z "$as_dir" && as_dir=.
1887 for ac_exec_ext in '' $ac_executable_extensions; do
1888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1889 ac_cv_prog_CC="${ac_tool_prefix}cc"
1890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1899 if test -n "$CC"; then
1900 echo "$as_me:$LINENO: result: $CC" >&5
1901 echo "${ECHO_T}$CC" >&6
1903 echo "$as_me:$LINENO: result: no" >&5
1904 echo "${ECHO_T}no" >&6
1908 if test -z "$ac_cv_prog_CC"; then
1910 # Extract the first word of "cc", so it can be a program name with args.
1911 set dummy cc; ac_word=$2
1912 echo "$as_me:$LINENO: checking for $ac_word" >&5
1913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1914 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 if test -n "$ac_ct_CC"; then
1918 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1924 test -z "$as_dir" && as_dir=.
1925 for ac_exec_ext in '' $ac_executable_extensions; do
1926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927 ac_cv_prog_ac_ct_CC="cc"
1928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1936 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1937 if test -n "$ac_ct_CC"; then
1938 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1939 echo "${ECHO_T}$ac_ct_CC" >&6
1941 echo "$as_me:$LINENO: result: no" >&5
1942 echo "${ECHO_T}no" >&6
1951 if test -z "$CC"; then
1952 # Extract the first word of "cc", so it can be a program name with args.
1953 set dummy cc; ac_word=$2
1954 echo "$as_me:$LINENO: checking for $ac_word" >&5
1955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1956 if test "${ac_cv_prog_CC+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1959 if test -n "$CC"; then
1960 ac_cv_prog_CC="$CC" # Let the user override the test.
1963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1967 test -z "$as_dir" && as_dir=.
1968 for ac_exec_ext in '' $ac_executable_extensions; do
1969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1970 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1971 ac_prog_rejected=yes
1975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1981 if test $ac_prog_rejected = yes; then
1982 # We found a bogon in the path, so make sure we never use it.
1983 set dummy $ac_cv_prog_CC
1985 if test $# != 0; then
1986 # We chose a different compiler from the bogus one.
1987 # However, it has the same basename, so the bogon will be chosen
1988 # first if we set CC to just the basename; use the full file name.
1990 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1996 if test -n "$CC"; then
1997 echo "$as_me:$LINENO: result: $CC" >&5
1998 echo "${ECHO_T}$CC" >&6
2000 echo "$as_me:$LINENO: result: no" >&5
2001 echo "${ECHO_T}no" >&6
2005 if test -z "$CC"; then
2006 if test -n "$ac_tool_prefix"; then
2009 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2010 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2011 echo "$as_me:$LINENO: checking for $ac_word" >&5
2012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2013 if test "${ac_cv_prog_CC+set}" = set; then
2014 echo $ECHO_N "(cached) $ECHO_C" >&6
2016 if test -n "$CC"; then
2017 ac_cv_prog_CC="$CC" # Let the user override the test.
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023 test -z "$as_dir" && as_dir=.
2024 for ac_exec_ext in '' $ac_executable_extensions; do
2025 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2026 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2036 if test -n "$CC"; then
2037 echo "$as_me:$LINENO: result: $CC" >&5
2038 echo "${ECHO_T}$CC" >&6
2040 echo "$as_me:$LINENO: result: no" >&5
2041 echo "${ECHO_T}no" >&6
2044 test -n "$CC" && break
2047 if test -z "$CC"; then
2051 # Extract the first word of "$ac_prog", so it can be a program name with args.
2052 set dummy $ac_prog; ac_word=$2
2053 echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2055 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2056 echo $ECHO_N "(cached) $ECHO_C" >&6
2058 if test -n "$ac_ct_CC"; then
2059 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065 test -z "$as_dir" && as_dir=.
2066 for ac_exec_ext in '' $ac_executable_extensions; do
2067 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2068 ac_cv_prog_ac_ct_CC="$ac_prog"
2069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2077 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2078 if test -n "$ac_ct_CC"; then
2079 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2080 echo "${ECHO_T}$ac_ct_CC" >&6
2082 echo "$as_me:$LINENO: result: no" >&5
2083 echo "${ECHO_T}no" >&6
2086 test -n "$ac_ct_CC" && break
2095 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2096 See \`config.log' for more details." >&5
2097 echo "$as_me: error: no acceptable C compiler found in \$PATH
2098 See \`config.log' for more details." >&2;}
2099 { (exit 1); exit 1; }; }
2101 # Provide some information about the compiler.
2102 echo "$as_me:$LINENO:" \
2103 "checking for C compiler version" >&5
2104 ac_compiler=`set X $ac_compile; echo $2`
2105 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2106 (eval $ac_compiler --version </dev/null >&5) 2>&5
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); }
2110 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2111 (eval $ac_compiler -v </dev/null >&5) 2>&5
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }
2115 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2116 (eval $ac_compiler -V </dev/null >&5) 2>&5
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }
2121 cat >conftest.$ac_ext <<_ACEOF
2122 #line $LINENO "configure"
2125 cat confdefs.h >>conftest.$ac_ext
2126 cat >>conftest.$ac_ext <<_ACEOF
2127 /* end confdefs.h. */
2137 ac_clean_files_save=$ac_clean_files
2138 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2139 # Try to create an executable without -o first, disregard a.out.
2140 # It will help us diagnose broken compilers, and finding out an intuition
2142 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2143 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2144 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2145 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2146 (eval $ac_link_default) 2>&5
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }; then
2150 # Find the output, starting from the most likely. This scheme is
2151 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2154 # Be careful to initialize this variable, since it used to be cached.
2155 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2157 # b.out is created by i960 compilers.
2158 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2160 test -f "$ac_file" || continue
2162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2165 # This is the source file.
2168 # We found the default executable, but exeext='' is most
2172 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2173 # FIXME: I believe we export ac_cv_exeext for Libtool,
2174 # but it would be cool to find out if it's true. Does anybody
2175 # maintain Libtool? --akim.
2183 echo "$as_me: failed program was:" >&5
2184 sed 's/^/| /' conftest.$ac_ext >&5
2186 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2187 See \`config.log' for more details." >&5
2188 echo "$as_me: error: C compiler cannot create executables
2189 See \`config.log' for more details." >&2;}
2190 { (exit 77); exit 77; }; }
2193 ac_exeext=$ac_cv_exeext
2194 echo "$as_me:$LINENO: result: $ac_file" >&5
2195 echo "${ECHO_T}$ac_file" >&6
2197 # Check the compiler produces executables we can run. If not, either
2198 # the compiler is broken, or we cross compile.
2199 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2200 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2201 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2202 # If not cross compiling, check that we can run a simple program.
2203 if test "$cross_compiling" != yes; then
2204 if { ac_try='./$ac_file'
2205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }; }; then
2212 if test "$cross_compiling" = maybe; then
2215 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2216 If you meant to cross compile, use \`--host'.
2217 See \`config.log' for more details." >&5
2218 echo "$as_me: error: cannot run C compiled programs.
2219 If you meant to cross compile, use \`--host'.
2220 See \`config.log' for more details." >&2;}
2221 { (exit 1); exit 1; }; }
2225 echo "$as_me:$LINENO: result: yes" >&5
2226 echo "${ECHO_T}yes" >&6
2228 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2229 ac_clean_files=$ac_clean_files_save
2230 # Check the compiler produces executables we can run. If not, either
2231 # the compiler is broken, or we cross compile.
2232 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2233 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2234 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2235 echo "${ECHO_T}$cross_compiling" >&6
2237 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2238 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2240 (eval $ac_link) 2>&5
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; then
2244 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2245 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2246 # work properly (i.e., refer to `conftest.exe'), while it won't with
2248 for ac_file in conftest.exe conftest conftest.*; do
2249 test -f "$ac_file" || continue
2251 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2252 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2259 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2260 See \`config.log' for more details." >&5
2261 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2262 See \`config.log' for more details." >&2;}
2263 { (exit 1); exit 1; }; }
2266 rm -f conftest$ac_cv_exeext
2267 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2268 echo "${ECHO_T}$ac_cv_exeext" >&6
2270 rm -f conftest.$ac_ext
2271 EXEEXT=$ac_cv_exeext
2273 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2274 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2275 if test "${ac_cv_objext+set}" = set; then
2276 echo $ECHO_N "(cached) $ECHO_C" >&6
2278 cat >conftest.$ac_ext <<_ACEOF
2279 #line $LINENO "configure"
2282 cat confdefs.h >>conftest.$ac_ext
2283 cat >>conftest.$ac_ext <<_ACEOF
2284 /* end confdefs.h. */
2294 rm -f conftest.o conftest.obj
2295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2296 (eval $ac_compile) 2>&5
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); }; then
2300 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2302 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2303 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2308 echo "$as_me: failed program was:" >&5
2309 sed 's/^/| /' conftest.$ac_ext >&5
2311 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2312 See \`config.log' for more details." >&5
2313 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2314 See \`config.log' for more details." >&2;}
2315 { (exit 1); exit 1; }; }
2318 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2320 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2321 echo "${ECHO_T}$ac_cv_objext" >&6
2322 OBJEXT=$ac_cv_objext
2324 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2325 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2326 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2327 echo $ECHO_N "(cached) $ECHO_C" >&6
2329 cat >conftest.$ac_ext <<_ACEOF
2330 #line $LINENO "configure"
2333 cat confdefs.h >>conftest.$ac_ext
2334 cat >>conftest.$ac_ext <<_ACEOF
2335 /* end confdefs.h. */
2348 rm -f conftest.$ac_objext
2349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2350 (eval $ac_compile) 2>&5
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); } &&
2354 { ac_try='test -s conftest.$ac_objext'
2355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }; }; then
2362 echo "$as_me: failed program was:" >&5
2363 sed 's/^/| /' conftest.$ac_ext >&5
2367 rm -f conftest.$ac_objext conftest.$ac_ext
2368 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2371 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2372 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2373 GCC=`test $ac_compiler_gnu = yes && echo yes`
2374 ac_test_CFLAGS=${CFLAGS+set}
2375 ac_save_CFLAGS=$CFLAGS
2377 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2378 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2379 if test "${ac_cv_prog_cc_g+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2382 cat >conftest.$ac_ext <<_ACEOF
2383 #line $LINENO "configure"
2386 cat confdefs.h >>conftest.$ac_ext
2387 cat >>conftest.$ac_ext <<_ACEOF
2388 /* end confdefs.h. */
2398 rm -f conftest.$ac_objext
2399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2400 (eval $ac_compile) 2>&5
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); } &&
2404 { ac_try='test -s conftest.$ac_objext'
2405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; }; then
2412 echo "$as_me: failed program was:" >&5
2413 sed 's/^/| /' conftest.$ac_ext >&5
2417 rm -f conftest.$ac_objext conftest.$ac_ext
2419 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2420 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2421 if test "$ac_test_CFLAGS" = set; then
2422 CFLAGS=$ac_save_CFLAGS
2423 elif test $ac_cv_prog_cc_g = yes; then
2424 if test "$GCC" = yes; then
2430 if test "$GCC" = yes; then
2436 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2437 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2438 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2439 echo $ECHO_N "(cached) $ECHO_C" >&6
2441 ac_cv_prog_cc_stdc=no
2443 cat >conftest.$ac_ext <<_ACEOF
2444 #line $LINENO "configure"
2447 cat confdefs.h >>conftest.$ac_ext
2448 cat >>conftest.$ac_ext <<_ACEOF
2449 /* end confdefs.h. */
2452 #include <sys/types.h>
2453 #include <sys/stat.h>
2454 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2455 struct buf { int x; };
2456 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2457 static char *e (p, i)
2463 static char *f (char * (*g) (char **, int), char **p, ...)
2468 s = g (p, va_arg (v,int));
2472 int test (int i, double x);
2473 struct s1 {int (*f) (int a);};
2474 struct s2 {int (*f) (double a);};
2475 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2481 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2486 # Don't try gcc -ansi; that turns off useful extensions and
2487 # breaks some systems' header files.
2488 # AIX -qlanglvl=ansi
2489 # Ultrix and OSF/1 -std1
2490 # HP-UX 10.20 and later -Ae
2491 # HP-UX older versions -Aa -D_HPUX_SOURCE
2492 # SVR4 -Xc -D__EXTENSIONS__
2493 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2495 CC="$ac_save_CC $ac_arg"
2496 rm -f conftest.$ac_objext
2497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2498 (eval $ac_compile) 2>&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); } &&
2502 { ac_try='test -s conftest.$ac_objext'
2503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507 (exit $ac_status); }; }; then
2508 ac_cv_prog_cc_stdc=$ac_arg
2511 echo "$as_me: failed program was:" >&5
2512 sed 's/^/| /' conftest.$ac_ext >&5
2515 rm -f conftest.$ac_objext
2517 rm -f conftest.$ac_ext conftest.$ac_objext
2522 case "x$ac_cv_prog_cc_stdc" in
2524 echo "$as_me:$LINENO: result: none needed" >&5
2525 echo "${ECHO_T}none needed" >&6 ;;
2527 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2528 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2529 CC="$CC $ac_cv_prog_cc_stdc" ;;
2532 # Some people use a C++ compiler to compile C. Since we use `exit',
2533 # in C++ we need to declare it. In case someone uses the same compiler
2534 # for both compiling C and C++ we need to have the C++ compiler decide
2535 # the declaration of exit, since it's the most demanding environment.
2536 cat >conftest.$ac_ext <<_ACEOF
2541 rm -f conftest.$ac_objext
2542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2543 (eval $ac_compile) 2>&5
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); } &&
2547 { ac_try='test -s conftest.$ac_objext'
2548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; }; then
2553 for ac_declaration in \
2555 '#include <stdlib.h>' \
2556 'extern "C" void std::exit (int) throw (); using std::exit;' \
2557 'extern "C" void std::exit (int); using std::exit;' \
2558 'extern "C" void exit (int) throw ();' \
2559 'extern "C" void exit (int);' \
2562 cat >conftest.$ac_ext <<_ACEOF
2563 #line $LINENO "configure"
2566 cat confdefs.h >>conftest.$ac_ext
2567 cat >>conftest.$ac_ext <<_ACEOF
2568 /* end confdefs.h. */
2579 rm -f conftest.$ac_objext
2580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2581 (eval $ac_compile) 2>&5
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); } &&
2585 { ac_try='test -s conftest.$ac_objext'
2586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); }; }; then
2593 echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2598 rm -f conftest.$ac_objext conftest.$ac_ext
2599 cat >conftest.$ac_ext <<_ACEOF
2600 #line $LINENO "configure"
2603 cat confdefs.h >>conftest.$ac_ext
2604 cat >>conftest.$ac_ext <<_ACEOF
2605 /* end confdefs.h. */
2615 rm -f conftest.$ac_objext
2616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2617 (eval $ac_compile) 2>&5
2619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620 (exit $ac_status); } &&
2621 { ac_try='test -s conftest.$ac_objext'
2622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; }; then
2629 echo "$as_me: failed program was:" >&5
2630 sed 's/^/| /' conftest.$ac_ext >&5
2633 rm -f conftest.$ac_objext conftest.$ac_ext
2636 if test -n "$ac_declaration"; then
2637 echo '#ifdef __cplusplus' >>confdefs.h
2638 echo $ac_declaration >>confdefs.h
2639 echo '#endif' >>confdefs.h
2643 echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2647 rm -f conftest.$ac_objext conftest.$ac_ext
2649 ac_cpp='$CPP $CPPFLAGS'
2650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2653 DEPDIR="${am__leading_dot}deps"
2655 ac_config_commands="$ac_config_commands depfiles"
2658 am_make=${MAKE-make}
2659 cat > confinc << 'END'
2664 # If we don't find an include directive, just comment out the code.
2665 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2666 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2670 # First try GNU make style include.
2671 echo "include confinc" > confmf
2672 # We grep out `Entering directory' and `Leaving directory'
2673 # messages which can occur if `w' ends up in MAKEFLAGS.
2674 # In particular we don't look at `^make:' because GNU make might
2675 # be invoked under some other name (usually "gmake"), in which
2676 # case it prints its new name instead of `make'.
2677 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2682 # Now try BSD make style include.
2683 if test "$am__include" = "#"; then
2684 echo '.include "confinc"' > confmf
2685 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2686 am__include=.include
2693 echo "$as_me:$LINENO: result: $_am_result" >&5
2694 echo "${ECHO_T}$_am_result" >&6
2695 rm -f confinc confmf
2697 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2698 if test "${enable_dependency_tracking+set}" = set; then
2699 enableval="$enable_dependency_tracking"
2702 if test "x$enable_dependency_tracking" != xno; then
2703 am_depcomp="$ac_aux_dir/depcomp"
2708 if test "x$enable_dependency_tracking" != xno; then
2719 depcc="$CC" am_compiler_list=
2721 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2722 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2723 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2724 echo $ECHO_N "(cached) $ECHO_C" >&6
2726 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2727 # We make a subdir and do the tests there. Otherwise we can end up
2728 # making bogus files that we don't know about and never remove. For
2729 # instance it was reported that on HP-UX the gcc test will end up
2730 # making a dummy file named `D' -- because `-MD' means `put the output
2733 # Copy depcomp to subdir because otherwise we won't find it if we're
2734 # using a relative directory.
2735 cp "$am_depcomp" conftest.dir
2737 # We will build objects and dependencies in a subdirectory because
2738 # it helps to detect inapplicable dependency modes. For instance
2739 # both Tru64's cc and ICC support -MD to output dependencies as a
2740 # side effect of compilation, but ICC will put the dependencies in
2741 # the current directory while Tru64 will put them in the object
2745 am_cv_CC_dependencies_compiler_type=none
2746 if test "$am_compiler_list" = ""; then
2747 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2749 for depmode in $am_compiler_list; do
2750 # Setup a source with many dependencies, because some compilers
2751 # like to wrap large dependency lists on column 80 (with \), and
2752 # we should not choose a depcomp mode which is confused by this.
2754 # We need to recreate these files for each test, as the compiler may
2755 # overwrite some of them when testing with obscure command lines.
2756 # This happens at least with the AIX C compiler.
2758 for i in 1 2 3 4 5 6; do
2759 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2762 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2766 # after this tag, mechanisms are not by side-effect, so they'll
2767 # only be used when explicitly requested
2768 if test "x$enable_dependency_tracking" = xyes; then
2776 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2777 # mode. It turns out that the SunPro C++ compiler does not properly
2778 # handle `-M -o', and we need to detect this.
2779 if depmode=$depmode \
2780 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2781 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2782 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2783 >/dev/null 2>conftest.err &&
2784 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2785 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2786 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2787 # icc doesn't choke on unknown options, it will just issue warnings
2788 # (even with -Werror). So we grep stderr for any message
2789 # that says an option was ignored.
2790 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2791 am_cv_CC_dependencies_compiler_type=$depmode
2800 am_cv_CC_dependencies_compiler_type=none
2804 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2805 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2806 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2811 test "x$enable_dependency_tracking" != xno \
2812 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2814 am__fastdepCC_FALSE='#'
2816 am__fastdepCC_TRUE='#'
2817 am__fastdepCC_FALSE=
2823 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2824 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2825 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2826 echo $ECHO_N "(cached) $ECHO_C" >&6
2828 ac_check_lib_save_LIBS=$LIBS
2829 LIBS="-lcposix $LIBS"
2830 cat >conftest.$ac_ext <<_ACEOF
2831 #line $LINENO "configure"
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h. */
2838 /* Override any gcc2 internal prototype to avoid an error. */
2842 /* We use char because int might match the return type of a gcc2
2843 builtin and then its argument prototype would still apply. */
2853 rm -f conftest.$ac_objext conftest$ac_exeext
2854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2855 (eval $ac_link) 2>&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); } &&
2859 { ac_try='test -s conftest$ac_exeext'
2860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); }; }; then
2865 ac_cv_lib_cposix_strerror=yes
2867 echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2870 ac_cv_lib_cposix_strerror=no
2872 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2873 LIBS=$ac_check_lib_save_LIBS
2875 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2876 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2877 if test $ac_cv_lib_cposix_strerror = yes; then
2878 LIBS="$LIBS -lcposix"
2886 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2887 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2888 if test "${am_cv_prog_cc_stdc+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2891 am_cv_prog_cc_stdc=no
2893 # Don't try gcc -ansi; that turns off useful extensions and
2894 # breaks some systems' header files.
2895 # AIX -qlanglvl=ansi
2896 # Ultrix and OSF/1 -std1
2897 # HP-UX 10.20 and later -Ae
2898 # HP-UX older versions -Aa -D_HPUX_SOURCE
2899 # SVR4 -Xc -D__EXTENSIONS__
2900 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2902 CC="$ac_save_CC $ac_arg"
2903 cat >conftest.$ac_ext <<_ACEOF
2904 #line $LINENO "configure"
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h. */
2912 #include <sys/types.h>
2913 #include <sys/stat.h>
2914 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2915 struct buf { int x; };
2916 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2917 static char *e (p, i)
2923 static char *f (char * (*g) (char **, int), char **p, ...)
2928 s = g (p, va_arg (v,int));
2932 int test (int i, double x);
2933 struct s1 {int (*f) (int a);};
2934 struct s2 {int (*f) (double a);};
2935 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2943 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2949 rm -f conftest.$ac_objext
2950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2951 (eval $ac_compile) 2>&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); } &&
2955 { ac_try='test -s conftest.$ac_objext'
2956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }; }; then
2961 am_cv_prog_cc_stdc="$ac_arg"; break
2963 echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2967 rm -f conftest.$ac_objext conftest.$ac_ext
2973 if test -z "$am_cv_prog_cc_stdc"; then
2974 echo "$as_me:$LINENO: result: none needed" >&5
2975 echo "${ECHO_T}none needed" >&6
2977 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2978 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2980 case "x$am_cv_prog_cc_stdc" in
2982 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2986 ac_cpp='$CPP $CPPFLAGS'
2987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2990 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2991 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2992 # On Suns, sometimes $CPP names a directory.
2993 if test -n "$CPP" && test -d "$CPP"; then
2996 if test -z "$CPP"; then
2997 if test "${ac_cv_prog_CPP+set}" = set; then
2998 echo $ECHO_N "(cached) $ECHO_C" >&6
3000 # Double quotes because CPP needs to be expanded
3001 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3004 for ac_c_preproc_warn_flag in '' yes
3006 # Use a header file that comes with gcc, so configuring glibc
3007 # with a fresh cross-compiler works.
3008 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3009 # <limits.h> exists even on freestanding compilers.
3010 # On the NeXT, cc -E runs the code through the compiler's parser,
3011 # not just through cpp. "Syntax error" is here to catch this case.
3012 cat >conftest.$ac_ext <<_ACEOF
3013 #line $LINENO "configure"
3016 cat confdefs.h >>conftest.$ac_ext
3017 cat >>conftest.$ac_ext <<_ACEOF
3018 /* end confdefs.h. */
3020 # include <limits.h>
3022 # include <assert.h>
3026 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3027 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3029 grep -v '^ *+' conftest.er1 >conftest.err
3031 cat conftest.err >&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); } >/dev/null; then
3034 if test -s conftest.err; then
3035 ac_cpp_err=$ac_c_preproc_warn_flag
3042 if test -z "$ac_cpp_err"; then
3045 echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3048 # Broken: fails on valid input.
3051 rm -f conftest.err conftest.$ac_ext
3053 # OK, works on sane cases. Now check whether non-existent headers
3054 # can be detected and how.
3055 cat >conftest.$ac_ext <<_ACEOF
3056 #line $LINENO "configure"
3059 cat confdefs.h >>conftest.$ac_ext
3060 cat >>conftest.$ac_ext <<_ACEOF
3061 /* end confdefs.h. */
3062 #include <ac_nonexistent.h>
3064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3067 grep -v '^ *+' conftest.er1 >conftest.err
3069 cat conftest.err >&5
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); } >/dev/null; then
3072 if test -s conftest.err; then
3073 ac_cpp_err=$ac_c_preproc_warn_flag
3080 if test -z "$ac_cpp_err"; then
3081 # Broken: success on invalid input.
3084 echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3087 # Passes both tests.
3091 rm -f conftest.err conftest.$ac_ext
3094 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3095 rm -f conftest.err conftest.$ac_ext
3096 if $ac_preproc_ok; then
3108 echo "$as_me:$LINENO: result: $CPP" >&5
3109 echo "${ECHO_T}$CPP" >&6
3111 for ac_c_preproc_warn_flag in '' yes
3113 # Use a header file that comes with gcc, so configuring glibc
3114 # with a fresh cross-compiler works.
3115 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3116 # <limits.h> exists even on freestanding compilers.
3117 # On the NeXT, cc -E runs the code through the compiler's parser,
3118 # not just through cpp. "Syntax error" is here to catch this case.
3119 cat >conftest.$ac_ext <<_ACEOF
3120 #line $LINENO "configure"
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h. */
3127 # include <limits.h>
3129 # include <assert.h>
3133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3136 grep -v '^ *+' conftest.er1 >conftest.err
3138 cat conftest.err >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } >/dev/null; then
3141 if test -s conftest.err; then
3142 ac_cpp_err=$ac_c_preproc_warn_flag
3149 if test -z "$ac_cpp_err"; then
3152 echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3155 # Broken: fails on valid input.
3158 rm -f conftest.err conftest.$ac_ext
3160 # OK, works on sane cases. Now check whether non-existent headers
3161 # can be detected and how.
3162 cat >conftest.$ac_ext <<_ACEOF
3163 #line $LINENO "configure"
3166 cat confdefs.h >>conftest.$ac_ext
3167 cat >>conftest.$ac_ext <<_ACEOF
3168 /* end confdefs.h. */
3169 #include <ac_nonexistent.h>
3171 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3172 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3174 grep -v '^ *+' conftest.er1 >conftest.err
3176 cat conftest.err >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } >/dev/null; then
3179 if test -s conftest.err; then
3180 ac_cpp_err=$ac_c_preproc_warn_flag
3187 if test -z "$ac_cpp_err"; then
3188 # Broken: success on invalid input.
3191 echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3194 # Passes both tests.
3198 rm -f conftest.err conftest.$ac_ext
3201 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3202 rm -f conftest.err conftest.$ac_ext
3203 if $ac_preproc_ok; then
3206 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3207 See \`config.log' for more details." >&5
3208 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3209 See \`config.log' for more details." >&2;}
3210 { (exit 1); exit 1; }; }
3214 ac_cpp='$CPP $CPPFLAGS'
3215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3220 echo "$as_me:$LINENO: checking for egrep" >&5
3221 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3222 if test "${ac_cv_prog_egrep+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3226 then ac_cv_prog_egrep='grep -E'
3227 else ac_cv_prog_egrep='egrep'
3230 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3231 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3232 EGREP=$ac_cv_prog_egrep
3235 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3245 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3246 inttypes.h stdint.h unistd.h
3248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3249 echo "$as_me:$LINENO: checking for $ac_header" >&5
3250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 cat >conftest.$ac_ext <<_ACEOF
3255 #line $LINENO "configure"
3258 cat confdefs.h >>conftest.$ac_ext
3259 cat >>conftest.$ac_ext <<_ACEOF
3260 /* end confdefs.h. */
3261 $ac_includes_default
3263 #include <$ac_header>
3265 rm -f conftest.$ac_objext
3266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3267 (eval $ac_compile) 2>&5
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); } &&
3271 { ac_try='test -s conftest.$ac_objext'
3272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); }; }; then
3277 eval "$as_ac_Header=yes"
3279 echo "$as_me: failed program was:" >&5
3280 sed 's/^/| /' conftest.$ac_ext >&5
3282 eval "$as_ac_Header=no"
3284 rm -f conftest.$ac_objext conftest.$ac_ext
3286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3289 cat >>confdefs.h <<_ACEOF
3290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3300 echo "$as_me:$LINENO: checking for function prototypes" >&5
3301 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3302 if test "$am_cv_prog_cc_stdc" != no; then
3303 echo "$as_me:$LINENO: result: yes" >&5
3304 echo "${ECHO_T}yes" >&6
3306 cat >>confdefs.h <<\_ACEOF
3307 #define PROTOTYPES 1
3312 echo "$as_me:$LINENO: result: no" >&5
3313 echo "${ECHO_T}no" >&6
3314 U=_ ANSI2KNR=./ansi2knr
3316 # Ensure some checks needed by ansi2knr itself.
3317 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3318 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3319 if test "${ac_cv_header_stdc+set}" = set; then
3320 echo $ECHO_N "(cached) $ECHO_C" >&6
3322 cat >conftest.$ac_ext <<_ACEOF
3323 #line $LINENO "configure"
3326 cat confdefs.h >>conftest.$ac_ext
3327 cat >>conftest.$ac_ext <<_ACEOF
3328 /* end confdefs.h. */
3342 rm -f conftest.$ac_objext
3343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3344 (eval $ac_compile) 2>&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } &&
3348 { ac_try='test -s conftest.$ac_objext'
3349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353 (exit $ac_status); }; }; then
3354 ac_cv_header_stdc=yes
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3359 ac_cv_header_stdc=no
3361 rm -f conftest.$ac_objext conftest.$ac_ext
3363 if test $ac_cv_header_stdc = yes; then
3364 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3365 cat >conftest.$ac_ext <<_ACEOF
3366 #line $LINENO "configure"
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h. */
3375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3376 $EGREP "memchr" >/dev/null 2>&1; then
3379 ac_cv_header_stdc=no
3385 if test $ac_cv_header_stdc = yes; then
3386 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3387 cat >conftest.$ac_ext <<_ACEOF
3388 #line $LINENO "configure"
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3398 $EGREP "free" >/dev/null 2>&1; then
3401 ac_cv_header_stdc=no
3407 if test $ac_cv_header_stdc = yes; then
3408 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3409 if test "$cross_compiling" = yes; then
3412 cat >conftest.$ac_ext <<_ACEOF
3413 #line $LINENO "configure"
3416 cat confdefs.h >>conftest.$ac_ext
3417 cat >>conftest.$ac_ext <<_ACEOF
3418 /* end confdefs.h. */
3420 #if ((' ' & 0x0FF) == 0x020)
3421 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3422 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3424 # define ISLOWER(c) \
3425 (('a' <= (c) && (c) <= 'i') \
3426 || ('j' <= (c) && (c) <= 'r') \
3427 || ('s' <= (c) && (c) <= 'z'))
3428 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3431 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3436 for (i = 0; i < 256; i++)
3437 if (XOR (islower (i), ISLOWER (i))
3438 || toupper (i) != TOUPPER (i))
3443 rm -f conftest$ac_exeext
3444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3445 (eval $ac_link) 2>&5
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453 (exit $ac_status); }; }; then
3456 echo "$as_me: program exited with status $ac_status" >&5
3457 echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3461 ac_cv_header_stdc=no
3463 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3467 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3468 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3469 if test $ac_cv_header_stdc = yes; then
3471 cat >>confdefs.h <<\_ACEOF
3472 #define STDC_HEADERS 1
3478 for ac_header in string.h
3480 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3482 echo "$as_me:$LINENO: checking for $ac_header" >&5
3483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3485 echo $ECHO_N "(cached) $ECHO_C" >&6
3487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3490 # Is the header compilable?
3491 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3492 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3493 cat >conftest.$ac_ext <<_ACEOF
3494 #line $LINENO "configure"
3497 cat confdefs.h >>conftest.$ac_ext
3498 cat >>conftest.$ac_ext <<_ACEOF
3499 /* end confdefs.h. */
3500 $ac_includes_default
3501 #include <$ac_header>
3503 rm -f conftest.$ac_objext
3504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3505 (eval $ac_compile) 2>&5
3507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508 (exit $ac_status); } &&
3509 { ac_try='test -s conftest.$ac_objext'
3510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); }; }; then
3515 ac_header_compiler=yes
3517 echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3520 ac_header_compiler=no
3522 rm -f conftest.$ac_objext conftest.$ac_ext
3523 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3524 echo "${ECHO_T}$ac_header_compiler" >&6
3526 # Is the header present?
3527 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3529 cat >conftest.$ac_ext <<_ACEOF
3530 #line $LINENO "configure"
3533 cat confdefs.h >>conftest.$ac_ext
3534 cat >>conftest.$ac_ext <<_ACEOF
3535 /* end confdefs.h. */
3536 #include <$ac_header>
3538 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3539 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3541 grep -v '^ *+' conftest.er1 >conftest.err
3543 cat conftest.err >&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); } >/dev/null; then
3546 if test -s conftest.err; then
3547 ac_cpp_err=$ac_c_preproc_warn_flag
3554 if test -z "$ac_cpp_err"; then
3555 ac_header_preproc=yes
3557 echo "$as_me: failed program was:" >&5
3558 sed 's/^/| /' conftest.$ac_ext >&5
3560 ac_header_preproc=no
3562 rm -f conftest.err conftest.$ac_ext
3563 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3564 echo "${ECHO_T}$ac_header_preproc" >&6
3566 # So? What about this header?
3567 case $ac_header_compiler:$ac_header_preproc in
3569 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3570 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3575 ## ------------------------------------ ##
3576 ## Report this to bug-autoconf@gnu.org. ##
3577 ## ------------------------------------ ##
3580 sed "s/^/$as_me: WARNING: /" >&2
3583 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3585 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3586 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3591 ## ------------------------------------ ##
3592 ## Report this to bug-autoconf@gnu.org. ##
3593 ## ------------------------------------ ##
3596 sed "s/^/$as_me: WARNING: /" >&2
3599 echo "$as_me:$LINENO: checking for $ac_header" >&5
3600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3602 echo $ECHO_N "(cached) $ECHO_C" >&6
3604 eval "$as_ac_Header=$ac_header_preproc"
3606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3611 cat >>confdefs.h <<_ACEOF
3612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3620 if test "x$U" != "x"; then
3621 { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
3622 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
3623 { (exit 1); exit 1; }; }
3626 ac_cpp='$CPP $CPPFLAGS'
3627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3630 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3631 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3632 # On Suns, sometimes $CPP names a directory.
3633 if test -n "$CPP" && test -d "$CPP"; then
3636 if test -z "$CPP"; then
3637 if test "${ac_cv_prog_CPP+set}" = set; then
3638 echo $ECHO_N "(cached) $ECHO_C" >&6
3640 # Double quotes because CPP needs to be expanded
3641 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3644 for ac_c_preproc_warn_flag in '' yes
3646 # Use a header file that comes with gcc, so configuring glibc
3647 # with a fresh cross-compiler works.
3648 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3649 # <limits.h> exists even on freestanding compilers.
3650 # On the NeXT, cc -E runs the code through the compiler's parser,
3651 # not just through cpp. "Syntax error" is here to catch this case.
3652 cat >conftest.$ac_ext <<_ACEOF
3653 #line $LINENO "configure"
3656 cat confdefs.h >>conftest.$ac_ext
3657 cat >>conftest.$ac_ext <<_ACEOF
3658 /* end confdefs.h. */
3660 # include <limits.h>
3662 # include <assert.h>
3666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3667 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3669 grep -v '^ *+' conftest.er1 >conftest.err
3671 cat conftest.err >&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); } >/dev/null; then
3674 if test -s conftest.err; then
3675 ac_cpp_err=$ac_c_preproc_warn_flag
3682 if test -z "$ac_cpp_err"; then
3685 echo "$as_me: failed program was:" >&5
3686 sed 's/^/| /' conftest.$ac_ext >&5
3688 # Broken: fails on valid input.
3691 rm -f conftest.err conftest.$ac_ext
3693 # OK, works on sane cases. Now check whether non-existent headers
3694 # can be detected and how.
3695 cat >conftest.$ac_ext <<_ACEOF
3696 #line $LINENO "configure"
3699 cat confdefs.h >>conftest.$ac_ext
3700 cat >>conftest.$ac_ext <<_ACEOF
3701 /* end confdefs.h. */
3702 #include <ac_nonexistent.h>
3704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3705 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3707 grep -v '^ *+' conftest.er1 >conftest.err
3709 cat conftest.err >&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } >/dev/null; then
3712 if test -s conftest.err; then
3713 ac_cpp_err=$ac_c_preproc_warn_flag
3720 if test -z "$ac_cpp_err"; then
3721 # Broken: success on invalid input.
3724 echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.$ac_ext >&5
3727 # Passes both tests.
3731 rm -f conftest.err conftest.$ac_ext
3734 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3735 rm -f conftest.err conftest.$ac_ext
3736 if $ac_preproc_ok; then
3748 echo "$as_me:$LINENO: result: $CPP" >&5
3749 echo "${ECHO_T}$CPP" >&6
3751 for ac_c_preproc_warn_flag in '' yes
3753 # Use a header file that comes with gcc, so configuring glibc
3754 # with a fresh cross-compiler works.
3755 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3756 # <limits.h> exists even on freestanding compilers.
3757 # On the NeXT, cc -E runs the code through the compiler's parser,
3758 # not just through cpp. "Syntax error" is here to catch this case.
3759 cat >conftest.$ac_ext <<_ACEOF
3760 #line $LINENO "configure"
3763 cat confdefs.h >>conftest.$ac_ext
3764 cat >>conftest.$ac_ext <<_ACEOF
3765 /* end confdefs.h. */
3767 # include <limits.h>
3769 # include <assert.h>
3773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3774 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3776 grep -v '^ *+' conftest.er1 >conftest.err
3778 cat conftest.err >&5
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); } >/dev/null; then
3781 if test -s conftest.err; then
3782 ac_cpp_err=$ac_c_preproc_warn_flag
3789 if test -z "$ac_cpp_err"; then
3792 echo "$as_me: failed program was:" >&5
3793 sed 's/^/| /' conftest.$ac_ext >&5
3795 # Broken: fails on valid input.
3798 rm -f conftest.err conftest.$ac_ext
3800 # OK, works on sane cases. Now check whether non-existent headers
3801 # can be detected and how.
3802 cat >conftest.$ac_ext <<_ACEOF
3803 #line $LINENO "configure"
3806 cat confdefs.h >>conftest.$ac_ext
3807 cat >>conftest.$ac_ext <<_ACEOF
3808 /* end confdefs.h. */
3809 #include <ac_nonexistent.h>
3811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3812 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3814 grep -v '^ *+' conftest.er1 >conftest.err
3816 cat conftest.err >&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); } >/dev/null; then
3819 if test -s conftest.err; then
3820 ac_cpp_err=$ac_c_preproc_warn_flag
3827 if test -z "$ac_cpp_err"; then
3828 # Broken: success on invalid input.
3831 echo "$as_me: failed program was:" >&5
3832 sed 's/^/| /' conftest.$ac_ext >&5
3834 # Passes both tests.
3838 rm -f conftest.err conftest.$ac_ext
3841 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3842 rm -f conftest.err conftest.$ac_ext
3843 if $ac_preproc_ok; then
3846 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3847 See \`config.log' for more details." >&5
3848 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3849 See \`config.log' for more details." >&2;}
3850 { (exit 1); exit 1; }; }
3854 ac_cpp='$CPP $CPPFLAGS'
3855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3859 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3860 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3861 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3862 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3863 echo $ECHO_N "(cached) $ECHO_C" >&6
3865 cat >conftest.make <<\_ACEOF
3867 @echo 'ac_maketemp="$(MAKE)"'
3869 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3870 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3871 if test -n "$ac_maketemp"; then
3872 eval ac_cv_prog_make_${ac_make}_set=yes
3874 eval ac_cv_prog_make_${ac_make}_set=no
3878 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3879 echo "$as_me:$LINENO: result: yes" >&5
3880 echo "${ECHO_T}yes" >&6
3883 echo "$as_me:$LINENO: result: no" >&5
3884 echo "${ECHO_T}no" >&6
3885 SET_MAKE="MAKE=${MAKE-make}"
3888 # Find a good install program. We prefer a C program (faster),
3889 # so one script is as good as another. But avoid the broken or
3890 # incompatible versions:
3891 # SysV /etc/install, /usr/sbin/install
3892 # SunOS /usr/etc/install
3893 # IRIX /sbin/install
3895 # AmigaOS /C/install, which installs bootblocks on floppy discs
3896 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3897 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3898 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3899 # ./install, which can be erroneously created by make from ./install.sh.
3900 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3901 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3902 if test -z "$INSTALL"; then
3903 if test "${ac_cv_path_install+set}" = set; then
3904 echo $ECHO_N "(cached) $ECHO_C" >&6
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910 test -z "$as_dir" && as_dir=.
3911 # Account for people who put trailing slashes in PATH elements.
3913 ./ | .// | /cC/* | \
3914 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3917 # OSF1 and SCO ODT 3.0 have their own names for install.
3918 # Don't use installbsd from OSF since it installs stuff as root
3920 for ac_prog in ginstall scoinst install; do
3921 for ac_exec_ext in '' $ac_executable_extensions; do
3922 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3923 if test $ac_prog = install &&
3924 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3925 # AIX install. It has an incompatible calling convention.
3927 elif test $ac_prog = install &&
3928 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3929 # program-specific install script used by HP pwplus--don't use.
3932 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3944 if test "${ac_cv_path_install+set}" = set; then
3945 INSTALL=$ac_cv_path_install
3947 # As a last resort, use the slow shell script. We don't cache a
3948 # path for INSTALL within a source directory, because that will
3949 # break other packages using the cache if that directory is
3950 # removed, or if the path is relative.
3951 INSTALL=$ac_install_sh
3954 echo "$as_me:$LINENO: result: $INSTALL" >&5
3955 echo "${ECHO_T}$INSTALL" >&6
3957 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3958 # It thinks the first close brace ends the variable substitution.
3959 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3961 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3963 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3965 if test -n "$ac_tool_prefix"; then
3966 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3967 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3968 echo "$as_me:$LINENO: checking for $ac_word" >&5
3969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3970 if test "${ac_cv_prog_RANLIB+set}" = set; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3973 if test -n "$RANLIB"; then
3974 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980 test -z "$as_dir" && as_dir=.
3981 for ac_exec_ext in '' $ac_executable_extensions; do
3982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3983 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3992 RANLIB=$ac_cv_prog_RANLIB
3993 if test -n "$RANLIB"; then
3994 echo "$as_me:$LINENO: result: $RANLIB" >&5
3995 echo "${ECHO_T}$RANLIB" >&6
3997 echo "$as_me:$LINENO: result: no" >&5
3998 echo "${ECHO_T}no" >&6
4002 if test -z "$ac_cv_prog_RANLIB"; then
4003 ac_ct_RANLIB=$RANLIB
4004 # Extract the first word of "ranlib", so it can be a program name with args.
4005 set dummy ranlib; ac_word=$2
4006 echo "$as_me:$LINENO: checking for $ac_word" >&5
4007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4008 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4011 if test -n "$ac_ct_RANLIB"; then
4012 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 test -z "$as_dir" && as_dir=.
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4021 ac_cv_prog_ac_ct_RANLIB="ranlib"
4022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4028 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4031 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4032 if test -n "$ac_ct_RANLIB"; then
4033 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4034 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4036 echo "$as_me:$LINENO: result: no" >&5
4037 echo "${ECHO_T}no" >&6
4040 RANLIB=$ac_ct_RANLIB
4042 RANLIB="$ac_cv_prog_RANLIB"
4045 if test -n "$ac_tool_prefix"; then
4046 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4047 set dummy ${ac_tool_prefix}ar; ac_word=$2
4048 echo "$as_me:$LINENO: checking for $ac_word" >&5
4049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4050 if test "${ac_cv_prog_AR+set}" = set; then
4051 echo $ECHO_N "(cached) $ECHO_C" >&6
4053 if test -n "$AR"; then
4054 ac_cv_prog_AR="$AR" # Let the user override the test.
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060 test -z "$as_dir" && as_dir=.
4061 for ac_exec_ext in '' $ac_executable_extensions; do
4062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4063 ac_cv_prog_AR="${ac_tool_prefix}ar"
4064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4073 if test -n "$AR"; then
4074 echo "$as_me:$LINENO: result: $AR" >&5
4075 echo "${ECHO_T}$AR" >&6
4077 echo "$as_me:$LINENO: result: no" >&5
4078 echo "${ECHO_T}no" >&6
4082 if test -z "$ac_cv_prog_AR"; then
4084 # Extract the first word of "ar", so it can be a program name with args.
4085 set dummy ar; ac_word=$2
4086 echo "$as_me:$LINENO: checking for $ac_word" >&5
4087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4088 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4091 if test -n "$ac_ct_AR"; then
4092 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 test -z "$as_dir" && as_dir=.
4099 for ac_exec_ext in '' $ac_executable_extensions; do
4100 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4101 ac_cv_prog_ac_ct_AR="ar"
4102 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4108 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4111 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4112 if test -n "$ac_ct_AR"; then
4113 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4114 echo "${ECHO_T}$ac_ct_AR" >&6
4116 echo "$as_me:$LINENO: result: no" >&5
4117 echo "${ECHO_T}no" >&6
4126 echo "$as_me:$LINENO: checking for inline" >&5
4127 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4128 if test "${ac_cv_c_inline+set}" = set; then
4129 echo $ECHO_N "(cached) $ECHO_C" >&6
4132 for ac_kw in inline __inline__ __inline; do
4133 cat >conftest.$ac_ext <<_ACEOF
4134 #line $LINENO "configure"
4137 cat confdefs.h >>conftest.$ac_ext
4138 cat >>conftest.$ac_ext <<_ACEOF
4139 /* end confdefs.h. */
4142 static $ac_kw foo_t static_foo () {return 0; }
4143 $ac_kw foo_t foo () {return 0; }
4147 rm -f conftest.$ac_objext
4148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4149 (eval $ac_compile) 2>&5
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); } &&
4153 { ac_try='test -s conftest.$ac_objext'
4154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158 (exit $ac_status); }; }; then
4159 ac_cv_c_inline=$ac_kw; break
4161 echo "$as_me: failed program was:" >&5
4162 sed 's/^/| /' conftest.$ac_ext >&5
4165 rm -f conftest.$ac_objext conftest.$ac_ext
4169 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4170 echo "${ECHO_T}$ac_cv_c_inline" >&6
4171 case $ac_cv_c_inline in
4174 cat >>confdefs.h <<\_ACEOF
4178 *) cat >>confdefs.h <<_ACEOF
4179 #define inline $ac_cv_c_inline
4184 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4185 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4186 if test "${ac_cv_c_const+set}" = set; then
4187 echo $ECHO_N "(cached) $ECHO_C" >&6
4189 cat >conftest.$ac_ext <<_ACEOF
4190 #line $LINENO "configure"
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4200 /* FIXME: Include the comments suggested by Paul. */
4202 /* Ultrix mips cc rejects this. */
4203 typedef int charset[2];
4205 /* SunOS 4.1.1 cc rejects this. */
4206 char const *const *ccp;
4208 /* NEC SVR4.0.2 mips cc rejects this. */
4209 struct point {int x, y;};
4210 static struct point const zero = {0,0};
4211 /* AIX XL C 1.02.0.0 rejects this.
4212 It does not let you subtract one const X* pointer from another in
4213 an arm of an if-expression whose if-part is not a constant
4215 const char *g = "string";
4216 ccp = &g + (g ? g-g : 0);
4217 /* HPUX 7.0 cc rejects these. */
4220 ccp = (char const *const *) p;
4221 { /* SCO 3.2v4 cc rejects this. */
4223 char const *s = 0 ? (char *) 0 : (char const *) 0;
4227 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4229 const int *foo = &x[0];
4232 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4233 typedef const int *iptr;
4237 { /* AIX XL C 1.02.0.0 rejects this saying
4238 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4239 struct s { int j; const int *ap[3]; };
4240 struct s *b; b->j = 5;
4242 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4251 rm -f conftest.$ac_objext
4252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4253 (eval $ac_compile) 2>&5
4255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); } &&
4257 { ac_try='test -s conftest.$ac_objext'
4258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); }; }; then
4265 echo "$as_me: failed program was:" >&5
4266 sed 's/^/| /' conftest.$ac_ext >&5
4270 rm -f conftest.$ac_objext conftest.$ac_ext
4272 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4273 echo "${ECHO_T}$ac_cv_c_const" >&6
4274 if test $ac_cv_c_const = no; then
4276 cat >>confdefs.h <<\_ACEOF
4283 # Extract the first word of "dbx", so it can be a program name with args.
4284 set dummy dbx; ac_word=$2
4285 echo "$as_me:$LINENO: checking for $ac_word" >&5
4286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4287 if test "${ac_cv_path_DBX+set}" = set; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4292 ac_cv_path_DBX="$DBX" # Let the user override the test with a path.
4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299 test -z "$as_dir" && as_dir=.
4300 for ac_exec_ext in '' $ac_executable_extensions; do
4301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4302 ac_cv_path_DBX="$as_dir/$ac_word$ac_exec_ext"
4303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4309 test -z "$ac_cv_path_DBX" && ac_cv_path_DBX="no"
4315 if test -n "$DBX"; then
4316 echo "$as_me:$LINENO: result: $DBX" >&5
4317 echo "${ECHO_T}$DBX" >&6
4319 echo "$as_me:$LINENO: result: no" >&5
4320 echo "${ECHO_T}no" >&6
4323 # Extract the first word of "gdb", so it can be a program name with args.
4324 set dummy gdb; ac_word=$2
4325 echo "$as_me:$LINENO: checking for $ac_word" >&5
4326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4327 if test "${ac_cv_path_GDB+set}" = set; then
4328 echo $ECHO_N "(cached) $ECHO_C" >&6
4332 ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
4335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339 test -z "$as_dir" && as_dir=.
4340 for ac_exec_ext in '' $ac_executable_extensions; do
4341 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4342 ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
4343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4349 test -z "$ac_cv_path_GDB" && ac_cv_path_GDB="no"
4355 if test -n "$GDB"; then
4356 echo "$as_me:$LINENO: result: $GDB" >&5
4357 echo "${ECHO_T}$GDB" >&6
4359 echo "$as_me:$LINENO: result: no" >&5
4360 echo "${ECHO_T}no" >&6
4363 # Extract the first word of "sdb", so it can be a program name with args.
4364 set dummy sdb; ac_word=$2
4365 echo "$as_me:$LINENO: checking for $ac_word" >&5
4366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4367 if test "${ac_cv_path_SDB+set}" = set; then
4368 echo $ECHO_N "(cached) $ECHO_C" >&6
4372 ac_cv_path_SDB="$SDB" # Let the user override the test with a path.
4375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4379 test -z "$as_dir" && as_dir=.
4380 for ac_exec_ext in '' $ac_executable_extensions; do
4381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4382 ac_cv_path_SDB="$as_dir/$ac_word$ac_exec_ext"
4383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4389 test -z "$ac_cv_path_SDB" && ac_cv_path_SDB="no"
4395 if test -n "$SDB"; then
4396 echo "$as_me:$LINENO: result: $SDB" >&5
4397 echo "${ECHO_T}$SDB" >&6
4399 echo "$as_me:$LINENO: result: no" >&5
4400 echo "${ECHO_T}no" >&6
4404 if test $GDB != no ; then
4406 elif test $DBX != no ; then
4408 elif test $SDB != no ; then
4416 # The following templates should be used with newer automakes
4417 # instead of acconfig.h
4419 #AH_TEMPLATE([sig_atomic_t],
4420 # [/* Define to `int' if <signal.h> doesn't define.])
4421 #AH_TEMPLATE([HAVE_START_COLOR],
4422 # [Define if you have start_color, as a function or macro.])
4423 #AH_TEMPLATE([HAVE_TYPEAHEAD],
4424 # [Define if you have typeahead, as a function or macro.])
4425 #AH_TEMPLATE([HAVE_BKGDSET],
4426 # [Define if you have bkgdset, as a function or macro.])
4427 #AH_TEMPLATE([HAVE_CURS_SET],
4428 # [Define if you have curs_set, as a function or macro.])
4429 #AH_TEMPLATE([HAVE_META],
4430 # [Define if you have meta, as a function or macro.])
4431 #AH_TEMPLATE([HAVE_USE_DEFAULT_COLORS],
4432 # [Define if you have use_default_colors, as a function or macro.])
4433 #AH_TEMPLATE([HAVE_RESIZETERM],
4434 # [Define if you have resizeterm, as a function or macro.])
4435 #AH_TEMPLATE([SIG_ATOMIC_VOLATILE_T],
4436 # [Some systems declare sig_atomic_t as volatile, some others -- no.
4437 # This define will have value `sig_atomic_t' or
4438 # `volatile sig_atomic_t' accordingly.])
4439 #AH_TEMPLATE([ICONV_NONTRANS],
4440 # [Define as 1 if iconv() only converts exactly and we should treat
4441 # all return values other than (size_t)(-1) as equivalent.])
4444 ac_aux_path_sendmail=/usr/sbin:/usr/lib
4445 # Extract the first word of "sendmail", so it can be a program name with args.
4446 set dummy sendmail; ac_word=$2
4447 echo "$as_me:$LINENO: checking for $ac_word" >&5
4448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4449 if test "${ac_cv_path_SENDMAIL+set}" = set; then
4450 echo $ECHO_N "(cached) $ECHO_C" >&6
4454 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 as_dummy="$PATH:$ac_aux_path_sendmail"
4459 for as_dir in $as_dummy
4462 test -z "$as_dir" && as_dir=.
4463 for ac_exec_ext in '' $ac_executable_extensions; do
4464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4465 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
4466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4472 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/sbin/sendmail"
4476 SENDMAIL=$ac_cv_path_SENDMAIL
4478 if test -n "$SENDMAIL"; then
4479 echo "$as_me:$LINENO: result: $SENDMAIL" >&5
4480 echo "${ECHO_T}$SENDMAIL" >&6
4482 echo "$as_me:$LINENO: result: no" >&5
4483 echo "${ECHO_T}no" >&6
4487 cat >>confdefs.h <<_ACEOF
4488 #define SENDMAIL "$ac_cv_path_SENDMAIL"
4493 if test -f $srcdir/EXPORTABLE ; then
4498 # Check whether --enable-pgp or --disable-pgp was given.
4499 if test "${enable_pgp+set}" = set; then
4500 enableval="$enable_pgp"
4501 if test x$enableval = xno ; then
4507 if test x$have_pgp != xno ; then
4509 cat >>confdefs.h <<\_ACEOF
4510 #define CRYPT_BACKEND_CLASSIC_PGP 1
4513 PGPAUX_TARGET="pgpring pgpewrap"
4514 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pgp.o pgpinvoke.o pgpkey.o pgplib.o gnupgparse.o pgpmicalg.o pgppacket.o"
4517 # Check whether --enable-smime or --disable-smime was given.
4518 if test "${enable_smime+set}" = set; then
4519 enableval="$enable_smime"
4520 if test x$enableval = xno ; then
4526 if test x$have_smime != xno ; then
4528 cat >>confdefs.h <<\_ACEOF
4529 #define CRYPT_BACKEND_CLASSIC_SMIME 1
4532 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS smime.o "
4533 SMIMEAUX_TARGET="smime_keys"
4537 # Check whether --with-mixmaster or --without-mixmaster was given.
4538 if test "${with_mixmaster+set}" = set; then
4539 withval="$with_mixmaster"
4540 if test -x "$withval" ; then
4541 MIXMASTER="$withval"
4543 MIXMASTER="mixmaster"
4545 OPS="$OPS \$(srcdir)/OPS.MIX"
4546 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS remailer.o"
4548 cat >>confdefs.h <<_ACEOF
4549 #define MIXMASTER "$MIXMASTER"
4556 # We now require all OPS
4557 OPS="$OPS \$(srcdir)/OPS.PGP \$(srcdir)/OPS.SMIME \$(srcdir)/OPS.CRYPT "
4565 cat >>confdefs.h <<_ACEOF
4566 #define SUBVERSION "$SUBVERSION"
4571 # Extract the first word of "ispell", so it can be a program name with args.
4572 set dummy ispell; ac_word=$2
4573 echo "$as_me:$LINENO: checking for $ac_word" >&5
4574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4575 if test "${ac_cv_path_ISPELL+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4580 ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a path.
4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 test -z "$as_dir" && as_dir=.
4588 for ac_exec_ext in '' $ac_executable_extensions; do
4589 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4590 ac_cv_path_ISPELL="$as_dir/$ac_word$ac_exec_ext"
4591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4597 test -z "$ac_cv_path_ISPELL" && ac_cv_path_ISPELL="no"
4601 ISPELL=$ac_cv_path_ISPELL
4603 if test -n "$ISPELL"; then
4604 echo "$as_me:$LINENO: result: $ISPELL" >&5
4605 echo "${ECHO_T}$ISPELL" >&6
4607 echo "$as_me:$LINENO: result: no" >&5
4608 echo "${ECHO_T}no" >&6
4611 if test $ISPELL != no; then
4613 cat >>confdefs.h <<_ACEOF
4614 #define ISPELL "$ISPELL"
4620 # Check whether --with-slang or --without-slang was given.
4621 if test "${with_slang+set}" = set; then
4622 withval="$with_slang"
4623 echo "$as_me:$LINENO: checking if this is a BSD system" >&5
4624 echo $ECHO_N "checking if this is a BSD system... $ECHO_C" >&6
4625 if test "${mutt_cv_bsdish+set}" = set; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4628 if test "$cross_compiling" = yes; then
4631 cat >conftest.$ac_ext <<_ACEOF
4632 #line $LINENO "configure"
4635 cat confdefs.h >>conftest.$ac_ext
4636 cat >>conftest.$ac_ext <<_ACEOF
4637 /* end confdefs.h. */
4638 #include <sys/param.h>
4649 rm -f conftest$ac_exeext
4650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4651 (eval $ac_link) 2>&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); }; }; then
4662 echo "$as_me: program exited with status $ac_status" >&5
4663 echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4669 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4672 echo "$as_me:$LINENO: result: $mutt_cv_bsdish" >&5
4673 echo "${ECHO_T}$mutt_cv_bsdish" >&6
4675 echo "$as_me:$LINENO: checking for S-Lang" >&5
4676 echo $ECHO_N "checking for S-Lang... $ECHO_C" >&6
4677 if test $withval = yes; then
4678 if test -d $srcdir/../slang; then
4679 mutt_cv_slang=$srcdir/../slang/src
4680 CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
4681 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
4683 if test -d $mutt_cv_prefix/include/slang; then
4684 CPPFLAGS="$CPPFLAGS -I$mutt_cv_prefix/include/slang"
4685 elif test -d /usr/include/slang; then
4686 CPPFLAGS="$CPPFLAGS -I/usr/include/slang"
4691 if test -f $withval/src/slang.h; then
4692 mutt_cv_slang=$withval/src
4693 CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
4694 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
4696 mutt_cv_slang=$withval
4697 if test -d $withval/include/slang; then
4698 CPPFLAGS="$CPPFLAGS -I${withval}/include/slang"
4699 elif test -d $withval/include; then
4700 CPPFLAGS="$CPPFLAGS -I${withval}/include"
4702 LDFLAGS="$LDFLAGS -L${withval}/lib"
4705 echo "$as_me:$LINENO: result: $mutt_cv_slang" >&5
4706 echo "${ECHO_T}$mutt_cv_slang" >&6
4707 if test $mutt_cv_bsdish = yes; then
4709 echo "$as_me:$LINENO: checking for main in -ltermlib" >&5
4710 echo $ECHO_N "checking for main in -ltermlib... $ECHO_C" >&6
4711 if test "${ac_cv_lib_termlib_main+set}" = set; then
4712 echo $ECHO_N "(cached) $ECHO_C" >&6
4714 ac_check_lib_save_LIBS=$LIBS
4715 LIBS="-ltermlib $LIBS"
4716 cat >conftest.$ac_ext <<_ACEOF
4717 #line $LINENO "configure"
4720 cat confdefs.h >>conftest.$ac_ext
4721 cat >>conftest.$ac_ext <<_ACEOF
4722 /* end confdefs.h. */
4733 rm -f conftest.$ac_objext conftest$ac_exeext
4734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4735 (eval $ac_link) 2>&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); } &&
4739 { ac_try='test -s conftest$ac_exeext'
4740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744 (exit $ac_status); }; }; then
4745 ac_cv_lib_termlib_main=yes
4747 echo "$as_me: failed program was:" >&5
4748 sed 's/^/| /' conftest.$ac_ext >&5
4750 ac_cv_lib_termlib_main=no
4752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4753 LIBS=$ac_check_lib_save_LIBS
4755 echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_main" >&5
4756 echo "${ECHO_T}$ac_cv_lib_termlib_main" >&6
4757 if test $ac_cv_lib_termlib_main = yes; then
4758 cat >>confdefs.h <<_ACEOF
4759 #define HAVE_LIBTERMLIB 1
4762 LIBS="-ltermlib $LIBS"
4768 cat >>confdefs.h <<\_ACEOF
4769 #define USE_SLANG_CURSES 1
4773 cat >>confdefs.h <<\_ACEOF
4774 #define HAVE_COLOR 1
4777 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
4780 echo "$as_me:$LINENO: checking for SLtt_get_terminfo in -lslang" >&5
4781 echo $ECHO_N "checking for SLtt_get_terminfo in -lslang... $ECHO_C" >&6
4782 if test "${ac_cv_lib_slang_SLtt_get_terminfo+set}" = set; then
4783 echo $ECHO_N "(cached) $ECHO_C" >&6
4785 ac_check_lib_save_LIBS=$LIBS
4786 LIBS="-lslang -lm $LIBS"
4787 cat >conftest.$ac_ext <<_ACEOF
4788 #line $LINENO "configure"
4791 cat confdefs.h >>conftest.$ac_ext
4792 cat >>conftest.$ac_ext <<_ACEOF
4793 /* end confdefs.h. */
4795 /* Override any gcc2 internal prototype to avoid an error. */
4799 /* We use char because int might match the return type of a gcc2
4800 builtin and then its argument prototype would still apply. */
4801 char SLtt_get_terminfo ();
4805 SLtt_get_terminfo ();
4810 rm -f conftest.$ac_objext conftest$ac_exeext
4811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4812 (eval $ac_link) 2>&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); } &&
4816 { ac_try='test -s conftest$ac_exeext'
4817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821 (exit $ac_status); }; }; then
4822 ac_cv_lib_slang_SLtt_get_terminfo=yes
4824 echo "$as_me: failed program was:" >&5
4825 sed 's/^/| /' conftest.$ac_ext >&5
4827 ac_cv_lib_slang_SLtt_get_terminfo=no
4829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4830 LIBS=$ac_check_lib_save_LIBS
4832 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLtt_get_terminfo" >&5
4833 echo "${ECHO_T}$ac_cv_lib_slang_SLtt_get_terminfo" >&6
4834 if test $ac_cv_lib_slang_SLtt_get_terminfo = yes; then
4835 MUTTLIBS="$MUTTLIBS -lslang -lm"
4837 { { echo "$as_me:$LINENO: error: unable to compile. check config.log" >&5
4838 echo "$as_me: error: unable to compile. check config.log" >&2;}
4839 { (exit 1); exit 1; }; }
4847 # Check whether --with-curses or --without-curses was given.
4848 if test "${with_curses+set}" = set; then
4849 withval="$with_curses"
4850 if test $withval != yes; then
4851 mutt_cv_curses=$withval
4853 if test x$mutt_cv_curses != x/usr; then
4854 LDFLAGS="-L${mutt_cv_curses}/lib $LDFLAGS"
4855 CPPFLAGS="$CPPFLAGS -I${mutt_cv_curses}/include"
4859 echo "$as_me:$LINENO: checking for initscr" >&5
4860 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
4861 if test "${ac_cv_func_initscr+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4864 cat >conftest.$ac_ext <<_ACEOF
4865 #line $LINENO "configure"
4868 cat confdefs.h >>conftest.$ac_ext
4869 cat >>conftest.$ac_ext <<_ACEOF
4870 /* end confdefs.h. */
4871 /* System header to define __stub macros and hopefully few prototypes,
4872 which can conflict with char initscr (); below.
4873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4874 <limits.h> exists even on freestanding compilers. */
4876 # include <limits.h>
4878 # include <assert.h>
4880 /* Override any gcc2 internal prototype to avoid an error. */
4885 /* We use char because int might match the return type of a gcc2
4886 builtin and then its argument prototype would still apply. */
4888 /* The GNU C library defines this for functions which it implements
4889 to always fail with ENOSYS. Some functions are actually named
4890 something starting with __ and the normal name is an alias. */
4891 #if defined (__stub_initscr) || defined (__stub___initscr)
4894 char (*f) () = initscr;
4903 return f != initscr;
4908 rm -f conftest.$ac_objext conftest$ac_exeext
4909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4910 (eval $ac_link) 2>&5
4912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913 (exit $ac_status); } &&
4914 { ac_try='test -s conftest$ac_exeext'
4915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); }; }; then
4920 ac_cv_func_initscr=yes
4922 echo "$as_me: failed program was:" >&5
4923 sed 's/^/| /' conftest.$ac_ext >&5
4925 ac_cv_func_initscr=no
4927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4929 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
4930 echo "${ECHO_T}$ac_cv_func_initscr" >&6
4931 if test $ac_cv_func_initscr = yes; then
4935 cf_ncurses="ncurses"
4936 for lib in ncurses ncursesw
4938 as_ac_Lib=`echo "ac_cv_lib_$lib''_waddnwstr" | $as_tr_sh`
4939 echo "$as_me:$LINENO: checking for waddnwstr in -l$lib" >&5
4940 echo $ECHO_N "checking for waddnwstr in -l$lib... $ECHO_C" >&6
4941 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4944 ac_check_lib_save_LIBS=$LIBS
4946 cat >conftest.$ac_ext <<_ACEOF
4947 #line $LINENO "configure"
4950 cat confdefs.h >>conftest.$ac_ext
4951 cat >>conftest.$ac_ext <<_ACEOF
4952 /* end confdefs.h. */
4954 /* Override any gcc2 internal prototype to avoid an error. */
4958 /* We use char because int might match the return type of a gcc2
4959 builtin and then its argument prototype would still apply. */
4969 rm -f conftest.$ac_objext conftest$ac_exeext
4970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4971 (eval $ac_link) 2>&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); } &&
4975 { ac_try='test -s conftest$ac_exeext'
4976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); }; }; then
4981 eval "$as_ac_Lib=yes"
4983 echo "$as_me: failed program was:" >&5
4984 sed 's/^/| /' conftest.$ac_ext >&5
4986 eval "$as_ac_Lib=no"
4988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4989 LIBS=$ac_check_lib_save_LIBS
4991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
4992 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
4993 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
4994 cf_ncurses="$lib"; break
4998 as_ac_Lib=`echo "ac_cv_lib_$cf_ncurses''_initscr" | $as_tr_sh`
4999 echo "$as_me:$LINENO: checking for initscr in -l$cf_ncurses" >&5
5000 echo $ECHO_N "checking for initscr in -l$cf_ncurses... $ECHO_C" >&6
5001 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5002 echo $ECHO_N "(cached) $ECHO_C" >&6
5004 ac_check_lib_save_LIBS=$LIBS
5005 LIBS="-l$cf_ncurses $LIBS"
5006 cat >conftest.$ac_ext <<_ACEOF
5007 #line $LINENO "configure"
5010 cat confdefs.h >>conftest.$ac_ext
5011 cat >>conftest.$ac_ext <<_ACEOF
5012 /* end confdefs.h. */
5014 /* Override any gcc2 internal prototype to avoid an error. */
5018 /* We use char because int might match the return type of a gcc2
5019 builtin and then its argument prototype would still apply. */
5029 rm -f conftest.$ac_objext conftest$ac_exeext
5030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5031 (eval $ac_link) 2>&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); } &&
5035 { ac_try='test -s conftest$ac_exeext'
5036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); }; }; then
5041 eval "$as_ac_Lib=yes"
5043 echo "$as_me: failed program was:" >&5
5044 sed 's/^/| /' conftest.$ac_ext >&5
5046 eval "$as_ac_Lib=no"
5048 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5049 LIBS=$ac_check_lib_save_LIBS
5051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5052 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5053 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5054 MUTTLIBS="$MUTTLIBS -l$cf_ncurses"
5055 if test x$mutt_cv_curses = x/usr -a -d /usr/include/ncurses; then
5056 CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
5059 if test "$cf_ncurses" = ncursesw; then
5061 for ac_header in ncursesw/ncurses.h
5063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5065 echo "$as_me:$LINENO: checking for $ac_header" >&5
5066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5073 # Is the header compilable?
5074 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5075 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5076 cat >conftest.$ac_ext <<_ACEOF
5077 #line $LINENO "configure"
5080 cat confdefs.h >>conftest.$ac_ext
5081 cat >>conftest.$ac_ext <<_ACEOF
5082 /* end confdefs.h. */
5083 $ac_includes_default
5084 #include <$ac_header>
5086 rm -f conftest.$ac_objext
5087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5088 (eval $ac_compile) 2>&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); } &&
5092 { ac_try='test -s conftest.$ac_objext'
5093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); }; }; then
5098 ac_header_compiler=yes
5100 echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.$ac_ext >&5
5103 ac_header_compiler=no
5105 rm -f conftest.$ac_objext conftest.$ac_ext
5106 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5107 echo "${ECHO_T}$ac_header_compiler" >&6
5109 # Is the header present?
5110 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5112 cat >conftest.$ac_ext <<_ACEOF
5113 #line $LINENO "configure"
5116 cat confdefs.h >>conftest.$ac_ext
5117 cat >>conftest.$ac_ext <<_ACEOF
5118 /* end confdefs.h. */
5119 #include <$ac_header>
5121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5124 grep -v '^ *+' conftest.er1 >conftest.err
5126 cat conftest.err >&5
5127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128 (exit $ac_status); } >/dev/null; then
5129 if test -s conftest.err; then
5130 ac_cpp_err=$ac_c_preproc_warn_flag
5137 if test -z "$ac_cpp_err"; then
5138 ac_header_preproc=yes
5140 echo "$as_me: failed program was:" >&5
5141 sed 's/^/| /' conftest.$ac_ext >&5
5143 ac_header_preproc=no
5145 rm -f conftest.err conftest.$ac_ext
5146 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5147 echo "${ECHO_T}$ac_header_preproc" >&6
5149 # So? What about this header?
5150 case $ac_header_compiler:$ac_header_preproc in
5152 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5153 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5158 ## ------------------------------------ ##
5159 ## Report this to bug-autoconf@gnu.org. ##
5160 ## ------------------------------------ ##
5163 sed "s/^/$as_me: WARNING: /" >&2
5166 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5167 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5168 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5169 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5174 ## ------------------------------------ ##
5175 ## Report this to bug-autoconf@gnu.org. ##
5176 ## ------------------------------------ ##
5179 sed "s/^/$as_me: WARNING: /" >&2
5182 echo "$as_me:$LINENO: checking for $ac_header" >&5
5183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5187 eval "$as_ac_Header=$ac_header_preproc"
5189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5193 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5194 cat >>confdefs.h <<_ACEOF
5195 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5197 cf_cv_ncurses_header="ncursesw/ncurses.h"
5204 for ac_header in ncurses.h
5206 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5208 echo "$as_me:$LINENO: checking for $ac_header" >&5
5209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5211 echo $ECHO_N "(cached) $ECHO_C" >&6
5213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5216 # Is the header compilable?
5217 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5219 cat >conftest.$ac_ext <<_ACEOF
5220 #line $LINENO "configure"
5223 cat confdefs.h >>conftest.$ac_ext
5224 cat >>conftest.$ac_ext <<_ACEOF
5225 /* end confdefs.h. */
5226 $ac_includes_default
5227 #include <$ac_header>
5229 rm -f conftest.$ac_objext
5230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5231 (eval $ac_compile) 2>&5
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); } &&
5235 { ac_try='test -s conftest.$ac_objext'
5236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); }; }; then
5241 ac_header_compiler=yes
5243 echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.$ac_ext >&5
5246 ac_header_compiler=no
5248 rm -f conftest.$ac_objext conftest.$ac_ext
5249 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5250 echo "${ECHO_T}$ac_header_compiler" >&6
5252 # Is the header present?
5253 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5255 cat >conftest.$ac_ext <<_ACEOF
5256 #line $LINENO "configure"
5259 cat confdefs.h >>conftest.$ac_ext
5260 cat >>conftest.$ac_ext <<_ACEOF
5261 /* end confdefs.h. */
5262 #include <$ac_header>
5264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5265 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5267 grep -v '^ *+' conftest.er1 >conftest.err
5269 cat conftest.err >&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); } >/dev/null; then
5272 if test -s conftest.err; then
5273 ac_cpp_err=$ac_c_preproc_warn_flag
5280 if test -z "$ac_cpp_err"; then
5281 ac_header_preproc=yes
5283 echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5286 ac_header_preproc=no
5288 rm -f conftest.err conftest.$ac_ext
5289 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5290 echo "${ECHO_T}$ac_header_preproc" >&6
5292 # So? What about this header?
5293 case $ac_header_compiler:$ac_header_preproc in
5295 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5301 ## ------------------------------------ ##
5302 ## Report this to bug-autoconf@gnu.org. ##
5303 ## ------------------------------------ ##
5306 sed "s/^/$as_me: WARNING: /" >&2
5309 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5310 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5311 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5312 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5314 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5317 ## ------------------------------------ ##
5318 ## Report this to bug-autoconf@gnu.org. ##
5319 ## ------------------------------------ ##
5322 sed "s/^/$as_me: WARNING: /" >&2
5325 echo "$as_me:$LINENO: checking for $ac_header" >&5
5326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5328 echo $ECHO_N "(cached) $ECHO_C" >&6
5330 eval "$as_ac_Header=$ac_header_preproc"
5332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5337 cat >>confdefs.h <<_ACEOF
5338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5340 cf_cv_ncurses_header="ncurses.h"
5348 echo "$as_me:$LINENO: checking for initscr" >&5
5349 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
5350 if test "${ac_cv_func_initscr+set}" = set; then
5351 echo $ECHO_N "(cached) $ECHO_C" >&6
5353 cat >conftest.$ac_ext <<_ACEOF
5354 #line $LINENO "configure"
5357 cat confdefs.h >>conftest.$ac_ext
5358 cat >>conftest.$ac_ext <<_ACEOF
5359 /* end confdefs.h. */
5360 /* System header to define __stub macros and hopefully few prototypes,
5361 which can conflict with char initscr (); below.
5362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5363 <limits.h> exists even on freestanding compilers. */
5365 # include <limits.h>
5367 # include <assert.h>
5369 /* Override any gcc2 internal prototype to avoid an error. */
5374 /* We use char because int might match the return type of a gcc2
5375 builtin and then its argument prototype would still apply. */
5377 /* The GNU C library defines this for functions which it implements
5378 to always fail with ENOSYS. Some functions are actually named
5379 something starting with __ and the normal name is an alias. */
5380 #if defined (__stub_initscr) || defined (__stub___initscr)
5383 char (*f) () = initscr;
5392 return f != initscr;
5397 rm -f conftest.$ac_objext conftest$ac_exeext
5398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5399 (eval $ac_link) 2>&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); } &&
5403 { ac_try='test -s conftest$ac_exeext'
5404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); }; }; then
5409 ac_cv_func_initscr=yes
5411 echo "$as_me: failed program was:" >&5
5412 sed 's/^/| /' conftest.$ac_ext >&5
5414 ac_cv_func_initscr=no
5416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5418 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
5419 echo "${ECHO_T}$ac_cv_func_initscr" >&6
5420 if test $ac_cv_func_initscr = yes; then
5424 case $host_os in #(vi
5426 echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5
5427 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
5428 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
5429 echo $ECHO_N "(cached) $ECHO_C" >&6
5431 ac_check_lib_save_LIBS=$LIBS
5432 LIBS="-lmytinfo $LIBS"
5433 cat >conftest.$ac_ext <<_ACEOF
5434 #line $LINENO "configure"
5437 cat confdefs.h >>conftest.$ac_ext
5438 cat >>conftest.$ac_ext <<_ACEOF
5439 /* end confdefs.h. */
5441 /* Override any gcc2 internal prototype to avoid an error. */
5445 /* We use char because int might match the return type of a gcc2
5446 builtin and then its argument prototype would still apply. */
5456 rm -f conftest.$ac_objext conftest$ac_exeext
5457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5458 (eval $ac_link) 2>&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); } &&
5462 { ac_try='test -s conftest$ac_exeext'
5463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }; }; then
5468 ac_cv_lib_mytinfo_tgoto=yes
5470 echo "$as_me: failed program was:" >&5
5471 sed 's/^/| /' conftest.$ac_ext >&5
5473 ac_cv_lib_mytinfo_tgoto=no
5475 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5476 LIBS=$ac_check_lib_save_LIBS
5478 echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5
5479 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
5480 if test $ac_cv_lib_mytinfo_tgoto = yes; then
5481 LIBS="-lmytinfo $LIBS"
5486 echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5
5487 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
5488 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
5489 echo $ECHO_N "(cached) $ECHO_C" >&6
5491 ac_check_lib_save_LIBS=$LIBS
5492 LIBS="-lcur_colr $LIBS"
5493 cat >conftest.$ac_ext <<_ACEOF
5494 #line $LINENO "configure"
5497 cat confdefs.h >>conftest.$ac_ext
5498 cat >>conftest.$ac_ext <<_ACEOF
5499 /* end confdefs.h. */
5501 /* Override any gcc2 internal prototype to avoid an error. */
5505 /* We use char because int might match the return type of a gcc2
5506 builtin and then its argument prototype would still apply. */
5516 rm -f conftest.$ac_objext conftest$ac_exeext
5517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5518 (eval $ac_link) 2>&5
5520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); } &&
5522 { ac_try='test -s conftest$ac_exeext'
5523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); }; }; then
5528 ac_cv_lib_cur_colr_initscr=yes
5530 echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.$ac_ext >&5
5533 ac_cv_lib_cur_colr_initscr=no
5535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5536 LIBS=$ac_check_lib_save_LIBS
5538 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5
5539 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
5540 if test $ac_cv_lib_cur_colr_initscr = yes; then
5542 LIBS="-lcur_colr $LIBS"
5543 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
5544 ac_cv_func_initscr=yes
5548 echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5
5549 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
5550 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5553 ac_check_lib_save_LIBS=$LIBS
5554 LIBS="-lHcurses $LIBS"
5555 cat >conftest.$ac_ext <<_ACEOF
5556 #line $LINENO "configure"
5559 cat confdefs.h >>conftest.$ac_ext
5560 cat >>conftest.$ac_ext <<_ACEOF
5561 /* end confdefs.h. */
5563 /* Override any gcc2 internal prototype to avoid an error. */
5567 /* We use char because int might match the return type of a gcc2
5568 builtin and then its argument prototype would still apply. */
5578 rm -f conftest.$ac_objext conftest$ac_exeext
5579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5580 (eval $ac_link) 2>&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } &&
5584 { ac_try='test -s conftest$ac_exeext'
5585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); }; }; then
5590 ac_cv_lib_Hcurses_initscr=yes
5592 echo "$as_me: failed program was:" >&5
5593 sed 's/^/| /' conftest.$ac_ext >&5
5595 ac_cv_lib_Hcurses_initscr=no
5597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5598 LIBS=$ac_check_lib_save_LIBS
5600 echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5
5601 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
5602 if test $ac_cv_lib_Hcurses_initscr = yes; then
5604 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
5605 LIBS="-lHcurses $LIBS"
5606 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
5607 ac_cv_func_initscr=yes
5614 linux*) # Suse Linux does not follow /usr/lib convention
5619 if test ".$With5lib" != ".no" ; then
5620 if test -d /usr/5lib ; then
5622 CPPFLAGS="$CPPFLAGS -I/usr/5include"
5623 LIBS="$LIBS -L/usr/5lib"
5627 if test ".$ac_cv_func_initscr" != .yes ; then
5628 cf_save_LIBS="$LIBS"
5632 # Check for library containing tgoto. Do this before curses library
5633 # because it may be needed to link the test-case for initscr.
5634 echo "$as_me:$LINENO: checking for tgoto" >&5
5635 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
5636 if test "${ac_cv_func_tgoto+set}" = set; then
5637 echo $ECHO_N "(cached) $ECHO_C" >&6
5639 cat >conftest.$ac_ext <<_ACEOF
5640 #line $LINENO "configure"
5643 cat confdefs.h >>conftest.$ac_ext
5644 cat >>conftest.$ac_ext <<_ACEOF
5645 /* end confdefs.h. */
5646 /* System header to define __stub macros and hopefully few prototypes,
5647 which can conflict with char tgoto (); below.
5648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5649 <limits.h> exists even on freestanding compilers. */
5651 # include <limits.h>
5653 # include <assert.h>
5655 /* Override any gcc2 internal prototype to avoid an error. */
5660 /* We use char because int might match the return type of a gcc2
5661 builtin and then its argument prototype would still apply. */
5663 /* The GNU C library defines this for functions which it implements
5664 to always fail with ENOSYS. Some functions are actually named
5665 something starting with __ and the normal name is an alias. */
5666 #if defined (__stub_tgoto) || defined (__stub___tgoto)
5669 char (*f) () = tgoto;
5683 rm -f conftest.$ac_objext conftest$ac_exeext
5684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5685 (eval $ac_link) 2>&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); } &&
5689 { ac_try='test -s conftest$ac_exeext'
5690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); }; }; then
5695 ac_cv_func_tgoto=yes
5697 echo "$as_me: failed program was:" >&5
5698 sed 's/^/| /' conftest.$ac_ext >&5
5702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5704 echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5
5705 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
5706 if test $ac_cv_func_tgoto = yes; then
5707 cf_term_lib=predefined
5710 for cf_term_lib in termcap termlib unknown
5712 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
5713 echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5
5714 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
5715 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5718 ac_check_lib_save_LIBS=$LIBS
5719 LIBS="-l$cf_term_lib $LIBS"
5720 cat >conftest.$ac_ext <<_ACEOF
5721 #line $LINENO "configure"
5724 cat confdefs.h >>conftest.$ac_ext
5725 cat >>conftest.$ac_ext <<_ACEOF
5726 /* end confdefs.h. */
5728 /* Override any gcc2 internal prototype to avoid an error. */
5732 /* We use char because int might match the return type of a gcc2
5733 builtin and then its argument prototype would still apply. */
5743 rm -f conftest.$ac_objext conftest$ac_exeext
5744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5745 (eval $ac_link) 2>&5
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); } &&
5749 { ac_try='test -s conftest$ac_exeext'
5750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); }; }; then
5755 eval "$as_ac_Lib=yes"
5757 echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5760 eval "$as_ac_Lib=no"
5762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5763 LIBS=$ac_check_lib_save_LIBS
5765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5766 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5767 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5776 # Check for library containing initscr
5777 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
5778 for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
5780 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
5781 echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5
5782 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
5783 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5784 echo $ECHO_N "(cached) $ECHO_C" >&6
5786 ac_check_lib_save_LIBS=$LIBS
5787 LIBS="-l$cf_curs_lib $LIBS"
5788 cat >conftest.$ac_ext <<_ACEOF
5789 #line $LINENO "configure"
5792 cat confdefs.h >>conftest.$ac_ext
5793 cat >>conftest.$ac_ext <<_ACEOF
5794 /* end confdefs.h. */
5796 /* Override any gcc2 internal prototype to avoid an error. */
5800 /* We use char because int might match the return type of a gcc2
5801 builtin and then its argument prototype would still apply. */
5811 rm -f conftest.$ac_objext conftest$ac_exeext
5812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5813 (eval $ac_link) 2>&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } &&
5817 { ac_try='test -s conftest$ac_exeext'
5818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); }; }; then
5823 eval "$as_ac_Lib=yes"
5825 echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.$ac_ext >&5
5828 eval "$as_ac_Lib=no"
5830 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5831 LIBS=$ac_check_lib_save_LIBS
5833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5834 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5835 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5840 test $cf_curs_lib = unknown && { { echo "$as_me:$LINENO: error: no curses library found" >&5
5841 echo "$as_me: error: no curses library found" >&2;}
5842 { (exit 1); exit 1; }; }
5844 LIBS="-l$cf_curs_lib $cf_save_LIBS"
5845 if test "$cf_term_lib" = unknown ; then
5846 echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5
5847 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
5848 cat >conftest.$ac_ext <<_ACEOF
5849 #line $LINENO "configure"
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h. */
5855 #include <${cf_cv_ncurses_header-curses.h}>
5864 rm -f conftest.$ac_objext conftest$ac_exeext
5865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5866 (eval $ac_link) 2>&5
5868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869 (exit $ac_status); } &&
5870 { ac_try='test -s conftest$ac_exeext'
5871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); }; }; then
5878 echo "$as_me: failed program was:" >&5
5879 sed 's/^/| /' conftest.$ac_ext >&5
5883 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5884 echo "$as_me:$LINENO: result: $cf_result" >&5
5885 echo "${ECHO_T}$cf_result" >&6
5886 test $cf_result = no && { { echo "$as_me:$LINENO: error: Cannot link curses library" >&5
5887 echo "$as_me: error: Cannot link curses library" >&2;}
5888 { (exit 1); exit 1; }; }
5889 elif test "$cf_term_lib" != predefined ; then
5890 echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
5891 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
5892 cat >conftest.$ac_ext <<_ACEOF
5893 #line $LINENO "configure"
5896 cat confdefs.h >>conftest.$ac_ext
5897 cat >>conftest.$ac_ext <<_ACEOF
5898 /* end confdefs.h. */
5899 #include <${cf_cv_ncurses_header-curses.h}>
5903 initscr(); tgoto((char *)0, 0, 0);
5908 rm -f conftest.$ac_objext conftest$ac_exeext
5909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5910 (eval $ac_link) 2>&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); } &&
5914 { ac_try='test -s conftest$ac_exeext'
5915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); }; }; then
5922 echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5926 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
5927 cat >conftest.$ac_ext <<_ACEOF
5928 #line $LINENO "configure"
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h. */
5934 #include <${cf_cv_ncurses_header-curses.h}>
5943 rm -f conftest.$ac_objext conftest$ac_exeext
5944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5945 (eval $ac_link) 2>&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); } &&
5949 { ac_try='test -s conftest$ac_exeext'
5950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954 (exit $ac_status); }; }; then
5957 echo "$as_me: failed program was:" >&5
5958 sed 's/^/| /' conftest.$ac_ext >&5
5962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5966 echo "$as_me:$LINENO: result: $cf_result" >&5
5967 echo "${ECHO_T}$cf_result" >&6
5981 LIBS="$LIBS $MUTTLIBS"
5982 for ac_func in start_color typeahead bkgdset curs_set meta use_default_colors resizeterm
5985 echo "$as_me:$LINENO: checking for $ac_func declaration" >&5
5986 echo $ECHO_N "checking for $ac_func declaration... $ECHO_C" >&6
5987 if eval "test \"\${ac_cv_func_decl_$ac_func+set}\" = set"; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 cat >conftest.$ac_ext <<_ACEOF
5991 #line $LINENO "configure"
5994 cat confdefs.h >>conftest.$ac_ext
5995 cat >>conftest.$ac_ext <<_ACEOF
5996 /* end confdefs.h. */
5997 #include <${cf_cv_ncurses_header-curses.h}>
6002 extern int ${ac_func}();
6008 rm -f conftest.$ac_objext
6009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6010 (eval $ac_compile) 2>&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); } &&
6014 { ac_try='test -s conftest.$ac_objext'
6015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019 (exit $ac_status); }; }; then
6021 cat >conftest.$ac_ext <<_ACEOF
6022 #line $LINENO "configure"
6025 cat confdefs.h >>conftest.$ac_ext
6026 cat >>conftest.$ac_ext <<_ACEOF
6027 /* end confdefs.h. */
6028 #include <${cf_cv_ncurses_header-curses.h}>
6033 int (*p)() = ${ac_func};
6039 rm -f conftest.$ac_objext
6040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6041 (eval $ac_compile) 2>&5
6043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044 (exit $ac_status); } &&
6045 { ac_try='test -s conftest.$ac_objext'
6046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); }; }; then
6052 eval "ac_cv_func_decl_$ac_func=yes"
6054 echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.$ac_ext >&5
6058 eval "ac_cv_func_decl_$ac_func=no"
6060 rm -f conftest.$ac_objext conftest.$ac_ext
6062 echo "$as_me: failed program was:" >&5
6063 sed 's/^/| /' conftest.$ac_ext >&5
6066 eval "ac_cv_func_decl_$ac_func=yes"
6068 rm -f conftest.$ac_objext conftest.$ac_ext
6071 if eval "test \"`echo '$ac_cv_func_'decl_$ac_func`\" = yes"; then
6072 echo "$as_me:$LINENO: result: yes" >&5
6073 echo "${ECHO_T}yes" >&6
6076 ac_tr_func=`echo HAVE_$ac_func | tr '[a-z]' '[A-Z]'`
6078 cat >>confdefs.h <<_ACEOF
6079 #define $ac_tr_func 1
6083 echo "$as_me:$LINENO: result: no" >&5
6084 echo "${ECHO_T}no" >&6
6088 if test "$ac_cv_func_decl_start_color" = yes; then
6090 cat >>confdefs.h <<\_ACEOF
6091 #define HAVE_COLOR 1
6095 if test "$ac_cv_func_decl_resizeterm" = yes; then
6096 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
6102 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6103 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6104 if test "${ac_cv_header_stdc+set}" = set; then
6105 echo $ECHO_N "(cached) $ECHO_C" >&6
6107 cat >conftest.$ac_ext <<_ACEOF
6108 #line $LINENO "configure"
6111 cat confdefs.h >>conftest.$ac_ext
6112 cat >>conftest.$ac_ext <<_ACEOF
6113 /* end confdefs.h. */
6127 rm -f conftest.$ac_objext
6128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6129 (eval $ac_compile) 2>&5
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); } &&
6133 { ac_try='test -s conftest.$ac_objext'
6134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; }; then
6139 ac_cv_header_stdc=yes
6141 echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6144 ac_cv_header_stdc=no
6146 rm -f conftest.$ac_objext conftest.$ac_ext
6148 if test $ac_cv_header_stdc = yes; then
6149 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6150 cat >conftest.$ac_ext <<_ACEOF
6151 #line $LINENO "configure"
6154 cat confdefs.h >>conftest.$ac_ext
6155 cat >>conftest.$ac_ext <<_ACEOF
6156 /* end confdefs.h. */
6160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6161 $EGREP "memchr" >/dev/null 2>&1; then
6164 ac_cv_header_stdc=no
6170 if test $ac_cv_header_stdc = yes; then
6171 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6172 cat >conftest.$ac_ext <<_ACEOF
6173 #line $LINENO "configure"
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h. */
6182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6183 $EGREP "free" >/dev/null 2>&1; then
6186 ac_cv_header_stdc=no
6192 if test $ac_cv_header_stdc = yes; then
6193 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6194 if test "$cross_compiling" = yes; then
6197 cat >conftest.$ac_ext <<_ACEOF
6198 #line $LINENO "configure"
6201 cat confdefs.h >>conftest.$ac_ext
6202 cat >>conftest.$ac_ext <<_ACEOF
6203 /* end confdefs.h. */
6205 #if ((' ' & 0x0FF) == 0x020)
6206 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6207 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6209 # define ISLOWER(c) \
6210 (('a' <= (c) && (c) <= 'i') \
6211 || ('j' <= (c) && (c) <= 'r') \
6212 || ('s' <= (c) && (c) <= 'z'))
6213 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6216 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6221 for (i = 0; i < 256; i++)
6222 if (XOR (islower (i), ISLOWER (i))
6223 || toupper (i) != TOUPPER (i))
6228 rm -f conftest$ac_exeext
6229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6230 (eval $ac_link) 2>&5
6232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238 (exit $ac_status); }; }; then
6241 echo "$as_me: program exited with status $ac_status" >&5
6242 echo "$as_me: failed program was:" >&5
6243 sed 's/^/| /' conftest.$ac_ext >&5
6246 ac_cv_header_stdc=no
6248 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6252 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6253 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6254 if test $ac_cv_header_stdc = yes; then
6256 cat >>confdefs.h <<\_ACEOF
6257 #define STDC_HEADERS 1
6267 for ac_header in stdarg.h sys/ioctl.h ioctl.h sysexits.h
6269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6271 echo "$as_me:$LINENO: checking for $ac_header" >&5
6272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6274 echo $ECHO_N "(cached) $ECHO_C" >&6
6276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6279 # Is the header compilable?
6280 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6281 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6282 cat >conftest.$ac_ext <<_ACEOF
6283 #line $LINENO "configure"
6286 cat confdefs.h >>conftest.$ac_ext
6287 cat >>conftest.$ac_ext <<_ACEOF
6288 /* end confdefs.h. */
6289 $ac_includes_default
6290 #include <$ac_header>
6292 rm -f conftest.$ac_objext
6293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6294 (eval $ac_compile) 2>&5
6296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297 (exit $ac_status); } &&
6298 { ac_try='test -s conftest.$ac_objext'
6299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303 (exit $ac_status); }; }; then
6304 ac_header_compiler=yes
6306 echo "$as_me: failed program was:" >&5
6307 sed 's/^/| /' conftest.$ac_ext >&5
6309 ac_header_compiler=no
6311 rm -f conftest.$ac_objext conftest.$ac_ext
6312 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6313 echo "${ECHO_T}$ac_header_compiler" >&6
6315 # Is the header present?
6316 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6317 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
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 #include <$ac_header>
6327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6328 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6330 grep -v '^ *+' conftest.er1 >conftest.err
6332 cat conftest.err >&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); } >/dev/null; then
6335 if test -s conftest.err; then
6336 ac_cpp_err=$ac_c_preproc_warn_flag
6343 if test -z "$ac_cpp_err"; then
6344 ac_header_preproc=yes
6346 echo "$as_me: failed program was:" >&5
6347 sed 's/^/| /' conftest.$ac_ext >&5
6349 ac_header_preproc=no
6351 rm -f conftest.err conftest.$ac_ext
6352 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6353 echo "${ECHO_T}$ac_header_preproc" >&6
6355 # So? What about this header?
6356 case $ac_header_compiler:$ac_header_preproc in
6358 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6359 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6364 ## ------------------------------------ ##
6365 ## Report this to bug-autoconf@gnu.org. ##
6366 ## ------------------------------------ ##
6369 sed "s/^/$as_me: WARNING: /" >&2
6372 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6373 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6374 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6375 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6380 ## ------------------------------------ ##
6381 ## Report this to bug-autoconf@gnu.org. ##
6382 ## ------------------------------------ ##
6385 sed "s/^/$as_me: WARNING: /" >&2
6388 echo "$as_me:$LINENO: checking for $ac_header" >&5
6389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6391 echo $ECHO_N "(cached) $ECHO_C" >&6
6393 eval "$as_ac_Header=$ac_header_preproc"
6395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6396 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6400 cat >>confdefs.h <<_ACEOF
6401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6410 for ac_header in sys/time.h sys/resource.h
6412 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6414 echo "$as_me:$LINENO: checking for $ac_header" >&5
6415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6417 echo $ECHO_N "(cached) $ECHO_C" >&6
6419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6422 # Is the header compilable?
6423 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6424 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6425 cat >conftest.$ac_ext <<_ACEOF
6426 #line $LINENO "configure"
6429 cat confdefs.h >>conftest.$ac_ext
6430 cat >>conftest.$ac_ext <<_ACEOF
6431 /* end confdefs.h. */
6432 $ac_includes_default
6433 #include <$ac_header>
6435 rm -f conftest.$ac_objext
6436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6437 (eval $ac_compile) 2>&5
6439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440 (exit $ac_status); } &&
6441 { ac_try='test -s conftest.$ac_objext'
6442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); }; }; then
6447 ac_header_compiler=yes
6449 echo "$as_me: failed program was:" >&5
6450 sed 's/^/| /' conftest.$ac_ext >&5
6452 ac_header_compiler=no
6454 rm -f conftest.$ac_objext conftest.$ac_ext
6455 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6456 echo "${ECHO_T}$ac_header_compiler" >&6
6458 # Is the header present?
6459 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6460 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6461 cat >conftest.$ac_ext <<_ACEOF
6462 #line $LINENO "configure"
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h. */
6468 #include <$ac_header>
6470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6471 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6473 grep -v '^ *+' conftest.er1 >conftest.err
6475 cat conftest.err >&5
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); } >/dev/null; then
6478 if test -s conftest.err; then
6479 ac_cpp_err=$ac_c_preproc_warn_flag
6486 if test -z "$ac_cpp_err"; then
6487 ac_header_preproc=yes
6489 echo "$as_me: failed program was:" >&5
6490 sed 's/^/| /' conftest.$ac_ext >&5
6492 ac_header_preproc=no
6494 rm -f conftest.err conftest.$ac_ext
6495 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6496 echo "${ECHO_T}$ac_header_preproc" >&6
6498 # So? What about this header?
6499 case $ac_header_compiler:$ac_header_preproc in
6501 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6502 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6507 ## ------------------------------------ ##
6508 ## Report this to bug-autoconf@gnu.org. ##
6509 ## ------------------------------------ ##
6512 sed "s/^/$as_me: WARNING: /" >&2
6515 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6517 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6518 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6523 ## ------------------------------------ ##
6524 ## Report this to bug-autoconf@gnu.org. ##
6525 ## ------------------------------------ ##
6528 sed "s/^/$as_me: WARNING: /" >&2
6531 echo "$as_me:$LINENO: checking for $ac_header" >&5
6532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
6536 eval "$as_ac_Header=$ac_header_preproc"
6538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6543 cat >>confdefs.h <<_ACEOF
6544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6552 for ac_header in unix.h
6554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6556 echo "$as_me:$LINENO: checking for $ac_header" >&5
6557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6559 echo $ECHO_N "(cached) $ECHO_C" >&6
6561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6564 # Is the header compilable?
6565 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6567 cat >conftest.$ac_ext <<_ACEOF
6568 #line $LINENO "configure"
6571 cat confdefs.h >>conftest.$ac_ext
6572 cat >>conftest.$ac_ext <<_ACEOF
6573 /* end confdefs.h. */
6574 $ac_includes_default
6575 #include <$ac_header>
6577 rm -f conftest.$ac_objext
6578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6579 (eval $ac_compile) 2>&5
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } &&
6583 { ac_try='test -s conftest.$ac_objext'
6584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }; }; then
6589 ac_header_compiler=yes
6591 echo "$as_me: failed program was:" >&5
6592 sed 's/^/| /' conftest.$ac_ext >&5
6594 ac_header_compiler=no
6596 rm -f conftest.$ac_objext conftest.$ac_ext
6597 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6598 echo "${ECHO_T}$ac_header_compiler" >&6
6600 # Is the header present?
6601 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6602 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6603 cat >conftest.$ac_ext <<_ACEOF
6604 #line $LINENO "configure"
6607 cat confdefs.h >>conftest.$ac_ext
6608 cat >>conftest.$ac_ext <<_ACEOF
6609 /* end confdefs.h. */
6610 #include <$ac_header>
6612 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6613 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6615 grep -v '^ *+' conftest.er1 >conftest.err
6617 cat conftest.err >&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); } >/dev/null; then
6620 if test -s conftest.err; then
6621 ac_cpp_err=$ac_c_preproc_warn_flag
6628 if test -z "$ac_cpp_err"; then
6629 ac_header_preproc=yes
6631 echo "$as_me: failed program was:" >&5
6632 sed 's/^/| /' conftest.$ac_ext >&5
6634 ac_header_preproc=no
6636 rm -f conftest.err conftest.$ac_ext
6637 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6638 echo "${ECHO_T}$ac_header_preproc" >&6
6640 # So? What about this header?
6641 case $ac_header_compiler:$ac_header_preproc in
6643 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6644 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6645 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6649 ## ------------------------------------ ##
6650 ## Report this to bug-autoconf@gnu.org. ##
6651 ## ------------------------------------ ##
6654 sed "s/^/$as_me: WARNING: /" >&2
6657 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6658 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6659 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6660 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6662 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6665 ## ------------------------------------ ##
6666 ## Report this to bug-autoconf@gnu.org. ##
6667 ## ------------------------------------ ##
6670 sed "s/^/$as_me: WARNING: /" >&2
6673 echo "$as_me:$LINENO: checking for $ac_header" >&5
6674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6676 echo $ECHO_N "(cached) $ECHO_C" >&6
6678 eval "$as_ac_Header=$ac_header_preproc"
6680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6684 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6685 cat >>confdefs.h <<_ACEOF
6686 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6697 for ac_func in setrlimit getsid isctype
6699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6700 echo "$as_me:$LINENO: checking for $ac_func" >&5
6701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6702 if eval "test \"\${$as_ac_var+set}\" = set"; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
6705 cat >conftest.$ac_ext <<_ACEOF
6706 #line $LINENO "configure"
6709 cat confdefs.h >>conftest.$ac_ext
6710 cat >>conftest.$ac_ext <<_ACEOF
6711 /* end confdefs.h. */
6712 /* System header to define __stub macros and hopefully few prototypes,
6713 which can conflict with char $ac_func (); below.
6714 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6715 <limits.h> exists even on freestanding compilers. */
6717 # include <limits.h>
6719 # include <assert.h>
6721 /* Override any gcc2 internal prototype to avoid an error. */
6726 /* We use char because int might match the return type of a gcc2
6727 builtin and then its argument prototype would still apply. */
6729 /* The GNU C library defines this for functions which it implements
6730 to always fail with ENOSYS. Some functions are actually named
6731 something starting with __ and the normal name is an alias. */
6732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6735 char (*f) () = $ac_func;
6744 return f != $ac_func;
6749 rm -f conftest.$ac_objext conftest$ac_exeext
6750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6751 (eval $ac_link) 2>&5
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); } &&
6755 { ac_try='test -s conftest$ac_exeext'
6756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); }; }; then
6761 eval "$as_ac_var=yes"
6763 echo "$as_me: failed program was:" >&5
6764 sed 's/^/| /' conftest.$ac_ext >&5
6766 eval "$as_ac_var=no"
6768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6771 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6772 if test `eval echo '${'$as_ac_var'}'` = yes; then
6773 cat >>confdefs.h <<_ACEOF
6774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6781 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6782 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6783 if test "${ac_cv_type_signal+set}" = set; then
6784 echo $ECHO_N "(cached) $ECHO_C" >&6
6786 cat >conftest.$ac_ext <<_ACEOF
6787 #line $LINENO "configure"
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h. */
6793 #include <sys/types.h>
6799 extern "C" void (*signal (int, void (*)(int)))(int);
6801 void (*signal ()) ();
6812 rm -f conftest.$ac_objext
6813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6814 (eval $ac_compile) 2>&5
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); } &&
6818 { ac_try='test -s conftest.$ac_objext'
6819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); }; }; then
6824 ac_cv_type_signal=void
6826 echo "$as_me: failed program was:" >&5
6827 sed 's/^/| /' conftest.$ac_ext >&5
6829 ac_cv_type_signal=int
6831 rm -f conftest.$ac_objext conftest.$ac_ext
6833 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6834 echo "${ECHO_T}$ac_cv_type_signal" >&6
6836 cat >>confdefs.h <<_ACEOF
6837 #define RETSIGTYPE $ac_cv_type_signal
6842 echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5
6843 echo $ECHO_N "checking for sig_atomic_t in signal.h... $ECHO_C" >&6
6844 cat >conftest.$ac_ext <<_ACEOF
6845 #line $LINENO "configure"
6848 cat confdefs.h >>conftest.$ac_ext
6849 cat >>conftest.$ac_ext <<_ACEOF
6850 /* end confdefs.h. */
6854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6855 $EGREP "sig_atomic_t" >/dev/null 2>&1; then
6857 ac_cv_type_sig_atomic_t=yes;
6858 cat >conftest.$ac_ext <<_ACEOF
6859 #line $LINENO "configure"
6862 cat confdefs.h >>conftest.$ac_ext
6863 cat >>conftest.$ac_ext <<_ACEOF
6864 /* end confdefs.h. */
6868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6869 $EGREP "volatile.*sig_atomic_t" >/dev/null 2>&1; then
6871 is_sig_atomic_t_volatile=yes;
6872 echo "$as_me:$LINENO: result: yes, volatile" >&5
6873 echo "${ECHO_T}yes, volatile" >&6
6877 is_sig_atomic_t_volatile=no;
6878 echo "$as_me:$LINENO: result: yes, non volatile" >&5
6879 echo "${ECHO_T}yes, non volatile" >&6
6887 echo "$as_me:$LINENO: result: no" >&5
6888 echo "${ECHO_T}no" >&6
6889 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
6890 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
6891 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
6892 echo $ECHO_N "(cached) $ECHO_C" >&6
6894 cat >conftest.$ac_ext <<_ACEOF
6895 #line $LINENO "configure"
6898 cat confdefs.h >>conftest.$ac_ext
6899 cat >>conftest.$ac_ext <<_ACEOF
6900 /* end confdefs.h. */
6901 $ac_includes_default
6905 if ((sig_atomic_t *) 0)
6907 if (sizeof (sig_atomic_t))
6913 rm -f conftest.$ac_objext
6914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6915 (eval $ac_compile) 2>&5
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); } &&
6919 { ac_try='test -s conftest.$ac_objext'
6920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); }; }; then
6925 ac_cv_type_sig_atomic_t=yes
6927 echo "$as_me: failed program was:" >&5
6928 sed 's/^/| /' conftest.$ac_ext >&5
6930 ac_cv_type_sig_atomic_t=no
6932 rm -f conftest.$ac_objext conftest.$ac_ext
6934 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
6935 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
6936 if test $ac_cv_type_sig_atomic_t = yes; then
6940 cat >>confdefs.h <<_ACEOF
6941 #define sig_atomic_t int
6946 is_sig_atomic_t_volatile=no
6951 if test $is_sig_atomic_t_volatile = 'yes'
6953 cat >>confdefs.h <<\_ACEOF
6954 #define SIG_ATOMIC_VOLATILE_T sig_atomic_t
6958 cat >>confdefs.h <<\_ACEOF
6959 #define SIG_ATOMIC_VOLATILE_T volatile sig_atomic_t
6964 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6965 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6966 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
6969 cat >conftest.$ac_ext <<_ACEOF
6970 #line $LINENO "configure"
6973 cat confdefs.h >>conftest.$ac_ext
6974 cat >>conftest.$ac_ext <<_ACEOF
6975 /* end confdefs.h. */
6976 $ac_includes_default
6981 char *p = (char *) sys_siglist;
6988 rm -f conftest.$ac_objext
6989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6990 (eval $ac_compile) 2>&5
6992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993 (exit $ac_status); } &&
6994 { ac_try='test -s conftest.$ac_objext'
6995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); }; }; then
7000 ac_cv_have_decl_sys_siglist=yes
7002 echo "$as_me: failed program was:" >&5
7003 sed 's/^/| /' conftest.$ac_ext >&5
7005 ac_cv_have_decl_sys_siglist=no
7007 rm -f conftest.$ac_objext conftest.$ac_ext
7009 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7010 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
7011 if test $ac_cv_have_decl_sys_siglist = yes; then
7013 cat >>confdefs.h <<_ACEOF
7014 #define HAVE_DECL_SYS_SIGLIST 1
7019 cat >>confdefs.h <<_ACEOF
7020 #define HAVE_DECL_SYS_SIGLIST 0
7029 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7030 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7031 if test "${ac_cv_c_bigendian+set}" = set; then
7032 echo $ECHO_N "(cached) $ECHO_C" >&6
7034 # See if sys/param.h defines the BYTE_ORDER macro.
7035 cat >conftest.$ac_ext <<_ACEOF
7036 #line $LINENO "configure"
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h. */
7042 #include <sys/types.h>
7043 #include <sys/param.h>
7048 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7056 rm -f conftest.$ac_objext
7057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7058 (eval $ac_compile) 2>&5
7060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061 (exit $ac_status); } &&
7062 { ac_try='test -s conftest.$ac_objext'
7063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067 (exit $ac_status); }; }; then
7068 # It does; now see whether it defined to BIG_ENDIAN or not.
7069 cat >conftest.$ac_ext <<_ACEOF
7070 #line $LINENO "configure"
7073 cat confdefs.h >>conftest.$ac_ext
7074 cat >>conftest.$ac_ext <<_ACEOF
7075 /* end confdefs.h. */
7076 #include <sys/types.h>
7077 #include <sys/param.h>
7082 #if BYTE_ORDER != BIG_ENDIAN
7090 rm -f conftest.$ac_objext
7091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7092 (eval $ac_compile) 2>&5
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); } &&
7096 { ac_try='test -s conftest.$ac_objext'
7097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); }; }; then
7102 ac_cv_c_bigendian=yes
7104 echo "$as_me: failed program was:" >&5
7105 sed 's/^/| /' conftest.$ac_ext >&5
7107 ac_cv_c_bigendian=no
7109 rm -f conftest.$ac_objext conftest.$ac_ext
7111 echo "$as_me: failed program was:" >&5
7112 sed 's/^/| /' conftest.$ac_ext >&5
7114 # It does not; compile a test program.
7115 if test "$cross_compiling" = yes; then
7116 # try to guess the endianness by grepping values into an object file
7117 ac_cv_c_bigendian=unknown
7118 cat >conftest.$ac_ext <<_ACEOF
7119 #line $LINENO "configure"
7122 cat confdefs.h >>conftest.$ac_ext
7123 cat >>conftest.$ac_ext <<_ACEOF
7124 /* end confdefs.h. */
7125 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7126 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7127 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7128 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7129 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7130 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7134 _ascii (); _ebcdic ();
7139 rm -f conftest.$ac_objext
7140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7141 (eval $ac_compile) 2>&5
7143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); } &&
7145 { ac_try='test -s conftest.$ac_objext'
7146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); }; }; then
7151 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7152 ac_cv_c_bigendian=yes
7154 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7155 if test "$ac_cv_c_bigendian" = unknown; then
7156 ac_cv_c_bigendian=no
7158 # finding both strings is unlikely to happen, but who knows?
7159 ac_cv_c_bigendian=unknown
7163 echo "$as_me: failed program was:" >&5
7164 sed 's/^/| /' conftest.$ac_ext >&5
7167 rm -f conftest.$ac_objext conftest.$ac_ext
7169 cat >conftest.$ac_ext <<_ACEOF
7170 #line $LINENO "configure"
7173 cat confdefs.h >>conftest.$ac_ext
7174 cat >>conftest.$ac_ext <<_ACEOF
7175 /* end confdefs.h. */
7179 /* Are we little or big endian? From Harbison&Steele. */
7183 char c[sizeof (long)];
7186 exit (u.c[sizeof (long) - 1] == 1);
7189 rm -f conftest$ac_exeext
7190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7191 (eval $ac_link) 2>&5
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); }; }; then
7200 ac_cv_c_bigendian=no
7202 echo "$as_me: program exited with status $ac_status" >&5
7203 echo "$as_me: failed program was:" >&5
7204 sed 's/^/| /' conftest.$ac_ext >&5
7207 ac_cv_c_bigendian=yes
7209 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7212 rm -f conftest.$ac_objext conftest.$ac_ext
7214 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7215 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7216 case $ac_cv_c_bigendian in
7219 cat >>confdefs.h <<\_ACEOF
7220 #define WORDS_BIGENDIAN 1
7226 { { echo "$as_me:$LINENO: error: unknown endianness
7227 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7228 echo "$as_me: error: unknown endianness
7229 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7230 { (exit 1); exit 1; }; } ;;
7235 for ac_header in inttypes.h stdint.h
7237 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7239 echo "$as_me:$LINENO: checking for $ac_header" >&5
7240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7242 echo $ECHO_N "(cached) $ECHO_C" >&6
7244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7245 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7247 # Is the header compilable?
7248 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7249 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7250 cat >conftest.$ac_ext <<_ACEOF
7251 #line $LINENO "configure"
7254 cat confdefs.h >>conftest.$ac_ext
7255 cat >>conftest.$ac_ext <<_ACEOF
7256 /* end confdefs.h. */
7257 $ac_includes_default
7258 #include <$ac_header>
7260 rm -f conftest.$ac_objext
7261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7262 (eval $ac_compile) 2>&5
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); } &&
7266 { ac_try='test -s conftest.$ac_objext'
7267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); }; }; then
7272 ac_header_compiler=yes
7274 echo "$as_me: failed program was:" >&5
7275 sed 's/^/| /' conftest.$ac_ext >&5
7277 ac_header_compiler=no
7279 rm -f conftest.$ac_objext conftest.$ac_ext
7280 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7281 echo "${ECHO_T}$ac_header_compiler" >&6
7283 # Is the header present?
7284 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7285 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7286 cat >conftest.$ac_ext <<_ACEOF
7287 #line $LINENO "configure"
7290 cat confdefs.h >>conftest.$ac_ext
7291 cat >>conftest.$ac_ext <<_ACEOF
7292 /* end confdefs.h. */
7293 #include <$ac_header>
7295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7298 grep -v '^ *+' conftest.er1 >conftest.err
7300 cat conftest.err >&5
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); } >/dev/null; then
7303 if test -s conftest.err; then
7304 ac_cpp_err=$ac_c_preproc_warn_flag
7311 if test -z "$ac_cpp_err"; then
7312 ac_header_preproc=yes
7314 echo "$as_me: failed program was:" >&5
7315 sed 's/^/| /' conftest.$ac_ext >&5
7317 ac_header_preproc=no
7319 rm -f conftest.err conftest.$ac_ext
7320 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7321 echo "${ECHO_T}$ac_header_preproc" >&6
7323 # So? What about this header?
7324 case $ac_header_compiler:$ac_header_preproc in
7326 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7327 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7328 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7329 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7332 ## ------------------------------------ ##
7333 ## Report this to bug-autoconf@gnu.org. ##
7334 ## ------------------------------------ ##
7337 sed "s/^/$as_me: WARNING: /" >&2
7340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7341 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7343 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7345 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7348 ## ------------------------------------ ##
7349 ## Report this to bug-autoconf@gnu.org. ##
7350 ## ------------------------------------ ##
7353 sed "s/^/$as_me: WARNING: /" >&2
7356 echo "$as_me:$LINENO: checking for $ac_header" >&5
7357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7359 echo $ECHO_N "(cached) $ECHO_C" >&6
7361 eval "$as_ac_Header=$ac_header_preproc"
7363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7368 cat >>confdefs.h <<_ACEOF
7369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7376 echo "$as_me:$LINENO: checking for uint32_t" >&5
7377 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7378 cat >conftest.$ac_ext <<_ACEOF
7379 #line $LINENO "configure"
7382 cat confdefs.h >>conftest.$ac_ext
7383 cat >>conftest.$ac_ext <<_ACEOF
7384 /* end confdefs.h. */
7386 #include <sys/types.h>
7388 #include <inttypes.h>
7399 if (sizeof (uint32_t))
7406 rm -f conftest.$ac_objext
7407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7408 (eval $ac_compile) 2>&5
7410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411 (exit $ac_status); } &&
7412 { ac_try='test -s conftest.$ac_objext'
7413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417 (exit $ac_status); }; }; then
7420 cat >>confdefs.h <<\_ACEOF
7421 #define HAVE_UINT32_T 1
7424 echo "$as_me:$LINENO: result: yes" >&5
7425 echo "${ECHO_T}yes" >&6
7428 echo "$as_me: failed program was:" >&5
7429 sed 's/^/| /' conftest.$ac_ext >&5
7431 echo "$as_me:$LINENO: result: no" >&5
7432 echo "${ECHO_T}no" >&6
7435 rm -f conftest.$ac_objext conftest.$ac_ext
7436 echo "$as_me:$LINENO: checking for int" >&5
7437 echo $ECHO_N "checking for int... $ECHO_C" >&6
7438 if test "${ac_cv_type_int+set}" = set; then
7439 echo $ECHO_N "(cached) $ECHO_C" >&6
7441 cat >conftest.$ac_ext <<_ACEOF
7442 #line $LINENO "configure"
7445 cat confdefs.h >>conftest.$ac_ext
7446 cat >>conftest.$ac_ext <<_ACEOF
7447 /* end confdefs.h. */
7448 $ac_includes_default
7460 rm -f conftest.$ac_objext
7461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7462 (eval $ac_compile) 2>&5
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); } &&
7466 { ac_try='test -s conftest.$ac_objext'
7467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); }; }; then
7474 echo "$as_me: failed program was:" >&5
7475 sed 's/^/| /' conftest.$ac_ext >&5
7479 rm -f conftest.$ac_objext conftest.$ac_ext
7481 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7482 echo "${ECHO_T}$ac_cv_type_int" >&6
7484 echo "$as_me:$LINENO: checking size of int" >&5
7485 echo $ECHO_N "checking size of int... $ECHO_C" >&6
7486 if test "${ac_cv_sizeof_int+set}" = set; then
7487 echo $ECHO_N "(cached) $ECHO_C" >&6
7489 if test "$ac_cv_type_int" = yes; then
7490 # The cast to unsigned long works around a bug in the HP C Compiler
7491 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7492 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7493 # This bug is HP SR number 8606223364.
7494 if test "$cross_compiling" = yes; then
7495 # Depending upon the size, compute the lo and hi bounds.
7496 cat >conftest.$ac_ext <<_ACEOF
7497 #line $LINENO "configure"
7500 cat confdefs.h >>conftest.$ac_ext
7501 cat >>conftest.$ac_ext <<_ACEOF
7502 /* end confdefs.h. */
7503 $ac_includes_default
7507 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
7514 rm -f conftest.$ac_objext
7515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7516 (eval $ac_compile) 2>&5
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); } &&
7520 { ac_try='test -s conftest.$ac_objext'
7521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); }; }; then
7528 cat >conftest.$ac_ext <<_ACEOF
7529 #line $LINENO "configure"
7532 cat confdefs.h >>conftest.$ac_ext
7533 cat >>conftest.$ac_ext <<_ACEOF
7534 /* end confdefs.h. */
7535 $ac_includes_default
7539 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7546 rm -f conftest.$ac_objext
7547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7548 (eval $ac_compile) 2>&5
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); } &&
7552 { ac_try='test -s conftest.$ac_objext'
7553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); }; }; then
7558 ac_hi=$ac_mid; break
7560 echo "$as_me: failed program was:" >&5
7561 sed 's/^/| /' conftest.$ac_ext >&5
7563 ac_lo=`expr $ac_mid + 1`
7564 if test $ac_lo -le $ac_mid; then
7568 ac_mid=`expr 2 '*' $ac_mid + 1`
7570 rm -f conftest.$ac_objext conftest.$ac_ext
7573 echo "$as_me: failed program was:" >&5
7574 sed 's/^/| /' conftest.$ac_ext >&5
7576 cat >conftest.$ac_ext <<_ACEOF
7577 #line $LINENO "configure"
7580 cat confdefs.h >>conftest.$ac_ext
7581 cat >>conftest.$ac_ext <<_ACEOF
7582 /* end confdefs.h. */
7583 $ac_includes_default
7587 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
7594 rm -f conftest.$ac_objext
7595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7596 (eval $ac_compile) 2>&5
7598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599 (exit $ac_status); } &&
7600 { ac_try='test -s conftest.$ac_objext'
7601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); }; }; then
7608 cat >conftest.$ac_ext <<_ACEOF
7609 #line $LINENO "configure"
7612 cat confdefs.h >>conftest.$ac_ext
7613 cat >>conftest.$ac_ext <<_ACEOF
7614 /* end confdefs.h. */
7615 $ac_includes_default
7619 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
7626 rm -f conftest.$ac_objext
7627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7628 (eval $ac_compile) 2>&5
7630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); } &&
7632 { ac_try='test -s conftest.$ac_objext'
7633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); }; }; then
7638 ac_lo=$ac_mid; break
7640 echo "$as_me: failed program was:" >&5
7641 sed 's/^/| /' conftest.$ac_ext >&5
7643 ac_hi=`expr '(' $ac_mid ')' - 1`
7644 if test $ac_mid -le $ac_hi; then
7648 ac_mid=`expr 2 '*' $ac_mid`
7650 rm -f conftest.$ac_objext conftest.$ac_ext
7653 echo "$as_me: failed program was:" >&5
7654 sed 's/^/| /' conftest.$ac_ext >&5
7658 rm -f conftest.$ac_objext conftest.$ac_ext
7660 rm -f conftest.$ac_objext conftest.$ac_ext
7661 # Binary search between lo and hi bounds.
7662 while test "x$ac_lo" != "x$ac_hi"; do
7663 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7664 cat >conftest.$ac_ext <<_ACEOF
7665 #line $LINENO "configure"
7668 cat confdefs.h >>conftest.$ac_ext
7669 cat >>conftest.$ac_ext <<_ACEOF
7670 /* end confdefs.h. */
7671 $ac_includes_default
7675 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7682 rm -f conftest.$ac_objext
7683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7684 (eval $ac_compile) 2>&5
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); } &&
7688 { ac_try='test -s conftest.$ac_objext'
7689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693 (exit $ac_status); }; }; then
7696 echo "$as_me: failed program was:" >&5
7697 sed 's/^/| /' conftest.$ac_ext >&5
7699 ac_lo=`expr '(' $ac_mid ')' + 1`
7701 rm -f conftest.$ac_objext conftest.$ac_ext
7704 ?*) ac_cv_sizeof_int=$ac_lo;;
7705 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7706 See \`config.log' for more details." >&5
7707 echo "$as_me: error: cannot compute sizeof (int), 77
7708 See \`config.log' for more details." >&2;}
7709 { (exit 1); exit 1; }; } ;;
7712 if test "$cross_compiling" = yes; then
7713 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7714 See \`config.log' for more details." >&5
7715 echo "$as_me: error: cannot run test program while cross compiling
7716 See \`config.log' for more details." >&2;}
7717 { (exit 1); exit 1; }; }
7719 cat >conftest.$ac_ext <<_ACEOF
7720 #line $LINENO "configure"
7723 cat confdefs.h >>conftest.$ac_ext
7724 cat >>conftest.$ac_ext <<_ACEOF
7725 /* end confdefs.h. */
7726 $ac_includes_default
7727 long longval () { return (long) (sizeof (int)); }
7728 unsigned long ulongval () { return (long) (sizeof (int)); }
7735 FILE *f = fopen ("conftest.val", "w");
7738 if (((long) (sizeof (int))) < 0)
7740 long i = longval ();
7741 if (i != ((long) (sizeof (int))))
7743 fprintf (f, "%ld\n", i);
7747 unsigned long i = ulongval ();
7748 if (i != ((long) (sizeof (int))))
7750 fprintf (f, "%lu\n", i);
7752 exit (ferror (f) || fclose (f) != 0);
7758 rm -f conftest$ac_exeext
7759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7760 (eval $ac_link) 2>&5
7762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); }; }; then
7769 ac_cv_sizeof_int=`cat conftest.val`
7771 echo "$as_me: program exited with status $ac_status" >&5
7772 echo "$as_me: failed program was:" >&5
7773 sed 's/^/| /' conftest.$ac_ext >&5
7776 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7777 See \`config.log' for more details." >&5
7778 echo "$as_me: error: cannot compute sizeof (int), 77
7779 See \`config.log' for more details." >&2;}
7780 { (exit 1); exit 1; }; }
7782 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7790 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7791 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7792 cat >>confdefs.h <<_ACEOF
7793 #define SIZEOF_INT $ac_cv_sizeof_int
7797 echo "$as_me:$LINENO: checking for long" >&5
7798 echo $ECHO_N "checking for long... $ECHO_C" >&6
7799 if test "${ac_cv_type_long+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7802 cat >conftest.$ac_ext <<_ACEOF
7803 #line $LINENO "configure"
7806 cat confdefs.h >>conftest.$ac_ext
7807 cat >>conftest.$ac_ext <<_ACEOF
7808 /* end confdefs.h. */
7809 $ac_includes_default
7821 rm -f conftest.$ac_objext
7822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7823 (eval $ac_compile) 2>&5
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); } &&
7827 { ac_try='test -s conftest.$ac_objext'
7828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); }; }; then
7835 echo "$as_me: failed program was:" >&5
7836 sed 's/^/| /' conftest.$ac_ext >&5
7840 rm -f conftest.$ac_objext conftest.$ac_ext
7842 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7843 echo "${ECHO_T}$ac_cv_type_long" >&6
7845 echo "$as_me:$LINENO: checking size of long" >&5
7846 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7847 if test "${ac_cv_sizeof_long+set}" = set; then
7848 echo $ECHO_N "(cached) $ECHO_C" >&6
7850 if test "$ac_cv_type_long" = yes; then
7851 # The cast to unsigned long works around a bug in the HP C Compiler
7852 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7853 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7854 # This bug is HP SR number 8606223364.
7855 if test "$cross_compiling" = yes; then
7856 # Depending upon the size, compute the lo and hi bounds.
7857 cat >conftest.$ac_ext <<_ACEOF
7858 #line $LINENO "configure"
7861 cat confdefs.h >>conftest.$ac_ext
7862 cat >>conftest.$ac_ext <<_ACEOF
7863 /* end confdefs.h. */
7864 $ac_includes_default
7868 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7875 rm -f conftest.$ac_objext
7876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7877 (eval $ac_compile) 2>&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); } &&
7881 { ac_try='test -s conftest.$ac_objext'
7882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); }; }; then
7889 cat >conftest.$ac_ext <<_ACEOF
7890 #line $LINENO "configure"
7893 cat confdefs.h >>conftest.$ac_ext
7894 cat >>conftest.$ac_ext <<_ACEOF
7895 /* end confdefs.h. */
7896 $ac_includes_default
7900 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7907 rm -f conftest.$ac_objext
7908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7909 (eval $ac_compile) 2>&5
7911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912 (exit $ac_status); } &&
7913 { ac_try='test -s conftest.$ac_objext'
7914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); }; }; then
7919 ac_hi=$ac_mid; break
7921 echo "$as_me: failed program was:" >&5
7922 sed 's/^/| /' conftest.$ac_ext >&5
7924 ac_lo=`expr $ac_mid + 1`
7925 if test $ac_lo -le $ac_mid; then
7929 ac_mid=`expr 2 '*' $ac_mid + 1`
7931 rm -f conftest.$ac_objext conftest.$ac_ext
7934 echo "$as_me: failed program was:" >&5
7935 sed 's/^/| /' conftest.$ac_ext >&5
7937 cat >conftest.$ac_ext <<_ACEOF
7938 #line $LINENO "configure"
7941 cat confdefs.h >>conftest.$ac_ext
7942 cat >>conftest.$ac_ext <<_ACEOF
7943 /* end confdefs.h. */
7944 $ac_includes_default
7948 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7955 rm -f conftest.$ac_objext
7956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7957 (eval $ac_compile) 2>&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); } &&
7961 { ac_try='test -s conftest.$ac_objext'
7962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); }; }; then
7969 cat >conftest.$ac_ext <<_ACEOF
7970 #line $LINENO "configure"
7973 cat confdefs.h >>conftest.$ac_ext
7974 cat >>conftest.$ac_ext <<_ACEOF
7975 /* end confdefs.h. */
7976 $ac_includes_default
7980 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7987 rm -f conftest.$ac_objext
7988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7989 (eval $ac_compile) 2>&5
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); } &&
7993 { ac_try='test -s conftest.$ac_objext'
7994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); }; }; then
7999 ac_lo=$ac_mid; break
8001 echo "$as_me: failed program was:" >&5
8002 sed 's/^/| /' conftest.$ac_ext >&5
8004 ac_hi=`expr '(' $ac_mid ')' - 1`
8005 if test $ac_mid -le $ac_hi; then
8009 ac_mid=`expr 2 '*' $ac_mid`
8011 rm -f conftest.$ac_objext conftest.$ac_ext
8014 echo "$as_me: failed program was:" >&5
8015 sed 's/^/| /' conftest.$ac_ext >&5
8019 rm -f conftest.$ac_objext conftest.$ac_ext
8021 rm -f conftest.$ac_objext conftest.$ac_ext
8022 # Binary search between lo and hi bounds.
8023 while test "x$ac_lo" != "x$ac_hi"; do
8024 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8025 cat >conftest.$ac_ext <<_ACEOF
8026 #line $LINENO "configure"
8029 cat confdefs.h >>conftest.$ac_ext
8030 cat >>conftest.$ac_ext <<_ACEOF
8031 /* end confdefs.h. */
8032 $ac_includes_default
8036 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
8043 rm -f conftest.$ac_objext
8044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8045 (eval $ac_compile) 2>&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } &&
8049 { ac_try='test -s conftest.$ac_objext'
8050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; }; then
8057 echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8060 ac_lo=`expr '(' $ac_mid ')' + 1`
8062 rm -f conftest.$ac_objext conftest.$ac_ext
8065 ?*) ac_cv_sizeof_long=$ac_lo;;
8066 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
8067 See \`config.log' for more details." >&5
8068 echo "$as_me: error: cannot compute sizeof (long), 77
8069 See \`config.log' for more details." >&2;}
8070 { (exit 1); exit 1; }; } ;;
8073 if test "$cross_compiling" = yes; then
8074 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8075 See \`config.log' for more details." >&5
8076 echo "$as_me: error: cannot run test program while cross compiling
8077 See \`config.log' for more details." >&2;}
8078 { (exit 1); exit 1; }; }
8080 cat >conftest.$ac_ext <<_ACEOF
8081 #line $LINENO "configure"
8084 cat confdefs.h >>conftest.$ac_ext
8085 cat >>conftest.$ac_ext <<_ACEOF
8086 /* end confdefs.h. */
8087 $ac_includes_default
8088 long longval () { return (long) (sizeof (long)); }
8089 unsigned long ulongval () { return (long) (sizeof (long)); }
8096 FILE *f = fopen ("conftest.val", "w");
8099 if (((long) (sizeof (long))) < 0)
8101 long i = longval ();
8102 if (i != ((long) (sizeof (long))))
8104 fprintf (f, "%ld\n", i);
8108 unsigned long i = ulongval ();
8109 if (i != ((long) (sizeof (long))))
8111 fprintf (f, "%lu\n", i);
8113 exit (ferror (f) || fclose (f) != 0);
8119 rm -f conftest$ac_exeext
8120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8121 (eval $ac_link) 2>&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); }; }; then
8130 ac_cv_sizeof_long=`cat conftest.val`
8132 echo "$as_me: program exited with status $ac_status" >&5
8133 echo "$as_me: failed program was:" >&5
8134 sed 's/^/| /' conftest.$ac_ext >&5
8137 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
8138 See \`config.log' for more details." >&5
8139 echo "$as_me: error: cannot compute sizeof (long), 77
8140 See \`config.log' for more details." >&2;}
8141 { (exit 1); exit 1; }; }
8143 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8151 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8152 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
8153 cat >>confdefs.h <<_ACEOF
8154 #define SIZEOF_LONG $ac_cv_sizeof_long
8159 echo "$as_me:$LINENO: checking for pid_t" >&5
8160 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8161 if test "${ac_cv_type_pid_t+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
8164 cat >conftest.$ac_ext <<_ACEOF
8165 #line $LINENO "configure"
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h. */
8171 $ac_includes_default
8183 rm -f conftest.$ac_objext
8184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8185 (eval $ac_compile) 2>&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); } &&
8189 { ac_try='test -s conftest.$ac_objext'
8190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); }; }; then
8195 ac_cv_type_pid_t=yes
8197 echo "$as_me: failed program was:" >&5
8198 sed 's/^/| /' conftest.$ac_ext >&5
8202 rm -f conftest.$ac_objext conftest.$ac_ext
8204 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8205 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8206 if test $ac_cv_type_pid_t = yes; then
8210 cat >>confdefs.h <<_ACEOF
8222 for ac_func in fgetpos memmove setegid srand48 strerror
8224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8225 echo "$as_me:$LINENO: checking for $ac_func" >&5
8226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8227 if eval "test \"\${$as_ac_var+set}\" = set"; then
8228 echo $ECHO_N "(cached) $ECHO_C" >&6
8230 cat >conftest.$ac_ext <<_ACEOF
8231 #line $LINENO "configure"
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h. */
8237 /* System header to define __stub macros and hopefully few prototypes,
8238 which can conflict with char $ac_func (); below.
8239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8240 <limits.h> exists even on freestanding compilers. */
8242 # include <limits.h>
8244 # include <assert.h>
8246 /* Override any gcc2 internal prototype to avoid an error. */
8251 /* We use char because int might match the return type of a gcc2
8252 builtin and then its argument prototype would still apply. */
8254 /* The GNU C library defines this for functions which it implements
8255 to always fail with ENOSYS. Some functions are actually named
8256 something starting with __ and the normal name is an alias. */
8257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8260 char (*f) () = $ac_func;
8269 return f != $ac_func;
8274 rm -f conftest.$ac_objext conftest$ac_exeext
8275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8276 (eval $ac_link) 2>&5
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 (exit $ac_status); } &&
8280 { ac_try='test -s conftest$ac_exeext'
8281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); }; }; then
8286 eval "$as_ac_var=yes"
8288 echo "$as_me: failed program was:" >&5
8289 sed 's/^/| /' conftest.$ac_ext >&5
8291 eval "$as_ac_var=no"
8293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8296 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8297 if test `eval echo '${'$as_ac_var'}'` = yes; then
8298 cat >>confdefs.h <<_ACEOF
8299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8308 for ac_func in strcasecmp strdup
8310 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8311 echo "$as_me:$LINENO: checking for $ac_func" >&5
8312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8313 if eval "test \"\${$as_ac_var+set}\" = set"; then
8314 echo $ECHO_N "(cached) $ECHO_C" >&6
8316 cat >conftest.$ac_ext <<_ACEOF
8317 #line $LINENO "configure"
8320 cat confdefs.h >>conftest.$ac_ext
8321 cat >>conftest.$ac_ext <<_ACEOF
8322 /* end confdefs.h. */
8323 /* System header to define __stub macros and hopefully few prototypes,
8324 which can conflict with char $ac_func (); below.
8325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8326 <limits.h> exists even on freestanding compilers. */
8328 # include <limits.h>
8330 # include <assert.h>
8332 /* Override any gcc2 internal prototype to avoid an error. */
8337 /* We use char because int might match the return type of a gcc2
8338 builtin and then its argument prototype would still apply. */
8340 /* The GNU C library defines this for functions which it implements
8341 to always fail with ENOSYS. Some functions are actually named
8342 something starting with __ and the normal name is an alias. */
8343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8346 char (*f) () = $ac_func;
8355 return f != $ac_func;
8360 rm -f conftest.$ac_objext conftest$ac_exeext
8361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8362 (eval $ac_link) 2>&5
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); } &&
8366 { ac_try='test -s conftest$ac_exeext'
8367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); }; }; then
8372 eval "$as_ac_var=yes"
8374 echo "$as_me: failed program was:" >&5
8375 sed 's/^/| /' conftest.$ac_ext >&5
8377 eval "$as_ac_var=no"
8379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8382 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8383 if test `eval echo '${'$as_ac_var'}'` = yes; then
8384 cat >>confdefs.h <<_ACEOF
8385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8389 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
8395 echo "$as_me:$LINENO: checking for getopt" >&5
8396 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
8397 if test "${ac_cv_func_getopt+set}" = set; then
8398 echo $ECHO_N "(cached) $ECHO_C" >&6
8400 cat >conftest.$ac_ext <<_ACEOF
8401 #line $LINENO "configure"
8404 cat confdefs.h >>conftest.$ac_ext
8405 cat >>conftest.$ac_ext <<_ACEOF
8406 /* end confdefs.h. */
8407 /* System header to define __stub macros and hopefully few prototypes,
8408 which can conflict with char getopt (); below.
8409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8410 <limits.h> exists even on freestanding compilers. */
8412 # include <limits.h>
8414 # include <assert.h>
8416 /* Override any gcc2 internal prototype to avoid an error. */
8421 /* We use char because int might match the return type of a gcc2
8422 builtin and then its argument prototype would still apply. */
8424 /* The GNU C library defines this for functions which it implements
8425 to always fail with ENOSYS. Some functions are actually named
8426 something starting with __ and the normal name is an alias. */
8427 #if defined (__stub_getopt) || defined (__stub___getopt)
8430 char (*f) () = getopt;
8444 rm -f conftest.$ac_objext conftest$ac_exeext
8445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8446 (eval $ac_link) 2>&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } &&
8450 { ac_try='test -s conftest$ac_exeext'
8451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); }; }; then
8456 ac_cv_func_getopt=yes
8458 echo "$as_me: failed program was:" >&5
8459 sed 's/^/| /' conftest.$ac_ext >&5
8461 ac_cv_func_getopt=no
8463 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8465 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
8466 echo "${ECHO_T}$ac_cv_func_getopt" >&6
8468 if test $ac_cv_func_getopt = yes; then
8470 for ac_header in getopt.h
8472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8474 echo "$as_me:$LINENO: checking for $ac_header" >&5
8475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8477 echo $ECHO_N "(cached) $ECHO_C" >&6
8479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8482 # Is the header compilable?
8483 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8484 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8485 cat >conftest.$ac_ext <<_ACEOF
8486 #line $LINENO "configure"
8489 cat confdefs.h >>conftest.$ac_ext
8490 cat >>conftest.$ac_ext <<_ACEOF
8491 /* end confdefs.h. */
8492 $ac_includes_default
8493 #include <$ac_header>
8495 rm -f conftest.$ac_objext
8496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8497 (eval $ac_compile) 2>&5
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); } &&
8501 { ac_try='test -s conftest.$ac_objext'
8502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); }; }; then
8507 ac_header_compiler=yes
8509 echo "$as_me: failed program was:" >&5
8510 sed 's/^/| /' conftest.$ac_ext >&5
8512 ac_header_compiler=no
8514 rm -f conftest.$ac_objext conftest.$ac_ext
8515 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8516 echo "${ECHO_T}$ac_header_compiler" >&6
8518 # Is the header present?
8519 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8520 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8521 cat >conftest.$ac_ext <<_ACEOF
8522 #line $LINENO "configure"
8525 cat confdefs.h >>conftest.$ac_ext
8526 cat >>conftest.$ac_ext <<_ACEOF
8527 /* end confdefs.h. */
8528 #include <$ac_header>
8530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8531 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8533 grep -v '^ *+' conftest.er1 >conftest.err
8535 cat conftest.err >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); } >/dev/null; then
8538 if test -s conftest.err; then
8539 ac_cpp_err=$ac_c_preproc_warn_flag
8546 if test -z "$ac_cpp_err"; then
8547 ac_header_preproc=yes
8549 echo "$as_me: failed program was:" >&5
8550 sed 's/^/| /' conftest.$ac_ext >&5
8552 ac_header_preproc=no
8554 rm -f conftest.err conftest.$ac_ext
8555 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8556 echo "${ECHO_T}$ac_header_preproc" >&6
8558 # So? What about this header?
8559 case $ac_header_compiler:$ac_header_preproc in
8561 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8562 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8567 ## ------------------------------------ ##
8568 ## Report this to bug-autoconf@gnu.org. ##
8569 ## ------------------------------------ ##
8572 sed "s/^/$as_me: WARNING: /" >&2
8575 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8576 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8577 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8578 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8583 ## ------------------------------------ ##
8584 ## Report this to bug-autoconf@gnu.org. ##
8585 ## ------------------------------------ ##
8588 sed "s/^/$as_me: WARNING: /" >&2
8591 echo "$as_me:$LINENO: checking for $ac_header" >&5
8592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8594 echo $ECHO_N "(cached) $ECHO_C" >&6
8596 eval "$as_ac_Header=$ac_header_preproc"
8598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8603 cat >>confdefs.h <<_ACEOF
8604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8616 for ac_func in snprintf
8618 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8619 echo "$as_me:$LINENO: checking for $ac_func" >&5
8620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8621 if eval "test \"\${$as_ac_var+set}\" = set"; then
8622 echo $ECHO_N "(cached) $ECHO_C" >&6
8624 cat >conftest.$ac_ext <<_ACEOF
8625 #line $LINENO "configure"
8628 cat confdefs.h >>conftest.$ac_ext
8629 cat >>conftest.$ac_ext <<_ACEOF
8630 /* end confdefs.h. */
8631 /* System header to define __stub macros and hopefully few prototypes,
8632 which can conflict with char $ac_func (); below.
8633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8634 <limits.h> exists even on freestanding compilers. */
8636 # include <limits.h>
8638 # include <assert.h>
8640 /* Override any gcc2 internal prototype to avoid an error. */
8645 /* We use char because int might match the return type of a gcc2
8646 builtin and then its argument prototype would still apply. */
8648 /* The GNU C library defines this for functions which it implements
8649 to always fail with ENOSYS. Some functions are actually named
8650 something starting with __ and the normal name is an alias. */
8651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8654 char (*f) () = $ac_func;
8663 return f != $ac_func;
8668 rm -f conftest.$ac_objext conftest$ac_exeext
8669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8670 (eval $ac_link) 2>&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); } &&
8674 { ac_try='test -s conftest$ac_exeext'
8675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); }; }; then
8680 eval "$as_ac_var=yes"
8682 echo "$as_me: failed program was:" >&5
8683 sed 's/^/| /' conftest.$ac_ext >&5
8685 eval "$as_ac_var=no"
8687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8690 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8691 if test `eval echo '${'$as_ac_var'}'` = yes; then
8692 cat >>confdefs.h <<_ACEOF
8693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8697 mutt_cv_snprintf=yes
8702 for ac_func in vsnprintf
8704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8705 echo "$as_me:$LINENO: checking for $ac_func" >&5
8706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8707 if eval "test \"\${$as_ac_var+set}\" = set"; then
8708 echo $ECHO_N "(cached) $ECHO_C" >&6
8710 cat >conftest.$ac_ext <<_ACEOF
8711 #line $LINENO "configure"
8714 cat confdefs.h >>conftest.$ac_ext
8715 cat >>conftest.$ac_ext <<_ACEOF
8716 /* end confdefs.h. */
8717 /* System header to define __stub macros and hopefully few prototypes,
8718 which can conflict with char $ac_func (); below.
8719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8720 <limits.h> exists even on freestanding compilers. */
8722 # include <limits.h>
8724 # include <assert.h>
8726 /* Override any gcc2 internal prototype to avoid an error. */
8731 /* We use char because int might match the return type of a gcc2
8732 builtin and then its argument prototype would still apply. */
8734 /* The GNU C library defines this for functions which it implements
8735 to always fail with ENOSYS. Some functions are actually named
8736 something starting with __ and the normal name is an alias. */
8737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8740 char (*f) () = $ac_func;
8749 return f != $ac_func;
8754 rm -f conftest.$ac_objext conftest$ac_exeext
8755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8756 (eval $ac_link) 2>&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } &&
8760 { ac_try='test -s conftest$ac_exeext'
8761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765 (exit $ac_status); }; }; then
8766 eval "$as_ac_var=yes"
8768 echo "$as_me: failed program was:" >&5
8769 sed 's/^/| /' conftest.$ac_ext >&5
8771 eval "$as_ac_var=no"
8773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8776 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8777 if test `eval echo '${'$as_ac_var'}'` = yes; then
8778 cat >>confdefs.h <<_ACEOF
8779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8783 mutt_cv_snprintf=yes
8787 if test $mutt_cv_snprintf = yes; then
8788 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
8792 for ac_func in ftruncate
8794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8795 echo "$as_me:$LINENO: checking for $ac_func" >&5
8796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8797 if eval "test \"\${$as_ac_var+set}\" = set"; then
8798 echo $ECHO_N "(cached) $ECHO_C" >&6
8800 cat >conftest.$ac_ext <<_ACEOF
8801 #line $LINENO "configure"
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h. */
8807 /* System header to define __stub macros and hopefully few prototypes,
8808 which can conflict with char $ac_func (); below.
8809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8810 <limits.h> exists even on freestanding compilers. */
8812 # include <limits.h>
8814 # include <assert.h>
8816 /* Override any gcc2 internal prototype to avoid an error. */
8821 /* We use char because int might match the return type of a gcc2
8822 builtin and then its argument prototype would still apply. */
8824 /* The GNU C library defines this for functions which it implements
8825 to always fail with ENOSYS. Some functions are actually named
8826 something starting with __ and the normal name is an alias. */
8827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8830 char (*f) () = $ac_func;
8839 return f != $ac_func;
8844 rm -f conftest.$ac_objext conftest$ac_exeext
8845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8846 (eval $ac_link) 2>&5
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); } &&
8850 { ac_try='test -s conftest$ac_exeext'
8851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); }; }; then
8856 eval "$as_ac_var=yes"
8858 echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8861 eval "$as_ac_var=no"
8863 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8866 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8867 if test `eval echo '${'$as_ac_var'}'` = yes; then
8868 cat >>confdefs.h <<_ACEOF
8869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8874 echo "$as_me:$LINENO: checking for chsize in -lx" >&5
8875 echo $ECHO_N "checking for chsize in -lx... $ECHO_C" >&6
8876 if test "${ac_cv_lib_x_chsize+set}" = set; then
8877 echo $ECHO_N "(cached) $ECHO_C" >&6
8879 ac_check_lib_save_LIBS=$LIBS
8881 cat >conftest.$ac_ext <<_ACEOF
8882 #line $LINENO "configure"
8885 cat confdefs.h >>conftest.$ac_ext
8886 cat >>conftest.$ac_ext <<_ACEOF
8887 /* end confdefs.h. */
8889 /* Override any gcc2 internal prototype to avoid an error. */
8893 /* We use char because int might match the return type of a gcc2
8894 builtin and then its argument prototype would still apply. */
8904 rm -f conftest.$ac_objext conftest$ac_exeext
8905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8906 (eval $ac_link) 2>&5
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); } &&
8910 { ac_try='test -s conftest$ac_exeext'
8911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); }; }; then
8916 ac_cv_lib_x_chsize=yes
8918 echo "$as_me: failed program was:" >&5
8919 sed 's/^/| /' conftest.$ac_ext >&5
8921 ac_cv_lib_x_chsize=no
8923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8924 LIBS=$ac_check_lib_save_LIBS
8926 echo "$as_me:$LINENO: result: $ac_cv_lib_x_chsize" >&5
8927 echo "${ECHO_T}$ac_cv_lib_x_chsize" >&6
8928 if test $ac_cv_lib_x_chsize = yes; then
8929 cat >>confdefs.h <<_ACEOF
8942 for ac_func in strftime
8944 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8945 echo "$as_me:$LINENO: checking for $ac_func" >&5
8946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8947 if eval "test \"\${$as_ac_var+set}\" = set"; then
8948 echo $ECHO_N "(cached) $ECHO_C" >&6
8950 cat >conftest.$ac_ext <<_ACEOF
8951 #line $LINENO "configure"
8954 cat confdefs.h >>conftest.$ac_ext
8955 cat >>conftest.$ac_ext <<_ACEOF
8956 /* end confdefs.h. */
8957 /* System header to define __stub macros and hopefully few prototypes,
8958 which can conflict with char $ac_func (); below.
8959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8960 <limits.h> exists even on freestanding compilers. */
8962 # include <limits.h>
8964 # include <assert.h>
8966 /* Override any gcc2 internal prototype to avoid an error. */
8971 /* We use char because int might match the return type of a gcc2
8972 builtin and then its argument prototype would still apply. */
8974 /* The GNU C library defines this for functions which it implements
8975 to always fail with ENOSYS. Some functions are actually named
8976 something starting with __ and the normal name is an alias. */
8977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8980 char (*f) () = $ac_func;
8989 return f != $ac_func;
8994 rm -f conftest.$ac_objext conftest$ac_exeext
8995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8996 (eval $ac_link) 2>&5
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); } &&
9000 { ac_try='test -s conftest$ac_exeext'
9001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); }; }; then
9006 eval "$as_ac_var=yes"
9008 echo "$as_me: failed program was:" >&5
9009 sed 's/^/| /' conftest.$ac_ext >&5
9011 eval "$as_ac_var=no"
9013 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9016 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9017 if test `eval echo '${'$as_ac_var'}'` = yes; then
9018 cat >>confdefs.h <<_ACEOF
9019 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9024 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
9025 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
9026 if test "${ac_cv_lib_intl_strftime+set}" = set; then
9027 echo $ECHO_N "(cached) $ECHO_C" >&6
9029 ac_check_lib_save_LIBS=$LIBS
9031 cat >conftest.$ac_ext <<_ACEOF
9032 #line $LINENO "configure"
9035 cat confdefs.h >>conftest.$ac_ext
9036 cat >>conftest.$ac_ext <<_ACEOF
9037 /* end confdefs.h. */
9039 /* Override any gcc2 internal prototype to avoid an error. */
9043 /* We use char because int might match the return type of a gcc2
9044 builtin and then its argument prototype would still apply. */
9054 rm -f conftest.$ac_objext conftest$ac_exeext
9055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9056 (eval $ac_link) 2>&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } &&
9060 { ac_try='test -s conftest$ac_exeext'
9061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); }; }; then
9066 ac_cv_lib_intl_strftime=yes
9068 echo "$as_me: failed program was:" >&5
9069 sed 's/^/| /' conftest.$ac_ext >&5
9071 ac_cv_lib_intl_strftime=no
9073 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9074 LIBS=$ac_check_lib_save_LIBS
9076 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
9077 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
9078 if test $ac_cv_lib_intl_strftime = yes; then
9079 cat >>confdefs.h <<_ACEOF
9080 #define HAVE_LIBINTL 1
9092 for ac_func in fchdir
9094 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9095 echo "$as_me:$LINENO: checking for $ac_func" >&5
9096 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9097 if eval "test \"\${$as_ac_var+set}\" = set"; then
9098 echo $ECHO_N "(cached) $ECHO_C" >&6
9100 cat >conftest.$ac_ext <<_ACEOF
9101 #line $LINENO "configure"
9104 cat confdefs.h >>conftest.$ac_ext
9105 cat >>conftest.$ac_ext <<_ACEOF
9106 /* end confdefs.h. */
9107 /* System header to define __stub macros and hopefully few prototypes,
9108 which can conflict with char $ac_func (); below.
9109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9110 <limits.h> exists even on freestanding compilers. */
9112 # include <limits.h>
9114 # include <assert.h>
9116 /* Override any gcc2 internal prototype to avoid an error. */
9121 /* We use char because int might match the return type of a gcc2
9122 builtin and then its argument prototype would still apply. */
9124 /* The GNU C library defines this for functions which it implements
9125 to always fail with ENOSYS. Some functions are actually named
9126 something starting with __ and the normal name is an alias. */
9127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9130 char (*f) () = $ac_func;
9139 return f != $ac_func;
9144 rm -f conftest.$ac_objext conftest$ac_exeext
9145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9146 (eval $ac_link) 2>&5
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); } &&
9150 { ac_try='test -s conftest$ac_exeext'
9151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); }; }; then
9156 eval "$as_ac_var=yes"
9158 echo "$as_me: failed program was:" >&5
9159 sed 's/^/| /' conftest.$ac_ext >&5
9161 eval "$as_ac_var=no"
9163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9166 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9167 if test `eval echo '${'$as_ac_var'}'` = yes; then
9168 cat >>confdefs.h <<_ACEOF
9169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9179 # Check whether --with-regex or --without-regex was given.
9180 if test "${with_regex+set}" = set; then
9181 withval="$with_regex"
9185 for ac_func in regcomp
9187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9188 echo "$as_me:$LINENO: checking for $ac_func" >&5
9189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9190 if eval "test \"\${$as_ac_var+set}\" = set"; then
9191 echo $ECHO_N "(cached) $ECHO_C" >&6
9193 cat >conftest.$ac_ext <<_ACEOF
9194 #line $LINENO "configure"
9197 cat confdefs.h >>conftest.$ac_ext
9198 cat >>conftest.$ac_ext <<_ACEOF
9199 /* end confdefs.h. */
9200 /* System header to define __stub macros and hopefully few prototypes,
9201 which can conflict with char $ac_func (); below.
9202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9203 <limits.h> exists even on freestanding compilers. */
9205 # include <limits.h>
9207 # include <assert.h>
9209 /* Override any gcc2 internal prototype to avoid an error. */
9214 /* We use char because int might match the return type of a gcc2
9215 builtin and then its argument prototype would still apply. */
9217 /* The GNU C library defines this for functions which it implements
9218 to always fail with ENOSYS. Some functions are actually named
9219 something starting with __ and the normal name is an alias. */
9220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9223 char (*f) () = $ac_func;
9232 return f != $ac_func;
9237 rm -f conftest.$ac_objext conftest$ac_exeext
9238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9239 (eval $ac_link) 2>&5
9241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); } &&
9243 { ac_try='test -s conftest$ac_exeext'
9244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248 (exit $ac_status); }; }; then
9249 eval "$as_ac_var=yes"
9251 echo "$as_me: failed program was:" >&5
9252 sed 's/^/| /' conftest.$ac_ext >&5
9254 eval "$as_ac_var=no"
9256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9259 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9260 if test `eval echo '${'$as_ac_var'}'` = yes; then
9261 cat >>confdefs.h <<_ACEOF
9262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9272 if test $mutt_cv_regex = no ; then
9273 echo "$as_me:$LINENO: checking whether your system's regexp library is completely broken" >&5
9274 echo $ECHO_N "checking whether your system's regexp library is completely broken... $ECHO_C" >&6
9275 if test "${mutt_cv_regex_broken+set}" = set; then
9276 echo $ECHO_N "(cached) $ECHO_C" >&6
9278 if test "$cross_compiling" = yes; then
9279 mutt_cv_regex_broken=yes
9281 cat >conftest.$ac_ext <<_ACEOF
9282 #line $LINENO "configure"
9285 cat confdefs.h >>conftest.$ac_ext
9286 cat >>conftest.$ac_ext <<_ACEOF
9287 /* end confdefs.h. */
9291 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); }
9293 rm -f conftest$ac_exeext
9294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9295 (eval $ac_link) 2>&5
9297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303 (exit $ac_status); }; }; then
9304 mutt_cv_regex_broken=no
9306 echo "$as_me: program exited with status $ac_status" >&5
9307 echo "$as_me: failed program was:" >&5
9308 sed 's/^/| /' conftest.$ac_ext >&5
9311 mutt_cv_regex_broken=yes
9313 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9316 echo "$as_me:$LINENO: result: $mutt_cv_regex_broken" >&5
9317 echo "${ECHO_T}$mutt_cv_regex_broken" >&6
9318 if test $mutt_cv_regex_broken = yes ; then
9319 echo "Using the included GNU regex instead." >&6
9324 if test $mutt_cv_regex = yes; then
9326 cat >>confdefs.h <<\_ACEOF
9327 #define USE_GNU_REGEX 1
9330 LIBOBJS="$LIBOBJS regex.$ac_objext"
9335 # Check whether --with-homespool or --without-homespool was given.
9336 if test "${with_homespool+set}" = set; then
9337 withval="$with_homespool"
9338 with_homespool=${withval}
9340 if test x$with_homespool != x; then
9341 if test $with_homespool = yes; then
9342 with_homespool=mailbox
9345 cat >>confdefs.h <<_ACEOF
9346 #define MAILPATH "$with_homespool"
9350 cat >>confdefs.h <<\_ACEOF
9355 cat >>confdefs.h <<\_ACEOF
9356 #define USE_DOTLOCK 1
9362 # Check whether --with-mailpath or --without-mailpath was given.
9363 if test "${with_mailpath+set}" = set; then
9364 withval="$with_mailpath"
9365 mutt_cv_mailpath=$withval
9367 echo "$as_me:$LINENO: checking where new mail is stored" >&5
9368 echo $ECHO_N "checking where new mail is stored... $ECHO_C" >&6
9369 if test "${mutt_cv_mailpath+set}" = set; then
9370 echo $ECHO_N "(cached) $ECHO_C" >&6
9373 if test -d /var/mail; then
9374 mutt_cv_mailpath=/var/mail
9375 elif test -d /var/spool/mail; then
9376 mutt_cv_mailpath=/var/spool/mail
9377 elif test -d /usr/spool/mail; then
9378 mutt_cv_mailpath=/usr/spool/mail
9379 elif test -d /usr/mail; then
9380 mutt_cv_mailpath=/usr/mail
9383 echo "$as_me:$LINENO: result: $mutt_cv_mailpath" >&5
9384 echo "${ECHO_T}$mutt_cv_mailpath" >&6
9387 if test "$mutt_cv_mailpath" = no; then
9388 { { echo "$as_me:$LINENO: error: \"Could not determine where new mail is stored.\"" >&5
9389 echo "$as_me: error: \"Could not determine where new mail is stored.\"" >&2;}
9390 { (exit 1); exit 1; }; }
9393 cat >>confdefs.h <<_ACEOF
9394 #define MAILPATH "$mutt_cv_mailpath"
9398 echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is world writable" >&5
9399 echo $ECHO_N "checking if $mutt_cv_mailpath is world writable... $ECHO_C" >&6
9400 if test "${mutt_cv_worldwrite+set}" = set; then
9401 echo $ECHO_N "(cached) $ECHO_C" >&6
9403 if test "$cross_compiling" = yes; then
9404 mutt_cv_worldwrite=no
9406 cat >conftest.$ac_ext <<_ACEOF
9407 #line $LINENO "configure"
9410 cat confdefs.h >>conftest.$ac_ext
9411 cat >>conftest.$ac_ext <<_ACEOF
9412 /* end confdefs.h. */
9413 #include <sys/types.h>
9414 #include <sys/stat.h>
9416 int main (int argc, char **argv)
9420 stat ("$mutt_cv_mailpath", &s);
9421 if (s.st_mode & S_IWOTH) exit (0);
9425 rm -f conftest$ac_exeext
9426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9427 (eval $ac_link) 2>&5
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); }; }; then
9436 mutt_cv_worldwrite=yes
9438 echo "$as_me: program exited with status $ac_status" >&5
9439 echo "$as_me: failed program was:" >&5
9440 sed 's/^/| /' conftest.$ac_ext >&5
9443 mutt_cv_worldwrite=no
9445 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9448 echo "$as_me:$LINENO: result: $mutt_cv_worldwrite" >&5
9449 echo "${ECHO_T}$mutt_cv_worldwrite" >&6
9452 if test $mutt_cv_worldwrite = yes; then
9454 cat >>confdefs.h <<\_ACEOF
9455 #define USE_DOTLOCK 1
9460 echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is group writable" >&5
9461 echo $ECHO_N "checking if $mutt_cv_mailpath is group writable... $ECHO_C" >&6
9462 if test "${mutt_cv_groupwrite+set}" = set; then
9463 echo $ECHO_N "(cached) $ECHO_C" >&6
9465 if test "$cross_compiling" = yes; then
9466 mutt_cv_groupwrite=no
9468 cat >conftest.$ac_ext <<_ACEOF
9469 #line $LINENO "configure"
9472 cat confdefs.h >>conftest.$ac_ext
9473 cat >>conftest.$ac_ext <<_ACEOF
9474 /* end confdefs.h. */
9475 #include <sys/types.h>
9476 #include <sys/stat.h>
9478 int main (int argc, char **argv)
9482 stat ("$mutt_cv_mailpath", &s);
9483 if (s.st_mode & S_IWGRP) exit (0);
9487 rm -f conftest$ac_exeext
9488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9489 (eval $ac_link) 2>&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); }; }; then
9498 mutt_cv_groupwrite=yes
9500 echo "$as_me: program exited with status $ac_status" >&5
9501 echo "$as_me: failed program was:" >&5
9502 sed 's/^/| /' conftest.$ac_ext >&5
9505 mutt_cv_groupwrite=no
9507 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9510 echo "$as_me:$LINENO: result: $mutt_cv_groupwrite" >&5
9511 echo "${ECHO_T}$mutt_cv_groupwrite" >&6
9513 if test $mutt_cv_groupwrite = yes; then
9515 cat >>confdefs.h <<\_ACEOF
9516 #define USE_DOTLOCK 1
9520 cat >>confdefs.h <<\_ACEOF
9521 #define USE_SETGID 1
9529 # Check whether --enable-external_dotlock or --disable-external_dotlock was given.
9530 if test "${enable_external_dotlock+set}" = set; then
9531 enableval="$enable_external_dotlock"
9532 mutt_cv_external_dotlock="$enableval"
9535 if test "x$mutt_cv_setgid" = "xyes" || test "x$mutt_cv_fchdir" = "xno" \
9536 || test "x$mutt_cv_external_dotlock" = "xyes"
9539 cat >>confdefs.h <<\_ACEOF
9540 #define DL_STANDALONE 1
9543 DOTLOCK_TARGET="mutt_dotlock"
9545 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS dotlock.o"
9551 echo "$as_me:$LINENO: checking where to put the documentation" >&5
9552 echo $ECHO_N "checking where to put the documentation... $ECHO_C" >&6
9554 # Check whether --with-docdir or --without-docdir was given.
9555 if test "${with_docdir+set}" = set; then
9556 withval="$with_docdir"
9557 mutt_cv_docdir=$withval
9559 mutt_cv_docdir="$mutt_cv_prefix/doc/mutt"
9561 echo "$as_me:$LINENO: result: $mutt_cv_docdir" >&5
9562 echo "${ECHO_T}$mutt_cv_docdir" >&6
9564 docdir=$mutt_cv_docdir
9567 if test x$mutt_cv_setgid = xyes; then
9568 DOTLOCK_GROUP='mail'
9569 DOTLOCK_PERMISSION=2755
9572 DOTLOCK_PERMISSION=755
9578 # Check whether --with-domain or --without-domain was given.
9579 if test "${with_domain+set}" = set; then
9580 withval="$with_domain"
9581 if test $withval != yes; then
9583 cat >>confdefs.h <<_ACEOF
9584 #define DOMAIN "$withval"
9593 # Check whether --enable-pop or --disable-pop was given.
9594 if test "${enable_pop+set}" = set; then
9595 enableval="$enable_pop"
9596 if test x$enableval = xyes ; then
9598 cat >>confdefs.h <<\_ACEOF
9602 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pop.o pop_lib.o pop_auth.o"
9609 # Check whether --enable-imap or --disable-imap was given.
9610 if test "${enable_imap+set}" = set; then
9611 enableval="$enable_imap"
9612 if test x$enableval = xyes ; then
9614 cat >>confdefs.h <<\_ACEOF
9618 LIBIMAP="-Limap -limap"
9619 LIBIMAPDEPS="\$(top_srcdir)/imap/imap.h imap/libimap.a"
9628 if test x$need_imap = xyes; then
9630 BUILD_IMAP_FALSE='#'
9637 # Check whether --enable-nntp or --disable-nntp was given.
9638 if test "${enable_nntp+set}" = set; then
9639 enableval="$enable_nntp"
9640 if test x$enableval = xyes ; then
9641 cat >>confdefs.h <<\_ACEOF
9645 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS nntp.o newsrc.o"
9652 if test "$need_socket" = "yes"
9654 echo "$as_me:$LINENO: checking for socklen_t" >&5
9655 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
9656 cat >conftest.$ac_ext <<_ACEOF
9657 #line $LINENO "configure"
9660 cat confdefs.h >>conftest.$ac_ext
9661 cat >>conftest.$ac_ext <<_ACEOF
9662 /* end confdefs.h. */
9663 #include <sys/socket.h>
9666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9667 $EGREP "socklen_t" >/dev/null 2>&1; then
9668 echo "$as_me:$LINENO: result: yes" >&5
9669 echo "${ECHO_T}yes" >&6
9671 echo "$as_me:$LINENO: result: no" >&5
9672 echo "${ECHO_T}no" >&6
9674 cat >>confdefs.h <<\_ACEOF
9675 #define socklen_t int
9681 echo "$as_me:$LINENO: checking for gethostent" >&5
9682 echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
9683 if test "${ac_cv_func_gethostent+set}" = set; then
9684 echo $ECHO_N "(cached) $ECHO_C" >&6
9686 cat >conftest.$ac_ext <<_ACEOF
9687 #line $LINENO "configure"
9690 cat confdefs.h >>conftest.$ac_ext
9691 cat >>conftest.$ac_ext <<_ACEOF
9692 /* end confdefs.h. */
9693 /* System header to define __stub macros and hopefully few prototypes,
9694 which can conflict with char gethostent (); below.
9695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9696 <limits.h> exists even on freestanding compilers. */
9698 # include <limits.h>
9700 # include <assert.h>
9702 /* Override any gcc2 internal prototype to avoid an error. */
9707 /* We use char because int might match the return type of a gcc2
9708 builtin and then its argument prototype would still apply. */
9710 /* The GNU C library defines this for functions which it implements
9711 to always fail with ENOSYS. Some functions are actually named
9712 something starting with __ and the normal name is an alias. */
9713 #if defined (__stub_gethostent) || defined (__stub___gethostent)
9716 char (*f) () = gethostent;
9725 return f != gethostent;
9730 rm -f conftest.$ac_objext conftest$ac_exeext
9731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9732 (eval $ac_link) 2>&5
9734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735 (exit $ac_status); } &&
9736 { ac_try='test -s conftest$ac_exeext'
9737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); }; }; then
9742 ac_cv_func_gethostent=yes
9744 echo "$as_me: failed program was:" >&5
9745 sed 's/^/| /' conftest.$ac_ext >&5
9747 ac_cv_func_gethostent=no
9749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9751 echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5
9752 echo "${ECHO_T}$ac_cv_func_gethostent" >&6
9753 if test $ac_cv_func_gethostent = yes; then
9757 echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
9758 echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
9759 if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
9760 echo $ECHO_N "(cached) $ECHO_C" >&6
9762 ac_check_lib_save_LIBS=$LIBS
9764 cat >conftest.$ac_ext <<_ACEOF
9765 #line $LINENO "configure"
9768 cat confdefs.h >>conftest.$ac_ext
9769 cat >>conftest.$ac_ext <<_ACEOF
9770 /* end confdefs.h. */
9772 /* Override any gcc2 internal prototype to avoid an error. */
9776 /* We use char because int might match the return type of a gcc2
9777 builtin and then its argument prototype would still apply. */
9787 rm -f conftest.$ac_objext conftest$ac_exeext
9788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9789 (eval $ac_link) 2>&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); } &&
9793 { ac_try='test -s conftest$ac_exeext'
9794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); }; }; then
9799 ac_cv_lib_nsl_gethostent=yes
9801 echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.$ac_ext >&5
9804 ac_cv_lib_nsl_gethostent=no
9806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9807 LIBS=$ac_check_lib_save_LIBS
9809 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
9810 echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
9811 if test $ac_cv_lib_nsl_gethostent = yes; then
9812 cat >>confdefs.h <<_ACEOF
9813 #define HAVE_LIBNSL 1
9822 echo "$as_me:$LINENO: checking for setsockopt" >&5
9823 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
9824 if test "${ac_cv_func_setsockopt+set}" = set; then
9825 echo $ECHO_N "(cached) $ECHO_C" >&6
9827 cat >conftest.$ac_ext <<_ACEOF
9828 #line $LINENO "configure"
9831 cat confdefs.h >>conftest.$ac_ext
9832 cat >>conftest.$ac_ext <<_ACEOF
9833 /* end confdefs.h. */
9834 /* System header to define __stub macros and hopefully few prototypes,
9835 which can conflict with char setsockopt (); below.
9836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9837 <limits.h> exists even on freestanding compilers. */
9839 # include <limits.h>
9841 # include <assert.h>
9843 /* Override any gcc2 internal prototype to avoid an error. */
9848 /* We use char because int might match the return type of a gcc2
9849 builtin and then its argument prototype would still apply. */
9851 /* The GNU C library defines this for functions which it implements
9852 to always fail with ENOSYS. Some functions are actually named
9853 something starting with __ and the normal name is an alias. */
9854 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
9857 char (*f) () = setsockopt;
9866 return f != setsockopt;
9871 rm -f conftest.$ac_objext conftest$ac_exeext
9872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9873 (eval $ac_link) 2>&5
9875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876 (exit $ac_status); } &&
9877 { ac_try='test -s conftest$ac_exeext'
9878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); }; }; then
9883 ac_cv_func_setsockopt=yes
9885 echo "$as_me: failed program was:" >&5
9886 sed 's/^/| /' conftest.$ac_ext >&5
9888 ac_cv_func_setsockopt=no
9890 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9892 echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
9893 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
9894 if test $ac_cv_func_setsockopt = yes; then
9898 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
9899 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
9900 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
9901 echo $ECHO_N "(cached) $ECHO_C" >&6
9903 ac_check_lib_save_LIBS=$LIBS
9904 LIBS="-lsocket $LIBS"
9905 cat >conftest.$ac_ext <<_ACEOF
9906 #line $LINENO "configure"
9909 cat confdefs.h >>conftest.$ac_ext
9910 cat >>conftest.$ac_ext <<_ACEOF
9911 /* end confdefs.h. */
9913 /* Override any gcc2 internal prototype to avoid an error. */
9917 /* We use char because int might match the return type of a gcc2
9918 builtin and then its argument prototype would still apply. */
9928 rm -f conftest.$ac_objext conftest$ac_exeext
9929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9930 (eval $ac_link) 2>&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); } &&
9934 { ac_try='test -s conftest$ac_exeext'
9935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939 (exit $ac_status); }; }; then
9940 ac_cv_lib_socket_setsockopt=yes
9942 echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.$ac_ext >&5
9945 ac_cv_lib_socket_setsockopt=no
9947 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9948 LIBS=$ac_check_lib_save_LIBS
9950 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
9951 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
9952 if test $ac_cv_lib_socket_setsockopt = yes; then
9953 cat >>confdefs.h <<_ACEOF
9954 #define HAVE_LIBSOCKET 1
9957 LIBS="-lsocket $LIBS"
9964 for ac_func in getaddrinfo
9966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9967 echo "$as_me:$LINENO: checking for $ac_func" >&5
9968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9969 if eval "test \"\${$as_ac_var+set}\" = set"; then
9970 echo $ECHO_N "(cached) $ECHO_C" >&6
9972 cat >conftest.$ac_ext <<_ACEOF
9973 #line $LINENO "configure"
9976 cat confdefs.h >>conftest.$ac_ext
9977 cat >>conftest.$ac_ext <<_ACEOF
9978 /* end confdefs.h. */
9979 /* System header to define __stub macros and hopefully few prototypes,
9980 which can conflict with char $ac_func (); below.
9981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9982 <limits.h> exists even on freestanding compilers. */
9984 # include <limits.h>
9986 # include <assert.h>
9988 /* Override any gcc2 internal prototype to avoid an error. */
9993 /* We use char because int might match the return type of a gcc2
9994 builtin and then its argument prototype would still apply. */
9996 /* The GNU C library defines this for functions which it implements
9997 to always fail with ENOSYS. Some functions are actually named
9998 something starting with __ and the normal name is an alias. */
9999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10002 char (*f) () = $ac_func;
10011 return f != $ac_func;
10016 rm -f conftest.$ac_objext conftest$ac_exeext
10017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10018 (eval $ac_link) 2>&5
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); } &&
10022 { ac_try='test -s conftest$ac_exeext'
10023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024 (eval $ac_try) 2>&5
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); }; }; then
10028 eval "$as_ac_var=yes"
10030 echo "$as_me: failed program was:" >&5
10031 sed 's/^/| /' conftest.$ac_ext >&5
10033 eval "$as_ac_var=no"
10035 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10038 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10039 if test `eval echo '${'$as_ac_var'}'` = yes; then
10040 cat >>confdefs.h <<_ACEOF
10041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10048 cat >>confdefs.h <<\_ACEOF
10049 #define USE_SOCKET 1
10052 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS account.o mutt_socket.o mutt_tunnel.o"
10057 # Check whether --with-gss or --without-gss was given.
10058 if test "${with_gss+set}" = set; then
10059 withval="$with_gss"
10060 gss_prefix="$withval"
10064 if test "$gss_prefix" != "no"
10066 if test "$need_imap" = "yes"
10069 GSSAPI_PREFIX=$gss_prefix
10071 saved_CPPFLAGS="$CPPFLAGS"
10072 saved_LDFLAGS="$LDFLAGS"
10074 if test "$GSSAPI_PREFIX" != "yes"
10076 krb5_path="$GSSAPI_PREFIX/bin"
10080 # Extract the first word of "krb5-config", so it can be a program name with args.
10081 set dummy krb5-config; ac_word=$2
10082 echo "$as_me:$LINENO: checking for $ac_word" >&5
10083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10084 if test "${ac_cv_path_KRB5CFGPATH+set}" = set; then
10085 echo $ECHO_N "(cached) $ECHO_C" >&6
10087 case $KRB5CFGPATH in
10089 ac_cv_path_KRB5CFGPATH="$KRB5CFGPATH" # Let the user override the test with a path.
10092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10093 for as_dir in $krb5_path
10096 test -z "$as_dir" && as_dir=.
10097 for ac_exec_ext in '' $ac_executable_extensions; do
10098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10099 ac_cv_path_KRB5CFGPATH="$as_dir/$ac_word$ac_exec_ext"
10100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10106 test -z "$ac_cv_path_KRB5CFGPATH" && ac_cv_path_KRB5CFGPATH="none"
10110 KRB5CFGPATH=$ac_cv_path_KRB5CFGPATH
10112 if test -n "$KRB5CFGPATH"; then
10113 echo "$as_me:$LINENO: result: $KRB5CFGPATH" >&5
10114 echo "${ECHO_T}$KRB5CFGPATH" >&6
10116 echo "$as_me:$LINENO: result: no" >&5
10117 echo "${ECHO_T}no" >&6
10120 if test "$KRB5CFGPATH" != "none"
10122 GSSAPI_CFLAGS="$CPPFLAGS `$KRB5CFGPATH --cflags gssapi`"
10123 GSSAPI_LIBS="$MUTTLIBS `$KRB5CFGPATH --libs gssapi`"
10124 case "`$KRB5CFGPATH --version`" in
10125 "Kerberos 5 "*) GSSAPI_IMPL="MIT";;
10126 ?eimdal*) GSSAPI_IMPL="Heimdal";;
10127 *) GSSAPI_IMPL="Unknown";;
10130 if test "$GSSAPI_PREFIX" != "yes"
10132 GSSAPI_CFLAGS="-I$GSSAPI_PREFIX/include"
10133 GSSAPI_LDFLAGS="-L$GSSAPI_PREFIX/lib"
10134 CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
10135 LDFLAGS="$LDFLAGS $GSSAPI_LDFLAGS"
10138 echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
10139 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6
10140 if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
10141 echo $ECHO_N "(cached) $ECHO_C" >&6
10143 ac_check_lib_save_LIBS=$LIBS
10144 LIBS="-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err $LIBS"
10145 cat >conftest.$ac_ext <<_ACEOF
10146 #line $LINENO "configure"
10149 cat confdefs.h >>conftest.$ac_ext
10150 cat >>conftest.$ac_ext <<_ACEOF
10151 /* end confdefs.h. */
10153 /* Override any gcc2 internal prototype to avoid an error. */
10157 /* We use char because int might match the return type of a gcc2
10158 builtin and then its argument prototype would still apply. */
10159 char gss_init_sec_context ();
10163 gss_init_sec_context ();
10168 rm -f conftest.$ac_objext conftest$ac_exeext
10169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10170 (eval $ac_link) 2>&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); } &&
10174 { ac_try='test -s conftest$ac_exeext'
10175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176 (eval $ac_try) 2>&5
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); }; }; then
10180 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
10182 echo "$as_me: failed program was:" >&5
10183 sed 's/^/| /' conftest.$ac_ext >&5
10185 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
10187 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10188 LIBS=$ac_check_lib_save_LIBS
10190 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
10191 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6
10192 if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
10195 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err"
10200 if test "$GSSAPI_IMPL" = "none"
10202 echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
10203 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6
10204 if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
10205 echo $ECHO_N "(cached) $ECHO_C" >&6
10207 ac_check_lib_save_LIBS=$LIBS
10208 LIBS="-lgssapi -lkrb5 -ldes -lasn1 -lroken -lcrypt -lcom_err $LIBS"
10209 cat >conftest.$ac_ext <<_ACEOF
10210 #line $LINENO "configure"
10213 cat confdefs.h >>conftest.$ac_ext
10214 cat >>conftest.$ac_ext <<_ACEOF
10215 /* end confdefs.h. */
10217 /* Override any gcc2 internal prototype to avoid an error. */
10221 /* We use char because int might match the return type of a gcc2
10222 builtin and then its argument prototype would still apply. */
10223 char gss_init_sec_context ();
10227 gss_init_sec_context ();
10232 rm -f conftest.$ac_objext conftest$ac_exeext
10233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10234 (eval $ac_link) 2>&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); } &&
10238 { ac_try='test -s conftest$ac_exeext'
10239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240 (eval $ac_try) 2>&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); }; }; then
10244 ac_cv_lib_gssapi_gss_init_sec_context=yes
10246 echo "$as_me: failed program was:" >&5
10247 sed 's/^/| /' conftest.$ac_ext >&5
10249 ac_cv_lib_gssapi_gss_init_sec_context=no
10251 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10252 LIBS=$ac_check_lib_save_LIBS
10254 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
10255 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6
10256 if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
10258 GSSAPI_IMPL="Heimdal"
10259 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi -lkrb5 -ldes -lasn1 -lroken"
10260 GSSAPI_LIBS="$GSSAPI_LIBS -lcrypt -lcom_err"
10266 if test "$GSSAPI_IMPL" = "none"
10268 echo "$as_me:$LINENO: checking for g_order_init in -lgssapi_krb5" >&5
10269 echo $ECHO_N "checking for g_order_init in -lgssapi_krb5... $ECHO_C" >&6
10270 if test "${ac_cv_lib_gssapi_krb5_g_order_init+set}" = set; then
10271 echo $ECHO_N "(cached) $ECHO_C" >&6
10273 ac_check_lib_save_LIBS=$LIBS
10274 LIBS="-lgssapi_krb5 -lkrb5 -lcrypto -lcom_err $LIBS"
10275 cat >conftest.$ac_ext <<_ACEOF
10276 #line $LINENO "configure"
10279 cat confdefs.h >>conftest.$ac_ext
10280 cat >>conftest.$ac_ext <<_ACEOF
10281 /* end confdefs.h. */
10283 /* Override any gcc2 internal prototype to avoid an error. */
10287 /* We use char because int might match the return type of a gcc2
10288 builtin and then its argument prototype would still apply. */
10289 char g_order_init ();
10298 rm -f conftest.$ac_objext conftest$ac_exeext
10299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10300 (eval $ac_link) 2>&5
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); } &&
10304 { ac_try='test -s conftest$ac_exeext'
10305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10306 (eval $ac_try) 2>&5
10308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); }; }; then
10310 ac_cv_lib_gssapi_krb5_g_order_init=yes
10312 echo "$as_me: failed program was:" >&5
10313 sed 's/^/| /' conftest.$ac_ext >&5
10315 ac_cv_lib_gssapi_krb5_g_order_init=no
10317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10318 LIBS=$ac_check_lib_save_LIBS
10320 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_g_order_init" >&5
10321 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_g_order_init" >&6
10322 if test $ac_cv_lib_gssapi_krb5_g_order_init = yes; then
10324 GSSAPI_IMPL="OldMIT",
10325 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err"
10332 CPPFLAGS="$saved_CPPFLAGS"
10333 LDFLAGS="$saved_LDFLAGS"
10336 echo "$as_me:$LINENO: checking GSSAPI implementation" >&5
10337 echo $ECHO_N "checking GSSAPI implementation... $ECHO_C" >&6
10338 echo "$as_me:$LINENO: result: $GSSAPI_IMPL" >&5
10339 echo "${ECHO_T}$GSSAPI_IMPL" >&6
10340 if test "$GSSAPI_IMPL" = "none"
10342 cat >confcache <<\_ACEOF
10343 # This file is a shell script that caches the results of configure
10344 # tests run on this system so they can be shared between configure
10345 # scripts and configure runs, see configure's option --config-cache.
10346 # It is not useful on other systems. If it contains results you don't
10347 # want to keep, you may remove or edit it.
10349 # config.status only pays attention to the cache file if you give it
10350 # the --recheck option to rerun configure.
10352 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10353 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10354 # following values.
10358 # The following way of writing the cache mishandles newlines in values,
10359 # but we know of no workaround that is simple, portable, and efficient.
10360 # So, don't put newlines in cache variables' values.
10361 # Ultrix sh set writes to stderr and can't be redirected directly,
10362 # and sets the high bit in the cache file unless we assign to the vars.
10365 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10367 # `set' does not quote correctly, so add quotes (double-quote
10368 # substitution turns \\\\ into \\, and sed turns \\ into \).
10371 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10374 # `set' quotes correctly as required by POSIX, so do not add quotes.
10376 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10383 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10385 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10387 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10388 if test -w $cache_file; then
10389 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10390 cat confcache >$cache_file
10392 echo "not updating unwritable cache $cache_file"
10396 echo "$as_me:$LINENO: result: GSSAPI libraries not found" >&5
10397 echo "${ECHO_T}GSSAPI libraries not found" >&6
10399 if test "$GSSAPI_IMPL" = "Heimdal"
10402 cat >>confdefs.h <<\_ACEOF
10403 #define HAVE_HEIMDAL 1
10407 CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
10408 MUTTLIBS="$MUTTLIBS $GSSAPI_LIBS"
10410 cat >>confdefs.h <<\_ACEOF
10416 { echo "$as_me:$LINENO: WARNING: GSS was requested but IMAP is not enabled" >&5
10417 echo "$as_me: WARNING: GSS was requested but IMAP is not enabled" >&2;}
10422 if test x$need_gss = xyes; then
10433 # Check whether --with-ssl or --without-ssl was given.
10434 if test "${with_ssl+set}" = set; then
10435 withval="$with_ssl"
10436 if test "$with_ssl" != "no"
10438 if test "$need_socket" != "yes"; then
10439 { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
10440 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
10441 { (exit 1); exit 1; }; }
10444 if test "$with_ssl" != "yes"
10446 LDFLAGS="$LDFLAGS -L$withval/lib"
10447 CPPFLAGS="$CPPFLAGS -I$withval/include"
10452 echo "$as_me:$LINENO: checking for X509_new in -lcrypto" >&5
10453 echo $ECHO_N "checking for X509_new in -lcrypto... $ECHO_C" >&6
10454 if test "${ac_cv_lib_crypto_X509_new+set}" = set; then
10455 echo $ECHO_N "(cached) $ECHO_C" >&6
10457 ac_check_lib_save_LIBS=$LIBS
10458 LIBS="-lcrypto $LIBS"
10459 cat >conftest.$ac_ext <<_ACEOF
10460 #line $LINENO "configure"
10463 cat confdefs.h >>conftest.$ac_ext
10464 cat >>conftest.$ac_ext <<_ACEOF
10465 /* end confdefs.h. */
10467 /* Override any gcc2 internal prototype to avoid an error. */
10471 /* We use char because int might match the return type of a gcc2
10472 builtin and then its argument prototype would still apply. */
10482 rm -f conftest.$ac_objext conftest$ac_exeext
10483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10484 (eval $ac_link) 2>&5
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); } &&
10488 { ac_try='test -s conftest$ac_exeext'
10489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10490 (eval $ac_try) 2>&5
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); }; }; then
10494 ac_cv_lib_crypto_X509_new=yes
10496 echo "$as_me: failed program was:" >&5
10497 sed 's/^/| /' conftest.$ac_ext >&5
10499 ac_cv_lib_crypto_X509_new=no
10501 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10502 LIBS=$ac_check_lib_save_LIBS
10504 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_X509_new" >&5
10505 echo "${ECHO_T}$ac_cv_lib_crypto_X509_new" >&6
10506 if test $ac_cv_lib_crypto_X509_new = yes; then
10507 cat >>confdefs.h <<_ACEOF
10508 #define HAVE_LIBCRYPTO 1
10511 LIBS="-lcrypto $LIBS"
10514 { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
10515 echo "$as_me: error: Unable to find SSL library" >&2;}
10516 { (exit 1); exit 1; }; }
10520 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
10521 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
10522 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
10523 echo $ECHO_N "(cached) $ECHO_C" >&6
10525 ac_check_lib_save_LIBS=$LIBS
10526 LIBS="-lssl -lcrypto $LIBS"
10527 cat >conftest.$ac_ext <<_ACEOF
10528 #line $LINENO "configure"
10531 cat confdefs.h >>conftest.$ac_ext
10532 cat >>conftest.$ac_ext <<_ACEOF
10533 /* end confdefs.h. */
10535 /* Override any gcc2 internal prototype to avoid an error. */
10539 /* We use char because int might match the return type of a gcc2
10540 builtin and then its argument prototype would still apply. */
10550 rm -f conftest.$ac_objext conftest$ac_exeext
10551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10552 (eval $ac_link) 2>&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); } &&
10556 { ac_try='test -s conftest$ac_exeext'
10557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10558 (eval $ac_try) 2>&5
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); }; }; then
10562 ac_cv_lib_ssl_SSL_new=yes
10564 echo "$as_me: failed program was:" >&5
10565 sed 's/^/| /' conftest.$ac_ext >&5
10567 ac_cv_lib_ssl_SSL_new=no
10569 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10570 LIBS=$ac_check_lib_save_LIBS
10572 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
10573 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6
10574 if test $ac_cv_lib_ssl_SSL_new = yes; then
10575 cat >>confdefs.h <<_ACEOF
10576 #define HAVE_LIBSSL 1
10582 { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
10583 echo "$as_me: error: Unable to find SSL library" >&2;}
10584 { (exit 1); exit 1; }; }
10590 for ac_func in RAND_status RAND_egd
10592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10593 echo "$as_me:$LINENO: checking for $ac_func" >&5
10594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10595 if eval "test \"\${$as_ac_var+set}\" = set"; then
10596 echo $ECHO_N "(cached) $ECHO_C" >&6
10598 cat >conftest.$ac_ext <<_ACEOF
10599 #line $LINENO "configure"
10602 cat confdefs.h >>conftest.$ac_ext
10603 cat >>conftest.$ac_ext <<_ACEOF
10604 /* end confdefs.h. */
10605 /* System header to define __stub macros and hopefully few prototypes,
10606 which can conflict with char $ac_func (); below.
10607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10608 <limits.h> exists even on freestanding compilers. */
10610 # include <limits.h>
10612 # include <assert.h>
10614 /* Override any gcc2 internal prototype to avoid an error. */
10619 /* We use char because int might match the return type of a gcc2
10620 builtin and then its argument prototype would still apply. */
10622 /* The GNU C library defines this for functions which it implements
10623 to always fail with ENOSYS. Some functions are actually named
10624 something starting with __ and the normal name is an alias. */
10625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10628 char (*f) () = $ac_func;
10637 return f != $ac_func;
10642 rm -f conftest.$ac_objext conftest$ac_exeext
10643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10644 (eval $ac_link) 2>&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); } &&
10648 { ac_try='test -s conftest$ac_exeext'
10649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10650 (eval $ac_try) 2>&5
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); }; }; then
10654 eval "$as_ac_var=yes"
10656 echo "$as_me: failed program was:" >&5
10657 sed 's/^/| /' conftest.$ac_ext >&5
10659 eval "$as_ac_var=no"
10661 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10664 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10665 if test `eval echo '${'$as_ac_var'}'` = yes; then
10666 cat >>confdefs.h <<_ACEOF
10667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10675 cat >>confdefs.h <<\_ACEOF
10680 MUTTLIBS="$MUTTLIBS -lssl -lcrypto"
10681 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl.o"
10689 if test x$need_ssl = xyes; then
10699 # Check whether --with-gnutls or --without-gnutls was given.
10700 if test "${with_gnutls+set}" = set; then
10701 withval="$with_gnutls"
10702 if test "$need_ssl" = "yes"
10704 { { echo "$as_me:$LINENO: error: In order to compile in GNU TLS support, you must first disable SSL support" >&5
10705 echo "$as_me: error: In order to compile in GNU TLS support, you must first disable SSL support" >&2;}
10706 { (exit 1); exit 1; }; }
10708 if test "$with_gnutls" != "no"
10710 if test "$need_socket" != "yes"; then
10711 { { echo "$as_me:$LINENO: error: GNU TLS support is only useful with POP or IMAP support" >&5
10712 echo "$as_me: error: GNU TLS support is only useful with POP or IMAP support" >&2;}
10713 { (exit 1); exit 1; }; }
10715 if test "$with_gnutls" != "yes"
10717 LDFLAGS="$LDFLAGS -L$withval/lib"
10718 CPPFLAGS="$CPPFLAGS -I$withval/include"
10720 #saved_LIBS="$LIBS"
10723 echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
10724 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6
10725 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
10726 echo $ECHO_N "(cached) $ECHO_C" >&6
10728 ac_check_lib_save_LIBS=$LIBS
10729 LIBS="-lgnutls $LIBS"
10730 cat >conftest.$ac_ext <<_ACEOF
10731 #line $LINENO "configure"
10734 cat confdefs.h >>conftest.$ac_ext
10735 cat >>conftest.$ac_ext <<_ACEOF
10736 /* end confdefs.h. */
10738 /* Override any gcc2 internal prototype to avoid an error. */
10742 /* We use char because int might match the return type of a gcc2
10743 builtin and then its argument prototype would still apply. */
10744 char gnutls_init ();
10753 rm -f conftest.$ac_objext conftest$ac_exeext
10754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10755 (eval $ac_link) 2>&5
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); } &&
10759 { ac_try='test -s conftest$ac_exeext'
10760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10761 (eval $ac_try) 2>&5
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); }; }; then
10765 ac_cv_lib_gnutls_gnutls_init=yes
10767 echo "$as_me: failed program was:" >&5
10768 sed 's/^/| /' conftest.$ac_ext >&5
10770 ac_cv_lib_gnutls_gnutls_init=no
10772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10773 LIBS=$ac_check_lib_save_LIBS
10775 echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
10776 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6
10777 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
10778 cat >>confdefs.h <<_ACEOF
10779 #define HAVE_LIBGNUTLS 1
10782 LIBS="-lgnutls $LIBS"
10785 { { echo "$as_me:$LINENO: error: Unable to find GNU TLS library" >&5
10786 echo "$as_me: error: Unable to find GNU TLS library" >&2;}
10787 { (exit 1); exit 1; }; }
10792 cat >>confdefs.h <<\_ACEOF
10793 #define USE_GNUTLS 1
10796 #LIBS="$saved_LIBS"
10797 #MUTTLIBS="$MUTTLIBS -lgnutls"
10798 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_gnutls.o"
10805 if test x$need_gnutls = xyes; then
10807 USE_GNUTLS_FALSE='#'
10809 USE_GNUTLS_TRUE='#'
10815 # Check whether --with-nss or --without-nss was given.
10816 if test "${with_nss+set}" = set; then
10817 withval="$with_nss"
10818 if test "$with_nss" != no
10820 if test "$need_socket" != "yes"; then
10821 { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
10822 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
10823 { (exit 1); exit 1; }; }
10826 if test "$with_nss" != "yes"
10828 LDFLAGS="$LDFLAGS -L$withval/lib"
10829 CPPFLAGS="$CPPFLAGS -I$withval/include -I$withval/public/security"
10833 cat >>confdefs.h <<\_ACEOF
10837 MUTTLIBS="$MUTTLIBS -lssl -lnss -lcertdb -lcerthi -lcryptohi"
10838 MUTTLIBS="$MUTTLIBS -lpk11wrap -lsoftoken -lsecutil -ldbm -lplds4 -lplc4 -lfreebl"
10839 MUTTLIBS="$MUTTLIBS -lnspr4"
10841 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_nss.o"
10848 # Check whether --with-sasl or --without-sasl was given.
10849 if test "${with_sasl+set}" = set; then
10850 withval="$with_sasl"
10852 if test "$need_socket" != "yes"
10854 { { echo "$as_me:$LINENO: error: SASL support is only useful with POP or IMAP support" >&5
10855 echo "$as_me: error: SASL support is only useful with POP or IMAP support" >&2;}
10856 { (exit 1); exit 1; }; }
10859 if test "$with_sasl" != "no"
10861 if test "$with_sasl" != "yes"
10863 CPPFLAGS="$CPPFLAGS -I$with_sasl/include"
10864 LDFLAGS="$LDFLAGS -L$with_sasl/lib"
10870 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
10871 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
10872 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
10873 echo $ECHO_N "(cached) $ECHO_C" >&6
10875 ac_check_lib_save_LIBS=$LIBS
10876 LIBS="-lsasl $LIBS"
10877 cat >conftest.$ac_ext <<_ACEOF
10878 #line $LINENO "configure"
10881 cat confdefs.h >>conftest.$ac_ext
10882 cat >>conftest.$ac_ext <<_ACEOF
10883 /* end confdefs.h. */
10885 /* Override any gcc2 internal prototype to avoid an error. */
10889 /* We use char because int might match the return type of a gcc2
10890 builtin and then its argument prototype would still apply. */
10891 char sasl_client_init ();
10895 sasl_client_init ();
10900 rm -f conftest.$ac_objext conftest$ac_exeext
10901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10902 (eval $ac_link) 2>&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); } &&
10906 { ac_try='test -s conftest$ac_exeext'
10907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10908 (eval $ac_try) 2>&5
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); }; }; then
10912 ac_cv_lib_sasl_sasl_client_init=yes
10914 echo "$as_me: failed program was:" >&5
10915 sed 's/^/| /' conftest.$ac_ext >&5
10917 ac_cv_lib_sasl_sasl_client_init=no
10919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10920 LIBS=$ac_check_lib_save_LIBS
10922 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
10923 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
10924 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
10925 cat >>confdefs.h <<_ACEOF
10926 #define HAVE_LIBSASL 1
10929 LIBS="-lsasl $LIBS"
10932 { { echo "$as_me:$LINENO: error: could not find libsasl" >&5
10933 echo "$as_me: error: could not find libsasl" >&2;}
10934 { (exit 1); exit 1; }; }
10938 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
10939 MUTTLIBS="$MUTTLIBS -lsasl"
10942 cat >>confdefs.h <<\_ACEOF
10952 if test x$need_sasl = xyes; then
10962 # Check whether --with-sasl2 or --without-sasl2 was given.
10963 if test "${with_sasl2+set}" = set; then
10964 withval="$with_sasl2"
10966 if test "$need_socket" != "yes"
10968 { { echo "$as_me:$LINENO: error: SASL support is only useful with POP or IMAP support" >&5
10969 echo "$as_me: error: SASL support is only useful with POP or IMAP support" >&2;}
10970 { (exit 1); exit 1; }; }
10973 if test "$with_sasl2" != "no"
10975 if test "$with_sasl2" != "yes"
10977 CPPFLAGS="$CPPFLAGS -I$with_sasl2/include"
10978 LDFLAGS="$LDFLAGS -L$with_sasl2/lib"
10984 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
10985 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
10986 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
10987 echo $ECHO_N "(cached) $ECHO_C" >&6
10989 ac_check_lib_save_LIBS=$LIBS
10990 LIBS="-lsasl2 $LIBS"
10991 cat >conftest.$ac_ext <<_ACEOF
10992 #line $LINENO "configure"
10995 cat confdefs.h >>conftest.$ac_ext
10996 cat >>conftest.$ac_ext <<_ACEOF
10997 /* end confdefs.h. */
10999 /* Override any gcc2 internal prototype to avoid an error. */
11003 /* We use char because int might match the return type of a gcc2
11004 builtin and then its argument prototype would still apply. */
11005 char sasl_client_init ();
11009 sasl_client_init ();
11014 rm -f conftest.$ac_objext conftest$ac_exeext
11015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11016 (eval $ac_link) 2>&5
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); } &&
11020 { ac_try='test -s conftest$ac_exeext'
11021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11022 (eval $ac_try) 2>&5
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); }; }; then
11026 ac_cv_lib_sasl2_sasl_client_init=yes
11028 echo "$as_me: failed program was:" >&5
11029 sed 's/^/| /' conftest.$ac_ext >&5
11031 ac_cv_lib_sasl2_sasl_client_init=no
11033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11034 LIBS=$ac_check_lib_save_LIBS
11036 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
11037 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
11038 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
11039 cat >>confdefs.h <<_ACEOF
11040 #define HAVE_LIBSASL2 1
11043 LIBS="-lsasl2 $LIBS"
11046 { { echo "$as_me:$LINENO: error: could not find libsasl" >&5
11047 echo "$as_me: error: could not find libsasl" >&2;}
11048 { (exit 1); exit 1; }; }
11052 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
11053 MUTTLIBS="$MUTTLIBS -lsasl2"
11056 cat >>confdefs.h <<\_ACEOF
11061 cat >>confdefs.h <<\_ACEOF
11062 #define USE_SASL2 1
11071 if test x$need_sasl = xyes; then
11081 # Check whether --with-idn or --without-idn was given.
11082 if test "${with_idn+set}" = set; then
11083 withval="$with_idn"
11085 if test "$with_idn" != "no" ; then
11086 if test "$with_idn" != "yes" ; then
11087 CPPFLAGS="$CPPFLAGS -I$with_idn/include"
11088 LDFLAGS="$LDFLAGS -L$with_idn/lib"
11095 if test "x$with_idn" != "xno"; then
11097 echo "$as_me:$LINENO: checking for stringprep_check_version in -lidn" >&5
11098 echo $ECHO_N "checking for stringprep_check_version in -lidn... $ECHO_C" >&6
11099 if test "${ac_cv_lib_idn_stringprep_check_version+set}" = set; then
11100 echo $ECHO_N "(cached) $ECHO_C" >&6
11102 ac_check_lib_save_LIBS=$LIBS
11104 cat >conftest.$ac_ext <<_ACEOF
11105 #line $LINENO "configure"
11108 cat confdefs.h >>conftest.$ac_ext
11109 cat >>conftest.$ac_ext <<_ACEOF
11110 /* end confdefs.h. */
11112 /* Override any gcc2 internal prototype to avoid an error. */
11116 /* We use char because int might match the return type of a gcc2
11117 builtin and then its argument prototype would still apply. */
11118 char stringprep_check_version ();
11122 stringprep_check_version ();
11127 rm -f conftest.$ac_objext conftest$ac_exeext
11128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11129 (eval $ac_link) 2>&5
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); } &&
11133 { ac_try='test -s conftest$ac_exeext'
11134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11135 (eval $ac_try) 2>&5
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); }; }; then
11139 ac_cv_lib_idn_stringprep_check_version=yes
11141 echo "$as_me: failed program was:" >&5
11142 sed 's/^/| /' conftest.$ac_ext >&5
11144 ac_cv_lib_idn_stringprep_check_version=no
11146 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11147 LIBS=$ac_check_lib_save_LIBS
11149 echo "$as_me:$LINENO: result: $ac_cv_lib_idn_stringprep_check_version" >&5
11150 echo "${ECHO_T}$ac_cv_lib_idn_stringprep_check_version" >&6
11151 if test $ac_cv_lib_idn_stringprep_check_version = yes; then
11152 cat >>confdefs.h <<_ACEOF
11153 #define HAVE_LIBIDN 1
11162 for ac_func in idna_to_unicode_utf8_from_utf8 idna_to_unicode_8z8z
11164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11165 echo "$as_me:$LINENO: checking for $ac_func" >&5
11166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11167 if eval "test \"\${$as_ac_var+set}\" = set"; then
11168 echo $ECHO_N "(cached) $ECHO_C" >&6
11170 cat >conftest.$ac_ext <<_ACEOF
11171 #line $LINENO "configure"
11174 cat confdefs.h >>conftest.$ac_ext
11175 cat >>conftest.$ac_ext <<_ACEOF
11176 /* end confdefs.h. */
11177 /* System header to define __stub macros and hopefully few prototypes,
11178 which can conflict with char $ac_func (); below.
11179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11180 <limits.h> exists even on freestanding compilers. */
11182 # include <limits.h>
11184 # include <assert.h>
11186 /* Override any gcc2 internal prototype to avoid an error. */
11191 /* We use char because int might match the return type of a gcc2
11192 builtin and then its argument prototype would still apply. */
11194 /* The GNU C library defines this for functions which it implements
11195 to always fail with ENOSYS. Some functions are actually named
11196 something starting with __ and the normal name is an alias. */
11197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11200 char (*f) () = $ac_func;
11209 return f != $ac_func;
11214 rm -f conftest.$ac_objext conftest$ac_exeext
11215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11216 (eval $ac_link) 2>&5
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); } &&
11220 { ac_try='test -s conftest$ac_exeext'
11221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11222 (eval $ac_try) 2>&5
11224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225 (exit $ac_status); }; }; then
11226 eval "$as_ac_var=yes"
11228 echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11231 eval "$as_ac_var=no"
11233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11236 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11237 if test `eval echo '${'$as_ac_var'}'` = yes; then
11238 cat >>confdefs.h <<_ACEOF
11239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11247 for ac_func in idna_to_ascii_from_utf8 idna_to_ascii_8z
11249 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11250 echo "$as_me:$LINENO: checking for $ac_func" >&5
11251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11252 if eval "test \"\${$as_ac_var+set}\" = set"; then
11253 echo $ECHO_N "(cached) $ECHO_C" >&6
11255 cat >conftest.$ac_ext <<_ACEOF
11256 #line $LINENO "configure"
11259 cat confdefs.h >>conftest.$ac_ext
11260 cat >>conftest.$ac_ext <<_ACEOF
11261 /* end confdefs.h. */
11262 /* System header to define __stub macros and hopefully few prototypes,
11263 which can conflict with char $ac_func (); below.
11264 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11265 <limits.h> exists even on freestanding compilers. */
11267 # include <limits.h>
11269 # include <assert.h>
11271 /* Override any gcc2 internal prototype to avoid an error. */
11276 /* We use char because int might match the return type of a gcc2
11277 builtin and then its argument prototype would still apply. */
11279 /* The GNU C library defines this for functions which it implements
11280 to always fail with ENOSYS. Some functions are actually named
11281 something starting with __ and the normal name is an alias. */
11282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11285 char (*f) () = $ac_func;
11294 return f != $ac_func;
11299 rm -f conftest.$ac_objext conftest$ac_exeext
11300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11301 (eval $ac_link) 2>&5
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); } &&
11305 { ac_try='test -s conftest$ac_exeext'
11306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307 (eval $ac_try) 2>&5
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); }; }; then
11311 eval "$as_ac_var=yes"
11313 echo "$as_me: failed program was:" >&5
11314 sed 's/^/| /' conftest.$ac_ext >&5
11316 eval "$as_ac_var=no"
11318 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11321 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11322 if test `eval echo '${'$as_ac_var'}'` = yes; then
11323 cat >>confdefs.h <<_ACEOF
11324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11332 for ac_func in idna_to_ascii_lz idna_to_ascii_from_locale
11334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11335 echo "$as_me:$LINENO: checking for $ac_func" >&5
11336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11337 if eval "test \"\${$as_ac_var+set}\" = set"; then
11338 echo $ECHO_N "(cached) $ECHO_C" >&6
11340 cat >conftest.$ac_ext <<_ACEOF
11341 #line $LINENO "configure"
11344 cat confdefs.h >>conftest.$ac_ext
11345 cat >>conftest.$ac_ext <<_ACEOF
11346 /* end confdefs.h. */
11347 /* System header to define __stub macros and hopefully few prototypes,
11348 which can conflict with char $ac_func (); below.
11349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11350 <limits.h> exists even on freestanding compilers. */
11352 # include <limits.h>
11354 # include <assert.h>
11356 /* Override any gcc2 internal prototype to avoid an error. */
11361 /* We use char because int might match the return type of a gcc2
11362 builtin and then its argument prototype would still apply. */
11364 /* The GNU C library defines this for functions which it implements
11365 to always fail with ENOSYS. Some functions are actually named
11366 something starting with __ and the normal name is an alias. */
11367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11370 char (*f) () = $ac_func;
11379 return f != $ac_func;
11384 rm -f conftest.$ac_objext conftest$ac_exeext
11385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11386 (eval $ac_link) 2>&5
11388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); } &&
11390 { ac_try='test -s conftest$ac_exeext'
11391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11392 (eval $ac_try) 2>&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); }; }; then
11396 eval "$as_ac_var=yes"
11398 echo "$as_me: failed program was:" >&5
11399 sed 's/^/| /' conftest.$ac_ext >&5
11401 eval "$as_ac_var=no"
11403 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11406 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11407 if test `eval echo '${'$as_ac_var'}'` = yes; then
11408 cat >>confdefs.h <<_ACEOF
11409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11417 if test "$need_md5" = "yes"
11419 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS md5c.o"
11423 # Check whether --enable-debug or --disable-debug was given.
11424 if test "${enable_debug+set}" = set; then
11425 enableval="$enable_debug"
11426 if test x$enableval = xyes ; then
11428 cat >>confdefs.h <<\_ACEOF
11436 # Check whether --enable-flock or --disable-flock was given.
11437 if test "${enable_flock+set}" = set; then
11438 enableval="$enable_flock"
11439 if test $enableval = yes; then
11441 cat >>confdefs.h <<\_ACEOF
11442 #define USE_FLOCK 1
11449 # Check whether --enable-fcntl or --disable-fcntl was given.
11450 if test "${enable_fcntl+set}" = set; then
11451 enableval="$enable_fcntl"
11452 if test $enableval = no; then mutt_cv_fcntl=no; fi
11455 if test $mutt_cv_fcntl = yes; then
11457 cat >>confdefs.h <<\_ACEOF
11458 #define USE_FCNTL 1
11463 mutt_cv_warnings=yes
11464 # Check whether --enable-warnings or --disable-warnings was given.
11465 if test "${enable_warnings+set}" = set; then
11466 enableval="$enable_warnings"
11467 if test $enableval = no; then
11468 mutt_cv_warnings=no
11472 if test x$GCC = xyes -a $mutt_cv_warnings = yes; then
11473 CFLAGS="-Wall -pedantic $CFLAGS"
11476 # Check whether --enable-nfs-fix or --disable-nfs-fix was given.
11477 if test "${enable_nfs_fix+set}" = set; then
11478 enableval="$enable_nfs_fix"
11479 if test x$enableval = xyes; then
11481 cat >>confdefs.h <<\_ACEOF
11482 #define NFS_ATTRIBUTE_HACK 1
11488 # Check whether --enable-buffy-size or --disable-buffy-size was given.
11489 if test "${enable_buffy_size+set}" = set; then
11490 enableval="$enable_buffy_size"
11491 if test x$enableval = xyes; then
11493 cat >>confdefs.h <<\_ACEOF
11494 #define BUFFY_SIZE 1
11500 # Check whether --enable-mailtool or --disable-mailtool was given.
11501 if test "${enable_mailtool+set}" = set; then
11502 enableval="$enable_mailtool"
11503 if test x$enableval = xyes; then
11505 cat >>confdefs.h <<\_ACEOF
11506 #define SUN_ATTACHMENT 1
11512 # Check whether --enable-compressed or --disable-compressed was given.
11513 if test "${enable_compressed+set}" = set; then
11514 enableval="$enable_compressed"
11515 if test x$enableval = xyes; then
11516 cat >>confdefs.h <<\_ACEOF
11517 #define USE_COMPRESSED 1
11523 # Check whether --enable-locales-fix or --disable-locales-fix was given.
11524 if test "${enable_locales_fix+set}" = set; then
11525 enableval="$enable_locales_fix"
11526 if test x$enableval = xyes; then
11528 cat >>confdefs.h <<\_ACEOF
11529 #define LOCALES_HACK 1
11536 # Check whether --with-exec-shell or --without-exec-shell was given.
11537 if test "${with_exec_shell+set}" = set; then
11538 withval="$with_exec_shell"
11539 if test $withval != yes; then
11541 cat >>confdefs.h <<_ACEOF
11542 #define EXECSHELL "$withval"
11546 cat >>confdefs.h <<_ACEOF
11547 #define EXECSHELL "/bin/sh"
11552 cat >>confdefs.h <<_ACEOF
11553 #define EXECSHELL "/bin/sh"
11558 # Check whether --enable-exact-address or --disable-exact-address was given.
11559 if test "${enable_exact_address+set}" = set; then
11560 enableval="$enable_exact_address"
11561 if test $enableval = yes; then
11563 cat >>confdefs.h <<\_ACEOF
11564 #define EXACT_ADDRESS 1
11577 # Check whether --enable-iconv or --disable-iconv was given.
11578 if test "${enable_iconv+set}" = set; then
11579 enableval="$enable_iconv"
11580 if test x$enableval = xno ; then
11581 am_cv_func_iconv=no
11586 echo "$as_me:$LINENO: checking for off_t" >&5
11587 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11588 if test "${ac_cv_type_off_t+set}" = set; then
11589 echo $ECHO_N "(cached) $ECHO_C" >&6
11591 cat >conftest.$ac_ext <<_ACEOF
11592 #line $LINENO "configure"
11595 cat confdefs.h >>conftest.$ac_ext
11596 cat >>conftest.$ac_ext <<_ACEOF
11597 /* end confdefs.h. */
11598 $ac_includes_default
11604 if (sizeof (off_t))
11610 rm -f conftest.$ac_objext
11611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11612 (eval $ac_compile) 2>&5
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); } &&
11616 { ac_try='test -s conftest.$ac_objext'
11617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11618 (eval $ac_try) 2>&5
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); }; }; then
11622 ac_cv_type_off_t=yes
11624 echo "$as_me: failed program was:" >&5
11625 sed 's/^/| /' conftest.$ac_ext >&5
11627 ac_cv_type_off_t=no
11629 rm -f conftest.$ac_objext conftest.$ac_ext
11631 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11632 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11633 if test $ac_cv_type_off_t = yes; then
11637 cat >>confdefs.h <<_ACEOF
11643 echo "$as_me:$LINENO: checking for size_t" >&5
11644 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11645 if test "${ac_cv_type_size_t+set}" = set; then
11646 echo $ECHO_N "(cached) $ECHO_C" >&6
11648 cat >conftest.$ac_ext <<_ACEOF
11649 #line $LINENO "configure"
11652 cat confdefs.h >>conftest.$ac_ext
11653 cat >>conftest.$ac_ext <<_ACEOF
11654 /* end confdefs.h. */
11655 $ac_includes_default
11661 if (sizeof (size_t))
11667 rm -f conftest.$ac_objext
11668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11669 (eval $ac_compile) 2>&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); } &&
11673 { ac_try='test -s conftest.$ac_objext'
11674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11675 (eval $ac_try) 2>&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); }; }; then
11679 ac_cv_type_size_t=yes
11681 echo "$as_me: failed program was:" >&5
11682 sed 's/^/| /' conftest.$ac_ext >&5
11684 ac_cv_type_size_t=no
11686 rm -f conftest.$ac_objext conftest.$ac_ext
11688 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11689 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11690 if test $ac_cv_type_size_t = yes; then
11694 cat >>confdefs.h <<_ACEOF
11695 #define size_t unsigned
11700 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11701 # for constant arguments. Useless!
11702 echo "$as_me:$LINENO: checking for working alloca.h" >&5
11703 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11704 if test "${ac_cv_working_alloca_h+set}" = set; then
11705 echo $ECHO_N "(cached) $ECHO_C" >&6
11707 cat >conftest.$ac_ext <<_ACEOF
11708 #line $LINENO "configure"
11711 cat confdefs.h >>conftest.$ac_ext
11712 cat >>conftest.$ac_ext <<_ACEOF
11713 /* end confdefs.h. */
11714 #include <alloca.h>
11718 char *p = (char *) alloca (2 * sizeof (int));
11723 rm -f conftest.$ac_objext conftest$ac_exeext
11724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11725 (eval $ac_link) 2>&5
11727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728 (exit $ac_status); } &&
11729 { ac_try='test -s conftest$ac_exeext'
11730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11731 (eval $ac_try) 2>&5
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); }; }; then
11735 ac_cv_working_alloca_h=yes
11737 echo "$as_me: failed program was:" >&5
11738 sed 's/^/| /' conftest.$ac_ext >&5
11740 ac_cv_working_alloca_h=no
11742 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11744 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11745 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11746 if test $ac_cv_working_alloca_h = yes; then
11748 cat >>confdefs.h <<\_ACEOF
11749 #define HAVE_ALLOCA_H 1
11754 echo "$as_me:$LINENO: checking for alloca" >&5
11755 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11756 if test "${ac_cv_func_alloca_works+set}" = set; then
11757 echo $ECHO_N "(cached) $ECHO_C" >&6
11759 cat >conftest.$ac_ext <<_ACEOF
11760 #line $LINENO "configure"
11763 cat confdefs.h >>conftest.$ac_ext
11764 cat >>conftest.$ac_ext <<_ACEOF
11765 /* end confdefs.h. */
11767 # define alloca __builtin_alloca
11770 # include <malloc.h>
11771 # define alloca _alloca
11774 # include <alloca.h>
11779 # ifndef alloca /* predefined by HP cc +Olibcalls */
11790 char *p = (char *) alloca (1);
11795 rm -f conftest.$ac_objext conftest$ac_exeext
11796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11797 (eval $ac_link) 2>&5
11799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800 (exit $ac_status); } &&
11801 { ac_try='test -s conftest$ac_exeext'
11802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11803 (eval $ac_try) 2>&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); }; }; then
11807 ac_cv_func_alloca_works=yes
11809 echo "$as_me: failed program was:" >&5
11810 sed 's/^/| /' conftest.$ac_ext >&5
11812 ac_cv_func_alloca_works=no
11814 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11816 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11817 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11819 if test $ac_cv_func_alloca_works = yes; then
11821 cat >>confdefs.h <<\_ACEOF
11822 #define HAVE_ALLOCA 1
11826 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11827 # that cause trouble. Some versions do not even contain alloca or
11828 # contain a buggy version. If you still want to use their alloca,
11829 # use ar to extract alloca.o from them instead of compiling alloca.c.
11831 ALLOCA=alloca.$ac_objext
11833 cat >>confdefs.h <<\_ACEOF
11838 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11839 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11840 if test "${ac_cv_os_cray+set}" = set; then
11841 echo $ECHO_N "(cached) $ECHO_C" >&6
11843 cat >conftest.$ac_ext <<_ACEOF
11844 #line $LINENO "configure"
11847 cat confdefs.h >>conftest.$ac_ext
11848 cat >>conftest.$ac_ext <<_ACEOF
11849 /* end confdefs.h. */
11850 #if defined(CRAY) && ! defined(CRAY2)
11857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11858 $EGREP "webecray" >/dev/null 2>&1; then
11866 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11867 echo "${ECHO_T}$ac_cv_os_cray" >&6
11868 if test $ac_cv_os_cray = yes; then
11869 for ac_func in _getb67 GETB67 getb67; do
11870 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11871 echo "$as_me:$LINENO: checking for $ac_func" >&5
11872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11873 if eval "test \"\${$as_ac_var+set}\" = set"; then
11874 echo $ECHO_N "(cached) $ECHO_C" >&6
11876 cat >conftest.$ac_ext <<_ACEOF
11877 #line $LINENO "configure"
11880 cat confdefs.h >>conftest.$ac_ext
11881 cat >>conftest.$ac_ext <<_ACEOF
11882 /* end confdefs.h. */
11883 /* System header to define __stub macros and hopefully few prototypes,
11884 which can conflict with char $ac_func (); below.
11885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11886 <limits.h> exists even on freestanding compilers. */
11888 # include <limits.h>
11890 # include <assert.h>
11892 /* Override any gcc2 internal prototype to avoid an error. */
11897 /* We use char because int might match the return type of a gcc2
11898 builtin and then its argument prototype would still apply. */
11900 /* The GNU C library defines this for functions which it implements
11901 to always fail with ENOSYS. Some functions are actually named
11902 something starting with __ and the normal name is an alias. */
11903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11906 char (*f) () = $ac_func;
11915 return f != $ac_func;
11920 rm -f conftest.$ac_objext conftest$ac_exeext
11921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11922 (eval $ac_link) 2>&5
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); } &&
11926 { ac_try='test -s conftest$ac_exeext'
11927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11928 (eval $ac_try) 2>&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); }; }; then
11932 eval "$as_ac_var=yes"
11934 echo "$as_me: failed program was:" >&5
11935 sed 's/^/| /' conftest.$ac_ext >&5
11937 eval "$as_ac_var=no"
11939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11942 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11943 if test `eval echo '${'$as_ac_var'}'` = yes; then
11945 cat >>confdefs.h <<_ACEOF
11946 #define CRAY_STACKSEG_END $ac_func
11955 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11956 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11957 if test "${ac_cv_c_stack_direction+set}" = set; then
11958 echo $ECHO_N "(cached) $ECHO_C" >&6
11960 if test "$cross_compiling" = yes; then
11961 ac_cv_c_stack_direction=0
11963 cat >conftest.$ac_ext <<_ACEOF
11964 #line $LINENO "configure"
11967 cat confdefs.h >>conftest.$ac_ext
11968 cat >>conftest.$ac_ext <<_ACEOF
11969 /* end confdefs.h. */
11971 find_stack_direction ()
11973 static char *addr = 0;
11978 return find_stack_direction ();
11981 return (&dummy > addr) ? 1 : -1;
11987 exit (find_stack_direction () < 0);
11990 rm -f conftest$ac_exeext
11991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11992 (eval $ac_link) 2>&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11997 (eval $ac_try) 2>&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); }; }; then
12001 ac_cv_c_stack_direction=1
12003 echo "$as_me: program exited with status $ac_status" >&5
12004 echo "$as_me: failed program was:" >&5
12005 sed 's/^/| /' conftest.$ac_ext >&5
12007 ( exit $ac_status )
12008 ac_cv_c_stack_direction=-1
12010 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12013 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12014 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12016 cat >>confdefs.h <<_ACEOF
12017 #define STACK_DIRECTION $ac_cv_c_stack_direction
12025 for ac_header in stdlib.h unistd.h
12027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12029 echo "$as_me:$LINENO: checking for $ac_header" >&5
12030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12032 echo $ECHO_N "(cached) $ECHO_C" >&6
12034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12037 # Is the header compilable?
12038 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12040 cat >conftest.$ac_ext <<_ACEOF
12041 #line $LINENO "configure"
12044 cat confdefs.h >>conftest.$ac_ext
12045 cat >>conftest.$ac_ext <<_ACEOF
12046 /* end confdefs.h. */
12047 $ac_includes_default
12048 #include <$ac_header>
12050 rm -f conftest.$ac_objext
12051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12052 (eval $ac_compile) 2>&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); } &&
12056 { ac_try='test -s conftest.$ac_objext'
12057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12058 (eval $ac_try) 2>&5
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); }; }; then
12062 ac_header_compiler=yes
12064 echo "$as_me: failed program was:" >&5
12065 sed 's/^/| /' conftest.$ac_ext >&5
12067 ac_header_compiler=no
12069 rm -f conftest.$ac_objext conftest.$ac_ext
12070 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12071 echo "${ECHO_T}$ac_header_compiler" >&6
12073 # Is the header present?
12074 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12076 cat >conftest.$ac_ext <<_ACEOF
12077 #line $LINENO "configure"
12080 cat confdefs.h >>conftest.$ac_ext
12081 cat >>conftest.$ac_ext <<_ACEOF
12082 /* end confdefs.h. */
12083 #include <$ac_header>
12085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12088 grep -v '^ *+' conftest.er1 >conftest.err
12090 cat conftest.err >&5
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); } >/dev/null; then
12093 if test -s conftest.err; then
12094 ac_cpp_err=$ac_c_preproc_warn_flag
12101 if test -z "$ac_cpp_err"; then
12102 ac_header_preproc=yes
12104 echo "$as_me: failed program was:" >&5
12105 sed 's/^/| /' conftest.$ac_ext >&5
12107 ac_header_preproc=no
12109 rm -f conftest.err conftest.$ac_ext
12110 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12111 echo "${ECHO_T}$ac_header_preproc" >&6
12113 # So? What about this header?
12114 case $ac_header_compiler:$ac_header_preproc in
12116 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12122 ## ------------------------------------ ##
12123 ## Report this to bug-autoconf@gnu.org. ##
12124 ## ------------------------------------ ##
12127 sed "s/^/$as_me: WARNING: /" >&2
12130 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12132 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12133 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12138 ## ------------------------------------ ##
12139 ## Report this to bug-autoconf@gnu.org. ##
12140 ## ------------------------------------ ##
12143 sed "s/^/$as_me: WARNING: /" >&2
12146 echo "$as_me:$LINENO: checking for $ac_header" >&5
12147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12149 echo $ECHO_N "(cached) $ECHO_C" >&6
12151 eval "$as_ac_Header=$ac_header_preproc"
12153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12158 cat >>confdefs.h <<_ACEOF
12159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12167 for ac_func in getpagesize
12169 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12170 echo "$as_me:$LINENO: checking for $ac_func" >&5
12171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12172 if eval "test \"\${$as_ac_var+set}\" = set"; then
12173 echo $ECHO_N "(cached) $ECHO_C" >&6
12175 cat >conftest.$ac_ext <<_ACEOF
12176 #line $LINENO "configure"
12179 cat confdefs.h >>conftest.$ac_ext
12180 cat >>conftest.$ac_ext <<_ACEOF
12181 /* end confdefs.h. */
12182 /* System header to define __stub macros and hopefully few prototypes,
12183 which can conflict with char $ac_func (); below.
12184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12185 <limits.h> exists even on freestanding compilers. */
12187 # include <limits.h>
12189 # include <assert.h>
12191 /* Override any gcc2 internal prototype to avoid an error. */
12196 /* We use char because int might match the return type of a gcc2
12197 builtin and then its argument prototype would still apply. */
12199 /* The GNU C library defines this for functions which it implements
12200 to always fail with ENOSYS. Some functions are actually named
12201 something starting with __ and the normal name is an alias. */
12202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12205 char (*f) () = $ac_func;
12214 return f != $ac_func;
12219 rm -f conftest.$ac_objext conftest$ac_exeext
12220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12221 (eval $ac_link) 2>&5
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); } &&
12225 { ac_try='test -s conftest$ac_exeext'
12226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12227 (eval $ac_try) 2>&5
12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); }; }; then
12231 eval "$as_ac_var=yes"
12233 echo "$as_me: failed program was:" >&5
12234 sed 's/^/| /' conftest.$ac_ext >&5
12236 eval "$as_ac_var=no"
12238 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12241 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12242 if test `eval echo '${'$as_ac_var'}'` = yes; then
12243 cat >>confdefs.h <<_ACEOF
12244 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12250 echo "$as_me:$LINENO: checking for working mmap" >&5
12251 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12252 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12253 echo $ECHO_N "(cached) $ECHO_C" >&6
12255 if test "$cross_compiling" = yes; then
12256 ac_cv_func_mmap_fixed_mapped=no
12258 cat >conftest.$ac_ext <<_ACEOF
12259 #line $LINENO "configure"
12262 cat confdefs.h >>conftest.$ac_ext
12263 cat >>conftest.$ac_ext <<_ACEOF
12264 /* end confdefs.h. */
12265 $ac_includes_default
12266 /* malloc might have been renamed as rpl_malloc. */
12269 /* Thanks to Mike Haertel and Jim Avera for this test.
12270 Here is a matrix of mmap possibilities:
12271 mmap private not fixed
12272 mmap private fixed at somewhere currently unmapped
12273 mmap private fixed at somewhere already mapped
12274 mmap shared not fixed
12275 mmap shared fixed at somewhere currently unmapped
12276 mmap shared fixed at somewhere already mapped
12277 For private mappings, we should verify that changes cannot be read()
12278 back from the file, nor mmap's back from the file at a different
12279 address. (There have been systems where private was not correctly
12280 implemented like the infamous i386 svr4.0, and systems where the
12281 VM page cache was not coherent with the file system buffer cache
12282 like early versions of FreeBSD and possibly contemporary NetBSD.)
12283 For shared mappings, we should conversely verify that changes get
12284 propagated back to all the places they're supposed to be.
12286 Grep wants private fixed already mapped.
12287 The main things grep needs to know about mmap are:
12288 * does it exist and is it safe to write into the mmap'd area
12289 * how to use it (BSD variants) */
12292 #include <sys/mman.h>
12294 #if !STDC_HEADERS && !HAVE_STDLIB_H
12298 /* This mess was copied from the GNU getpagesize.h. */
12299 #if !HAVE_GETPAGESIZE
12300 /* Assume that all systems that can run configure have sys/param.h. */
12301 # if !HAVE_SYS_PARAM_H
12302 # define HAVE_SYS_PARAM_H 1
12305 # ifdef _SC_PAGESIZE
12306 # define getpagesize() sysconf(_SC_PAGESIZE)
12307 # else /* no _SC_PAGESIZE */
12308 # if HAVE_SYS_PARAM_H
12309 # include <sys/param.h>
12310 # ifdef EXEC_PAGESIZE
12311 # define getpagesize() EXEC_PAGESIZE
12312 # else /* no EXEC_PAGESIZE */
12314 # define getpagesize() NBPG * CLSIZE
12317 # endif /* no CLSIZE */
12318 # else /* no NBPG */
12320 # define getpagesize() NBPC
12321 # else /* no NBPC */
12323 # define getpagesize() PAGESIZE
12324 # endif /* PAGESIZE */
12325 # endif /* no NBPC */
12326 # endif /* no NBPG */
12327 # endif /* no EXEC_PAGESIZE */
12328 # else /* no HAVE_SYS_PARAM_H */
12329 # define getpagesize() 8192 /* punt totally */
12330 # endif /* no HAVE_SYS_PARAM_H */
12331 # endif /* no _SC_PAGESIZE */
12333 #endif /* no HAVE_GETPAGESIZE */
12338 char *data, *data2, *data3;
12342 pagesize = getpagesize ();
12344 /* First, make a file with some known garbage in it. */
12345 data = (char *) malloc (pagesize);
12348 for (i = 0; i < pagesize; ++i)
12349 *(data + i) = rand ();
12351 fd = creat ("conftest.mmap", 0600);
12354 if (write (fd, data, pagesize) != pagesize)
12358 /* Next, try to mmap the file at a fixed address which already has
12359 something else allocated at it. If we can, also make sure that
12360 we see the same garbage. */
12361 fd = open ("conftest.mmap", O_RDWR);
12364 data2 = (char *) malloc (2 * pagesize);
12367 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
12368 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12369 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12371 for (i = 0; i < pagesize; ++i)
12372 if (*(data + i) != *(data2 + i))
12375 /* Finally, make sure that changes to the mapped area do not
12376 percolate back to the file as seen by read(). (This is a bug on
12377 some variants of i386 svr4.0.) */
12378 for (i = 0; i < pagesize; ++i)
12379 *(data2 + i) = *(data2 + i) + 1;
12380 data3 = (char *) malloc (pagesize);
12383 if (read (fd, data3, pagesize) != pagesize)
12385 for (i = 0; i < pagesize; ++i)
12386 if (*(data + i) != *(data3 + i))
12392 rm -f conftest$ac_exeext
12393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12394 (eval $ac_link) 2>&5
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12399 (eval $ac_try) 2>&5
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; }; then
12403 ac_cv_func_mmap_fixed_mapped=yes
12405 echo "$as_me: program exited with status $ac_status" >&5
12406 echo "$as_me: failed program was:" >&5
12407 sed 's/^/| /' conftest.$ac_ext >&5
12409 ( exit $ac_status )
12410 ac_cv_func_mmap_fixed_mapped=no
12412 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12415 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12416 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12417 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12419 cat >>confdefs.h <<\_ACEOF
12420 #define HAVE_MMAP 1
12424 rm -f conftest.mmap
12427 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
12428 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
12429 if test "${ac_cv_gnu_library_2_1+set}" = set; then
12430 echo $ECHO_N "(cached) $ECHO_C" >&6
12432 cat >conftest.$ac_ext <<_ACEOF
12433 #line $LINENO "configure"
12436 cat confdefs.h >>conftest.$ac_ext
12437 cat >>conftest.$ac_ext <<_ACEOF
12438 /* end confdefs.h. */
12440 #include <features.h>
12441 #ifdef __GNU_LIBRARY__
12442 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
12448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12449 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
12450 ac_cv_gnu_library_2_1=yes
12452 ac_cv_gnu_library_2_1=no
12459 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
12460 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
12462 GLIBC21="$ac_cv_gnu_library_2_1"
12476 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12477 stdlib.h string.h unistd.h sys/param.h
12479 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12481 echo "$as_me:$LINENO: checking for $ac_header" >&5
12482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12484 echo $ECHO_N "(cached) $ECHO_C" >&6
12486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12489 # Is the header compilable?
12490 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12491 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12492 cat >conftest.$ac_ext <<_ACEOF
12493 #line $LINENO "configure"
12496 cat confdefs.h >>conftest.$ac_ext
12497 cat >>conftest.$ac_ext <<_ACEOF
12498 /* end confdefs.h. */
12499 $ac_includes_default
12500 #include <$ac_header>
12502 rm -f conftest.$ac_objext
12503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12504 (eval $ac_compile) 2>&5
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); } &&
12508 { ac_try='test -s conftest.$ac_objext'
12509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510 (eval $ac_try) 2>&5
12512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513 (exit $ac_status); }; }; then
12514 ac_header_compiler=yes
12516 echo "$as_me: failed program was:" >&5
12517 sed 's/^/| /' conftest.$ac_ext >&5
12519 ac_header_compiler=no
12521 rm -f conftest.$ac_objext conftest.$ac_ext
12522 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12523 echo "${ECHO_T}$ac_header_compiler" >&6
12525 # Is the header present?
12526 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12527 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12528 cat >conftest.$ac_ext <<_ACEOF
12529 #line $LINENO "configure"
12532 cat confdefs.h >>conftest.$ac_ext
12533 cat >>conftest.$ac_ext <<_ACEOF
12534 /* end confdefs.h. */
12535 #include <$ac_header>
12537 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12538 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12540 grep -v '^ *+' conftest.er1 >conftest.err
12542 cat conftest.err >&5
12543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544 (exit $ac_status); } >/dev/null; then
12545 if test -s conftest.err; then
12546 ac_cpp_err=$ac_c_preproc_warn_flag
12553 if test -z "$ac_cpp_err"; then
12554 ac_header_preproc=yes
12556 echo "$as_me: failed program was:" >&5
12557 sed 's/^/| /' conftest.$ac_ext >&5
12559 ac_header_preproc=no
12561 rm -f conftest.err conftest.$ac_ext
12562 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12563 echo "${ECHO_T}$ac_header_preproc" >&6
12565 # So? What about this header?
12566 case $ac_header_compiler:$ac_header_preproc in
12568 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12569 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12571 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12574 ## ------------------------------------ ##
12575 ## Report this to bug-autoconf@gnu.org. ##
12576 ## ------------------------------------ ##
12579 sed "s/^/$as_me: WARNING: /" >&2
12582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12590 ## ------------------------------------ ##
12591 ## Report this to bug-autoconf@gnu.org. ##
12592 ## ------------------------------------ ##
12595 sed "s/^/$as_me: WARNING: /" >&2
12598 echo "$as_me:$LINENO: checking for $ac_header" >&5
12599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12601 echo $ECHO_N "(cached) $ECHO_C" >&6
12603 eval "$as_ac_Header=$ac_header_preproc"
12605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12606 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12610 cat >>confdefs.h <<_ACEOF
12611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12639 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
12640 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
12641 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
12643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12644 echo "$as_me:$LINENO: checking for $ac_func" >&5
12645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12646 if eval "test \"\${$as_ac_var+set}\" = set"; then
12647 echo $ECHO_N "(cached) $ECHO_C" >&6
12649 cat >conftest.$ac_ext <<_ACEOF
12650 #line $LINENO "configure"
12653 cat confdefs.h >>conftest.$ac_ext
12654 cat >>conftest.$ac_ext <<_ACEOF
12655 /* end confdefs.h. */
12656 /* System header to define __stub macros and hopefully few prototypes,
12657 which can conflict with char $ac_func (); below.
12658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12659 <limits.h> exists even on freestanding compilers. */
12661 # include <limits.h>
12663 # include <assert.h>
12665 /* Override any gcc2 internal prototype to avoid an error. */
12670 /* We use char because int might match the return type of a gcc2
12671 builtin and then its argument prototype would still apply. */
12673 /* The GNU C library defines this for functions which it implements
12674 to always fail with ENOSYS. Some functions are actually named
12675 something starting with __ and the normal name is an alias. */
12676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12679 char (*f) () = $ac_func;
12688 return f != $ac_func;
12693 rm -f conftest.$ac_objext conftest$ac_exeext
12694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12695 (eval $ac_link) 2>&5
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); } &&
12699 { ac_try='test -s conftest$ac_exeext'
12700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12701 (eval $ac_try) 2>&5
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); }; }; then
12705 eval "$as_ac_var=yes"
12707 echo "$as_me: failed program was:" >&5
12708 sed 's/^/| /' conftest.$ac_ext >&5
12710 eval "$as_ac_var=no"
12712 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12715 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12716 if test `eval echo '${'$as_ac_var'}'` = yes; then
12717 cat >>confdefs.h <<_ACEOF
12718 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12728 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
12729 if test "${with_libiconv_prefix+set}" = set; then
12730 withval="$with_libiconv_prefix"
12732 for dir in `echo "$withval" | tr : ' '`; do
12733 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
12734 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
12739 echo "$as_me:$LINENO: checking for iconv" >&5
12740 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
12741 if test "${am_cv_func_iconv+set}" = set; then
12742 echo $ECHO_N "(cached) $ECHO_C" >&6
12745 am_cv_func_iconv="no, consider installing GNU libiconv"
12747 cat >conftest.$ac_ext <<_ACEOF
12748 #line $LINENO "configure"
12751 cat confdefs.h >>conftest.$ac_ext
12752 cat >>conftest.$ac_ext <<_ACEOF
12753 /* end confdefs.h. */
12754 #include <stdlib.h>
12759 iconv_t cd = iconv_open("","");
12760 iconv(cd,NULL,NULL,NULL,NULL);
12766 rm -f conftest.$ac_objext conftest$ac_exeext
12767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12768 (eval $ac_link) 2>&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); } &&
12772 { ac_try='test -s conftest$ac_exeext'
12773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12774 (eval $ac_try) 2>&5
12776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777 (exit $ac_status); }; }; then
12778 am_cv_func_iconv=yes
12780 echo "$as_me: failed program was:" >&5
12781 sed 's/^/| /' conftest.$ac_ext >&5
12784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12785 if test "$am_cv_func_iconv" != yes; then
12786 am_save_LIBS="$LIBS"
12787 LIBS="$LIBS -liconv"
12788 cat >conftest.$ac_ext <<_ACEOF
12789 #line $LINENO "configure"
12792 cat confdefs.h >>conftest.$ac_ext
12793 cat >>conftest.$ac_ext <<_ACEOF
12794 /* end confdefs.h. */
12795 #include <stdlib.h>
12800 iconv_t cd = iconv_open("","");
12801 iconv(cd,NULL,NULL,NULL,NULL);
12807 rm -f conftest.$ac_objext conftest$ac_exeext
12808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12809 (eval $ac_link) 2>&5
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); } &&
12813 { ac_try='test -s conftest$ac_exeext'
12814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12815 (eval $ac_try) 2>&5
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); }; }; then
12819 am_cv_lib_iconv=yes
12820 am_cv_func_iconv=yes
12822 echo "$as_me: failed program was:" >&5
12823 sed 's/^/| /' conftest.$ac_ext >&5
12826 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12827 LIBS="$am_save_LIBS"
12831 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12832 echo "${ECHO_T}$am_cv_func_iconv" >&6
12833 if test "$am_cv_func_iconv" = yes; then
12835 cat >>confdefs.h <<\_ACEOF
12836 #define HAVE_ICONV 1
12839 echo "$as_me:$LINENO: checking for iconv declaration" >&5
12840 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
12841 if test "${am_cv_proto_iconv+set}" = set; then
12842 echo $ECHO_N "(cached) $ECHO_C" >&6
12845 cat >conftest.$ac_ext <<_ACEOF
12846 #line $LINENO "configure"
12849 cat confdefs.h >>conftest.$ac_ext
12850 cat >>conftest.$ac_ext <<_ACEOF
12851 /* end confdefs.h. */
12853 #include <stdlib.h>
12859 #if defined(__STDC__) || defined(__cplusplus)
12860 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12873 rm -f conftest.$ac_objext
12874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12875 (eval $ac_compile) 2>&5
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); } &&
12879 { ac_try='test -s conftest.$ac_objext'
12880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12881 (eval $ac_try) 2>&5
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); }; }; then
12885 am_cv_proto_iconv_arg1=""
12887 echo "$as_me: failed program was:" >&5
12888 sed 's/^/| /' conftest.$ac_ext >&5
12890 am_cv_proto_iconv_arg1="const"
12892 rm -f conftest.$ac_objext conftest.$ac_ext
12893 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);"
12896 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12897 echo "$as_me:$LINENO: result: ${ac_t:-
12898 }$am_cv_proto_iconv" >&5
12899 echo "${ECHO_T}${ac_t:-
12900 }$am_cv_proto_iconv" >&6
12902 cat >>confdefs.h <<_ACEOF
12903 #define ICONV_CONST $am_cv_proto_iconv_arg1
12908 if test "$am_cv_lib_iconv" = yes; then
12914 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12915 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
12916 if test "${am_cv_langinfo_codeset+set}" = set; then
12917 echo $ECHO_N "(cached) $ECHO_C" >&6
12919 cat >conftest.$ac_ext <<_ACEOF
12920 #line $LINENO "configure"
12923 cat confdefs.h >>conftest.$ac_ext
12924 cat >>conftest.$ac_ext <<_ACEOF
12925 /* end confdefs.h. */
12926 #include <langinfo.h>
12930 char* cs = nl_langinfo(CODESET);
12935 rm -f conftest.$ac_objext conftest$ac_exeext
12936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12937 (eval $ac_link) 2>&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } &&
12941 { ac_try='test -s conftest$ac_exeext'
12942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12943 (eval $ac_try) 2>&5
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); }; }; then
12947 am_cv_langinfo_codeset=yes
12949 echo "$as_me: failed program was:" >&5
12950 sed 's/^/| /' conftest.$ac_ext >&5
12952 am_cv_langinfo_codeset=no
12954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12957 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12958 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
12959 if test $am_cv_langinfo_codeset = yes; then
12961 cat >>confdefs.h <<\_ACEOF
12962 #define HAVE_LANGINFO_CODESET 1
12967 if test $ac_cv_header_locale_h = yes; then
12968 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12969 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
12970 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
12971 echo $ECHO_N "(cached) $ECHO_C" >&6
12973 cat >conftest.$ac_ext <<_ACEOF
12974 #line $LINENO "configure"
12977 cat confdefs.h >>conftest.$ac_ext
12978 cat >>conftest.$ac_ext <<_ACEOF
12979 /* end confdefs.h. */
12980 #include <locale.h>
12989 rm -f conftest.$ac_objext conftest$ac_exeext
12990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12991 (eval $ac_link) 2>&5
12993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994 (exit $ac_status); } &&
12995 { ac_try='test -s conftest$ac_exeext'
12996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997 (eval $ac_try) 2>&5
12999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000 (exit $ac_status); }; }; then
13001 am_cv_val_LC_MESSAGES=yes
13003 echo "$as_me: failed program was:" >&5
13004 sed 's/^/| /' conftest.$ac_ext >&5
13006 am_cv_val_LC_MESSAGES=no
13008 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13010 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
13011 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
13012 if test $am_cv_val_LC_MESSAGES = yes; then
13014 cat >>confdefs.h <<\_ACEOF
13015 #define HAVE_LC_MESSAGES 1
13020 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13021 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13022 # Check whether --enable-nls or --disable-nls was given.
13023 if test "${enable_nls+set}" = set; then
13024 enableval="$enable_nls"
13029 echo "$as_me:$LINENO: result: $USE_NLS" >&5
13030 echo "${ECHO_T}$USE_NLS" >&6
13033 BUILD_INCLUDED_LIBINTL=no
13034 USE_INCLUDED_LIBINTL=no
13037 if test "$USE_NLS" = "yes"; then
13039 cat >>confdefs.h <<\_ACEOF
13040 #define ENABLE_NLS 1
13043 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
13044 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
13046 # Check whether --with-included-gettext or --without-included-gettext was given.
13047 if test "${with_included_gettext+set}" = set; then
13048 withval="$with_included_gettext"
13049 nls_cv_force_use_gnu_gettext=$withval
13051 nls_cv_force_use_gnu_gettext=no
13053 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
13054 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
13056 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
13057 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13063 if test "${ac_cv_header_libintl_h+set}" = set; then
13064 echo "$as_me:$LINENO: checking for libintl.h" >&5
13065 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
13066 if test "${ac_cv_header_libintl_h+set}" = set; then
13067 echo $ECHO_N "(cached) $ECHO_C" >&6
13069 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
13070 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
13072 # Is the header compilable?
13073 echo "$as_me:$LINENO: checking libintl.h usability" >&5
13074 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
13075 cat >conftest.$ac_ext <<_ACEOF
13076 #line $LINENO "configure"
13079 cat confdefs.h >>conftest.$ac_ext
13080 cat >>conftest.$ac_ext <<_ACEOF
13081 /* end confdefs.h. */
13082 $ac_includes_default
13083 #include <libintl.h>
13085 rm -f conftest.$ac_objext
13086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13087 (eval $ac_compile) 2>&5
13089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090 (exit $ac_status); } &&
13091 { ac_try='test -s conftest.$ac_objext'
13092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13093 (eval $ac_try) 2>&5
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); }; }; then
13097 ac_header_compiler=yes
13099 echo "$as_me: failed program was:" >&5
13100 sed 's/^/| /' conftest.$ac_ext >&5
13102 ac_header_compiler=no
13104 rm -f conftest.$ac_objext conftest.$ac_ext
13105 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13106 echo "${ECHO_T}$ac_header_compiler" >&6
13108 # Is the header present?
13109 echo "$as_me:$LINENO: checking libintl.h presence" >&5
13110 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
13111 cat >conftest.$ac_ext <<_ACEOF
13112 #line $LINENO "configure"
13115 cat confdefs.h >>conftest.$ac_ext
13116 cat >>conftest.$ac_ext <<_ACEOF
13117 /* end confdefs.h. */
13118 #include <libintl.h>
13120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13123 grep -v '^ *+' conftest.er1 >conftest.err
13125 cat conftest.err >&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); } >/dev/null; then
13128 if test -s conftest.err; then
13129 ac_cpp_err=$ac_c_preproc_warn_flag
13136 if test -z "$ac_cpp_err"; then
13137 ac_header_preproc=yes
13139 echo "$as_me: failed program was:" >&5
13140 sed 's/^/| /' conftest.$ac_ext >&5
13142 ac_header_preproc=no
13144 rm -f conftest.err conftest.$ac_ext
13145 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13146 echo "${ECHO_T}$ac_header_preproc" >&6
13148 # So? What about this header?
13149 case $ac_header_compiler:$ac_header_preproc in
13151 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
13152 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13153 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
13154 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
13157 ## ------------------------------------ ##
13158 ## Report this to bug-autoconf@gnu.org. ##
13159 ## ------------------------------------ ##
13162 sed "s/^/$as_me: WARNING: /" >&2
13165 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
13166 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
13167 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
13168 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
13169 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
13170 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
13173 ## ------------------------------------ ##
13174 ## Report this to bug-autoconf@gnu.org. ##
13175 ## ------------------------------------ ##
13178 sed "s/^/$as_me: WARNING: /" >&2
13181 echo "$as_me:$LINENO: checking for libintl.h" >&5
13182 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
13183 if test "${ac_cv_header_libintl_h+set}" = set; then
13184 echo $ECHO_N "(cached) $ECHO_C" >&6
13186 ac_cv_header_libintl_h=$ac_header_preproc
13188 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
13189 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
13192 if test $ac_cv_header_libintl_h = yes; then
13193 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
13194 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
13195 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
13196 echo $ECHO_N "(cached) $ECHO_C" >&6
13198 cat >conftest.$ac_ext <<_ACEOF
13199 #line $LINENO "configure"
13202 cat confdefs.h >>conftest.$ac_ext
13203 cat >>conftest.$ac_ext <<_ACEOF
13204 /* end confdefs.h. */
13205 #include <libintl.h>
13206 extern int _nl_msg_cat_cntr;
13210 bindtextdomain ("", "");
13211 return (int) gettext ("") + _nl_msg_cat_cntr
13216 rm -f conftest.$ac_objext conftest$ac_exeext
13217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13218 (eval $ac_link) 2>&5
13220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221 (exit $ac_status); } &&
13222 { ac_try='test -s conftest$ac_exeext'
13223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13224 (eval $ac_try) 2>&5
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); }; }; then
13228 gt_cv_func_gnugettext1_libc=yes
13230 echo "$as_me: failed program was:" >&5
13231 sed 's/^/| /' conftest.$ac_ext >&5
13233 gt_cv_func_gnugettext1_libc=no
13235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13237 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
13238 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
13240 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
13241 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13242 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
13243 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13244 echo $ECHO_N "(cached) $ECHO_C" >&6
13246 gt_save_LIBS="$LIBS"
13247 LIBS="$LIBS -lintl $LIBICONV"
13248 cat >conftest.$ac_ext <<_ACEOF
13249 #line $LINENO "configure"
13252 cat confdefs.h >>conftest.$ac_ext
13253 cat >>conftest.$ac_ext <<_ACEOF
13254 /* end confdefs.h. */
13255 #include <libintl.h>
13256 extern int _nl_msg_cat_cntr;
13260 bindtextdomain ("", "");
13261 return (int) gettext ("") + _nl_msg_cat_cntr
13266 rm -f conftest.$ac_objext conftest$ac_exeext
13267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13268 (eval $ac_link) 2>&5
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); } &&
13272 { ac_try='test -s conftest$ac_exeext'
13273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13274 (eval $ac_try) 2>&5
13276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277 (exit $ac_status); }; }; then
13278 gt_cv_func_gnugettext1_libintl=yes
13280 echo "$as_me: failed program was:" >&5
13281 sed 's/^/| /' conftest.$ac_ext >&5
13283 gt_cv_func_gnugettext1_libintl=no
13285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13286 LIBS="$gt_save_LIBS"
13288 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13289 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
13292 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13293 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13294 && test "$PACKAGE" != gettext; }; then
13296 cat >>confdefs.h <<\_ACEOF
13297 #define HAVE_GETTEXT 1
13301 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13302 INTLLIBS="-lintl $LIBICONV"
13305 gt_save_LIBS="$LIBS"
13306 LIBS="$LIBS $INTLLIBS"
13308 for ac_func in dcgettext
13310 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13311 echo "$as_me:$LINENO: checking for $ac_func" >&5
13312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13313 if eval "test \"\${$as_ac_var+set}\" = set"; then
13314 echo $ECHO_N "(cached) $ECHO_C" >&6
13316 cat >conftest.$ac_ext <<_ACEOF
13317 #line $LINENO "configure"
13320 cat confdefs.h >>conftest.$ac_ext
13321 cat >>conftest.$ac_ext <<_ACEOF
13322 /* end confdefs.h. */
13323 /* System header to define __stub macros and hopefully few prototypes,
13324 which can conflict with char $ac_func (); below.
13325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13326 <limits.h> exists even on freestanding compilers. */
13328 # include <limits.h>
13330 # include <assert.h>
13332 /* Override any gcc2 internal prototype to avoid an error. */
13337 /* We use char because int might match the return type of a gcc2
13338 builtin and then its argument prototype would still apply. */
13340 /* The GNU C library defines this for functions which it implements
13341 to always fail with ENOSYS. Some functions are actually named
13342 something starting with __ and the normal name is an alias. */
13343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13346 char (*f) () = $ac_func;
13355 return f != $ac_func;
13360 rm -f conftest.$ac_objext conftest$ac_exeext
13361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13362 (eval $ac_link) 2>&5
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); } &&
13366 { ac_try='test -s conftest$ac_exeext'
13367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13368 (eval $ac_try) 2>&5
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); }; }; then
13372 eval "$as_ac_var=yes"
13374 echo "$as_me: failed program was:" >&5
13375 sed 's/^/| /' conftest.$ac_ext >&5
13377 eval "$as_ac_var=no"
13379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13382 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13383 if test `eval echo '${'$as_ac_var'}'` = yes; then
13384 cat >>confdefs.h <<_ACEOF
13385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13391 LIBS="$gt_save_LIBS"
13393 # Extract the first word of "msgfmt", so it can be a program name with args.
13394 set dummy msgfmt; ac_word=$2
13395 echo "$as_me:$LINENO: checking for $ac_word" >&5
13396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13397 if test "${ac_cv_path_MSGFMT+set}" = set; then
13398 echo $ECHO_N "(cached) $ECHO_C" >&6
13402 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13405 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13406 for ac_dir in $PATH; do
13407 test -z "$ac_dir" && ac_dir=.
13408 if test -f $ac_dir/$ac_word; then
13409 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
13410 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
13416 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13420 MSGFMT="$ac_cv_path_MSGFMT"
13421 if test "$MSGFMT" != ":"; then
13422 echo "$as_me:$LINENO: result: $MSGFMT" >&5
13423 echo "${ECHO_T}$MSGFMT" >&6
13425 echo "$as_me:$LINENO: result: no" >&5
13426 echo "${ECHO_T}no" >&6
13429 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13430 set dummy gmsgfmt; ac_word=$2
13431 echo "$as_me:$LINENO: checking for $ac_word" >&5
13432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13433 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13434 echo $ECHO_N "(cached) $ECHO_C" >&6
13438 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13442 for as_dir in $PATH
13445 test -z "$as_dir" && as_dir=.
13446 for ac_exec_ext in '' $ac_executable_extensions; do
13447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13448 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13455 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13459 GMSGFMT=$ac_cv_path_GMSGFMT
13461 if test -n "$GMSGFMT"; then
13462 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
13463 echo "${ECHO_T}$GMSGFMT" >&6
13465 echo "$as_me:$LINENO: result: no" >&5
13466 echo "${ECHO_T}no" >&6
13470 # Extract the first word of "xgettext", so it can be a program name with args.
13471 set dummy xgettext; ac_word=$2
13472 echo "$as_me:$LINENO: checking for $ac_word" >&5
13473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13474 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13475 echo $ECHO_N "(cached) $ECHO_C" >&6
13477 case "$XGETTEXT" in
13479 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13482 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13483 for ac_dir in $PATH; do
13484 test -z "$ac_dir" && ac_dir=.
13485 if test -f $ac_dir/$ac_word; then
13486 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
13487 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
13493 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13497 XGETTEXT="$ac_cv_path_XGETTEXT"
13498 if test "$XGETTEXT" != ":"; then
13499 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
13500 echo "${ECHO_T}$XGETTEXT" >&6
13502 echo "$as_me:$LINENO: result: no" >&5
13503 echo "${ECHO_T}no" >&6
13514 if test "$CATOBJEXT" = "NONE"; then
13515 nls_cv_use_gnu_gettext=yes
13519 if test "$nls_cv_use_gnu_gettext" = "yes"; then
13520 INTLOBJS="\$(GETTOBJS)"
13521 # Extract the first word of "msgfmt", so it can be a program name with args.
13522 set dummy msgfmt; ac_word=$2
13523 echo "$as_me:$LINENO: checking for $ac_word" >&5
13524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13525 if test "${ac_cv_path_MSGFMT+set}" = set; then
13526 echo $ECHO_N "(cached) $ECHO_C" >&6
13530 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13533 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13534 for ac_dir in $PATH; do
13535 test -z "$ac_dir" && ac_dir=.
13536 if test -f $ac_dir/$ac_word; then
13537 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
13538 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
13544 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13548 MSGFMT="$ac_cv_path_MSGFMT"
13549 if test "$MSGFMT" != ":"; then
13550 echo "$as_me:$LINENO: result: $MSGFMT" >&5
13551 echo "${ECHO_T}$MSGFMT" >&6
13553 echo "$as_me:$LINENO: result: no" >&5
13554 echo "${ECHO_T}no" >&6
13557 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13558 set dummy gmsgfmt; ac_word=$2
13559 echo "$as_me:$LINENO: checking for $ac_word" >&5
13560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13561 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13562 echo $ECHO_N "(cached) $ECHO_C" >&6
13566 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13570 for as_dir in $PATH
13573 test -z "$as_dir" && as_dir=.
13574 for ac_exec_ext in '' $ac_executable_extensions; do
13575 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13576 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13583 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13587 GMSGFMT=$ac_cv_path_GMSGFMT
13589 if test -n "$GMSGFMT"; then
13590 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
13591 echo "${ECHO_T}$GMSGFMT" >&6
13593 echo "$as_me:$LINENO: result: no" >&5
13594 echo "${ECHO_T}no" >&6
13597 # Extract the first word of "xgettext", so it can be a program name with args.
13598 set dummy xgettext; ac_word=$2
13599 echo "$as_me:$LINENO: checking for $ac_word" >&5
13600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13601 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13602 echo $ECHO_N "(cached) $ECHO_C" >&6
13604 case "$XGETTEXT" in
13606 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13609 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13610 for ac_dir in $PATH; do
13611 test -z "$ac_dir" && ac_dir=.
13612 if test -f $ac_dir/$ac_word; then
13613 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
13614 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
13620 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13624 XGETTEXT="$ac_cv_path_XGETTEXT"
13625 if test "$XGETTEXT" != ":"; then
13626 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
13627 echo "${ECHO_T}$XGETTEXT" >&6
13629 echo "$as_me:$LINENO: result: no" >&5
13630 echo "${ECHO_T}no" >&6
13634 BUILD_INCLUDED_LIBINTL=yes
13635 USE_INCLUDED_LIBINTL=yes
13637 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
13638 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13641 if test "$GMSGFMT" != ":"; then
13642 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
13645 echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
13646 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
13651 if test "$XGETTEXT" != ":"; then
13652 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
13655 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
13656 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
13663 ac_config_commands="$ac_config_commands default-1"
13667 if test "$PACKAGE" = gettext; then
13668 BUILD_INCLUDED_LIBINTL=yes
13671 for ac_prog in bison
13673 # Extract the first word of "$ac_prog", so it can be a program name with args.
13674 set dummy $ac_prog; ac_word=$2
13675 echo "$as_me:$LINENO: checking for $ac_word" >&5
13676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13677 if test "${ac_cv_prog_INTLBISON+set}" = set; then
13678 echo $ECHO_N "(cached) $ECHO_C" >&6
13680 if test -n "$INTLBISON"; then
13681 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13684 for as_dir in $PATH
13687 test -z "$as_dir" && as_dir=.
13688 for ac_exec_ext in '' $ac_executable_extensions; do
13689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13690 ac_cv_prog_INTLBISON="$ac_prog"
13691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13699 INTLBISON=$ac_cv_prog_INTLBISON
13700 if test -n "$INTLBISON"; then
13701 echo "$as_me:$LINENO: result: $INTLBISON" >&5
13702 echo "${ECHO_T}$INTLBISON" >&6
13704 echo "$as_me:$LINENO: result: no" >&5
13705 echo "${ECHO_T}no" >&6
13708 test -n "$INTLBISON" && break
13711 if test -z "$INTLBISON"; then
13714 echo "$as_me:$LINENO: checking version of bison" >&5
13715 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
13716 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13717 case $ac_prog_version in
13718 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13719 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13720 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13721 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13723 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
13724 echo "${ECHO_T}$ac_prog_version" >&6
13726 if test $ac_verc_fail = yes; then
13730 for lang in $ALL_LINGUAS; do
13731 GMOFILES="$GMOFILES $lang.gmo"
13732 POFILES="$POFILES $lang.po"
13745 nls_cv_header_intl=
13746 nls_cv_header_libgt=
13758 if test "x$CATOBJEXT" != "x"; then
13759 if test "x$ALL_LINGUAS" = "x"; then
13762 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13763 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
13765 for presentlang in $ALL_LINGUAS; do
13767 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
13768 # Use the presentlang catalog if desiredlang is
13769 # a. equal to presentlang, or
13770 # b. a variant of presentlang (because in this case,
13771 # presentlang can be used as a fallback for messages
13772 # which are not translated in the desiredlang catalog).
13773 case "$desiredlang" in
13774 "$presentlang"*) useit=yes;;
13777 if test $useit = yes; then
13778 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
13781 LINGUAS=$NEW_LINGUAS
13782 echo "$as_me:$LINENO: result: $LINGUAS" >&5
13783 echo "${ECHO_T}$LINGUAS" >&6
13786 if test -n "$LINGUAS"; then
13787 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
13792 if test -n "$ac_aux_dir"; then
13793 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
13795 if test -z "$MKINSTALLDIRS"; then
13796 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13800 INTL_LIBTOOL_SUFFIX_PREFIX=
13804 if test "$am_cv_func_iconv" != "yes"
13806 { echo "$as_me:$LINENO: WARNING: Configuring without iconv support. See INSTALL for details" >&5
13807 echo "$as_me: WARNING: Configuring without iconv support. See INSTALL for details" >&2;}
13811 for ac_header in iconv.h
13813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13815 echo "$as_me:$LINENO: checking for $ac_header" >&5
13816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13818 echo $ECHO_N "(cached) $ECHO_C" >&6
13820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13823 # Is the header compilable?
13824 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13826 cat >conftest.$ac_ext <<_ACEOF
13827 #line $LINENO "configure"
13830 cat confdefs.h >>conftest.$ac_ext
13831 cat >>conftest.$ac_ext <<_ACEOF
13832 /* end confdefs.h. */
13833 $ac_includes_default
13834 #include <$ac_header>
13836 rm -f conftest.$ac_objext
13837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13838 (eval $ac_compile) 2>&5
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); } &&
13842 { ac_try='test -s conftest.$ac_objext'
13843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13844 (eval $ac_try) 2>&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); }; }; then
13848 ac_header_compiler=yes
13850 echo "$as_me: failed program was:" >&5
13851 sed 's/^/| /' conftest.$ac_ext >&5
13853 ac_header_compiler=no
13855 rm -f conftest.$ac_objext conftest.$ac_ext
13856 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13857 echo "${ECHO_T}$ac_header_compiler" >&6
13859 # Is the header present?
13860 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13862 cat >conftest.$ac_ext <<_ACEOF
13863 #line $LINENO "configure"
13866 cat confdefs.h >>conftest.$ac_ext
13867 cat >>conftest.$ac_ext <<_ACEOF
13868 /* end confdefs.h. */
13869 #include <$ac_header>
13871 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13872 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13874 grep -v '^ *+' conftest.er1 >conftest.err
13876 cat conftest.err >&5
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); } >/dev/null; then
13879 if test -s conftest.err; then
13880 ac_cpp_err=$ac_c_preproc_warn_flag
13887 if test -z "$ac_cpp_err"; then
13888 ac_header_preproc=yes
13890 echo "$as_me: failed program was:" >&5
13891 sed 's/^/| /' conftest.$ac_ext >&5
13893 ac_header_preproc=no
13895 rm -f conftest.err conftest.$ac_ext
13896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13897 echo "${ECHO_T}$ac_header_preproc" >&6
13899 # So? What about this header?
13900 case $ac_header_compiler:$ac_header_preproc in
13902 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13903 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13908 ## ------------------------------------ ##
13909 ## Report this to bug-autoconf@gnu.org. ##
13910 ## ------------------------------------ ##
13913 sed "s/^/$as_me: WARNING: /" >&2
13916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13919 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13924 ## ------------------------------------ ##
13925 ## Report this to bug-autoconf@gnu.org. ##
13926 ## ------------------------------------ ##
13929 sed "s/^/$as_me: WARNING: /" >&2
13932 echo "$as_me:$LINENO: checking for $ac_header" >&5
13933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13935 echo $ECHO_N "(cached) $ECHO_C" >&6
13937 eval "$as_ac_Header=$ac_header_preproc"
13939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13944 cat >>confdefs.h <<_ACEOF
13945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13947 echo "$as_me:$LINENO: checking whether iconv.h defines iconv_t" >&5
13948 echo $ECHO_N "checking whether iconv.h defines iconv_t... $ECHO_C" >&6
13949 cat >conftest.$ac_ext <<_ACEOF
13950 #line $LINENO "configure"
13953 cat confdefs.h >>conftest.$ac_ext
13954 cat >>conftest.$ac_ext <<_ACEOF
13955 /* end confdefs.h. */
13959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13960 $EGREP "typedef.*iconv_t" >/dev/null 2>&1; then
13961 echo "$as_me:$LINENO: result: yes" >&5
13962 echo "${ECHO_T}yes" >&6
13964 cat >>confdefs.h <<\_ACEOF
13965 #define HAVE_ICONV_T_DEF 1
13969 echo "$as_me:$LINENO: result: no" >&5
13970 echo "${ECHO_T}no" >&6
13979 echo "$as_me:$LINENO: checking whether this iconv is good enough" >&5
13980 echo $ECHO_N "checking whether this iconv is good enough... $ECHO_C" >&6
13981 if test "${mutt_cv_iconv_good+set}" = set; then
13982 echo $ECHO_N "(cached) $ECHO_C" >&6
13984 mutt_save_LIBS="$LIBS"
13985 LIBS="$LIBS $LIBICONV"
13986 if test "$cross_compiling" = yes; then
13987 mutt_cv_iconv_good=yes
13989 cat >conftest.$ac_ext <<_ACEOF
13990 #line $LINENO "configure"
13993 cat confdefs.h >>conftest.$ac_ext
13994 cat >>conftest.$ac_ext <<_ACEOF
13995 /* end confdefs.h. */
14004 ob = buf, obl = sizeof(buf);
14005 return ((cd = iconv_open("UTF-8", "UTF-8")) != (iconv_t)(-1) &&
14006 (iconv(cd, 0, 0, &ob, &obl) ||
14007 !(ob == buf && obl == sizeof(buf)) ||
14012 rm -f conftest$ac_exeext
14013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14014 (eval $ac_link) 2>&5
14016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14019 (eval $ac_try) 2>&5
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); }; }; then
14023 mutt_cv_iconv_good=yes
14025 echo "$as_me: program exited with status $ac_status" >&5
14026 echo "$as_me: failed program was:" >&5
14027 sed 's/^/| /' conftest.$ac_ext >&5
14029 ( exit $ac_status )
14030 mutt_cv_iconv_good=no
14032 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14034 LIBS="$mutt_save_LIBS"
14036 echo "$as_me:$LINENO: result: $mutt_cv_iconv_good" >&5
14037 echo "${ECHO_T}$mutt_cv_iconv_good" >&6
14038 if test "$mutt_cv_iconv_good" = no; then
14039 { { echo "$as_me:$LINENO: error: Try using libiconv instead" >&5
14040 echo "$as_me: error: Try using libiconv instead" >&2;}
14041 { (exit 1); exit 1; }; }
14044 echo "$as_me:$LINENO: checking whether iconv is non-transcribing" >&5
14045 echo $ECHO_N "checking whether iconv is non-transcribing... $ECHO_C" >&6
14046 if test "${mutt_cv_iconv_nontrans+set}" = set; then
14047 echo $ECHO_N "(cached) $ECHO_C" >&6
14049 mutt_save_LIBS="$LIBS"
14050 LIBS="$LIBS $LIBICONV"
14051 if test "$cross_compiling" = yes; then
14052 mutt_cv_iconv_nontrans=no
14054 cat >conftest.$ac_ext <<_ACEOF
14055 #line $LINENO "configure"
14058 cat confdefs.h >>conftest.$ac_ext
14059 cat >>conftest.$ac_ext <<_ACEOF
14060 /* end confdefs.h. */
14063 #include <string.h>
14070 const char *s = "\304\211";
14072 ib = s, ibl = 2, ob = t, obl = 3;
14073 return ((cd = iconv_open("UTF-8", "UTF-8")) == (iconv_t)(-1) ||
14074 iconv(cd, &ib, &ibl, &ob, &obl));
14078 rm -f conftest$ac_exeext
14079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14080 (eval $ac_link) 2>&5
14082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14085 (eval $ac_try) 2>&5
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); }; }; then
14089 mutt_cv_iconv_nontrans=no
14091 echo "$as_me: program exited with status $ac_status" >&5
14092 echo "$as_me: failed program was:" >&5
14093 sed 's/^/| /' conftest.$ac_ext >&5
14095 ( exit $ac_status )
14096 mutt_cv_iconv_nontrans=yes
14098 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14100 LIBS="$mutt_save_LIBS"
14102 echo "$as_me:$LINENO: result: $mutt_cv_iconv_nontrans" >&5
14103 echo "${ECHO_T}$mutt_cv_iconv_nontrans" >&6
14104 if test "$mutt_cv_iconv_nontrans" = yes; then
14105 cat >>confdefs.h <<\_ACEOF
14106 #define ICONV_NONTRANS 1
14110 cat >>confdefs.h <<\_ACEOF
14111 #define ICONV_NONTRANS 0
14116 CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/intl"
14118 if test "$BUILD_INCLUDED_LIBINTL" = "yes"; then
14120 cat >>confdefs.h <<\_ACEOF
14121 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
14126 for ac_func in bind_textdomain_codeset
14128 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14129 echo "$as_me:$LINENO: checking for $ac_func" >&5
14130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14131 if eval "test \"\${$as_ac_var+set}\" = set"; then
14132 echo $ECHO_N "(cached) $ECHO_C" >&6
14134 cat >conftest.$ac_ext <<_ACEOF
14135 #line $LINENO "configure"
14138 cat confdefs.h >>conftest.$ac_ext
14139 cat >>conftest.$ac_ext <<_ACEOF
14140 /* end confdefs.h. */
14141 /* System header to define __stub macros and hopefully few prototypes,
14142 which can conflict with char $ac_func (); below.
14143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14144 <limits.h> exists even on freestanding compilers. */
14146 # include <limits.h>
14148 # include <assert.h>
14150 /* Override any gcc2 internal prototype to avoid an error. */
14155 /* We use char because int might match the return type of a gcc2
14156 builtin and then its argument prototype would still apply. */
14158 /* The GNU C library defines this for functions which it implements
14159 to always fail with ENOSYS. Some functions are actually named
14160 something starting with __ and the normal name is an alias. */
14161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14164 char (*f) () = $ac_func;
14173 return f != $ac_func;
14178 rm -f conftest.$ac_objext conftest$ac_exeext
14179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14180 (eval $ac_link) 2>&5
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); } &&
14184 { ac_try='test -s conftest$ac_exeext'
14185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186 (eval $ac_try) 2>&5
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; }; then
14190 eval "$as_ac_var=yes"
14192 echo "$as_me: failed program was:" >&5
14193 sed 's/^/| /' conftest.$ac_ext >&5
14195 eval "$as_ac_var=no"
14197 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14200 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14201 if test `eval echo '${'$as_ac_var'}'` = yes; then
14202 cat >>confdefs.h <<_ACEOF
14203 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14215 for ac_header in wchar.h
14217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14219 echo "$as_me:$LINENO: checking for $ac_header" >&5
14220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14222 echo $ECHO_N "(cached) $ECHO_C" >&6
14224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14227 # Is the header compilable?
14228 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14230 cat >conftest.$ac_ext <<_ACEOF
14231 #line $LINENO "configure"
14234 cat confdefs.h >>conftest.$ac_ext
14235 cat >>conftest.$ac_ext <<_ACEOF
14236 /* end confdefs.h. */
14237 $ac_includes_default
14238 #include <$ac_header>
14240 rm -f conftest.$ac_objext
14241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14242 (eval $ac_compile) 2>&5
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); } &&
14246 { ac_try='test -s conftest.$ac_objext'
14247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14248 (eval $ac_try) 2>&5
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); }; }; then
14252 ac_header_compiler=yes
14254 echo "$as_me: failed program was:" >&5
14255 sed 's/^/| /' conftest.$ac_ext >&5
14257 ac_header_compiler=no
14259 rm -f conftest.$ac_objext conftest.$ac_ext
14260 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14261 echo "${ECHO_T}$ac_header_compiler" >&6
14263 # Is the header present?
14264 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14265 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14266 cat >conftest.$ac_ext <<_ACEOF
14267 #line $LINENO "configure"
14270 cat confdefs.h >>conftest.$ac_ext
14271 cat >>conftest.$ac_ext <<_ACEOF
14272 /* end confdefs.h. */
14273 #include <$ac_header>
14275 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14276 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14278 grep -v '^ *+' conftest.er1 >conftest.err
14280 cat conftest.err >&5
14281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282 (exit $ac_status); } >/dev/null; then
14283 if test -s conftest.err; then
14284 ac_cpp_err=$ac_c_preproc_warn_flag
14291 if test -z "$ac_cpp_err"; then
14292 ac_header_preproc=yes
14294 echo "$as_me: failed program was:" >&5
14295 sed 's/^/| /' conftest.$ac_ext >&5
14297 ac_header_preproc=no
14299 rm -f conftest.err conftest.$ac_ext
14300 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14301 echo "${ECHO_T}$ac_header_preproc" >&6
14303 # So? What about this header?
14304 case $ac_header_compiler:$ac_header_preproc in
14306 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14307 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14312 ## ------------------------------------ ##
14313 ## Report this to bug-autoconf@gnu.org. ##
14314 ## ------------------------------------ ##
14317 sed "s/^/$as_me: WARNING: /" >&2
14320 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14321 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14322 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14323 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14328 ## ------------------------------------ ##
14329 ## Report this to bug-autoconf@gnu.org. ##
14330 ## ------------------------------------ ##
14333 sed "s/^/$as_me: WARNING: /" >&2
14336 echo "$as_me:$LINENO: checking for $ac_header" >&5
14337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14339 echo $ECHO_N "(cached) $ECHO_C" >&6
14341 eval "$as_ac_Header=$ac_header_preproc"
14343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14348 cat >>confdefs.h <<_ACEOF
14349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14357 echo "$as_me:$LINENO: checking for wchar_t" >&5
14358 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
14359 if test "${mutt_cv_wchar_t+set}" = set; then
14360 echo $ECHO_N "(cached) $ECHO_C" >&6
14362 cat >conftest.$ac_ext <<_ACEOF
14363 #line $LINENO "configure"
14366 cat confdefs.h >>conftest.$ac_ext
14367 cat >>conftest.$ac_ext <<_ACEOF
14368 /* end confdefs.h. */
14370 #include <stddef.h>
14371 #include <stdlib.h>
14372 #ifdef HAVE_WCHAR_H
14379 wchar_t wc; return 0;
14384 rm -f conftest.$ac_objext
14385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14386 (eval $ac_compile) 2>&5
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); } &&
14390 { ac_try='test -s conftest.$ac_objext'
14391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14392 (eval $ac_try) 2>&5
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); }; }; then
14396 mutt_cv_wchar_t=yes
14398 echo "$as_me: failed program was:" >&5
14399 sed 's/^/| /' conftest.$ac_ext >&5
14403 rm -f conftest.$ac_objext conftest.$ac_ext
14405 echo "$as_me:$LINENO: result: $mutt_cv_wchar_t" >&5
14406 echo "${ECHO_T}$mutt_cv_wchar_t" >&6
14408 if test "$mutt_cv_wchar_t" = no; then
14410 cat >>confdefs.h <<\_ACEOF
14411 #define wchar_t int
14416 echo "$as_me:$LINENO: checking for wint_t" >&5
14417 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
14418 if test "${mutt_cv_wint_t+set}" = set; then
14419 echo $ECHO_N "(cached) $ECHO_C" >&6
14421 cat >conftest.$ac_ext <<_ACEOF
14422 #line $LINENO "configure"
14425 cat confdefs.h >>conftest.$ac_ext
14426 cat >>conftest.$ac_ext <<_ACEOF
14427 /* end confdefs.h. */
14429 #include <stddef.h>
14430 #include <stdlib.h>
14431 #ifdef HAVE_WCHAR_H
14438 wint_t wc; return 0;
14443 rm -f conftest.$ac_objext
14444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14445 (eval $ac_compile) 2>&5
14447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448 (exit $ac_status); } &&
14449 { ac_try='test -s conftest.$ac_objext'
14450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14451 (eval $ac_try) 2>&5
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); }; }; then
14457 echo "$as_me: failed program was:" >&5
14458 sed 's/^/| /' conftest.$ac_ext >&5
14462 rm -f conftest.$ac_objext conftest.$ac_ext
14464 echo "$as_me:$LINENO: result: $mutt_cv_wint_t" >&5
14465 echo "${ECHO_T}$mutt_cv_wint_t" >&6
14467 if test "$mutt_cv_wint_t" = no; then
14469 cat >>confdefs.h <<\_ACEOF
14476 for ac_header in wctype.h
14478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14480 echo "$as_me:$LINENO: checking for $ac_header" >&5
14481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14483 echo $ECHO_N "(cached) $ECHO_C" >&6
14485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14488 # Is the header compilable?
14489 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14491 cat >conftest.$ac_ext <<_ACEOF
14492 #line $LINENO "configure"
14495 cat confdefs.h >>conftest.$ac_ext
14496 cat >>conftest.$ac_ext <<_ACEOF
14497 /* end confdefs.h. */
14498 $ac_includes_default
14499 #include <$ac_header>
14501 rm -f conftest.$ac_objext
14502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14503 (eval $ac_compile) 2>&5
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); } &&
14507 { ac_try='test -s conftest.$ac_objext'
14508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14509 (eval $ac_try) 2>&5
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); }; }; then
14513 ac_header_compiler=yes
14515 echo "$as_me: failed program was:" >&5
14516 sed 's/^/| /' conftest.$ac_ext >&5
14518 ac_header_compiler=no
14520 rm -f conftest.$ac_objext conftest.$ac_ext
14521 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14522 echo "${ECHO_T}$ac_header_compiler" >&6
14524 # Is the header present?
14525 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14526 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14527 cat >conftest.$ac_ext <<_ACEOF
14528 #line $LINENO "configure"
14531 cat confdefs.h >>conftest.$ac_ext
14532 cat >>conftest.$ac_ext <<_ACEOF
14533 /* end confdefs.h. */
14534 #include <$ac_header>
14536 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14537 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14539 grep -v '^ *+' conftest.er1 >conftest.err
14541 cat conftest.err >&5
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); } >/dev/null; then
14544 if test -s conftest.err; then
14545 ac_cpp_err=$ac_c_preproc_warn_flag
14552 if test -z "$ac_cpp_err"; then
14553 ac_header_preproc=yes
14555 echo "$as_me: failed program was:" >&5
14556 sed 's/^/| /' conftest.$ac_ext >&5
14558 ac_header_preproc=no
14560 rm -f conftest.err conftest.$ac_ext
14561 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14562 echo "${ECHO_T}$ac_header_preproc" >&6
14564 # So? What about this header?
14565 case $ac_header_compiler:$ac_header_preproc in
14567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14573 ## ------------------------------------ ##
14574 ## Report this to bug-autoconf@gnu.org. ##
14575 ## ------------------------------------ ##
14578 sed "s/^/$as_me: WARNING: /" >&2
14581 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14582 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14583 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14584 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14589 ## ------------------------------------ ##
14590 ## Report this to bug-autoconf@gnu.org. ##
14591 ## ------------------------------------ ##
14594 sed "s/^/$as_me: WARNING: /" >&2
14597 echo "$as_me:$LINENO: checking for $ac_header" >&5
14598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14600 echo $ECHO_N "(cached) $ECHO_C" >&6
14602 eval "$as_ac_Header=$ac_header_preproc"
14604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14609 cat >>confdefs.h <<_ACEOF
14610 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14621 for ac_func in iswalnum iswalpha iswcntrl iswdigit
14623 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14624 echo "$as_me:$LINENO: checking for $ac_func" >&5
14625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14626 if eval "test \"\${$as_ac_var+set}\" = set"; then
14627 echo $ECHO_N "(cached) $ECHO_C" >&6
14629 cat >conftest.$ac_ext <<_ACEOF
14630 #line $LINENO "configure"
14633 cat confdefs.h >>conftest.$ac_ext
14634 cat >>conftest.$ac_ext <<_ACEOF
14635 /* end confdefs.h. */
14636 /* System header to define __stub macros and hopefully few prototypes,
14637 which can conflict with char $ac_func (); below.
14638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14639 <limits.h> exists even on freestanding compilers. */
14641 # include <limits.h>
14643 # include <assert.h>
14645 /* Override any gcc2 internal prototype to avoid an error. */
14650 /* We use char because int might match the return type of a gcc2
14651 builtin and then its argument prototype would still apply. */
14653 /* The GNU C library defines this for functions which it implements
14654 to always fail with ENOSYS. Some functions are actually named
14655 something starting with __ and the normal name is an alias. */
14656 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14659 char (*f) () = $ac_func;
14668 return f != $ac_func;
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 eval "$as_ac_var=yes"
14687 echo "$as_me: failed program was:" >&5
14688 sed 's/^/| /' conftest.$ac_ext >&5
14690 eval "$as_ac_var=no"
14692 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14695 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14696 if test `eval echo '${'$as_ac_var'}'` = yes; then
14697 cat >>confdefs.h <<_ACEOF
14698 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14710 for ac_func in iswgraph iswlower iswprint iswpunct iswspace iswupper
14712 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14713 echo "$as_me:$LINENO: checking for $ac_func" >&5
14714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14715 if eval "test \"\${$as_ac_var+set}\" = set"; then
14716 echo $ECHO_N "(cached) $ECHO_C" >&6
14718 cat >conftest.$ac_ext <<_ACEOF
14719 #line $LINENO "configure"
14722 cat confdefs.h >>conftest.$ac_ext
14723 cat >>conftest.$ac_ext <<_ACEOF
14724 /* end confdefs.h. */
14725 /* System header to define __stub macros and hopefully few prototypes,
14726 which can conflict with char $ac_func (); below.
14727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14728 <limits.h> exists even on freestanding compilers. */
14730 # include <limits.h>
14732 # include <assert.h>
14734 /* Override any gcc2 internal prototype to avoid an error. */
14739 /* We use char because int might match the return type of a gcc2
14740 builtin and then its argument prototype would still apply. */
14742 /* The GNU C library defines this for functions which it implements
14743 to always fail with ENOSYS. Some functions are actually named
14744 something starting with __ and the normal name is an alias. */
14745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14748 char (*f) () = $ac_func;
14757 return f != $ac_func;
14762 rm -f conftest.$ac_objext conftest$ac_exeext
14763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14764 (eval $ac_link) 2>&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); } &&
14768 { ac_try='test -s conftest$ac_exeext'
14769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14770 (eval $ac_try) 2>&5
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); }; }; then
14774 eval "$as_ac_var=yes"
14776 echo "$as_me: failed program was:" >&5
14777 sed 's/^/| /' conftest.$ac_ext >&5
14779 eval "$as_ac_var=no"
14781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14784 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14785 if test `eval echo '${'$as_ac_var'}'` = yes; then
14786 cat >>confdefs.h <<_ACEOF
14787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14796 for ac_func in iswxdigit towupper towlower
14798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14799 echo "$as_me:$LINENO: checking for $ac_func" >&5
14800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14801 if eval "test \"\${$as_ac_var+set}\" = set"; then
14802 echo $ECHO_N "(cached) $ECHO_C" >&6
14804 cat >conftest.$ac_ext <<_ACEOF
14805 #line $LINENO "configure"
14808 cat confdefs.h >>conftest.$ac_ext
14809 cat >>conftest.$ac_ext <<_ACEOF
14810 /* end confdefs.h. */
14811 /* System header to define __stub macros and hopefully few prototypes,
14812 which can conflict with char $ac_func (); below.
14813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14814 <limits.h> exists even on freestanding compilers. */
14816 # include <limits.h>
14818 # include <assert.h>
14820 /* Override any gcc2 internal prototype to avoid an error. */
14825 /* We use char because int might match the return type of a gcc2
14826 builtin and then its argument prototype would still apply. */
14828 /* The GNU C library defines this for functions which it implements
14829 to always fail with ENOSYS. Some functions are actually named
14830 something starting with __ and the normal name is an alias. */
14831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14834 char (*f) () = $ac_func;
14843 return f != $ac_func;
14848 rm -f conftest.$ac_objext conftest$ac_exeext
14849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14850 (eval $ac_link) 2>&5
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); } &&
14854 { ac_try='test -s conftest$ac_exeext'
14855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14856 (eval $ac_try) 2>&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); }; }; then
14860 eval "$as_ac_var=yes"
14862 echo "$as_me: failed program was:" >&5
14863 sed 's/^/| /' conftest.$ac_ext >&5
14865 eval "$as_ac_var=no"
14867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14870 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14871 if test `eval echo '${'$as_ac_var'}'` = yes; then
14872 cat >>confdefs.h <<_ACEOF
14873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14880 echo "$as_me:$LINENO: checking for mbstate_t" >&5
14881 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
14882 if test "${mutt_cv_mbstate_t+set}" = set; then
14883 echo $ECHO_N "(cached) $ECHO_C" >&6
14885 cat >conftest.$ac_ext <<_ACEOF
14886 #line $LINENO "configure"
14889 cat confdefs.h >>conftest.$ac_ext
14890 cat >>conftest.$ac_ext <<_ACEOF
14891 /* end confdefs.h. */
14893 #include <stddef.h>
14894 #include <stdlib.h>
14895 #ifdef HAVE_WCHAR_H
14902 mbstate_t s; return 0;
14907 rm -f conftest.$ac_objext
14908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14909 (eval $ac_compile) 2>&5
14911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912 (exit $ac_status); } &&
14913 { ac_try='test -s conftest.$ac_objext'
14914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14915 (eval $ac_try) 2>&5
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); }; }; then
14919 mutt_cv_mbstate_t=yes
14921 echo "$as_me: failed program was:" >&5
14922 sed 's/^/| /' conftest.$ac_ext >&5
14924 mutt_cv_mbstate_t=no
14926 rm -f conftest.$ac_objext conftest.$ac_ext
14928 echo "$as_me:$LINENO: result: $mutt_cv_mbstate_t" >&5
14929 echo "${ECHO_T}$mutt_cv_mbstate_t" >&6
14931 if test "$mutt_cv_mbstate_t" = no; then
14933 cat >>confdefs.h <<\_ACEOF
14934 #define mbstate_t int
14941 # Check whether --with-wc-funcs or --without-wc-funcs was given.
14942 if test "${with_wc_funcs+set}" = set; then
14943 withval="$with_wc_funcs"
14947 if test "$wc_funcs" != yes -a "$wc_funcs" != no; then
14948 echo "$as_me:$LINENO: checking for wchar_t functions" >&5
14949 echo $ECHO_N "checking for wchar_t functions... $ECHO_C" >&6
14950 if test "${mutt_cv_wc_funcs+set}" = set; then
14951 echo $ECHO_N "(cached) $ECHO_C" >&6
14953 mutt_cv_wc_funcs=no
14954 cat >conftest.$ac_ext <<_ACEOF
14955 #line $LINENO "configure"
14958 cat confdefs.h >>conftest.$ac_ext
14959 cat >>conftest.$ac_ext <<_ACEOF
14960 /* end confdefs.h. */
14962 #define _XOPEN_SOURCE 1
14963 #include <stddef.h>
14964 #include <stdlib.h>
14965 #ifdef HAVE_WCTYPE_H
14966 #include <wctype.h>
14968 #ifdef HAVE_WCHAR_H
14974 mbrtowc(0, 0, 0, 0); wctomb(0, 0); wcwidth(0);
14975 iswprint(0); iswspace(0); towlower(0); towupper(0); iswalnum(0)
14980 rm -f conftest.$ac_objext conftest$ac_exeext
14981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14982 (eval $ac_link) 2>&5
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); } &&
14986 { ac_try='test -s conftest$ac_exeext'
14987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14988 (eval $ac_try) 2>&5
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); }; }; then
14992 mutt_cv_wc_funcs=yes
14994 echo "$as_me: failed program was:" >&5
14995 sed 's/^/| /' conftest.$ac_ext >&5
14998 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15000 echo "$as_me:$LINENO: result: $mutt_cv_wc_funcs" >&5
15001 echo "${ECHO_T}$mutt_cv_wc_funcs" >&6
15002 wc_funcs=$mutt_cv_wc_funcs
15005 if test $wc_funcs = yes; then
15007 cat >>confdefs.h <<\_ACEOF
15008 #define HAVE_WC_FUNCS 1
15013 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
15014 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
15015 if test "${mutt_cv_langinfo_codeset+set}" = set; then
15016 echo $ECHO_N "(cached) $ECHO_C" >&6
15018 cat >conftest.$ac_ext <<_ACEOF
15019 #line $LINENO "configure"
15022 cat confdefs.h >>conftest.$ac_ext
15023 cat >>conftest.$ac_ext <<_ACEOF
15024 /* end confdefs.h. */
15025 #include <langinfo.h>
15029 char* cs = nl_langinfo(CODESET);
15034 rm -f conftest.$ac_objext conftest$ac_exeext
15035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15036 (eval $ac_link) 2>&5
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); } &&
15040 { ac_try='test -s conftest$ac_exeext'
15041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15042 (eval $ac_try) 2>&5
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); }; }; then
15046 mutt_cv_langinfo_codeset=yes
15048 echo "$as_me: failed program was:" >&5
15049 sed 's/^/| /' conftest.$ac_ext >&5
15051 mutt_cv_langinfo_codeset=no
15053 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15055 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_codeset" >&5
15056 echo "${ECHO_T}$mutt_cv_langinfo_codeset" >&6
15057 if test $mutt_cv_langinfo_codeset = yes; then
15059 cat >>confdefs.h <<\_ACEOF
15060 #define HAVE_LANGINFO_CODESET 1
15065 echo "$as_me:$LINENO: checking for nl_langinfo and YESEXPR" >&5
15066 echo $ECHO_N "checking for nl_langinfo and YESEXPR... $ECHO_C" >&6
15067 if test "${mutt_cv_langinfo_yesexpr+set}" = set; then
15068 echo $ECHO_N "(cached) $ECHO_C" >&6
15070 cat >conftest.$ac_ext <<_ACEOF
15071 #line $LINENO "configure"
15074 cat confdefs.h >>conftest.$ac_ext
15075 cat >>conftest.$ac_ext <<_ACEOF
15076 /* end confdefs.h. */
15077 #include <langinfo.h>
15081 char* cs = nl_langinfo(YESEXPR);
15086 rm -f conftest.$ac_objext conftest$ac_exeext
15087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15088 (eval $ac_link) 2>&5
15090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091 (exit $ac_status); } &&
15092 { ac_try='test -s conftest$ac_exeext'
15093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15094 (eval $ac_try) 2>&5
15096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); }; }; then
15098 mutt_cv_langinfo_yesexpr=yes
15100 echo "$as_me: failed program was:" >&5
15101 sed 's/^/| /' conftest.$ac_ext >&5
15103 mutt_cv_langinfo_yesexpr=no
15105 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15107 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_yesexpr" >&5
15108 echo "${ECHO_T}$mutt_cv_langinfo_yesexpr" >&6
15109 if test $mutt_cv_langinfo_yesexpr = yes; then
15111 cat >>confdefs.h <<\_ACEOF
15112 #define HAVE_LANGINFO_YESEXPR 1
15119 # Check whether --with-libesmtp or --without-libesmtp was given.
15120 if test "${with_libesmtp+set}" = set; then
15121 withval="$with_libesmtp"
15122 if test "$with_libesmtp" != "no"
15124 mutt_libesmtp_check_path="$PATH"
15126 if test "$with_libesmtp" != "yes"
15128 mutt_libesmtp_check_path="$tmp_path:$withval/bin"
15131 # Extract the first word of "libesmtp-config", so it can be a program name with args.
15132 set dummy libesmtp-config; ac_word=$2
15133 echo "$as_me:$LINENO: checking for $ac_word" >&5
15134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15135 if test "${ac_cv_path_mutt_libesmtp_config_path+set}" = set; then
15136 echo $ECHO_N "(cached) $ECHO_C" >&6
15138 case $mutt_libesmtp_config_path in
15140 ac_cv_path_mutt_libesmtp_config_path="$mutt_libesmtp_config_path" # Let the user override the test with a path.
15143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15144 for as_dir in $mutt_libesmtp_check_path
15147 test -z "$as_dir" && as_dir=.
15148 for ac_exec_ext in '' $ac_executable_extensions; do
15149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15150 ac_cv_path_mutt_libesmtp_config_path="$as_dir/$ac_word$ac_exec_ext"
15151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15157 test -z "$ac_cv_path_mutt_libesmtp_config_path" && ac_cv_path_mutt_libesmtp_config_path="no"
15161 mutt_libesmtp_config_path=$ac_cv_path_mutt_libesmtp_config_path
15163 if test -n "$mutt_libesmtp_config_path"; then
15164 echo "$as_me:$LINENO: result: $mutt_libesmtp_config_path" >&5
15165 echo "${ECHO_T}$mutt_libesmtp_config_path" >&6
15167 echo "$as_me:$LINENO: result: no" >&5
15168 echo "${ECHO_T}no" >&6
15172 if test "$mutt_libesmtp_config_path" = "no"
15174 { { echo "$as_me:$LINENO: error: libesmtp-config binary not found." >&5
15175 echo "$as_me: error: libesmtp-config binary not found." >&2;}
15176 { (exit 1); exit 1; }; }
15179 mutt_libesmtp_cflags=`$mutt_libesmtp_config_path --cflags`
15180 mutt_libesmtp_libs=`$mutt_libesmtp_config_path --libs`
15182 temp_CFLAGS="$CFLAGS"
15183 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
15184 if test "${ac_cv_header_libesmtp_h+set}" = set; then
15185 echo "$as_me:$LINENO: checking for libesmtp.h" >&5
15186 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
15187 if test "${ac_cv_header_libesmtp_h+set}" = set; then
15188 echo $ECHO_N "(cached) $ECHO_C" >&6
15190 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
15191 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
15193 # Is the header compilable?
15194 echo "$as_me:$LINENO: checking libesmtp.h usability" >&5
15195 echo $ECHO_N "checking libesmtp.h usability... $ECHO_C" >&6
15196 cat >conftest.$ac_ext <<_ACEOF
15197 #line $LINENO "configure"
15200 cat confdefs.h >>conftest.$ac_ext
15201 cat >>conftest.$ac_ext <<_ACEOF
15202 /* end confdefs.h. */
15203 $ac_includes_default
15204 #include <libesmtp.h>
15206 rm -f conftest.$ac_objext
15207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15208 (eval $ac_compile) 2>&5
15210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211 (exit $ac_status); } &&
15212 { ac_try='test -s conftest.$ac_objext'
15213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15214 (eval $ac_try) 2>&5
15216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217 (exit $ac_status); }; }; then
15218 ac_header_compiler=yes
15220 echo "$as_me: failed program was:" >&5
15221 sed 's/^/| /' conftest.$ac_ext >&5
15223 ac_header_compiler=no
15225 rm -f conftest.$ac_objext conftest.$ac_ext
15226 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15227 echo "${ECHO_T}$ac_header_compiler" >&6
15229 # Is the header present?
15230 echo "$as_me:$LINENO: checking libesmtp.h presence" >&5
15231 echo $ECHO_N "checking libesmtp.h presence... $ECHO_C" >&6
15232 cat >conftest.$ac_ext <<_ACEOF
15233 #line $LINENO "configure"
15236 cat confdefs.h >>conftest.$ac_ext
15237 cat >>conftest.$ac_ext <<_ACEOF
15238 /* end confdefs.h. */
15239 #include <libesmtp.h>
15241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15244 grep -v '^ *+' conftest.er1 >conftest.err
15246 cat conftest.err >&5
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); } >/dev/null; then
15249 if test -s conftest.err; then
15250 ac_cpp_err=$ac_c_preproc_warn_flag
15257 if test -z "$ac_cpp_err"; then
15258 ac_header_preproc=yes
15260 echo "$as_me: failed program was:" >&5
15261 sed 's/^/| /' conftest.$ac_ext >&5
15263 ac_header_preproc=no
15265 rm -f conftest.err conftest.$ac_ext
15266 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15267 echo "${ECHO_T}$ac_header_preproc" >&6
15269 # So? What about this header?
15270 case $ac_header_compiler:$ac_header_preproc in
15272 { echo "$as_me:$LINENO: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&5
15273 echo "$as_me: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15274 { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&5
15275 echo "$as_me: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&2;}
15278 ## ------------------------------------ ##
15279 ## Report this to bug-autoconf@gnu.org. ##
15280 ## ------------------------------------ ##
15283 sed "s/^/$as_me: WARNING: /" >&2
15286 { echo "$as_me:$LINENO: WARNING: libesmtp.h: present but cannot be compiled" >&5
15287 echo "$as_me: WARNING: libesmtp.h: present but cannot be compiled" >&2;}
15288 { echo "$as_me:$LINENO: WARNING: libesmtp.h: check for missing prerequisite headers?" >&5
15289 echo "$as_me: WARNING: libesmtp.h: check for missing prerequisite headers?" >&2;}
15290 { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&5
15291 echo "$as_me: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&2;}
15294 ## ------------------------------------ ##
15295 ## Report this to bug-autoconf@gnu.org. ##
15296 ## ------------------------------------ ##
15299 sed "s/^/$as_me: WARNING: /" >&2
15302 echo "$as_me:$LINENO: checking for libesmtp.h" >&5
15303 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
15304 if test "${ac_cv_header_libesmtp_h+set}" = set; then
15305 echo $ECHO_N "(cached) $ECHO_C" >&6
15307 ac_cv_header_libesmtp_h=$ac_header_preproc
15309 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
15310 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
15313 if test $ac_cv_header_libesmtp_h = yes; then
15316 { { echo "$as_me:$LINENO: error: Could not find libesmtp.h" >&5
15317 echo "$as_me: error: Could not find libesmtp.h" >&2;}
15318 { (exit 1); exit 1; }; }
15322 CFLAGS="$temp_CFLAGS"
15324 temp_CFLAGS="$CFLAGS"
15326 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
15327 LIBS="$LIBS $mutt_libesmtp_libs"
15329 echo "$as_me:$LINENO: checking for smtp_create_session in -lesmtp" >&5
15330 echo $ECHO_N "checking for smtp_create_session in -lesmtp... $ECHO_C" >&6
15331 if test "${ac_cv_lib_esmtp_smtp_create_session+set}" = set; then
15332 echo $ECHO_N "(cached) $ECHO_C" >&6
15334 ac_check_lib_save_LIBS=$LIBS
15335 LIBS="-lesmtp $LIBS"
15336 cat >conftest.$ac_ext <<_ACEOF
15337 #line $LINENO "configure"
15340 cat confdefs.h >>conftest.$ac_ext
15341 cat >>conftest.$ac_ext <<_ACEOF
15342 /* end confdefs.h. */
15344 /* Override any gcc2 internal prototype to avoid an error. */
15348 /* We use char because int might match the return type of a gcc2
15349 builtin and then its argument prototype would still apply. */
15350 char smtp_create_session ();
15354 smtp_create_session ();
15359 rm -f conftest.$ac_objext conftest$ac_exeext
15360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15361 (eval $ac_link) 2>&5
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); } &&
15365 { ac_try='test -s conftest$ac_exeext'
15366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15367 (eval $ac_try) 2>&5
15369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370 (exit $ac_status); }; }; then
15371 ac_cv_lib_esmtp_smtp_create_session=yes
15373 echo "$as_me: failed program was:" >&5
15374 sed 's/^/| /' conftest.$ac_ext >&5
15376 ac_cv_lib_esmtp_smtp_create_session=no
15378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15379 LIBS=$ac_check_lib_save_LIBS
15381 echo "$as_me:$LINENO: result: $ac_cv_lib_esmtp_smtp_create_session" >&5
15382 echo "${ECHO_T}$ac_cv_lib_esmtp_smtp_create_session" >&6
15383 if test $ac_cv_lib_esmtp_smtp_create_session = yes; then
15384 cat >>confdefs.h <<_ACEOF
15385 #define HAVE_LIBESMTP 1
15388 LIBS="-lesmtp $LIBS"
15391 { { echo "$as_me:$LINENO: error: Could not find libesmtp" >&5
15392 echo "$as_me: error: Could not find libesmtp" >&2;}
15393 { (exit 1); exit 1; }; }
15396 CFLAGS="$temp_CFLAGS"
15405 if test x$use_libesmtp = xyes; then
15406 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
15407 MUTTLIBS="$MUTTLIBS $mutt_libesmtp_libs"
15408 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_libesmtp.o"
15411 cat >>confdefs.h <<\_ACEOF
15412 #define USE_LIBESMTP 1
15417 ac_config_files="$ac_config_files Makefile intl/Makefile m4/Makefile po/Makefile.in doc/Makefile contrib/Makefile muttbug.sh imap/Makefile Muttrc.head doc/instdoc.sh"
15418 cat >confcache <<\_ACEOF
15419 # This file is a shell script that caches the results of configure
15420 # tests run on this system so they can be shared between configure
15421 # scripts and configure runs, see configure's option --config-cache.
15422 # It is not useful on other systems. If it contains results you don't
15423 # want to keep, you may remove or edit it.
15425 # config.status only pays attention to the cache file if you give it
15426 # the --recheck option to rerun configure.
15428 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15429 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15430 # following values.
15434 # The following way of writing the cache mishandles newlines in values,
15435 # but we know of no workaround that is simple, portable, and efficient.
15436 # So, don't put newlines in cache variables' values.
15437 # Ultrix sh set writes to stderr and can't be redirected directly,
15438 # and sets the high bit in the cache file unless we assign to the vars.
15441 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15443 # `set' does not quote correctly, so add quotes (double-quote
15444 # substitution turns \\\\ into \\, and sed turns \\ into \).
15447 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15450 # `set' quotes correctly as required by POSIX, so do not add quotes.
15452 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15459 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15461 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15463 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15464 if test -w $cache_file; then
15465 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15466 cat confcache >$cache_file
15468 echo "not updating unwritable cache $cache_file"
15473 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15474 # Let make expand exec_prefix.
15475 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15477 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15478 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15479 # trailing colons and then remove the whole line if VPATH becomes empty
15480 # (actually we leave an empty line to preserve line numbers).
15481 if test "x$srcdir" = x.; then
15482 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15483 s/:*\$(srcdir):*/:/;
15484 s/:*\${srcdir}:*/:/;
15486 s/^\([^=]*=[ ]*\):*/\1/;
15492 DEFS=-DHAVE_CONFIG_H
15496 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15497 # 1. Remove the extension, and $U if already installed.
15498 ac_i=`echo "$ac_i" |
15499 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15501 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15502 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15504 LIBOBJS=$ac_libobjs
15506 LTLIBOBJS=$ac_ltlibobjs
15509 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15510 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15511 Usually this means the macro was only invoked conditionally." >&5
15512 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15513 Usually this means the macro was only invoked conditionally." >&2;}
15514 { (exit 1); exit 1; }; }
15516 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15517 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15518 Usually this means the macro was only invoked conditionally." >&5
15519 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15520 Usually this means the macro was only invoked conditionally." >&2;}
15521 { (exit 1); exit 1; }; }
15523 if test -z "${BUILD_IMAP_TRUE}" && test -z "${BUILD_IMAP_FALSE}"; then
15524 { { echo "$as_me:$LINENO: error: conditional \"BUILD_IMAP\" was never defined.
15525 Usually this means the macro was only invoked conditionally." >&5
15526 echo "$as_me: error: conditional \"BUILD_IMAP\" was never defined.
15527 Usually this means the macro was only invoked conditionally." >&2;}
15528 { (exit 1); exit 1; }; }
15530 if test -z "${USE_GSS_TRUE}" && test -z "${USE_GSS_FALSE}"; then
15531 { { echo "$as_me:$LINENO: error: conditional \"USE_GSS\" was never defined.
15532 Usually this means the macro was only invoked conditionally." >&5
15533 echo "$as_me: error: conditional \"USE_GSS\" was never defined.
15534 Usually this means the macro was only invoked conditionally." >&2;}
15535 { (exit 1); exit 1; }; }
15537 if test -z "${USE_SSL_TRUE}" && test -z "${USE_SSL_FALSE}"; then
15538 { { echo "$as_me:$LINENO: error: conditional \"USE_SSL\" was never defined.
15539 Usually this means the macro was only invoked conditionally." >&5
15540 echo "$as_me: error: conditional \"USE_SSL\" was never defined.
15541 Usually this means the macro was only invoked conditionally." >&2;}
15542 { (exit 1); exit 1; }; }
15544 if test -z "${USE_GNUTLS_TRUE}" && test -z "${USE_GNUTLS_FALSE}"; then
15545 { { echo "$as_me:$LINENO: error: conditional \"USE_GNUTLS\" was never defined.
15546 Usually this means the macro was only invoked conditionally." >&5
15547 echo "$as_me: error: conditional \"USE_GNUTLS\" was never defined.
15548 Usually this means the macro was only invoked conditionally." >&2;}
15549 { (exit 1); exit 1; }; }
15551 if test -z "${USE_SASL_TRUE}" && test -z "${USE_SASL_FALSE}"; then
15552 { { echo "$as_me:$LINENO: error: conditional \"USE_SASL\" was never defined.
15553 Usually this means the macro was only invoked conditionally." >&5
15554 echo "$as_me: error: conditional \"USE_SASL\" was never defined.
15555 Usually this means the macro was only invoked conditionally." >&2;}
15556 { (exit 1); exit 1; }; }
15558 if test -z "${USE_SASL_TRUE}" && test -z "${USE_SASL_FALSE}"; then
15559 { { echo "$as_me:$LINENO: error: conditional \"USE_SASL\" was never defined.
15560 Usually this means the macro was only invoked conditionally." >&5
15561 echo "$as_me: error: conditional \"USE_SASL\" was never defined.
15562 Usually this means the macro was only invoked conditionally." >&2;}
15563 { (exit 1); exit 1; }; }
15566 : ${CONFIG_STATUS=./config.status}
15567 ac_clean_files_save=$ac_clean_files
15568 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15569 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15570 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15571 cat >$CONFIG_STATUS <<_ACEOF
15573 # Generated by $as_me.
15574 # Run this file to recreate the current configuration.
15575 # Compiler output produced by configure, useful for debugging
15576 # configure, is in config.log if it exists.
15579 ac_cs_recheck=false
15581 SHELL=\${CONFIG_SHELL-$SHELL}
15584 cat >>$CONFIG_STATUS <<\_ACEOF
15585 ## --------------------- ##
15586 ## M4sh Initialization. ##
15587 ## --------------------- ##
15589 # Be Bourne compatible
15590 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15593 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15594 # is contrary to our usage. Disable this feature.
15595 alias -g '${1+"$@"}'='"$@"'
15596 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15600 # Support unset when possible.
15601 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15608 # Work around bugs in pre-3.0 UWIN ksh.
15609 $as_unset ENV MAIL MAILPATH
15616 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15617 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15618 LC_TELEPHONE LC_TIME
15620 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
15621 eval $as_var=C; export $as_var
15627 # Required to use basename.
15628 if expr a : '\(a\)' >/dev/null 2>&1; then
15634 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15635 as_basename=basename
15641 # Name of the executable.
15642 as_me=`$as_basename "$0" ||
15643 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15644 X"$0" : 'X\(//\)$' \| \
15645 X"$0" : 'X\(/\)$' \| \
15646 . : '\(.\)' 2>/dev/null ||
15648 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15649 /^X\/\(\/\/\)$/{ s//\1/; q; }
15650 /^X\/\(\/\).*/{ s//\1/; q; }
15654 # PATH needs CR, and LINENO needs CR and PATH.
15655 # Avoid depending upon Character Ranges.
15656 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15657 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15658 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15659 as_cr_digits='0123456789'
15660 as_cr_alnum=$as_cr_Letters$as_cr_digits
15662 # The user is always right.
15663 if test "${PATH_SEPARATOR+set}" != set; then
15664 echo "#! /bin/sh" >conf$$.sh
15665 echo "exit 0" >>conf$$.sh
15667 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15676 as_lineno_1=$LINENO
15677 as_lineno_2=$LINENO
15678 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15679 test "x$as_lineno_1" != "x$as_lineno_2" &&
15680 test "x$as_lineno_3" = "x$as_lineno_2" || {
15681 # Find who we are. Look in the path if we contain no path at all
15684 *[\\/]* ) as_myself=$0 ;;
15685 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15686 for as_dir in $PATH
15689 test -z "$as_dir" && as_dir=.
15690 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15695 # We did not find ourselves, most probably we were run as `sh COMMAND'
15696 # in which case we are not to be found in the path.
15697 if test "x$as_myself" = x; then
15700 if test ! -f "$as_myself"; then
15701 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15702 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15703 { (exit 1); exit 1; }; }
15705 case $CONFIG_SHELL in
15707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15708 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15711 test -z "$as_dir" && as_dir=.
15712 for as_base in sh bash ksh sh5; do
15715 if ("$as_dir/$as_base" -c '
15716 as_lineno_1=$LINENO
15717 as_lineno_2=$LINENO
15718 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15719 test "x$as_lineno_1" != "x$as_lineno_2" &&
15720 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15721 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15722 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15723 CONFIG_SHELL=$as_dir/$as_base
15724 export CONFIG_SHELL
15725 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15733 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15734 # uniformly replaced by the line number. The first 'sed' inserts a
15735 # line-number line before each line; the second 'sed' does the real
15736 # work. The second script uses 'N' to pair each line-number line
15737 # with the numbered line, and appends trailing '-' during
15738 # substitution so that $LINENO is not a special case at line end.
15739 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15740 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15741 sed '=' <$as_myself |
15746 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15749 s,^['$as_cr_digits']*\n,,
15750 ' >$as_me.lineno &&
15751 chmod +x $as_me.lineno ||
15752 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15753 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15754 { (exit 1); exit 1; }; }
15756 # Don't try to exec as it changes $[0], causing all sort of problems
15757 # (the dirname of $[0] is not the place where we might find the
15758 # original and so on. Autoconf is especially sensible to this).
15760 # Exit status is that of the last command.
15765 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15766 *c*,-n*) ECHO_N= ECHO_C='
15768 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15769 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15772 if expr a : '\(a\)' >/dev/null 2>&1; then
15778 rm -f conf$$ conf$$.exe conf$$.file
15780 if ln -s conf$$.file conf$$ 2>/dev/null; then
15781 # We could just check for DJGPP; but this test a) works b) is more generic
15782 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15783 if test -f conf$$.exe; then
15784 # Don't use ln at all; we don't have any links
15789 elif ln conf$$.file conf$$ 2>/dev/null; then
15794 rm -f conf$$ conf$$.exe conf$$.file
15796 if mkdir -p . 2>/dev/null; then
15802 as_executable_p="test -f"
15804 # Sed expression to map a string onto a valid CPP name.
15805 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15807 # Sed expression to map a string onto a valid variable name.
15808 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15812 # We need space, tab and new line, in precisely that order.
15822 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15823 # report actual input values of CONFIG_FILES etc. instead of their
15824 # values after options handling. Logging --version etc. is OK.
15828 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15829 ## Running $as_me. ##
15834 This file was extended by $as_me, which was
15835 generated by GNU Autoconf 2.57. Invocation command line was
15837 CONFIG_FILES = $CONFIG_FILES
15838 CONFIG_HEADERS = $CONFIG_HEADERS
15839 CONFIG_LINKS = $CONFIG_LINKS
15840 CONFIG_COMMANDS = $CONFIG_COMMANDS
15844 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15848 # Files that config.status was made for.
15849 if test -n "$ac_config_files"; then
15850 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15853 if test -n "$ac_config_headers"; then
15854 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15857 if test -n "$ac_config_links"; then
15858 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15861 if test -n "$ac_config_commands"; then
15862 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15865 cat >>$CONFIG_STATUS <<\_ACEOF
15868 \`$as_me' instantiates files from templates according to the
15869 current configuration.
15871 Usage: $0 [OPTIONS] [FILE]...
15873 -h, --help print this help, then exit
15874 -V, --version print version number, then exit
15875 -q, --quiet do not print progress messages
15876 -d, --debug don't remove temporary files
15877 --recheck update $as_me by reconfiguring in the same conditions
15878 --file=FILE[:TEMPLATE]
15879 instantiate the configuration file FILE
15880 --header=FILE[:TEMPLATE]
15881 instantiate the configuration header FILE
15883 Configuration files:
15886 Configuration headers:
15889 Configuration commands:
15892 Report bugs to <bug-autoconf@gnu.org>."
15895 cat >>$CONFIG_STATUS <<_ACEOF
15898 configured by $0, generated by GNU Autoconf 2.57,
15899 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15901 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
15902 Free Software Foundation, Inc.
15903 This config.status script is free software; the Free Software Foundation
15904 gives unlimited permission to copy, distribute and modify it."
15909 cat >>$CONFIG_STATUS <<\_ACEOF
15910 # If no file are specified by the user, then we need to provide default
15911 # value. By we need to know if files were specified by the user.
15917 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15918 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15926 *) # This is not an option, so the user has probably given explicit
15929 ac_need_defaults=false;;
15933 # Handling of the options.
15935 cat >>$CONFIG_STATUS <<\_ACEOF
15936 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15938 --version | --vers* | -V )
15939 echo "$ac_cs_version"; exit 0 ;;
15941 # Conflict between --help and --header
15942 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15943 Try \`$0 --help' for more information." >&5
15944 echo "$as_me: error: ambiguous option: $1
15945 Try \`$0 --help' for more information." >&2;}
15946 { (exit 1); exit 1; }; };;
15947 --help | --hel | -h )
15948 echo "$ac_cs_usage"; exit 0 ;;
15949 --debug | --d* | -d )
15951 --file | --fil | --fi | --f )
15953 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15954 ac_need_defaults=false;;
15955 --header | --heade | --head | --hea )
15957 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15958 ac_need_defaults=false;;
15959 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15960 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15963 # This is an error.
15964 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15965 Try \`$0 --help' for more information." >&5
15966 echo "$as_me: error: unrecognized option: $1
15967 Try \`$0 --help' for more information." >&2;}
15968 { (exit 1); exit 1; }; } ;;
15970 *) ac_config_targets="$ac_config_targets $1" ;;
15976 ac_configure_extra_args=
15978 if $ac_cs_silent; then
15980 ac_configure_extra_args="$ac_configure_extra_args --silent"
15984 cat >>$CONFIG_STATUS <<_ACEOF
15985 if \$ac_cs_recheck; then
15986 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15987 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15992 cat >>$CONFIG_STATUS <<_ACEOF
15994 # INIT-COMMANDS section.
15997 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16004 cat >>$CONFIG_STATUS <<\_ACEOF
16005 for ac_config_target in $ac_config_targets
16007 case "$ac_config_target" in
16008 # Handling of arguments.
16009 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16010 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
16011 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
16012 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16013 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16014 "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
16015 "muttbug.sh" ) CONFIG_FILES="$CONFIG_FILES muttbug.sh" ;;
16016 "imap/Makefile" ) CONFIG_FILES="$CONFIG_FILES imap/Makefile" ;;
16017 "Muttrc.head" ) CONFIG_FILES="$CONFIG_FILES Muttrc.head" ;;
16018 "doc/instdoc.sh" ) CONFIG_FILES="$CONFIG_FILES doc/instdoc.sh" ;;
16019 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16020 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16021 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16022 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16023 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16024 { (exit 1); exit 1; }; };;
16028 # If the user did not use the arguments to specify the items to instantiate,
16029 # then the envvar interface is used. Set only those that are not.
16030 # We use the long form for the default assignment because of an extremely
16031 # bizarre bug on SunOS 4.1.3.
16032 if $ac_need_defaults; then
16033 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16034 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16035 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16038 # Have a temporary directory for convenience. Make it in the build tree
16039 # simply because there is no reason to put it here, and in addition,
16040 # creating and moving files from /tmp can sometimes cause problems.
16041 # Create a temporary directory, and hook for its removal unless debugging.
16044 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16045 trap '{ (exit 1); exit 1; }' 1 2 13 15
16048 # Create a (secure) tmp directory for tmp files.
16051 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16052 test -n "$tmp" && test -d "$tmp"
16055 tmp=./confstat$$-$RANDOM
16056 (umask 077 && mkdir $tmp)
16059 echo "$me: cannot create a temporary directory in ." >&2
16060 { (exit 1); exit 1; }
16065 cat >>$CONFIG_STATUS <<_ACEOF
16068 # CONFIG_FILES section.
16071 # No need to generate the scripts if there are no CONFIG_FILES.
16072 # This happens for instance when ./config.status config.h
16073 if test -n "\$CONFIG_FILES"; then
16074 # Protect against being on the right side of a sed subst in config.status.
16075 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16076 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16077 s,@SHELL@,$SHELL,;t t
16078 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16079 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16080 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16081 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16082 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16083 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16084 s,@exec_prefix@,$exec_prefix,;t t
16085 s,@prefix@,$prefix,;t t
16086 s,@program_transform_name@,$program_transform_name,;t t
16087 s,@bindir@,$bindir,;t t
16088 s,@sbindir@,$sbindir,;t t
16089 s,@libexecdir@,$libexecdir,;t t
16090 s,@datadir@,$datadir,;t t
16091 s,@sysconfdir@,$sysconfdir,;t t
16092 s,@sharedstatedir@,$sharedstatedir,;t t
16093 s,@localstatedir@,$localstatedir,;t t
16094 s,@libdir@,$libdir,;t t
16095 s,@includedir@,$includedir,;t t
16096 s,@oldincludedir@,$oldincludedir,;t t
16097 s,@infodir@,$infodir,;t t
16098 s,@mandir@,$mandir,;t t
16099 s,@build_alias@,$build_alias,;t t
16100 s,@host_alias@,$host_alias,;t t
16101 s,@target_alias@,$target_alias,;t t
16102 s,@DEFS@,$DEFS,;t t
16103 s,@ECHO_C@,$ECHO_C,;t t
16104 s,@ECHO_N@,$ECHO_N,;t t
16105 s,@ECHO_T@,$ECHO_T,;t t
16106 s,@LIBS@,$LIBS,;t t
16107 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16108 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16109 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16110 s,@CYGPATH_W@,$CYGPATH_W,;t t
16111 s,@PACKAGE@,$PACKAGE,;t t
16112 s,@VERSION@,$VERSION,;t t
16113 s,@ACLOCAL@,$ACLOCAL,;t t
16114 s,@AUTOCONF@,$AUTOCONF,;t t
16115 s,@AUTOMAKE@,$AUTOMAKE,;t t
16116 s,@AUTOHEADER@,$AUTOHEADER,;t t
16117 s,@MAKEINFO@,$MAKEINFO,;t t
16118 s,@AMTAR@,$AMTAR,;t t
16119 s,@install_sh@,$install_sh,;t t
16120 s,@STRIP@,$STRIP,;t t
16121 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16122 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
16124 s,@SET_MAKE@,$SET_MAKE,;t t
16125 s,@am__leading_dot@,$am__leading_dot,;t t
16126 s,@build@,$build,;t t
16127 s,@build_cpu@,$build_cpu,;t t
16128 s,@build_vendor@,$build_vendor,;t t
16129 s,@build_os@,$build_os,;t t
16130 s,@host@,$host,;t t
16131 s,@host_cpu@,$host_cpu,;t t
16132 s,@host_vendor@,$host_vendor,;t t
16133 s,@host_os@,$host_os,;t t
16135 s,@CFLAGS@,$CFLAGS,;t t
16136 s,@LDFLAGS@,$LDFLAGS,;t t
16137 s,@CPPFLAGS@,$CPPFLAGS,;t t
16138 s,@ac_ct_CC@,$ac_ct_CC,;t t
16139 s,@EXEEXT@,$EXEEXT,;t t
16140 s,@OBJEXT@,$OBJEXT,;t t
16141 s,@DEPDIR@,$DEPDIR,;t t
16142 s,@am__include@,$am__include,;t t
16143 s,@am__quote@,$am__quote,;t t
16144 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16145 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16146 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16147 s,@CCDEPMODE@,$CCDEPMODE,;t t
16148 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16149 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
16151 s,@EGREP@,$EGREP,;t t
16153 s,@ANSI2KNR@,$ANSI2KNR,;t t
16154 s,@RANLIB@,$RANLIB,;t t
16155 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16157 s,@ac_ct_AR@,$ac_ct_AR,;t t
16161 s,@DEBUGGER@,$DEBUGGER,;t t
16162 s,@SENDMAIL@,$SENDMAIL,;t t
16164 s,@PGPAUX_TARGET@,$PGPAUX_TARGET,;t t
16165 s,@SMIMEAUX_TARGET@,$SMIMEAUX_TARGET,;t t
16166 s,@SUBVERSION@,$SUBVERSION,;t t
16167 s,@ISPELL@,$ISPELL,;t t
16168 s,@LIBOBJS@,$LIBOBJS,;t t
16169 s,@DOTLOCK_TARGET@,$DOTLOCK_TARGET,;t t
16170 s,@docdir@,$docdir,;t t
16171 s,@DOTLOCK_GROUP@,$DOTLOCK_GROUP,;t t
16172 s,@DOTLOCK_PERMISSION@,$DOTLOCK_PERMISSION,;t t
16173 s,@BUILD_IMAP_TRUE@,$BUILD_IMAP_TRUE,;t t
16174 s,@BUILD_IMAP_FALSE@,$BUILD_IMAP_FALSE,;t t
16175 s,@KRB5CFGPATH@,$KRB5CFGPATH,;t t
16176 s,@USE_GSS_TRUE@,$USE_GSS_TRUE,;t t
16177 s,@USE_GSS_FALSE@,$USE_GSS_FALSE,;t t
16178 s,@USE_SSL_TRUE@,$USE_SSL_TRUE,;t t
16179 s,@USE_SSL_FALSE@,$USE_SSL_FALSE,;t t
16180 s,@USE_GNUTLS_TRUE@,$USE_GNUTLS_TRUE,;t t
16181 s,@USE_GNUTLS_FALSE@,$USE_GNUTLS_FALSE,;t t
16182 s,@USE_SASL_TRUE@,$USE_SASL_TRUE,;t t
16183 s,@USE_SASL_FALSE@,$USE_SASL_FALSE,;t t
16184 s,@MUTTLIBS@,$MUTTLIBS,;t t
16185 s,@MUTT_LIB_OBJECTS@,$MUTT_LIB_OBJECTS,;t t
16186 s,@LIBIMAP@,$LIBIMAP,;t t
16187 s,@LIBIMAPDEPS@,$LIBIMAPDEPS,;t t
16188 s,@ALLOCA@,$ALLOCA,;t t
16189 s,@GLIBC21@,$GLIBC21,;t t
16190 s,@LIBICONV@,$LIBICONV,;t t
16191 s,@USE_NLS@,$USE_NLS,;t t
16192 s,@MSGFMT@,$MSGFMT,;t t
16193 s,@GMSGFMT@,$GMSGFMT,;t t
16194 s,@XGETTEXT@,$XGETTEXT,;t t
16195 s,@INTLBISON@,$INTLBISON,;t t
16196 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
16197 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
16198 s,@CATALOGS@,$CATALOGS,;t t
16199 s,@CATOBJEXT@,$CATOBJEXT,;t t
16200 s,@GMOFILES@,$GMOFILES,;t t
16201 s,@INTLLIBS@,$INTLLIBS,;t t
16202 s,@INTLOBJS@,$INTLOBJS,;t t
16203 s,@POFILES@,$POFILES,;t t
16204 s,@POSUB@,$POSUB,;t t
16205 s,@DATADIRNAME@,$DATADIRNAME,;t t
16206 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
16207 s,@GENCAT@,$GENCAT,;t t
16208 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
16209 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
16210 s,@mutt_libesmtp_config_path@,$mutt_libesmtp_config_path,;t t
16211 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16216 cat >>$CONFIG_STATUS <<\_ACEOF
16217 # Split the substitutions into bite-sized pieces for seds with
16218 # small command number limits, like on Digital OSF/1 and HP-UX.
16219 ac_max_sed_lines=48
16220 ac_sed_frag=1 # Number of current file.
16221 ac_beg=1 # First line for current file.
16222 ac_end=$ac_max_sed_lines # Line after last line for current file.
16225 while $ac_more_lines; do
16226 if test $ac_beg -gt 1; then
16227 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16229 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16231 if test ! -s $tmp/subs.frag; then
16232 ac_more_lines=false
16234 # The purpose of the label and of the branching condition is to
16235 # speed up the sed processing (if there are no `@' at all, there
16236 # is no need to browse any of the substitutions).
16237 # These are the two extra sed commands mentioned above.
16239 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16240 if test -z "$ac_sed_cmds"; then
16241 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16243 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16245 ac_sed_frag=`expr $ac_sed_frag + 1`
16247 ac_end=`expr $ac_end + $ac_max_sed_lines`
16250 if test -z "$ac_sed_cmds"; then
16253 fi # test -n "$CONFIG_FILES"
16256 cat >>$CONFIG_STATUS <<\_ACEOF
16257 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16258 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16260 - | *:- | *:-:* ) # input from stdin
16262 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16263 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16264 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16265 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16266 * ) ac_file_in=$ac_file.in ;;
16269 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16270 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16271 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16272 X"$ac_file" : 'X\(//\)[^/]' \| \
16273 X"$ac_file" : 'X\(//\)$' \| \
16274 X"$ac_file" : 'X\(/\)' \| \
16275 . : '\(.\)' 2>/dev/null ||
16277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16278 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16279 /^X\(\/\/\)$/{ s//\1/; q; }
16280 /^X\(\/\).*/{ s//\1/; q; }
16282 { if $as_mkdir_p; then
16287 while test ! -d "$as_dir"; do
16288 as_dirs="$as_dir $as_dirs"
16289 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16290 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16291 X"$as_dir" : 'X\(//\)[^/]' \| \
16292 X"$as_dir" : 'X\(//\)$' \| \
16293 X"$as_dir" : 'X\(/\)' \| \
16294 . : '\(.\)' 2>/dev/null ||
16296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16297 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16298 /^X\(\/\/\)$/{ s//\1/; q; }
16299 /^X\(\/\).*/{ s//\1/; q; }
16302 test ! -n "$as_dirs" || mkdir $as_dirs
16303 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16304 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16305 { (exit 1); exit 1; }; }; }
16309 if test "$ac_dir" != .; then
16310 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16311 # A "../" for each directory in $ac_dir_suffix.
16312 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16314 ac_dir_suffix= ac_top_builddir=
16318 .) # No --srcdir option. We are building in place.
16320 if test -z "$ac_top_builddir"; then
16323 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16325 [\\/]* | ?:[\\/]* ) # Absolute path.
16326 ac_srcdir=$srcdir$ac_dir_suffix;
16327 ac_top_srcdir=$srcdir ;;
16328 *) # Relative path.
16329 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16330 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16332 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16334 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16335 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16336 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16337 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16341 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16342 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16345 if test x"$ac_file" != x-; then
16346 { echo "$as_me:$LINENO: creating $ac_file" >&5
16347 echo "$as_me: creating $ac_file" >&6;}
16350 # Let's still pretend it is `configure' which instantiates (i.e., don't
16351 # use $as_me), people would be surprised to read:
16352 # /* config.h. Generated by config.status. */
16353 if test x"$ac_file" = x-; then
16356 configure_input="$ac_file. "
16358 configure_input=$configure_input"Generated from `echo $ac_file_in |
16359 sed 's,.*/,,'` by configure."
16361 # First look for the input files in the build tree, otherwise in the
16363 ac_file_inputs=`IFS=:
16364 for f in $ac_file_in; do
16366 -) echo $tmp/stdin ;;
16368 # Absolute (can't be DOS-style, as IFS=:)
16369 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16370 echo "$as_me: error: cannot find input file: $f" >&2;}
16371 { (exit 1); exit 1; }; }
16374 if test -f "$f"; then
16377 elif test -f "$srcdir/$f"; then
16382 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16383 echo "$as_me: error: cannot find input file: $f" >&2;}
16384 { (exit 1); exit 1; }; }
16387 done` || { (exit 1); exit 1; }
16389 cat >>$CONFIG_STATUS <<_ACEOF
16393 cat >>$CONFIG_STATUS <<\_ACEOF
16395 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16396 s,@configure_input@,$configure_input,;t t
16397 s,@srcdir@,$ac_srcdir,;t t
16398 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16399 s,@top_srcdir@,$ac_top_srcdir,;t t
16400 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16401 s,@builddir@,$ac_builddir,;t t
16402 s,@abs_builddir@,$ac_abs_builddir,;t t
16403 s,@top_builddir@,$ac_top_builddir,;t t
16404 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16405 s,@INSTALL@,$ac_INSTALL,;t t
16406 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16408 if test x"$ac_file" != x-; then
16409 mv $tmp/out $ac_file
16417 cat >>$CONFIG_STATUS <<\_ACEOF
16420 # CONFIG_HEADER section.
16423 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16424 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16426 # ac_d sets the value in "#define NAME VALUE" lines.
16427 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16428 ac_dB='[ ].*$,\1#\2'
16431 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16432 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16433 ac_uB='$,\1#\2define\3'
16437 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16438 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16440 - | *:- | *:-:* ) # input from stdin
16442 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16443 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16444 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16445 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16446 * ) ac_file_in=$ac_file.in ;;
16449 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16450 echo "$as_me: creating $ac_file" >&6;}
16452 # First look for the input files in the build tree, otherwise in the
16454 ac_file_inputs=`IFS=:
16455 for f in $ac_file_in; do
16457 -) echo $tmp/stdin ;;
16459 # Absolute (can't be DOS-style, as IFS=:)
16460 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16461 echo "$as_me: error: cannot find input file: $f" >&2;}
16462 { (exit 1); exit 1; }; }
16465 if test -f "$f"; then
16468 elif test -f "$srcdir/$f"; then
16473 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16474 echo "$as_me: error: cannot find input file: $f" >&2;}
16475 { (exit 1); exit 1; }; }
16478 done` || { (exit 1); exit 1; }
16479 # Remove the trailing spaces.
16480 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16484 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16485 # `conftest.undefs', that substitutes the proper values into
16486 # config.h.in to produce config.h. The first handles `#define'
16487 # templates, and the second `#undef' templates.
16488 # And first: Protect against being on the right side of a sed subst in
16489 # config.status. Protect against being in an unquoted here document
16490 # in config.status.
16491 rm -f conftest.defines conftest.undefs
16492 # Using a here document instead of a string reduces the quoting nightmare.
16493 # Putting comments in sed scripts is not portable.
16495 # `end' is used to avoid that the second main sed command (meant for
16496 # 0-ary CPP macros) applies to n-ary macro definitions.
16497 # See the Autoconf documentation for `clear'.
16498 cat >confdef2sed.sed <<\_ACEOF
16503 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16505 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16508 # If some macros were called several times there might be several times
16509 # the same #defines, which is useless. Nevertheless, we may not want to
16510 # sort them, since we want the *last* AC-DEFINE to be honored.
16511 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16512 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16513 rm -f confdef2sed.sed
16515 # This sed command replaces #undef with comments. This is necessary, for
16516 # example, in the case of _POSIX_SOURCE, which is predefined and required
16517 # on some systems where configure will not decide to define it.
16518 cat >>conftest.undefs <<\_ACEOF
16519 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16522 # Break up conftest.defines because some shells have a limit on the size
16523 # of here documents, and old seds have small limits too (100 cmds).
16524 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16525 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16526 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16527 echo ' :' >>$CONFIG_STATUS
16528 rm -f conftest.tail
16529 while grep . conftest.defines >/dev/null
16531 # Write a limited-size here document to $tmp/defines.sed.
16532 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16533 # Speed up: don't consider the non `#define' lines.
16534 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16535 # Work around the forget-to-reset-the-flag bug.
16536 echo 't clr' >>$CONFIG_STATUS
16537 echo ': clr' >>$CONFIG_STATUS
16538 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16540 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16542 mv $tmp/out $tmp/in
16544 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16545 rm -f conftest.defines
16546 mv conftest.tail conftest.defines
16548 rm -f conftest.defines
16549 echo ' fi # grep' >>$CONFIG_STATUS
16550 echo >>$CONFIG_STATUS
16552 # Break up conftest.undefs because some shells have a limit on the size
16553 # of here documents, and old seds have small limits too (100 cmds).
16554 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16555 rm -f conftest.tail
16556 while grep . conftest.undefs >/dev/null
16558 # Write a limited-size here document to $tmp/undefs.sed.
16559 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16560 # Speed up: don't consider the non `#undef'
16561 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16562 # Work around the forget-to-reset-the-flag bug.
16563 echo 't clr' >>$CONFIG_STATUS
16564 echo ': clr' >>$CONFIG_STATUS
16565 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16567 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16569 mv $tmp/out $tmp/in
16571 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16572 rm -f conftest.undefs
16573 mv conftest.tail conftest.undefs
16575 rm -f conftest.undefs
16577 cat >>$CONFIG_STATUS <<\_ACEOF
16578 # Let's still pretend it is `configure' which instantiates (i.e., don't
16579 # use $as_me), people would be surprised to read:
16580 # /* config.h. Generated by config.status. */
16581 if test x"$ac_file" = x-; then
16582 echo "/* Generated by configure. */" >$tmp/config.h
16584 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16586 cat $tmp/in >>$tmp/config.h
16588 if test x"$ac_file" != x-; then
16589 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16590 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16591 echo "$as_me: $ac_file is unchanged" >&6;}
16593 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16594 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16595 X"$ac_file" : 'X\(//\)[^/]' \| \
16596 X"$ac_file" : 'X\(//\)$' \| \
16597 X"$ac_file" : 'X\(/\)' \| \
16598 . : '\(.\)' 2>/dev/null ||
16600 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16601 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16602 /^X\(\/\/\)$/{ s//\1/; q; }
16603 /^X\(\/\).*/{ s//\1/; q; }
16605 { if $as_mkdir_p; then
16610 while test ! -d "$as_dir"; do
16611 as_dirs="$as_dir $as_dirs"
16612 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16613 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16614 X"$as_dir" : 'X\(//\)[^/]' \| \
16615 X"$as_dir" : 'X\(//\)$' \| \
16616 X"$as_dir" : 'X\(/\)' \| \
16617 . : '\(.\)' 2>/dev/null ||
16619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16620 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16621 /^X\(\/\/\)$/{ s//\1/; q; }
16622 /^X\(\/\).*/{ s//\1/; q; }
16625 test ! -n "$as_dirs" || mkdir $as_dirs
16626 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16627 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16628 { (exit 1); exit 1; }; }; }
16631 mv $tmp/config.h $ac_file
16635 rm -f $tmp/config.h
16637 # Compute $ac_file's index in $config_headers.
16639 for _am_header in $config_headers :; do
16640 case $_am_header in
16641 $ac_file | $ac_file:* )
16644 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16647 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
16648 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16649 X$ac_file : 'X\(//\)[^/]' \| \
16650 X$ac_file : 'X\(//\)$' \| \
16651 X$ac_file : 'X\(/\)' \| \
16652 . : '\(.\)' 2>/dev/null ||
16654 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16655 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16656 /^X\(\/\/\)$/{ s//\1/; q; }
16657 /^X\(\/\).*/{ s//\1/; q; }
16658 s/.*/./; q'`/stamp-h$_am_stamp_count
16661 cat >>$CONFIG_STATUS <<\_ACEOF
16664 # CONFIG_COMMANDS section.
16666 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16667 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16668 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16669 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16670 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16671 X"$ac_dest" : 'X\(//\)[^/]' \| \
16672 X"$ac_dest" : 'X\(//\)$' \| \
16673 X"$ac_dest" : 'X\(/\)' \| \
16674 . : '\(.\)' 2>/dev/null ||
16676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16677 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16678 /^X\(\/\/\)$/{ s//\1/; q; }
16679 /^X\(\/\).*/{ s//\1/; q; }
16683 if test "$ac_dir" != .; then
16684 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16685 # A "../" for each directory in $ac_dir_suffix.
16686 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16688 ac_dir_suffix= ac_top_builddir=
16692 .) # No --srcdir option. We are building in place.
16694 if test -z "$ac_top_builddir"; then
16697 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16699 [\\/]* | ?:[\\/]* ) # Absolute path.
16700 ac_srcdir=$srcdir$ac_dir_suffix;
16701 ac_top_srcdir=$srcdir ;;
16702 *) # Relative path.
16703 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16704 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16706 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16708 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16709 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16710 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16711 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16714 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16715 echo "$as_me: executing $ac_dest commands" >&6;}
16717 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16718 # Strip MF so we end up with the name of the file.
16719 mf=`echo "$mf" | sed -e 's/:.*$//'`
16720 # Check whether this is an Automake generated Makefile or not.
16721 # We used to match only the files named `Makefile.in', but
16722 # some people rename them; so instead we look at the file content.
16723 # Grep'ing the first line is not enough: some people post-process
16724 # each Makefile.in and add a new line on top of each file to say so.
16725 # So let's grep whole file.
16726 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
16727 dirpart=`(dirname "$mf") 2>/dev/null ||
16728 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16729 X"$mf" : 'X\(//\)[^/]' \| \
16730 X"$mf" : 'X\(//\)$' \| \
16731 X"$mf" : 'X\(/\)' \| \
16732 . : '\(.\)' 2>/dev/null ||
16734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16735 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16736 /^X\(\/\/\)$/{ s//\1/; q; }
16737 /^X\(\/\).*/{ s//\1/; q; }
16742 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
16743 # Extract the definition of DEP_FILES from the Makefile without
16745 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
16746 test -z "$DEPDIR" && continue
16747 # When using ansi2knr, U may be empty or an underscore; expand it
16748 U=`sed -n -e '/^U = / s///p' < "$mf"`
16749 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
16750 # We invoke sed twice because it is the simplest approach to
16751 # changing $(DEPDIR) to its actual value in the expansion.
16752 for file in `sed -n -e '
16753 /^DEP_FILES = .*\\\\$/ {
16762 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
16763 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16764 # Make sure the directory exists.
16765 test -f "$dirpart/$file" && continue
16766 fdir=`(dirname "$file") 2>/dev/null ||
16767 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16768 X"$file" : 'X\(//\)[^/]' \| \
16769 X"$file" : 'X\(//\)$' \| \
16770 X"$file" : 'X\(/\)' \| \
16771 . : '\(.\)' 2>/dev/null ||
16773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16774 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16775 /^X\(\/\/\)$/{ s//\1/; q; }
16776 /^X\(\/\).*/{ s//\1/; q; }
16778 { if $as_mkdir_p; then
16779 mkdir -p $dirpart/$fdir
16781 as_dir=$dirpart/$fdir
16783 while test ! -d "$as_dir"; do
16784 as_dirs="$as_dir $as_dirs"
16785 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16786 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16787 X"$as_dir" : 'X\(//\)[^/]' \| \
16788 X"$as_dir" : 'X\(//\)$' \| \
16789 X"$as_dir" : 'X\(/\)' \| \
16790 . : '\(.\)' 2>/dev/null ||
16792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16793 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16794 /^X\(\/\/\)$/{ s//\1/; q; }
16795 /^X\(\/\).*/{ s//\1/; q; }
16798 test ! -n "$as_dirs" || mkdir $as_dirs
16799 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
16800 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
16801 { (exit 1); exit 1; }; }; }
16803 # echo "creating $dirpart/$file"
16804 echo '# dummy' > "$dirpart/$file"
16808 default-1 ) for ac_file in $CONFIG_FILES; do
16809 # Support "outfile[:infile[:infile...]]"
16811 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16813 # PO directories have a Makefile.in generated from Makefile.in.in.
16814 case "$ac_file" in */Makefile.in)
16815 # Adjust a relative srcdir.
16816 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16817 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16818 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16819 # In autoconf-2.13 it is called $ac_given_srcdir.
16820 # In autoconf-2.50 it is called $srcdir.
16821 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16822 case "$ac_given_srcdir" in
16823 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16824 /*) top_srcdir="$ac_given_srcdir" ;;
16825 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16827 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16828 rm -f "$ac_dir/POTFILES"
16829 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16830 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
16831 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16832 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
16841 cat >>$CONFIG_STATUS <<\_ACEOF
16843 { (exit 0); exit 0; }
16845 chmod +x $CONFIG_STATUS
16846 ac_clean_files=$ac_clean_files_save
16849 # configure is writing to config.log, and then calls config.status.
16850 # config.status does its own redirection, appending to config.log.
16851 # Unfortunately, on DOS this fails, as config.log is still kept open
16852 # by configure, so config.status won't be able to write to it; its
16853 # output is simply discarded. So we exec the FD to /dev/null,
16854 # effectively closing config.log, so it can be properly (re)opened and
16855 # appended to by config.status. When coming back to configure, we
16856 # need to make the FD available again.
16857 if test "$no_create" != yes; then
16859 ac_config_status_args=
16860 test "$silent" = yes &&
16861 ac_config_status_args="$ac_config_status_args --quiet"
16863 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16865 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16866 # would make configure fail if this is the last instruction.
16867 $ac_cs_success || { (exit 1); exit 1; }