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_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-nss=PFX Compile in SSL support for POP/IMAP via NSS
886 --with-sasl=PFX Use Cyrus SASL library for POP/IMAP authentication
887 --with-sasl2=PFX Use Cyrus SASL library version 2 for POP/IMAP authentication
888 --with-idn=PFX Use GNU libidn for domain names
889 --with-exec-shell=SHELL Specify alternate shell (ONLY if /bin/sh is broken)
890 --with-libiconv-prefix=DIR Search for libiconv in DIR/include and DIR/lib
891 --with-included-gettext Use the GNU gettext library included here
892 --without-wc-funcs Do not use the system's wchar_t functions
893 --with-libesmtp=DIR Compile in support for libesmtp for the MTA
895 Some influential environment variables:
896 CC C compiler command
897 CFLAGS C compiler flags
898 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
899 nonstandard directory <lib dir>
900 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
901 headers in a nonstandard directory <include dir>
904 Use these variables to override the choices made by `configure' or to help
905 it to find libraries and programs with nonstandard names/locations.
910 if test "$ac_init_help" = "recursive"; then
911 # If there are subdirs, report their specific --help.
913 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
914 test -d $ac_dir || continue
917 if test "$ac_dir" != .; then
918 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
919 # A "../" for each directory in $ac_dir_suffix.
920 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
922 ac_dir_suffix= ac_top_builddir=
926 .) # No --srcdir option. We are building in place.
928 if test -z "$ac_top_builddir"; then
931 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
933 [\\/]* | ?:[\\/]* ) # Absolute path.
934 ac_srcdir=$srcdir$ac_dir_suffix;
935 ac_top_srcdir=$srcdir ;;
937 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
938 ac_top_srcdir=$ac_top_builddir$srcdir ;;
940 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
942 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
943 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
944 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
945 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
948 # Check for guested configure; otherwise get Cygnus style configure.
949 if test -f $ac_srcdir/configure.gnu; then
951 $SHELL $ac_srcdir/configure.gnu --help=recursive
952 elif test -f $ac_srcdir/configure; then
954 $SHELL $ac_srcdir/configure --help=recursive
955 elif test -f $ac_srcdir/configure.ac ||
956 test -f $ac_srcdir/configure.in; then
960 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
966 test -n "$ac_init_help" && exit 0
967 if $ac_init_version; then
970 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
971 Free Software Foundation, Inc.
972 This configure script is free software; the Free Software Foundation
973 gives unlimited permission to copy, distribute and modify it.
979 This file contains any messages produced by compilers while
980 running configure, to aid debugging if configure makes a mistake.
982 It was created by $as_me, which was
983 generated by GNU Autoconf 2.57. Invocation command line was
994 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
995 uname -m = `(uname -m) 2>/dev/null || echo unknown`
996 uname -r = `(uname -r) 2>/dev/null || echo unknown`
997 uname -s = `(uname -s) 2>/dev/null || echo unknown`
998 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1000 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1001 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1003 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1004 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1005 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1006 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1007 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1008 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1009 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1017 test -z "$as_dir" && as_dir=.
1018 echo "PATH: $as_dir"
1033 # Keep a trace of the command line.
1034 # Strip out --no-create and --no-recursion so they do not pile up.
1035 # Strip out --silent because we don't want to record it for future runs.
1036 # Also quote any args containing shell meta-characters.
1037 # Make two passes to allow for proper duplicate-argument suppression.
1042 ac_must_keep_next=false
1048 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050 | -silent | --silent | --silen | --sile | --sil)
1052 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1053 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1056 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1058 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1059 if test $ac_must_keep_next = true; then
1060 ac_must_keep_next=false # Got value, back to normal.
1063 *=* | --config-cache | -C | -disable-* | --disable-* \
1064 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1065 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1066 | -with-* | --with-* | -without-* | --without-* | --x)
1067 case "$ac_configure_args0 " in
1068 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1071 -* ) ac_must_keep_next=true ;;
1074 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1075 # Get rid of the leading space.
1081 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1082 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1084 # When interrupted or exit'd, cleanup temporary files, and complete
1085 # config.log. We remove comments because anyway the quotes in there
1086 # would cause problems or look ugly.
1087 # WARNING: Be sure not to use single quotes in there, as some shells,
1088 # such as our DU 5.0 friend, will then `close' the trap.
1089 trap 'exit_status=$?
1090 # Save into config.log some information that might help in debugging.
1095 ## ---------------- ##
1096 ## Cache variables. ##
1097 ## ---------------- ##
1100 # The following way of writing the cache mishandles newlines in values,
1103 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1106 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1111 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1118 ## ----------------- ##
1119 ## Output variables. ##
1120 ## ----------------- ##
1123 for ac_var in $ac_subst_vars
1125 eval ac_val=$`echo $ac_var`
1126 echo "$ac_var='"'"'$ac_val'"'"'"
1130 if test -n "$ac_subst_files"; then
1137 for ac_var in $ac_subst_files
1139 eval ac_val=$`echo $ac_var`
1140 echo "$ac_var='"'"'$ac_val'"'"'"
1145 if test -s confdefs.h; then
1152 sed "/^$/d" confdefs.h | sort
1155 test "$ac_signal" != 0 &&
1156 echo "$as_me: caught signal $ac_signal"
1157 echo "$as_me: exit $exit_status"
1159 rm -f core core.* *.core &&
1160 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1163 for ac_signal in 1 2 13 15; do
1164 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1168 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1169 rm -rf conftest* confdefs.h
1170 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1173 # Predefined preprocessor variables.
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_NAME "$PACKAGE_NAME"
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1190 cat >>confdefs.h <<_ACEOF
1191 #define PACKAGE_STRING "$PACKAGE_STRING"
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1200 # Let the site file select an alternate cache file if it wants to.
1201 # Prefer explicitly selected file to automatically selected ones.
1202 if test -z "$CONFIG_SITE"; then
1203 if test "x$prefix" != xNONE; then
1204 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1206 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1209 for ac_site_file in $CONFIG_SITE; do
1210 if test -r "$ac_site_file"; then
1211 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1212 echo "$as_me: loading site script $ac_site_file" >&6;}
1213 sed 's/^/| /' "$ac_site_file" >&5
1218 if test -r "$cache_file"; then
1219 # Some versions of bash will fail to source /dev/null (special
1220 # files actually), so we avoid doing that.
1221 if test -f "$cache_file"; then
1222 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1223 echo "$as_me: loading cache $cache_file" >&6;}
1225 [\\/]* | ?:[\\/]* ) . $cache_file;;
1226 *) . ./$cache_file;;
1230 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1231 echo "$as_me: creating cache $cache_file" >&6;}
1235 # Check that the precious variables saved in the cache have kept the same
1237 ac_cache_corrupted=false
1238 for ac_var in `(set) 2>&1 |
1239 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1240 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1241 eval ac_new_set=\$ac_env_${ac_var}_set
1242 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1243 eval ac_new_val="\$ac_env_${ac_var}_value"
1244 case $ac_old_set,$ac_new_set in
1246 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1247 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1248 ac_cache_corrupted=: ;;
1250 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1252 ac_cache_corrupted=: ;;
1255 if test "x$ac_old_val" != "x$ac_new_val"; then
1256 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1257 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1258 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1259 echo "$as_me: former value: $ac_old_val" >&2;}
1260 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1261 echo "$as_me: current value: $ac_new_val" >&2;}
1262 ac_cache_corrupted=:
1265 # Pass precious variables to config.status.
1266 if test "$ac_new_set" = set; then
1268 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1269 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1270 *) ac_arg=$ac_var=$ac_new_val ;;
1272 case " $ac_configure_args " in
1273 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1274 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1278 if $ac_cache_corrupted; then
1279 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1280 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1281 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1282 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1283 { (exit 1); exit 1; }; }
1287 ac_cpp='$CPP $CPPFLAGS'
1288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1310 ac_config_headers="$ac_config_headers config.h"
1313 mutt_cv_version=`cat $srcdir/VERSION`
1316 am__api_version="1.7"
1318 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1319 if test -f $ac_dir/install-sh; then
1321 ac_install_sh="$ac_aux_dir/install-sh -c"
1323 elif test -f $ac_dir/install.sh; then
1325 ac_install_sh="$ac_aux_dir/install.sh -c"
1327 elif test -f $ac_dir/shtool; then
1329 ac_install_sh="$ac_aux_dir/shtool install -c"
1333 if test -z "$ac_aux_dir"; then
1334 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1335 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1336 { (exit 1); exit 1; }; }
1338 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1339 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1340 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1342 # Find a good install program. We prefer a C program (faster),
1343 # so one script is as good as another. But avoid the broken or
1344 # incompatible versions:
1345 # SysV /etc/install, /usr/sbin/install
1346 # SunOS /usr/etc/install
1347 # IRIX /sbin/install
1349 # AmigaOS /C/install, which installs bootblocks on floppy discs
1350 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1351 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1352 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1353 # ./install, which can be erroneously created by make from ./install.sh.
1354 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1355 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1356 if test -z "$INSTALL"; then
1357 if test "${ac_cv_path_install+set}" = set; then
1358 echo $ECHO_N "(cached) $ECHO_C" >&6
1360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1364 test -z "$as_dir" && as_dir=.
1365 # Account for people who put trailing slashes in PATH elements.
1367 ./ | .// | /cC/* | \
1368 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1371 # OSF1 and SCO ODT 3.0 have their own names for install.
1372 # Don't use installbsd from OSF since it installs stuff as root
1374 for ac_prog in ginstall scoinst install; do
1375 for ac_exec_ext in '' $ac_executable_extensions; do
1376 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1377 if test $ac_prog = install &&
1378 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1379 # AIX install. It has an incompatible calling convention.
1381 elif test $ac_prog = install &&
1382 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1383 # program-specific install script used by HP pwplus--don't use.
1386 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1398 if test "${ac_cv_path_install+set}" = set; then
1399 INSTALL=$ac_cv_path_install
1401 # As a last resort, use the slow shell script. We don't cache a
1402 # path for INSTALL within a source directory, because that will
1403 # break other packages using the cache if that directory is
1404 # removed, or if the path is relative.
1405 INSTALL=$ac_install_sh
1408 echo "$as_me:$LINENO: result: $INSTALL" >&5
1409 echo "${ECHO_T}$INSTALL" >&6
1411 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1412 # It thinks the first close brace ends the variable substitution.
1413 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1415 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1417 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1419 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1420 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1423 echo timestamp > conftest.file
1424 # Do `set' in a subshell so we don't clobber the current shell's
1425 # arguments. Must try -L first in case configure is actually a
1426 # symlink; some systems play weird games with the mod time of symlinks
1427 # (eg FreeBSD returns the mod time of the symlink's containing
1430 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1431 if test "$*" = "X"; then
1433 set X `ls -t $srcdir/configure conftest.file`
1436 if test "$*" != "X $srcdir/configure conftest.file" \
1437 && test "$*" != "X conftest.file $srcdir/configure"; then
1439 # If neither matched, then we have a broken ls. This can happen
1440 # if, for instance, CONFIG_SHELL is bash and it inherits a
1441 # broken ls alias from the environment. This has actually
1442 # happened. Such a system could not be considered "sane".
1443 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1444 alias in your environment" >&5
1445 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1446 alias in your environment" >&2;}
1447 { (exit 1); exit 1; }; }
1450 test "$2" = conftest.file
1456 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1457 Check your system clock" >&5
1458 echo "$as_me: error: newly created file is older than distributed files!
1459 Check your system clock" >&2;}
1460 { (exit 1); exit 1; }; }
1462 echo "$as_me:$LINENO: result: yes" >&5
1463 echo "${ECHO_T}yes" >&6
1464 test "$program_prefix" != NONE &&
1465 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1466 # Use a double $ so make ignores it.
1467 test "$program_suffix" != NONE &&
1468 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1469 # Double any \ or $. echo might interpret backslashes.
1470 # By default was `s,x,x', remove it if useless.
1471 cat <<\_ACEOF >conftest.sed
1472 s/[\\$]/&&/g;s/;s,x,x,$//
1474 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1478 # expand $ac_aux_dir to an absolute path
1479 am_aux_dir=`cd $ac_aux_dir && pwd`
1481 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1482 # Use eval to expand $SHELL
1483 if eval "$MISSING --run true"; then
1484 am_missing_run="$MISSING --run "
1487 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1488 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1491 for ac_prog in gawk mawk nawk awk
1493 # Extract the first word of "$ac_prog", so it can be a program name with args.
1494 set dummy $ac_prog; ac_word=$2
1495 echo "$as_me:$LINENO: checking for $ac_word" >&5
1496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1497 if test "${ac_cv_prog_AWK+set}" = set; then
1498 echo $ECHO_N "(cached) $ECHO_C" >&6
1500 if test -n "$AWK"; then
1501 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1507 test -z "$as_dir" && as_dir=.
1508 for ac_exec_ext in '' $ac_executable_extensions; do
1509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1510 ac_cv_prog_AWK="$ac_prog"
1511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1520 if test -n "$AWK"; then
1521 echo "$as_me:$LINENO: result: $AWK" >&5
1522 echo "${ECHO_T}$AWK" >&6
1524 echo "$as_me:$LINENO: result: no" >&5
1525 echo "${ECHO_T}no" >&6
1528 test -n "$AWK" && break
1531 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1532 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1533 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1534 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1535 echo $ECHO_N "(cached) $ECHO_C" >&6
1537 cat >conftest.make <<\_ACEOF
1539 @echo 'ac_maketemp="$(MAKE)"'
1541 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1542 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1543 if test -n "$ac_maketemp"; then
1544 eval ac_cv_prog_make_${ac_make}_set=yes
1546 eval ac_cv_prog_make_${ac_make}_set=no
1550 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1551 echo "$as_me:$LINENO: result: yes" >&5
1552 echo "${ECHO_T}yes" >&6
1555 echo "$as_me:$LINENO: result: no" >&5
1556 echo "${ECHO_T}no" >&6
1557 SET_MAKE="MAKE=${MAKE-make}"
1560 rm -rf .tst 2>/dev/null
1561 mkdir .tst 2>/dev/null
1562 if test -d .tst; then
1567 rmdir .tst 2>/dev/null
1569 # test to see if srcdir already configured
1570 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1571 test -f $srcdir/config.status; then
1572 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1573 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1574 { (exit 1); exit 1; }; }
1577 # test whether we have cygpath
1578 if test -z "$CYGPATH_W"; then
1579 if (cygpath --version) >/dev/null 2>/dev/null; then
1580 CYGPATH_W='cygpath -w'
1587 # Define the identity of the package.
1589 VERSION=$mutt_cv_version
1592 cat >>confdefs.h <<_ACEOF
1593 #define PACKAGE "$PACKAGE"
1597 cat >>confdefs.h <<_ACEOF
1598 #define VERSION "$VERSION"
1601 # Some tools Automake needs.
1603 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1606 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1609 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1612 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1615 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1618 AMTAR=${AMTAR-"${am_missing_run}tar"}
1620 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1622 # Installed binaries are usually stripped using `strip' when the user
1623 # run `make install-strip'. However `strip' might not be the right
1624 # tool to use in cross-compilation environments, therefore Automake
1625 # will honor the `STRIP' environment variable to overrule this program.
1626 if test "$cross_compiling" != no; then
1627 if test -n "$ac_tool_prefix"; then
1628 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1629 set dummy ${ac_tool_prefix}strip; ac_word=$2
1630 echo "$as_me:$LINENO: checking for $ac_word" >&5
1631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1632 if test "${ac_cv_prog_STRIP+set}" = set; then
1633 echo $ECHO_N "(cached) $ECHO_C" >&6
1635 if test -n "$STRIP"; then
1636 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642 test -z "$as_dir" && as_dir=.
1643 for ac_exec_ext in '' $ac_executable_extensions; do
1644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1645 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1654 STRIP=$ac_cv_prog_STRIP
1655 if test -n "$STRIP"; then
1656 echo "$as_me:$LINENO: result: $STRIP" >&5
1657 echo "${ECHO_T}$STRIP" >&6
1659 echo "$as_me:$LINENO: result: no" >&5
1660 echo "${ECHO_T}no" >&6
1664 if test -z "$ac_cv_prog_STRIP"; then
1666 # Extract the first word of "strip", so it can be a program name with args.
1667 set dummy strip; ac_word=$2
1668 echo "$as_me:$LINENO: checking for $ac_word" >&5
1669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1670 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1671 echo $ECHO_N "(cached) $ECHO_C" >&6
1673 if test -n "$ac_ct_STRIP"; then
1674 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1680 test -z "$as_dir" && as_dir=.
1681 for ac_exec_ext in '' $ac_executable_extensions; do
1682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1683 ac_cv_prog_ac_ct_STRIP="strip"
1684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1690 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1693 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1694 if test -n "$ac_ct_STRIP"; then
1695 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1696 echo "${ECHO_T}$ac_ct_STRIP" >&6
1698 echo "$as_me:$LINENO: result: no" >&5
1699 echo "${ECHO_T}no" >&6
1704 STRIP="$ac_cv_prog_STRIP"
1708 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1710 # We need awk for the "check" target. The system "awk" is bad on
1718 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"
1720 # Make sure we can run config.sub.
1721 $ac_config_sub sun4 >/dev/null 2>&1 ||
1722 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1723 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1724 { (exit 1); exit 1; }; }
1726 echo "$as_me:$LINENO: checking build system type" >&5
1727 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1728 if test "${ac_cv_build+set}" = set; then
1729 echo $ECHO_N "(cached) $ECHO_C" >&6
1731 ac_cv_build_alias=$build_alias
1732 test -z "$ac_cv_build_alias" &&
1733 ac_cv_build_alias=`$ac_config_guess`
1734 test -z "$ac_cv_build_alias" &&
1735 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1736 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1737 { (exit 1); exit 1; }; }
1738 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1739 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1740 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1741 { (exit 1); exit 1; }; }
1744 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1745 echo "${ECHO_T}$ac_cv_build" >&6
1747 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1748 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1749 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1752 echo "$as_me:$LINENO: checking host system type" >&5
1753 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1754 if test "${ac_cv_host+set}" = set; then
1755 echo $ECHO_N "(cached) $ECHO_C" >&6
1757 ac_cv_host_alias=$host_alias
1758 test -z "$ac_cv_host_alias" &&
1759 ac_cv_host_alias=$ac_cv_build_alias
1760 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1761 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1762 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1763 { (exit 1); exit 1; }; }
1766 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1767 echo "${ECHO_T}$ac_cv_host" >&6
1769 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1770 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1771 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1775 echo "$as_me:$LINENO: checking for prefix" >&5
1776 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1777 if test x$prefix = xNONE; then
1778 mutt_cv_prefix=$ac_default_prefix
1780 mutt_cv_prefix=$prefix
1782 echo "$as_me:$LINENO: result: $mutt_cv_prefix" >&5
1783 echo "${ECHO_T}$mutt_cv_prefix" >&6
1786 ac_cpp='$CPP $CPPFLAGS'
1787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1790 if test -n "$ac_tool_prefix"; then
1791 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1792 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1793 echo "$as_me:$LINENO: checking for $ac_word" >&5
1794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1795 if test "${ac_cv_prog_CC+set}" = set; then
1796 echo $ECHO_N "(cached) $ECHO_C" >&6
1798 if test -n "$CC"; then
1799 ac_cv_prog_CC="$CC" # Let the user override the test.
1801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1805 test -z "$as_dir" && as_dir=.
1806 for ac_exec_ext in '' $ac_executable_extensions; do
1807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1808 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1818 if test -n "$CC"; then
1819 echo "$as_me:$LINENO: result: $CC" >&5
1820 echo "${ECHO_T}$CC" >&6
1822 echo "$as_me:$LINENO: result: no" >&5
1823 echo "${ECHO_T}no" >&6
1827 if test -z "$ac_cv_prog_CC"; then
1829 # Extract the first word of "gcc", so it can be a program name with args.
1830 set dummy gcc; ac_word=$2
1831 echo "$as_me:$LINENO: checking for $ac_word" >&5
1832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1833 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1834 echo $ECHO_N "(cached) $ECHO_C" >&6
1836 if test -n "$ac_ct_CC"; then
1837 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1843 test -z "$as_dir" && as_dir=.
1844 for ac_exec_ext in '' $ac_executable_extensions; do
1845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1846 ac_cv_prog_ac_ct_CC="gcc"
1847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1856 if test -n "$ac_ct_CC"; then
1857 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1858 echo "${ECHO_T}$ac_ct_CC" >&6
1860 echo "$as_me:$LINENO: result: no" >&5
1861 echo "${ECHO_T}no" >&6
1869 if test -z "$CC"; then
1870 if test -n "$ac_tool_prefix"; then
1871 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1872 set dummy ${ac_tool_prefix}cc; ac_word=$2
1873 echo "$as_me:$LINENO: checking for $ac_word" >&5
1874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1875 if test "${ac_cv_prog_CC+set}" = set; then
1876 echo $ECHO_N "(cached) $ECHO_C" >&6
1878 if test -n "$CC"; then
1879 ac_cv_prog_CC="$CC" # Let the user override the test.
1881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 test -z "$as_dir" && as_dir=.
1886 for ac_exec_ext in '' $ac_executable_extensions; do
1887 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1888 ac_cv_prog_CC="${ac_tool_prefix}cc"
1889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1898 if test -n "$CC"; then
1899 echo "$as_me:$LINENO: result: $CC" >&5
1900 echo "${ECHO_T}$CC" >&6
1902 echo "$as_me:$LINENO: result: no" >&5
1903 echo "${ECHO_T}no" >&6
1907 if test -z "$ac_cv_prog_CC"; then
1909 # Extract the first word of "cc", so it can be a program name with args.
1910 set dummy cc; ac_word=$2
1911 echo "$as_me:$LINENO: checking for $ac_word" >&5
1912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1913 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1914 echo $ECHO_N "(cached) $ECHO_C" >&6
1916 if test -n "$ac_ct_CC"; then
1917 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923 test -z "$as_dir" && as_dir=.
1924 for ac_exec_ext in '' $ac_executable_extensions; do
1925 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1926 ac_cv_prog_ac_ct_CC="cc"
1927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1935 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1936 if test -n "$ac_ct_CC"; then
1937 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1938 echo "${ECHO_T}$ac_ct_CC" >&6
1940 echo "$as_me:$LINENO: result: no" >&5
1941 echo "${ECHO_T}no" >&6
1950 if test -z "$CC"; then
1951 # Extract the first word of "cc", so it can be a program name with args.
1952 set dummy cc; ac_word=$2
1953 echo "$as_me:$LINENO: checking for $ac_word" >&5
1954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1955 if test "${ac_cv_prog_CC+set}" = set; then
1956 echo $ECHO_N "(cached) $ECHO_C" >&6
1958 if test -n "$CC"; then
1959 ac_cv_prog_CC="$CC" # Let the user override the test.
1962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1966 test -z "$as_dir" && as_dir=.
1967 for ac_exec_ext in '' $ac_executable_extensions; do
1968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1969 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1970 ac_prog_rejected=yes
1974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1980 if test $ac_prog_rejected = yes; then
1981 # We found a bogon in the path, so make sure we never use it.
1982 set dummy $ac_cv_prog_CC
1984 if test $# != 0; then
1985 # We chose a different compiler from the bogus one.
1986 # However, it has the same basename, so the bogon will be chosen
1987 # first if we set CC to just the basename; use the full file name.
1989 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1995 if test -n "$CC"; then
1996 echo "$as_me:$LINENO: result: $CC" >&5
1997 echo "${ECHO_T}$CC" >&6
1999 echo "$as_me:$LINENO: result: no" >&5
2000 echo "${ECHO_T}no" >&6
2004 if test -z "$CC"; then
2005 if test -n "$ac_tool_prefix"; then
2008 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2009 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2010 echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2012 if test "${ac_cv_prog_CC+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2015 if test -n "$CC"; then
2016 ac_cv_prog_CC="$CC" # Let the user override the test.
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 test -z "$as_dir" && as_dir=.
2023 for ac_exec_ext in '' $ac_executable_extensions; do
2024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2025 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2035 if test -n "$CC"; then
2036 echo "$as_me:$LINENO: result: $CC" >&5
2037 echo "${ECHO_T}$CC" >&6
2039 echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6
2043 test -n "$CC" && break
2046 if test -z "$CC"; then
2050 # Extract the first word of "$ac_prog", so it can be a program name with args.
2051 set dummy $ac_prog; ac_word=$2
2052 echo "$as_me:$LINENO: checking for $ac_word" >&5
2053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2054 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2055 echo $ECHO_N "(cached) $ECHO_C" >&6
2057 if test -n "$ac_ct_CC"; then
2058 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2064 test -z "$as_dir" && as_dir=.
2065 for ac_exec_ext in '' $ac_executable_extensions; do
2066 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2067 ac_cv_prog_ac_ct_CC="$ac_prog"
2068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2076 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2077 if test -n "$ac_ct_CC"; then
2078 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2079 echo "${ECHO_T}$ac_ct_CC" >&6
2081 echo "$as_me:$LINENO: result: no" >&5
2082 echo "${ECHO_T}no" >&6
2085 test -n "$ac_ct_CC" && break
2094 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2095 See \`config.log' for more details." >&5
2096 echo "$as_me: error: no acceptable C compiler found in \$PATH
2097 See \`config.log' for more details." >&2;}
2098 { (exit 1); exit 1; }; }
2100 # Provide some information about the compiler.
2101 echo "$as_me:$LINENO:" \
2102 "checking for C compiler version" >&5
2103 ac_compiler=`set X $ac_compile; echo $2`
2104 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2105 (eval $ac_compiler --version </dev/null >&5) 2>&5
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }
2109 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2110 (eval $ac_compiler -v </dev/null >&5) 2>&5
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); }
2114 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2115 (eval $ac_compiler -V </dev/null >&5) 2>&5
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }
2120 cat >conftest.$ac_ext <<_ACEOF
2121 #line $LINENO "configure"
2124 cat confdefs.h >>conftest.$ac_ext
2125 cat >>conftest.$ac_ext <<_ACEOF
2126 /* end confdefs.h. */
2136 ac_clean_files_save=$ac_clean_files
2137 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2138 # Try to create an executable without -o first, disregard a.out.
2139 # It will help us diagnose broken compilers, and finding out an intuition
2141 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2142 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2143 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2144 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2145 (eval $ac_link_default) 2>&5
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }; then
2149 # Find the output, starting from the most likely. This scheme is
2150 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2153 # Be careful to initialize this variable, since it used to be cached.
2154 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2156 # b.out is created by i960 compilers.
2157 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2159 test -f "$ac_file" || continue
2161 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2164 # This is the source file.
2167 # We found the default executable, but exeext='' is most
2171 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2172 # FIXME: I believe we export ac_cv_exeext for Libtool,
2173 # but it would be cool to find out if it's true. Does anybody
2174 # maintain Libtool? --akim.
2182 echo "$as_me: failed program was:" >&5
2183 sed 's/^/| /' conftest.$ac_ext >&5
2185 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2186 See \`config.log' for more details." >&5
2187 echo "$as_me: error: C compiler cannot create executables
2188 See \`config.log' for more details." >&2;}
2189 { (exit 77); exit 77; }; }
2192 ac_exeext=$ac_cv_exeext
2193 echo "$as_me:$LINENO: result: $ac_file" >&5
2194 echo "${ECHO_T}$ac_file" >&6
2196 # Check the compiler produces executables we can run. If not, either
2197 # the compiler is broken, or we cross compile.
2198 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2199 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2200 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2201 # If not cross compiling, check that we can run a simple program.
2202 if test "$cross_compiling" != yes; then
2203 if { ac_try='./$ac_file'
2204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; }; then
2211 if test "$cross_compiling" = maybe; then
2214 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2215 If you meant to cross compile, use \`--host'.
2216 See \`config.log' for more details." >&5
2217 echo "$as_me: error: cannot run C compiled programs.
2218 If you meant to cross compile, use \`--host'.
2219 See \`config.log' for more details." >&2;}
2220 { (exit 1); exit 1; }; }
2224 echo "$as_me:$LINENO: result: yes" >&5
2225 echo "${ECHO_T}yes" >&6
2227 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2228 ac_clean_files=$ac_clean_files_save
2229 # Check the compiler produces executables we can run. If not, either
2230 # the compiler is broken, or we cross compile.
2231 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2232 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2233 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2234 echo "${ECHO_T}$cross_compiling" >&6
2236 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2237 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2239 (eval $ac_link) 2>&5
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); }; then
2243 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2244 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2245 # work properly (i.e., refer to `conftest.exe'), while it won't with
2247 for ac_file in conftest.exe conftest conftest.*; do
2248 test -f "$ac_file" || continue
2250 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2251 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2258 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2259 See \`config.log' for more details." >&5
2260 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2261 See \`config.log' for more details." >&2;}
2262 { (exit 1); exit 1; }; }
2265 rm -f conftest$ac_cv_exeext
2266 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2267 echo "${ECHO_T}$ac_cv_exeext" >&6
2269 rm -f conftest.$ac_ext
2270 EXEEXT=$ac_cv_exeext
2272 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2273 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2274 if test "${ac_cv_objext+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
2277 cat >conftest.$ac_ext <<_ACEOF
2278 #line $LINENO "configure"
2281 cat confdefs.h >>conftest.$ac_ext
2282 cat >>conftest.$ac_ext <<_ACEOF
2283 /* end confdefs.h. */
2293 rm -f conftest.o conftest.obj
2294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2295 (eval $ac_compile) 2>&5
2297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298 (exit $ac_status); }; then
2299 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2301 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2302 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2307 echo "$as_me: failed program was:" >&5
2308 sed 's/^/| /' conftest.$ac_ext >&5
2310 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2311 See \`config.log' for more details." >&5
2312 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2313 See \`config.log' for more details." >&2;}
2314 { (exit 1); exit 1; }; }
2317 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2319 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2320 echo "${ECHO_T}$ac_cv_objext" >&6
2321 OBJEXT=$ac_cv_objext
2323 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2324 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2325 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2326 echo $ECHO_N "(cached) $ECHO_C" >&6
2328 cat >conftest.$ac_ext <<_ACEOF
2329 #line $LINENO "configure"
2332 cat confdefs.h >>conftest.$ac_ext
2333 cat >>conftest.$ac_ext <<_ACEOF
2334 /* end confdefs.h. */
2347 rm -f conftest.$ac_objext
2348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2349 (eval $ac_compile) 2>&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); } &&
2353 { ac_try='test -s conftest.$ac_objext'
2354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }; }; then
2361 echo "$as_me: failed program was:" >&5
2362 sed 's/^/| /' conftest.$ac_ext >&5
2366 rm -f conftest.$ac_objext conftest.$ac_ext
2367 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2370 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2371 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2372 GCC=`test $ac_compiler_gnu = yes && echo yes`
2373 ac_test_CFLAGS=${CFLAGS+set}
2374 ac_save_CFLAGS=$CFLAGS
2376 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2377 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2378 if test "${ac_cv_prog_cc_g+set}" = set; then
2379 echo $ECHO_N "(cached) $ECHO_C" >&6
2381 cat >conftest.$ac_ext <<_ACEOF
2382 #line $LINENO "configure"
2385 cat confdefs.h >>conftest.$ac_ext
2386 cat >>conftest.$ac_ext <<_ACEOF
2387 /* end confdefs.h. */
2397 rm -f conftest.$ac_objext
2398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399 (eval $ac_compile) 2>&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); } &&
2403 { ac_try='test -s conftest.$ac_objext'
2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; }; then
2411 echo "$as_me: failed program was:" >&5
2412 sed 's/^/| /' conftest.$ac_ext >&5
2416 rm -f conftest.$ac_objext conftest.$ac_ext
2418 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2419 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2420 if test "$ac_test_CFLAGS" = set; then
2421 CFLAGS=$ac_save_CFLAGS
2422 elif test $ac_cv_prog_cc_g = yes; then
2423 if test "$GCC" = yes; then
2429 if test "$GCC" = yes; then
2435 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2436 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2437 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
2440 ac_cv_prog_cc_stdc=no
2442 cat >conftest.$ac_ext <<_ACEOF
2443 #line $LINENO "configure"
2446 cat confdefs.h >>conftest.$ac_ext
2447 cat >>conftest.$ac_ext <<_ACEOF
2448 /* end confdefs.h. */
2451 #include <sys/types.h>
2452 #include <sys/stat.h>
2453 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2454 struct buf { int x; };
2455 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2456 static char *e (p, i)
2462 static char *f (char * (*g) (char **, int), char **p, ...)
2467 s = g (p, va_arg (v,int));
2471 int test (int i, double x);
2472 struct s1 {int (*f) (int a);};
2473 struct s2 {int (*f) (double a);};
2474 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2480 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2485 # Don't try gcc -ansi; that turns off useful extensions and
2486 # breaks some systems' header files.
2487 # AIX -qlanglvl=ansi
2488 # Ultrix and OSF/1 -std1
2489 # HP-UX 10.20 and later -Ae
2490 # HP-UX older versions -Aa -D_HPUX_SOURCE
2491 # SVR4 -Xc -D__EXTENSIONS__
2492 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2494 CC="$ac_save_CC $ac_arg"
2495 rm -f conftest.$ac_objext
2496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2497 (eval $ac_compile) 2>&5
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); } &&
2501 { ac_try='test -s conftest.$ac_objext'
2502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506 (exit $ac_status); }; }; then
2507 ac_cv_prog_cc_stdc=$ac_arg
2510 echo "$as_me: failed program was:" >&5
2511 sed 's/^/| /' conftest.$ac_ext >&5
2514 rm -f conftest.$ac_objext
2516 rm -f conftest.$ac_ext conftest.$ac_objext
2521 case "x$ac_cv_prog_cc_stdc" in
2523 echo "$as_me:$LINENO: result: none needed" >&5
2524 echo "${ECHO_T}none needed" >&6 ;;
2526 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2527 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2528 CC="$CC $ac_cv_prog_cc_stdc" ;;
2531 # Some people use a C++ compiler to compile C. Since we use `exit',
2532 # in C++ we need to declare it. In case someone uses the same compiler
2533 # for both compiling C and C++ we need to have the C++ compiler decide
2534 # the declaration of exit, since it's the most demanding environment.
2535 cat >conftest.$ac_ext <<_ACEOF
2540 rm -f conftest.$ac_objext
2541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2542 (eval $ac_compile) 2>&5
2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2545 (exit $ac_status); } &&
2546 { ac_try='test -s conftest.$ac_objext'
2547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); }; }; then
2552 for ac_declaration in \
2554 '#include <stdlib.h>' \
2555 'extern "C" void std::exit (int) throw (); using std::exit;' \
2556 'extern "C" void std::exit (int); using std::exit;' \
2557 'extern "C" void exit (int) throw ();' \
2558 'extern "C" void exit (int);' \
2561 cat >conftest.$ac_ext <<_ACEOF
2562 #line $LINENO "configure"
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h. */
2578 rm -f conftest.$ac_objext
2579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2580 (eval $ac_compile) 2>&5
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); } &&
2584 { ac_try='test -s conftest.$ac_objext'
2585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }; }; then
2592 echo "$as_me: failed program was:" >&5
2593 sed 's/^/| /' conftest.$ac_ext >&5
2597 rm -f conftest.$ac_objext conftest.$ac_ext
2598 cat >conftest.$ac_ext <<_ACEOF
2599 #line $LINENO "configure"
2602 cat confdefs.h >>conftest.$ac_ext
2603 cat >>conftest.$ac_ext <<_ACEOF
2604 /* end confdefs.h. */
2614 rm -f conftest.$ac_objext
2615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2616 (eval $ac_compile) 2>&5
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); } &&
2620 { ac_try='test -s conftest.$ac_objext'
2621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); }; }; then
2628 echo "$as_me: failed program was:" >&5
2629 sed 's/^/| /' conftest.$ac_ext >&5
2632 rm -f conftest.$ac_objext conftest.$ac_ext
2635 if test -n "$ac_declaration"; then
2636 echo '#ifdef __cplusplus' >>confdefs.h
2637 echo $ac_declaration >>confdefs.h
2638 echo '#endif' >>confdefs.h
2642 echo "$as_me: failed program was:" >&5
2643 sed 's/^/| /' conftest.$ac_ext >&5
2646 rm -f conftest.$ac_objext conftest.$ac_ext
2648 ac_cpp='$CPP $CPPFLAGS'
2649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2652 DEPDIR="${am__leading_dot}deps"
2654 ac_config_commands="$ac_config_commands depfiles"
2657 am_make=${MAKE-make}
2658 cat > confinc << 'END'
2663 # If we don't find an include directive, just comment out the code.
2664 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2665 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2669 # First try GNU make style include.
2670 echo "include confinc" > confmf
2671 # We grep out `Entering directory' and `Leaving directory'
2672 # messages which can occur if `w' ends up in MAKEFLAGS.
2673 # In particular we don't look at `^make:' because GNU make might
2674 # be invoked under some other name (usually "gmake"), in which
2675 # case it prints its new name instead of `make'.
2676 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2681 # Now try BSD make style include.
2682 if test "$am__include" = "#"; then
2683 echo '.include "confinc"' > confmf
2684 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2685 am__include=.include
2692 echo "$as_me:$LINENO: result: $_am_result" >&5
2693 echo "${ECHO_T}$_am_result" >&6
2694 rm -f confinc confmf
2696 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2697 if test "${enable_dependency_tracking+set}" = set; then
2698 enableval="$enable_dependency_tracking"
2701 if test "x$enable_dependency_tracking" != xno; then
2702 am_depcomp="$ac_aux_dir/depcomp"
2707 if test "x$enable_dependency_tracking" != xno; then
2718 depcc="$CC" am_compiler_list=
2720 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2721 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2722 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2723 echo $ECHO_N "(cached) $ECHO_C" >&6
2725 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2726 # We make a subdir and do the tests there. Otherwise we can end up
2727 # making bogus files that we don't know about and never remove. For
2728 # instance it was reported that on HP-UX the gcc test will end up
2729 # making a dummy file named `D' -- because `-MD' means `put the output
2732 # Copy depcomp to subdir because otherwise we won't find it if we're
2733 # using a relative directory.
2734 cp "$am_depcomp" conftest.dir
2736 # We will build objects and dependencies in a subdirectory because
2737 # it helps to detect inapplicable dependency modes. For instance
2738 # both Tru64's cc and ICC support -MD to output dependencies as a
2739 # side effect of compilation, but ICC will put the dependencies in
2740 # the current directory while Tru64 will put them in the object
2744 am_cv_CC_dependencies_compiler_type=none
2745 if test "$am_compiler_list" = ""; then
2746 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2748 for depmode in $am_compiler_list; do
2749 # Setup a source with many dependencies, because some compilers
2750 # like to wrap large dependency lists on column 80 (with \), and
2751 # we should not choose a depcomp mode which is confused by this.
2753 # We need to recreate these files for each test, as the compiler may
2754 # overwrite some of them when testing with obscure command lines.
2755 # This happens at least with the AIX C compiler.
2757 for i in 1 2 3 4 5 6; do
2758 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2761 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2765 # after this tag, mechanisms are not by side-effect, so they'll
2766 # only be used when explicitly requested
2767 if test "x$enable_dependency_tracking" = xyes; then
2775 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2776 # mode. It turns out that the SunPro C++ compiler does not properly
2777 # handle `-M -o', and we need to detect this.
2778 if depmode=$depmode \
2779 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2780 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2781 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2782 >/dev/null 2>conftest.err &&
2783 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2784 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2785 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2786 # icc doesn't choke on unknown options, it will just issue warnings
2787 # (even with -Werror). So we grep stderr for any message
2788 # that says an option was ignored.
2789 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2790 am_cv_CC_dependencies_compiler_type=$depmode
2799 am_cv_CC_dependencies_compiler_type=none
2803 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2804 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2805 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2810 test "x$enable_dependency_tracking" != xno \
2811 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2813 am__fastdepCC_FALSE='#'
2815 am__fastdepCC_TRUE='#'
2816 am__fastdepCC_FALSE=
2822 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2823 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2824 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2825 echo $ECHO_N "(cached) $ECHO_C" >&6
2827 ac_check_lib_save_LIBS=$LIBS
2828 LIBS="-lcposix $LIBS"
2829 cat >conftest.$ac_ext <<_ACEOF
2830 #line $LINENO "configure"
2833 cat confdefs.h >>conftest.$ac_ext
2834 cat >>conftest.$ac_ext <<_ACEOF
2835 /* end confdefs.h. */
2837 /* Override any gcc2 internal prototype to avoid an error. */
2841 /* We use char because int might match the return type of a gcc2
2842 builtin and then its argument prototype would still apply. */
2852 rm -f conftest.$ac_objext conftest$ac_exeext
2853 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2854 (eval $ac_link) 2>&5
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); } &&
2858 { ac_try='test -s conftest$ac_exeext'
2859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); }; }; then
2864 ac_cv_lib_cposix_strerror=yes
2866 echo "$as_me: failed program was:" >&5
2867 sed 's/^/| /' conftest.$ac_ext >&5
2869 ac_cv_lib_cposix_strerror=no
2871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2872 LIBS=$ac_check_lib_save_LIBS
2874 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2875 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2876 if test $ac_cv_lib_cposix_strerror = yes; then
2877 LIBS="$LIBS -lcposix"
2885 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2886 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2887 if test "${am_cv_prog_cc_stdc+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 am_cv_prog_cc_stdc=no
2892 # Don't try gcc -ansi; that turns off useful extensions and
2893 # breaks some systems' header files.
2894 # AIX -qlanglvl=ansi
2895 # Ultrix and OSF/1 -std1
2896 # HP-UX 10.20 and later -Ae
2897 # HP-UX older versions -Aa -D_HPUX_SOURCE
2898 # SVR4 -Xc -D__EXTENSIONS__
2899 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2901 CC="$ac_save_CC $ac_arg"
2902 cat >conftest.$ac_ext <<_ACEOF
2903 #line $LINENO "configure"
2906 cat confdefs.h >>conftest.$ac_ext
2907 cat >>conftest.$ac_ext <<_ACEOF
2908 /* end confdefs.h. */
2911 #include <sys/types.h>
2912 #include <sys/stat.h>
2913 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2914 struct buf { int x; };
2915 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2916 static char *e (p, i)
2922 static char *f (char * (*g) (char **, int), char **p, ...)
2927 s = g (p, va_arg (v,int));
2931 int test (int i, double x);
2932 struct s1 {int (*f) (int a);};
2933 struct s2 {int (*f) (double a);};
2934 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2942 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2948 rm -f conftest.$ac_objext
2949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2950 (eval $ac_compile) 2>&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); } &&
2954 { ac_try='test -s conftest.$ac_objext'
2955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }; }; then
2960 am_cv_prog_cc_stdc="$ac_arg"; break
2962 echo "$as_me: failed program was:" >&5
2963 sed 's/^/| /' conftest.$ac_ext >&5
2966 rm -f conftest.$ac_objext conftest.$ac_ext
2972 if test -z "$am_cv_prog_cc_stdc"; then
2973 echo "$as_me:$LINENO: result: none needed" >&5
2974 echo "${ECHO_T}none needed" >&6
2976 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2977 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2979 case "x$am_cv_prog_cc_stdc" in
2981 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2985 ac_cpp='$CPP $CPPFLAGS'
2986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2989 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2990 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2991 # On Suns, sometimes $CPP names a directory.
2992 if test -n "$CPP" && test -d "$CPP"; then
2995 if test -z "$CPP"; then
2996 if test "${ac_cv_prog_CPP+set}" = set; then
2997 echo $ECHO_N "(cached) $ECHO_C" >&6
2999 # Double quotes because CPP needs to be expanded
3000 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3003 for ac_c_preproc_warn_flag in '' yes
3005 # Use a header file that comes with gcc, so configuring glibc
3006 # with a fresh cross-compiler works.
3007 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3008 # <limits.h> exists even on freestanding compilers.
3009 # On the NeXT, cc -E runs the code through the compiler's parser,
3010 # not just through cpp. "Syntax error" is here to catch this case.
3011 cat >conftest.$ac_ext <<_ACEOF
3012 #line $LINENO "configure"
3015 cat confdefs.h >>conftest.$ac_ext
3016 cat >>conftest.$ac_ext <<_ACEOF
3017 /* end confdefs.h. */
3019 # include <limits.h>
3021 # include <assert.h>
3025 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3026 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3028 grep -v '^ *+' conftest.er1 >conftest.err
3030 cat conftest.err >&5
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); } >/dev/null; then
3033 if test -s conftest.err; then
3034 ac_cpp_err=$ac_c_preproc_warn_flag
3041 if test -z "$ac_cpp_err"; then
3044 echo "$as_me: failed program was:" >&5
3045 sed 's/^/| /' conftest.$ac_ext >&5
3047 # Broken: fails on valid input.
3050 rm -f conftest.err conftest.$ac_ext
3052 # OK, works on sane cases. Now check whether non-existent headers
3053 # can be detected and how.
3054 cat >conftest.$ac_ext <<_ACEOF
3055 #line $LINENO "configure"
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h. */
3061 #include <ac_nonexistent.h>
3063 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3064 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3066 grep -v '^ *+' conftest.er1 >conftest.err
3068 cat conftest.err >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } >/dev/null; then
3071 if test -s conftest.err; then
3072 ac_cpp_err=$ac_c_preproc_warn_flag
3079 if test -z "$ac_cpp_err"; then
3080 # Broken: success on invalid input.
3083 echo "$as_me: failed program was:" >&5
3084 sed 's/^/| /' conftest.$ac_ext >&5
3086 # Passes both tests.
3090 rm -f conftest.err conftest.$ac_ext
3093 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3094 rm -f conftest.err conftest.$ac_ext
3095 if $ac_preproc_ok; then
3107 echo "$as_me:$LINENO: result: $CPP" >&5
3108 echo "${ECHO_T}$CPP" >&6
3110 for ac_c_preproc_warn_flag in '' yes
3112 # Use a header file that comes with gcc, so configuring glibc
3113 # with a fresh cross-compiler works.
3114 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3115 # <limits.h> exists even on freestanding compilers.
3116 # On the NeXT, cc -E runs the code through the compiler's parser,
3117 # not just through cpp. "Syntax error" is here to catch this case.
3118 cat >conftest.$ac_ext <<_ACEOF
3119 #line $LINENO "configure"
3122 cat confdefs.h >>conftest.$ac_ext
3123 cat >>conftest.$ac_ext <<_ACEOF
3124 /* end confdefs.h. */
3126 # include <limits.h>
3128 # include <assert.h>
3132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3135 grep -v '^ *+' conftest.er1 >conftest.err
3137 cat conftest.err >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } >/dev/null; then
3140 if test -s conftest.err; then
3141 ac_cpp_err=$ac_c_preproc_warn_flag
3148 if test -z "$ac_cpp_err"; then
3151 echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3154 # Broken: fails on valid input.
3157 rm -f conftest.err conftest.$ac_ext
3159 # OK, works on sane cases. Now check whether non-existent headers
3160 # can be detected and how.
3161 cat >conftest.$ac_ext <<_ACEOF
3162 #line $LINENO "configure"
3165 cat confdefs.h >>conftest.$ac_ext
3166 cat >>conftest.$ac_ext <<_ACEOF
3167 /* end confdefs.h. */
3168 #include <ac_nonexistent.h>
3170 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3171 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3173 grep -v '^ *+' conftest.er1 >conftest.err
3175 cat conftest.err >&5
3176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3177 (exit $ac_status); } >/dev/null; then
3178 if test -s conftest.err; then
3179 ac_cpp_err=$ac_c_preproc_warn_flag
3186 if test -z "$ac_cpp_err"; then
3187 # Broken: success on invalid input.
3190 echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3193 # Passes both tests.
3197 rm -f conftest.err conftest.$ac_ext
3200 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3201 rm -f conftest.err conftest.$ac_ext
3202 if $ac_preproc_ok; then
3205 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3206 See \`config.log' for more details." >&5
3207 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3208 See \`config.log' for more details." >&2;}
3209 { (exit 1); exit 1; }; }
3213 ac_cpp='$CPP $CPPFLAGS'
3214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3219 echo "$as_me:$LINENO: checking for egrep" >&5
3220 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3221 if test "${ac_cv_prog_egrep+set}" = set; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3224 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3225 then ac_cv_prog_egrep='grep -E'
3226 else ac_cv_prog_egrep='egrep'
3229 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3230 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3231 EGREP=$ac_cv_prog_egrep
3234 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3244 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3245 inttypes.h stdint.h unistd.h
3247 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3248 echo "$as_me:$LINENO: checking for $ac_header" >&5
3249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3251 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 cat >conftest.$ac_ext <<_ACEOF
3254 #line $LINENO "configure"
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h. */
3260 $ac_includes_default
3262 #include <$ac_header>
3264 rm -f conftest.$ac_objext
3265 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3266 (eval $ac_compile) 2>&5
3268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269 (exit $ac_status); } &&
3270 { ac_try='test -s conftest.$ac_objext'
3271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275 (exit $ac_status); }; }; then
3276 eval "$as_ac_Header=yes"
3278 echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3281 eval "$as_ac_Header=no"
3283 rm -f conftest.$ac_objext conftest.$ac_ext
3285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3286 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3288 cat >>confdefs.h <<_ACEOF
3289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3299 echo "$as_me:$LINENO: checking for function prototypes" >&5
3300 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3301 if test "$am_cv_prog_cc_stdc" != no; then
3302 echo "$as_me:$LINENO: result: yes" >&5
3303 echo "${ECHO_T}yes" >&6
3305 cat >>confdefs.h <<\_ACEOF
3306 #define PROTOTYPES 1
3311 echo "$as_me:$LINENO: result: no" >&5
3312 echo "${ECHO_T}no" >&6
3313 U=_ ANSI2KNR=./ansi2knr
3315 # Ensure some checks needed by ansi2knr itself.
3316 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3317 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3318 if test "${ac_cv_header_stdc+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 cat >conftest.$ac_ext <<_ACEOF
3322 #line $LINENO "configure"
3325 cat confdefs.h >>conftest.$ac_ext
3326 cat >>conftest.$ac_ext <<_ACEOF
3327 /* end confdefs.h. */
3341 rm -f conftest.$ac_objext
3342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3343 (eval $ac_compile) 2>&5
3345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346 (exit $ac_status); } &&
3347 { ac_try='test -s conftest.$ac_objext'
3348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }; }; then
3353 ac_cv_header_stdc=yes
3355 echo "$as_me: failed program was:" >&5
3356 sed 's/^/| /' conftest.$ac_ext >&5
3358 ac_cv_header_stdc=no
3360 rm -f conftest.$ac_objext conftest.$ac_ext
3362 if test $ac_cv_header_stdc = yes; then
3363 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3364 cat >conftest.$ac_ext <<_ACEOF
3365 #line $LINENO "configure"
3368 cat confdefs.h >>conftest.$ac_ext
3369 cat >>conftest.$ac_ext <<_ACEOF
3370 /* end confdefs.h. */
3374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3375 $EGREP "memchr" >/dev/null 2>&1; then
3378 ac_cv_header_stdc=no
3384 if test $ac_cv_header_stdc = yes; then
3385 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3386 cat >conftest.$ac_ext <<_ACEOF
3387 #line $LINENO "configure"
3390 cat confdefs.h >>conftest.$ac_ext
3391 cat >>conftest.$ac_ext <<_ACEOF
3392 /* end confdefs.h. */
3396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3397 $EGREP "free" >/dev/null 2>&1; then
3400 ac_cv_header_stdc=no
3406 if test $ac_cv_header_stdc = yes; then
3407 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3408 if test "$cross_compiling" = yes; then
3411 cat >conftest.$ac_ext <<_ACEOF
3412 #line $LINENO "configure"
3415 cat confdefs.h >>conftest.$ac_ext
3416 cat >>conftest.$ac_ext <<_ACEOF
3417 /* end confdefs.h. */
3419 #if ((' ' & 0x0FF) == 0x020)
3420 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3421 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3423 # define ISLOWER(c) \
3424 (('a' <= (c) && (c) <= 'i') \
3425 || ('j' <= (c) && (c) <= 'r') \
3426 || ('s' <= (c) && (c) <= 'z'))
3427 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3430 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3435 for (i = 0; i < 256; i++)
3436 if (XOR (islower (i), ISLOWER (i))
3437 || toupper (i) != TOUPPER (i))
3442 rm -f conftest$ac_exeext
3443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3444 (eval $ac_link) 2>&5
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); }; }; then
3455 echo "$as_me: program exited with status $ac_status" >&5
3456 echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3460 ac_cv_header_stdc=no
3462 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3466 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3467 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3468 if test $ac_cv_header_stdc = yes; then
3470 cat >>confdefs.h <<\_ACEOF
3471 #define STDC_HEADERS 1
3477 for ac_header in string.h
3479 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3481 echo "$as_me:$LINENO: checking for $ac_header" >&5
3482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3484 echo $ECHO_N "(cached) $ECHO_C" >&6
3486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3489 # Is the header compilable?
3490 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3491 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3492 cat >conftest.$ac_ext <<_ACEOF
3493 #line $LINENO "configure"
3496 cat confdefs.h >>conftest.$ac_ext
3497 cat >>conftest.$ac_ext <<_ACEOF
3498 /* end confdefs.h. */
3499 $ac_includes_default
3500 #include <$ac_header>
3502 rm -f conftest.$ac_objext
3503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3504 (eval $ac_compile) 2>&5
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); } &&
3508 { ac_try='test -s conftest.$ac_objext'
3509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513 (exit $ac_status); }; }; then
3514 ac_header_compiler=yes
3516 echo "$as_me: failed program was:" >&5
3517 sed 's/^/| /' conftest.$ac_ext >&5
3519 ac_header_compiler=no
3521 rm -f conftest.$ac_objext conftest.$ac_ext
3522 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3523 echo "${ECHO_T}$ac_header_compiler" >&6
3525 # Is the header present?
3526 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3527 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3528 cat >conftest.$ac_ext <<_ACEOF
3529 #line $LINENO "configure"
3532 cat confdefs.h >>conftest.$ac_ext
3533 cat >>conftest.$ac_ext <<_ACEOF
3534 /* end confdefs.h. */
3535 #include <$ac_header>
3537 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3538 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3540 grep -v '^ *+' conftest.er1 >conftest.err
3542 cat conftest.err >&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); } >/dev/null; then
3545 if test -s conftest.err; then
3546 ac_cpp_err=$ac_c_preproc_warn_flag
3553 if test -z "$ac_cpp_err"; then
3554 ac_header_preproc=yes
3556 echo "$as_me: failed program was:" >&5
3557 sed 's/^/| /' conftest.$ac_ext >&5
3559 ac_header_preproc=no
3561 rm -f conftest.err conftest.$ac_ext
3562 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3563 echo "${ECHO_T}$ac_header_preproc" >&6
3565 # So? What about this header?
3566 case $ac_header_compiler:$ac_header_preproc in
3568 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3569 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3571 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3574 ## ------------------------------------ ##
3575 ## Report this to bug-autoconf@gnu.org. ##
3576 ## ------------------------------------ ##
3579 sed "s/^/$as_me: WARNING: /" >&2
3582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3590 ## ------------------------------------ ##
3591 ## Report this to bug-autoconf@gnu.org. ##
3592 ## ------------------------------------ ##
3595 sed "s/^/$as_me: WARNING: /" >&2
3598 echo "$as_me:$LINENO: checking for $ac_header" >&5
3599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3601 echo $ECHO_N "(cached) $ECHO_C" >&6
3603 eval "$as_ac_Header=$ac_header_preproc"
3605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3606 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3610 cat >>confdefs.h <<_ACEOF
3611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3619 if test "x$U" != "x"; then
3620 { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
3621 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
3622 { (exit 1); exit 1; }; }
3625 ac_cpp='$CPP $CPPFLAGS'
3626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3629 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3630 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3631 # On Suns, sometimes $CPP names a directory.
3632 if test -n "$CPP" && test -d "$CPP"; then
3635 if test -z "$CPP"; then
3636 if test "${ac_cv_prog_CPP+set}" = set; then
3637 echo $ECHO_N "(cached) $ECHO_C" >&6
3639 # Double quotes because CPP needs to be expanded
3640 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3643 for ac_c_preproc_warn_flag in '' yes
3645 # Use a header file that comes with gcc, so configuring glibc
3646 # with a fresh cross-compiler works.
3647 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3648 # <limits.h> exists even on freestanding compilers.
3649 # On the NeXT, cc -E runs the code through the compiler's parser,
3650 # not just through cpp. "Syntax error" is here to catch this case.
3651 cat >conftest.$ac_ext <<_ACEOF
3652 #line $LINENO "configure"
3655 cat confdefs.h >>conftest.$ac_ext
3656 cat >>conftest.$ac_ext <<_ACEOF
3657 /* end confdefs.h. */
3659 # include <limits.h>
3661 # include <assert.h>
3665 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3666 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3668 grep -v '^ *+' conftest.er1 >conftest.err
3670 cat conftest.err >&5
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); } >/dev/null; then
3673 if test -s conftest.err; then
3674 ac_cpp_err=$ac_c_preproc_warn_flag
3681 if test -z "$ac_cpp_err"; then
3684 echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3687 # Broken: fails on valid input.
3690 rm -f conftest.err conftest.$ac_ext
3692 # OK, works on sane cases. Now check whether non-existent headers
3693 # can be detected and how.
3694 cat >conftest.$ac_ext <<_ACEOF
3695 #line $LINENO "configure"
3698 cat confdefs.h >>conftest.$ac_ext
3699 cat >>conftest.$ac_ext <<_ACEOF
3700 /* end confdefs.h. */
3701 #include <ac_nonexistent.h>
3703 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3704 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3706 grep -v '^ *+' conftest.er1 >conftest.err
3708 cat conftest.err >&5
3709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710 (exit $ac_status); } >/dev/null; then
3711 if test -s conftest.err; then
3712 ac_cpp_err=$ac_c_preproc_warn_flag
3719 if test -z "$ac_cpp_err"; then
3720 # Broken: success on invalid input.
3723 echo "$as_me: failed program was:" >&5
3724 sed 's/^/| /' conftest.$ac_ext >&5
3726 # Passes both tests.
3730 rm -f conftest.err conftest.$ac_ext
3733 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3734 rm -f conftest.err conftest.$ac_ext
3735 if $ac_preproc_ok; then
3747 echo "$as_me:$LINENO: result: $CPP" >&5
3748 echo "${ECHO_T}$CPP" >&6
3750 for ac_c_preproc_warn_flag in '' yes
3752 # Use a header file that comes with gcc, so configuring glibc
3753 # with a fresh cross-compiler works.
3754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3755 # <limits.h> exists even on freestanding compilers.
3756 # On the NeXT, cc -E runs the code through the compiler's parser,
3757 # not just through cpp. "Syntax error" is here to catch this case.
3758 cat >conftest.$ac_ext <<_ACEOF
3759 #line $LINENO "configure"
3762 cat confdefs.h >>conftest.$ac_ext
3763 cat >>conftest.$ac_ext <<_ACEOF
3764 /* end confdefs.h. */
3766 # include <limits.h>
3768 # include <assert.h>
3772 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3773 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3775 grep -v '^ *+' conftest.er1 >conftest.err
3777 cat conftest.err >&5
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); } >/dev/null; then
3780 if test -s conftest.err; then
3781 ac_cpp_err=$ac_c_preproc_warn_flag
3788 if test -z "$ac_cpp_err"; then
3791 echo "$as_me: failed program was:" >&5
3792 sed 's/^/| /' conftest.$ac_ext >&5
3794 # Broken: fails on valid input.
3797 rm -f conftest.err conftest.$ac_ext
3799 # OK, works on sane cases. Now check whether non-existent headers
3800 # can be detected and how.
3801 cat >conftest.$ac_ext <<_ACEOF
3802 #line $LINENO "configure"
3805 cat confdefs.h >>conftest.$ac_ext
3806 cat >>conftest.$ac_ext <<_ACEOF
3807 /* end confdefs.h. */
3808 #include <ac_nonexistent.h>
3810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3813 grep -v '^ *+' conftest.er1 >conftest.err
3815 cat conftest.err >&5
3816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817 (exit $ac_status); } >/dev/null; then
3818 if test -s conftest.err; then
3819 ac_cpp_err=$ac_c_preproc_warn_flag
3826 if test -z "$ac_cpp_err"; then
3827 # Broken: success on invalid input.
3830 echo "$as_me: failed program was:" >&5
3831 sed 's/^/| /' conftest.$ac_ext >&5
3833 # Passes both tests.
3837 rm -f conftest.err conftest.$ac_ext
3840 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3841 rm -f conftest.err conftest.$ac_ext
3842 if $ac_preproc_ok; then
3845 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3846 See \`config.log' for more details." >&5
3847 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3848 See \`config.log' for more details." >&2;}
3849 { (exit 1); exit 1; }; }
3853 ac_cpp='$CPP $CPPFLAGS'
3854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3858 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3859 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3860 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3861 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3864 cat >conftest.make <<\_ACEOF
3866 @echo 'ac_maketemp="$(MAKE)"'
3868 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3869 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3870 if test -n "$ac_maketemp"; then
3871 eval ac_cv_prog_make_${ac_make}_set=yes
3873 eval ac_cv_prog_make_${ac_make}_set=no
3877 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3878 echo "$as_me:$LINENO: result: yes" >&5
3879 echo "${ECHO_T}yes" >&6
3882 echo "$as_me:$LINENO: result: no" >&5
3883 echo "${ECHO_T}no" >&6
3884 SET_MAKE="MAKE=${MAKE-make}"
3887 # Find a good install program. We prefer a C program (faster),
3888 # so one script is as good as another. But avoid the broken or
3889 # incompatible versions:
3890 # SysV /etc/install, /usr/sbin/install
3891 # SunOS /usr/etc/install
3892 # IRIX /sbin/install
3894 # AmigaOS /C/install, which installs bootblocks on floppy discs
3895 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3896 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3897 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3898 # ./install, which can be erroneously created by make from ./install.sh.
3899 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3900 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3901 if test -z "$INSTALL"; then
3902 if test "${ac_cv_path_install+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 test -z "$as_dir" && as_dir=.
3910 # Account for people who put trailing slashes in PATH elements.
3912 ./ | .// | /cC/* | \
3913 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3916 # OSF1 and SCO ODT 3.0 have their own names for install.
3917 # Don't use installbsd from OSF since it installs stuff as root
3919 for ac_prog in ginstall scoinst install; do
3920 for ac_exec_ext in '' $ac_executable_extensions; do
3921 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3922 if test $ac_prog = install &&
3923 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3924 # AIX install. It has an incompatible calling convention.
3926 elif test $ac_prog = install &&
3927 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3928 # program-specific install script used by HP pwplus--don't use.
3931 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3943 if test "${ac_cv_path_install+set}" = set; then
3944 INSTALL=$ac_cv_path_install
3946 # As a last resort, use the slow shell script. We don't cache a
3947 # path for INSTALL within a source directory, because that will
3948 # break other packages using the cache if that directory is
3949 # removed, or if the path is relative.
3950 INSTALL=$ac_install_sh
3953 echo "$as_me:$LINENO: result: $INSTALL" >&5
3954 echo "${ECHO_T}$INSTALL" >&6
3956 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3957 # It thinks the first close brace ends the variable substitution.
3958 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3960 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3962 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3964 if test -n "$ac_tool_prefix"; then
3965 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3966 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3967 echo "$as_me:$LINENO: checking for $ac_word" >&5
3968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3969 if test "${ac_cv_prog_RANLIB+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3972 if test -n "$RANLIB"; then
3973 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 test -z "$as_dir" && as_dir=.
3980 for ac_exec_ext in '' $ac_executable_extensions; do
3981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3982 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3991 RANLIB=$ac_cv_prog_RANLIB
3992 if test -n "$RANLIB"; then
3993 echo "$as_me:$LINENO: result: $RANLIB" >&5
3994 echo "${ECHO_T}$RANLIB" >&6
3996 echo "$as_me:$LINENO: result: no" >&5
3997 echo "${ECHO_T}no" >&6
4001 if test -z "$ac_cv_prog_RANLIB"; then
4002 ac_ct_RANLIB=$RANLIB
4003 # Extract the first word of "ranlib", so it can be a program name with args.
4004 set dummy ranlib; ac_word=$2
4005 echo "$as_me:$LINENO: checking for $ac_word" >&5
4006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4007 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4008 echo $ECHO_N "(cached) $ECHO_C" >&6
4010 if test -n "$ac_ct_RANLIB"; then
4011 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017 test -z "$as_dir" && as_dir=.
4018 for ac_exec_ext in '' $ac_executable_extensions; do
4019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4020 ac_cv_prog_ac_ct_RANLIB="ranlib"
4021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4027 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4030 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4031 if test -n "$ac_ct_RANLIB"; then
4032 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4033 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4035 echo "$as_me:$LINENO: result: no" >&5
4036 echo "${ECHO_T}no" >&6
4039 RANLIB=$ac_ct_RANLIB
4041 RANLIB="$ac_cv_prog_RANLIB"
4044 if test -n "$ac_tool_prefix"; then
4045 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4046 set dummy ${ac_tool_prefix}ar; ac_word=$2
4047 echo "$as_me:$LINENO: checking for $ac_word" >&5
4048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4049 if test "${ac_cv_prog_AR+set}" = set; then
4050 echo $ECHO_N "(cached) $ECHO_C" >&6
4052 if test -n "$AR"; then
4053 ac_cv_prog_AR="$AR" # Let the user override the test.
4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059 test -z "$as_dir" && as_dir=.
4060 for ac_exec_ext in '' $ac_executable_extensions; do
4061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4062 ac_cv_prog_AR="${ac_tool_prefix}ar"
4063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4072 if test -n "$AR"; then
4073 echo "$as_me:$LINENO: result: $AR" >&5
4074 echo "${ECHO_T}$AR" >&6
4076 echo "$as_me:$LINENO: result: no" >&5
4077 echo "${ECHO_T}no" >&6
4081 if test -z "$ac_cv_prog_AR"; then
4083 # Extract the first word of "ar", so it can be a program name with args.
4084 set dummy ar; ac_word=$2
4085 echo "$as_me:$LINENO: checking for $ac_word" >&5
4086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4087 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4090 if test -n "$ac_ct_AR"; then
4091 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097 test -z "$as_dir" && as_dir=.
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4100 ac_cv_prog_ac_ct_AR="ar"
4101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4107 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4110 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4111 if test -n "$ac_ct_AR"; then
4112 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4113 echo "${ECHO_T}$ac_ct_AR" >&6
4115 echo "$as_me:$LINENO: result: no" >&5
4116 echo "${ECHO_T}no" >&6
4125 echo "$as_me:$LINENO: checking for inline" >&5
4126 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4127 if test "${ac_cv_c_inline+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 for ac_kw in inline __inline__ __inline; do
4132 cat >conftest.$ac_ext <<_ACEOF
4133 #line $LINENO "configure"
4136 cat confdefs.h >>conftest.$ac_ext
4137 cat >>conftest.$ac_ext <<_ACEOF
4138 /* end confdefs.h. */
4141 static $ac_kw foo_t static_foo () {return 0; }
4142 $ac_kw foo_t foo () {return 0; }
4146 rm -f conftest.$ac_objext
4147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4148 (eval $ac_compile) 2>&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); } &&
4152 { ac_try='test -s conftest.$ac_objext'
4153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); }; }; then
4158 ac_cv_c_inline=$ac_kw; break
4160 echo "$as_me: failed program was:" >&5
4161 sed 's/^/| /' conftest.$ac_ext >&5
4164 rm -f conftest.$ac_objext conftest.$ac_ext
4168 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4169 echo "${ECHO_T}$ac_cv_c_inline" >&6
4170 case $ac_cv_c_inline in
4173 cat >>confdefs.h <<\_ACEOF
4177 *) cat >>confdefs.h <<_ACEOF
4178 #define inline $ac_cv_c_inline
4183 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4184 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4185 if test "${ac_cv_c_const+set}" = set; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
4188 cat >conftest.$ac_ext <<_ACEOF
4189 #line $LINENO "configure"
4192 cat confdefs.h >>conftest.$ac_ext
4193 cat >>conftest.$ac_ext <<_ACEOF
4194 /* end confdefs.h. */
4199 /* FIXME: Include the comments suggested by Paul. */
4201 /* Ultrix mips cc rejects this. */
4202 typedef int charset[2];
4204 /* SunOS 4.1.1 cc rejects this. */
4205 char const *const *ccp;
4207 /* NEC SVR4.0.2 mips cc rejects this. */
4208 struct point {int x, y;};
4209 static struct point const zero = {0,0};
4210 /* AIX XL C 1.02.0.0 rejects this.
4211 It does not let you subtract one const X* pointer from another in
4212 an arm of an if-expression whose if-part is not a constant
4214 const char *g = "string";
4215 ccp = &g + (g ? g-g : 0);
4216 /* HPUX 7.0 cc rejects these. */
4219 ccp = (char const *const *) p;
4220 { /* SCO 3.2v4 cc rejects this. */
4222 char const *s = 0 ? (char *) 0 : (char const *) 0;
4226 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4228 const int *foo = &x[0];
4231 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4232 typedef const int *iptr;
4236 { /* AIX XL C 1.02.0.0 rejects this saying
4237 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4238 struct s { int j; const int *ap[3]; };
4239 struct s *b; b->j = 5;
4241 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4250 rm -f conftest.$ac_objext
4251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4252 (eval $ac_compile) 2>&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } &&
4256 { ac_try='test -s conftest.$ac_objext'
4257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; }; then
4264 echo "$as_me: failed program was:" >&5
4265 sed 's/^/| /' conftest.$ac_ext >&5
4269 rm -f conftest.$ac_objext conftest.$ac_ext
4271 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4272 echo "${ECHO_T}$ac_cv_c_const" >&6
4273 if test $ac_cv_c_const = no; then
4275 cat >>confdefs.h <<\_ACEOF
4282 # Extract the first word of "dbx", so it can be a program name with args.
4283 set dummy dbx; ac_word=$2
4284 echo "$as_me:$LINENO: checking for $ac_word" >&5
4285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4286 if test "${ac_cv_path_DBX+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4291 ac_cv_path_DBX="$DBX" # Let the user override the test with a path.
4294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298 test -z "$as_dir" && as_dir=.
4299 for ac_exec_ext in '' $ac_executable_extensions; do
4300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4301 ac_cv_path_DBX="$as_dir/$ac_word$ac_exec_ext"
4302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4308 test -z "$ac_cv_path_DBX" && ac_cv_path_DBX="no"
4314 if test -n "$DBX"; then
4315 echo "$as_me:$LINENO: result: $DBX" >&5
4316 echo "${ECHO_T}$DBX" >&6
4318 echo "$as_me:$LINENO: result: no" >&5
4319 echo "${ECHO_T}no" >&6
4322 # Extract the first word of "gdb", so it can be a program name with args.
4323 set dummy gdb; ac_word=$2
4324 echo "$as_me:$LINENO: checking for $ac_word" >&5
4325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4326 if test "${ac_cv_path_GDB+set}" = set; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4338 test -z "$as_dir" && as_dir=.
4339 for ac_exec_ext in '' $ac_executable_extensions; do
4340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4341 ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
4342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4348 test -z "$ac_cv_path_GDB" && ac_cv_path_GDB="no"
4354 if test -n "$GDB"; then
4355 echo "$as_me:$LINENO: result: $GDB" >&5
4356 echo "${ECHO_T}$GDB" >&6
4358 echo "$as_me:$LINENO: result: no" >&5
4359 echo "${ECHO_T}no" >&6
4362 # Extract the first word of "sdb", so it can be a program name with args.
4363 set dummy sdb; ac_word=$2
4364 echo "$as_me:$LINENO: checking for $ac_word" >&5
4365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4366 if test "${ac_cv_path_SDB+set}" = set; then
4367 echo $ECHO_N "(cached) $ECHO_C" >&6
4371 ac_cv_path_SDB="$SDB" # Let the user override the test with a path.
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 test -z "$as_dir" && as_dir=.
4379 for ac_exec_ext in '' $ac_executable_extensions; do
4380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4381 ac_cv_path_SDB="$as_dir/$ac_word$ac_exec_ext"
4382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4388 test -z "$ac_cv_path_SDB" && ac_cv_path_SDB="no"
4394 if test -n "$SDB"; then
4395 echo "$as_me:$LINENO: result: $SDB" >&5
4396 echo "${ECHO_T}$SDB" >&6
4398 echo "$as_me:$LINENO: result: no" >&5
4399 echo "${ECHO_T}no" >&6
4403 if test $GDB != no ; then
4405 elif test $DBX != no ; then
4407 elif test $SDB != no ; then
4415 # The following templates should be used with newer automakes
4416 # instead of acconfig.h
4418 #AH_TEMPLATE([sig_atomic_t],
4419 # [/* Define to `int' if <signal.h> doesn't define.])
4420 #AH_TEMPLATE([HAVE_START_COLOR],
4421 # [Define if you have start_color, as a function or macro.])
4422 #AH_TEMPLATE([HAVE_TYPEAHEAD],
4423 # [Define if you have typeahead, as a function or macro.])
4424 #AH_TEMPLATE([HAVE_BKGDSET],
4425 # [Define if you have bkgdset, as a function or macro.])
4426 #AH_TEMPLATE([HAVE_CURS_SET],
4427 # [Define if you have curs_set, as a function or macro.])
4428 #AH_TEMPLATE([HAVE_META],
4429 # [Define if you have meta, as a function or macro.])
4430 #AH_TEMPLATE([HAVE_USE_DEFAULT_COLORS],
4431 # [Define if you have use_default_colors, as a function or macro.])
4432 #AH_TEMPLATE([HAVE_RESIZETERM],
4433 # [Define if you have resizeterm, as a function or macro.])
4434 #AH_TEMPLATE([SIG_ATOMIC_VOLATILE_T],
4435 # [Some systems declare sig_atomic_t as volatile, some others -- no.
4436 # This define will have value `sig_atomic_t' or
4437 # `volatile sig_atomic_t' accordingly.])
4438 #AH_TEMPLATE([ICONV_NONTRANS],
4439 # [Define as 1 if iconv() only converts exactly and we should treat
4440 # all return values other than (size_t)(-1) as equivalent.])
4443 ac_aux_path_sendmail=/usr/sbin:/usr/lib
4444 # Extract the first word of "sendmail", so it can be a program name with args.
4445 set dummy sendmail; ac_word=$2
4446 echo "$as_me:$LINENO: checking for $ac_word" >&5
4447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4448 if test "${ac_cv_path_SENDMAIL+set}" = set; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4453 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457 as_dummy="$PATH:$ac_aux_path_sendmail"
4458 for as_dir in $as_dummy
4461 test -z "$as_dir" && as_dir=.
4462 for ac_exec_ext in '' $ac_executable_extensions; do
4463 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4464 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
4465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4471 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/sbin/sendmail"
4475 SENDMAIL=$ac_cv_path_SENDMAIL
4477 if test -n "$SENDMAIL"; then
4478 echo "$as_me:$LINENO: result: $SENDMAIL" >&5
4479 echo "${ECHO_T}$SENDMAIL" >&6
4481 echo "$as_me:$LINENO: result: no" >&5
4482 echo "${ECHO_T}no" >&6
4486 cat >>confdefs.h <<_ACEOF
4487 #define SENDMAIL "$ac_cv_path_SENDMAIL"
4492 if test -f $srcdir/EXPORTABLE ; then
4497 # Check whether --enable-pgp or --disable-pgp was given.
4498 if test "${enable_pgp+set}" = set; then
4499 enableval="$enable_pgp"
4500 if test x$enableval = xno ; then
4506 if test x$have_pgp != xno ; then
4508 cat >>confdefs.h <<\_ACEOF
4509 #define CRYPT_BACKEND_CLASSIC_PGP 1
4512 PGPAUX_TARGET="pgpring pgpewrap"
4513 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pgp.o pgpinvoke.o pgpkey.o pgplib.o gnupgparse.o pgpmicalg.o pgppacket.o"
4516 # Check whether --enable-smime or --disable-smime was given.
4517 if test "${enable_smime+set}" = set; then
4518 enableval="$enable_smime"
4519 if test x$enableval = xno ; then
4525 if test x$have_smime != xno ; then
4527 cat >>confdefs.h <<\_ACEOF
4528 #define CRYPT_BACKEND_CLASSIC_SMIME 1
4531 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS smime.o "
4532 SMIMEAUX_TARGET="smime_keys"
4536 # Check whether --with-mixmaster or --without-mixmaster was given.
4537 if test "${with_mixmaster+set}" = set; then
4538 withval="$with_mixmaster"
4539 if test -x "$withval" ; then
4540 MIXMASTER="$withval"
4542 MIXMASTER="mixmaster"
4544 OPS="$OPS \$(srcdir)/OPS.MIX"
4545 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS remailer.o"
4547 cat >>confdefs.h <<_ACEOF
4548 #define MIXMASTER "$MIXMASTER"
4555 # We now require all OPS
4556 OPS="$OPS \$(srcdir)/OPS.PGP \$(srcdir)/OPS.SMIME \$(srcdir)/OPS.CRYPT "
4564 cat >>confdefs.h <<_ACEOF
4565 #define SUBVERSION "$SUBVERSION"
4570 # Extract the first word of "ispell", so it can be a program name with args.
4571 set dummy ispell; ac_word=$2
4572 echo "$as_me:$LINENO: checking for $ac_word" >&5
4573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4574 if test "${ac_cv_path_ISPELL+set}" = set; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4579 ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a path.
4582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586 test -z "$as_dir" && as_dir=.
4587 for ac_exec_ext in '' $ac_executable_extensions; do
4588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4589 ac_cv_path_ISPELL="$as_dir/$ac_word$ac_exec_ext"
4590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4596 test -z "$ac_cv_path_ISPELL" && ac_cv_path_ISPELL="no"
4600 ISPELL=$ac_cv_path_ISPELL
4602 if test -n "$ISPELL"; then
4603 echo "$as_me:$LINENO: result: $ISPELL" >&5
4604 echo "${ECHO_T}$ISPELL" >&6
4606 echo "$as_me:$LINENO: result: no" >&5
4607 echo "${ECHO_T}no" >&6
4610 if test $ISPELL != no; then
4612 cat >>confdefs.h <<_ACEOF
4613 #define ISPELL "$ISPELL"
4619 # Check whether --with-slang or --without-slang was given.
4620 if test "${with_slang+set}" = set; then
4621 withval="$with_slang"
4622 echo "$as_me:$LINENO: checking if this is a BSD system" >&5
4623 echo $ECHO_N "checking if this is a BSD system... $ECHO_C" >&6
4624 if test "${mutt_cv_bsdish+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4627 if test "$cross_compiling" = yes; then
4630 cat >conftest.$ac_ext <<_ACEOF
4631 #line $LINENO "configure"
4634 cat confdefs.h >>conftest.$ac_ext
4635 cat >>conftest.$ac_ext <<_ACEOF
4636 /* end confdefs.h. */
4637 #include <sys/param.h>
4648 rm -f conftest$ac_exeext
4649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4650 (eval $ac_link) 2>&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); }; }; then
4661 echo "$as_me: program exited with status $ac_status" >&5
4662 echo "$as_me: failed program was:" >&5
4663 sed 's/^/| /' conftest.$ac_ext >&5
4668 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4671 echo "$as_me:$LINENO: result: $mutt_cv_bsdish" >&5
4672 echo "${ECHO_T}$mutt_cv_bsdish" >&6
4674 echo "$as_me:$LINENO: checking for S-Lang" >&5
4675 echo $ECHO_N "checking for S-Lang... $ECHO_C" >&6
4676 if test $withval = yes; then
4677 if test -d $srcdir/../slang; then
4678 mutt_cv_slang=$srcdir/../slang/src
4679 CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
4680 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
4682 if test -d $mutt_cv_prefix/include/slang; then
4683 CPPFLAGS="$CPPFLAGS -I$mutt_cv_prefix/include/slang"
4684 elif test -d /usr/include/slang; then
4685 CPPFLAGS="$CPPFLAGS -I/usr/include/slang"
4690 if test -f $withval/src/slang.h; then
4691 mutt_cv_slang=$withval/src
4692 CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
4693 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
4695 mutt_cv_slang=$withval
4696 if test -d $withval/include/slang; then
4697 CPPFLAGS="$CPPFLAGS -I${withval}/include/slang"
4698 elif test -d $withval/include; then
4699 CPPFLAGS="$CPPFLAGS -I${withval}/include"
4701 LDFLAGS="$LDFLAGS -L${withval}/lib"
4704 echo "$as_me:$LINENO: result: $mutt_cv_slang" >&5
4705 echo "${ECHO_T}$mutt_cv_slang" >&6
4706 if test $mutt_cv_bsdish = yes; then
4708 echo "$as_me:$LINENO: checking for main in -ltermlib" >&5
4709 echo $ECHO_N "checking for main in -ltermlib... $ECHO_C" >&6
4710 if test "${ac_cv_lib_termlib_main+set}" = set; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4713 ac_check_lib_save_LIBS=$LIBS
4714 LIBS="-ltermlib $LIBS"
4715 cat >conftest.$ac_ext <<_ACEOF
4716 #line $LINENO "configure"
4719 cat confdefs.h >>conftest.$ac_ext
4720 cat >>conftest.$ac_ext <<_ACEOF
4721 /* end confdefs.h. */
4732 rm -f conftest.$ac_objext conftest$ac_exeext
4733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4734 (eval $ac_link) 2>&5
4736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } &&
4738 { ac_try='test -s conftest$ac_exeext'
4739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4743 (exit $ac_status); }; }; then
4744 ac_cv_lib_termlib_main=yes
4746 echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.$ac_ext >&5
4749 ac_cv_lib_termlib_main=no
4751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4752 LIBS=$ac_check_lib_save_LIBS
4754 echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_main" >&5
4755 echo "${ECHO_T}$ac_cv_lib_termlib_main" >&6
4756 if test $ac_cv_lib_termlib_main = yes; then
4757 cat >>confdefs.h <<_ACEOF
4758 #define HAVE_LIBTERMLIB 1
4761 LIBS="-ltermlib $LIBS"
4767 cat >>confdefs.h <<\_ACEOF
4768 #define USE_SLANG_CURSES 1
4772 cat >>confdefs.h <<\_ACEOF
4773 #define HAVE_COLOR 1
4776 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
4779 echo "$as_me:$LINENO: checking for SLtt_get_terminfo in -lslang" >&5
4780 echo $ECHO_N "checking for SLtt_get_terminfo in -lslang... $ECHO_C" >&6
4781 if test "${ac_cv_lib_slang_SLtt_get_terminfo+set}" = set; then
4782 echo $ECHO_N "(cached) $ECHO_C" >&6
4784 ac_check_lib_save_LIBS=$LIBS
4785 LIBS="-lslang -lm $LIBS"
4786 cat >conftest.$ac_ext <<_ACEOF
4787 #line $LINENO "configure"
4790 cat confdefs.h >>conftest.$ac_ext
4791 cat >>conftest.$ac_ext <<_ACEOF
4792 /* end confdefs.h. */
4794 /* Override any gcc2 internal prototype to avoid an error. */
4798 /* We use char because int might match the return type of a gcc2
4799 builtin and then its argument prototype would still apply. */
4800 char SLtt_get_terminfo ();
4804 SLtt_get_terminfo ();
4809 rm -f conftest.$ac_objext conftest$ac_exeext
4810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4811 (eval $ac_link) 2>&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); } &&
4815 { ac_try='test -s conftest$ac_exeext'
4816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); }; }; then
4821 ac_cv_lib_slang_SLtt_get_terminfo=yes
4823 echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.$ac_ext >&5
4826 ac_cv_lib_slang_SLtt_get_terminfo=no
4828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4829 LIBS=$ac_check_lib_save_LIBS
4831 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLtt_get_terminfo" >&5
4832 echo "${ECHO_T}$ac_cv_lib_slang_SLtt_get_terminfo" >&6
4833 if test $ac_cv_lib_slang_SLtt_get_terminfo = yes; then
4834 MUTTLIBS="$MUTTLIBS -lslang -lm"
4836 { { echo "$as_me:$LINENO: error: unable to compile. check config.log" >&5
4837 echo "$as_me: error: unable to compile. check config.log" >&2;}
4838 { (exit 1); exit 1; }; }
4846 # Check whether --with-curses or --without-curses was given.
4847 if test "${with_curses+set}" = set; then
4848 withval="$with_curses"
4849 if test $withval != yes; then
4850 mutt_cv_curses=$withval
4852 if test x$mutt_cv_curses != x/usr; then
4853 LDFLAGS="-L${mutt_cv_curses}/lib $LDFLAGS"
4854 CPPFLAGS="$CPPFLAGS -I${mutt_cv_curses}/include"
4858 echo "$as_me:$LINENO: checking for initscr" >&5
4859 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
4860 if test "${ac_cv_func_initscr+set}" = set; then
4861 echo $ECHO_N "(cached) $ECHO_C" >&6
4863 cat >conftest.$ac_ext <<_ACEOF
4864 #line $LINENO "configure"
4867 cat confdefs.h >>conftest.$ac_ext
4868 cat >>conftest.$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4870 /* System header to define __stub macros and hopefully few prototypes,
4871 which can conflict with char initscr (); below.
4872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4873 <limits.h> exists even on freestanding compilers. */
4875 # include <limits.h>
4877 # include <assert.h>
4879 /* Override any gcc2 internal prototype to avoid an error. */
4884 /* We use char because int might match the return type of a gcc2
4885 builtin and then its argument prototype would still apply. */
4887 /* The GNU C library defines this for functions which it implements
4888 to always fail with ENOSYS. Some functions are actually named
4889 something starting with __ and the normal name is an alias. */
4890 #if defined (__stub_initscr) || defined (__stub___initscr)
4893 char (*f) () = initscr;
4902 return f != initscr;
4907 rm -f conftest.$ac_objext conftest$ac_exeext
4908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4909 (eval $ac_link) 2>&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); } &&
4913 { ac_try='test -s conftest$ac_exeext'
4914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4918 (exit $ac_status); }; }; then
4919 ac_cv_func_initscr=yes
4921 echo "$as_me: failed program was:" >&5
4922 sed 's/^/| /' conftest.$ac_ext >&5
4924 ac_cv_func_initscr=no
4926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4928 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
4929 echo "${ECHO_T}$ac_cv_func_initscr" >&6
4930 if test $ac_cv_func_initscr = yes; then
4934 cf_ncurses="ncurses"
4935 for lib in ncurses ncursesw
4937 as_ac_Lib=`echo "ac_cv_lib_$lib''_waddnwstr" | $as_tr_sh`
4938 echo "$as_me:$LINENO: checking for waddnwstr in -l$lib" >&5
4939 echo $ECHO_N "checking for waddnwstr in -l$lib... $ECHO_C" >&6
4940 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4943 ac_check_lib_save_LIBS=$LIBS
4945 cat >conftest.$ac_ext <<_ACEOF
4946 #line $LINENO "configure"
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h. */
4953 /* Override any gcc2 internal prototype to avoid an error. */
4957 /* We use char because int might match the return type of a gcc2
4958 builtin and then its argument prototype would still apply. */
4968 rm -f conftest.$ac_objext conftest$ac_exeext
4969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4970 (eval $ac_link) 2>&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } &&
4974 { ac_try='test -s conftest$ac_exeext'
4975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }; }; then
4980 eval "$as_ac_Lib=yes"
4982 echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4985 eval "$as_ac_Lib=no"
4987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4988 LIBS=$ac_check_lib_save_LIBS
4990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
4991 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
4992 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
4993 cf_ncurses="$lib"; break
4997 as_ac_Lib=`echo "ac_cv_lib_$cf_ncurses''_initscr" | $as_tr_sh`
4998 echo "$as_me:$LINENO: checking for initscr in -l$cf_ncurses" >&5
4999 echo $ECHO_N "checking for initscr in -l$cf_ncurses... $ECHO_C" >&6
5000 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5001 echo $ECHO_N "(cached) $ECHO_C" >&6
5003 ac_check_lib_save_LIBS=$LIBS
5004 LIBS="-l$cf_ncurses $LIBS"
5005 cat >conftest.$ac_ext <<_ACEOF
5006 #line $LINENO "configure"
5009 cat confdefs.h >>conftest.$ac_ext
5010 cat >>conftest.$ac_ext <<_ACEOF
5011 /* end confdefs.h. */
5013 /* Override any gcc2 internal prototype to avoid an error. */
5017 /* We use char because int might match the return type of a gcc2
5018 builtin and then its argument prototype would still apply. */
5028 rm -f conftest.$ac_objext conftest$ac_exeext
5029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5030 (eval $ac_link) 2>&5
5032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033 (exit $ac_status); } &&
5034 { ac_try='test -s conftest$ac_exeext'
5035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); }; }; then
5040 eval "$as_ac_Lib=yes"
5042 echo "$as_me: failed program was:" >&5
5043 sed 's/^/| /' conftest.$ac_ext >&5
5045 eval "$as_ac_Lib=no"
5047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5048 LIBS=$ac_check_lib_save_LIBS
5050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5051 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5052 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5053 MUTTLIBS="$MUTTLIBS -l$cf_ncurses"
5054 if test x$mutt_cv_curses = x/usr -a -d /usr/include/ncurses; then
5055 CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
5058 if test "$cf_ncurses" = ncursesw; then
5060 for ac_header in ncursesw/ncurses.h
5062 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5063 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5064 echo "$as_me:$LINENO: checking for $ac_header" >&5
5065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5066 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5070 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5072 # Is the header compilable?
5073 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5074 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5075 cat >conftest.$ac_ext <<_ACEOF
5076 #line $LINENO "configure"
5079 cat confdefs.h >>conftest.$ac_ext
5080 cat >>conftest.$ac_ext <<_ACEOF
5081 /* end confdefs.h. */
5082 $ac_includes_default
5083 #include <$ac_header>
5085 rm -f conftest.$ac_objext
5086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5087 (eval $ac_compile) 2>&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); } &&
5091 { ac_try='test -s conftest.$ac_objext'
5092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5096 (exit $ac_status); }; }; then
5097 ac_header_compiler=yes
5099 echo "$as_me: failed program was:" >&5
5100 sed 's/^/| /' conftest.$ac_ext >&5
5102 ac_header_compiler=no
5104 rm -f conftest.$ac_objext conftest.$ac_ext
5105 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5106 echo "${ECHO_T}$ac_header_compiler" >&6
5108 # Is the header present?
5109 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5110 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5111 cat >conftest.$ac_ext <<_ACEOF
5112 #line $LINENO "configure"
5115 cat confdefs.h >>conftest.$ac_ext
5116 cat >>conftest.$ac_ext <<_ACEOF
5117 /* end confdefs.h. */
5118 #include <$ac_header>
5120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5121 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5123 grep -v '^ *+' conftest.er1 >conftest.err
5125 cat conftest.err >&5
5126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } >/dev/null; then
5128 if test -s conftest.err; then
5129 ac_cpp_err=$ac_c_preproc_warn_flag
5136 if test -z "$ac_cpp_err"; then
5137 ac_header_preproc=yes
5139 echo "$as_me: failed program was:" >&5
5140 sed 's/^/| /' conftest.$ac_ext >&5
5142 ac_header_preproc=no
5144 rm -f conftest.err conftest.$ac_ext
5145 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5146 echo "${ECHO_T}$ac_header_preproc" >&6
5148 # So? What about this header?
5149 case $ac_header_compiler:$ac_header_preproc in
5151 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5152 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5157 ## ------------------------------------ ##
5158 ## Report this to bug-autoconf@gnu.org. ##
5159 ## ------------------------------------ ##
5162 sed "s/^/$as_me: WARNING: /" >&2
5165 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5166 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5167 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5168 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5173 ## ------------------------------------ ##
5174 ## Report this to bug-autoconf@gnu.org. ##
5175 ## ------------------------------------ ##
5178 sed "s/^/$as_me: WARNING: /" >&2
5181 echo "$as_me:$LINENO: checking for $ac_header" >&5
5182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5183 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5186 eval "$as_ac_Header=$ac_header_preproc"
5188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5189 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5192 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5193 cat >>confdefs.h <<_ACEOF
5194 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5196 cf_cv_ncurses_header="ncursesw/ncurses.h"
5203 for ac_header in ncurses.h
5205 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5207 echo "$as_me:$LINENO: checking for $ac_header" >&5
5208 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5209 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5215 # Is the header compilable?
5216 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5217 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5218 cat >conftest.$ac_ext <<_ACEOF
5219 #line $LINENO "configure"
5222 cat confdefs.h >>conftest.$ac_ext
5223 cat >>conftest.$ac_ext <<_ACEOF
5224 /* end confdefs.h. */
5225 $ac_includes_default
5226 #include <$ac_header>
5228 rm -f conftest.$ac_objext
5229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5230 (eval $ac_compile) 2>&5
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); } &&
5234 { ac_try='test -s conftest.$ac_objext'
5235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); }; }; then
5240 ac_header_compiler=yes
5242 echo "$as_me: failed program was:" >&5
5243 sed 's/^/| /' conftest.$ac_ext >&5
5245 ac_header_compiler=no
5247 rm -f conftest.$ac_objext conftest.$ac_ext
5248 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5249 echo "${ECHO_T}$ac_header_compiler" >&6
5251 # Is the header present?
5252 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5253 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5254 cat >conftest.$ac_ext <<_ACEOF
5255 #line $LINENO "configure"
5258 cat confdefs.h >>conftest.$ac_ext
5259 cat >>conftest.$ac_ext <<_ACEOF
5260 /* end confdefs.h. */
5261 #include <$ac_header>
5263 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5264 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5266 grep -v '^ *+' conftest.er1 >conftest.err
5268 cat conftest.err >&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5270 (exit $ac_status); } >/dev/null; then
5271 if test -s conftest.err; then
5272 ac_cpp_err=$ac_c_preproc_warn_flag
5279 if test -z "$ac_cpp_err"; then
5280 ac_header_preproc=yes
5282 echo "$as_me: failed program was:" >&5
5283 sed 's/^/| /' conftest.$ac_ext >&5
5285 ac_header_preproc=no
5287 rm -f conftest.err conftest.$ac_ext
5288 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5289 echo "${ECHO_T}$ac_header_preproc" >&6
5291 # So? What about this header?
5292 case $ac_header_compiler:$ac_header_preproc in
5294 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5300 ## ------------------------------------ ##
5301 ## Report this to bug-autoconf@gnu.org. ##
5302 ## ------------------------------------ ##
5305 sed "s/^/$as_me: WARNING: /" >&2
5308 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5309 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5310 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5311 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5313 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5316 ## ------------------------------------ ##
5317 ## Report this to bug-autoconf@gnu.org. ##
5318 ## ------------------------------------ ##
5321 sed "s/^/$as_me: WARNING: /" >&2
5324 echo "$as_me:$LINENO: checking for $ac_header" >&5
5325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5327 echo $ECHO_N "(cached) $ECHO_C" >&6
5329 eval "$as_ac_Header=$ac_header_preproc"
5331 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5332 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5336 cat >>confdefs.h <<_ACEOF
5337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5339 cf_cv_ncurses_header="ncurses.h"
5347 echo "$as_me:$LINENO: checking for initscr" >&5
5348 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
5349 if test "${ac_cv_func_initscr+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5352 cat >conftest.$ac_ext <<_ACEOF
5353 #line $LINENO "configure"
5356 cat confdefs.h >>conftest.$ac_ext
5357 cat >>conftest.$ac_ext <<_ACEOF
5358 /* end confdefs.h. */
5359 /* System header to define __stub macros and hopefully few prototypes,
5360 which can conflict with char initscr (); below.
5361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5362 <limits.h> exists even on freestanding compilers. */
5364 # include <limits.h>
5366 # include <assert.h>
5368 /* Override any gcc2 internal prototype to avoid an error. */
5373 /* We use char because int might match the return type of a gcc2
5374 builtin and then its argument prototype would still apply. */
5376 /* The GNU C library defines this for functions which it implements
5377 to always fail with ENOSYS. Some functions are actually named
5378 something starting with __ and the normal name is an alias. */
5379 #if defined (__stub_initscr) || defined (__stub___initscr)
5382 char (*f) () = initscr;
5391 return f != initscr;
5396 rm -f conftest.$ac_objext conftest$ac_exeext
5397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5398 (eval $ac_link) 2>&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } &&
5402 { ac_try='test -s conftest$ac_exeext'
5403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); }; }; then
5408 ac_cv_func_initscr=yes
5410 echo "$as_me: failed program was:" >&5
5411 sed 's/^/| /' conftest.$ac_ext >&5
5413 ac_cv_func_initscr=no
5415 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5417 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
5418 echo "${ECHO_T}$ac_cv_func_initscr" >&6
5419 if test $ac_cv_func_initscr = yes; then
5423 case $host_os in #(vi
5425 echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5
5426 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
5427 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5430 ac_check_lib_save_LIBS=$LIBS
5431 LIBS="-lmytinfo $LIBS"
5432 cat >conftest.$ac_ext <<_ACEOF
5433 #line $LINENO "configure"
5436 cat confdefs.h >>conftest.$ac_ext
5437 cat >>conftest.$ac_ext <<_ACEOF
5438 /* end confdefs.h. */
5440 /* Override any gcc2 internal prototype to avoid an error. */
5444 /* We use char because int might match the return type of a gcc2
5445 builtin and then its argument prototype would still apply. */
5455 rm -f conftest.$ac_objext conftest$ac_exeext
5456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5457 (eval $ac_link) 2>&5
5459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5460 (exit $ac_status); } &&
5461 { ac_try='test -s conftest$ac_exeext'
5462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466 (exit $ac_status); }; }; then
5467 ac_cv_lib_mytinfo_tgoto=yes
5469 echo "$as_me: failed program was:" >&5
5470 sed 's/^/| /' conftest.$ac_ext >&5
5472 ac_cv_lib_mytinfo_tgoto=no
5474 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5475 LIBS=$ac_check_lib_save_LIBS
5477 echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5
5478 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
5479 if test $ac_cv_lib_mytinfo_tgoto = yes; then
5480 LIBS="-lmytinfo $LIBS"
5485 echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5
5486 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
5487 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
5488 echo $ECHO_N "(cached) $ECHO_C" >&6
5490 ac_check_lib_save_LIBS=$LIBS
5491 LIBS="-lcur_colr $LIBS"
5492 cat >conftest.$ac_ext <<_ACEOF
5493 #line $LINENO "configure"
5496 cat confdefs.h >>conftest.$ac_ext
5497 cat >>conftest.$ac_ext <<_ACEOF
5498 /* end confdefs.h. */
5500 /* Override any gcc2 internal prototype to avoid an error. */
5504 /* We use char because int might match the return type of a gcc2
5505 builtin and then its argument prototype would still apply. */
5515 rm -f conftest.$ac_objext conftest$ac_exeext
5516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5517 (eval $ac_link) 2>&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } &&
5521 { ac_try='test -s conftest$ac_exeext'
5522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); }; }; then
5527 ac_cv_lib_cur_colr_initscr=yes
5529 echo "$as_me: failed program was:" >&5
5530 sed 's/^/| /' conftest.$ac_ext >&5
5532 ac_cv_lib_cur_colr_initscr=no
5534 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5535 LIBS=$ac_check_lib_save_LIBS
5537 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5
5538 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
5539 if test $ac_cv_lib_cur_colr_initscr = yes; then
5541 LIBS="-lcur_colr $LIBS"
5542 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
5543 ac_cv_func_initscr=yes
5547 echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5
5548 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
5549 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
5550 echo $ECHO_N "(cached) $ECHO_C" >&6
5552 ac_check_lib_save_LIBS=$LIBS
5553 LIBS="-lHcurses $LIBS"
5554 cat >conftest.$ac_ext <<_ACEOF
5555 #line $LINENO "configure"
5558 cat confdefs.h >>conftest.$ac_ext
5559 cat >>conftest.$ac_ext <<_ACEOF
5560 /* end confdefs.h. */
5562 /* Override any gcc2 internal prototype to avoid an error. */
5566 /* We use char because int might match the return type of a gcc2
5567 builtin and then its argument prototype would still apply. */
5577 rm -f conftest.$ac_objext conftest$ac_exeext
5578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5579 (eval $ac_link) 2>&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); } &&
5583 { ac_try='test -s conftest$ac_exeext'
5584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); }; }; then
5589 ac_cv_lib_Hcurses_initscr=yes
5591 echo "$as_me: failed program was:" >&5
5592 sed 's/^/| /' conftest.$ac_ext >&5
5594 ac_cv_lib_Hcurses_initscr=no
5596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5597 LIBS=$ac_check_lib_save_LIBS
5599 echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5
5600 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
5601 if test $ac_cv_lib_Hcurses_initscr = yes; then
5603 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
5604 LIBS="-lHcurses $LIBS"
5605 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
5606 ac_cv_func_initscr=yes
5613 linux*) # Suse Linux does not follow /usr/lib convention
5618 if test ".$With5lib" != ".no" ; then
5619 if test -d /usr/5lib ; then
5621 CPPFLAGS="$CPPFLAGS -I/usr/5include"
5622 LIBS="$LIBS -L/usr/5lib"
5626 if test ".$ac_cv_func_initscr" != .yes ; then
5627 cf_save_LIBS="$LIBS"
5631 # Check for library containing tgoto. Do this before curses library
5632 # because it may be needed to link the test-case for initscr.
5633 echo "$as_me:$LINENO: checking for tgoto" >&5
5634 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
5635 if test "${ac_cv_func_tgoto+set}" = set; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5638 cat >conftest.$ac_ext <<_ACEOF
5639 #line $LINENO "configure"
5642 cat confdefs.h >>conftest.$ac_ext
5643 cat >>conftest.$ac_ext <<_ACEOF
5644 /* end confdefs.h. */
5645 /* System header to define __stub macros and hopefully few prototypes,
5646 which can conflict with char tgoto (); below.
5647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5648 <limits.h> exists even on freestanding compilers. */
5650 # include <limits.h>
5652 # include <assert.h>
5654 /* Override any gcc2 internal prototype to avoid an error. */
5659 /* We use char because int might match the return type of a gcc2
5660 builtin and then its argument prototype would still apply. */
5662 /* The GNU C library defines this for functions which it implements
5663 to always fail with ENOSYS. Some functions are actually named
5664 something starting with __ and the normal name is an alias. */
5665 #if defined (__stub_tgoto) || defined (__stub___tgoto)
5668 char (*f) () = tgoto;
5682 rm -f conftest.$ac_objext conftest$ac_exeext
5683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5684 (eval $ac_link) 2>&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); } &&
5688 { ac_try='test -s conftest$ac_exeext'
5689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5693 (exit $ac_status); }; }; then
5694 ac_cv_func_tgoto=yes
5696 echo "$as_me: failed program was:" >&5
5697 sed 's/^/| /' conftest.$ac_ext >&5
5701 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5703 echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5
5704 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
5705 if test $ac_cv_func_tgoto = yes; then
5706 cf_term_lib=predefined
5709 for cf_term_lib in termcap termlib unknown
5711 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
5712 echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5
5713 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
5714 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5717 ac_check_lib_save_LIBS=$LIBS
5718 LIBS="-l$cf_term_lib $LIBS"
5719 cat >conftest.$ac_ext <<_ACEOF
5720 #line $LINENO "configure"
5723 cat confdefs.h >>conftest.$ac_ext
5724 cat >>conftest.$ac_ext <<_ACEOF
5725 /* end confdefs.h. */
5727 /* Override any gcc2 internal prototype to avoid an error. */
5731 /* We use char because int might match the return type of a gcc2
5732 builtin and then its argument prototype would still apply. */
5742 rm -f conftest.$ac_objext conftest$ac_exeext
5743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5744 (eval $ac_link) 2>&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); } &&
5748 { ac_try='test -s conftest$ac_exeext'
5749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); }; }; then
5754 eval "$as_ac_Lib=yes"
5756 echo "$as_me: failed program was:" >&5
5757 sed 's/^/| /' conftest.$ac_ext >&5
5759 eval "$as_ac_Lib=no"
5761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5762 LIBS=$ac_check_lib_save_LIBS
5764 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5765 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5766 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5775 # Check for library containing initscr
5776 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
5777 for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
5779 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
5780 echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5
5781 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
5782 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5783 echo $ECHO_N "(cached) $ECHO_C" >&6
5785 ac_check_lib_save_LIBS=$LIBS
5786 LIBS="-l$cf_curs_lib $LIBS"
5787 cat >conftest.$ac_ext <<_ACEOF
5788 #line $LINENO "configure"
5791 cat confdefs.h >>conftest.$ac_ext
5792 cat >>conftest.$ac_ext <<_ACEOF
5793 /* end confdefs.h. */
5795 /* Override any gcc2 internal prototype to avoid an error. */
5799 /* We use char because int might match the return type of a gcc2
5800 builtin and then its argument prototype would still apply. */
5810 rm -f conftest.$ac_objext conftest$ac_exeext
5811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5812 (eval $ac_link) 2>&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); } &&
5816 { ac_try='test -s conftest$ac_exeext'
5817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); }; }; then
5822 eval "$as_ac_Lib=yes"
5824 echo "$as_me: failed program was:" >&5
5825 sed 's/^/| /' conftest.$ac_ext >&5
5827 eval "$as_ac_Lib=no"
5829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5830 LIBS=$ac_check_lib_save_LIBS
5832 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5833 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5834 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5839 test $cf_curs_lib = unknown && { { echo "$as_me:$LINENO: error: no curses library found" >&5
5840 echo "$as_me: error: no curses library found" >&2;}
5841 { (exit 1); exit 1; }; }
5843 LIBS="-l$cf_curs_lib $cf_save_LIBS"
5844 if test "$cf_term_lib" = unknown ; then
5845 echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5
5846 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
5847 cat >conftest.$ac_ext <<_ACEOF
5848 #line $LINENO "configure"
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5854 #include <${cf_cv_ncurses_header-curses.h}>
5863 rm -f conftest.$ac_objext conftest$ac_exeext
5864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5865 (eval $ac_link) 2>&5
5867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5868 (exit $ac_status); } &&
5869 { ac_try='test -s conftest$ac_exeext'
5870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); }; }; then
5877 echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5883 echo "$as_me:$LINENO: result: $cf_result" >&5
5884 echo "${ECHO_T}$cf_result" >&6
5885 test $cf_result = no && { { echo "$as_me:$LINENO: error: Cannot link curses library" >&5
5886 echo "$as_me: error: Cannot link curses library" >&2;}
5887 { (exit 1); exit 1; }; }
5888 elif test "$cf_term_lib" != predefined ; then
5889 echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
5890 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
5891 cat >conftest.$ac_ext <<_ACEOF
5892 #line $LINENO "configure"
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5898 #include <${cf_cv_ncurses_header-curses.h}>
5902 initscr(); tgoto((char *)0, 0, 0);
5907 rm -f conftest.$ac_objext conftest$ac_exeext
5908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5909 (eval $ac_link) 2>&5
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); } &&
5913 { ac_try='test -s conftest$ac_exeext'
5914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5918 (exit $ac_status); }; }; then
5921 echo "$as_me: failed program was:" >&5
5922 sed 's/^/| /' conftest.$ac_ext >&5
5925 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
5926 cat >conftest.$ac_ext <<_ACEOF
5927 #line $LINENO "configure"
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h. */
5933 #include <${cf_cv_ncurses_header-curses.h}>
5942 rm -f conftest.$ac_objext conftest$ac_exeext
5943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5944 (eval $ac_link) 2>&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); } &&
5948 { ac_try='test -s conftest$ac_exeext'
5949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); }; }; then
5956 echo "$as_me: failed program was:" >&5
5957 sed 's/^/| /' conftest.$ac_ext >&5
5961 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5965 echo "$as_me:$LINENO: result: $cf_result" >&5
5966 echo "${ECHO_T}$cf_result" >&6
5980 LIBS="$LIBS $MUTTLIBS"
5981 for ac_func in start_color typeahead bkgdset curs_set meta use_default_colors resizeterm
5984 echo "$as_me:$LINENO: checking for $ac_func declaration" >&5
5985 echo $ECHO_N "checking for $ac_func declaration... $ECHO_C" >&6
5986 if eval "test \"\${ac_cv_func_decl_$ac_func+set}\" = set"; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5989 cat >conftest.$ac_ext <<_ACEOF
5990 #line $LINENO "configure"
5993 cat confdefs.h >>conftest.$ac_ext
5994 cat >>conftest.$ac_ext <<_ACEOF
5995 /* end confdefs.h. */
5996 #include <${cf_cv_ncurses_header-curses.h}>
6001 extern int ${ac_func}();
6007 rm -f conftest.$ac_objext
6008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6009 (eval $ac_compile) 2>&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); } &&
6013 { ac_try='test -s conftest.$ac_objext'
6014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); }; }; then
6020 cat >conftest.$ac_ext <<_ACEOF
6021 #line $LINENO "configure"
6024 cat confdefs.h >>conftest.$ac_ext
6025 cat >>conftest.$ac_ext <<_ACEOF
6026 /* end confdefs.h. */
6027 #include <${cf_cv_ncurses_header-curses.h}>
6032 int (*p)() = ${ac_func};
6038 rm -f conftest.$ac_objext
6039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6040 (eval $ac_compile) 2>&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); } &&
6044 { ac_try='test -s conftest.$ac_objext'
6045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); }; }; then
6051 eval "ac_cv_func_decl_$ac_func=yes"
6053 echo "$as_me: failed program was:" >&5
6054 sed 's/^/| /' conftest.$ac_ext >&5
6057 eval "ac_cv_func_decl_$ac_func=no"
6059 rm -f conftest.$ac_objext conftest.$ac_ext
6061 echo "$as_me: failed program was:" >&5
6062 sed 's/^/| /' conftest.$ac_ext >&5
6065 eval "ac_cv_func_decl_$ac_func=yes"
6067 rm -f conftest.$ac_objext conftest.$ac_ext
6070 if eval "test \"`echo '$ac_cv_func_'decl_$ac_func`\" = yes"; then
6071 echo "$as_me:$LINENO: result: yes" >&5
6072 echo "${ECHO_T}yes" >&6
6075 ac_tr_func=`echo HAVE_$ac_func | tr '[a-z]' '[A-Z]'`
6077 cat >>confdefs.h <<_ACEOF
6078 #define $ac_tr_func 1
6082 echo "$as_me:$LINENO: result: no" >&5
6083 echo "${ECHO_T}no" >&6
6087 if test "$ac_cv_func_decl_start_color" = yes; then
6089 cat >>confdefs.h <<\_ACEOF
6090 #define HAVE_COLOR 1
6094 if test "$ac_cv_func_decl_resizeterm" = yes; then
6095 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
6101 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6102 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6103 if test "${ac_cv_header_stdc+set}" = set; then
6104 echo $ECHO_N "(cached) $ECHO_C" >&6
6106 cat >conftest.$ac_ext <<_ACEOF
6107 #line $LINENO "configure"
6110 cat confdefs.h >>conftest.$ac_ext
6111 cat >>conftest.$ac_ext <<_ACEOF
6112 /* end confdefs.h. */
6126 rm -f conftest.$ac_objext
6127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6128 (eval $ac_compile) 2>&5
6130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); } &&
6132 { ac_try='test -s conftest.$ac_objext'
6133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); }; }; then
6138 ac_cv_header_stdc=yes
6140 echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.$ac_ext >&5
6143 ac_cv_header_stdc=no
6145 rm -f conftest.$ac_objext conftest.$ac_ext
6147 if test $ac_cv_header_stdc = yes; then
6148 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6149 cat >conftest.$ac_ext <<_ACEOF
6150 #line $LINENO "configure"
6153 cat confdefs.h >>conftest.$ac_ext
6154 cat >>conftest.$ac_ext <<_ACEOF
6155 /* end confdefs.h. */
6159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6160 $EGREP "memchr" >/dev/null 2>&1; then
6163 ac_cv_header_stdc=no
6169 if test $ac_cv_header_stdc = yes; then
6170 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6171 cat >conftest.$ac_ext <<_ACEOF
6172 #line $LINENO "configure"
6175 cat confdefs.h >>conftest.$ac_ext
6176 cat >>conftest.$ac_ext <<_ACEOF
6177 /* end confdefs.h. */
6181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6182 $EGREP "free" >/dev/null 2>&1; then
6185 ac_cv_header_stdc=no
6191 if test $ac_cv_header_stdc = yes; then
6192 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6193 if test "$cross_compiling" = yes; then
6196 cat >conftest.$ac_ext <<_ACEOF
6197 #line $LINENO "configure"
6200 cat confdefs.h >>conftest.$ac_ext
6201 cat >>conftest.$ac_ext <<_ACEOF
6202 /* end confdefs.h. */
6204 #if ((' ' & 0x0FF) == 0x020)
6205 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6206 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6208 # define ISLOWER(c) \
6209 (('a' <= (c) && (c) <= 'i') \
6210 || ('j' <= (c) && (c) <= 'r') \
6211 || ('s' <= (c) && (c) <= 'z'))
6212 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6215 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6220 for (i = 0; i < 256; i++)
6221 if (XOR (islower (i), ISLOWER (i))
6222 || toupper (i) != TOUPPER (i))
6227 rm -f conftest$ac_exeext
6228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6229 (eval $ac_link) 2>&5
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); }; }; then
6240 echo "$as_me: program exited with status $ac_status" >&5
6241 echo "$as_me: failed program was:" >&5
6242 sed 's/^/| /' conftest.$ac_ext >&5
6245 ac_cv_header_stdc=no
6247 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6251 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6252 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6253 if test $ac_cv_header_stdc = yes; then
6255 cat >>confdefs.h <<\_ACEOF
6256 #define STDC_HEADERS 1
6266 for ac_header in stdarg.h sys/ioctl.h ioctl.h sysexits.h
6268 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6269 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6270 echo "$as_me:$LINENO: checking for $ac_header" >&5
6271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
6275 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6276 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6278 # Is the header compilable?
6279 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6281 cat >conftest.$ac_ext <<_ACEOF
6282 #line $LINENO "configure"
6285 cat confdefs.h >>conftest.$ac_ext
6286 cat >>conftest.$ac_ext <<_ACEOF
6287 /* end confdefs.h. */
6288 $ac_includes_default
6289 #include <$ac_header>
6291 rm -f conftest.$ac_objext
6292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6293 (eval $ac_compile) 2>&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); } &&
6297 { ac_try='test -s conftest.$ac_objext'
6298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); }; }; then
6303 ac_header_compiler=yes
6305 echo "$as_me: failed program was:" >&5
6306 sed 's/^/| /' conftest.$ac_ext >&5
6308 ac_header_compiler=no
6310 rm -f conftest.$ac_objext conftest.$ac_ext
6311 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6312 echo "${ECHO_T}$ac_header_compiler" >&6
6314 # Is the header present?
6315 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6316 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6317 cat >conftest.$ac_ext <<_ACEOF
6318 #line $LINENO "configure"
6321 cat confdefs.h >>conftest.$ac_ext
6322 cat >>conftest.$ac_ext <<_ACEOF
6323 /* end confdefs.h. */
6324 #include <$ac_header>
6326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6329 grep -v '^ *+' conftest.er1 >conftest.err
6331 cat conftest.err >&5
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); } >/dev/null; then
6334 if test -s conftest.err; then
6335 ac_cpp_err=$ac_c_preproc_warn_flag
6342 if test -z "$ac_cpp_err"; then
6343 ac_header_preproc=yes
6345 echo "$as_me: failed program was:" >&5
6346 sed 's/^/| /' conftest.$ac_ext >&5
6348 ac_header_preproc=no
6350 rm -f conftest.err conftest.$ac_ext
6351 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6352 echo "${ECHO_T}$ac_header_preproc" >&6
6354 # So? What about this header?
6355 case $ac_header_compiler:$ac_header_preproc in
6357 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6358 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6363 ## ------------------------------------ ##
6364 ## Report this to bug-autoconf@gnu.org. ##
6365 ## ------------------------------------ ##
6368 sed "s/^/$as_me: WARNING: /" >&2
6371 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6372 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6373 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6374 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6379 ## ------------------------------------ ##
6380 ## Report this to bug-autoconf@gnu.org. ##
6381 ## ------------------------------------ ##
6384 sed "s/^/$as_me: WARNING: /" >&2
6387 echo "$as_me:$LINENO: checking for $ac_header" >&5
6388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6390 echo $ECHO_N "(cached) $ECHO_C" >&6
6392 eval "$as_ac_Header=$ac_header_preproc"
6394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6395 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6399 cat >>confdefs.h <<_ACEOF
6400 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6409 for ac_header in sys/time.h sys/resource.h
6411 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6412 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6413 echo "$as_me:$LINENO: checking for $ac_header" >&5
6414 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6415 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6416 echo $ECHO_N "(cached) $ECHO_C" >&6
6418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6421 # Is the header compilable?
6422 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6423 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6424 cat >conftest.$ac_ext <<_ACEOF
6425 #line $LINENO "configure"
6428 cat confdefs.h >>conftest.$ac_ext
6429 cat >>conftest.$ac_ext <<_ACEOF
6430 /* end confdefs.h. */
6431 $ac_includes_default
6432 #include <$ac_header>
6434 rm -f conftest.$ac_objext
6435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6436 (eval $ac_compile) 2>&5
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); } &&
6440 { ac_try='test -s conftest.$ac_objext'
6441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); }; }; then
6446 ac_header_compiler=yes
6448 echo "$as_me: failed program was:" >&5
6449 sed 's/^/| /' conftest.$ac_ext >&5
6451 ac_header_compiler=no
6453 rm -f conftest.$ac_objext conftest.$ac_ext
6454 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6455 echo "${ECHO_T}$ac_header_compiler" >&6
6457 # Is the header present?
6458 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6459 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6460 cat >conftest.$ac_ext <<_ACEOF
6461 #line $LINENO "configure"
6464 cat confdefs.h >>conftest.$ac_ext
6465 cat >>conftest.$ac_ext <<_ACEOF
6466 /* end confdefs.h. */
6467 #include <$ac_header>
6469 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6470 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6472 grep -v '^ *+' conftest.er1 >conftest.err
6474 cat conftest.err >&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); } >/dev/null; then
6477 if test -s conftest.err; then
6478 ac_cpp_err=$ac_c_preproc_warn_flag
6485 if test -z "$ac_cpp_err"; then
6486 ac_header_preproc=yes
6488 echo "$as_me: failed program was:" >&5
6489 sed 's/^/| /' conftest.$ac_ext >&5
6491 ac_header_preproc=no
6493 rm -f conftest.err conftest.$ac_ext
6494 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6495 echo "${ECHO_T}$ac_header_preproc" >&6
6497 # So? What about this header?
6498 case $ac_header_compiler:$ac_header_preproc in
6500 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6501 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6506 ## ------------------------------------ ##
6507 ## Report this to bug-autoconf@gnu.org. ##
6508 ## ------------------------------------ ##
6511 sed "s/^/$as_me: WARNING: /" >&2
6514 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6515 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6516 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6517 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6522 ## ------------------------------------ ##
6523 ## Report this to bug-autoconf@gnu.org. ##
6524 ## ------------------------------------ ##
6527 sed "s/^/$as_me: WARNING: /" >&2
6530 echo "$as_me:$LINENO: checking for $ac_header" >&5
6531 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6532 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6533 echo $ECHO_N "(cached) $ECHO_C" >&6
6535 eval "$as_ac_Header=$ac_header_preproc"
6537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6541 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6542 cat >>confdefs.h <<_ACEOF
6543 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6551 for ac_header in unix.h
6553 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6554 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6555 echo "$as_me:$LINENO: checking for $ac_header" >&5
6556 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6561 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6563 # Is the header compilable?
6564 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6565 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6566 cat >conftest.$ac_ext <<_ACEOF
6567 #line $LINENO "configure"
6570 cat confdefs.h >>conftest.$ac_ext
6571 cat >>conftest.$ac_ext <<_ACEOF
6572 /* end confdefs.h. */
6573 $ac_includes_default
6574 #include <$ac_header>
6576 rm -f conftest.$ac_objext
6577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6578 (eval $ac_compile) 2>&5
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); } &&
6582 { ac_try='test -s conftest.$ac_objext'
6583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); }; }; then
6588 ac_header_compiler=yes
6590 echo "$as_me: failed program was:" >&5
6591 sed 's/^/| /' conftest.$ac_ext >&5
6593 ac_header_compiler=no
6595 rm -f conftest.$ac_objext conftest.$ac_ext
6596 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6597 echo "${ECHO_T}$ac_header_compiler" >&6
6599 # Is the header present?
6600 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6601 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6602 cat >conftest.$ac_ext <<_ACEOF
6603 #line $LINENO "configure"
6606 cat confdefs.h >>conftest.$ac_ext
6607 cat >>conftest.$ac_ext <<_ACEOF
6608 /* end confdefs.h. */
6609 #include <$ac_header>
6611 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6612 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6614 grep -v '^ *+' conftest.er1 >conftest.err
6616 cat conftest.err >&5
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); } >/dev/null; then
6619 if test -s conftest.err; then
6620 ac_cpp_err=$ac_c_preproc_warn_flag
6627 if test -z "$ac_cpp_err"; then
6628 ac_header_preproc=yes
6630 echo "$as_me: failed program was:" >&5
6631 sed 's/^/| /' conftest.$ac_ext >&5
6633 ac_header_preproc=no
6635 rm -f conftest.err conftest.$ac_ext
6636 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6637 echo "${ECHO_T}$ac_header_preproc" >&6
6639 # So? What about this header?
6640 case $ac_header_compiler:$ac_header_preproc in
6642 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6643 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6645 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6648 ## ------------------------------------ ##
6649 ## Report this to bug-autoconf@gnu.org. ##
6650 ## ------------------------------------ ##
6653 sed "s/^/$as_me: WARNING: /" >&2
6656 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6657 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6658 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6659 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6664 ## ------------------------------------ ##
6665 ## Report this to bug-autoconf@gnu.org. ##
6666 ## ------------------------------------ ##
6669 sed "s/^/$as_me: WARNING: /" >&2
6672 echo "$as_me:$LINENO: checking for $ac_header" >&5
6673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6674 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6675 echo $ECHO_N "(cached) $ECHO_C" >&6
6677 eval "$as_ac_Header=$ac_header_preproc"
6679 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6680 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6683 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6684 cat >>confdefs.h <<_ACEOF
6685 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6695 for ac_func in setrlimit getsid
6697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6698 echo "$as_me:$LINENO: checking for $ac_func" >&5
6699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6700 if eval "test \"\${$as_ac_var+set}\" = set"; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6703 cat >conftest.$ac_ext <<_ACEOF
6704 #line $LINENO "configure"
6707 cat confdefs.h >>conftest.$ac_ext
6708 cat >>conftest.$ac_ext <<_ACEOF
6709 /* end confdefs.h. */
6710 /* System header to define __stub macros and hopefully few prototypes,
6711 which can conflict with char $ac_func (); below.
6712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6713 <limits.h> exists even on freestanding compilers. */
6715 # include <limits.h>
6717 # include <assert.h>
6719 /* Override any gcc2 internal prototype to avoid an error. */
6724 /* We use char because int might match the return type of a gcc2
6725 builtin and then its argument prototype would still apply. */
6727 /* The GNU C library defines this for functions which it implements
6728 to always fail with ENOSYS. Some functions are actually named
6729 something starting with __ and the normal name is an alias. */
6730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6733 char (*f) () = $ac_func;
6742 return f != $ac_func;
6747 rm -f conftest.$ac_objext conftest$ac_exeext
6748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6749 (eval $ac_link) 2>&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); } &&
6753 { ac_try='test -s conftest$ac_exeext'
6754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6758 (exit $ac_status); }; }; then
6759 eval "$as_ac_var=yes"
6761 echo "$as_me: failed program was:" >&5
6762 sed 's/^/| /' conftest.$ac_ext >&5
6764 eval "$as_ac_var=no"
6766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6770 if test `eval echo '${'$as_ac_var'}'` = yes; then
6771 cat >>confdefs.h <<_ACEOF
6772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6779 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6780 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6781 if test "${ac_cv_type_signal+set}" = set; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
6784 cat >conftest.$ac_ext <<_ACEOF
6785 #line $LINENO "configure"
6788 cat confdefs.h >>conftest.$ac_ext
6789 cat >>conftest.$ac_ext <<_ACEOF
6790 /* end confdefs.h. */
6791 #include <sys/types.h>
6797 extern "C" void (*signal (int, void (*)(int)))(int);
6799 void (*signal ()) ();
6810 rm -f conftest.$ac_objext
6811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6812 (eval $ac_compile) 2>&5
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); } &&
6816 { ac_try='test -s conftest.$ac_objext'
6817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); }; }; then
6822 ac_cv_type_signal=void
6824 echo "$as_me: failed program was:" >&5
6825 sed 's/^/| /' conftest.$ac_ext >&5
6827 ac_cv_type_signal=int
6829 rm -f conftest.$ac_objext conftest.$ac_ext
6831 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6832 echo "${ECHO_T}$ac_cv_type_signal" >&6
6834 cat >>confdefs.h <<_ACEOF
6835 #define RETSIGTYPE $ac_cv_type_signal
6840 echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5
6841 echo $ECHO_N "checking for sig_atomic_t in signal.h... $ECHO_C" >&6
6842 cat >conftest.$ac_ext <<_ACEOF
6843 #line $LINENO "configure"
6846 cat confdefs.h >>conftest.$ac_ext
6847 cat >>conftest.$ac_ext <<_ACEOF
6848 /* end confdefs.h. */
6852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6853 $EGREP "sig_atomic_t" >/dev/null 2>&1; then
6855 ac_cv_type_sig_atomic_t=yes;
6856 cat >conftest.$ac_ext <<_ACEOF
6857 #line $LINENO "configure"
6860 cat confdefs.h >>conftest.$ac_ext
6861 cat >>conftest.$ac_ext <<_ACEOF
6862 /* end confdefs.h. */
6866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6867 $EGREP "volatile.*sig_atomic_t" >/dev/null 2>&1; then
6869 is_sig_atomic_t_volatile=yes;
6870 echo "$as_me:$LINENO: result: yes, volatile" >&5
6871 echo "${ECHO_T}yes, volatile" >&6
6875 is_sig_atomic_t_volatile=no;
6876 echo "$as_me:$LINENO: result: yes, non volatile" >&5
6877 echo "${ECHO_T}yes, non volatile" >&6
6885 echo "$as_me:$LINENO: result: no" >&5
6886 echo "${ECHO_T}no" >&6
6887 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
6888 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
6889 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
6890 echo $ECHO_N "(cached) $ECHO_C" >&6
6892 cat >conftest.$ac_ext <<_ACEOF
6893 #line $LINENO "configure"
6896 cat confdefs.h >>conftest.$ac_ext
6897 cat >>conftest.$ac_ext <<_ACEOF
6898 /* end confdefs.h. */
6899 $ac_includes_default
6903 if ((sig_atomic_t *) 0)
6905 if (sizeof (sig_atomic_t))
6911 rm -f conftest.$ac_objext
6912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6913 (eval $ac_compile) 2>&5
6915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6916 (exit $ac_status); } &&
6917 { ac_try='test -s conftest.$ac_objext'
6918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); }; }; then
6923 ac_cv_type_sig_atomic_t=yes
6925 echo "$as_me: failed program was:" >&5
6926 sed 's/^/| /' conftest.$ac_ext >&5
6928 ac_cv_type_sig_atomic_t=no
6930 rm -f conftest.$ac_objext conftest.$ac_ext
6932 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
6933 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
6934 if test $ac_cv_type_sig_atomic_t = yes; then
6938 cat >>confdefs.h <<_ACEOF
6939 #define sig_atomic_t int
6944 is_sig_atomic_t_volatile=no
6949 if test $is_sig_atomic_t_volatile = 'yes'
6951 cat >>confdefs.h <<\_ACEOF
6952 #define SIG_ATOMIC_VOLATILE_T sig_atomic_t
6956 cat >>confdefs.h <<\_ACEOF
6957 #define SIG_ATOMIC_VOLATILE_T volatile sig_atomic_t
6962 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6963 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6964 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6967 cat >conftest.$ac_ext <<_ACEOF
6968 #line $LINENO "configure"
6971 cat confdefs.h >>conftest.$ac_ext
6972 cat >>conftest.$ac_ext <<_ACEOF
6973 /* end confdefs.h. */
6974 $ac_includes_default
6979 char *p = (char *) sys_siglist;
6986 rm -f conftest.$ac_objext
6987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6988 (eval $ac_compile) 2>&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); } &&
6992 { ac_try='test -s conftest.$ac_objext'
6993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997 (exit $ac_status); }; }; then
6998 ac_cv_have_decl_sys_siglist=yes
7000 echo "$as_me: failed program was:" >&5
7001 sed 's/^/| /' conftest.$ac_ext >&5
7003 ac_cv_have_decl_sys_siglist=no
7005 rm -f conftest.$ac_objext conftest.$ac_ext
7007 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7008 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
7009 if test $ac_cv_have_decl_sys_siglist = yes; then
7011 cat >>confdefs.h <<_ACEOF
7012 #define HAVE_DECL_SYS_SIGLIST 1
7017 cat >>confdefs.h <<_ACEOF
7018 #define HAVE_DECL_SYS_SIGLIST 0
7027 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7028 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7029 if test "${ac_cv_c_bigendian+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
7032 # See if sys/param.h defines the BYTE_ORDER macro.
7033 cat >conftest.$ac_ext <<_ACEOF
7034 #line $LINENO "configure"
7037 cat confdefs.h >>conftest.$ac_ext
7038 cat >>conftest.$ac_ext <<_ACEOF
7039 /* end confdefs.h. */
7040 #include <sys/types.h>
7041 #include <sys/param.h>
7046 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7054 rm -f conftest.$ac_objext
7055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7056 (eval $ac_compile) 2>&5
7058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059 (exit $ac_status); } &&
7060 { ac_try='test -s conftest.$ac_objext'
7061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); }; }; then
7066 # It does; now see whether it defined to BIG_ENDIAN or not.
7067 cat >conftest.$ac_ext <<_ACEOF
7068 #line $LINENO "configure"
7071 cat confdefs.h >>conftest.$ac_ext
7072 cat >>conftest.$ac_ext <<_ACEOF
7073 /* end confdefs.h. */
7074 #include <sys/types.h>
7075 #include <sys/param.h>
7080 #if BYTE_ORDER != BIG_ENDIAN
7088 rm -f conftest.$ac_objext
7089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7090 (eval $ac_compile) 2>&5
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); } &&
7094 { ac_try='test -s conftest.$ac_objext'
7095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); }; }; then
7100 ac_cv_c_bigendian=yes
7102 echo "$as_me: failed program was:" >&5
7103 sed 's/^/| /' conftest.$ac_ext >&5
7105 ac_cv_c_bigendian=no
7107 rm -f conftest.$ac_objext conftest.$ac_ext
7109 echo "$as_me: failed program was:" >&5
7110 sed 's/^/| /' conftest.$ac_ext >&5
7112 # It does not; compile a test program.
7113 if test "$cross_compiling" = yes; then
7114 # try to guess the endianness by grepping values into an object file
7115 ac_cv_c_bigendian=unknown
7116 cat >conftest.$ac_ext <<_ACEOF
7117 #line $LINENO "configure"
7120 cat confdefs.h >>conftest.$ac_ext
7121 cat >>conftest.$ac_ext <<_ACEOF
7122 /* end confdefs.h. */
7123 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7124 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7125 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7126 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7127 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7128 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7132 _ascii (); _ebcdic ();
7137 rm -f conftest.$ac_objext
7138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7139 (eval $ac_compile) 2>&5
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); } &&
7143 { ac_try='test -s conftest.$ac_objext'
7144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 (exit $ac_status); }; }; then
7149 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7150 ac_cv_c_bigendian=yes
7152 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7153 if test "$ac_cv_c_bigendian" = unknown; then
7154 ac_cv_c_bigendian=no
7156 # finding both strings is unlikely to happen, but who knows?
7157 ac_cv_c_bigendian=unknown
7161 echo "$as_me: failed program was:" >&5
7162 sed 's/^/| /' conftest.$ac_ext >&5
7165 rm -f conftest.$ac_objext conftest.$ac_ext
7167 cat >conftest.$ac_ext <<_ACEOF
7168 #line $LINENO "configure"
7171 cat confdefs.h >>conftest.$ac_ext
7172 cat >>conftest.$ac_ext <<_ACEOF
7173 /* end confdefs.h. */
7177 /* Are we little or big endian? From Harbison&Steele. */
7181 char c[sizeof (long)];
7184 exit (u.c[sizeof (long) - 1] == 1);
7187 rm -f conftest$ac_exeext
7188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7189 (eval $ac_link) 2>&5
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7192 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); }; }; then
7198 ac_cv_c_bigendian=no
7200 echo "$as_me: program exited with status $ac_status" >&5
7201 echo "$as_me: failed program was:" >&5
7202 sed 's/^/| /' conftest.$ac_ext >&5
7205 ac_cv_c_bigendian=yes
7207 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7210 rm -f conftest.$ac_objext conftest.$ac_ext
7212 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7213 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7214 case $ac_cv_c_bigendian in
7217 cat >>confdefs.h <<\_ACEOF
7218 #define WORDS_BIGENDIAN 1
7224 { { echo "$as_me:$LINENO: error: unknown endianness
7225 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7226 echo "$as_me: error: unknown endianness
7227 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7228 { (exit 1); exit 1; }; } ;;
7233 for ac_header in inttypes.h stdint.h
7235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7236 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7237 echo "$as_me:$LINENO: checking for $ac_header" >&5
7238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7242 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7243 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7245 # Is the header compilable?
7246 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7247 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7248 cat >conftest.$ac_ext <<_ACEOF
7249 #line $LINENO "configure"
7252 cat confdefs.h >>conftest.$ac_ext
7253 cat >>conftest.$ac_ext <<_ACEOF
7254 /* end confdefs.h. */
7255 $ac_includes_default
7256 #include <$ac_header>
7258 rm -f conftest.$ac_objext
7259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7260 (eval $ac_compile) 2>&5
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); } &&
7264 { ac_try='test -s conftest.$ac_objext'
7265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); }; }; then
7270 ac_header_compiler=yes
7272 echo "$as_me: failed program was:" >&5
7273 sed 's/^/| /' conftest.$ac_ext >&5
7275 ac_header_compiler=no
7277 rm -f conftest.$ac_objext conftest.$ac_ext
7278 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7279 echo "${ECHO_T}$ac_header_compiler" >&6
7281 # Is the header present?
7282 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7283 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7284 cat >conftest.$ac_ext <<_ACEOF
7285 #line $LINENO "configure"
7288 cat confdefs.h >>conftest.$ac_ext
7289 cat >>conftest.$ac_ext <<_ACEOF
7290 /* end confdefs.h. */
7291 #include <$ac_header>
7293 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7294 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7296 grep -v '^ *+' conftest.er1 >conftest.err
7298 cat conftest.err >&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); } >/dev/null; then
7301 if test -s conftest.err; then
7302 ac_cpp_err=$ac_c_preproc_warn_flag
7309 if test -z "$ac_cpp_err"; then
7310 ac_header_preproc=yes
7312 echo "$as_me: failed program was:" >&5
7313 sed 's/^/| /' conftest.$ac_ext >&5
7315 ac_header_preproc=no
7317 rm -f conftest.err conftest.$ac_ext
7318 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7319 echo "${ECHO_T}$ac_header_preproc" >&6
7321 # So? What about this header?
7322 case $ac_header_compiler:$ac_header_preproc in
7324 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7325 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7330 ## ------------------------------------ ##
7331 ## Report this to bug-autoconf@gnu.org. ##
7332 ## ------------------------------------ ##
7335 sed "s/^/$as_me: WARNING: /" >&2
7338 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7339 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7340 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7341 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7346 ## ------------------------------------ ##
7347 ## Report this to bug-autoconf@gnu.org. ##
7348 ## ------------------------------------ ##
7351 sed "s/^/$as_me: WARNING: /" >&2
7354 echo "$as_me:$LINENO: checking for $ac_header" >&5
7355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7357 echo $ECHO_N "(cached) $ECHO_C" >&6
7359 eval "$as_ac_Header=$ac_header_preproc"
7361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7366 cat >>confdefs.h <<_ACEOF
7367 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7374 echo "$as_me:$LINENO: checking for uint32_t" >&5
7375 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7376 cat >conftest.$ac_ext <<_ACEOF
7377 #line $LINENO "configure"
7380 cat confdefs.h >>conftest.$ac_ext
7381 cat >>conftest.$ac_ext <<_ACEOF
7382 /* end confdefs.h. */
7384 #include <sys/types.h>
7386 #include <inttypes.h>
7397 if (sizeof (uint32_t))
7404 rm -f conftest.$ac_objext
7405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7406 (eval $ac_compile) 2>&5
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); } &&
7410 { ac_try='test -s conftest.$ac_objext'
7411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); }; }; then
7418 cat >>confdefs.h <<\_ACEOF
7419 #define HAVE_UINT32_T 1
7422 echo "$as_me:$LINENO: result: yes" >&5
7423 echo "${ECHO_T}yes" >&6
7426 echo "$as_me: failed program was:" >&5
7427 sed 's/^/| /' conftest.$ac_ext >&5
7429 echo "$as_me:$LINENO: result: no" >&5
7430 echo "${ECHO_T}no" >&6
7433 rm -f conftest.$ac_objext conftest.$ac_ext
7434 echo "$as_me:$LINENO: checking for int" >&5
7435 echo $ECHO_N "checking for int... $ECHO_C" >&6
7436 if test "${ac_cv_type_int+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7439 cat >conftest.$ac_ext <<_ACEOF
7440 #line $LINENO "configure"
7443 cat confdefs.h >>conftest.$ac_ext
7444 cat >>conftest.$ac_ext <<_ACEOF
7445 /* end confdefs.h. */
7446 $ac_includes_default
7458 rm -f conftest.$ac_objext
7459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7460 (eval $ac_compile) 2>&5
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); } &&
7464 { ac_try='test -s conftest.$ac_objext'
7465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); }; }; then
7472 echo "$as_me: failed program was:" >&5
7473 sed 's/^/| /' conftest.$ac_ext >&5
7477 rm -f conftest.$ac_objext conftest.$ac_ext
7479 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7480 echo "${ECHO_T}$ac_cv_type_int" >&6
7482 echo "$as_me:$LINENO: checking size of int" >&5
7483 echo $ECHO_N "checking size of int... $ECHO_C" >&6
7484 if test "${ac_cv_sizeof_int+set}" = set; then
7485 echo $ECHO_N "(cached) $ECHO_C" >&6
7487 if test "$ac_cv_type_int" = yes; then
7488 # The cast to unsigned long works around a bug in the HP C Compiler
7489 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7490 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7491 # This bug is HP SR number 8606223364.
7492 if test "$cross_compiling" = yes; then
7493 # Depending upon the size, compute the lo and hi bounds.
7494 cat >conftest.$ac_ext <<_ACEOF
7495 #line $LINENO "configure"
7498 cat confdefs.h >>conftest.$ac_ext
7499 cat >>conftest.$ac_ext <<_ACEOF
7500 /* end confdefs.h. */
7501 $ac_includes_default
7505 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
7512 rm -f conftest.$ac_objext
7513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7514 (eval $ac_compile) 2>&5
7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); } &&
7518 { ac_try='test -s conftest.$ac_objext'
7519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7523 (exit $ac_status); }; }; then
7526 cat >conftest.$ac_ext <<_ACEOF
7527 #line $LINENO "configure"
7530 cat confdefs.h >>conftest.$ac_ext
7531 cat >>conftest.$ac_ext <<_ACEOF
7532 /* end confdefs.h. */
7533 $ac_includes_default
7537 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7544 rm -f conftest.$ac_objext
7545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7546 (eval $ac_compile) 2>&5
7548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549 (exit $ac_status); } &&
7550 { ac_try='test -s conftest.$ac_objext'
7551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); }; }; then
7556 ac_hi=$ac_mid; break
7558 echo "$as_me: failed program was:" >&5
7559 sed 's/^/| /' conftest.$ac_ext >&5
7561 ac_lo=`expr $ac_mid + 1`
7562 if test $ac_lo -le $ac_mid; then
7566 ac_mid=`expr 2 '*' $ac_mid + 1`
7568 rm -f conftest.$ac_objext conftest.$ac_ext
7571 echo "$as_me: failed program was:" >&5
7572 sed 's/^/| /' conftest.$ac_ext >&5
7574 cat >conftest.$ac_ext <<_ACEOF
7575 #line $LINENO "configure"
7578 cat confdefs.h >>conftest.$ac_ext
7579 cat >>conftest.$ac_ext <<_ACEOF
7580 /* end confdefs.h. */
7581 $ac_includes_default
7585 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
7592 rm -f conftest.$ac_objext
7593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7594 (eval $ac_compile) 2>&5
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); } &&
7598 { ac_try='test -s conftest.$ac_objext'
7599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); }; }; then
7606 cat >conftest.$ac_ext <<_ACEOF
7607 #line $LINENO "configure"
7610 cat confdefs.h >>conftest.$ac_ext
7611 cat >>conftest.$ac_ext <<_ACEOF
7612 /* end confdefs.h. */
7613 $ac_includes_default
7617 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
7624 rm -f conftest.$ac_objext
7625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7626 (eval $ac_compile) 2>&5
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); } &&
7630 { ac_try='test -s conftest.$ac_objext'
7631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); }; }; then
7636 ac_lo=$ac_mid; break
7638 echo "$as_me: failed program was:" >&5
7639 sed 's/^/| /' conftest.$ac_ext >&5
7641 ac_hi=`expr '(' $ac_mid ')' - 1`
7642 if test $ac_mid -le $ac_hi; then
7646 ac_mid=`expr 2 '*' $ac_mid`
7648 rm -f conftest.$ac_objext conftest.$ac_ext
7651 echo "$as_me: failed program was:" >&5
7652 sed 's/^/| /' conftest.$ac_ext >&5
7656 rm -f conftest.$ac_objext conftest.$ac_ext
7658 rm -f conftest.$ac_objext conftest.$ac_ext
7659 # Binary search between lo and hi bounds.
7660 while test "x$ac_lo" != "x$ac_hi"; do
7661 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7662 cat >conftest.$ac_ext <<_ACEOF
7663 #line $LINENO "configure"
7666 cat confdefs.h >>conftest.$ac_ext
7667 cat >>conftest.$ac_ext <<_ACEOF
7668 /* end confdefs.h. */
7669 $ac_includes_default
7673 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7680 rm -f conftest.$ac_objext
7681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7682 (eval $ac_compile) 2>&5
7684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685 (exit $ac_status); } &&
7686 { ac_try='test -s conftest.$ac_objext'
7687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); }; }; then
7694 echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.$ac_ext >&5
7697 ac_lo=`expr '(' $ac_mid ')' + 1`
7699 rm -f conftest.$ac_objext conftest.$ac_ext
7702 ?*) ac_cv_sizeof_int=$ac_lo;;
7703 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7704 See \`config.log' for more details." >&5
7705 echo "$as_me: error: cannot compute sizeof (int), 77
7706 See \`config.log' for more details." >&2;}
7707 { (exit 1); exit 1; }; } ;;
7710 if test "$cross_compiling" = yes; then
7711 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7712 See \`config.log' for more details." >&5
7713 echo "$as_me: error: cannot run test program while cross compiling
7714 See \`config.log' for more details." >&2;}
7715 { (exit 1); exit 1; }; }
7717 cat >conftest.$ac_ext <<_ACEOF
7718 #line $LINENO "configure"
7721 cat confdefs.h >>conftest.$ac_ext
7722 cat >>conftest.$ac_ext <<_ACEOF
7723 /* end confdefs.h. */
7724 $ac_includes_default
7725 long longval () { return (long) (sizeof (int)); }
7726 unsigned long ulongval () { return (long) (sizeof (int)); }
7733 FILE *f = fopen ("conftest.val", "w");
7736 if (((long) (sizeof (int))) < 0)
7738 long i = longval ();
7739 if (i != ((long) (sizeof (int))))
7741 fprintf (f, "%ld\n", i);
7745 unsigned long i = ulongval ();
7746 if (i != ((long) (sizeof (int))))
7748 fprintf (f, "%lu\n", i);
7750 exit (ferror (f) || fclose (f) != 0);
7756 rm -f conftest$ac_exeext
7757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7758 (eval $ac_link) 2>&5
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); }; }; then
7767 ac_cv_sizeof_int=`cat conftest.val`
7769 echo "$as_me: program exited with status $ac_status" >&5
7770 echo "$as_me: failed program was:" >&5
7771 sed 's/^/| /' conftest.$ac_ext >&5
7774 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7775 See \`config.log' for more details." >&5
7776 echo "$as_me: error: cannot compute sizeof (int), 77
7777 See \`config.log' for more details." >&2;}
7778 { (exit 1); exit 1; }; }
7780 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7788 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7789 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7790 cat >>confdefs.h <<_ACEOF
7791 #define SIZEOF_INT $ac_cv_sizeof_int
7795 echo "$as_me:$LINENO: checking for long" >&5
7796 echo $ECHO_N "checking for long... $ECHO_C" >&6
7797 if test "${ac_cv_type_long+set}" = set; then
7798 echo $ECHO_N "(cached) $ECHO_C" >&6
7800 cat >conftest.$ac_ext <<_ACEOF
7801 #line $LINENO "configure"
7804 cat confdefs.h >>conftest.$ac_ext
7805 cat >>conftest.$ac_ext <<_ACEOF
7806 /* end confdefs.h. */
7807 $ac_includes_default
7819 rm -f conftest.$ac_objext
7820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7821 (eval $ac_compile) 2>&5
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); } &&
7825 { ac_try='test -s conftest.$ac_objext'
7826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); }; }; then
7833 echo "$as_me: failed program was:" >&5
7834 sed 's/^/| /' conftest.$ac_ext >&5
7838 rm -f conftest.$ac_objext conftest.$ac_ext
7840 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7841 echo "${ECHO_T}$ac_cv_type_long" >&6
7843 echo "$as_me:$LINENO: checking size of long" >&5
7844 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7845 if test "${ac_cv_sizeof_long+set}" = set; then
7846 echo $ECHO_N "(cached) $ECHO_C" >&6
7848 if test "$ac_cv_type_long" = yes; then
7849 # The cast to unsigned long works around a bug in the HP C Compiler
7850 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7851 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7852 # This bug is HP SR number 8606223364.
7853 if test "$cross_compiling" = yes; then
7854 # Depending upon the size, compute the lo and hi bounds.
7855 cat >conftest.$ac_ext <<_ACEOF
7856 #line $LINENO "configure"
7859 cat confdefs.h >>conftest.$ac_ext
7860 cat >>conftest.$ac_ext <<_ACEOF
7861 /* end confdefs.h. */
7862 $ac_includes_default
7866 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7873 rm -f conftest.$ac_objext
7874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7875 (eval $ac_compile) 2>&5
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); } &&
7879 { ac_try='test -s conftest.$ac_objext'
7880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); }; }; then
7887 cat >conftest.$ac_ext <<_ACEOF
7888 #line $LINENO "configure"
7891 cat confdefs.h >>conftest.$ac_ext
7892 cat >>conftest.$ac_ext <<_ACEOF
7893 /* end confdefs.h. */
7894 $ac_includes_default
7898 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7905 rm -f conftest.$ac_objext
7906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7907 (eval $ac_compile) 2>&5
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); } &&
7911 { ac_try='test -s conftest.$ac_objext'
7912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); }; }; then
7917 ac_hi=$ac_mid; break
7919 echo "$as_me: failed program was:" >&5
7920 sed 's/^/| /' conftest.$ac_ext >&5
7922 ac_lo=`expr $ac_mid + 1`
7923 if test $ac_lo -le $ac_mid; then
7927 ac_mid=`expr 2 '*' $ac_mid + 1`
7929 rm -f conftest.$ac_objext conftest.$ac_ext
7932 echo "$as_me: failed program was:" >&5
7933 sed 's/^/| /' conftest.$ac_ext >&5
7935 cat >conftest.$ac_ext <<_ACEOF
7936 #line $LINENO "configure"
7939 cat confdefs.h >>conftest.$ac_ext
7940 cat >>conftest.$ac_ext <<_ACEOF
7941 /* end confdefs.h. */
7942 $ac_includes_default
7946 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7953 rm -f conftest.$ac_objext
7954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7955 (eval $ac_compile) 2>&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); } &&
7959 { ac_try='test -s conftest.$ac_objext'
7960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); }; }; then
7967 cat >conftest.$ac_ext <<_ACEOF
7968 #line $LINENO "configure"
7971 cat confdefs.h >>conftest.$ac_ext
7972 cat >>conftest.$ac_ext <<_ACEOF
7973 /* end confdefs.h. */
7974 $ac_includes_default
7978 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7985 rm -f conftest.$ac_objext
7986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7987 (eval $ac_compile) 2>&5
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); } &&
7991 { ac_try='test -s conftest.$ac_objext'
7992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); }; }; then
7997 ac_lo=$ac_mid; break
7999 echo "$as_me: failed program was:" >&5
8000 sed 's/^/| /' conftest.$ac_ext >&5
8002 ac_hi=`expr '(' $ac_mid ')' - 1`
8003 if test $ac_mid -le $ac_hi; then
8007 ac_mid=`expr 2 '*' $ac_mid`
8009 rm -f conftest.$ac_objext conftest.$ac_ext
8012 echo "$as_me: failed program was:" >&5
8013 sed 's/^/| /' conftest.$ac_ext >&5
8017 rm -f conftest.$ac_objext conftest.$ac_ext
8019 rm -f conftest.$ac_objext conftest.$ac_ext
8020 # Binary search between lo and hi bounds.
8021 while test "x$ac_lo" != "x$ac_hi"; do
8022 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8023 cat >conftest.$ac_ext <<_ACEOF
8024 #line $LINENO "configure"
8027 cat confdefs.h >>conftest.$ac_ext
8028 cat >>conftest.$ac_ext <<_ACEOF
8029 /* end confdefs.h. */
8030 $ac_includes_default
8034 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
8041 rm -f conftest.$ac_objext
8042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8043 (eval $ac_compile) 2>&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); } &&
8047 { ac_try='test -s conftest.$ac_objext'
8048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); }; }; then
8055 echo "$as_me: failed program was:" >&5
8056 sed 's/^/| /' conftest.$ac_ext >&5
8058 ac_lo=`expr '(' $ac_mid ')' + 1`
8060 rm -f conftest.$ac_objext conftest.$ac_ext
8063 ?*) ac_cv_sizeof_long=$ac_lo;;
8064 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
8065 See \`config.log' for more details." >&5
8066 echo "$as_me: error: cannot compute sizeof (long), 77
8067 See \`config.log' for more details." >&2;}
8068 { (exit 1); exit 1; }; } ;;
8071 if test "$cross_compiling" = yes; then
8072 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8073 See \`config.log' for more details." >&5
8074 echo "$as_me: error: cannot run test program while cross compiling
8075 See \`config.log' for more details." >&2;}
8076 { (exit 1); exit 1; }; }
8078 cat >conftest.$ac_ext <<_ACEOF
8079 #line $LINENO "configure"
8082 cat confdefs.h >>conftest.$ac_ext
8083 cat >>conftest.$ac_ext <<_ACEOF
8084 /* end confdefs.h. */
8085 $ac_includes_default
8086 long longval () { return (long) (sizeof (long)); }
8087 unsigned long ulongval () { return (long) (sizeof (long)); }
8094 FILE *f = fopen ("conftest.val", "w");
8097 if (((long) (sizeof (long))) < 0)
8099 long i = longval ();
8100 if (i != ((long) (sizeof (long))))
8102 fprintf (f, "%ld\n", i);
8106 unsigned long i = ulongval ();
8107 if (i != ((long) (sizeof (long))))
8109 fprintf (f, "%lu\n", i);
8111 exit (ferror (f) || fclose (f) != 0);
8117 rm -f conftest$ac_exeext
8118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8119 (eval $ac_link) 2>&5
8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); }; }; then
8128 ac_cv_sizeof_long=`cat conftest.val`
8130 echo "$as_me: program exited with status $ac_status" >&5
8131 echo "$as_me: failed program was:" >&5
8132 sed 's/^/| /' conftest.$ac_ext >&5
8135 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
8136 See \`config.log' for more details." >&5
8137 echo "$as_me: error: cannot compute sizeof (long), 77
8138 See \`config.log' for more details." >&2;}
8139 { (exit 1); exit 1; }; }
8141 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8149 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8150 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
8151 cat >>confdefs.h <<_ACEOF
8152 #define SIZEOF_LONG $ac_cv_sizeof_long
8157 echo "$as_me:$LINENO: checking for pid_t" >&5
8158 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8159 if test "${ac_cv_type_pid_t+set}" = set; then
8160 echo $ECHO_N "(cached) $ECHO_C" >&6
8162 cat >conftest.$ac_ext <<_ACEOF
8163 #line $LINENO "configure"
8166 cat confdefs.h >>conftest.$ac_ext
8167 cat >>conftest.$ac_ext <<_ACEOF
8168 /* end confdefs.h. */
8169 $ac_includes_default
8181 rm -f conftest.$ac_objext
8182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8183 (eval $ac_compile) 2>&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); } &&
8187 { ac_try='test -s conftest.$ac_objext'
8188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); }; }; then
8193 ac_cv_type_pid_t=yes
8195 echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8200 rm -f conftest.$ac_objext conftest.$ac_ext
8202 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8203 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8204 if test $ac_cv_type_pid_t = yes; then
8208 cat >>confdefs.h <<_ACEOF
8220 for ac_func in fgetpos memmove setegid srand48 strerror
8222 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8223 echo "$as_me:$LINENO: checking for $ac_func" >&5
8224 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8225 if eval "test \"\${$as_ac_var+set}\" = set"; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 cat >conftest.$ac_ext <<_ACEOF
8229 #line $LINENO "configure"
8232 cat confdefs.h >>conftest.$ac_ext
8233 cat >>conftest.$ac_ext <<_ACEOF
8234 /* end confdefs.h. */
8235 /* System header to define __stub macros and hopefully few prototypes,
8236 which can conflict with char $ac_func (); below.
8237 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8238 <limits.h> exists even on freestanding compilers. */
8240 # include <limits.h>
8242 # include <assert.h>
8244 /* Override any gcc2 internal prototype to avoid an error. */
8249 /* We use char because int might match the return type of a gcc2
8250 builtin and then its argument prototype would still apply. */
8252 /* The GNU C library defines this for functions which it implements
8253 to always fail with ENOSYS. Some functions are actually named
8254 something starting with __ and the normal name is an alias. */
8255 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8258 char (*f) () = $ac_func;
8267 return f != $ac_func;
8272 rm -f conftest.$ac_objext conftest$ac_exeext
8273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8274 (eval $ac_link) 2>&5
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); } &&
8278 { ac_try='test -s conftest$ac_exeext'
8279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); }; }; then
8284 eval "$as_ac_var=yes"
8286 echo "$as_me: failed program was:" >&5
8287 sed 's/^/| /' conftest.$ac_ext >&5
8289 eval "$as_ac_var=no"
8291 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8293 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8294 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8295 if test `eval echo '${'$as_ac_var'}'` = yes; then
8296 cat >>confdefs.h <<_ACEOF
8297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8306 for ac_func in strcasecmp strdup
8308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8309 echo "$as_me:$LINENO: checking for $ac_func" >&5
8310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8311 if eval "test \"\${$as_ac_var+set}\" = set"; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8314 cat >conftest.$ac_ext <<_ACEOF
8315 #line $LINENO "configure"
8318 cat confdefs.h >>conftest.$ac_ext
8319 cat >>conftest.$ac_ext <<_ACEOF
8320 /* end confdefs.h. */
8321 /* System header to define __stub macros and hopefully few prototypes,
8322 which can conflict with char $ac_func (); below.
8323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8324 <limits.h> exists even on freestanding compilers. */
8326 # include <limits.h>
8328 # include <assert.h>
8330 /* Override any gcc2 internal prototype to avoid an error. */
8335 /* We use char because int might match the return type of a gcc2
8336 builtin and then its argument prototype would still apply. */
8338 /* The GNU C library defines this for functions which it implements
8339 to always fail with ENOSYS. Some functions are actually named
8340 something starting with __ and the normal name is an alias. */
8341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8344 char (*f) () = $ac_func;
8353 return f != $ac_func;
8358 rm -f conftest.$ac_objext conftest$ac_exeext
8359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8360 (eval $ac_link) 2>&5
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); } &&
8364 { ac_try='test -s conftest$ac_exeext'
8365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); }; }; then
8370 eval "$as_ac_var=yes"
8372 echo "$as_me: failed program was:" >&5
8373 sed 's/^/| /' conftest.$ac_ext >&5
8375 eval "$as_ac_var=no"
8377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8380 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8381 if test `eval echo '${'$as_ac_var'}'` = yes; then
8382 cat >>confdefs.h <<_ACEOF
8383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8387 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
8393 echo "$as_me:$LINENO: checking for getopt" >&5
8394 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
8395 if test "${ac_cv_func_getopt+set}" = set; then
8396 echo $ECHO_N "(cached) $ECHO_C" >&6
8398 cat >conftest.$ac_ext <<_ACEOF
8399 #line $LINENO "configure"
8402 cat confdefs.h >>conftest.$ac_ext
8403 cat >>conftest.$ac_ext <<_ACEOF
8404 /* end confdefs.h. */
8405 /* System header to define __stub macros and hopefully few prototypes,
8406 which can conflict with char getopt (); below.
8407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8408 <limits.h> exists even on freestanding compilers. */
8410 # include <limits.h>
8412 # include <assert.h>
8414 /* Override any gcc2 internal prototype to avoid an error. */
8419 /* We use char because int might match the return type of a gcc2
8420 builtin and then its argument prototype would still apply. */
8422 /* The GNU C library defines this for functions which it implements
8423 to always fail with ENOSYS. Some functions are actually named
8424 something starting with __ and the normal name is an alias. */
8425 #if defined (__stub_getopt) || defined (__stub___getopt)
8428 char (*f) () = getopt;
8442 rm -f conftest.$ac_objext conftest$ac_exeext
8443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8444 (eval $ac_link) 2>&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); } &&
8448 { ac_try='test -s conftest$ac_exeext'
8449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); }; }; then
8454 ac_cv_func_getopt=yes
8456 echo "$as_me: failed program was:" >&5
8457 sed 's/^/| /' conftest.$ac_ext >&5
8459 ac_cv_func_getopt=no
8461 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8463 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
8464 echo "${ECHO_T}$ac_cv_func_getopt" >&6
8466 if test $ac_cv_func_getopt = yes; then
8468 for ac_header in getopt.h
8470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8472 echo "$as_me:$LINENO: checking for $ac_header" >&5
8473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8475 echo $ECHO_N "(cached) $ECHO_C" >&6
8477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8478 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8480 # Is the header compilable?
8481 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8482 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8483 cat >conftest.$ac_ext <<_ACEOF
8484 #line $LINENO "configure"
8487 cat confdefs.h >>conftest.$ac_ext
8488 cat >>conftest.$ac_ext <<_ACEOF
8489 /* end confdefs.h. */
8490 $ac_includes_default
8491 #include <$ac_header>
8493 rm -f conftest.$ac_objext
8494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8495 (eval $ac_compile) 2>&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } &&
8499 { ac_try='test -s conftest.$ac_objext'
8500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); }; }; then
8505 ac_header_compiler=yes
8507 echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.$ac_ext >&5
8510 ac_header_compiler=no
8512 rm -f conftest.$ac_objext conftest.$ac_ext
8513 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8514 echo "${ECHO_T}$ac_header_compiler" >&6
8516 # Is the header present?
8517 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8518 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8519 cat >conftest.$ac_ext <<_ACEOF
8520 #line $LINENO "configure"
8523 cat confdefs.h >>conftest.$ac_ext
8524 cat >>conftest.$ac_ext <<_ACEOF
8525 /* end confdefs.h. */
8526 #include <$ac_header>
8528 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8529 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8531 grep -v '^ *+' conftest.er1 >conftest.err
8533 cat conftest.err >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); } >/dev/null; then
8536 if test -s conftest.err; then
8537 ac_cpp_err=$ac_c_preproc_warn_flag
8544 if test -z "$ac_cpp_err"; then
8545 ac_header_preproc=yes
8547 echo "$as_me: failed program was:" >&5
8548 sed 's/^/| /' conftest.$ac_ext >&5
8550 ac_header_preproc=no
8552 rm -f conftest.err conftest.$ac_ext
8553 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8554 echo "${ECHO_T}$ac_header_preproc" >&6
8556 # So? What about this header?
8557 case $ac_header_compiler:$ac_header_preproc in
8559 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8560 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8562 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8565 ## ------------------------------------ ##
8566 ## Report this to bug-autoconf@gnu.org. ##
8567 ## ------------------------------------ ##
8570 sed "s/^/$as_me: WARNING: /" >&2
8573 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8574 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8575 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8576 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8578 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8581 ## ------------------------------------ ##
8582 ## Report this to bug-autoconf@gnu.org. ##
8583 ## ------------------------------------ ##
8586 sed "s/^/$as_me: WARNING: /" >&2
8589 echo "$as_me:$LINENO: checking for $ac_header" >&5
8590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8592 echo $ECHO_N "(cached) $ECHO_C" >&6
8594 eval "$as_ac_Header=$ac_header_preproc"
8596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8597 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8601 cat >>confdefs.h <<_ACEOF
8602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8614 for ac_func in snprintf
8616 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8617 echo "$as_me:$LINENO: checking for $ac_func" >&5
8618 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8619 if eval "test \"\${$as_ac_var+set}\" = set"; then
8620 echo $ECHO_N "(cached) $ECHO_C" >&6
8622 cat >conftest.$ac_ext <<_ACEOF
8623 #line $LINENO "configure"
8626 cat confdefs.h >>conftest.$ac_ext
8627 cat >>conftest.$ac_ext <<_ACEOF
8628 /* end confdefs.h. */
8629 /* System header to define __stub macros and hopefully few prototypes,
8630 which can conflict with char $ac_func (); below.
8631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8632 <limits.h> exists even on freestanding compilers. */
8634 # include <limits.h>
8636 # include <assert.h>
8638 /* Override any gcc2 internal prototype to avoid an error. */
8643 /* We use char because int might match the return type of a gcc2
8644 builtin and then its argument prototype would still apply. */
8646 /* The GNU C library defines this for functions which it implements
8647 to always fail with ENOSYS. Some functions are actually named
8648 something starting with __ and the normal name is an alias. */
8649 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8652 char (*f) () = $ac_func;
8661 return f != $ac_func;
8666 rm -f conftest.$ac_objext conftest$ac_exeext
8667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8668 (eval $ac_link) 2>&5
8670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671 (exit $ac_status); } &&
8672 { ac_try='test -s conftest$ac_exeext'
8673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); }; }; then
8678 eval "$as_ac_var=yes"
8680 echo "$as_me: failed program was:" >&5
8681 sed 's/^/| /' conftest.$ac_ext >&5
8683 eval "$as_ac_var=no"
8685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8688 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8689 if test `eval echo '${'$as_ac_var'}'` = yes; then
8690 cat >>confdefs.h <<_ACEOF
8691 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8695 mutt_cv_snprintf=yes
8700 for ac_func in vsnprintf
8702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8703 echo "$as_me:$LINENO: checking for $ac_func" >&5
8704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8705 if eval "test \"\${$as_ac_var+set}\" = set"; then
8706 echo $ECHO_N "(cached) $ECHO_C" >&6
8708 cat >conftest.$ac_ext <<_ACEOF
8709 #line $LINENO "configure"
8712 cat confdefs.h >>conftest.$ac_ext
8713 cat >>conftest.$ac_ext <<_ACEOF
8714 /* end confdefs.h. */
8715 /* System header to define __stub macros and hopefully few prototypes,
8716 which can conflict with char $ac_func (); below.
8717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8718 <limits.h> exists even on freestanding compilers. */
8720 # include <limits.h>
8722 # include <assert.h>
8724 /* Override any gcc2 internal prototype to avoid an error. */
8729 /* We use char because int might match the return type of a gcc2
8730 builtin and then its argument prototype would still apply. */
8732 /* The GNU C library defines this for functions which it implements
8733 to always fail with ENOSYS. Some functions are actually named
8734 something starting with __ and the normal name is an alias. */
8735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8738 char (*f) () = $ac_func;
8747 return f != $ac_func;
8752 rm -f conftest.$ac_objext conftest$ac_exeext
8753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8754 (eval $ac_link) 2>&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); } &&
8758 { ac_try='test -s conftest$ac_exeext'
8759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); }; }; then
8764 eval "$as_ac_var=yes"
8766 echo "$as_me: failed program was:" >&5
8767 sed 's/^/| /' conftest.$ac_ext >&5
8769 eval "$as_ac_var=no"
8771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8774 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8775 if test `eval echo '${'$as_ac_var'}'` = yes; then
8776 cat >>confdefs.h <<_ACEOF
8777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8781 mutt_cv_snprintf=yes
8785 if test $mutt_cv_snprintf = yes; then
8786 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
8790 for ac_func in ftruncate
8792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8793 echo "$as_me:$LINENO: checking for $ac_func" >&5
8794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8795 if eval "test \"\${$as_ac_var+set}\" = set"; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8798 cat >conftest.$ac_ext <<_ACEOF
8799 #line $LINENO "configure"
8802 cat confdefs.h >>conftest.$ac_ext
8803 cat >>conftest.$ac_ext <<_ACEOF
8804 /* end confdefs.h. */
8805 /* System header to define __stub macros and hopefully few prototypes,
8806 which can conflict with char $ac_func (); below.
8807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8808 <limits.h> exists even on freestanding compilers. */
8810 # include <limits.h>
8812 # include <assert.h>
8814 /* Override any gcc2 internal prototype to avoid an error. */
8819 /* We use char because int might match the return type of a gcc2
8820 builtin and then its argument prototype would still apply. */
8822 /* The GNU C library defines this for functions which it implements
8823 to always fail with ENOSYS. Some functions are actually named
8824 something starting with __ and the normal name is an alias. */
8825 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8828 char (*f) () = $ac_func;
8837 return f != $ac_func;
8842 rm -f conftest.$ac_objext conftest$ac_exeext
8843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8844 (eval $ac_link) 2>&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); } &&
8848 { ac_try='test -s conftest$ac_exeext'
8849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); }; }; then
8854 eval "$as_ac_var=yes"
8856 echo "$as_me: failed program was:" >&5
8857 sed 's/^/| /' conftest.$ac_ext >&5
8859 eval "$as_ac_var=no"
8861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8863 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8864 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8865 if test `eval echo '${'$as_ac_var'}'` = yes; then
8866 cat >>confdefs.h <<_ACEOF
8867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8872 echo "$as_me:$LINENO: checking for chsize in -lx" >&5
8873 echo $ECHO_N "checking for chsize in -lx... $ECHO_C" >&6
8874 if test "${ac_cv_lib_x_chsize+set}" = set; then
8875 echo $ECHO_N "(cached) $ECHO_C" >&6
8877 ac_check_lib_save_LIBS=$LIBS
8879 cat >conftest.$ac_ext <<_ACEOF
8880 #line $LINENO "configure"
8883 cat confdefs.h >>conftest.$ac_ext
8884 cat >>conftest.$ac_ext <<_ACEOF
8885 /* end confdefs.h. */
8887 /* Override any gcc2 internal prototype to avoid an error. */
8891 /* We use char because int might match the return type of a gcc2
8892 builtin and then its argument prototype would still apply. */
8902 rm -f conftest.$ac_objext conftest$ac_exeext
8903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8904 (eval $ac_link) 2>&5
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); } &&
8908 { ac_try='test -s conftest$ac_exeext'
8909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); }; }; then
8914 ac_cv_lib_x_chsize=yes
8916 echo "$as_me: failed program was:" >&5
8917 sed 's/^/| /' conftest.$ac_ext >&5
8919 ac_cv_lib_x_chsize=no
8921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8922 LIBS=$ac_check_lib_save_LIBS
8924 echo "$as_me:$LINENO: result: $ac_cv_lib_x_chsize" >&5
8925 echo "${ECHO_T}$ac_cv_lib_x_chsize" >&6
8926 if test $ac_cv_lib_x_chsize = yes; then
8927 cat >>confdefs.h <<_ACEOF
8940 for ac_func in strftime
8942 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8943 echo "$as_me:$LINENO: checking for $ac_func" >&5
8944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8945 if eval "test \"\${$as_ac_var+set}\" = set"; then
8946 echo $ECHO_N "(cached) $ECHO_C" >&6
8948 cat >conftest.$ac_ext <<_ACEOF
8949 #line $LINENO "configure"
8952 cat confdefs.h >>conftest.$ac_ext
8953 cat >>conftest.$ac_ext <<_ACEOF
8954 /* end confdefs.h. */
8955 /* System header to define __stub macros and hopefully few prototypes,
8956 which can conflict with char $ac_func (); below.
8957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8958 <limits.h> exists even on freestanding compilers. */
8960 # include <limits.h>
8962 # include <assert.h>
8964 /* Override any gcc2 internal prototype to avoid an error. */
8969 /* We use char because int might match the return type of a gcc2
8970 builtin and then its argument prototype would still apply. */
8972 /* The GNU C library defines this for functions which it implements
8973 to always fail with ENOSYS. Some functions are actually named
8974 something starting with __ and the normal name is an alias. */
8975 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8978 char (*f) () = $ac_func;
8987 return f != $ac_func;
8992 rm -f conftest.$ac_objext conftest$ac_exeext
8993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8994 (eval $ac_link) 2>&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); } &&
8998 { ac_try='test -s conftest$ac_exeext'
8999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); }; }; then
9004 eval "$as_ac_var=yes"
9006 echo "$as_me: failed program was:" >&5
9007 sed 's/^/| /' conftest.$ac_ext >&5
9009 eval "$as_ac_var=no"
9011 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9013 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9014 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9015 if test `eval echo '${'$as_ac_var'}'` = yes; then
9016 cat >>confdefs.h <<_ACEOF
9017 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9022 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
9023 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
9024 if test "${ac_cv_lib_intl_strftime+set}" = set; then
9025 echo $ECHO_N "(cached) $ECHO_C" >&6
9027 ac_check_lib_save_LIBS=$LIBS
9029 cat >conftest.$ac_ext <<_ACEOF
9030 #line $LINENO "configure"
9033 cat confdefs.h >>conftest.$ac_ext
9034 cat >>conftest.$ac_ext <<_ACEOF
9035 /* end confdefs.h. */
9037 /* Override any gcc2 internal prototype to avoid an error. */
9041 /* We use char because int might match the return type of a gcc2
9042 builtin and then its argument prototype would still apply. */
9052 rm -f conftest.$ac_objext conftest$ac_exeext
9053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9054 (eval $ac_link) 2>&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); } &&
9058 { ac_try='test -s conftest$ac_exeext'
9059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); }; }; then
9064 ac_cv_lib_intl_strftime=yes
9066 echo "$as_me: failed program was:" >&5
9067 sed 's/^/| /' conftest.$ac_ext >&5
9069 ac_cv_lib_intl_strftime=no
9071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9072 LIBS=$ac_check_lib_save_LIBS
9074 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
9075 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
9076 if test $ac_cv_lib_intl_strftime = yes; then
9077 cat >>confdefs.h <<_ACEOF
9078 #define HAVE_LIBINTL 1
9090 for ac_func in fchdir
9092 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9093 echo "$as_me:$LINENO: checking for $ac_func" >&5
9094 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9095 if eval "test \"\${$as_ac_var+set}\" = set"; then
9096 echo $ECHO_N "(cached) $ECHO_C" >&6
9098 cat >conftest.$ac_ext <<_ACEOF
9099 #line $LINENO "configure"
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h. */
9105 /* System header to define __stub macros and hopefully few prototypes,
9106 which can conflict with char $ac_func (); below.
9107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9108 <limits.h> exists even on freestanding compilers. */
9110 # include <limits.h>
9112 # include <assert.h>
9114 /* Override any gcc2 internal prototype to avoid an error. */
9119 /* We use char because int might match the return type of a gcc2
9120 builtin and then its argument prototype would still apply. */
9122 /* The GNU C library defines this for functions which it implements
9123 to always fail with ENOSYS. Some functions are actually named
9124 something starting with __ and the normal name is an alias. */
9125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9128 char (*f) () = $ac_func;
9137 return f != $ac_func;
9142 rm -f conftest.$ac_objext conftest$ac_exeext
9143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9144 (eval $ac_link) 2>&5
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); } &&
9148 { ac_try='test -s conftest$ac_exeext'
9149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9153 (exit $ac_status); }; }; then
9154 eval "$as_ac_var=yes"
9156 echo "$as_me: failed program was:" >&5
9157 sed 's/^/| /' conftest.$ac_ext >&5
9159 eval "$as_ac_var=no"
9161 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9163 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9164 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9165 if test `eval echo '${'$as_ac_var'}'` = yes; then
9166 cat >>confdefs.h <<_ACEOF
9167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9177 # Check whether --with-regex or --without-regex was given.
9178 if test "${with_regex+set}" = set; then
9179 withval="$with_regex"
9183 for ac_func in regcomp
9185 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9186 echo "$as_me:$LINENO: checking for $ac_func" >&5
9187 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9188 if eval "test \"\${$as_ac_var+set}\" = set"; then
9189 echo $ECHO_N "(cached) $ECHO_C" >&6
9191 cat >conftest.$ac_ext <<_ACEOF
9192 #line $LINENO "configure"
9195 cat confdefs.h >>conftest.$ac_ext
9196 cat >>conftest.$ac_ext <<_ACEOF
9197 /* end confdefs.h. */
9198 /* System header to define __stub macros and hopefully few prototypes,
9199 which can conflict with char $ac_func (); below.
9200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9201 <limits.h> exists even on freestanding compilers. */
9203 # include <limits.h>
9205 # include <assert.h>
9207 /* Override any gcc2 internal prototype to avoid an error. */
9212 /* We use char because int might match the return type of a gcc2
9213 builtin and then its argument prototype would still apply. */
9215 /* The GNU C library defines this for functions which it implements
9216 to always fail with ENOSYS. Some functions are actually named
9217 something starting with __ and the normal name is an alias. */
9218 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9221 char (*f) () = $ac_func;
9230 return f != $ac_func;
9235 rm -f conftest.$ac_objext conftest$ac_exeext
9236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9237 (eval $ac_link) 2>&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); } &&
9241 { ac_try='test -s conftest$ac_exeext'
9242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); }; }; then
9247 eval "$as_ac_var=yes"
9249 echo "$as_me: failed program was:" >&5
9250 sed 's/^/| /' conftest.$ac_ext >&5
9252 eval "$as_ac_var=no"
9254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9257 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9258 if test `eval echo '${'$as_ac_var'}'` = yes; then
9259 cat >>confdefs.h <<_ACEOF
9260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9270 if test $mutt_cv_regex = no ; then
9271 echo "$as_me:$LINENO: checking whether your system's regexp library is completely broken" >&5
9272 echo $ECHO_N "checking whether your system's regexp library is completely broken... $ECHO_C" >&6
9273 if test "${mutt_cv_regex_broken+set}" = set; then
9274 echo $ECHO_N "(cached) $ECHO_C" >&6
9276 if test "$cross_compiling" = yes; then
9277 mutt_cv_regex_broken=yes
9279 cat >conftest.$ac_ext <<_ACEOF
9280 #line $LINENO "configure"
9283 cat confdefs.h >>conftest.$ac_ext
9284 cat >>conftest.$ac_ext <<_ACEOF
9285 /* end confdefs.h. */
9289 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); }
9291 rm -f conftest$ac_exeext
9292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9293 (eval $ac_link) 2>&5
9295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); }; }; then
9302 mutt_cv_regex_broken=no
9304 echo "$as_me: program exited with status $ac_status" >&5
9305 echo "$as_me: failed program was:" >&5
9306 sed 's/^/| /' conftest.$ac_ext >&5
9309 mutt_cv_regex_broken=yes
9311 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9314 echo "$as_me:$LINENO: result: $mutt_cv_regex_broken" >&5
9315 echo "${ECHO_T}$mutt_cv_regex_broken" >&6
9316 if test $mutt_cv_regex_broken = yes ; then
9317 echo "Using the included GNU regex instead." >&6
9322 if test $mutt_cv_regex = yes; then
9324 cat >>confdefs.h <<\_ACEOF
9325 #define USE_GNU_REGEX 1
9328 LIBOBJS="$LIBOBJS regex.$ac_objext"
9333 # Check whether --with-homespool or --without-homespool was given.
9334 if test "${with_homespool+set}" = set; then
9335 withval="$with_homespool"
9336 with_homespool=${withval}
9338 if test x$with_homespool != x; then
9339 if test $with_homespool = yes; then
9340 with_homespool=mailbox
9343 cat >>confdefs.h <<_ACEOF
9344 #define MAILPATH "$with_homespool"
9348 cat >>confdefs.h <<\_ACEOF
9353 cat >>confdefs.h <<\_ACEOF
9354 #define USE_DOTLOCK 1
9360 # Check whether --with-mailpath or --without-mailpath was given.
9361 if test "${with_mailpath+set}" = set; then
9362 withval="$with_mailpath"
9363 mutt_cv_mailpath=$withval
9365 echo "$as_me:$LINENO: checking where new mail is stored" >&5
9366 echo $ECHO_N "checking where new mail is stored... $ECHO_C" >&6
9367 if test "${mutt_cv_mailpath+set}" = set; then
9368 echo $ECHO_N "(cached) $ECHO_C" >&6
9371 if test -d /var/mail; then
9372 mutt_cv_mailpath=/var/mail
9373 elif test -d /var/spool/mail; then
9374 mutt_cv_mailpath=/var/spool/mail
9375 elif test -d /usr/spool/mail; then
9376 mutt_cv_mailpath=/usr/spool/mail
9377 elif test -d /usr/mail; then
9378 mutt_cv_mailpath=/usr/mail
9381 echo "$as_me:$LINENO: result: $mutt_cv_mailpath" >&5
9382 echo "${ECHO_T}$mutt_cv_mailpath" >&6
9385 if test "$mutt_cv_mailpath" = no; then
9386 { { echo "$as_me:$LINENO: error: \"Could not determine where new mail is stored.\"" >&5
9387 echo "$as_me: error: \"Could not determine where new mail is stored.\"" >&2;}
9388 { (exit 1); exit 1; }; }
9391 cat >>confdefs.h <<_ACEOF
9392 #define MAILPATH "$mutt_cv_mailpath"
9396 echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is world writable" >&5
9397 echo $ECHO_N "checking if $mutt_cv_mailpath is world writable... $ECHO_C" >&6
9398 if test "${mutt_cv_worldwrite+set}" = set; then
9399 echo $ECHO_N "(cached) $ECHO_C" >&6
9401 if test "$cross_compiling" = yes; then
9402 mutt_cv_worldwrite=no
9404 cat >conftest.$ac_ext <<_ACEOF
9405 #line $LINENO "configure"
9408 cat confdefs.h >>conftest.$ac_ext
9409 cat >>conftest.$ac_ext <<_ACEOF
9410 /* end confdefs.h. */
9411 #include <sys/types.h>
9412 #include <sys/stat.h>
9414 int main (int argc, char **argv)
9418 stat ("$mutt_cv_mailpath", &s);
9419 if (s.st_mode & S_IWOTH) exit (0);
9423 rm -f conftest$ac_exeext
9424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9425 (eval $ac_link) 2>&5
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); }; }; then
9434 mutt_cv_worldwrite=yes
9436 echo "$as_me: program exited with status $ac_status" >&5
9437 echo "$as_me: failed program was:" >&5
9438 sed 's/^/| /' conftest.$ac_ext >&5
9441 mutt_cv_worldwrite=no
9443 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9446 echo "$as_me:$LINENO: result: $mutt_cv_worldwrite" >&5
9447 echo "${ECHO_T}$mutt_cv_worldwrite" >&6
9450 if test $mutt_cv_worldwrite = yes; then
9452 cat >>confdefs.h <<\_ACEOF
9453 #define USE_DOTLOCK 1
9458 echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is group writable" >&5
9459 echo $ECHO_N "checking if $mutt_cv_mailpath is group writable... $ECHO_C" >&6
9460 if test "${mutt_cv_groupwrite+set}" = set; then
9461 echo $ECHO_N "(cached) $ECHO_C" >&6
9463 if test "$cross_compiling" = yes; then
9464 mutt_cv_groupwrite=no
9466 cat >conftest.$ac_ext <<_ACEOF
9467 #line $LINENO "configure"
9470 cat confdefs.h >>conftest.$ac_ext
9471 cat >>conftest.$ac_ext <<_ACEOF
9472 /* end confdefs.h. */
9473 #include <sys/types.h>
9474 #include <sys/stat.h>
9476 int main (int argc, char **argv)
9480 stat ("$mutt_cv_mailpath", &s);
9481 if (s.st_mode & S_IWGRP) exit (0);
9485 rm -f conftest$ac_exeext
9486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9487 (eval $ac_link) 2>&5
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); }; }; then
9496 mutt_cv_groupwrite=yes
9498 echo "$as_me: program exited with status $ac_status" >&5
9499 echo "$as_me: failed program was:" >&5
9500 sed 's/^/| /' conftest.$ac_ext >&5
9503 mutt_cv_groupwrite=no
9505 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9508 echo "$as_me:$LINENO: result: $mutt_cv_groupwrite" >&5
9509 echo "${ECHO_T}$mutt_cv_groupwrite" >&6
9511 if test $mutt_cv_groupwrite = yes; then
9513 cat >>confdefs.h <<\_ACEOF
9514 #define USE_DOTLOCK 1
9518 cat >>confdefs.h <<\_ACEOF
9519 #define USE_SETGID 1
9527 # Check whether --enable-external_dotlock or --disable-external_dotlock was given.
9528 if test "${enable_external_dotlock+set}" = set; then
9529 enableval="$enable_external_dotlock"
9530 mutt_cv_external_dotlock="$enableval"
9533 if test "x$mutt_cv_setgid" = "xyes" || test "x$mutt_cv_fchdir" = "xno" \
9534 || test "x$mutt_cv_external_dotlock" = "xyes"
9537 cat >>confdefs.h <<\_ACEOF
9538 #define DL_STANDALONE 1
9541 DOTLOCK_TARGET="mutt_dotlock"
9543 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS dotlock.o"
9549 echo "$as_me:$LINENO: checking where to put the documentation" >&5
9550 echo $ECHO_N "checking where to put the documentation... $ECHO_C" >&6
9552 # Check whether --with-docdir or --without-docdir was given.
9553 if test "${with_docdir+set}" = set; then
9554 withval="$with_docdir"
9555 mutt_cv_docdir=$withval
9557 mutt_cv_docdir="$mutt_cv_prefix/doc/mutt"
9559 echo "$as_me:$LINENO: result: $mutt_cv_docdir" >&5
9560 echo "${ECHO_T}$mutt_cv_docdir" >&6
9562 docdir=$mutt_cv_docdir
9565 if test x$mutt_cv_setgid = xyes; then
9566 DOTLOCK_GROUP='mail'
9567 DOTLOCK_PERMISSION=2755
9570 DOTLOCK_PERMISSION=755
9576 # Check whether --with-domain or --without-domain was given.
9577 if test "${with_domain+set}" = set; then
9578 withval="$with_domain"
9579 if test $withval != yes; then
9581 cat >>confdefs.h <<_ACEOF
9582 #define DOMAIN "$withval"
9591 # Check whether --enable-pop or --disable-pop was given.
9592 if test "${enable_pop+set}" = set; then
9593 enableval="$enable_pop"
9594 if test x$enableval = xyes ; then
9596 cat >>confdefs.h <<\_ACEOF
9600 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pop.o pop_lib.o pop_auth.o"
9607 # Check whether --enable-imap or --disable-imap was given.
9608 if test "${enable_imap+set}" = set; then
9609 enableval="$enable_imap"
9610 if test x$enableval = xyes ; then
9612 cat >>confdefs.h <<\_ACEOF
9616 LIBIMAP="-Limap -limap"
9617 LIBIMAPDEPS="\$(top_srcdir)/imap/imap.h imap/libimap.a"
9626 if test x$need_imap = xyes; then
9628 BUILD_IMAP_FALSE='#'
9635 # Check whether --enable-nntp or --disable-nntp was given.
9636 if test "${enable_nntp+set}" = set; then
9637 enableval="$enable_nntp"
9638 if test x$enableval = xyes ; then
9639 cat >>confdefs.h <<\_ACEOF
9643 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS nntp.o newsrc.o"
9650 if test "$need_socket" = "yes"
9652 echo "$as_me:$LINENO: checking for socklen_t" >&5
9653 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
9654 cat >conftest.$ac_ext <<_ACEOF
9655 #line $LINENO "configure"
9658 cat confdefs.h >>conftest.$ac_ext
9659 cat >>conftest.$ac_ext <<_ACEOF
9660 /* end confdefs.h. */
9661 #include <sys/socket.h>
9664 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9665 $EGREP "socklen_t" >/dev/null 2>&1; then
9666 echo "$as_me:$LINENO: result: yes" >&5
9667 echo "${ECHO_T}yes" >&6
9669 echo "$as_me:$LINENO: result: no" >&5
9670 echo "${ECHO_T}no" >&6
9672 cat >>confdefs.h <<\_ACEOF
9673 #define socklen_t int
9679 echo "$as_me:$LINENO: checking for gethostent" >&5
9680 echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
9681 if test "${ac_cv_func_gethostent+set}" = set; then
9682 echo $ECHO_N "(cached) $ECHO_C" >&6
9684 cat >conftest.$ac_ext <<_ACEOF
9685 #line $LINENO "configure"
9688 cat confdefs.h >>conftest.$ac_ext
9689 cat >>conftest.$ac_ext <<_ACEOF
9690 /* end confdefs.h. */
9691 /* System header to define __stub macros and hopefully few prototypes,
9692 which can conflict with char gethostent (); below.
9693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9694 <limits.h> exists even on freestanding compilers. */
9696 # include <limits.h>
9698 # include <assert.h>
9700 /* Override any gcc2 internal prototype to avoid an error. */
9705 /* We use char because int might match the return type of a gcc2
9706 builtin and then its argument prototype would still apply. */
9708 /* The GNU C library defines this for functions which it implements
9709 to always fail with ENOSYS. Some functions are actually named
9710 something starting with __ and the normal name is an alias. */
9711 #if defined (__stub_gethostent) || defined (__stub___gethostent)
9714 char (*f) () = gethostent;
9723 return f != gethostent;
9728 rm -f conftest.$ac_objext conftest$ac_exeext
9729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9730 (eval $ac_link) 2>&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); } &&
9734 { ac_try='test -s conftest$ac_exeext'
9735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); }; }; then
9740 ac_cv_func_gethostent=yes
9742 echo "$as_me: failed program was:" >&5
9743 sed 's/^/| /' conftest.$ac_ext >&5
9745 ac_cv_func_gethostent=no
9747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9749 echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5
9750 echo "${ECHO_T}$ac_cv_func_gethostent" >&6
9751 if test $ac_cv_func_gethostent = yes; then
9755 echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
9756 echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
9757 if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
9758 echo $ECHO_N "(cached) $ECHO_C" >&6
9760 ac_check_lib_save_LIBS=$LIBS
9762 cat >conftest.$ac_ext <<_ACEOF
9763 #line $LINENO "configure"
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h. */
9770 /* Override any gcc2 internal prototype to avoid an error. */
9774 /* We use char because int might match the return type of a gcc2
9775 builtin and then its argument prototype would still apply. */
9785 rm -f conftest.$ac_objext conftest$ac_exeext
9786 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9787 (eval $ac_link) 2>&5
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); } &&
9791 { ac_try='test -s conftest$ac_exeext'
9792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); }; }; then
9797 ac_cv_lib_nsl_gethostent=yes
9799 echo "$as_me: failed program was:" >&5
9800 sed 's/^/| /' conftest.$ac_ext >&5
9802 ac_cv_lib_nsl_gethostent=no
9804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9805 LIBS=$ac_check_lib_save_LIBS
9807 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
9808 echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
9809 if test $ac_cv_lib_nsl_gethostent = yes; then
9810 cat >>confdefs.h <<_ACEOF
9811 #define HAVE_LIBNSL 1
9820 echo "$as_me:$LINENO: checking for setsockopt" >&5
9821 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
9822 if test "${ac_cv_func_setsockopt+set}" = set; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
9825 cat >conftest.$ac_ext <<_ACEOF
9826 #line $LINENO "configure"
9829 cat confdefs.h >>conftest.$ac_ext
9830 cat >>conftest.$ac_ext <<_ACEOF
9831 /* end confdefs.h. */
9832 /* System header to define __stub macros and hopefully few prototypes,
9833 which can conflict with char setsockopt (); below.
9834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9835 <limits.h> exists even on freestanding compilers. */
9837 # include <limits.h>
9839 # include <assert.h>
9841 /* Override any gcc2 internal prototype to avoid an error. */
9846 /* We use char because int might match the return type of a gcc2
9847 builtin and then its argument prototype would still apply. */
9849 /* The GNU C library defines this for functions which it implements
9850 to always fail with ENOSYS. Some functions are actually named
9851 something starting with __ and the normal name is an alias. */
9852 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
9855 char (*f) () = setsockopt;
9864 return f != setsockopt;
9869 rm -f conftest.$ac_objext conftest$ac_exeext
9870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9871 (eval $ac_link) 2>&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); } &&
9875 { ac_try='test -s conftest$ac_exeext'
9876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9880 (exit $ac_status); }; }; then
9881 ac_cv_func_setsockopt=yes
9883 echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.$ac_ext >&5
9886 ac_cv_func_setsockopt=no
9888 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9890 echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
9891 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
9892 if test $ac_cv_func_setsockopt = yes; then
9896 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
9897 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
9898 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
9899 echo $ECHO_N "(cached) $ECHO_C" >&6
9901 ac_check_lib_save_LIBS=$LIBS
9902 LIBS="-lsocket $LIBS"
9903 cat >conftest.$ac_ext <<_ACEOF
9904 #line $LINENO "configure"
9907 cat confdefs.h >>conftest.$ac_ext
9908 cat >>conftest.$ac_ext <<_ACEOF
9909 /* end confdefs.h. */
9911 /* Override any gcc2 internal prototype to avoid an error. */
9915 /* We use char because int might match the return type of a gcc2
9916 builtin and then its argument prototype would still apply. */
9926 rm -f conftest.$ac_objext conftest$ac_exeext
9927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9928 (eval $ac_link) 2>&5
9930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9931 (exit $ac_status); } &&
9932 { ac_try='test -s conftest$ac_exeext'
9933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); }; }; then
9938 ac_cv_lib_socket_setsockopt=yes
9940 echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.$ac_ext >&5
9943 ac_cv_lib_socket_setsockopt=no
9945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9946 LIBS=$ac_check_lib_save_LIBS
9948 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
9949 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
9950 if test $ac_cv_lib_socket_setsockopt = yes; then
9951 cat >>confdefs.h <<_ACEOF
9952 #define HAVE_LIBSOCKET 1
9955 LIBS="-lsocket $LIBS"
9962 for ac_func in getaddrinfo
9964 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9965 echo "$as_me:$LINENO: checking for $ac_func" >&5
9966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9967 if eval "test \"\${$as_ac_var+set}\" = set"; then
9968 echo $ECHO_N "(cached) $ECHO_C" >&6
9970 cat >conftest.$ac_ext <<_ACEOF
9971 #line $LINENO "configure"
9974 cat confdefs.h >>conftest.$ac_ext
9975 cat >>conftest.$ac_ext <<_ACEOF
9976 /* end confdefs.h. */
9977 /* System header to define __stub macros and hopefully few prototypes,
9978 which can conflict with char $ac_func (); below.
9979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9980 <limits.h> exists even on freestanding compilers. */
9982 # include <limits.h>
9984 # include <assert.h>
9986 /* Override any gcc2 internal prototype to avoid an error. */
9991 /* We use char because int might match the return type of a gcc2
9992 builtin and then its argument prototype would still apply. */
9994 /* The GNU C library defines this for functions which it implements
9995 to always fail with ENOSYS. Some functions are actually named
9996 something starting with __ and the normal name is an alias. */
9997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10000 char (*f) () = $ac_func;
10009 return f != $ac_func;
10014 rm -f conftest.$ac_objext conftest$ac_exeext
10015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10016 (eval $ac_link) 2>&5
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); } &&
10020 { ac_try='test -s conftest$ac_exeext'
10021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10022 (eval $ac_try) 2>&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); }; }; then
10026 eval "$as_ac_var=yes"
10028 echo "$as_me: failed program was:" >&5
10029 sed 's/^/| /' conftest.$ac_ext >&5
10031 eval "$as_ac_var=no"
10033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10036 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10037 if test `eval echo '${'$as_ac_var'}'` = yes; then
10038 cat >>confdefs.h <<_ACEOF
10039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10046 cat >>confdefs.h <<\_ACEOF
10047 #define USE_SOCKET 1
10050 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS account.o mutt_socket.o mutt_tunnel.o"
10055 # Check whether --with-gss or --without-gss was given.
10056 if test "${with_gss+set}" = set; then
10057 withval="$with_gss"
10058 gss_prefix="$withval"
10062 if test "$gss_prefix" != "no"
10064 if test "$need_imap" = "yes"
10067 GSSAPI_PREFIX=$gss_prefix
10069 saved_CPPFLAGS="$CPPFLAGS"
10070 saved_LDFLAGS="$LDFLAGS"
10072 if test "$GSSAPI_PREFIX" != "yes"
10074 krb5_path="$GSSAPI_PREFIX/bin"
10078 # Extract the first word of "krb5-config", so it can be a program name with args.
10079 set dummy krb5-config; ac_word=$2
10080 echo "$as_me:$LINENO: checking for $ac_word" >&5
10081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10082 if test "${ac_cv_path_KRB5CFGPATH+set}" = set; then
10083 echo $ECHO_N "(cached) $ECHO_C" >&6
10085 case $KRB5CFGPATH in
10087 ac_cv_path_KRB5CFGPATH="$KRB5CFGPATH" # Let the user override the test with a path.
10090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10091 for as_dir in $krb5_path
10094 test -z "$as_dir" && as_dir=.
10095 for ac_exec_ext in '' $ac_executable_extensions; do
10096 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10097 ac_cv_path_KRB5CFGPATH="$as_dir/$ac_word$ac_exec_ext"
10098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10104 test -z "$ac_cv_path_KRB5CFGPATH" && ac_cv_path_KRB5CFGPATH="none"
10108 KRB5CFGPATH=$ac_cv_path_KRB5CFGPATH
10110 if test -n "$KRB5CFGPATH"; then
10111 echo "$as_me:$LINENO: result: $KRB5CFGPATH" >&5
10112 echo "${ECHO_T}$KRB5CFGPATH" >&6
10114 echo "$as_me:$LINENO: result: no" >&5
10115 echo "${ECHO_T}no" >&6
10118 if test "$KRB5CFGPATH" != "none"
10120 GSSAPI_CFLAGS="$CPPFLAGS `$KRB5CFGPATH --cflags gssapi`"
10121 GSSAPI_LIBS="$MUTTLIBS `$KRB5CFGPATH --libs gssapi`"
10122 case "`$KRB5CFGPATH --version`" in
10123 "Kerberos 5 "*) GSSAPI_IMPL="MIT";;
10124 ?eimdal*) GSSAPI_IMPL="Heimdal";;
10125 *) GSSAPI_IMPL="Unknown";;
10128 if test "$GSSAPI_PREFIX" != "yes"
10130 GSSAPI_CFLAGS="-I$GSSAPI_PREFIX/include"
10131 GSSAPI_LDFLAGS="-L$GSSAPI_PREFIX/lib"
10132 CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
10133 LDFLAGS="$LDFLAGS $GSSAPI_LDFLAGS"
10136 echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
10137 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6
10138 if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
10139 echo $ECHO_N "(cached) $ECHO_C" >&6
10141 ac_check_lib_save_LIBS=$LIBS
10142 LIBS="-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err $LIBS"
10143 cat >conftest.$ac_ext <<_ACEOF
10144 #line $LINENO "configure"
10147 cat confdefs.h >>conftest.$ac_ext
10148 cat >>conftest.$ac_ext <<_ACEOF
10149 /* end confdefs.h. */
10151 /* Override any gcc2 internal prototype to avoid an error. */
10155 /* We use char because int might match the return type of a gcc2
10156 builtin and then its argument prototype would still apply. */
10157 char gss_init_sec_context ();
10161 gss_init_sec_context ();
10166 rm -f conftest.$ac_objext conftest$ac_exeext
10167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10168 (eval $ac_link) 2>&5
10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); } &&
10172 { ac_try='test -s conftest$ac_exeext'
10173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10174 (eval $ac_try) 2>&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); }; }; then
10178 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
10180 echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.$ac_ext >&5
10183 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
10185 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10186 LIBS=$ac_check_lib_save_LIBS
10188 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
10189 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6
10190 if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
10193 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err"
10198 if test "$GSSAPI_IMPL" = "none"
10200 echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
10201 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6
10202 if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
10203 echo $ECHO_N "(cached) $ECHO_C" >&6
10205 ac_check_lib_save_LIBS=$LIBS
10206 LIBS="-lgssapi -lkrb5 -ldes -lasn1 -lroken -lcrypt -lcom_err $LIBS"
10207 cat >conftest.$ac_ext <<_ACEOF
10208 #line $LINENO "configure"
10211 cat confdefs.h >>conftest.$ac_ext
10212 cat >>conftest.$ac_ext <<_ACEOF
10213 /* end confdefs.h. */
10215 /* Override any gcc2 internal prototype to avoid an error. */
10219 /* We use char because int might match the return type of a gcc2
10220 builtin and then its argument prototype would still apply. */
10221 char gss_init_sec_context ();
10225 gss_init_sec_context ();
10230 rm -f conftest.$ac_objext conftest$ac_exeext
10231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10232 (eval $ac_link) 2>&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); } &&
10236 { ac_try='test -s conftest$ac_exeext'
10237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10238 (eval $ac_try) 2>&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); }; }; then
10242 ac_cv_lib_gssapi_gss_init_sec_context=yes
10244 echo "$as_me: failed program was:" >&5
10245 sed 's/^/| /' conftest.$ac_ext >&5
10247 ac_cv_lib_gssapi_gss_init_sec_context=no
10249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10250 LIBS=$ac_check_lib_save_LIBS
10252 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
10253 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6
10254 if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
10256 GSSAPI_IMPL="Heimdal"
10257 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi -lkrb5 -ldes -lasn1 -lroken"
10258 GSSAPI_LIBS="$GSSAPI_LIBS -lcrypt -lcom_err"
10264 if test "$GSSAPI_IMPL" = "none"
10266 echo "$as_me:$LINENO: checking for g_order_init in -lgssapi_krb5" >&5
10267 echo $ECHO_N "checking for g_order_init in -lgssapi_krb5... $ECHO_C" >&6
10268 if test "${ac_cv_lib_gssapi_krb5_g_order_init+set}" = set; then
10269 echo $ECHO_N "(cached) $ECHO_C" >&6
10271 ac_check_lib_save_LIBS=$LIBS
10272 LIBS="-lgssapi_krb5 -lkrb5 -lcrypto -lcom_err $LIBS"
10273 cat >conftest.$ac_ext <<_ACEOF
10274 #line $LINENO "configure"
10277 cat confdefs.h >>conftest.$ac_ext
10278 cat >>conftest.$ac_ext <<_ACEOF
10279 /* end confdefs.h. */
10281 /* Override any gcc2 internal prototype to avoid an error. */
10285 /* We use char because int might match the return type of a gcc2
10286 builtin and then its argument prototype would still apply. */
10287 char g_order_init ();
10296 rm -f conftest.$ac_objext conftest$ac_exeext
10297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10298 (eval $ac_link) 2>&5
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); } &&
10302 { ac_try='test -s conftest$ac_exeext'
10303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304 (eval $ac_try) 2>&5
10306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307 (exit $ac_status); }; }; then
10308 ac_cv_lib_gssapi_krb5_g_order_init=yes
10310 echo "$as_me: failed program was:" >&5
10311 sed 's/^/| /' conftest.$ac_ext >&5
10313 ac_cv_lib_gssapi_krb5_g_order_init=no
10315 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10316 LIBS=$ac_check_lib_save_LIBS
10318 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_g_order_init" >&5
10319 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_g_order_init" >&6
10320 if test $ac_cv_lib_gssapi_krb5_g_order_init = yes; then
10322 GSSAPI_IMPL="OldMIT",
10323 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err"
10330 CPPFLAGS="$saved_CPPFLAGS"
10331 LDFLAGS="$saved_LDFLAGS"
10334 echo "$as_me:$LINENO: checking GSSAPI implementation" >&5
10335 echo $ECHO_N "checking GSSAPI implementation... $ECHO_C" >&6
10336 echo "$as_me:$LINENO: result: $GSSAPI_IMPL" >&5
10337 echo "${ECHO_T}$GSSAPI_IMPL" >&6
10338 if test "$GSSAPI_IMPL" = "none"
10340 cat >confcache <<\_ACEOF
10341 # This file is a shell script that caches the results of configure
10342 # tests run on this system so they can be shared between configure
10343 # scripts and configure runs, see configure's option --config-cache.
10344 # It is not useful on other systems. If it contains results you don't
10345 # want to keep, you may remove or edit it.
10347 # config.status only pays attention to the cache file if you give it
10348 # the --recheck option to rerun configure.
10350 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10351 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10352 # following values.
10356 # The following way of writing the cache mishandles newlines in values,
10357 # but we know of no workaround that is simple, portable, and efficient.
10358 # So, don't put newlines in cache variables' values.
10359 # Ultrix sh set writes to stderr and can't be redirected directly,
10360 # and sets the high bit in the cache file unless we assign to the vars.
10363 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10365 # `set' does not quote correctly, so add quotes (double-quote
10366 # substitution turns \\\\ into \\, and sed turns \\ into \).
10369 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10372 # `set' quotes correctly as required by POSIX, so do not add quotes.
10374 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10381 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10383 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10385 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10386 if test -w $cache_file; then
10387 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10388 cat confcache >$cache_file
10390 echo "not updating unwritable cache $cache_file"
10394 echo "$as_me:$LINENO: result: GSSAPI libraries not found" >&5
10395 echo "${ECHO_T}GSSAPI libraries not found" >&6
10397 if test "$GSSAPI_IMPL" = "Heimdal"
10400 cat >>confdefs.h <<\_ACEOF
10401 #define HAVE_HEIMDAL 1
10405 CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
10406 MUTTLIBS="$MUTTLIBS $GSSAPI_LIBS"
10408 cat >>confdefs.h <<\_ACEOF
10414 { echo "$as_me:$LINENO: WARNING: GSS was requested but IMAP is not enabled" >&5
10415 echo "$as_me: WARNING: GSS was requested but IMAP is not enabled" >&2;}
10420 if test x$need_gss = xyes; then
10431 # Check whether --with-ssl or --without-ssl was given.
10432 if test "${with_ssl+set}" = set; then
10433 withval="$with_ssl"
10434 if test "$with_ssl" != "no"
10436 if test "$need_socket" != "yes"; then
10437 { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
10438 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
10439 { (exit 1); exit 1; }; }
10442 if test "$with_ssl" != "yes"
10444 LDFLAGS="$LDFLAGS -L$withval/lib"
10445 CPPFLAGS="$CPPFLAGS -I$withval/include"
10450 echo "$as_me:$LINENO: checking for X509_new in -lcrypto" >&5
10451 echo $ECHO_N "checking for X509_new in -lcrypto... $ECHO_C" >&6
10452 if test "${ac_cv_lib_crypto_X509_new+set}" = set; then
10453 echo $ECHO_N "(cached) $ECHO_C" >&6
10455 ac_check_lib_save_LIBS=$LIBS
10456 LIBS="-lcrypto $LIBS"
10457 cat >conftest.$ac_ext <<_ACEOF
10458 #line $LINENO "configure"
10461 cat confdefs.h >>conftest.$ac_ext
10462 cat >>conftest.$ac_ext <<_ACEOF
10463 /* end confdefs.h. */
10465 /* Override any gcc2 internal prototype to avoid an error. */
10469 /* We use char because int might match the return type of a gcc2
10470 builtin and then its argument prototype would still apply. */
10480 rm -f conftest.$ac_objext conftest$ac_exeext
10481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10482 (eval $ac_link) 2>&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); } &&
10486 { ac_try='test -s conftest$ac_exeext'
10487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10488 (eval $ac_try) 2>&5
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); }; }; then
10492 ac_cv_lib_crypto_X509_new=yes
10494 echo "$as_me: failed program was:" >&5
10495 sed 's/^/| /' conftest.$ac_ext >&5
10497 ac_cv_lib_crypto_X509_new=no
10499 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10500 LIBS=$ac_check_lib_save_LIBS
10502 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_X509_new" >&5
10503 echo "${ECHO_T}$ac_cv_lib_crypto_X509_new" >&6
10504 if test $ac_cv_lib_crypto_X509_new = yes; then
10505 cat >>confdefs.h <<_ACEOF
10506 #define HAVE_LIBCRYPTO 1
10509 LIBS="-lcrypto $LIBS"
10512 { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
10513 echo "$as_me: error: Unable to find SSL library" >&2;}
10514 { (exit 1); exit 1; }; }
10518 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
10519 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
10520 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
10521 echo $ECHO_N "(cached) $ECHO_C" >&6
10523 ac_check_lib_save_LIBS=$LIBS
10524 LIBS="-lssl -lcrypto $LIBS"
10525 cat >conftest.$ac_ext <<_ACEOF
10526 #line $LINENO "configure"
10529 cat confdefs.h >>conftest.$ac_ext
10530 cat >>conftest.$ac_ext <<_ACEOF
10531 /* end confdefs.h. */
10533 /* Override any gcc2 internal prototype to avoid an error. */
10537 /* We use char because int might match the return type of a gcc2
10538 builtin and then its argument prototype would still apply. */
10548 rm -f conftest.$ac_objext conftest$ac_exeext
10549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10550 (eval $ac_link) 2>&5
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); } &&
10554 { ac_try='test -s conftest$ac_exeext'
10555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556 (eval $ac_try) 2>&5
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); }; }; then
10560 ac_cv_lib_ssl_SSL_new=yes
10562 echo "$as_me: failed program was:" >&5
10563 sed 's/^/| /' conftest.$ac_ext >&5
10565 ac_cv_lib_ssl_SSL_new=no
10567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10568 LIBS=$ac_check_lib_save_LIBS
10570 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
10571 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6
10572 if test $ac_cv_lib_ssl_SSL_new = yes; then
10573 cat >>confdefs.h <<_ACEOF
10574 #define HAVE_LIBSSL 1
10580 { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
10581 echo "$as_me: error: Unable to find SSL library" >&2;}
10582 { (exit 1); exit 1; }; }
10588 for ac_func in RAND_status RAND_egd
10590 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10591 echo "$as_me:$LINENO: checking for $ac_func" >&5
10592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10593 if eval "test \"\${$as_ac_var+set}\" = set"; then
10594 echo $ECHO_N "(cached) $ECHO_C" >&6
10596 cat >conftest.$ac_ext <<_ACEOF
10597 #line $LINENO "configure"
10600 cat confdefs.h >>conftest.$ac_ext
10601 cat >>conftest.$ac_ext <<_ACEOF
10602 /* end confdefs.h. */
10603 /* System header to define __stub macros and hopefully few prototypes,
10604 which can conflict with char $ac_func (); below.
10605 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10606 <limits.h> exists even on freestanding compilers. */
10608 # include <limits.h>
10610 # include <assert.h>
10612 /* Override any gcc2 internal prototype to avoid an error. */
10617 /* We use char because int might match the return type of a gcc2
10618 builtin and then its argument prototype would still apply. */
10620 /* The GNU C library defines this for functions which it implements
10621 to always fail with ENOSYS. Some functions are actually named
10622 something starting with __ and the normal name is an alias. */
10623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10626 char (*f) () = $ac_func;
10635 return f != $ac_func;
10640 rm -f conftest.$ac_objext conftest$ac_exeext
10641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10642 (eval $ac_link) 2>&5
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); } &&
10646 { ac_try='test -s conftest$ac_exeext'
10647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10648 (eval $ac_try) 2>&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); }; }; then
10652 eval "$as_ac_var=yes"
10654 echo "$as_me: failed program was:" >&5
10655 sed 's/^/| /' conftest.$ac_ext >&5
10657 eval "$as_ac_var=no"
10659 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10661 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10662 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10663 if test `eval echo '${'$as_ac_var'}'` = yes; then
10664 cat >>confdefs.h <<_ACEOF
10665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10673 cat >>confdefs.h <<\_ACEOF
10678 MUTTLIBS="$MUTTLIBS -lssl -lcrypto"
10679 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl.o"
10687 if test x$need_ssl = xyes; then
10697 # Check whether --with-nss or --without-nss was given.
10698 if test "${with_nss+set}" = set; then
10699 withval="$with_nss"
10700 if test "$with_nss" != no
10702 if test "$need_socket" != "yes"; then
10703 { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
10704 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
10705 { (exit 1); exit 1; }; }
10708 if test "$with_nss" != "yes"
10710 LDFLAGS="$LDFLAGS -L$withval/lib"
10711 CPPFLAGS="$CPPFLAGS -I$withval/include -I$withval/public/security"
10715 cat >>confdefs.h <<\_ACEOF
10719 MUTTLIBS="$MUTTLIBS -lssl -lnss -lcertdb -lcerthi -lcryptohi"
10720 MUTTLIBS="$MUTTLIBS -lpk11wrap -lsoftoken -lsecutil -ldbm -lplds4 -lplc4 -lfreebl"
10721 MUTTLIBS="$MUTTLIBS -lnspr4"
10723 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_nss.o"
10730 # Check whether --with-sasl or --without-sasl was given.
10731 if test "${with_sasl+set}" = set; then
10732 withval="$with_sasl"
10734 if test "$need_socket" != "yes"
10736 { { echo "$as_me:$LINENO: error: SASL support is only useful with POP or IMAP support" >&5
10737 echo "$as_me: error: SASL support is only useful with POP or IMAP support" >&2;}
10738 { (exit 1); exit 1; }; }
10741 if test "$with_sasl" != "no"
10743 if test "$with_sasl" != "yes"
10745 CPPFLAGS="$CPPFLAGS -I$with_sasl/include"
10746 LDFLAGS="$LDFLAGS -L$with_sasl/lib"
10752 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
10753 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
10754 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
10755 echo $ECHO_N "(cached) $ECHO_C" >&6
10757 ac_check_lib_save_LIBS=$LIBS
10758 LIBS="-lsasl $LIBS"
10759 cat >conftest.$ac_ext <<_ACEOF
10760 #line $LINENO "configure"
10763 cat confdefs.h >>conftest.$ac_ext
10764 cat >>conftest.$ac_ext <<_ACEOF
10765 /* end confdefs.h. */
10767 /* Override any gcc2 internal prototype to avoid an error. */
10771 /* We use char because int might match the return type of a gcc2
10772 builtin and then its argument prototype would still apply. */
10773 char sasl_client_init ();
10777 sasl_client_init ();
10782 rm -f conftest.$ac_objext conftest$ac_exeext
10783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10784 (eval $ac_link) 2>&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); } &&
10788 { ac_try='test -s conftest$ac_exeext'
10789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10790 (eval $ac_try) 2>&5
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); }; }; then
10794 ac_cv_lib_sasl_sasl_client_init=yes
10796 echo "$as_me: failed program was:" >&5
10797 sed 's/^/| /' conftest.$ac_ext >&5
10799 ac_cv_lib_sasl_sasl_client_init=no
10801 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10802 LIBS=$ac_check_lib_save_LIBS
10804 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
10805 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
10806 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
10807 cat >>confdefs.h <<_ACEOF
10808 #define HAVE_LIBSASL 1
10811 LIBS="-lsasl $LIBS"
10814 { { echo "$as_me:$LINENO: error: could not find libsasl" >&5
10815 echo "$as_me: error: could not find libsasl" >&2;}
10816 { (exit 1); exit 1; }; }
10820 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
10821 MUTTLIBS="$MUTTLIBS -lsasl"
10824 cat >>confdefs.h <<\_ACEOF
10834 if test x$need_sasl = xyes; then
10844 # Check whether --with-sasl2 or --without-sasl2 was given.
10845 if test "${with_sasl2+set}" = set; then
10846 withval="$with_sasl2"
10848 if test "$need_socket" != "yes"
10850 { { echo "$as_me:$LINENO: error: SASL support is only useful with POP or IMAP support" >&5
10851 echo "$as_me: error: SASL support is only useful with POP or IMAP support" >&2;}
10852 { (exit 1); exit 1; }; }
10855 if test "$with_sasl2" != "no"
10857 if test "$with_sasl2" != "yes"
10859 CPPFLAGS="$CPPFLAGS -I$with_sasl2/include"
10860 LDFLAGS="$LDFLAGS -L$with_sasl2/lib"
10866 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
10867 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
10868 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
10869 echo $ECHO_N "(cached) $ECHO_C" >&6
10871 ac_check_lib_save_LIBS=$LIBS
10872 LIBS="-lsasl2 $LIBS"
10873 cat >conftest.$ac_ext <<_ACEOF
10874 #line $LINENO "configure"
10877 cat confdefs.h >>conftest.$ac_ext
10878 cat >>conftest.$ac_ext <<_ACEOF
10879 /* end confdefs.h. */
10881 /* Override any gcc2 internal prototype to avoid an error. */
10885 /* We use char because int might match the return type of a gcc2
10886 builtin and then its argument prototype would still apply. */
10887 char sasl_client_init ();
10891 sasl_client_init ();
10896 rm -f conftest.$ac_objext conftest$ac_exeext
10897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10898 (eval $ac_link) 2>&5
10900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); } &&
10902 { ac_try='test -s conftest$ac_exeext'
10903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10904 (eval $ac_try) 2>&5
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); }; }; then
10908 ac_cv_lib_sasl2_sasl_client_init=yes
10910 echo "$as_me: failed program was:" >&5
10911 sed 's/^/| /' conftest.$ac_ext >&5
10913 ac_cv_lib_sasl2_sasl_client_init=no
10915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10916 LIBS=$ac_check_lib_save_LIBS
10918 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
10919 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
10920 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
10921 cat >>confdefs.h <<_ACEOF
10922 #define HAVE_LIBSASL2 1
10925 LIBS="-lsasl2 $LIBS"
10928 { { echo "$as_me:$LINENO: error: could not find libsasl" >&5
10929 echo "$as_me: error: could not find libsasl" >&2;}
10930 { (exit 1); exit 1; }; }
10934 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
10935 MUTTLIBS="$MUTTLIBS -lsasl2"
10938 cat >>confdefs.h <<\_ACEOF
10943 cat >>confdefs.h <<\_ACEOF
10944 #define USE_SASL2 1
10953 if test x$need_sasl = xyes; then
10963 # Check whether --with-idn or --without-idn was given.
10964 if test "${with_idn+set}" = set; then
10965 withval="$with_idn"
10967 if test "$with_idn" != "no" ; then
10968 if test "$with_idn" != "yes" ; then
10969 CPPFLAGS="$CPPFLAGS -I$with_idn/include"
10970 LDFLAGS="$LDFLAGS -L$with_idn/lib"
10977 if test "x$with_idn" != "xno"; then
10979 echo "$as_me:$LINENO: checking for stringprep_check_version in -lidn" >&5
10980 echo $ECHO_N "checking for stringprep_check_version in -lidn... $ECHO_C" >&6
10981 if test "${ac_cv_lib_idn_stringprep_check_version+set}" = set; then
10982 echo $ECHO_N "(cached) $ECHO_C" >&6
10984 ac_check_lib_save_LIBS=$LIBS
10986 cat >conftest.$ac_ext <<_ACEOF
10987 #line $LINENO "configure"
10990 cat confdefs.h >>conftest.$ac_ext
10991 cat >>conftest.$ac_ext <<_ACEOF
10992 /* end confdefs.h. */
10994 /* Override any gcc2 internal prototype to avoid an error. */
10998 /* We use char because int might match the return type of a gcc2
10999 builtin and then its argument prototype would still apply. */
11000 char stringprep_check_version ();
11004 stringprep_check_version ();
11009 rm -f conftest.$ac_objext conftest$ac_exeext
11010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11011 (eval $ac_link) 2>&5
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); } &&
11015 { ac_try='test -s conftest$ac_exeext'
11016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11017 (eval $ac_try) 2>&5
11019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11020 (exit $ac_status); }; }; then
11021 ac_cv_lib_idn_stringprep_check_version=yes
11023 echo "$as_me: failed program was:" >&5
11024 sed 's/^/| /' conftest.$ac_ext >&5
11026 ac_cv_lib_idn_stringprep_check_version=no
11028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11029 LIBS=$ac_check_lib_save_LIBS
11031 echo "$as_me:$LINENO: result: $ac_cv_lib_idn_stringprep_check_version" >&5
11032 echo "${ECHO_T}$ac_cv_lib_idn_stringprep_check_version" >&6
11033 if test $ac_cv_lib_idn_stringprep_check_version = yes; then
11034 cat >>confdefs.h <<_ACEOF
11035 #define HAVE_LIBIDN 1
11044 for ac_func in idna_to_unicode_utf8_from_utf8 idna_to_unicode_8z8z
11046 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11047 echo "$as_me:$LINENO: checking for $ac_func" >&5
11048 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11049 if eval "test \"\${$as_ac_var+set}\" = set"; then
11050 echo $ECHO_N "(cached) $ECHO_C" >&6
11052 cat >conftest.$ac_ext <<_ACEOF
11053 #line $LINENO "configure"
11056 cat confdefs.h >>conftest.$ac_ext
11057 cat >>conftest.$ac_ext <<_ACEOF
11058 /* end confdefs.h. */
11059 /* System header to define __stub macros and hopefully few prototypes,
11060 which can conflict with char $ac_func (); below.
11061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11062 <limits.h> exists even on freestanding compilers. */
11064 # include <limits.h>
11066 # include <assert.h>
11068 /* Override any gcc2 internal prototype to avoid an error. */
11073 /* We use char because int might match the return type of a gcc2
11074 builtin and then its argument prototype would still apply. */
11076 /* The GNU C library defines this for functions which it implements
11077 to always fail with ENOSYS. Some functions are actually named
11078 something starting with __ and the normal name is an alias. */
11079 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11082 char (*f) () = $ac_func;
11091 return f != $ac_func;
11096 rm -f conftest.$ac_objext conftest$ac_exeext
11097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11098 (eval $ac_link) 2>&5
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); } &&
11102 { ac_try='test -s conftest$ac_exeext'
11103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11104 (eval $ac_try) 2>&5
11106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107 (exit $ac_status); }; }; then
11108 eval "$as_ac_var=yes"
11110 echo "$as_me: failed program was:" >&5
11111 sed 's/^/| /' conftest.$ac_ext >&5
11113 eval "$as_ac_var=no"
11115 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11117 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11118 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11119 if test `eval echo '${'$as_ac_var'}'` = yes; then
11120 cat >>confdefs.h <<_ACEOF
11121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11129 for ac_func in idna_to_ascii_from_utf8 idna_to_ascii_8z
11131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11132 echo "$as_me:$LINENO: checking for $ac_func" >&5
11133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11134 if eval "test \"\${$as_ac_var+set}\" = set"; then
11135 echo $ECHO_N "(cached) $ECHO_C" >&6
11137 cat >conftest.$ac_ext <<_ACEOF
11138 #line $LINENO "configure"
11141 cat confdefs.h >>conftest.$ac_ext
11142 cat >>conftest.$ac_ext <<_ACEOF
11143 /* end confdefs.h. */
11144 /* System header to define __stub macros and hopefully few prototypes,
11145 which can conflict with char $ac_func (); below.
11146 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11147 <limits.h> exists even on freestanding compilers. */
11149 # include <limits.h>
11151 # include <assert.h>
11153 /* Override any gcc2 internal prototype to avoid an error. */
11158 /* We use char because int might match the return type of a gcc2
11159 builtin and then its argument prototype would still apply. */
11161 /* The GNU C library defines this for functions which it implements
11162 to always fail with ENOSYS. Some functions are actually named
11163 something starting with __ and the normal name is an alias. */
11164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11167 char (*f) () = $ac_func;
11176 return f != $ac_func;
11181 rm -f conftest.$ac_objext conftest$ac_exeext
11182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11183 (eval $ac_link) 2>&5
11185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11186 (exit $ac_status); } &&
11187 { ac_try='test -s conftest$ac_exeext'
11188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11189 (eval $ac_try) 2>&5
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); }; }; then
11193 eval "$as_ac_var=yes"
11195 echo "$as_me: failed program was:" >&5
11196 sed 's/^/| /' conftest.$ac_ext >&5
11198 eval "$as_ac_var=no"
11200 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11203 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11204 if test `eval echo '${'$as_ac_var'}'` = yes; then
11205 cat >>confdefs.h <<_ACEOF
11206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11214 for ac_func in idna_to_ascii_lz idna_to_ascii_from_locale
11216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11217 echo "$as_me:$LINENO: checking for $ac_func" >&5
11218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11219 if eval "test \"\${$as_ac_var+set}\" = set"; then
11220 echo $ECHO_N "(cached) $ECHO_C" >&6
11222 cat >conftest.$ac_ext <<_ACEOF
11223 #line $LINENO "configure"
11226 cat confdefs.h >>conftest.$ac_ext
11227 cat >>conftest.$ac_ext <<_ACEOF
11228 /* end confdefs.h. */
11229 /* System header to define __stub macros and hopefully few prototypes,
11230 which can conflict with char $ac_func (); below.
11231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11232 <limits.h> exists even on freestanding compilers. */
11234 # include <limits.h>
11236 # include <assert.h>
11238 /* Override any gcc2 internal prototype to avoid an error. */
11243 /* We use char because int might match the return type of a gcc2
11244 builtin and then its argument prototype would still apply. */
11246 /* The GNU C library defines this for functions which it implements
11247 to always fail with ENOSYS. Some functions are actually named
11248 something starting with __ and the normal name is an alias. */
11249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11252 char (*f) () = $ac_func;
11261 return f != $ac_func;
11266 rm -f conftest.$ac_objext conftest$ac_exeext
11267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11268 (eval $ac_link) 2>&5
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); } &&
11272 { ac_try='test -s conftest$ac_exeext'
11273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11274 (eval $ac_try) 2>&5
11276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11277 (exit $ac_status); }; }; then
11278 eval "$as_ac_var=yes"
11280 echo "$as_me: failed program was:" >&5
11281 sed 's/^/| /' conftest.$ac_ext >&5
11283 eval "$as_ac_var=no"
11285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11288 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11289 if test `eval echo '${'$as_ac_var'}'` = yes; then
11290 cat >>confdefs.h <<_ACEOF
11291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11299 if test "$need_md5" = "yes"
11301 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS md5c.o"
11305 # Check whether --enable-debug or --disable-debug was given.
11306 if test "${enable_debug+set}" = set; then
11307 enableval="$enable_debug"
11308 if test x$enableval = xyes ; then
11310 cat >>confdefs.h <<\_ACEOF
11318 # Check whether --enable-flock or --disable-flock was given.
11319 if test "${enable_flock+set}" = set; then
11320 enableval="$enable_flock"
11321 if test $enableval = yes; then
11323 cat >>confdefs.h <<\_ACEOF
11324 #define USE_FLOCK 1
11331 # Check whether --enable-fcntl or --disable-fcntl was given.
11332 if test "${enable_fcntl+set}" = set; then
11333 enableval="$enable_fcntl"
11334 if test $enableval = no; then mutt_cv_fcntl=no; fi
11337 if test $mutt_cv_fcntl = yes; then
11339 cat >>confdefs.h <<\_ACEOF
11340 #define USE_FCNTL 1
11345 mutt_cv_warnings=yes
11346 # Check whether --enable-warnings or --disable-warnings was given.
11347 if test "${enable_warnings+set}" = set; then
11348 enableval="$enable_warnings"
11349 if test $enableval = no; then
11350 mutt_cv_warnings=no
11354 if test x$GCC = xyes -a $mutt_cv_warnings = yes; then
11355 CFLAGS="-Wall -pedantic $CFLAGS"
11358 # Check whether --enable-nfs-fix or --disable-nfs-fix was given.
11359 if test "${enable_nfs_fix+set}" = set; then
11360 enableval="$enable_nfs_fix"
11361 if test x$enableval = xyes; then
11363 cat >>confdefs.h <<\_ACEOF
11364 #define NFS_ATTRIBUTE_HACK 1
11370 # Check whether --enable-buffy-size or --disable-buffy-size was given.
11371 if test "${enable_buffy_size+set}" = set; then
11372 enableval="$enable_buffy_size"
11373 if test x$enableval = xyes; then
11375 cat >>confdefs.h <<\_ACEOF
11376 #define BUFFY_SIZE 1
11382 # Check whether --enable-mailtool or --disable-mailtool was given.
11383 if test "${enable_mailtool+set}" = set; then
11384 enableval="$enable_mailtool"
11385 if test x$enableval = xyes; then
11387 cat >>confdefs.h <<\_ACEOF
11388 #define SUN_ATTACHMENT 1
11394 # Check whether --enable-compressed or --disable-compressed was given.
11395 if test "${enable_compressed+set}" = set; then
11396 enableval="$enable_compressed"
11397 if test x$enableval = xyes; then
11398 cat >>confdefs.h <<\_ACEOF
11399 #define USE_COMPRESSED 1
11405 # Check whether --enable-locales-fix or --disable-locales-fix was given.
11406 if test "${enable_locales_fix+set}" = set; then
11407 enableval="$enable_locales_fix"
11408 if test x$enableval = xyes; then
11410 cat >>confdefs.h <<\_ACEOF
11411 #define LOCALES_HACK 1
11418 # Check whether --with-exec-shell or --without-exec-shell was given.
11419 if test "${with_exec_shell+set}" = set; then
11420 withval="$with_exec_shell"
11421 if test $withval != yes; then
11423 cat >>confdefs.h <<_ACEOF
11424 #define EXECSHELL "$withval"
11428 cat >>confdefs.h <<_ACEOF
11429 #define EXECSHELL "/bin/sh"
11434 cat >>confdefs.h <<_ACEOF
11435 #define EXECSHELL "/bin/sh"
11440 # Check whether --enable-exact-address or --disable-exact-address was given.
11441 if test "${enable_exact_address+set}" = set; then
11442 enableval="$enable_exact_address"
11443 if test $enableval = yes; then
11445 cat >>confdefs.h <<\_ACEOF
11446 #define EXACT_ADDRESS 1
11459 # Check whether --enable-iconv or --disable-iconv was given.
11460 if test "${enable_iconv+set}" = set; then
11461 enableval="$enable_iconv"
11462 if test x$enableval = xno ; then
11463 am_cv_func_iconv=no
11468 echo "$as_me:$LINENO: checking for off_t" >&5
11469 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11470 if test "${ac_cv_type_off_t+set}" = set; then
11471 echo $ECHO_N "(cached) $ECHO_C" >&6
11473 cat >conftest.$ac_ext <<_ACEOF
11474 #line $LINENO "configure"
11477 cat confdefs.h >>conftest.$ac_ext
11478 cat >>conftest.$ac_ext <<_ACEOF
11479 /* end confdefs.h. */
11480 $ac_includes_default
11486 if (sizeof (off_t))
11492 rm -f conftest.$ac_objext
11493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11494 (eval $ac_compile) 2>&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } &&
11498 { ac_try='test -s conftest.$ac_objext'
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; }; then
11504 ac_cv_type_off_t=yes
11506 echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.$ac_ext >&5
11509 ac_cv_type_off_t=no
11511 rm -f conftest.$ac_objext conftest.$ac_ext
11513 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11514 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11515 if test $ac_cv_type_off_t = yes; then
11519 cat >>confdefs.h <<_ACEOF
11525 echo "$as_me:$LINENO: checking for size_t" >&5
11526 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11527 if test "${ac_cv_type_size_t+set}" = set; then
11528 echo $ECHO_N "(cached) $ECHO_C" >&6
11530 cat >conftest.$ac_ext <<_ACEOF
11531 #line $LINENO "configure"
11534 cat confdefs.h >>conftest.$ac_ext
11535 cat >>conftest.$ac_ext <<_ACEOF
11536 /* end confdefs.h. */
11537 $ac_includes_default
11543 if (sizeof (size_t))
11549 rm -f conftest.$ac_objext
11550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11551 (eval $ac_compile) 2>&5
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); } &&
11555 { ac_try='test -s conftest.$ac_objext'
11556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11557 (eval $ac_try) 2>&5
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); }; }; then
11561 ac_cv_type_size_t=yes
11563 echo "$as_me: failed program was:" >&5
11564 sed 's/^/| /' conftest.$ac_ext >&5
11566 ac_cv_type_size_t=no
11568 rm -f conftest.$ac_objext conftest.$ac_ext
11570 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11571 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11572 if test $ac_cv_type_size_t = yes; then
11576 cat >>confdefs.h <<_ACEOF
11577 #define size_t unsigned
11582 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11583 # for constant arguments. Useless!
11584 echo "$as_me:$LINENO: checking for working alloca.h" >&5
11585 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11586 if test "${ac_cv_working_alloca_h+set}" = set; then
11587 echo $ECHO_N "(cached) $ECHO_C" >&6
11589 cat >conftest.$ac_ext <<_ACEOF
11590 #line $LINENO "configure"
11593 cat confdefs.h >>conftest.$ac_ext
11594 cat >>conftest.$ac_ext <<_ACEOF
11595 /* end confdefs.h. */
11596 #include <alloca.h>
11600 char *p = (char *) alloca (2 * sizeof (int));
11605 rm -f conftest.$ac_objext conftest$ac_exeext
11606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11607 (eval $ac_link) 2>&5
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); } &&
11611 { ac_try='test -s conftest$ac_exeext'
11612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11613 (eval $ac_try) 2>&5
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); }; }; then
11617 ac_cv_working_alloca_h=yes
11619 echo "$as_me: failed program was:" >&5
11620 sed 's/^/| /' conftest.$ac_ext >&5
11622 ac_cv_working_alloca_h=no
11624 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11626 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11627 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11628 if test $ac_cv_working_alloca_h = yes; then
11630 cat >>confdefs.h <<\_ACEOF
11631 #define HAVE_ALLOCA_H 1
11636 echo "$as_me:$LINENO: checking for alloca" >&5
11637 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11638 if test "${ac_cv_func_alloca_works+set}" = set; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
11641 cat >conftest.$ac_ext <<_ACEOF
11642 #line $LINENO "configure"
11645 cat confdefs.h >>conftest.$ac_ext
11646 cat >>conftest.$ac_ext <<_ACEOF
11647 /* end confdefs.h. */
11649 # define alloca __builtin_alloca
11652 # include <malloc.h>
11653 # define alloca _alloca
11656 # include <alloca.h>
11661 # ifndef alloca /* predefined by HP cc +Olibcalls */
11672 char *p = (char *) alloca (1);
11677 rm -f conftest.$ac_objext conftest$ac_exeext
11678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11679 (eval $ac_link) 2>&5
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); } &&
11683 { ac_try='test -s conftest$ac_exeext'
11684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11685 (eval $ac_try) 2>&5
11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); }; }; then
11689 ac_cv_func_alloca_works=yes
11691 echo "$as_me: failed program was:" >&5
11692 sed 's/^/| /' conftest.$ac_ext >&5
11694 ac_cv_func_alloca_works=no
11696 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11698 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11699 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11701 if test $ac_cv_func_alloca_works = yes; then
11703 cat >>confdefs.h <<\_ACEOF
11704 #define HAVE_ALLOCA 1
11708 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11709 # that cause trouble. Some versions do not even contain alloca or
11710 # contain a buggy version. If you still want to use their alloca,
11711 # use ar to extract alloca.o from them instead of compiling alloca.c.
11713 ALLOCA=alloca.$ac_objext
11715 cat >>confdefs.h <<\_ACEOF
11720 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11721 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11722 if test "${ac_cv_os_cray+set}" = set; then
11723 echo $ECHO_N "(cached) $ECHO_C" >&6
11725 cat >conftest.$ac_ext <<_ACEOF
11726 #line $LINENO "configure"
11729 cat confdefs.h >>conftest.$ac_ext
11730 cat >>conftest.$ac_ext <<_ACEOF
11731 /* end confdefs.h. */
11732 #if defined(CRAY) && ! defined(CRAY2)
11739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11740 $EGREP "webecray" >/dev/null 2>&1; then
11748 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11749 echo "${ECHO_T}$ac_cv_os_cray" >&6
11750 if test $ac_cv_os_cray = yes; then
11751 for ac_func in _getb67 GETB67 getb67; do
11752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11753 echo "$as_me:$LINENO: checking for $ac_func" >&5
11754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11755 if eval "test \"\${$as_ac_var+set}\" = set"; then
11756 echo $ECHO_N "(cached) $ECHO_C" >&6
11758 cat >conftest.$ac_ext <<_ACEOF
11759 #line $LINENO "configure"
11762 cat confdefs.h >>conftest.$ac_ext
11763 cat >>conftest.$ac_ext <<_ACEOF
11764 /* end confdefs.h. */
11765 /* System header to define __stub macros and hopefully few prototypes,
11766 which can conflict with char $ac_func (); below.
11767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11768 <limits.h> exists even on freestanding compilers. */
11770 # include <limits.h>
11772 # include <assert.h>
11774 /* Override any gcc2 internal prototype to avoid an error. */
11779 /* We use char because int might match the return type of a gcc2
11780 builtin and then its argument prototype would still apply. */
11782 /* The GNU C library defines this for functions which it implements
11783 to always fail with ENOSYS. Some functions are actually named
11784 something starting with __ and the normal name is an alias. */
11785 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11788 char (*f) () = $ac_func;
11797 return f != $ac_func;
11802 rm -f conftest.$ac_objext conftest$ac_exeext
11803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11804 (eval $ac_link) 2>&5
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); } &&
11808 { ac_try='test -s conftest$ac_exeext'
11809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11810 (eval $ac_try) 2>&5
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); }; }; then
11814 eval "$as_ac_var=yes"
11816 echo "$as_me: failed program was:" >&5
11817 sed 's/^/| /' conftest.$ac_ext >&5
11819 eval "$as_ac_var=no"
11821 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11824 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11825 if test `eval echo '${'$as_ac_var'}'` = yes; then
11827 cat >>confdefs.h <<_ACEOF
11828 #define CRAY_STACKSEG_END $ac_func
11837 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11838 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11839 if test "${ac_cv_c_stack_direction+set}" = set; then
11840 echo $ECHO_N "(cached) $ECHO_C" >&6
11842 if test "$cross_compiling" = yes; then
11843 ac_cv_c_stack_direction=0
11845 cat >conftest.$ac_ext <<_ACEOF
11846 #line $LINENO "configure"
11849 cat confdefs.h >>conftest.$ac_ext
11850 cat >>conftest.$ac_ext <<_ACEOF
11851 /* end confdefs.h. */
11853 find_stack_direction ()
11855 static char *addr = 0;
11860 return find_stack_direction ();
11863 return (&dummy > addr) ? 1 : -1;
11869 exit (find_stack_direction () < 0);
11872 rm -f conftest$ac_exeext
11873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11874 (eval $ac_link) 2>&5
11876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11879 (eval $ac_try) 2>&5
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); }; }; then
11883 ac_cv_c_stack_direction=1
11885 echo "$as_me: program exited with status $ac_status" >&5
11886 echo "$as_me: failed program was:" >&5
11887 sed 's/^/| /' conftest.$ac_ext >&5
11889 ( exit $ac_status )
11890 ac_cv_c_stack_direction=-1
11892 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11895 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11896 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11898 cat >>confdefs.h <<_ACEOF
11899 #define STACK_DIRECTION $ac_cv_c_stack_direction
11907 for ac_header in stdlib.h unistd.h
11909 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11910 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11911 echo "$as_me:$LINENO: checking for $ac_header" >&5
11912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11913 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11914 echo $ECHO_N "(cached) $ECHO_C" >&6
11916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11919 # Is the header compilable?
11920 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11921 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11922 cat >conftest.$ac_ext <<_ACEOF
11923 #line $LINENO "configure"
11926 cat confdefs.h >>conftest.$ac_ext
11927 cat >>conftest.$ac_ext <<_ACEOF
11928 /* end confdefs.h. */
11929 $ac_includes_default
11930 #include <$ac_header>
11932 rm -f conftest.$ac_objext
11933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11934 (eval $ac_compile) 2>&5
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); } &&
11938 { ac_try='test -s conftest.$ac_objext'
11939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11940 (eval $ac_try) 2>&5
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); }; }; then
11944 ac_header_compiler=yes
11946 echo "$as_me: failed program was:" >&5
11947 sed 's/^/| /' conftest.$ac_ext >&5
11949 ac_header_compiler=no
11951 rm -f conftest.$ac_objext conftest.$ac_ext
11952 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11953 echo "${ECHO_T}$ac_header_compiler" >&6
11955 # Is the header present?
11956 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11957 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11958 cat >conftest.$ac_ext <<_ACEOF
11959 #line $LINENO "configure"
11962 cat confdefs.h >>conftest.$ac_ext
11963 cat >>conftest.$ac_ext <<_ACEOF
11964 /* end confdefs.h. */
11965 #include <$ac_header>
11967 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11970 grep -v '^ *+' conftest.er1 >conftest.err
11972 cat conftest.err >&5
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); } >/dev/null; then
11975 if test -s conftest.err; then
11976 ac_cpp_err=$ac_c_preproc_warn_flag
11983 if test -z "$ac_cpp_err"; then
11984 ac_header_preproc=yes
11986 echo "$as_me: failed program was:" >&5
11987 sed 's/^/| /' conftest.$ac_ext >&5
11989 ac_header_preproc=no
11991 rm -f conftest.err conftest.$ac_ext
11992 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11993 echo "${ECHO_T}$ac_header_preproc" >&6
11995 # So? What about this header?
11996 case $ac_header_compiler:$ac_header_preproc in
11998 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11999 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12004 ## ------------------------------------ ##
12005 ## Report this to bug-autoconf@gnu.org. ##
12006 ## ------------------------------------ ##
12009 sed "s/^/$as_me: WARNING: /" >&2
12012 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12013 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12014 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12015 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12020 ## ------------------------------------ ##
12021 ## Report this to bug-autoconf@gnu.org. ##
12022 ## ------------------------------------ ##
12025 sed "s/^/$as_me: WARNING: /" >&2
12028 echo "$as_me:$LINENO: checking for $ac_header" >&5
12029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12031 echo $ECHO_N "(cached) $ECHO_C" >&6
12033 eval "$as_ac_Header=$ac_header_preproc"
12035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12036 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12040 cat >>confdefs.h <<_ACEOF
12041 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12049 for ac_func in getpagesize
12051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12052 echo "$as_me:$LINENO: checking for $ac_func" >&5
12053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12054 if eval "test \"\${$as_ac_var+set}\" = set"; then
12055 echo $ECHO_N "(cached) $ECHO_C" >&6
12057 cat >conftest.$ac_ext <<_ACEOF
12058 #line $LINENO "configure"
12061 cat confdefs.h >>conftest.$ac_ext
12062 cat >>conftest.$ac_ext <<_ACEOF
12063 /* end confdefs.h. */
12064 /* System header to define __stub macros and hopefully few prototypes,
12065 which can conflict with char $ac_func (); below.
12066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12067 <limits.h> exists even on freestanding compilers. */
12069 # include <limits.h>
12071 # include <assert.h>
12073 /* Override any gcc2 internal prototype to avoid an error. */
12078 /* We use char because int might match the return type of a gcc2
12079 builtin and then its argument prototype would still apply. */
12081 /* The GNU C library defines this for functions which it implements
12082 to always fail with ENOSYS. Some functions are actually named
12083 something starting with __ and the normal name is an alias. */
12084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12087 char (*f) () = $ac_func;
12096 return f != $ac_func;
12101 rm -f conftest.$ac_objext conftest$ac_exeext
12102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12103 (eval $ac_link) 2>&5
12105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); } &&
12107 { ac_try='test -s conftest$ac_exeext'
12108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12109 (eval $ac_try) 2>&5
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); }; }; then
12113 eval "$as_ac_var=yes"
12115 echo "$as_me: failed program was:" >&5
12116 sed 's/^/| /' conftest.$ac_ext >&5
12118 eval "$as_ac_var=no"
12120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12122 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12123 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12124 if test `eval echo '${'$as_ac_var'}'` = yes; then
12125 cat >>confdefs.h <<_ACEOF
12126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12132 echo "$as_me:$LINENO: checking for working mmap" >&5
12133 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12134 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12135 echo $ECHO_N "(cached) $ECHO_C" >&6
12137 if test "$cross_compiling" = yes; then
12138 ac_cv_func_mmap_fixed_mapped=no
12140 cat >conftest.$ac_ext <<_ACEOF
12141 #line $LINENO "configure"
12144 cat confdefs.h >>conftest.$ac_ext
12145 cat >>conftest.$ac_ext <<_ACEOF
12146 /* end confdefs.h. */
12147 $ac_includes_default
12148 /* malloc might have been renamed as rpl_malloc. */
12151 /* Thanks to Mike Haertel and Jim Avera for this test.
12152 Here is a matrix of mmap possibilities:
12153 mmap private not fixed
12154 mmap private fixed at somewhere currently unmapped
12155 mmap private fixed at somewhere already mapped
12156 mmap shared not fixed
12157 mmap shared fixed at somewhere currently unmapped
12158 mmap shared fixed at somewhere already mapped
12159 For private mappings, we should verify that changes cannot be read()
12160 back from the file, nor mmap's back from the file at a different
12161 address. (There have been systems where private was not correctly
12162 implemented like the infamous i386 svr4.0, and systems where the
12163 VM page cache was not coherent with the file system buffer cache
12164 like early versions of FreeBSD and possibly contemporary NetBSD.)
12165 For shared mappings, we should conversely verify that changes get
12166 propagated back to all the places they're supposed to be.
12168 Grep wants private fixed already mapped.
12169 The main things grep needs to know about mmap are:
12170 * does it exist and is it safe to write into the mmap'd area
12171 * how to use it (BSD variants) */
12174 #include <sys/mman.h>
12176 #if !STDC_HEADERS && !HAVE_STDLIB_H
12180 /* This mess was copied from the GNU getpagesize.h. */
12181 #if !HAVE_GETPAGESIZE
12182 /* Assume that all systems that can run configure have sys/param.h. */
12183 # if !HAVE_SYS_PARAM_H
12184 # define HAVE_SYS_PARAM_H 1
12187 # ifdef _SC_PAGESIZE
12188 # define getpagesize() sysconf(_SC_PAGESIZE)
12189 # else /* no _SC_PAGESIZE */
12190 # if HAVE_SYS_PARAM_H
12191 # include <sys/param.h>
12192 # ifdef EXEC_PAGESIZE
12193 # define getpagesize() EXEC_PAGESIZE
12194 # else /* no EXEC_PAGESIZE */
12196 # define getpagesize() NBPG * CLSIZE
12199 # endif /* no CLSIZE */
12200 # else /* no NBPG */
12202 # define getpagesize() NBPC
12203 # else /* no NBPC */
12205 # define getpagesize() PAGESIZE
12206 # endif /* PAGESIZE */
12207 # endif /* no NBPC */
12208 # endif /* no NBPG */
12209 # endif /* no EXEC_PAGESIZE */
12210 # else /* no HAVE_SYS_PARAM_H */
12211 # define getpagesize() 8192 /* punt totally */
12212 # endif /* no HAVE_SYS_PARAM_H */
12213 # endif /* no _SC_PAGESIZE */
12215 #endif /* no HAVE_GETPAGESIZE */
12220 char *data, *data2, *data3;
12224 pagesize = getpagesize ();
12226 /* First, make a file with some known garbage in it. */
12227 data = (char *) malloc (pagesize);
12230 for (i = 0; i < pagesize; ++i)
12231 *(data + i) = rand ();
12233 fd = creat ("conftest.mmap", 0600);
12236 if (write (fd, data, pagesize) != pagesize)
12240 /* Next, try to mmap the file at a fixed address which already has
12241 something else allocated at it. If we can, also make sure that
12242 we see the same garbage. */
12243 fd = open ("conftest.mmap", O_RDWR);
12246 data2 = (char *) malloc (2 * pagesize);
12249 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
12250 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12251 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12253 for (i = 0; i < pagesize; ++i)
12254 if (*(data + i) != *(data2 + i))
12257 /* Finally, make sure that changes to the mapped area do not
12258 percolate back to the file as seen by read(). (This is a bug on
12259 some variants of i386 svr4.0.) */
12260 for (i = 0; i < pagesize; ++i)
12261 *(data2 + i) = *(data2 + i) + 1;
12262 data3 = (char *) malloc (pagesize);
12265 if (read (fd, data3, pagesize) != pagesize)
12267 for (i = 0; i < pagesize; ++i)
12268 if (*(data + i) != *(data3 + i))
12274 rm -f conftest$ac_exeext
12275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12276 (eval $ac_link) 2>&5
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281 (eval $ac_try) 2>&5
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); }; }; then
12285 ac_cv_func_mmap_fixed_mapped=yes
12287 echo "$as_me: program exited with status $ac_status" >&5
12288 echo "$as_me: failed program was:" >&5
12289 sed 's/^/| /' conftest.$ac_ext >&5
12291 ( exit $ac_status )
12292 ac_cv_func_mmap_fixed_mapped=no
12294 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12297 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12298 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12299 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12301 cat >>confdefs.h <<\_ACEOF
12302 #define HAVE_MMAP 1
12306 rm -f conftest.mmap
12309 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
12310 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
12311 if test "${ac_cv_gnu_library_2_1+set}" = set; then
12312 echo $ECHO_N "(cached) $ECHO_C" >&6
12314 cat >conftest.$ac_ext <<_ACEOF
12315 #line $LINENO "configure"
12318 cat confdefs.h >>conftest.$ac_ext
12319 cat >>conftest.$ac_ext <<_ACEOF
12320 /* end confdefs.h. */
12322 #include <features.h>
12323 #ifdef __GNU_LIBRARY__
12324 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
12330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12331 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
12332 ac_cv_gnu_library_2_1=yes
12334 ac_cv_gnu_library_2_1=no
12341 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
12342 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
12344 GLIBC21="$ac_cv_gnu_library_2_1"
12358 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12359 stdlib.h string.h unistd.h sys/param.h
12361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12362 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12363 echo "$as_me:$LINENO: checking for $ac_header" >&5
12364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12366 echo $ECHO_N "(cached) $ECHO_C" >&6
12368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12369 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12371 # Is the header compilable?
12372 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12373 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12374 cat >conftest.$ac_ext <<_ACEOF
12375 #line $LINENO "configure"
12378 cat confdefs.h >>conftest.$ac_ext
12379 cat >>conftest.$ac_ext <<_ACEOF
12380 /* end confdefs.h. */
12381 $ac_includes_default
12382 #include <$ac_header>
12384 rm -f conftest.$ac_objext
12385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12386 (eval $ac_compile) 2>&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); } &&
12390 { ac_try='test -s conftest.$ac_objext'
12391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12392 (eval $ac_try) 2>&5
12394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12395 (exit $ac_status); }; }; then
12396 ac_header_compiler=yes
12398 echo "$as_me: failed program was:" >&5
12399 sed 's/^/| /' conftest.$ac_ext >&5
12401 ac_header_compiler=no
12403 rm -f conftest.$ac_objext conftest.$ac_ext
12404 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12405 echo "${ECHO_T}$ac_header_compiler" >&6
12407 # Is the header present?
12408 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12409 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12410 cat >conftest.$ac_ext <<_ACEOF
12411 #line $LINENO "configure"
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h. */
12417 #include <$ac_header>
12419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12422 grep -v '^ *+' conftest.er1 >conftest.err
12424 cat conftest.err >&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } >/dev/null; then
12427 if test -s conftest.err; then
12428 ac_cpp_err=$ac_c_preproc_warn_flag
12435 if test -z "$ac_cpp_err"; then
12436 ac_header_preproc=yes
12438 echo "$as_me: failed program was:" >&5
12439 sed 's/^/| /' conftest.$ac_ext >&5
12441 ac_header_preproc=no
12443 rm -f conftest.err conftest.$ac_ext
12444 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12445 echo "${ECHO_T}$ac_header_preproc" >&6
12447 # So? What about this header?
12448 case $ac_header_compiler:$ac_header_preproc in
12450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12453 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12456 ## ------------------------------------ ##
12457 ## Report this to bug-autoconf@gnu.org. ##
12458 ## ------------------------------------ ##
12461 sed "s/^/$as_me: WARNING: /" >&2
12464 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12465 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12466 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12467 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12469 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12472 ## ------------------------------------ ##
12473 ## Report this to bug-autoconf@gnu.org. ##
12474 ## ------------------------------------ ##
12477 sed "s/^/$as_me: WARNING: /" >&2
12480 echo "$as_me:$LINENO: checking for $ac_header" >&5
12481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12483 echo $ECHO_N "(cached) $ECHO_C" >&6
12485 eval "$as_ac_Header=$ac_header_preproc"
12487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12492 cat >>confdefs.h <<_ACEOF
12493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12521 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
12522 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
12523 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
12525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12526 echo "$as_me:$LINENO: checking for $ac_func" >&5
12527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12528 if eval "test \"\${$as_ac_var+set}\" = set"; then
12529 echo $ECHO_N "(cached) $ECHO_C" >&6
12531 cat >conftest.$ac_ext <<_ACEOF
12532 #line $LINENO "configure"
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h. */
12538 /* System header to define __stub macros and hopefully few prototypes,
12539 which can conflict with char $ac_func (); below.
12540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12541 <limits.h> exists even on freestanding compilers. */
12543 # include <limits.h>
12545 # include <assert.h>
12547 /* Override any gcc2 internal prototype to avoid an error. */
12552 /* We use char because int might match the return type of a gcc2
12553 builtin and then its argument prototype would still apply. */
12555 /* The GNU C library defines this for functions which it implements
12556 to always fail with ENOSYS. Some functions are actually named
12557 something starting with __ and the normal name is an alias. */
12558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12561 char (*f) () = $ac_func;
12570 return f != $ac_func;
12575 rm -f conftest.$ac_objext conftest$ac_exeext
12576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12577 (eval $ac_link) 2>&5
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); } &&
12581 { ac_try='test -s conftest$ac_exeext'
12582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12583 (eval $ac_try) 2>&5
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); }; }; then
12587 eval "$as_ac_var=yes"
12589 echo "$as_me: failed program was:" >&5
12590 sed 's/^/| /' conftest.$ac_ext >&5
12592 eval "$as_ac_var=no"
12594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12597 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12598 if test `eval echo '${'$as_ac_var'}'` = yes; then
12599 cat >>confdefs.h <<_ACEOF
12600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12610 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
12611 if test "${with_libiconv_prefix+set}" = set; then
12612 withval="$with_libiconv_prefix"
12614 for dir in `echo "$withval" | tr : ' '`; do
12615 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
12616 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
12621 echo "$as_me:$LINENO: checking for iconv" >&5
12622 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
12623 if test "${am_cv_func_iconv+set}" = set; then
12624 echo $ECHO_N "(cached) $ECHO_C" >&6
12627 am_cv_func_iconv="no, consider installing GNU libiconv"
12629 cat >conftest.$ac_ext <<_ACEOF
12630 #line $LINENO "configure"
12633 cat confdefs.h >>conftest.$ac_ext
12634 cat >>conftest.$ac_ext <<_ACEOF
12635 /* end confdefs.h. */
12636 #include <stdlib.h>
12641 iconv_t cd = iconv_open("","");
12642 iconv(cd,NULL,NULL,NULL,NULL);
12648 rm -f conftest.$ac_objext conftest$ac_exeext
12649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12650 (eval $ac_link) 2>&5
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); } &&
12654 { ac_try='test -s conftest$ac_exeext'
12655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12656 (eval $ac_try) 2>&5
12658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12659 (exit $ac_status); }; }; then
12660 am_cv_func_iconv=yes
12662 echo "$as_me: failed program was:" >&5
12663 sed 's/^/| /' conftest.$ac_ext >&5
12666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12667 if test "$am_cv_func_iconv" != yes; then
12668 am_save_LIBS="$LIBS"
12669 LIBS="$LIBS -liconv"
12670 cat >conftest.$ac_ext <<_ACEOF
12671 #line $LINENO "configure"
12674 cat confdefs.h >>conftest.$ac_ext
12675 cat >>conftest.$ac_ext <<_ACEOF
12676 /* end confdefs.h. */
12677 #include <stdlib.h>
12682 iconv_t cd = iconv_open("","");
12683 iconv(cd,NULL,NULL,NULL,NULL);
12689 rm -f conftest.$ac_objext conftest$ac_exeext
12690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12691 (eval $ac_link) 2>&5
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); } &&
12695 { ac_try='test -s conftest$ac_exeext'
12696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12697 (eval $ac_try) 2>&5
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); }; }; then
12701 am_cv_lib_iconv=yes
12702 am_cv_func_iconv=yes
12704 echo "$as_me: failed program was:" >&5
12705 sed 's/^/| /' conftest.$ac_ext >&5
12708 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12709 LIBS="$am_save_LIBS"
12713 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12714 echo "${ECHO_T}$am_cv_func_iconv" >&6
12715 if test "$am_cv_func_iconv" = yes; then
12717 cat >>confdefs.h <<\_ACEOF
12718 #define HAVE_ICONV 1
12721 echo "$as_me:$LINENO: checking for iconv declaration" >&5
12722 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
12723 if test "${am_cv_proto_iconv+set}" = set; then
12724 echo $ECHO_N "(cached) $ECHO_C" >&6
12727 cat >conftest.$ac_ext <<_ACEOF
12728 #line $LINENO "configure"
12731 cat confdefs.h >>conftest.$ac_ext
12732 cat >>conftest.$ac_ext <<_ACEOF
12733 /* end confdefs.h. */
12735 #include <stdlib.h>
12741 #if defined(__STDC__) || defined(__cplusplus)
12742 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12755 rm -f conftest.$ac_objext
12756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12757 (eval $ac_compile) 2>&5
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); } &&
12761 { ac_try='test -s conftest.$ac_objext'
12762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12763 (eval $ac_try) 2>&5
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; }; then
12767 am_cv_proto_iconv_arg1=""
12769 echo "$as_me: failed program was:" >&5
12770 sed 's/^/| /' conftest.$ac_ext >&5
12772 am_cv_proto_iconv_arg1="const"
12774 rm -f conftest.$ac_objext conftest.$ac_ext
12775 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);"
12778 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12779 echo "$as_me:$LINENO: result: ${ac_t:-
12780 }$am_cv_proto_iconv" >&5
12781 echo "${ECHO_T}${ac_t:-
12782 }$am_cv_proto_iconv" >&6
12784 cat >>confdefs.h <<_ACEOF
12785 #define ICONV_CONST $am_cv_proto_iconv_arg1
12790 if test "$am_cv_lib_iconv" = yes; then
12796 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12797 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
12798 if test "${am_cv_langinfo_codeset+set}" = set; then
12799 echo $ECHO_N "(cached) $ECHO_C" >&6
12801 cat >conftest.$ac_ext <<_ACEOF
12802 #line $LINENO "configure"
12805 cat confdefs.h >>conftest.$ac_ext
12806 cat >>conftest.$ac_ext <<_ACEOF
12807 /* end confdefs.h. */
12808 #include <langinfo.h>
12812 char* cs = nl_langinfo(CODESET);
12817 rm -f conftest.$ac_objext conftest$ac_exeext
12818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12819 (eval $ac_link) 2>&5
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); } &&
12823 { ac_try='test -s conftest$ac_exeext'
12824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12825 (eval $ac_try) 2>&5
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); }; }; then
12829 am_cv_langinfo_codeset=yes
12831 echo "$as_me: failed program was:" >&5
12832 sed 's/^/| /' conftest.$ac_ext >&5
12834 am_cv_langinfo_codeset=no
12836 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12839 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12840 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
12841 if test $am_cv_langinfo_codeset = yes; then
12843 cat >>confdefs.h <<\_ACEOF
12844 #define HAVE_LANGINFO_CODESET 1
12849 if test $ac_cv_header_locale_h = yes; then
12850 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12851 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
12852 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
12853 echo $ECHO_N "(cached) $ECHO_C" >&6
12855 cat >conftest.$ac_ext <<_ACEOF
12856 #line $LINENO "configure"
12859 cat confdefs.h >>conftest.$ac_ext
12860 cat >>conftest.$ac_ext <<_ACEOF
12861 /* end confdefs.h. */
12862 #include <locale.h>
12871 rm -f conftest.$ac_objext conftest$ac_exeext
12872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12873 (eval $ac_link) 2>&5
12875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12876 (exit $ac_status); } &&
12877 { ac_try='test -s conftest$ac_exeext'
12878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12879 (eval $ac_try) 2>&5
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); }; }; then
12883 am_cv_val_LC_MESSAGES=yes
12885 echo "$as_me: failed program was:" >&5
12886 sed 's/^/| /' conftest.$ac_ext >&5
12888 am_cv_val_LC_MESSAGES=no
12890 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12892 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12893 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
12894 if test $am_cv_val_LC_MESSAGES = yes; then
12896 cat >>confdefs.h <<\_ACEOF
12897 #define HAVE_LC_MESSAGES 1
12902 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12903 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12904 # Check whether --enable-nls or --disable-nls was given.
12905 if test "${enable_nls+set}" = set; then
12906 enableval="$enable_nls"
12911 echo "$as_me:$LINENO: result: $USE_NLS" >&5
12912 echo "${ECHO_T}$USE_NLS" >&6
12915 BUILD_INCLUDED_LIBINTL=no
12916 USE_INCLUDED_LIBINTL=no
12919 if test "$USE_NLS" = "yes"; then
12921 cat >>confdefs.h <<\_ACEOF
12922 #define ENABLE_NLS 1
12925 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12926 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
12928 # Check whether --with-included-gettext or --without-included-gettext was given.
12929 if test "${with_included_gettext+set}" = set; then
12930 withval="$with_included_gettext"
12931 nls_cv_force_use_gnu_gettext=$withval
12933 nls_cv_force_use_gnu_gettext=no
12935 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12936 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
12938 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12939 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12945 if test "${ac_cv_header_libintl_h+set}" = set; then
12946 echo "$as_me:$LINENO: checking for libintl.h" >&5
12947 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
12948 if test "${ac_cv_header_libintl_h+set}" = set; then
12949 echo $ECHO_N "(cached) $ECHO_C" >&6
12951 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
12952 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
12954 # Is the header compilable?
12955 echo "$as_me:$LINENO: checking libintl.h usability" >&5
12956 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
12957 cat >conftest.$ac_ext <<_ACEOF
12958 #line $LINENO "configure"
12961 cat confdefs.h >>conftest.$ac_ext
12962 cat >>conftest.$ac_ext <<_ACEOF
12963 /* end confdefs.h. */
12964 $ac_includes_default
12965 #include <libintl.h>
12967 rm -f conftest.$ac_objext
12968 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12969 (eval $ac_compile) 2>&5
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); } &&
12973 { ac_try='test -s conftest.$ac_objext'
12974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12975 (eval $ac_try) 2>&5
12977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12978 (exit $ac_status); }; }; then
12979 ac_header_compiler=yes
12981 echo "$as_me: failed program was:" >&5
12982 sed 's/^/| /' conftest.$ac_ext >&5
12984 ac_header_compiler=no
12986 rm -f conftest.$ac_objext conftest.$ac_ext
12987 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12988 echo "${ECHO_T}$ac_header_compiler" >&6
12990 # Is the header present?
12991 echo "$as_me:$LINENO: checking libintl.h presence" >&5
12992 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
12993 cat >conftest.$ac_ext <<_ACEOF
12994 #line $LINENO "configure"
12997 cat confdefs.h >>conftest.$ac_ext
12998 cat >>conftest.$ac_ext <<_ACEOF
12999 /* end confdefs.h. */
13000 #include <libintl.h>
13002 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13005 grep -v '^ *+' conftest.er1 >conftest.err
13007 cat conftest.err >&5
13008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13009 (exit $ac_status); } >/dev/null; then
13010 if test -s conftest.err; then
13011 ac_cpp_err=$ac_c_preproc_warn_flag
13018 if test -z "$ac_cpp_err"; then
13019 ac_header_preproc=yes
13021 echo "$as_me: failed program was:" >&5
13022 sed 's/^/| /' conftest.$ac_ext >&5
13024 ac_header_preproc=no
13026 rm -f conftest.err conftest.$ac_ext
13027 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13028 echo "${ECHO_T}$ac_header_preproc" >&6
13030 # So? What about this header?
13031 case $ac_header_compiler:$ac_header_preproc in
13033 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
13034 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13035 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
13036 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
13039 ## ------------------------------------ ##
13040 ## Report this to bug-autoconf@gnu.org. ##
13041 ## ------------------------------------ ##
13044 sed "s/^/$as_me: WARNING: /" >&2
13047 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
13048 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
13049 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
13050 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
13051 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
13052 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
13055 ## ------------------------------------ ##
13056 ## Report this to bug-autoconf@gnu.org. ##
13057 ## ------------------------------------ ##
13060 sed "s/^/$as_me: WARNING: /" >&2
13063 echo "$as_me:$LINENO: checking for libintl.h" >&5
13064 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
13065 if test "${ac_cv_header_libintl_h+set}" = set; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
13068 ac_cv_header_libintl_h=$ac_header_preproc
13070 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
13071 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
13074 if test $ac_cv_header_libintl_h = yes; then
13075 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
13076 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
13077 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
13078 echo $ECHO_N "(cached) $ECHO_C" >&6
13080 cat >conftest.$ac_ext <<_ACEOF
13081 #line $LINENO "configure"
13084 cat confdefs.h >>conftest.$ac_ext
13085 cat >>conftest.$ac_ext <<_ACEOF
13086 /* end confdefs.h. */
13087 #include <libintl.h>
13088 extern int _nl_msg_cat_cntr;
13092 bindtextdomain ("", "");
13093 return (int) gettext ("") + _nl_msg_cat_cntr
13098 rm -f conftest.$ac_objext conftest$ac_exeext
13099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13100 (eval $ac_link) 2>&5
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); } &&
13104 { ac_try='test -s conftest$ac_exeext'
13105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13106 (eval $ac_try) 2>&5
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); }; }; then
13110 gt_cv_func_gnugettext1_libc=yes
13112 echo "$as_me: failed program was:" >&5
13113 sed 's/^/| /' conftest.$ac_ext >&5
13115 gt_cv_func_gnugettext1_libc=no
13117 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13119 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
13120 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
13122 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
13123 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13124 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
13125 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13126 echo $ECHO_N "(cached) $ECHO_C" >&6
13128 gt_save_LIBS="$LIBS"
13129 LIBS="$LIBS -lintl $LIBICONV"
13130 cat >conftest.$ac_ext <<_ACEOF
13131 #line $LINENO "configure"
13134 cat confdefs.h >>conftest.$ac_ext
13135 cat >>conftest.$ac_ext <<_ACEOF
13136 /* end confdefs.h. */
13137 #include <libintl.h>
13138 extern int _nl_msg_cat_cntr;
13142 bindtextdomain ("", "");
13143 return (int) gettext ("") + _nl_msg_cat_cntr
13148 rm -f conftest.$ac_objext conftest$ac_exeext
13149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13150 (eval $ac_link) 2>&5
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); } &&
13154 { ac_try='test -s conftest$ac_exeext'
13155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13156 (eval $ac_try) 2>&5
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); }; }; then
13160 gt_cv_func_gnugettext1_libintl=yes
13162 echo "$as_me: failed program was:" >&5
13163 sed 's/^/| /' conftest.$ac_ext >&5
13165 gt_cv_func_gnugettext1_libintl=no
13167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13168 LIBS="$gt_save_LIBS"
13170 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13171 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
13174 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13175 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13176 && test "$PACKAGE" != gettext; }; then
13178 cat >>confdefs.h <<\_ACEOF
13179 #define HAVE_GETTEXT 1
13183 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13184 INTLLIBS="-lintl $LIBICONV"
13187 gt_save_LIBS="$LIBS"
13188 LIBS="$LIBS $INTLLIBS"
13190 for ac_func in dcgettext
13192 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13193 echo "$as_me:$LINENO: checking for $ac_func" >&5
13194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13195 if eval "test \"\${$as_ac_var+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 /* System header to define __stub macros and hopefully few prototypes,
13206 which can conflict with char $ac_func (); below.
13207 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13208 <limits.h> exists even on freestanding compilers. */
13210 # include <limits.h>
13212 # include <assert.h>
13214 /* Override any gcc2 internal prototype to avoid an error. */
13219 /* We use char because int might match the return type of a gcc2
13220 builtin and then its argument prototype would still apply. */
13222 /* The GNU C library defines this for functions which it implements
13223 to always fail with ENOSYS. Some functions are actually named
13224 something starting with __ and the normal name is an alias. */
13225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13228 char (*f) () = $ac_func;
13237 return f != $ac_func;
13242 rm -f conftest.$ac_objext conftest$ac_exeext
13243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13244 (eval $ac_link) 2>&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); } &&
13248 { ac_try='test -s conftest$ac_exeext'
13249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13250 (eval $ac_try) 2>&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); }; }; then
13254 eval "$as_ac_var=yes"
13256 echo "$as_me: failed program was:" >&5
13257 sed 's/^/| /' conftest.$ac_ext >&5
13259 eval "$as_ac_var=no"
13261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13265 if test `eval echo '${'$as_ac_var'}'` = yes; then
13266 cat >>confdefs.h <<_ACEOF
13267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13273 LIBS="$gt_save_LIBS"
13275 # Extract the first word of "msgfmt", so it can be a program name with args.
13276 set dummy msgfmt; ac_word=$2
13277 echo "$as_me:$LINENO: checking for $ac_word" >&5
13278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13279 if test "${ac_cv_path_MSGFMT+set}" = set; then
13280 echo $ECHO_N "(cached) $ECHO_C" >&6
13284 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13287 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13288 for ac_dir in $PATH; do
13289 test -z "$ac_dir" && ac_dir=.
13290 if test -f $ac_dir/$ac_word; then
13291 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
13292 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
13298 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13302 MSGFMT="$ac_cv_path_MSGFMT"
13303 if test "$MSGFMT" != ":"; then
13304 echo "$as_me:$LINENO: result: $MSGFMT" >&5
13305 echo "${ECHO_T}$MSGFMT" >&6
13307 echo "$as_me:$LINENO: result: no" >&5
13308 echo "${ECHO_T}no" >&6
13311 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13312 set dummy gmsgfmt; ac_word=$2
13313 echo "$as_me:$LINENO: checking for $ac_word" >&5
13314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13315 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13316 echo $ECHO_N "(cached) $ECHO_C" >&6
13320 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13324 for as_dir in $PATH
13327 test -z "$as_dir" && as_dir=.
13328 for ac_exec_ext in '' $ac_executable_extensions; do
13329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13330 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13337 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13341 GMSGFMT=$ac_cv_path_GMSGFMT
13343 if test -n "$GMSGFMT"; then
13344 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
13345 echo "${ECHO_T}$GMSGFMT" >&6
13347 echo "$as_me:$LINENO: result: no" >&5
13348 echo "${ECHO_T}no" >&6
13352 # Extract the first word of "xgettext", so it can be a program name with args.
13353 set dummy xgettext; ac_word=$2
13354 echo "$as_me:$LINENO: checking for $ac_word" >&5
13355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13356 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13357 echo $ECHO_N "(cached) $ECHO_C" >&6
13359 case "$XGETTEXT" in
13361 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13364 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13365 for ac_dir in $PATH; do
13366 test -z "$ac_dir" && ac_dir=.
13367 if test -f $ac_dir/$ac_word; then
13368 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
13369 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
13375 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13379 XGETTEXT="$ac_cv_path_XGETTEXT"
13380 if test "$XGETTEXT" != ":"; then
13381 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
13382 echo "${ECHO_T}$XGETTEXT" >&6
13384 echo "$as_me:$LINENO: result: no" >&5
13385 echo "${ECHO_T}no" >&6
13396 if test "$CATOBJEXT" = "NONE"; then
13397 nls_cv_use_gnu_gettext=yes
13401 if test "$nls_cv_use_gnu_gettext" = "yes"; then
13402 INTLOBJS="\$(GETTOBJS)"
13403 # Extract the first word of "msgfmt", so it can be a program name with args.
13404 set dummy msgfmt; ac_word=$2
13405 echo "$as_me:$LINENO: checking for $ac_word" >&5
13406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13407 if test "${ac_cv_path_MSGFMT+set}" = set; then
13408 echo $ECHO_N "(cached) $ECHO_C" >&6
13412 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13415 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13416 for ac_dir in $PATH; do
13417 test -z "$ac_dir" && ac_dir=.
13418 if test -f $ac_dir/$ac_word; then
13419 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
13420 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
13426 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13430 MSGFMT="$ac_cv_path_MSGFMT"
13431 if test "$MSGFMT" != ":"; then
13432 echo "$as_me:$LINENO: result: $MSGFMT" >&5
13433 echo "${ECHO_T}$MSGFMT" >&6
13435 echo "$as_me:$LINENO: result: no" >&5
13436 echo "${ECHO_T}no" >&6
13439 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13440 set dummy gmsgfmt; ac_word=$2
13441 echo "$as_me:$LINENO: checking for $ac_word" >&5
13442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13443 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13444 echo $ECHO_N "(cached) $ECHO_C" >&6
13448 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13452 for as_dir in $PATH
13455 test -z "$as_dir" && as_dir=.
13456 for ac_exec_ext in '' $ac_executable_extensions; do
13457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13458 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13465 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13469 GMSGFMT=$ac_cv_path_GMSGFMT
13471 if test -n "$GMSGFMT"; then
13472 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
13473 echo "${ECHO_T}$GMSGFMT" >&6
13475 echo "$as_me:$LINENO: result: no" >&5
13476 echo "${ECHO_T}no" >&6
13479 # Extract the first word of "xgettext", so it can be a program name with args.
13480 set dummy xgettext; ac_word=$2
13481 echo "$as_me:$LINENO: checking for $ac_word" >&5
13482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13483 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13484 echo $ECHO_N "(cached) $ECHO_C" >&6
13486 case "$XGETTEXT" in
13488 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13491 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13492 for ac_dir in $PATH; do
13493 test -z "$ac_dir" && ac_dir=.
13494 if test -f $ac_dir/$ac_word; then
13495 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
13496 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
13502 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13506 XGETTEXT="$ac_cv_path_XGETTEXT"
13507 if test "$XGETTEXT" != ":"; then
13508 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
13509 echo "${ECHO_T}$XGETTEXT" >&6
13511 echo "$as_me:$LINENO: result: no" >&5
13512 echo "${ECHO_T}no" >&6
13516 BUILD_INCLUDED_LIBINTL=yes
13517 USE_INCLUDED_LIBINTL=yes
13519 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
13520 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13523 if test "$GMSGFMT" != ":"; then
13524 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
13527 echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
13528 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
13533 if test "$XGETTEXT" != ":"; then
13534 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
13537 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
13538 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
13545 ac_config_commands="$ac_config_commands default-1"
13549 if test "$PACKAGE" = gettext; then
13550 BUILD_INCLUDED_LIBINTL=yes
13553 for ac_prog in bison
13555 # Extract the first word of "$ac_prog", so it can be a program name with args.
13556 set dummy $ac_prog; ac_word=$2
13557 echo "$as_me:$LINENO: checking for $ac_word" >&5
13558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13559 if test "${ac_cv_prog_INTLBISON+set}" = set; then
13560 echo $ECHO_N "(cached) $ECHO_C" >&6
13562 if test -n "$INTLBISON"; then
13563 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13566 for as_dir in $PATH
13569 test -z "$as_dir" && as_dir=.
13570 for ac_exec_ext in '' $ac_executable_extensions; do
13571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13572 ac_cv_prog_INTLBISON="$ac_prog"
13573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13581 INTLBISON=$ac_cv_prog_INTLBISON
13582 if test -n "$INTLBISON"; then
13583 echo "$as_me:$LINENO: result: $INTLBISON" >&5
13584 echo "${ECHO_T}$INTLBISON" >&6
13586 echo "$as_me:$LINENO: result: no" >&5
13587 echo "${ECHO_T}no" >&6
13590 test -n "$INTLBISON" && break
13593 if test -z "$INTLBISON"; then
13596 echo "$as_me:$LINENO: checking version of bison" >&5
13597 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
13598 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13599 case $ac_prog_version in
13600 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13601 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13602 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13603 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13605 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
13606 echo "${ECHO_T}$ac_prog_version" >&6
13608 if test $ac_verc_fail = yes; then
13612 for lang in $ALL_LINGUAS; do
13613 GMOFILES="$GMOFILES $lang.gmo"
13614 POFILES="$POFILES $lang.po"
13627 nls_cv_header_intl=
13628 nls_cv_header_libgt=
13640 if test "x$CATOBJEXT" != "x"; then
13641 if test "x$ALL_LINGUAS" = "x"; then
13644 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13645 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
13647 for presentlang in $ALL_LINGUAS; do
13649 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
13650 # Use the presentlang catalog if desiredlang is
13651 # a. equal to presentlang, or
13652 # b. a variant of presentlang (because in this case,
13653 # presentlang can be used as a fallback for messages
13654 # which are not translated in the desiredlang catalog).
13655 case "$desiredlang" in
13656 "$presentlang"*) useit=yes;;
13659 if test $useit = yes; then
13660 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
13663 LINGUAS=$NEW_LINGUAS
13664 echo "$as_me:$LINENO: result: $LINGUAS" >&5
13665 echo "${ECHO_T}$LINGUAS" >&6
13668 if test -n "$LINGUAS"; then
13669 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
13674 if test -n "$ac_aux_dir"; then
13675 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
13677 if test -z "$MKINSTALLDIRS"; then
13678 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13682 INTL_LIBTOOL_SUFFIX_PREFIX=
13686 if test "$am_cv_func_iconv" != "yes"
13688 { echo "$as_me:$LINENO: WARNING: Configuring without iconv support. See INSTALL for details" >&5
13689 echo "$as_me: WARNING: Configuring without iconv support. See INSTALL for details" >&2;}
13693 for ac_header in iconv.h
13695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13696 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13697 echo "$as_me:$LINENO: checking for $ac_header" >&5
13698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13699 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13700 echo $ECHO_N "(cached) $ECHO_C" >&6
13702 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13703 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13705 # Is the header compilable?
13706 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13708 cat >conftest.$ac_ext <<_ACEOF
13709 #line $LINENO "configure"
13712 cat confdefs.h >>conftest.$ac_ext
13713 cat >>conftest.$ac_ext <<_ACEOF
13714 /* end confdefs.h. */
13715 $ac_includes_default
13716 #include <$ac_header>
13718 rm -f conftest.$ac_objext
13719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13720 (eval $ac_compile) 2>&5
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); } &&
13724 { ac_try='test -s conftest.$ac_objext'
13725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726 (eval $ac_try) 2>&5
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); }; }; then
13730 ac_header_compiler=yes
13732 echo "$as_me: failed program was:" >&5
13733 sed 's/^/| /' conftest.$ac_ext >&5
13735 ac_header_compiler=no
13737 rm -f conftest.$ac_objext conftest.$ac_ext
13738 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13739 echo "${ECHO_T}$ac_header_compiler" >&6
13741 # Is the header present?
13742 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13744 cat >conftest.$ac_ext <<_ACEOF
13745 #line $LINENO "configure"
13748 cat confdefs.h >>conftest.$ac_ext
13749 cat >>conftest.$ac_ext <<_ACEOF
13750 /* end confdefs.h. */
13751 #include <$ac_header>
13753 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13756 grep -v '^ *+' conftest.er1 >conftest.err
13758 cat conftest.err >&5
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); } >/dev/null; then
13761 if test -s conftest.err; then
13762 ac_cpp_err=$ac_c_preproc_warn_flag
13769 if test -z "$ac_cpp_err"; then
13770 ac_header_preproc=yes
13772 echo "$as_me: failed program was:" >&5
13773 sed 's/^/| /' conftest.$ac_ext >&5
13775 ac_header_preproc=no
13777 rm -f conftest.err conftest.$ac_ext
13778 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13779 echo "${ECHO_T}$ac_header_preproc" >&6
13781 # So? What about this header?
13782 case $ac_header_compiler:$ac_header_preproc in
13784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13787 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13790 ## ------------------------------------ ##
13791 ## Report this to bug-autoconf@gnu.org. ##
13792 ## ------------------------------------ ##
13795 sed "s/^/$as_me: WARNING: /" >&2
13798 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13799 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13800 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13801 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13806 ## ------------------------------------ ##
13807 ## Report this to bug-autoconf@gnu.org. ##
13808 ## ------------------------------------ ##
13811 sed "s/^/$as_me: WARNING: /" >&2
13814 echo "$as_me:$LINENO: checking for $ac_header" >&5
13815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13816 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13817 echo $ECHO_N "(cached) $ECHO_C" >&6
13819 eval "$as_ac_Header=$ac_header_preproc"
13821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13826 cat >>confdefs.h <<_ACEOF
13827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13829 echo "$as_me:$LINENO: checking whether iconv.h defines iconv_t" >&5
13830 echo $ECHO_N "checking whether iconv.h defines iconv_t... $ECHO_C" >&6
13831 cat >conftest.$ac_ext <<_ACEOF
13832 #line $LINENO "configure"
13835 cat confdefs.h >>conftest.$ac_ext
13836 cat >>conftest.$ac_ext <<_ACEOF
13837 /* end confdefs.h. */
13841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13842 $EGREP "typedef.*iconv_t" >/dev/null 2>&1; then
13843 echo "$as_me:$LINENO: result: yes" >&5
13844 echo "${ECHO_T}yes" >&6
13846 cat >>confdefs.h <<\_ACEOF
13847 #define HAVE_ICONV_T_DEF 1
13851 echo "$as_me:$LINENO: result: no" >&5
13852 echo "${ECHO_T}no" >&6
13861 echo "$as_me:$LINENO: checking whether this iconv is good enough" >&5
13862 echo $ECHO_N "checking whether this iconv is good enough... $ECHO_C" >&6
13863 if test "${mutt_cv_iconv_good+set}" = set; then
13864 echo $ECHO_N "(cached) $ECHO_C" >&6
13866 mutt_save_LIBS="$LIBS"
13867 LIBS="$LIBS $LIBICONV"
13868 if test "$cross_compiling" = yes; then
13869 mutt_cv_iconv_good=yes
13871 cat >conftest.$ac_ext <<_ACEOF
13872 #line $LINENO "configure"
13875 cat confdefs.h >>conftest.$ac_ext
13876 cat >>conftest.$ac_ext <<_ACEOF
13877 /* end confdefs.h. */
13886 ob = buf, obl = sizeof(buf);
13887 return ((cd = iconv_open("UTF-8", "UTF-8")) != (iconv_t)(-1) &&
13888 (iconv(cd, 0, 0, &ob, &obl) ||
13889 !(ob == buf && obl == sizeof(buf)) ||
13894 rm -f conftest$ac_exeext
13895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13896 (eval $ac_link) 2>&5
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13901 (eval $ac_try) 2>&5
13903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); }; }; then
13905 mutt_cv_iconv_good=yes
13907 echo "$as_me: program exited with status $ac_status" >&5
13908 echo "$as_me: failed program was:" >&5
13909 sed 's/^/| /' conftest.$ac_ext >&5
13911 ( exit $ac_status )
13912 mutt_cv_iconv_good=no
13914 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13916 LIBS="$mutt_save_LIBS"
13918 echo "$as_me:$LINENO: result: $mutt_cv_iconv_good" >&5
13919 echo "${ECHO_T}$mutt_cv_iconv_good" >&6
13920 if test "$mutt_cv_iconv_good" = no; then
13921 { { echo "$as_me:$LINENO: error: Try using libiconv instead" >&5
13922 echo "$as_me: error: Try using libiconv instead" >&2;}
13923 { (exit 1); exit 1; }; }
13926 echo "$as_me:$LINENO: checking whether iconv is non-transcribing" >&5
13927 echo $ECHO_N "checking whether iconv is non-transcribing... $ECHO_C" >&6
13928 if test "${mutt_cv_iconv_nontrans+set}" = set; then
13929 echo $ECHO_N "(cached) $ECHO_C" >&6
13931 mutt_save_LIBS="$LIBS"
13932 LIBS="$LIBS $LIBICONV"
13933 if test "$cross_compiling" = yes; then
13934 mutt_cv_iconv_nontrans=no
13936 cat >conftest.$ac_ext <<_ACEOF
13937 #line $LINENO "configure"
13940 cat confdefs.h >>conftest.$ac_ext
13941 cat >>conftest.$ac_ext <<_ACEOF
13942 /* end confdefs.h. */
13945 #include <string.h>
13952 const char *s = "\304\211";
13954 ib = s, ibl = 2, ob = t, obl = 3;
13955 return ((cd = iconv_open("UTF-8", "UTF-8")) == (iconv_t)(-1) ||
13956 iconv(cd, &ib, &ibl, &ob, &obl));
13960 rm -f conftest$ac_exeext
13961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13962 (eval $ac_link) 2>&5
13964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13967 (eval $ac_try) 2>&5
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); }; }; then
13971 mutt_cv_iconv_nontrans=no
13973 echo "$as_me: program exited with status $ac_status" >&5
13974 echo "$as_me: failed program was:" >&5
13975 sed 's/^/| /' conftest.$ac_ext >&5
13977 ( exit $ac_status )
13978 mutt_cv_iconv_nontrans=yes
13980 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13982 LIBS="$mutt_save_LIBS"
13984 echo "$as_me:$LINENO: result: $mutt_cv_iconv_nontrans" >&5
13985 echo "${ECHO_T}$mutt_cv_iconv_nontrans" >&6
13986 if test "$mutt_cv_iconv_nontrans" = yes; then
13987 cat >>confdefs.h <<\_ACEOF
13988 #define ICONV_NONTRANS 1
13992 cat >>confdefs.h <<\_ACEOF
13993 #define ICONV_NONTRANS 0
13998 CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/intl"
14000 if test "$BUILD_INCLUDED_LIBINTL" = "yes"; then
14002 cat >>confdefs.h <<\_ACEOF
14003 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
14008 for ac_func in bind_textdomain_codeset
14010 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14011 echo "$as_me:$LINENO: checking for $ac_func" >&5
14012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14013 if eval "test \"\${$as_ac_var+set}\" = set"; then
14014 echo $ECHO_N "(cached) $ECHO_C" >&6
14016 cat >conftest.$ac_ext <<_ACEOF
14017 #line $LINENO "configure"
14020 cat confdefs.h >>conftest.$ac_ext
14021 cat >>conftest.$ac_ext <<_ACEOF
14022 /* end confdefs.h. */
14023 /* System header to define __stub macros and hopefully few prototypes,
14024 which can conflict with char $ac_func (); below.
14025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14026 <limits.h> exists even on freestanding compilers. */
14028 # include <limits.h>
14030 # include <assert.h>
14032 /* Override any gcc2 internal prototype to avoid an error. */
14037 /* We use char because int might match the return type of a gcc2
14038 builtin and then its argument prototype would still apply. */
14040 /* The GNU C library defines this for functions which it implements
14041 to always fail with ENOSYS. Some functions are actually named
14042 something starting with __ and the normal name is an alias. */
14043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14046 char (*f) () = $ac_func;
14055 return f != $ac_func;
14060 rm -f conftest.$ac_objext conftest$ac_exeext
14061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14062 (eval $ac_link) 2>&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 (exit $ac_status); } &&
14066 { ac_try='test -s conftest$ac_exeext'
14067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14068 (eval $ac_try) 2>&5
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); }; }; then
14072 eval "$as_ac_var=yes"
14074 echo "$as_me: failed program was:" >&5
14075 sed 's/^/| /' conftest.$ac_ext >&5
14077 eval "$as_ac_var=no"
14079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14082 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14083 if test `eval echo '${'$as_ac_var'}'` = yes; then
14084 cat >>confdefs.h <<_ACEOF
14085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14097 for ac_header in wchar.h
14099 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14100 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14101 echo "$as_me:$LINENO: checking for $ac_header" >&5
14102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14104 echo $ECHO_N "(cached) $ECHO_C" >&6
14106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14107 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14109 # Is the header compilable?
14110 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14111 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14112 cat >conftest.$ac_ext <<_ACEOF
14113 #line $LINENO "configure"
14116 cat confdefs.h >>conftest.$ac_ext
14117 cat >>conftest.$ac_ext <<_ACEOF
14118 /* end confdefs.h. */
14119 $ac_includes_default
14120 #include <$ac_header>
14122 rm -f conftest.$ac_objext
14123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14124 (eval $ac_compile) 2>&5
14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); } &&
14128 { ac_try='test -s conftest.$ac_objext'
14129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14130 (eval $ac_try) 2>&5
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; }; then
14134 ac_header_compiler=yes
14136 echo "$as_me: failed program was:" >&5
14137 sed 's/^/| /' conftest.$ac_ext >&5
14139 ac_header_compiler=no
14141 rm -f conftest.$ac_objext conftest.$ac_ext
14142 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14143 echo "${ECHO_T}$ac_header_compiler" >&6
14145 # Is the header present?
14146 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14148 cat >conftest.$ac_ext <<_ACEOF
14149 #line $LINENO "configure"
14152 cat confdefs.h >>conftest.$ac_ext
14153 cat >>conftest.$ac_ext <<_ACEOF
14154 /* end confdefs.h. */
14155 #include <$ac_header>
14157 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14158 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14160 grep -v '^ *+' conftest.er1 >conftest.err
14162 cat conftest.err >&5
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); } >/dev/null; then
14165 if test -s conftest.err; then
14166 ac_cpp_err=$ac_c_preproc_warn_flag
14173 if test -z "$ac_cpp_err"; then
14174 ac_header_preproc=yes
14176 echo "$as_me: failed program was:" >&5
14177 sed 's/^/| /' conftest.$ac_ext >&5
14179 ac_header_preproc=no
14181 rm -f conftest.err conftest.$ac_ext
14182 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14183 echo "${ECHO_T}$ac_header_preproc" >&6
14185 # So? What about this header?
14186 case $ac_header_compiler:$ac_header_preproc in
14188 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14189 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14194 ## ------------------------------------ ##
14195 ## Report this to bug-autoconf@gnu.org. ##
14196 ## ------------------------------------ ##
14199 sed "s/^/$as_me: WARNING: /" >&2
14202 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14203 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14204 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14205 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14207 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14210 ## ------------------------------------ ##
14211 ## Report this to bug-autoconf@gnu.org. ##
14212 ## ------------------------------------ ##
14215 sed "s/^/$as_me: WARNING: /" >&2
14218 echo "$as_me:$LINENO: checking for $ac_header" >&5
14219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14221 echo $ECHO_N "(cached) $ECHO_C" >&6
14223 eval "$as_ac_Header=$ac_header_preproc"
14225 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14226 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14230 cat >>confdefs.h <<_ACEOF
14231 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14239 echo "$as_me:$LINENO: checking for wchar_t" >&5
14240 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
14241 if test "${mutt_cv_wchar_t+set}" = set; then
14242 echo $ECHO_N "(cached) $ECHO_C" >&6
14244 cat >conftest.$ac_ext <<_ACEOF
14245 #line $LINENO "configure"
14248 cat confdefs.h >>conftest.$ac_ext
14249 cat >>conftest.$ac_ext <<_ACEOF
14250 /* end confdefs.h. */
14252 #include <stddef.h>
14253 #include <stdlib.h>
14254 #ifdef HAVE_WCHAR_H
14261 wchar_t wc; return 0;
14266 rm -f conftest.$ac_objext
14267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14268 (eval $ac_compile) 2>&5
14270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271 (exit $ac_status); } &&
14272 { ac_try='test -s conftest.$ac_objext'
14273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14274 (eval $ac_try) 2>&5
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); }; }; then
14278 mutt_cv_wchar_t=yes
14280 echo "$as_me: failed program was:" >&5
14281 sed 's/^/| /' conftest.$ac_ext >&5
14285 rm -f conftest.$ac_objext conftest.$ac_ext
14287 echo "$as_me:$LINENO: result: $mutt_cv_wchar_t" >&5
14288 echo "${ECHO_T}$mutt_cv_wchar_t" >&6
14290 if test "$mutt_cv_wchar_t" = no; then
14292 cat >>confdefs.h <<\_ACEOF
14293 #define wchar_t int
14298 echo "$as_me:$LINENO: checking for wint_t" >&5
14299 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
14300 if test "${mutt_cv_wint_t+set}" = set; then
14301 echo $ECHO_N "(cached) $ECHO_C" >&6
14303 cat >conftest.$ac_ext <<_ACEOF
14304 #line $LINENO "configure"
14307 cat confdefs.h >>conftest.$ac_ext
14308 cat >>conftest.$ac_ext <<_ACEOF
14309 /* end confdefs.h. */
14311 #include <stddef.h>
14312 #include <stdlib.h>
14313 #ifdef HAVE_WCHAR_H
14320 wint_t wc; return 0;
14325 rm -f conftest.$ac_objext
14326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14327 (eval $ac_compile) 2>&5
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); } &&
14331 { ac_try='test -s conftest.$ac_objext'
14332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14333 (eval $ac_try) 2>&5
14335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336 (exit $ac_status); }; }; then
14339 echo "$as_me: failed program was:" >&5
14340 sed 's/^/| /' conftest.$ac_ext >&5
14344 rm -f conftest.$ac_objext conftest.$ac_ext
14346 echo "$as_me:$LINENO: result: $mutt_cv_wint_t" >&5
14347 echo "${ECHO_T}$mutt_cv_wint_t" >&6
14349 if test "$mutt_cv_wint_t" = no; then
14351 cat >>confdefs.h <<\_ACEOF
14358 for ac_header in wctype.h
14360 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14362 echo "$as_me:$LINENO: checking for $ac_header" >&5
14363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14364 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14365 echo $ECHO_N "(cached) $ECHO_C" >&6
14367 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14368 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14370 # Is the header compilable?
14371 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14372 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14373 cat >conftest.$ac_ext <<_ACEOF
14374 #line $LINENO "configure"
14377 cat confdefs.h >>conftest.$ac_ext
14378 cat >>conftest.$ac_ext <<_ACEOF
14379 /* end confdefs.h. */
14380 $ac_includes_default
14381 #include <$ac_header>
14383 rm -f conftest.$ac_objext
14384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14385 (eval $ac_compile) 2>&5
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); } &&
14389 { ac_try='test -s conftest.$ac_objext'
14390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14391 (eval $ac_try) 2>&5
14393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); }; }; then
14395 ac_header_compiler=yes
14397 echo "$as_me: failed program was:" >&5
14398 sed 's/^/| /' conftest.$ac_ext >&5
14400 ac_header_compiler=no
14402 rm -f conftest.$ac_objext conftest.$ac_ext
14403 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14404 echo "${ECHO_T}$ac_header_compiler" >&6
14406 # Is the header present?
14407 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14409 cat >conftest.$ac_ext <<_ACEOF
14410 #line $LINENO "configure"
14413 cat confdefs.h >>conftest.$ac_ext
14414 cat >>conftest.$ac_ext <<_ACEOF
14415 /* end confdefs.h. */
14416 #include <$ac_header>
14418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14421 grep -v '^ *+' conftest.er1 >conftest.err
14423 cat conftest.err >&5
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); } >/dev/null; then
14426 if test -s conftest.err; then
14427 ac_cpp_err=$ac_c_preproc_warn_flag
14434 if test -z "$ac_cpp_err"; then
14435 ac_header_preproc=yes
14437 echo "$as_me: failed program was:" >&5
14438 sed 's/^/| /' conftest.$ac_ext >&5
14440 ac_header_preproc=no
14442 rm -f conftest.err conftest.$ac_ext
14443 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14444 echo "${ECHO_T}$ac_header_preproc" >&6
14446 # So? What about this header?
14447 case $ac_header_compiler:$ac_header_preproc in
14449 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14455 ## ------------------------------------ ##
14456 ## Report this to bug-autoconf@gnu.org. ##
14457 ## ------------------------------------ ##
14460 sed "s/^/$as_me: WARNING: /" >&2
14463 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14464 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14465 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14466 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14471 ## ------------------------------------ ##
14472 ## Report this to bug-autoconf@gnu.org. ##
14473 ## ------------------------------------ ##
14476 sed "s/^/$as_me: WARNING: /" >&2
14479 echo "$as_me:$LINENO: checking for $ac_header" >&5
14480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14482 echo $ECHO_N "(cached) $ECHO_C" >&6
14484 eval "$as_ac_Header=$ac_header_preproc"
14486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14491 cat >>confdefs.h <<_ACEOF
14492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14503 for ac_func in iswalnum iswalpha iswcntrl iswdigit
14505 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14506 echo "$as_me:$LINENO: checking for $ac_func" >&5
14507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14508 if eval "test \"\${$as_ac_var+set}\" = set"; then
14509 echo $ECHO_N "(cached) $ECHO_C" >&6
14511 cat >conftest.$ac_ext <<_ACEOF
14512 #line $LINENO "configure"
14515 cat confdefs.h >>conftest.$ac_ext
14516 cat >>conftest.$ac_ext <<_ACEOF
14517 /* end confdefs.h. */
14518 /* System header to define __stub macros and hopefully few prototypes,
14519 which can conflict with char $ac_func (); below.
14520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14521 <limits.h> exists even on freestanding compilers. */
14523 # include <limits.h>
14525 # include <assert.h>
14527 /* Override any gcc2 internal prototype to avoid an error. */
14532 /* We use char because int might match the return type of a gcc2
14533 builtin and then its argument prototype would still apply. */
14535 /* The GNU C library defines this for functions which it implements
14536 to always fail with ENOSYS. Some functions are actually named
14537 something starting with __ and the normal name is an alias. */
14538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14541 char (*f) () = $ac_func;
14550 return f != $ac_func;
14555 rm -f conftest.$ac_objext conftest$ac_exeext
14556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14557 (eval $ac_link) 2>&5
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); } &&
14561 { ac_try='test -s conftest$ac_exeext'
14562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14563 (eval $ac_try) 2>&5
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); }; }; then
14567 eval "$as_ac_var=yes"
14569 echo "$as_me: failed program was:" >&5
14570 sed 's/^/| /' conftest.$ac_ext >&5
14572 eval "$as_ac_var=no"
14574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14577 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14578 if test `eval echo '${'$as_ac_var'}'` = yes; then
14579 cat >>confdefs.h <<_ACEOF
14580 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14592 for ac_func in iswgraph iswlower iswprint iswpunct iswspace iswupper
14594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14595 echo "$as_me:$LINENO: checking for $ac_func" >&5
14596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14597 if eval "test \"\${$as_ac_var+set}\" = set"; then
14598 echo $ECHO_N "(cached) $ECHO_C" >&6
14600 cat >conftest.$ac_ext <<_ACEOF
14601 #line $LINENO "configure"
14604 cat confdefs.h >>conftest.$ac_ext
14605 cat >>conftest.$ac_ext <<_ACEOF
14606 /* end confdefs.h. */
14607 /* System header to define __stub macros and hopefully few prototypes,
14608 which can conflict with char $ac_func (); below.
14609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14610 <limits.h> exists even on freestanding compilers. */
14612 # include <limits.h>
14614 # include <assert.h>
14616 /* Override any gcc2 internal prototype to avoid an error. */
14621 /* We use char because int might match the return type of a gcc2
14622 builtin and then its argument prototype would still apply. */
14624 /* The GNU C library defines this for functions which it implements
14625 to always fail with ENOSYS. Some functions are actually named
14626 something starting with __ and the normal name is an alias. */
14627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14630 char (*f) () = $ac_func;
14639 return f != $ac_func;
14644 rm -f conftest.$ac_objext conftest$ac_exeext
14645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14646 (eval $ac_link) 2>&5
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); } &&
14650 { ac_try='test -s conftest$ac_exeext'
14651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14652 (eval $ac_try) 2>&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); }; }; then
14656 eval "$as_ac_var=yes"
14658 echo "$as_me: failed program was:" >&5
14659 sed 's/^/| /' conftest.$ac_ext >&5
14661 eval "$as_ac_var=no"
14663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14666 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14667 if test `eval echo '${'$as_ac_var'}'` = yes; then
14668 cat >>confdefs.h <<_ACEOF
14669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14678 for ac_func in iswxdigit towupper towlower
14680 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14681 echo "$as_me:$LINENO: checking for $ac_func" >&5
14682 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14683 if eval "test \"\${$as_ac_var+set}\" = set"; then
14684 echo $ECHO_N "(cached) $ECHO_C" >&6
14686 cat >conftest.$ac_ext <<_ACEOF
14687 #line $LINENO "configure"
14690 cat confdefs.h >>conftest.$ac_ext
14691 cat >>conftest.$ac_ext <<_ACEOF
14692 /* end confdefs.h. */
14693 /* System header to define __stub macros and hopefully few prototypes,
14694 which can conflict with char $ac_func (); below.
14695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14696 <limits.h> exists even on freestanding compilers. */
14698 # include <limits.h>
14700 # include <assert.h>
14702 /* Override any gcc2 internal prototype to avoid an error. */
14707 /* We use char because int might match the return type of a gcc2
14708 builtin and then its argument prototype would still apply. */
14710 /* The GNU C library defines this for functions which it implements
14711 to always fail with ENOSYS. Some functions are actually named
14712 something starting with __ and the normal name is an alias. */
14713 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14716 char (*f) () = $ac_func;
14725 return f != $ac_func;
14730 rm -f conftest.$ac_objext conftest$ac_exeext
14731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14732 (eval $ac_link) 2>&5
14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); } &&
14736 { ac_try='test -s conftest$ac_exeext'
14737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14738 (eval $ac_try) 2>&5
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); }; }; then
14742 eval "$as_ac_var=yes"
14744 echo "$as_me: failed program was:" >&5
14745 sed 's/^/| /' conftest.$ac_ext >&5
14747 eval "$as_ac_var=no"
14749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14751 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14752 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14753 if test `eval echo '${'$as_ac_var'}'` = yes; then
14754 cat >>confdefs.h <<_ACEOF
14755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14762 echo "$as_me:$LINENO: checking for mbstate_t" >&5
14763 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
14764 if test "${mutt_cv_mbstate_t+set}" = set; then
14765 echo $ECHO_N "(cached) $ECHO_C" >&6
14767 cat >conftest.$ac_ext <<_ACEOF
14768 #line $LINENO "configure"
14771 cat confdefs.h >>conftest.$ac_ext
14772 cat >>conftest.$ac_ext <<_ACEOF
14773 /* end confdefs.h. */
14775 #include <stddef.h>
14776 #include <stdlib.h>
14777 #ifdef HAVE_WCHAR_H
14784 mbstate_t s; return 0;
14789 rm -f conftest.$ac_objext
14790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14791 (eval $ac_compile) 2>&5
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); } &&
14795 { ac_try='test -s conftest.$ac_objext'
14796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14797 (eval $ac_try) 2>&5
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); }; }; then
14801 mutt_cv_mbstate_t=yes
14803 echo "$as_me: failed program was:" >&5
14804 sed 's/^/| /' conftest.$ac_ext >&5
14806 mutt_cv_mbstate_t=no
14808 rm -f conftest.$ac_objext conftest.$ac_ext
14810 echo "$as_me:$LINENO: result: $mutt_cv_mbstate_t" >&5
14811 echo "${ECHO_T}$mutt_cv_mbstate_t" >&6
14813 if test "$mutt_cv_mbstate_t" = no; then
14815 cat >>confdefs.h <<\_ACEOF
14816 #define mbstate_t int
14823 # Check whether --with-wc-funcs or --without-wc-funcs was given.
14824 if test "${with_wc_funcs+set}" = set; then
14825 withval="$with_wc_funcs"
14829 if test "$wc_funcs" != yes -a "$wc_funcs" != no; then
14830 echo "$as_me:$LINENO: checking for wchar_t functions" >&5
14831 echo $ECHO_N "checking for wchar_t functions... $ECHO_C" >&6
14832 if test "${mutt_cv_wc_funcs+set}" = set; then
14833 echo $ECHO_N "(cached) $ECHO_C" >&6
14835 mutt_cv_wc_funcs=no
14836 cat >conftest.$ac_ext <<_ACEOF
14837 #line $LINENO "configure"
14840 cat confdefs.h >>conftest.$ac_ext
14841 cat >>conftest.$ac_ext <<_ACEOF
14842 /* end confdefs.h. */
14844 #define _XOPEN_SOURCE 1
14845 #include <stddef.h>
14846 #include <stdlib.h>
14847 #ifdef HAVE_WCTYPE_H
14848 #include <wctype.h>
14850 #ifdef HAVE_WCHAR_H
14856 mbrtowc(0, 0, 0, 0); wctomb(0, 0); wcwidth(0);
14857 iswprint(0); iswspace(0); towlower(0); towupper(0); iswalnum(0)
14862 rm -f conftest.$ac_objext conftest$ac_exeext
14863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14864 (eval $ac_link) 2>&5
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); } &&
14868 { ac_try='test -s conftest$ac_exeext'
14869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14870 (eval $ac_try) 2>&5
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); }; }; then
14874 mutt_cv_wc_funcs=yes
14876 echo "$as_me: failed program was:" >&5
14877 sed 's/^/| /' conftest.$ac_ext >&5
14880 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14882 echo "$as_me:$LINENO: result: $mutt_cv_wc_funcs" >&5
14883 echo "${ECHO_T}$mutt_cv_wc_funcs" >&6
14884 wc_funcs=$mutt_cv_wc_funcs
14887 if test $wc_funcs = yes; then
14889 cat >>confdefs.h <<\_ACEOF
14890 #define HAVE_WC_FUNCS 1
14895 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
14896 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
14897 if test "${mutt_cv_langinfo_codeset+set}" = set; then
14898 echo $ECHO_N "(cached) $ECHO_C" >&6
14900 cat >conftest.$ac_ext <<_ACEOF
14901 #line $LINENO "configure"
14904 cat confdefs.h >>conftest.$ac_ext
14905 cat >>conftest.$ac_ext <<_ACEOF
14906 /* end confdefs.h. */
14907 #include <langinfo.h>
14911 char* cs = nl_langinfo(CODESET);
14916 rm -f conftest.$ac_objext conftest$ac_exeext
14917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14918 (eval $ac_link) 2>&5
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); } &&
14922 { ac_try='test -s conftest$ac_exeext'
14923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14924 (eval $ac_try) 2>&5
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); }; }; then
14928 mutt_cv_langinfo_codeset=yes
14930 echo "$as_me: failed program was:" >&5
14931 sed 's/^/| /' conftest.$ac_ext >&5
14933 mutt_cv_langinfo_codeset=no
14935 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14937 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_codeset" >&5
14938 echo "${ECHO_T}$mutt_cv_langinfo_codeset" >&6
14939 if test $mutt_cv_langinfo_codeset = yes; then
14941 cat >>confdefs.h <<\_ACEOF
14942 #define HAVE_LANGINFO_CODESET 1
14947 echo "$as_me:$LINENO: checking for nl_langinfo and YESEXPR" >&5
14948 echo $ECHO_N "checking for nl_langinfo and YESEXPR... $ECHO_C" >&6
14949 if test "${mutt_cv_langinfo_yesexpr+set}" = set; then
14950 echo $ECHO_N "(cached) $ECHO_C" >&6
14952 cat >conftest.$ac_ext <<_ACEOF
14953 #line $LINENO "configure"
14956 cat confdefs.h >>conftest.$ac_ext
14957 cat >>conftest.$ac_ext <<_ACEOF
14958 /* end confdefs.h. */
14959 #include <langinfo.h>
14963 char* cs = nl_langinfo(YESEXPR);
14968 rm -f conftest.$ac_objext conftest$ac_exeext
14969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14970 (eval $ac_link) 2>&5
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 (exit $ac_status); } &&
14974 { ac_try='test -s conftest$ac_exeext'
14975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14976 (eval $ac_try) 2>&5
14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); }; }; then
14980 mutt_cv_langinfo_yesexpr=yes
14982 echo "$as_me: failed program was:" >&5
14983 sed 's/^/| /' conftest.$ac_ext >&5
14985 mutt_cv_langinfo_yesexpr=no
14987 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14989 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_yesexpr" >&5
14990 echo "${ECHO_T}$mutt_cv_langinfo_yesexpr" >&6
14991 if test $mutt_cv_langinfo_yesexpr = yes; then
14993 cat >>confdefs.h <<\_ACEOF
14994 #define HAVE_LANGINFO_YESEXPR 1
15001 # Check whether --with-libesmtp or --without-libesmtp was given.
15002 if test "${with_libesmtp+set}" = set; then
15003 withval="$with_libesmtp"
15004 if test "$with_libesmtp" != "no"
15006 mutt_libesmtp_check_path="$PATH"
15008 if test "$with_libesmtp" != "yes"
15010 mutt_libesmtp_check_path="$tmp_path:$withval/bin"
15013 # Extract the first word of "libesmtp-config", so it can be a program name with args.
15014 set dummy libesmtp-config; ac_word=$2
15015 echo "$as_me:$LINENO: checking for $ac_word" >&5
15016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15017 if test "${ac_cv_path_mutt_libesmtp_config_path+set}" = set; then
15018 echo $ECHO_N "(cached) $ECHO_C" >&6
15020 case $mutt_libesmtp_config_path in
15022 ac_cv_path_mutt_libesmtp_config_path="$mutt_libesmtp_config_path" # Let the user override the test with a path.
15025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15026 for as_dir in $mutt_libesmtp_check_path
15029 test -z "$as_dir" && as_dir=.
15030 for ac_exec_ext in '' $ac_executable_extensions; do
15031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15032 ac_cv_path_mutt_libesmtp_config_path="$as_dir/$ac_word$ac_exec_ext"
15033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15039 test -z "$ac_cv_path_mutt_libesmtp_config_path" && ac_cv_path_mutt_libesmtp_config_path="no"
15043 mutt_libesmtp_config_path=$ac_cv_path_mutt_libesmtp_config_path
15045 if test -n "$mutt_libesmtp_config_path"; then
15046 echo "$as_me:$LINENO: result: $mutt_libesmtp_config_path" >&5
15047 echo "${ECHO_T}$mutt_libesmtp_config_path" >&6
15049 echo "$as_me:$LINENO: result: no" >&5
15050 echo "${ECHO_T}no" >&6
15054 if test "$mutt_libesmtp_config_path" = "no"
15056 { { echo "$as_me:$LINENO: error: libesmtp-config binary not found." >&5
15057 echo "$as_me: error: libesmtp-config binary not found." >&2;}
15058 { (exit 1); exit 1; }; }
15061 mutt_libesmtp_cflags=`$mutt_libesmtp_config_path --cflags`
15062 mutt_libesmtp_libs=`$mutt_libesmtp_config_path --libs`
15064 temp_CFLAGS="$CFLAGS"
15065 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
15066 if test "${ac_cv_header_libesmtp_h+set}" = set; then
15067 echo "$as_me:$LINENO: checking for libesmtp.h" >&5
15068 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
15069 if test "${ac_cv_header_libesmtp_h+set}" = set; then
15070 echo $ECHO_N "(cached) $ECHO_C" >&6
15072 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
15073 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
15075 # Is the header compilable?
15076 echo "$as_me:$LINENO: checking libesmtp.h usability" >&5
15077 echo $ECHO_N "checking libesmtp.h usability... $ECHO_C" >&6
15078 cat >conftest.$ac_ext <<_ACEOF
15079 #line $LINENO "configure"
15082 cat confdefs.h >>conftest.$ac_ext
15083 cat >>conftest.$ac_ext <<_ACEOF
15084 /* end confdefs.h. */
15085 $ac_includes_default
15086 #include <libesmtp.h>
15088 rm -f conftest.$ac_objext
15089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15090 (eval $ac_compile) 2>&5
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15093 (exit $ac_status); } &&
15094 { ac_try='test -s conftest.$ac_objext'
15095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15096 (eval $ac_try) 2>&5
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; }; then
15100 ac_header_compiler=yes
15102 echo "$as_me: failed program was:" >&5
15103 sed 's/^/| /' conftest.$ac_ext >&5
15105 ac_header_compiler=no
15107 rm -f conftest.$ac_objext conftest.$ac_ext
15108 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15109 echo "${ECHO_T}$ac_header_compiler" >&6
15111 # Is the header present?
15112 echo "$as_me:$LINENO: checking libesmtp.h presence" >&5
15113 echo $ECHO_N "checking libesmtp.h presence... $ECHO_C" >&6
15114 cat >conftest.$ac_ext <<_ACEOF
15115 #line $LINENO "configure"
15118 cat confdefs.h >>conftest.$ac_ext
15119 cat >>conftest.$ac_ext <<_ACEOF
15120 /* end confdefs.h. */
15121 #include <libesmtp.h>
15123 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15124 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15126 grep -v '^ *+' conftest.er1 >conftest.err
15128 cat conftest.err >&5
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); } >/dev/null; then
15131 if test -s conftest.err; then
15132 ac_cpp_err=$ac_c_preproc_warn_flag
15139 if test -z "$ac_cpp_err"; then
15140 ac_header_preproc=yes
15142 echo "$as_me: failed program was:" >&5
15143 sed 's/^/| /' conftest.$ac_ext >&5
15145 ac_header_preproc=no
15147 rm -f conftest.err conftest.$ac_ext
15148 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15149 echo "${ECHO_T}$ac_header_preproc" >&6
15151 # So? What about this header?
15152 case $ac_header_compiler:$ac_header_preproc in
15154 { echo "$as_me:$LINENO: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&5
15155 echo "$as_me: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15156 { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&5
15157 echo "$as_me: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&2;}
15160 ## ------------------------------------ ##
15161 ## Report this to bug-autoconf@gnu.org. ##
15162 ## ------------------------------------ ##
15165 sed "s/^/$as_me: WARNING: /" >&2
15168 { echo "$as_me:$LINENO: WARNING: libesmtp.h: present but cannot be compiled" >&5
15169 echo "$as_me: WARNING: libesmtp.h: present but cannot be compiled" >&2;}
15170 { echo "$as_me:$LINENO: WARNING: libesmtp.h: check for missing prerequisite headers?" >&5
15171 echo "$as_me: WARNING: libesmtp.h: check for missing prerequisite headers?" >&2;}
15172 { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&5
15173 echo "$as_me: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&2;}
15176 ## ------------------------------------ ##
15177 ## Report this to bug-autoconf@gnu.org. ##
15178 ## ------------------------------------ ##
15181 sed "s/^/$as_me: WARNING: /" >&2
15184 echo "$as_me:$LINENO: checking for libesmtp.h" >&5
15185 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
15186 if test "${ac_cv_header_libesmtp_h+set}" = set; then
15187 echo $ECHO_N "(cached) $ECHO_C" >&6
15189 ac_cv_header_libesmtp_h=$ac_header_preproc
15191 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
15192 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
15195 if test $ac_cv_header_libesmtp_h = yes; then
15198 { { echo "$as_me:$LINENO: error: Could not find libesmtp.h" >&5
15199 echo "$as_me: error: Could not find libesmtp.h" >&2;}
15200 { (exit 1); exit 1; }; }
15204 CFLAGS="$temp_CFLAGS"
15206 temp_CFLAGS="$CFLAGS"
15208 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
15209 LIBS="$LIBS $mutt_libesmtp_libs"
15211 echo "$as_me:$LINENO: checking for smtp_create_session in -lesmtp" >&5
15212 echo $ECHO_N "checking for smtp_create_session in -lesmtp... $ECHO_C" >&6
15213 if test "${ac_cv_lib_esmtp_smtp_create_session+set}" = set; then
15214 echo $ECHO_N "(cached) $ECHO_C" >&6
15216 ac_check_lib_save_LIBS=$LIBS
15217 LIBS="-lesmtp $LIBS"
15218 cat >conftest.$ac_ext <<_ACEOF
15219 #line $LINENO "configure"
15222 cat confdefs.h >>conftest.$ac_ext
15223 cat >>conftest.$ac_ext <<_ACEOF
15224 /* end confdefs.h. */
15226 /* Override any gcc2 internal prototype to avoid an error. */
15230 /* We use char because int might match the return type of a gcc2
15231 builtin and then its argument prototype would still apply. */
15232 char smtp_create_session ();
15236 smtp_create_session ();
15241 rm -f conftest.$ac_objext conftest$ac_exeext
15242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15243 (eval $ac_link) 2>&5
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); } &&
15247 { ac_try='test -s conftest$ac_exeext'
15248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15249 (eval $ac_try) 2>&5
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); }; }; then
15253 ac_cv_lib_esmtp_smtp_create_session=yes
15255 echo "$as_me: failed program was:" >&5
15256 sed 's/^/| /' conftest.$ac_ext >&5
15258 ac_cv_lib_esmtp_smtp_create_session=no
15260 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15261 LIBS=$ac_check_lib_save_LIBS
15263 echo "$as_me:$LINENO: result: $ac_cv_lib_esmtp_smtp_create_session" >&5
15264 echo "${ECHO_T}$ac_cv_lib_esmtp_smtp_create_session" >&6
15265 if test $ac_cv_lib_esmtp_smtp_create_session = yes; then
15266 cat >>confdefs.h <<_ACEOF
15267 #define HAVE_LIBESMTP 1
15270 LIBS="-lesmtp $LIBS"
15273 { { echo "$as_me:$LINENO: error: Could not find libesmtp" >&5
15274 echo "$as_me: error: Could not find libesmtp" >&2;}
15275 { (exit 1); exit 1; }; }
15278 CFLAGS="$temp_CFLAGS"
15287 if test x$use_libesmtp = xyes; then
15288 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
15289 MUTTLIBS="$MUTTLIBS $mutt_libesmtp_libs"
15290 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_libesmtp.o"
15293 cat >>confdefs.h <<\_ACEOF
15294 #define USE_LIBESMTP 1
15299 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"
15300 cat >confcache <<\_ACEOF
15301 # This file is a shell script that caches the results of configure
15302 # tests run on this system so they can be shared between configure
15303 # scripts and configure runs, see configure's option --config-cache.
15304 # It is not useful on other systems. If it contains results you don't
15305 # want to keep, you may remove or edit it.
15307 # config.status only pays attention to the cache file if you give it
15308 # the --recheck option to rerun configure.
15310 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15311 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15312 # following values.
15316 # The following way of writing the cache mishandles newlines in values,
15317 # but we know of no workaround that is simple, portable, and efficient.
15318 # So, don't put newlines in cache variables' values.
15319 # Ultrix sh set writes to stderr and can't be redirected directly,
15320 # and sets the high bit in the cache file unless we assign to the vars.
15323 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15325 # `set' does not quote correctly, so add quotes (double-quote
15326 # substitution turns \\\\ into \\, and sed turns \\ into \).
15329 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15332 # `set' quotes correctly as required by POSIX, so do not add quotes.
15334 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15341 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15343 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15345 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15346 if test -w $cache_file; then
15347 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15348 cat confcache >$cache_file
15350 echo "not updating unwritable cache $cache_file"
15355 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15356 # Let make expand exec_prefix.
15357 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15359 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15360 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15361 # trailing colons and then remove the whole line if VPATH becomes empty
15362 # (actually we leave an empty line to preserve line numbers).
15363 if test "x$srcdir" = x.; then
15364 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15365 s/:*\$(srcdir):*/:/;
15366 s/:*\${srcdir}:*/:/;
15368 s/^\([^=]*=[ ]*\):*/\1/;
15374 DEFS=-DHAVE_CONFIG_H
15378 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15379 # 1. Remove the extension, and $U if already installed.
15380 ac_i=`echo "$ac_i" |
15381 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15383 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15384 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15386 LIBOBJS=$ac_libobjs
15388 LTLIBOBJS=$ac_ltlibobjs
15391 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15392 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15393 Usually this means the macro was only invoked conditionally." >&5
15394 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15395 Usually this means the macro was only invoked conditionally." >&2;}
15396 { (exit 1); exit 1; }; }
15398 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15399 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15400 Usually this means the macro was only invoked conditionally." >&5
15401 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15402 Usually this means the macro was only invoked conditionally." >&2;}
15403 { (exit 1); exit 1; }; }
15405 if test -z "${BUILD_IMAP_TRUE}" && test -z "${BUILD_IMAP_FALSE}"; then
15406 { { echo "$as_me:$LINENO: error: conditional \"BUILD_IMAP\" was never defined.
15407 Usually this means the macro was only invoked conditionally." >&5
15408 echo "$as_me: error: conditional \"BUILD_IMAP\" was never defined.
15409 Usually this means the macro was only invoked conditionally." >&2;}
15410 { (exit 1); exit 1; }; }
15412 if test -z "${USE_GSS_TRUE}" && test -z "${USE_GSS_FALSE}"; then
15413 { { echo "$as_me:$LINENO: error: conditional \"USE_GSS\" was never defined.
15414 Usually this means the macro was only invoked conditionally." >&5
15415 echo "$as_me: error: conditional \"USE_GSS\" was never defined.
15416 Usually this means the macro was only invoked conditionally." >&2;}
15417 { (exit 1); exit 1; }; }
15419 if test -z "${USE_SSL_TRUE}" && test -z "${USE_SSL_FALSE}"; then
15420 { { echo "$as_me:$LINENO: error: conditional \"USE_SSL\" was never defined.
15421 Usually this means the macro was only invoked conditionally." >&5
15422 echo "$as_me: error: conditional \"USE_SSL\" was never defined.
15423 Usually this means the macro was only invoked conditionally." >&2;}
15424 { (exit 1); exit 1; }; }
15426 if test -z "${USE_SASL_TRUE}" && test -z "${USE_SASL_FALSE}"; then
15427 { { echo "$as_me:$LINENO: error: conditional \"USE_SASL\" was never defined.
15428 Usually this means the macro was only invoked conditionally." >&5
15429 echo "$as_me: error: conditional \"USE_SASL\" was never defined.
15430 Usually this means the macro was only invoked conditionally." >&2;}
15431 { (exit 1); exit 1; }; }
15433 if test -z "${USE_SASL_TRUE}" && test -z "${USE_SASL_FALSE}"; then
15434 { { echo "$as_me:$LINENO: error: conditional \"USE_SASL\" was never defined.
15435 Usually this means the macro was only invoked conditionally." >&5
15436 echo "$as_me: error: conditional \"USE_SASL\" was never defined.
15437 Usually this means the macro was only invoked conditionally." >&2;}
15438 { (exit 1); exit 1; }; }
15441 : ${CONFIG_STATUS=./config.status}
15442 ac_clean_files_save=$ac_clean_files
15443 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15444 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15445 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15446 cat >$CONFIG_STATUS <<_ACEOF
15448 # Generated by $as_me.
15449 # Run this file to recreate the current configuration.
15450 # Compiler output produced by configure, useful for debugging
15451 # configure, is in config.log if it exists.
15454 ac_cs_recheck=false
15456 SHELL=\${CONFIG_SHELL-$SHELL}
15459 cat >>$CONFIG_STATUS <<\_ACEOF
15460 ## --------------------- ##
15461 ## M4sh Initialization. ##
15462 ## --------------------- ##
15464 # Be Bourne compatible
15465 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15468 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15469 # is contrary to our usage. Disable this feature.
15470 alias -g '${1+"$@"}'='"$@"'
15471 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15475 # Support unset when possible.
15476 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15483 # Work around bugs in pre-3.0 UWIN ksh.
15484 $as_unset ENV MAIL MAILPATH
15491 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15492 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15493 LC_TELEPHONE LC_TIME
15495 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
15496 eval $as_var=C; export $as_var
15502 # Required to use basename.
15503 if expr a : '\(a\)' >/dev/null 2>&1; then
15509 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15510 as_basename=basename
15516 # Name of the executable.
15517 as_me=`$as_basename "$0" ||
15518 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15519 X"$0" : 'X\(//\)$' \| \
15520 X"$0" : 'X\(/\)$' \| \
15521 . : '\(.\)' 2>/dev/null ||
15523 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15524 /^X\/\(\/\/\)$/{ s//\1/; q; }
15525 /^X\/\(\/\).*/{ s//\1/; q; }
15529 # PATH needs CR, and LINENO needs CR and PATH.
15530 # Avoid depending upon Character Ranges.
15531 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15532 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15533 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15534 as_cr_digits='0123456789'
15535 as_cr_alnum=$as_cr_Letters$as_cr_digits
15537 # The user is always right.
15538 if test "${PATH_SEPARATOR+set}" != set; then
15539 echo "#! /bin/sh" >conf$$.sh
15540 echo "exit 0" >>conf$$.sh
15542 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15551 as_lineno_1=$LINENO
15552 as_lineno_2=$LINENO
15553 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15554 test "x$as_lineno_1" != "x$as_lineno_2" &&
15555 test "x$as_lineno_3" = "x$as_lineno_2" || {
15556 # Find who we are. Look in the path if we contain no path at all
15559 *[\\/]* ) as_myself=$0 ;;
15560 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15561 for as_dir in $PATH
15564 test -z "$as_dir" && as_dir=.
15565 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15570 # We did not find ourselves, most probably we were run as `sh COMMAND'
15571 # in which case we are not to be found in the path.
15572 if test "x$as_myself" = x; then
15575 if test ! -f "$as_myself"; then
15576 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15577 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15578 { (exit 1); exit 1; }; }
15580 case $CONFIG_SHELL in
15582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15583 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15586 test -z "$as_dir" && as_dir=.
15587 for as_base in sh bash ksh sh5; do
15590 if ("$as_dir/$as_base" -c '
15591 as_lineno_1=$LINENO
15592 as_lineno_2=$LINENO
15593 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15594 test "x$as_lineno_1" != "x$as_lineno_2" &&
15595 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15596 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15597 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15598 CONFIG_SHELL=$as_dir/$as_base
15599 export CONFIG_SHELL
15600 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15608 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15609 # uniformly replaced by the line number. The first 'sed' inserts a
15610 # line-number line before each line; the second 'sed' does the real
15611 # work. The second script uses 'N' to pair each line-number line
15612 # with the numbered line, and appends trailing '-' during
15613 # substitution so that $LINENO is not a special case at line end.
15614 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15615 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15616 sed '=' <$as_myself |
15621 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15624 s,^['$as_cr_digits']*\n,,
15625 ' >$as_me.lineno &&
15626 chmod +x $as_me.lineno ||
15627 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15628 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15629 { (exit 1); exit 1; }; }
15631 # Don't try to exec as it changes $[0], causing all sort of problems
15632 # (the dirname of $[0] is not the place where we might find the
15633 # original and so on. Autoconf is especially sensible to this).
15635 # Exit status is that of the last command.
15640 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15641 *c*,-n*) ECHO_N= ECHO_C='
15643 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15644 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15647 if expr a : '\(a\)' >/dev/null 2>&1; then
15653 rm -f conf$$ conf$$.exe conf$$.file
15655 if ln -s conf$$.file conf$$ 2>/dev/null; then
15656 # We could just check for DJGPP; but this test a) works b) is more generic
15657 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15658 if test -f conf$$.exe; then
15659 # Don't use ln at all; we don't have any links
15664 elif ln conf$$.file conf$$ 2>/dev/null; then
15669 rm -f conf$$ conf$$.exe conf$$.file
15671 if mkdir -p . 2>/dev/null; then
15677 as_executable_p="test -f"
15679 # Sed expression to map a string onto a valid CPP name.
15680 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15682 # Sed expression to map a string onto a valid variable name.
15683 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15687 # We need space, tab and new line, in precisely that order.
15697 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15698 # report actual input values of CONFIG_FILES etc. instead of their
15699 # values after options handling. Logging --version etc. is OK.
15703 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15704 ## Running $as_me. ##
15709 This file was extended by $as_me, which was
15710 generated by GNU Autoconf 2.57. Invocation command line was
15712 CONFIG_FILES = $CONFIG_FILES
15713 CONFIG_HEADERS = $CONFIG_HEADERS
15714 CONFIG_LINKS = $CONFIG_LINKS
15715 CONFIG_COMMANDS = $CONFIG_COMMANDS
15719 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15723 # Files that config.status was made for.
15724 if test -n "$ac_config_files"; then
15725 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15728 if test -n "$ac_config_headers"; then
15729 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15732 if test -n "$ac_config_links"; then
15733 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15736 if test -n "$ac_config_commands"; then
15737 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15740 cat >>$CONFIG_STATUS <<\_ACEOF
15743 \`$as_me' instantiates files from templates according to the
15744 current configuration.
15746 Usage: $0 [OPTIONS] [FILE]...
15748 -h, --help print this help, then exit
15749 -V, --version print version number, then exit
15750 -q, --quiet do not print progress messages
15751 -d, --debug don't remove temporary files
15752 --recheck update $as_me by reconfiguring in the same conditions
15753 --file=FILE[:TEMPLATE]
15754 instantiate the configuration file FILE
15755 --header=FILE[:TEMPLATE]
15756 instantiate the configuration header FILE
15758 Configuration files:
15761 Configuration headers:
15764 Configuration commands:
15767 Report bugs to <bug-autoconf@gnu.org>."
15770 cat >>$CONFIG_STATUS <<_ACEOF
15773 configured by $0, generated by GNU Autoconf 2.57,
15774 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15776 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
15777 Free Software Foundation, Inc.
15778 This config.status script is free software; the Free Software Foundation
15779 gives unlimited permission to copy, distribute and modify it."
15784 cat >>$CONFIG_STATUS <<\_ACEOF
15785 # If no file are specified by the user, then we need to provide default
15786 # value. By we need to know if files were specified by the user.
15792 ac_option=`expr "x$1" : 'x\([^=]*\)='`
15793 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15801 *) # This is not an option, so the user has probably given explicit
15804 ac_need_defaults=false;;
15808 # Handling of the options.
15810 cat >>$CONFIG_STATUS <<\_ACEOF
15811 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15813 --version | --vers* | -V )
15814 echo "$ac_cs_version"; exit 0 ;;
15816 # Conflict between --help and --header
15817 { { echo "$as_me:$LINENO: error: ambiguous option: $1
15818 Try \`$0 --help' for more information." >&5
15819 echo "$as_me: error: ambiguous option: $1
15820 Try \`$0 --help' for more information." >&2;}
15821 { (exit 1); exit 1; }; };;
15822 --help | --hel | -h )
15823 echo "$ac_cs_usage"; exit 0 ;;
15824 --debug | --d* | -d )
15826 --file | --fil | --fi | --f )
15828 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15829 ac_need_defaults=false;;
15830 --header | --heade | --head | --hea )
15832 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15833 ac_need_defaults=false;;
15834 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15835 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15838 # This is an error.
15839 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15840 Try \`$0 --help' for more information." >&5
15841 echo "$as_me: error: unrecognized option: $1
15842 Try \`$0 --help' for more information." >&2;}
15843 { (exit 1); exit 1; }; } ;;
15845 *) ac_config_targets="$ac_config_targets $1" ;;
15851 ac_configure_extra_args=
15853 if $ac_cs_silent; then
15855 ac_configure_extra_args="$ac_configure_extra_args --silent"
15859 cat >>$CONFIG_STATUS <<_ACEOF
15860 if \$ac_cs_recheck; then
15861 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15862 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15867 cat >>$CONFIG_STATUS <<_ACEOF
15869 # INIT-COMMANDS section.
15872 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15879 cat >>$CONFIG_STATUS <<\_ACEOF
15880 for ac_config_target in $ac_config_targets
15882 case "$ac_config_target" in
15883 # Handling of arguments.
15884 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15885 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
15886 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
15887 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
15888 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15889 "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
15890 "muttbug.sh" ) CONFIG_FILES="$CONFIG_FILES muttbug.sh" ;;
15891 "imap/Makefile" ) CONFIG_FILES="$CONFIG_FILES imap/Makefile" ;;
15892 "Muttrc.head" ) CONFIG_FILES="$CONFIG_FILES Muttrc.head" ;;
15893 "doc/instdoc.sh" ) CONFIG_FILES="$CONFIG_FILES doc/instdoc.sh" ;;
15894 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15895 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15896 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15897 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15898 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15899 { (exit 1); exit 1; }; };;
15903 # If the user did not use the arguments to specify the items to instantiate,
15904 # then the envvar interface is used. Set only those that are not.
15905 # We use the long form for the default assignment because of an extremely
15906 # bizarre bug on SunOS 4.1.3.
15907 if $ac_need_defaults; then
15908 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15909 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15910 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15913 # Have a temporary directory for convenience. Make it in the build tree
15914 # simply because there is no reason to put it here, and in addition,
15915 # creating and moving files from /tmp can sometimes cause problems.
15916 # Create a temporary directory, and hook for its removal unless debugging.
15919 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15920 trap '{ (exit 1); exit 1; }' 1 2 13 15
15923 # Create a (secure) tmp directory for tmp files.
15926 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15927 test -n "$tmp" && test -d "$tmp"
15930 tmp=./confstat$$-$RANDOM
15931 (umask 077 && mkdir $tmp)
15934 echo "$me: cannot create a temporary directory in ." >&2
15935 { (exit 1); exit 1; }
15940 cat >>$CONFIG_STATUS <<_ACEOF
15943 # CONFIG_FILES section.
15946 # No need to generate the scripts if there are no CONFIG_FILES.
15947 # This happens for instance when ./config.status config.h
15948 if test -n "\$CONFIG_FILES"; then
15949 # Protect against being on the right side of a sed subst in config.status.
15950 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15951 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15952 s,@SHELL@,$SHELL,;t t
15953 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15954 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15955 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15956 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15957 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15958 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15959 s,@exec_prefix@,$exec_prefix,;t t
15960 s,@prefix@,$prefix,;t t
15961 s,@program_transform_name@,$program_transform_name,;t t
15962 s,@bindir@,$bindir,;t t
15963 s,@sbindir@,$sbindir,;t t
15964 s,@libexecdir@,$libexecdir,;t t
15965 s,@datadir@,$datadir,;t t
15966 s,@sysconfdir@,$sysconfdir,;t t
15967 s,@sharedstatedir@,$sharedstatedir,;t t
15968 s,@localstatedir@,$localstatedir,;t t
15969 s,@libdir@,$libdir,;t t
15970 s,@includedir@,$includedir,;t t
15971 s,@oldincludedir@,$oldincludedir,;t t
15972 s,@infodir@,$infodir,;t t
15973 s,@mandir@,$mandir,;t t
15974 s,@build_alias@,$build_alias,;t t
15975 s,@host_alias@,$host_alias,;t t
15976 s,@target_alias@,$target_alias,;t t
15977 s,@DEFS@,$DEFS,;t t
15978 s,@ECHO_C@,$ECHO_C,;t t
15979 s,@ECHO_N@,$ECHO_N,;t t
15980 s,@ECHO_T@,$ECHO_T,;t t
15981 s,@LIBS@,$LIBS,;t t
15982 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15983 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15984 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15985 s,@CYGPATH_W@,$CYGPATH_W,;t t
15986 s,@PACKAGE@,$PACKAGE,;t t
15987 s,@VERSION@,$VERSION,;t t
15988 s,@ACLOCAL@,$ACLOCAL,;t t
15989 s,@AUTOCONF@,$AUTOCONF,;t t
15990 s,@AUTOMAKE@,$AUTOMAKE,;t t
15991 s,@AUTOHEADER@,$AUTOHEADER,;t t
15992 s,@MAKEINFO@,$MAKEINFO,;t t
15993 s,@AMTAR@,$AMTAR,;t t
15994 s,@install_sh@,$install_sh,;t t
15995 s,@STRIP@,$STRIP,;t t
15996 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15997 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15999 s,@SET_MAKE@,$SET_MAKE,;t t
16000 s,@am__leading_dot@,$am__leading_dot,;t t
16001 s,@build@,$build,;t t
16002 s,@build_cpu@,$build_cpu,;t t
16003 s,@build_vendor@,$build_vendor,;t t
16004 s,@build_os@,$build_os,;t t
16005 s,@host@,$host,;t t
16006 s,@host_cpu@,$host_cpu,;t t
16007 s,@host_vendor@,$host_vendor,;t t
16008 s,@host_os@,$host_os,;t t
16010 s,@CFLAGS@,$CFLAGS,;t t
16011 s,@LDFLAGS@,$LDFLAGS,;t t
16012 s,@CPPFLAGS@,$CPPFLAGS,;t t
16013 s,@ac_ct_CC@,$ac_ct_CC,;t t
16014 s,@EXEEXT@,$EXEEXT,;t t
16015 s,@OBJEXT@,$OBJEXT,;t t
16016 s,@DEPDIR@,$DEPDIR,;t t
16017 s,@am__include@,$am__include,;t t
16018 s,@am__quote@,$am__quote,;t t
16019 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16020 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16021 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16022 s,@CCDEPMODE@,$CCDEPMODE,;t t
16023 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16024 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
16026 s,@EGREP@,$EGREP,;t t
16028 s,@ANSI2KNR@,$ANSI2KNR,;t t
16029 s,@RANLIB@,$RANLIB,;t t
16030 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16032 s,@ac_ct_AR@,$ac_ct_AR,;t t
16036 s,@DEBUGGER@,$DEBUGGER,;t t
16037 s,@SENDMAIL@,$SENDMAIL,;t t
16039 s,@PGPAUX_TARGET@,$PGPAUX_TARGET,;t t
16040 s,@SMIMEAUX_TARGET@,$SMIMEAUX_TARGET,;t t
16041 s,@SUBVERSION@,$SUBVERSION,;t t
16042 s,@ISPELL@,$ISPELL,;t t
16043 s,@LIBOBJS@,$LIBOBJS,;t t
16044 s,@DOTLOCK_TARGET@,$DOTLOCK_TARGET,;t t
16045 s,@docdir@,$docdir,;t t
16046 s,@DOTLOCK_GROUP@,$DOTLOCK_GROUP,;t t
16047 s,@DOTLOCK_PERMISSION@,$DOTLOCK_PERMISSION,;t t
16048 s,@BUILD_IMAP_TRUE@,$BUILD_IMAP_TRUE,;t t
16049 s,@BUILD_IMAP_FALSE@,$BUILD_IMAP_FALSE,;t t
16050 s,@KRB5CFGPATH@,$KRB5CFGPATH,;t t
16051 s,@USE_GSS_TRUE@,$USE_GSS_TRUE,;t t
16052 s,@USE_GSS_FALSE@,$USE_GSS_FALSE,;t t
16053 s,@USE_SSL_TRUE@,$USE_SSL_TRUE,;t t
16054 s,@USE_SSL_FALSE@,$USE_SSL_FALSE,;t t
16055 s,@USE_SASL_TRUE@,$USE_SASL_TRUE,;t t
16056 s,@USE_SASL_FALSE@,$USE_SASL_FALSE,;t t
16057 s,@MUTTLIBS@,$MUTTLIBS,;t t
16058 s,@MUTT_LIB_OBJECTS@,$MUTT_LIB_OBJECTS,;t t
16059 s,@LIBIMAP@,$LIBIMAP,;t t
16060 s,@LIBIMAPDEPS@,$LIBIMAPDEPS,;t t
16061 s,@ALLOCA@,$ALLOCA,;t t
16062 s,@GLIBC21@,$GLIBC21,;t t
16063 s,@LIBICONV@,$LIBICONV,;t t
16064 s,@USE_NLS@,$USE_NLS,;t t
16065 s,@MSGFMT@,$MSGFMT,;t t
16066 s,@GMSGFMT@,$GMSGFMT,;t t
16067 s,@XGETTEXT@,$XGETTEXT,;t t
16068 s,@INTLBISON@,$INTLBISON,;t t
16069 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
16070 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
16071 s,@CATALOGS@,$CATALOGS,;t t
16072 s,@CATOBJEXT@,$CATOBJEXT,;t t
16073 s,@GMOFILES@,$GMOFILES,;t t
16074 s,@INTLLIBS@,$INTLLIBS,;t t
16075 s,@INTLOBJS@,$INTLOBJS,;t t
16076 s,@POFILES@,$POFILES,;t t
16077 s,@POSUB@,$POSUB,;t t
16078 s,@DATADIRNAME@,$DATADIRNAME,;t t
16079 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
16080 s,@GENCAT@,$GENCAT,;t t
16081 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
16082 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
16083 s,@mutt_libesmtp_config_path@,$mutt_libesmtp_config_path,;t t
16084 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16089 cat >>$CONFIG_STATUS <<\_ACEOF
16090 # Split the substitutions into bite-sized pieces for seds with
16091 # small command number limits, like on Digital OSF/1 and HP-UX.
16092 ac_max_sed_lines=48
16093 ac_sed_frag=1 # Number of current file.
16094 ac_beg=1 # First line for current file.
16095 ac_end=$ac_max_sed_lines # Line after last line for current file.
16098 while $ac_more_lines; do
16099 if test $ac_beg -gt 1; then
16100 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16102 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16104 if test ! -s $tmp/subs.frag; then
16105 ac_more_lines=false
16107 # The purpose of the label and of the branching condition is to
16108 # speed up the sed processing (if there are no `@' at all, there
16109 # is no need to browse any of the substitutions).
16110 # These are the two extra sed commands mentioned above.
16112 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16113 if test -z "$ac_sed_cmds"; then
16114 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16116 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16118 ac_sed_frag=`expr $ac_sed_frag + 1`
16120 ac_end=`expr $ac_end + $ac_max_sed_lines`
16123 if test -z "$ac_sed_cmds"; then
16126 fi # test -n "$CONFIG_FILES"
16129 cat >>$CONFIG_STATUS <<\_ACEOF
16130 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16131 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16133 - | *:- | *:-:* ) # input from stdin
16135 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16136 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16137 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16138 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16139 * ) ac_file_in=$ac_file.in ;;
16142 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16143 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16144 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16145 X"$ac_file" : 'X\(//\)[^/]' \| \
16146 X"$ac_file" : 'X\(//\)$' \| \
16147 X"$ac_file" : 'X\(/\)' \| \
16148 . : '\(.\)' 2>/dev/null ||
16150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16151 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16152 /^X\(\/\/\)$/{ s//\1/; q; }
16153 /^X\(\/\).*/{ s//\1/; q; }
16155 { if $as_mkdir_p; then
16160 while test ! -d "$as_dir"; do
16161 as_dirs="$as_dir $as_dirs"
16162 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16163 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16164 X"$as_dir" : 'X\(//\)[^/]' \| \
16165 X"$as_dir" : 'X\(//\)$' \| \
16166 X"$as_dir" : 'X\(/\)' \| \
16167 . : '\(.\)' 2>/dev/null ||
16169 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16170 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16171 /^X\(\/\/\)$/{ s//\1/; q; }
16172 /^X\(\/\).*/{ s//\1/; q; }
16175 test ! -n "$as_dirs" || mkdir $as_dirs
16176 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16177 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16178 { (exit 1); exit 1; }; }; }
16182 if test "$ac_dir" != .; then
16183 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16184 # A "../" for each directory in $ac_dir_suffix.
16185 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16187 ac_dir_suffix= ac_top_builddir=
16191 .) # No --srcdir option. We are building in place.
16193 if test -z "$ac_top_builddir"; then
16196 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16198 [\\/]* | ?:[\\/]* ) # Absolute path.
16199 ac_srcdir=$srcdir$ac_dir_suffix;
16200 ac_top_srcdir=$srcdir ;;
16201 *) # Relative path.
16202 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16203 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16205 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16207 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16208 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16209 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16210 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16214 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16215 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16218 if test x"$ac_file" != x-; then
16219 { echo "$as_me:$LINENO: creating $ac_file" >&5
16220 echo "$as_me: creating $ac_file" >&6;}
16223 # Let's still pretend it is `configure' which instantiates (i.e., don't
16224 # use $as_me), people would be surprised to read:
16225 # /* config.h. Generated by config.status. */
16226 if test x"$ac_file" = x-; then
16229 configure_input="$ac_file. "
16231 configure_input=$configure_input"Generated from `echo $ac_file_in |
16232 sed 's,.*/,,'` by configure."
16234 # First look for the input files in the build tree, otherwise in the
16236 ac_file_inputs=`IFS=:
16237 for f in $ac_file_in; do
16239 -) echo $tmp/stdin ;;
16241 # Absolute (can't be DOS-style, as IFS=:)
16242 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16243 echo "$as_me: error: cannot find input file: $f" >&2;}
16244 { (exit 1); exit 1; }; }
16247 if test -f "$f"; then
16250 elif test -f "$srcdir/$f"; then
16255 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16256 echo "$as_me: error: cannot find input file: $f" >&2;}
16257 { (exit 1); exit 1; }; }
16260 done` || { (exit 1); exit 1; }
16262 cat >>$CONFIG_STATUS <<_ACEOF
16266 cat >>$CONFIG_STATUS <<\_ACEOF
16268 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16269 s,@configure_input@,$configure_input,;t t
16270 s,@srcdir@,$ac_srcdir,;t t
16271 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16272 s,@top_srcdir@,$ac_top_srcdir,;t t
16273 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16274 s,@builddir@,$ac_builddir,;t t
16275 s,@abs_builddir@,$ac_abs_builddir,;t t
16276 s,@top_builddir@,$ac_top_builddir,;t t
16277 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16278 s,@INSTALL@,$ac_INSTALL,;t t
16279 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16281 if test x"$ac_file" != x-; then
16282 mv $tmp/out $ac_file
16290 cat >>$CONFIG_STATUS <<\_ACEOF
16293 # CONFIG_HEADER section.
16296 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16297 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16299 # ac_d sets the value in "#define NAME VALUE" lines.
16300 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16301 ac_dB='[ ].*$,\1#\2'
16304 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16305 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16306 ac_uB='$,\1#\2define\3'
16310 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16311 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16313 - | *:- | *:-:* ) # input from stdin
16315 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16316 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16317 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16318 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16319 * ) ac_file_in=$ac_file.in ;;
16322 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16323 echo "$as_me: creating $ac_file" >&6;}
16325 # First look for the input files in the build tree, otherwise in the
16327 ac_file_inputs=`IFS=:
16328 for f in $ac_file_in; do
16330 -) echo $tmp/stdin ;;
16332 # Absolute (can't be DOS-style, as IFS=:)
16333 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16334 echo "$as_me: error: cannot find input file: $f" >&2;}
16335 { (exit 1); exit 1; }; }
16338 if test -f "$f"; then
16341 elif test -f "$srcdir/$f"; then
16346 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16347 echo "$as_me: error: cannot find input file: $f" >&2;}
16348 { (exit 1); exit 1; }; }
16351 done` || { (exit 1); exit 1; }
16352 # Remove the trailing spaces.
16353 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16357 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16358 # `conftest.undefs', that substitutes the proper values into
16359 # config.h.in to produce config.h. The first handles `#define'
16360 # templates, and the second `#undef' templates.
16361 # And first: Protect against being on the right side of a sed subst in
16362 # config.status. Protect against being in an unquoted here document
16363 # in config.status.
16364 rm -f conftest.defines conftest.undefs
16365 # Using a here document instead of a string reduces the quoting nightmare.
16366 # Putting comments in sed scripts is not portable.
16368 # `end' is used to avoid that the second main sed command (meant for
16369 # 0-ary CPP macros) applies to n-ary macro definitions.
16370 # See the Autoconf documentation for `clear'.
16371 cat >confdef2sed.sed <<\_ACEOF
16376 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16378 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16381 # If some macros were called several times there might be several times
16382 # the same #defines, which is useless. Nevertheless, we may not want to
16383 # sort them, since we want the *last* AC-DEFINE to be honored.
16384 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16385 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16386 rm -f confdef2sed.sed
16388 # This sed command replaces #undef with comments. This is necessary, for
16389 # example, in the case of _POSIX_SOURCE, which is predefined and required
16390 # on some systems where configure will not decide to define it.
16391 cat >>conftest.undefs <<\_ACEOF
16392 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16395 # Break up conftest.defines because some shells have a limit on the size
16396 # of here documents, and old seds have small limits too (100 cmds).
16397 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16398 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16399 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16400 echo ' :' >>$CONFIG_STATUS
16401 rm -f conftest.tail
16402 while grep . conftest.defines >/dev/null
16404 # Write a limited-size here document to $tmp/defines.sed.
16405 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16406 # Speed up: don't consider the non `#define' lines.
16407 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16408 # Work around the forget-to-reset-the-flag bug.
16409 echo 't clr' >>$CONFIG_STATUS
16410 echo ': clr' >>$CONFIG_STATUS
16411 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16413 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16415 mv $tmp/out $tmp/in
16417 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16418 rm -f conftest.defines
16419 mv conftest.tail conftest.defines
16421 rm -f conftest.defines
16422 echo ' fi # grep' >>$CONFIG_STATUS
16423 echo >>$CONFIG_STATUS
16425 # Break up conftest.undefs because some shells have a limit on the size
16426 # of here documents, and old seds have small limits too (100 cmds).
16427 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16428 rm -f conftest.tail
16429 while grep . conftest.undefs >/dev/null
16431 # Write a limited-size here document to $tmp/undefs.sed.
16432 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16433 # Speed up: don't consider the non `#undef'
16434 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16435 # Work around the forget-to-reset-the-flag bug.
16436 echo 't clr' >>$CONFIG_STATUS
16437 echo ': clr' >>$CONFIG_STATUS
16438 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16440 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16442 mv $tmp/out $tmp/in
16444 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16445 rm -f conftest.undefs
16446 mv conftest.tail conftest.undefs
16448 rm -f conftest.undefs
16450 cat >>$CONFIG_STATUS <<\_ACEOF
16451 # Let's still pretend it is `configure' which instantiates (i.e., don't
16452 # use $as_me), people would be surprised to read:
16453 # /* config.h. Generated by config.status. */
16454 if test x"$ac_file" = x-; then
16455 echo "/* Generated by configure. */" >$tmp/config.h
16457 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16459 cat $tmp/in >>$tmp/config.h
16461 if test x"$ac_file" != x-; then
16462 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16463 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16464 echo "$as_me: $ac_file is unchanged" >&6;}
16466 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16467 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16468 X"$ac_file" : 'X\(//\)[^/]' \| \
16469 X"$ac_file" : 'X\(//\)$' \| \
16470 X"$ac_file" : 'X\(/\)' \| \
16471 . : '\(.\)' 2>/dev/null ||
16473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16474 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16475 /^X\(\/\/\)$/{ s//\1/; q; }
16476 /^X\(\/\).*/{ s//\1/; q; }
16478 { if $as_mkdir_p; then
16483 while test ! -d "$as_dir"; do
16484 as_dirs="$as_dir $as_dirs"
16485 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16486 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16487 X"$as_dir" : 'X\(//\)[^/]' \| \
16488 X"$as_dir" : 'X\(//\)$' \| \
16489 X"$as_dir" : 'X\(/\)' \| \
16490 . : '\(.\)' 2>/dev/null ||
16492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16493 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16494 /^X\(\/\/\)$/{ s//\1/; q; }
16495 /^X\(\/\).*/{ s//\1/; q; }
16498 test ! -n "$as_dirs" || mkdir $as_dirs
16499 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16500 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16501 { (exit 1); exit 1; }; }; }
16504 mv $tmp/config.h $ac_file
16508 rm -f $tmp/config.h
16510 # Compute $ac_file's index in $config_headers.
16512 for _am_header in $config_headers :; do
16513 case $_am_header in
16514 $ac_file | $ac_file:* )
16517 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16520 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
16521 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16522 X$ac_file : 'X\(//\)[^/]' \| \
16523 X$ac_file : 'X\(//\)$' \| \
16524 X$ac_file : 'X\(/\)' \| \
16525 . : '\(.\)' 2>/dev/null ||
16527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16528 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16529 /^X\(\/\/\)$/{ s//\1/; q; }
16530 /^X\(\/\).*/{ s//\1/; q; }
16531 s/.*/./; q'`/stamp-h$_am_stamp_count
16534 cat >>$CONFIG_STATUS <<\_ACEOF
16537 # CONFIG_COMMANDS section.
16539 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16540 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16541 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16542 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16543 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16544 X"$ac_dest" : 'X\(//\)[^/]' \| \
16545 X"$ac_dest" : 'X\(//\)$' \| \
16546 X"$ac_dest" : 'X\(/\)' \| \
16547 . : '\(.\)' 2>/dev/null ||
16549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16550 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16551 /^X\(\/\/\)$/{ s//\1/; q; }
16552 /^X\(\/\).*/{ s//\1/; q; }
16556 if test "$ac_dir" != .; then
16557 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16558 # A "../" for each directory in $ac_dir_suffix.
16559 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16561 ac_dir_suffix= ac_top_builddir=
16565 .) # No --srcdir option. We are building in place.
16567 if test -z "$ac_top_builddir"; then
16570 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16572 [\\/]* | ?:[\\/]* ) # Absolute path.
16573 ac_srcdir=$srcdir$ac_dir_suffix;
16574 ac_top_srcdir=$srcdir ;;
16575 *) # Relative path.
16576 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16577 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16579 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16581 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16582 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16583 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16584 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16587 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16588 echo "$as_me: executing $ac_dest commands" >&6;}
16590 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16591 # Strip MF so we end up with the name of the file.
16592 mf=`echo "$mf" | sed -e 's/:.*$//'`
16593 # Check whether this is an Automake generated Makefile or not.
16594 # We used to match only the files named `Makefile.in', but
16595 # some people rename them; so instead we look at the file content.
16596 # Grep'ing the first line is not enough: some people post-process
16597 # each Makefile.in and add a new line on top of each file to say so.
16598 # So let's grep whole file.
16599 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
16600 dirpart=`(dirname "$mf") 2>/dev/null ||
16601 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16602 X"$mf" : 'X\(//\)[^/]' \| \
16603 X"$mf" : 'X\(//\)$' \| \
16604 X"$mf" : 'X\(/\)' \| \
16605 . : '\(.\)' 2>/dev/null ||
16607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16608 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16609 /^X\(\/\/\)$/{ s//\1/; q; }
16610 /^X\(\/\).*/{ s//\1/; q; }
16615 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
16616 # Extract the definition of DEP_FILES from the Makefile without
16618 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
16619 test -z "$DEPDIR" && continue
16620 # When using ansi2knr, U may be empty or an underscore; expand it
16621 U=`sed -n -e '/^U = / s///p' < "$mf"`
16622 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
16623 # We invoke sed twice because it is the simplest approach to
16624 # changing $(DEPDIR) to its actual value in the expansion.
16625 for file in `sed -n -e '
16626 /^DEP_FILES = .*\\\\$/ {
16635 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
16636 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16637 # Make sure the directory exists.
16638 test -f "$dirpart/$file" && continue
16639 fdir=`(dirname "$file") 2>/dev/null ||
16640 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16641 X"$file" : 'X\(//\)[^/]' \| \
16642 X"$file" : 'X\(//\)$' \| \
16643 X"$file" : 'X\(/\)' \| \
16644 . : '\(.\)' 2>/dev/null ||
16646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16647 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16648 /^X\(\/\/\)$/{ s//\1/; q; }
16649 /^X\(\/\).*/{ s//\1/; q; }
16651 { if $as_mkdir_p; then
16652 mkdir -p $dirpart/$fdir
16654 as_dir=$dirpart/$fdir
16656 while test ! -d "$as_dir"; do
16657 as_dirs="$as_dir $as_dirs"
16658 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16659 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16660 X"$as_dir" : 'X\(//\)[^/]' \| \
16661 X"$as_dir" : 'X\(//\)$' \| \
16662 X"$as_dir" : 'X\(/\)' \| \
16663 . : '\(.\)' 2>/dev/null ||
16665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16666 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16667 /^X\(\/\/\)$/{ s//\1/; q; }
16668 /^X\(\/\).*/{ s//\1/; q; }
16671 test ! -n "$as_dirs" || mkdir $as_dirs
16672 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
16673 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
16674 { (exit 1); exit 1; }; }; }
16676 # echo "creating $dirpart/$file"
16677 echo '# dummy' > "$dirpart/$file"
16681 default-1 ) for ac_file in $CONFIG_FILES; do
16682 # Support "outfile[:infile[:infile...]]"
16684 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16686 # PO directories have a Makefile.in generated from Makefile.in.in.
16687 case "$ac_file" in */Makefile.in)
16688 # Adjust a relative srcdir.
16689 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16690 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16691 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16692 # In autoconf-2.13 it is called $ac_given_srcdir.
16693 # In autoconf-2.50 it is called $srcdir.
16694 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16695 case "$ac_given_srcdir" in
16696 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16697 /*) top_srcdir="$ac_given_srcdir" ;;
16698 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16700 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16701 rm -f "$ac_dir/POTFILES"
16702 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16703 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
16704 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16705 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
16714 cat >>$CONFIG_STATUS <<\_ACEOF
16716 { (exit 0); exit 0; }
16718 chmod +x $CONFIG_STATUS
16719 ac_clean_files=$ac_clean_files_save
16722 # configure is writing to config.log, and then calls config.status.
16723 # config.status does its own redirection, appending to config.log.
16724 # Unfortunately, on DOS this fails, as config.log is still kept open
16725 # by configure, so config.status won't be able to write to it; its
16726 # output is simply discarded. So we exec the FD to /dev/null,
16727 # effectively closing config.log, so it can be properly (re)opened and
16728 # appended to by config.status. When coming back to configure, we
16729 # need to make the FD available again.
16730 if test "$no_create" != yes; then
16732 ac_config_status_args=
16733 test "$silent" = yes &&
16734 ac_config_status_args="$ac_config_status_args --quiet"
16736 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16738 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16739 # would make configure fail if this is the last instruction.
16740 $ac_cs_success || { (exit 1); exit 1; }