2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file="mutt.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP U ANSI2KNR RANLIB ac_ct_RANLIB AR ac_ct_AR DBX GDB SDB DEBUGGER SENDMAIL OPS PGPAUX_TARGET SMIMEAUX_TARGET SUBVERSION ISPELL LIBOBJS DOTLOCK_TARGET docdir DOTLOCK_GROUP DOTLOCK_PERMISSION BUILD_IMAP_TRUE BUILD_IMAP_FALSE KRB5CFGPATH USE_GSS_TRUE USE_GSS_FALSE USE_SSL_TRUE USE_SSL_FALSE USE_GNUTLS_TRUE USE_GNUTLS_FALSE USE_SASL_TRUE USE_SASL_FALSE MUTTLIBS MUTT_LIB_OBJECTS LIBIMAP LIBIMAPDEPS ALLOCA GLIBC21 LIBICONV USE_NLS MSGFMT GMSGFMT XGETTEXT INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT GMOFILES INTLLIBS INTLOBJS POFILES POSUB DATADIRNAME INSTOBJEXT GENCAT MKINSTALLDIRS INTL_LIBTOOL_SUFFIX_PREFIX mutt_libesmtp_config_path LTLIBOBJS'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
780 \`configure' configures this package to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
834 --program-prefix=PREFIX prepend PREFIX to installed program names
835 --program-suffix=SUFFIX append SUFFIX to installed program names
836 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839 --build=BUILD configure for building on BUILD [guessed]
840 --host=HOST cross-compile to build programs to run on HOST [BUILD]
844 if test -n "$ac_init_help"; then
849 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
850 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
851 --disable-dependency-tracking Speeds up one-time builds
852 --enable-dependency-tracking Do not reject slow dependency extractors
853 --disable-pgp Disable PGP support
854 --disable-smime Disable SMIME support
855 --enable-external-dotlock Force use of an external dotlock program
856 --enable-pop Enable POP3 support
857 --enable-imap Enable IMAP support
858 --enable-nntp Enable NNTP support
859 --enable-debug Enable debugging support
860 --enable-flock Use flock() to lock files
861 --disable-fcntl Do NOT use fcntl() to lock files
862 --disable-warnings Turn off compiler warnings (not recommended)
863 --enable-nfs-fix Work around an NFS with broken attributes caching
864 --enable-buffy-size Use file size attribute instead of access time
865 --enable-mailtool Enable Sun mailtool attachments support
866 --enable-compressed Enable compressed folders support
867 --enable-locales-fix The result of isprint() is unreliable
868 --enable-exact-address Enable regeneration of email addresses
869 --enable-hcache Enable header caching
870 --disable-iconv Disable iconv support
871 --disable-nls Do not use Native Language Support
874 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
875 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
876 --with-mixmaster=PATH Include Mixmaster support
877 --with-slang=DIR Use S-Lang instead of ncurses
878 --with-curses=DIR Where ncurses is installed
879 --with-regex Use the GNU regex library
880 --with-homespool=FILE File in user's directory where new mail is spooled
881 --with-mailpath=DIR Directory where spool mailboxes are located
882 --with-docdir=PATH Specify where to put the documentation
883 --with-domain=DOMAIN Specify your DNS domain name
884 --with-gss=PFX Compile in GSSAPI authentication for IMAP
885 --with-ssl=PFX Compile in SSL support for POP/IMAP
886 --with-gnutls=PFX Compile in GNU TLS support for POP/IMAP
887 --with-nss=PFX Compile in SSL support for POP/IMAP via NSS
888 --with-sasl=PFX Use Cyrus SASL library for POP/IMAP authentication
889 --with-sasl2=PFX Use Cyrus SASL library version 2 for POP/IMAP authentication
890 --with-idn=PFX Use GNU libidn for domain names
891 --with-exec-shell=SHELL Specify alternate shell (ONLY if /bin/sh is broken)
892 --without-gdbm Get rid of gdbm even if it is available
893 --with-bdb=DIR Use BerkeleyDB4 if gdbm is not available
894 --with-libiconv-prefix=DIR Search for libiconv in DIR/include and DIR/lib
895 --with-included-gettext Use the GNU gettext library included here
896 --without-wc-funcs Do not use the system's wchar_t functions
897 --with-libesmtp=DIR Compile in support for libesmtp for the MTA
899 Some influential environment variables:
900 CC C compiler command
901 CFLAGS C compiler flags
902 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
903 nonstandard directory <lib dir>
904 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
905 headers in a nonstandard directory <include dir>
908 Use these variables to override the choices made by `configure' or to help
909 it to find libraries and programs with nonstandard names/locations.
914 if test "$ac_init_help" = "recursive"; then
915 # If there are subdirs, report their specific --help.
917 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
918 test -d $ac_dir || continue
921 if test "$ac_dir" != .; then
922 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
923 # A "../" for each directory in $ac_dir_suffix.
924 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
926 ac_dir_suffix= ac_top_builddir=
930 .) # No --srcdir option. We are building in place.
932 if test -z "$ac_top_builddir"; then
935 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
937 [\\/]* | ?:[\\/]* ) # Absolute path.
938 ac_srcdir=$srcdir$ac_dir_suffix;
939 ac_top_srcdir=$srcdir ;;
941 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
942 ac_top_srcdir=$ac_top_builddir$srcdir ;;
944 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
946 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
947 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
948 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
949 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
952 # Check for guested configure; otherwise get Cygnus style configure.
953 if test -f $ac_srcdir/configure.gnu; then
955 $SHELL $ac_srcdir/configure.gnu --help=recursive
956 elif test -f $ac_srcdir/configure; then
958 $SHELL $ac_srcdir/configure --help=recursive
959 elif test -f $ac_srcdir/configure.ac ||
960 test -f $ac_srcdir/configure.in; then
964 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
970 test -n "$ac_init_help" && exit 0
971 if $ac_init_version; then
974 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
975 Free Software Foundation, Inc.
976 This configure script is free software; the Free Software Foundation
977 gives unlimited permission to copy, distribute and modify it.
983 This file contains any messages produced by compilers while
984 running configure, to aid debugging if configure makes a mistake.
986 It was created by $as_me, which was
987 generated by GNU Autoconf 2.57. Invocation command line was
998 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
999 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1000 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1001 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1002 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1004 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1005 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1007 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1008 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1009 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1010 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1011 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1012 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1013 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1021 test -z "$as_dir" && as_dir=.
1022 echo "PATH: $as_dir"
1037 # Keep a trace of the command line.
1038 # Strip out --no-create and --no-recursion so they do not pile up.
1039 # Strip out --silent because we don't want to record it for future runs.
1040 # Also quote any args containing shell meta-characters.
1041 # Make two passes to allow for proper duplicate-argument suppression.
1046 ac_must_keep_next=false
1052 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1054 | -silent | --silent | --silen | --sile | --sil)
1056 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1057 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1060 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1062 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1063 if test $ac_must_keep_next = true; then
1064 ac_must_keep_next=false # Got value, back to normal.
1067 *=* | --config-cache | -C | -disable-* | --disable-* \
1068 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1069 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1070 | -with-* | --with-* | -without-* | --without-* | --x)
1071 case "$ac_configure_args0 " in
1072 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1075 -* ) ac_must_keep_next=true ;;
1078 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1079 # Get rid of the leading space.
1085 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1086 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1088 # When interrupted or exit'd, cleanup temporary files, and complete
1089 # config.log. We remove comments because anyway the quotes in there
1090 # would cause problems or look ugly.
1091 # WARNING: Be sure not to use single quotes in there, as some shells,
1092 # such as our DU 5.0 friend, will then `close' the trap.
1093 trap 'exit_status=$?
1094 # Save into config.log some information that might help in debugging.
1099 ## ---------------- ##
1100 ## Cache variables. ##
1101 ## ---------------- ##
1104 # The following way of writing the cache mishandles newlines in values,
1107 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1110 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1115 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1122 ## ----------------- ##
1123 ## Output variables. ##
1124 ## ----------------- ##
1127 for ac_var in $ac_subst_vars
1129 eval ac_val=$`echo $ac_var`
1130 echo "$ac_var='"'"'$ac_val'"'"'"
1134 if test -n "$ac_subst_files"; then
1141 for ac_var in $ac_subst_files
1143 eval ac_val=$`echo $ac_var`
1144 echo "$ac_var='"'"'$ac_val'"'"'"
1149 if test -s confdefs.h; then
1156 sed "/^$/d" confdefs.h | sort
1159 test "$ac_signal" != 0 &&
1160 echo "$as_me: caught signal $ac_signal"
1161 echo "$as_me: exit $exit_status"
1163 rm -f core core.* *.core &&
1164 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1167 for ac_signal in 1 2 13 15; do
1168 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1172 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1173 rm -rf conftest* confdefs.h
1174 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1177 # Predefined preprocessor variables.
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_NAME "$PACKAGE_NAME"
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_STRING "$PACKAGE_STRING"
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1204 # Let the site file select an alternate cache file if it wants to.
1205 # Prefer explicitly selected file to automatically selected ones.
1206 if test -z "$CONFIG_SITE"; then
1207 if test "x$prefix" != xNONE; then
1208 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1210 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1213 for ac_site_file in $CONFIG_SITE; do
1214 if test -r "$ac_site_file"; then
1215 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1216 echo "$as_me: loading site script $ac_site_file" >&6;}
1217 sed 's/^/| /' "$ac_site_file" >&5
1222 if test -r "$cache_file"; then
1223 # Some versions of bash will fail to source /dev/null (special
1224 # files actually), so we avoid doing that.
1225 if test -f "$cache_file"; then
1226 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1227 echo "$as_me: loading cache $cache_file" >&6;}
1229 [\\/]* | ?:[\\/]* ) . $cache_file;;
1230 *) . ./$cache_file;;
1234 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1235 echo "$as_me: creating cache $cache_file" >&6;}
1239 # Check that the precious variables saved in the cache have kept the same
1241 ac_cache_corrupted=false
1242 for ac_var in `(set) 2>&1 |
1243 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1244 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1245 eval ac_new_set=\$ac_env_${ac_var}_set
1246 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1247 eval ac_new_val="\$ac_env_${ac_var}_value"
1248 case $ac_old_set,$ac_new_set in
1250 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1251 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1252 ac_cache_corrupted=: ;;
1254 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1255 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1256 ac_cache_corrupted=: ;;
1259 if test "x$ac_old_val" != "x$ac_new_val"; then
1260 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1261 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1262 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1263 echo "$as_me: former value: $ac_old_val" >&2;}
1264 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1265 echo "$as_me: current value: $ac_new_val" >&2;}
1266 ac_cache_corrupted=:
1269 # Pass precious variables to config.status.
1270 if test "$ac_new_set" = set; then
1272 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1273 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1274 *) ac_arg=$ac_var=$ac_new_val ;;
1276 case " $ac_configure_args " in
1277 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1278 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1282 if $ac_cache_corrupted; then
1283 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1284 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1285 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1286 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1287 { (exit 1); exit 1; }; }
1291 ac_cpp='$CPP $CPPFLAGS'
1292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1314 ac_config_headers="$ac_config_headers config.h"
1317 mutt_cv_version=`cat $srcdir/VERSION`
1320 am__api_version="1.7"
1322 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1323 if test -f $ac_dir/install-sh; then
1325 ac_install_sh="$ac_aux_dir/install-sh -c"
1327 elif test -f $ac_dir/install.sh; then
1329 ac_install_sh="$ac_aux_dir/install.sh -c"
1331 elif test -f $ac_dir/shtool; then
1333 ac_install_sh="$ac_aux_dir/shtool install -c"
1337 if test -z "$ac_aux_dir"; then
1338 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1339 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1340 { (exit 1); exit 1; }; }
1342 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1343 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1344 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1346 # Find a good install program. We prefer a C program (faster),
1347 # so one script is as good as another. But avoid the broken or
1348 # incompatible versions:
1349 # SysV /etc/install, /usr/sbin/install
1350 # SunOS /usr/etc/install
1351 # IRIX /sbin/install
1353 # AmigaOS /C/install, which installs bootblocks on floppy discs
1354 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1355 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1356 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1357 # ./install, which can be erroneously created by make from ./install.sh.
1358 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1359 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1360 if test -z "$INSTALL"; then
1361 if test "${ac_cv_path_install+set}" = set; then
1362 echo $ECHO_N "(cached) $ECHO_C" >&6
1364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1368 test -z "$as_dir" && as_dir=.
1369 # Account for people who put trailing slashes in PATH elements.
1371 ./ | .// | /cC/* | \
1372 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1375 # OSF1 and SCO ODT 3.0 have their own names for install.
1376 # Don't use installbsd from OSF since it installs stuff as root
1378 for ac_prog in ginstall scoinst install; do
1379 for ac_exec_ext in '' $ac_executable_extensions; do
1380 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1381 if test $ac_prog = install &&
1382 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1383 # AIX install. It has an incompatible calling convention.
1385 elif test $ac_prog = install &&
1386 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1387 # program-specific install script used by HP pwplus--don't use.
1390 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1402 if test "${ac_cv_path_install+set}" = set; then
1403 INSTALL=$ac_cv_path_install
1405 # As a last resort, use the slow shell script. We don't cache a
1406 # path for INSTALL within a source directory, because that will
1407 # break other packages using the cache if that directory is
1408 # removed, or if the path is relative.
1409 INSTALL=$ac_install_sh
1412 echo "$as_me:$LINENO: result: $INSTALL" >&5
1413 echo "${ECHO_T}$INSTALL" >&6
1415 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1416 # It thinks the first close brace ends the variable substitution.
1417 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1419 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1421 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1423 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1424 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1427 echo timestamp > conftest.file
1428 # Do `set' in a subshell so we don't clobber the current shell's
1429 # arguments. Must try -L first in case configure is actually a
1430 # symlink; some systems play weird games with the mod time of symlinks
1431 # (eg FreeBSD returns the mod time of the symlink's containing
1434 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1435 if test "$*" = "X"; then
1437 set X `ls -t $srcdir/configure conftest.file`
1440 if test "$*" != "X $srcdir/configure conftest.file" \
1441 && test "$*" != "X conftest.file $srcdir/configure"; then
1443 # If neither matched, then we have a broken ls. This can happen
1444 # if, for instance, CONFIG_SHELL is bash and it inherits a
1445 # broken ls alias from the environment. This has actually
1446 # happened. Such a system could not be considered "sane".
1447 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1448 alias in your environment" >&5
1449 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1450 alias in your environment" >&2;}
1451 { (exit 1); exit 1; }; }
1454 test "$2" = conftest.file
1460 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1461 Check your system clock" >&5
1462 echo "$as_me: error: newly created file is older than distributed files!
1463 Check your system clock" >&2;}
1464 { (exit 1); exit 1; }; }
1466 echo "$as_me:$LINENO: result: yes" >&5
1467 echo "${ECHO_T}yes" >&6
1468 test "$program_prefix" != NONE &&
1469 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1470 # Use a double $ so make ignores it.
1471 test "$program_suffix" != NONE &&
1472 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1473 # Double any \ or $. echo might interpret backslashes.
1474 # By default was `s,x,x', remove it if useless.
1475 cat <<\_ACEOF >conftest.sed
1476 s/[\\$]/&&/g;s/;s,x,x,$//
1478 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1482 # expand $ac_aux_dir to an absolute path
1483 am_aux_dir=`cd $ac_aux_dir && pwd`
1485 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1486 # Use eval to expand $SHELL
1487 if eval "$MISSING --run true"; then
1488 am_missing_run="$MISSING --run "
1491 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1492 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1495 for ac_prog in gawk mawk nawk awk
1497 # Extract the first word of "$ac_prog", so it can be a program name with args.
1498 set dummy $ac_prog; ac_word=$2
1499 echo "$as_me:$LINENO: checking for $ac_word" >&5
1500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1501 if test "${ac_cv_prog_AWK+set}" = set; then
1502 echo $ECHO_N "(cached) $ECHO_C" >&6
1504 if test -n "$AWK"; then
1505 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1511 test -z "$as_dir" && as_dir=.
1512 for ac_exec_ext in '' $ac_executable_extensions; do
1513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1514 ac_cv_prog_AWK="$ac_prog"
1515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1524 if test -n "$AWK"; then
1525 echo "$as_me:$LINENO: result: $AWK" >&5
1526 echo "${ECHO_T}$AWK" >&6
1528 echo "$as_me:$LINENO: result: no" >&5
1529 echo "${ECHO_T}no" >&6
1532 test -n "$AWK" && break
1535 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1536 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1537 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1538 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1539 echo $ECHO_N "(cached) $ECHO_C" >&6
1541 cat >conftest.make <<\_ACEOF
1543 @echo 'ac_maketemp="$(MAKE)"'
1545 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1546 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1547 if test -n "$ac_maketemp"; then
1548 eval ac_cv_prog_make_${ac_make}_set=yes
1550 eval ac_cv_prog_make_${ac_make}_set=no
1554 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1555 echo "$as_me:$LINENO: result: yes" >&5
1556 echo "${ECHO_T}yes" >&6
1559 echo "$as_me:$LINENO: result: no" >&5
1560 echo "${ECHO_T}no" >&6
1561 SET_MAKE="MAKE=${MAKE-make}"
1564 rm -rf .tst 2>/dev/null
1565 mkdir .tst 2>/dev/null
1566 if test -d .tst; then
1571 rmdir .tst 2>/dev/null
1573 # test to see if srcdir already configured
1574 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1575 test -f $srcdir/config.status; then
1576 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1577 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1578 { (exit 1); exit 1; }; }
1581 # test whether we have cygpath
1582 if test -z "$CYGPATH_W"; then
1583 if (cygpath --version) >/dev/null 2>/dev/null; then
1584 CYGPATH_W='cygpath -w'
1591 # Define the identity of the package.
1593 VERSION=$mutt_cv_version
1596 cat >>confdefs.h <<_ACEOF
1597 #define PACKAGE "$PACKAGE"
1601 cat >>confdefs.h <<_ACEOF
1602 #define VERSION "$VERSION"
1605 # Some tools Automake needs.
1607 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1610 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1613 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1616 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1619 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1622 AMTAR=${AMTAR-"${am_missing_run}tar"}
1624 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1626 # Installed binaries are usually stripped using `strip' when the user
1627 # run `make install-strip'. However `strip' might not be the right
1628 # tool to use in cross-compilation environments, therefore Automake
1629 # will honor the `STRIP' environment variable to overrule this program.
1630 if test "$cross_compiling" != no; then
1631 if test -n "$ac_tool_prefix"; then
1632 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1633 set dummy ${ac_tool_prefix}strip; ac_word=$2
1634 echo "$as_me:$LINENO: checking for $ac_word" >&5
1635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1636 if test "${ac_cv_prog_STRIP+set}" = set; then
1637 echo $ECHO_N "(cached) $ECHO_C" >&6
1639 if test -n "$STRIP"; then
1640 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646 test -z "$as_dir" && as_dir=.
1647 for ac_exec_ext in '' $ac_executable_extensions; do
1648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1649 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1658 STRIP=$ac_cv_prog_STRIP
1659 if test -n "$STRIP"; then
1660 echo "$as_me:$LINENO: result: $STRIP" >&5
1661 echo "${ECHO_T}$STRIP" >&6
1663 echo "$as_me:$LINENO: result: no" >&5
1664 echo "${ECHO_T}no" >&6
1668 if test -z "$ac_cv_prog_STRIP"; then
1670 # Extract the first word of "strip", so it can be a program name with args.
1671 set dummy strip; ac_word=$2
1672 echo "$as_me:$LINENO: checking for $ac_word" >&5
1673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1674 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1675 echo $ECHO_N "(cached) $ECHO_C" >&6
1677 if test -n "$ac_ct_STRIP"; then
1678 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1684 test -z "$as_dir" && as_dir=.
1685 for ac_exec_ext in '' $ac_executable_extensions; do
1686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1687 ac_cv_prog_ac_ct_STRIP="strip"
1688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1694 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1697 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1698 if test -n "$ac_ct_STRIP"; then
1699 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1700 echo "${ECHO_T}$ac_ct_STRIP" >&6
1702 echo "$as_me:$LINENO: result: no" >&5
1703 echo "${ECHO_T}no" >&6
1708 STRIP="$ac_cv_prog_STRIP"
1712 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1714 # We need awk for the "check" target. The system "awk" is bad on
1722 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"
1724 # Make sure we can run config.sub.
1725 $ac_config_sub sun4 >/dev/null 2>&1 ||
1726 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1727 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1728 { (exit 1); exit 1; }; }
1730 echo "$as_me:$LINENO: checking build system type" >&5
1731 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1732 if test "${ac_cv_build+set}" = set; then
1733 echo $ECHO_N "(cached) $ECHO_C" >&6
1735 ac_cv_build_alias=$build_alias
1736 test -z "$ac_cv_build_alias" &&
1737 ac_cv_build_alias=`$ac_config_guess`
1738 test -z "$ac_cv_build_alias" &&
1739 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1740 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1741 { (exit 1); exit 1; }; }
1742 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1743 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1744 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1745 { (exit 1); exit 1; }; }
1748 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1749 echo "${ECHO_T}$ac_cv_build" >&6
1751 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1752 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1753 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1756 echo "$as_me:$LINENO: checking host system type" >&5
1757 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1758 if test "${ac_cv_host+set}" = set; then
1759 echo $ECHO_N "(cached) $ECHO_C" >&6
1761 ac_cv_host_alias=$host_alias
1762 test -z "$ac_cv_host_alias" &&
1763 ac_cv_host_alias=$ac_cv_build_alias
1764 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1765 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1766 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1767 { (exit 1); exit 1; }; }
1770 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1771 echo "${ECHO_T}$ac_cv_host" >&6
1773 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1774 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1775 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1779 echo "$as_me:$LINENO: checking for prefix" >&5
1780 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1781 if test x$prefix = xNONE; then
1782 mutt_cv_prefix=$ac_default_prefix
1784 mutt_cv_prefix=$prefix
1786 echo "$as_me:$LINENO: result: $mutt_cv_prefix" >&5
1787 echo "${ECHO_T}$mutt_cv_prefix" >&6
1790 ac_cpp='$CPP $CPPFLAGS'
1791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1794 if test -n "$ac_tool_prefix"; then
1795 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1796 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1797 echo "$as_me:$LINENO: checking for $ac_word" >&5
1798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799 if test "${ac_cv_prog_CC+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1802 if test -n "$CC"; then
1803 ac_cv_prog_CC="$CC" # Let the user override the test.
1805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1809 test -z "$as_dir" && as_dir=.
1810 for ac_exec_ext in '' $ac_executable_extensions; do
1811 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1812 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1822 if test -n "$CC"; then
1823 echo "$as_me:$LINENO: result: $CC" >&5
1824 echo "${ECHO_T}$CC" >&6
1826 echo "$as_me:$LINENO: result: no" >&5
1827 echo "${ECHO_T}no" >&6
1831 if test -z "$ac_cv_prog_CC"; then
1833 # Extract the first word of "gcc", so it can be a program name with args.
1834 set dummy gcc; ac_word=$2
1835 echo "$as_me:$LINENO: checking for $ac_word" >&5
1836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1837 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1838 echo $ECHO_N "(cached) $ECHO_C" >&6
1840 if test -n "$ac_ct_CC"; then
1841 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1847 test -z "$as_dir" && as_dir=.
1848 for ac_exec_ext in '' $ac_executable_extensions; do
1849 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1850 ac_cv_prog_ac_ct_CC="gcc"
1851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1859 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1860 if test -n "$ac_ct_CC"; then
1861 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1862 echo "${ECHO_T}$ac_ct_CC" >&6
1864 echo "$as_me:$LINENO: result: no" >&5
1865 echo "${ECHO_T}no" >&6
1873 if test -z "$CC"; then
1874 if test -n "$ac_tool_prefix"; then
1875 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1876 set dummy ${ac_tool_prefix}cc; ac_word=$2
1877 echo "$as_me:$LINENO: checking for $ac_word" >&5
1878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1879 if test "${ac_cv_prog_CC+set}" = set; then
1880 echo $ECHO_N "(cached) $ECHO_C" >&6
1882 if test -n "$CC"; then
1883 ac_cv_prog_CC="$CC" # Let the user override the test.
1885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889 test -z "$as_dir" && as_dir=.
1890 for ac_exec_ext in '' $ac_executable_extensions; do
1891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1892 ac_cv_prog_CC="${ac_tool_prefix}cc"
1893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1902 if test -n "$CC"; then
1903 echo "$as_me:$LINENO: result: $CC" >&5
1904 echo "${ECHO_T}$CC" >&6
1906 echo "$as_me:$LINENO: result: no" >&5
1907 echo "${ECHO_T}no" >&6
1911 if test -z "$ac_cv_prog_CC"; then
1913 # Extract the first word of "cc", so it can be a program name with args.
1914 set dummy cc; ac_word=$2
1915 echo "$as_me:$LINENO: checking for $ac_word" >&5
1916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1917 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1918 echo $ECHO_N "(cached) $ECHO_C" >&6
1920 if test -n "$ac_ct_CC"; then
1921 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1927 test -z "$as_dir" && as_dir=.
1928 for ac_exec_ext in '' $ac_executable_extensions; do
1929 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1930 ac_cv_prog_ac_ct_CC="cc"
1931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1939 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1940 if test -n "$ac_ct_CC"; then
1941 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1942 echo "${ECHO_T}$ac_ct_CC" >&6
1944 echo "$as_me:$LINENO: result: no" >&5
1945 echo "${ECHO_T}no" >&6
1954 if test -z "$CC"; then
1955 # Extract the first word of "cc", so it can be a program name with args.
1956 set dummy cc; ac_word=$2
1957 echo "$as_me:$LINENO: checking for $ac_word" >&5
1958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1959 if test "${ac_cv_prog_CC+set}" = set; then
1960 echo $ECHO_N "(cached) $ECHO_C" >&6
1962 if test -n "$CC"; then
1963 ac_cv_prog_CC="$CC" # Let the user override the test.
1966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970 test -z "$as_dir" && as_dir=.
1971 for ac_exec_ext in '' $ac_executable_extensions; do
1972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1973 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1974 ac_prog_rejected=yes
1978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1984 if test $ac_prog_rejected = yes; then
1985 # We found a bogon in the path, so make sure we never use it.
1986 set dummy $ac_cv_prog_CC
1988 if test $# != 0; then
1989 # We chose a different compiler from the bogus one.
1990 # However, it has the same basename, so the bogon will be chosen
1991 # first if we set CC to just the basename; use the full file name.
1993 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1999 if test -n "$CC"; then
2000 echo "$as_me:$LINENO: result: $CC" >&5
2001 echo "${ECHO_T}$CC" >&6
2003 echo "$as_me:$LINENO: result: no" >&5
2004 echo "${ECHO_T}no" >&6
2008 if test -z "$CC"; then
2009 if test -n "$ac_tool_prefix"; then
2012 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2013 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2014 echo "$as_me:$LINENO: checking for $ac_word" >&5
2015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2016 if test "${ac_cv_prog_CC+set}" = set; then
2017 echo $ECHO_N "(cached) $ECHO_C" >&6
2019 if test -n "$CC"; then
2020 ac_cv_prog_CC="$CC" # Let the user override the test.
2022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2026 test -z "$as_dir" && as_dir=.
2027 for ac_exec_ext in '' $ac_executable_extensions; do
2028 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2029 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039 if test -n "$CC"; then
2040 echo "$as_me:$LINENO: result: $CC" >&5
2041 echo "${ECHO_T}$CC" >&6
2043 echo "$as_me:$LINENO: result: no" >&5
2044 echo "${ECHO_T}no" >&6
2047 test -n "$CC" && break
2050 if test -z "$CC"; then
2054 # Extract the first word of "$ac_prog", so it can be a program name with args.
2055 set dummy $ac_prog; ac_word=$2
2056 echo "$as_me:$LINENO: checking for $ac_word" >&5
2057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2058 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2061 if test -n "$ac_ct_CC"; then
2062 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068 test -z "$as_dir" && as_dir=.
2069 for ac_exec_ext in '' $ac_executable_extensions; do
2070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2071 ac_cv_prog_ac_ct_CC="$ac_prog"
2072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2080 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2081 if test -n "$ac_ct_CC"; then
2082 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2083 echo "${ECHO_T}$ac_ct_CC" >&6
2085 echo "$as_me:$LINENO: result: no" >&5
2086 echo "${ECHO_T}no" >&6
2089 test -n "$ac_ct_CC" && break
2098 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2099 See \`config.log' for more details." >&5
2100 echo "$as_me: error: no acceptable C compiler found in \$PATH
2101 See \`config.log' for more details." >&2;}
2102 { (exit 1); exit 1; }; }
2104 # Provide some information about the compiler.
2105 echo "$as_me:$LINENO:" \
2106 "checking for C compiler version" >&5
2107 ac_compiler=`set X $ac_compile; echo $2`
2108 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2109 (eval $ac_compiler --version </dev/null >&5) 2>&5
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); }
2113 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2114 (eval $ac_compiler -v </dev/null >&5) 2>&5
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }
2118 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2119 (eval $ac_compiler -V </dev/null >&5) 2>&5
2121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2122 (exit $ac_status); }
2124 cat >conftest.$ac_ext <<_ACEOF
2125 #line $LINENO "configure"
2128 cat confdefs.h >>conftest.$ac_ext
2129 cat >>conftest.$ac_ext <<_ACEOF
2130 /* end confdefs.h. */
2140 ac_clean_files_save=$ac_clean_files
2141 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2142 # Try to create an executable without -o first, disregard a.out.
2143 # It will help us diagnose broken compilers, and finding out an intuition
2145 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2146 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2147 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2148 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2149 (eval $ac_link_default) 2>&5
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }; then
2153 # Find the output, starting from the most likely. This scheme is
2154 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2157 # Be careful to initialize this variable, since it used to be cached.
2158 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2160 # b.out is created by i960 compilers.
2161 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2163 test -f "$ac_file" || continue
2165 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2168 # This is the source file.
2171 # We found the default executable, but exeext='' is most
2175 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2176 # FIXME: I believe we export ac_cv_exeext for Libtool,
2177 # but it would be cool to find out if it's true. Does anybody
2178 # maintain Libtool? --akim.
2186 echo "$as_me: failed program was:" >&5
2187 sed 's/^/| /' conftest.$ac_ext >&5
2189 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2190 See \`config.log' for more details." >&5
2191 echo "$as_me: error: C compiler cannot create executables
2192 See \`config.log' for more details." >&2;}
2193 { (exit 77); exit 77; }; }
2196 ac_exeext=$ac_cv_exeext
2197 echo "$as_me:$LINENO: result: $ac_file" >&5
2198 echo "${ECHO_T}$ac_file" >&6
2200 # Check the compiler produces executables we can run. If not, either
2201 # the compiler is broken, or we cross compile.
2202 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2203 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2204 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2205 # If not cross compiling, check that we can run a simple program.
2206 if test "$cross_compiling" != yes; then
2207 if { ac_try='./$ac_file'
2208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2212 (exit $ac_status); }; }; then
2215 if test "$cross_compiling" = maybe; then
2218 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2219 If you meant to cross compile, use \`--host'.
2220 See \`config.log' for more details." >&5
2221 echo "$as_me: error: cannot run C compiled programs.
2222 If you meant to cross compile, use \`--host'.
2223 See \`config.log' for more details." >&2;}
2224 { (exit 1); exit 1; }; }
2228 echo "$as_me:$LINENO: result: yes" >&5
2229 echo "${ECHO_T}yes" >&6
2231 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2232 ac_clean_files=$ac_clean_files_save
2233 # Check the compiler produces executables we can run. If not, either
2234 # the compiler is broken, or we cross compile.
2235 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2236 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2237 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2238 echo "${ECHO_T}$cross_compiling" >&6
2240 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2241 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2243 (eval $ac_link) 2>&5
2245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246 (exit $ac_status); }; then
2247 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2248 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2249 # work properly (i.e., refer to `conftest.exe'), while it won't with
2251 for ac_file in conftest.exe conftest conftest.*; do
2252 test -f "$ac_file" || continue
2254 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2255 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2262 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2263 See \`config.log' for more details." >&5
2264 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2265 See \`config.log' for more details." >&2;}
2266 { (exit 1); exit 1; }; }
2269 rm -f conftest$ac_cv_exeext
2270 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2271 echo "${ECHO_T}$ac_cv_exeext" >&6
2273 rm -f conftest.$ac_ext
2274 EXEEXT=$ac_cv_exeext
2276 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2277 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2278 if test "${ac_cv_objext+set}" = set; then
2279 echo $ECHO_N "(cached) $ECHO_C" >&6
2281 cat >conftest.$ac_ext <<_ACEOF
2282 #line $LINENO "configure"
2285 cat confdefs.h >>conftest.$ac_ext
2286 cat >>conftest.$ac_ext <<_ACEOF
2287 /* end confdefs.h. */
2297 rm -f conftest.o conftest.obj
2298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2299 (eval $ac_compile) 2>&5
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2302 (exit $ac_status); }; then
2303 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2306 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2311 echo "$as_me: failed program was:" >&5
2312 sed 's/^/| /' conftest.$ac_ext >&5
2314 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2315 See \`config.log' for more details." >&5
2316 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2317 See \`config.log' for more details." >&2;}
2318 { (exit 1); exit 1; }; }
2321 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2323 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2324 echo "${ECHO_T}$ac_cv_objext" >&6
2325 OBJEXT=$ac_cv_objext
2327 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2328 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2329 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 cat >conftest.$ac_ext <<_ACEOF
2333 #line $LINENO "configure"
2336 cat confdefs.h >>conftest.$ac_ext
2337 cat >>conftest.$ac_ext <<_ACEOF
2338 /* end confdefs.h. */
2351 rm -f conftest.$ac_objext
2352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2353 (eval $ac_compile) 2>&5
2355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356 (exit $ac_status); } &&
2357 { ac_try='test -s conftest.$ac_objext'
2358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362 (exit $ac_status); }; }; then
2365 echo "$as_me: failed program was:" >&5
2366 sed 's/^/| /' conftest.$ac_ext >&5
2370 rm -f conftest.$ac_objext conftest.$ac_ext
2371 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2374 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2375 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2376 GCC=`test $ac_compiler_gnu = yes && echo yes`
2377 ac_test_CFLAGS=${CFLAGS+set}
2378 ac_save_CFLAGS=$CFLAGS
2380 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2381 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2382 if test "${ac_cv_prog_cc_g+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2385 cat >conftest.$ac_ext <<_ACEOF
2386 #line $LINENO "configure"
2389 cat confdefs.h >>conftest.$ac_ext
2390 cat >>conftest.$ac_ext <<_ACEOF
2391 /* end confdefs.h. */
2401 rm -f conftest.$ac_objext
2402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2403 (eval $ac_compile) 2>&5
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); } &&
2407 { ac_try='test -s conftest.$ac_objext'
2408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }; }; then
2415 echo "$as_me: failed program was:" >&5
2416 sed 's/^/| /' conftest.$ac_ext >&5
2420 rm -f conftest.$ac_objext conftest.$ac_ext
2422 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2423 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2424 if test "$ac_test_CFLAGS" = set; then
2425 CFLAGS=$ac_save_CFLAGS
2426 elif test $ac_cv_prog_cc_g = yes; then
2427 if test "$GCC" = yes; then
2433 if test "$GCC" = yes; then
2439 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2440 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2441 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2442 echo $ECHO_N "(cached) $ECHO_C" >&6
2444 ac_cv_prog_cc_stdc=no
2446 cat >conftest.$ac_ext <<_ACEOF
2447 #line $LINENO "configure"
2450 cat confdefs.h >>conftest.$ac_ext
2451 cat >>conftest.$ac_ext <<_ACEOF
2452 /* end confdefs.h. */
2455 #include <sys/types.h>
2456 #include <sys/stat.h>
2457 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2458 struct buf { int x; };
2459 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2460 static char *e (p, i)
2466 static char *f (char * (*g) (char **, int), char **p, ...)
2471 s = g (p, va_arg (v,int));
2475 int test (int i, double x);
2476 struct s1 {int (*f) (int a);};
2477 struct s2 {int (*f) (double a);};
2478 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2484 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2489 # Don't try gcc -ansi; that turns off useful extensions and
2490 # breaks some systems' header files.
2491 # AIX -qlanglvl=ansi
2492 # Ultrix and OSF/1 -std1
2493 # HP-UX 10.20 and later -Ae
2494 # HP-UX older versions -Aa -D_HPUX_SOURCE
2495 # SVR4 -Xc -D__EXTENSIONS__
2496 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2498 CC="$ac_save_CC $ac_arg"
2499 rm -f conftest.$ac_objext
2500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2501 (eval $ac_compile) 2>&5
2503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); } &&
2505 { ac_try='test -s conftest.$ac_objext'
2506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); }; }; then
2511 ac_cv_prog_cc_stdc=$ac_arg
2514 echo "$as_me: failed program was:" >&5
2515 sed 's/^/| /' conftest.$ac_ext >&5
2518 rm -f conftest.$ac_objext
2520 rm -f conftest.$ac_ext conftest.$ac_objext
2525 case "x$ac_cv_prog_cc_stdc" in
2527 echo "$as_me:$LINENO: result: none needed" >&5
2528 echo "${ECHO_T}none needed" >&6 ;;
2530 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2531 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2532 CC="$CC $ac_cv_prog_cc_stdc" ;;
2535 # Some people use a C++ compiler to compile C. Since we use `exit',
2536 # in C++ we need to declare it. In case someone uses the same compiler
2537 # for both compiling C and C++ we need to have the C++ compiler decide
2538 # the declaration of exit, since it's the most demanding environment.
2539 cat >conftest.$ac_ext <<_ACEOF
2544 rm -f conftest.$ac_objext
2545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2546 (eval $ac_compile) 2>&5
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); } &&
2550 { ac_try='test -s conftest.$ac_objext'
2551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }; }; then
2556 for ac_declaration in \
2558 '#include <stdlib.h>' \
2559 'extern "C" void std::exit (int) throw (); using std::exit;' \
2560 'extern "C" void std::exit (int); using std::exit;' \
2561 'extern "C" void exit (int) throw ();' \
2562 'extern "C" void exit (int);' \
2565 cat >conftest.$ac_ext <<_ACEOF
2566 #line $LINENO "configure"
2569 cat confdefs.h >>conftest.$ac_ext
2570 cat >>conftest.$ac_ext <<_ACEOF
2571 /* end confdefs.h. */
2582 rm -f conftest.$ac_objext
2583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2584 (eval $ac_compile) 2>&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); } &&
2588 { ac_try='test -s conftest.$ac_objext'
2589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; }; then
2596 echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2601 rm -f conftest.$ac_objext conftest.$ac_ext
2602 cat >conftest.$ac_ext <<_ACEOF
2603 #line $LINENO "configure"
2606 cat confdefs.h >>conftest.$ac_ext
2607 cat >>conftest.$ac_ext <<_ACEOF
2608 /* end confdefs.h. */
2618 rm -f conftest.$ac_objext
2619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2620 (eval $ac_compile) 2>&5
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); } &&
2624 { ac_try='test -s conftest.$ac_objext'
2625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629 (exit $ac_status); }; }; then
2632 echo "$as_me: failed program was:" >&5
2633 sed 's/^/| /' conftest.$ac_ext >&5
2636 rm -f conftest.$ac_objext conftest.$ac_ext
2639 if test -n "$ac_declaration"; then
2640 echo '#ifdef __cplusplus' >>confdefs.h
2641 echo $ac_declaration >>confdefs.h
2642 echo '#endif' >>confdefs.h
2646 echo "$as_me: failed program was:" >&5
2647 sed 's/^/| /' conftest.$ac_ext >&5
2650 rm -f conftest.$ac_objext conftest.$ac_ext
2652 ac_cpp='$CPP $CPPFLAGS'
2653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2656 DEPDIR="${am__leading_dot}deps"
2658 ac_config_commands="$ac_config_commands depfiles"
2661 am_make=${MAKE-make}
2662 cat > confinc << 'END'
2667 # If we don't find an include directive, just comment out the code.
2668 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2669 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2673 # First try GNU make style include.
2674 echo "include confinc" > confmf
2675 # We grep out `Entering directory' and `Leaving directory'
2676 # messages which can occur if `w' ends up in MAKEFLAGS.
2677 # In particular we don't look at `^make:' because GNU make might
2678 # be invoked under some other name (usually "gmake"), in which
2679 # case it prints its new name instead of `make'.
2680 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2685 # Now try BSD make style include.
2686 if test "$am__include" = "#"; then
2687 echo '.include "confinc"' > confmf
2688 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2689 am__include=.include
2696 echo "$as_me:$LINENO: result: $_am_result" >&5
2697 echo "${ECHO_T}$_am_result" >&6
2698 rm -f confinc confmf
2700 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2701 if test "${enable_dependency_tracking+set}" = set; then
2702 enableval="$enable_dependency_tracking"
2705 if test "x$enable_dependency_tracking" != xno; then
2706 am_depcomp="$ac_aux_dir/depcomp"
2711 if test "x$enable_dependency_tracking" != xno; then
2722 depcc="$CC" am_compiler_list=
2724 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2725 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2726 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2727 echo $ECHO_N "(cached) $ECHO_C" >&6
2729 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2730 # We make a subdir and do the tests there. Otherwise we can end up
2731 # making bogus files that we don't know about and never remove. For
2732 # instance it was reported that on HP-UX the gcc test will end up
2733 # making a dummy file named `D' -- because `-MD' means `put the output
2736 # Copy depcomp to subdir because otherwise we won't find it if we're
2737 # using a relative directory.
2738 cp "$am_depcomp" conftest.dir
2740 # We will build objects and dependencies in a subdirectory because
2741 # it helps to detect inapplicable dependency modes. For instance
2742 # both Tru64's cc and ICC support -MD to output dependencies as a
2743 # side effect of compilation, but ICC will put the dependencies in
2744 # the current directory while Tru64 will put them in the object
2748 am_cv_CC_dependencies_compiler_type=none
2749 if test "$am_compiler_list" = ""; then
2750 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2752 for depmode in $am_compiler_list; do
2753 # Setup a source with many dependencies, because some compilers
2754 # like to wrap large dependency lists on column 80 (with \), and
2755 # we should not choose a depcomp mode which is confused by this.
2757 # We need to recreate these files for each test, as the compiler may
2758 # overwrite some of them when testing with obscure command lines.
2759 # This happens at least with the AIX C compiler.
2761 for i in 1 2 3 4 5 6; do
2762 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2765 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2769 # after this tag, mechanisms are not by side-effect, so they'll
2770 # only be used when explicitly requested
2771 if test "x$enable_dependency_tracking" = xyes; then
2779 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2780 # mode. It turns out that the SunPro C++ compiler does not properly
2781 # handle `-M -o', and we need to detect this.
2782 if depmode=$depmode \
2783 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2784 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2785 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2786 >/dev/null 2>conftest.err &&
2787 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2788 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2789 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2790 # icc doesn't choke on unknown options, it will just issue warnings
2791 # (even with -Werror). So we grep stderr for any message
2792 # that says an option was ignored.
2793 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2794 am_cv_CC_dependencies_compiler_type=$depmode
2803 am_cv_CC_dependencies_compiler_type=none
2807 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2808 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2809 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2814 test "x$enable_dependency_tracking" != xno \
2815 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2817 am__fastdepCC_FALSE='#'
2819 am__fastdepCC_TRUE='#'
2820 am__fastdepCC_FALSE=
2826 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2827 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2828 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2829 echo $ECHO_N "(cached) $ECHO_C" >&6
2831 ac_check_lib_save_LIBS=$LIBS
2832 LIBS="-lcposix $LIBS"
2833 cat >conftest.$ac_ext <<_ACEOF
2834 #line $LINENO "configure"
2837 cat confdefs.h >>conftest.$ac_ext
2838 cat >>conftest.$ac_ext <<_ACEOF
2839 /* end confdefs.h. */
2841 /* Override any gcc2 internal prototype to avoid an error. */
2845 /* We use char because int might match the return type of a gcc2
2846 builtin and then its argument prototype would still apply. */
2856 rm -f conftest.$ac_objext conftest$ac_exeext
2857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2858 (eval $ac_link) 2>&5
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); } &&
2862 { ac_try='test -s conftest$ac_exeext'
2863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); }; }; then
2868 ac_cv_lib_cposix_strerror=yes
2870 echo "$as_me: failed program was:" >&5
2871 sed 's/^/| /' conftest.$ac_ext >&5
2873 ac_cv_lib_cposix_strerror=no
2875 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2876 LIBS=$ac_check_lib_save_LIBS
2878 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2879 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2880 if test $ac_cv_lib_cposix_strerror = yes; then
2881 LIBS="$LIBS -lcposix"
2889 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2890 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2891 if test "${am_cv_prog_cc_stdc+set}" = set; then
2892 echo $ECHO_N "(cached) $ECHO_C" >&6
2894 am_cv_prog_cc_stdc=no
2896 # Don't try gcc -ansi; that turns off useful extensions and
2897 # breaks some systems' header files.
2898 # AIX -qlanglvl=ansi
2899 # Ultrix and OSF/1 -std1
2900 # HP-UX 10.20 and later -Ae
2901 # HP-UX older versions -Aa -D_HPUX_SOURCE
2902 # SVR4 -Xc -D__EXTENSIONS__
2903 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2905 CC="$ac_save_CC $ac_arg"
2906 cat >conftest.$ac_ext <<_ACEOF
2907 #line $LINENO "configure"
2910 cat confdefs.h >>conftest.$ac_ext
2911 cat >>conftest.$ac_ext <<_ACEOF
2912 /* end confdefs.h. */
2915 #include <sys/types.h>
2916 #include <sys/stat.h>
2917 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2918 struct buf { int x; };
2919 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2920 static char *e (p, i)
2926 static char *f (char * (*g) (char **, int), char **p, ...)
2931 s = g (p, va_arg (v,int));
2935 int test (int i, double x);
2936 struct s1 {int (*f) (int a);};
2937 struct s2 {int (*f) (double a);};
2938 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2946 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2952 rm -f conftest.$ac_objext
2953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2954 (eval $ac_compile) 2>&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); } &&
2958 { ac_try='test -s conftest.$ac_objext'
2959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }; }; then
2964 am_cv_prog_cc_stdc="$ac_arg"; break
2966 echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2970 rm -f conftest.$ac_objext conftest.$ac_ext
2976 if test -z "$am_cv_prog_cc_stdc"; then
2977 echo "$as_me:$LINENO: result: none needed" >&5
2978 echo "${ECHO_T}none needed" >&6
2980 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2981 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2983 case "x$am_cv_prog_cc_stdc" in
2985 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2989 ac_cpp='$CPP $CPPFLAGS'
2990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2993 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2994 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2995 # On Suns, sometimes $CPP names a directory.
2996 if test -n "$CPP" && test -d "$CPP"; then
2999 if test -z "$CPP"; then
3000 if test "${ac_cv_prog_CPP+set}" = set; then
3001 echo $ECHO_N "(cached) $ECHO_C" >&6
3003 # Double quotes because CPP needs to be expanded
3004 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3007 for ac_c_preproc_warn_flag in '' yes
3009 # Use a header file that comes with gcc, so configuring glibc
3010 # with a fresh cross-compiler works.
3011 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3012 # <limits.h> exists even on freestanding compilers.
3013 # On the NeXT, cc -E runs the code through the compiler's parser,
3014 # not just through cpp. "Syntax error" is here to catch this case.
3015 cat >conftest.$ac_ext <<_ACEOF
3016 #line $LINENO "configure"
3019 cat confdefs.h >>conftest.$ac_ext
3020 cat >>conftest.$ac_ext <<_ACEOF
3021 /* end confdefs.h. */
3023 # include <limits.h>
3025 # include <assert.h>
3029 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3032 grep -v '^ *+' conftest.er1 >conftest.err
3034 cat conftest.err >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } >/dev/null; then
3037 if test -s conftest.err; then
3038 ac_cpp_err=$ac_c_preproc_warn_flag
3045 if test -z "$ac_cpp_err"; then
3048 echo "$as_me: failed program was:" >&5
3049 sed 's/^/| /' conftest.$ac_ext >&5
3051 # Broken: fails on valid input.
3054 rm -f conftest.err conftest.$ac_ext
3056 # OK, works on sane cases. Now check whether non-existent headers
3057 # can be detected and how.
3058 cat >conftest.$ac_ext <<_ACEOF
3059 #line $LINENO "configure"
3062 cat confdefs.h >>conftest.$ac_ext
3063 cat >>conftest.$ac_ext <<_ACEOF
3064 /* end confdefs.h. */
3065 #include <ac_nonexistent.h>
3067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3070 grep -v '^ *+' conftest.er1 >conftest.err
3072 cat conftest.err >&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); } >/dev/null; then
3075 if test -s conftest.err; then
3076 ac_cpp_err=$ac_c_preproc_warn_flag
3083 if test -z "$ac_cpp_err"; then
3084 # Broken: success on invalid input.
3087 echo "$as_me: failed program was:" >&5
3088 sed 's/^/| /' conftest.$ac_ext >&5
3090 # Passes both tests.
3094 rm -f conftest.err conftest.$ac_ext
3097 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3098 rm -f conftest.err conftest.$ac_ext
3099 if $ac_preproc_ok; then
3111 echo "$as_me:$LINENO: result: $CPP" >&5
3112 echo "${ECHO_T}$CPP" >&6
3114 for ac_c_preproc_warn_flag in '' yes
3116 # Use a header file that comes with gcc, so configuring glibc
3117 # with a fresh cross-compiler works.
3118 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3119 # <limits.h> exists even on freestanding compilers.
3120 # On the NeXT, cc -E runs the code through the compiler's parser,
3121 # not just through cpp. "Syntax error" is here to catch this case.
3122 cat >conftest.$ac_ext <<_ACEOF
3123 #line $LINENO "configure"
3126 cat confdefs.h >>conftest.$ac_ext
3127 cat >>conftest.$ac_ext <<_ACEOF
3128 /* end confdefs.h. */
3130 # include <limits.h>
3132 # include <assert.h>
3136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3139 grep -v '^ *+' conftest.er1 >conftest.err
3141 cat conftest.err >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } >/dev/null; then
3144 if test -s conftest.err; then
3145 ac_cpp_err=$ac_c_preproc_warn_flag
3152 if test -z "$ac_cpp_err"; then
3155 echo "$as_me: failed program was:" >&5
3156 sed 's/^/| /' conftest.$ac_ext >&5
3158 # Broken: fails on valid input.
3161 rm -f conftest.err conftest.$ac_ext
3163 # OK, works on sane cases. Now check whether non-existent headers
3164 # can be detected and how.
3165 cat >conftest.$ac_ext <<_ACEOF
3166 #line $LINENO "configure"
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h. */
3172 #include <ac_nonexistent.h>
3174 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3175 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3177 grep -v '^ *+' conftest.er1 >conftest.err
3179 cat conftest.err >&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); } >/dev/null; then
3182 if test -s conftest.err; then
3183 ac_cpp_err=$ac_c_preproc_warn_flag
3190 if test -z "$ac_cpp_err"; then
3191 # Broken: success on invalid input.
3194 echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3197 # Passes both tests.
3201 rm -f conftest.err conftest.$ac_ext
3204 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3205 rm -f conftest.err conftest.$ac_ext
3206 if $ac_preproc_ok; then
3209 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3210 See \`config.log' for more details." >&5
3211 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3212 See \`config.log' for more details." >&2;}
3213 { (exit 1); exit 1; }; }
3217 ac_cpp='$CPP $CPPFLAGS'
3218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3223 echo "$as_me:$LINENO: checking for egrep" >&5
3224 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3225 if test "${ac_cv_prog_egrep+set}" = set; then
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
3228 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3229 then ac_cv_prog_egrep='grep -E'
3230 else ac_cv_prog_egrep='egrep'
3233 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3234 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3235 EGREP=$ac_cv_prog_egrep
3238 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3248 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3249 inttypes.h stdint.h unistd.h
3251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3252 echo "$as_me:$LINENO: checking for $ac_header" >&5
3253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3254 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3257 cat >conftest.$ac_ext <<_ACEOF
3258 #line $LINENO "configure"
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h. */
3264 $ac_includes_default
3266 #include <$ac_header>
3268 rm -f conftest.$ac_objext
3269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3270 (eval $ac_compile) 2>&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); } &&
3274 { ac_try='test -s conftest.$ac_objext'
3275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); }; }; then
3280 eval "$as_ac_Header=yes"
3282 echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.$ac_ext >&5
3285 eval "$as_ac_Header=no"
3287 rm -f conftest.$ac_objext conftest.$ac_ext
3289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3290 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3291 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3292 cat >>confdefs.h <<_ACEOF
3293 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3303 echo "$as_me:$LINENO: checking for function prototypes" >&5
3304 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3305 if test "$am_cv_prog_cc_stdc" != no; then
3306 echo "$as_me:$LINENO: result: yes" >&5
3307 echo "${ECHO_T}yes" >&6
3309 cat >>confdefs.h <<\_ACEOF
3310 #define PROTOTYPES 1
3315 echo "$as_me:$LINENO: result: no" >&5
3316 echo "${ECHO_T}no" >&6
3317 U=_ ANSI2KNR=./ansi2knr
3319 # Ensure some checks needed by ansi2knr itself.
3320 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3321 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3322 if test "${ac_cv_header_stdc+set}" = set; then
3323 echo $ECHO_N "(cached) $ECHO_C" >&6
3325 cat >conftest.$ac_ext <<_ACEOF
3326 #line $LINENO "configure"
3329 cat confdefs.h >>conftest.$ac_ext
3330 cat >>conftest.$ac_ext <<_ACEOF
3331 /* end confdefs.h. */
3345 rm -f conftest.$ac_objext
3346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3347 (eval $ac_compile) 2>&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } &&
3351 { ac_try='test -s conftest.$ac_objext'
3352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356 (exit $ac_status); }; }; then
3357 ac_cv_header_stdc=yes
3359 echo "$as_me: failed program was:" >&5
3360 sed 's/^/| /' conftest.$ac_ext >&5
3362 ac_cv_header_stdc=no
3364 rm -f conftest.$ac_objext conftest.$ac_ext
3366 if test $ac_cv_header_stdc = yes; then
3367 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3368 cat >conftest.$ac_ext <<_ACEOF
3369 #line $LINENO "configure"
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h. */
3378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3379 $EGREP "memchr" >/dev/null 2>&1; then
3382 ac_cv_header_stdc=no
3388 if test $ac_cv_header_stdc = yes; then
3389 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3390 cat >conftest.$ac_ext <<_ACEOF
3391 #line $LINENO "configure"
3394 cat confdefs.h >>conftest.$ac_ext
3395 cat >>conftest.$ac_ext <<_ACEOF
3396 /* end confdefs.h. */
3400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3401 $EGREP "free" >/dev/null 2>&1; then
3404 ac_cv_header_stdc=no
3410 if test $ac_cv_header_stdc = yes; then
3411 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3412 if test "$cross_compiling" = yes; then
3415 cat >conftest.$ac_ext <<_ACEOF
3416 #line $LINENO "configure"
3419 cat confdefs.h >>conftest.$ac_ext
3420 cat >>conftest.$ac_ext <<_ACEOF
3421 /* end confdefs.h. */
3423 #if ((' ' & 0x0FF) == 0x020)
3424 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3425 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3427 # define ISLOWER(c) \
3428 (('a' <= (c) && (c) <= 'i') \
3429 || ('j' <= (c) && (c) <= 'r') \
3430 || ('s' <= (c) && (c) <= 'z'))
3431 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3434 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3439 for (i = 0; i < 256; i++)
3440 if (XOR (islower (i), ISLOWER (i))
3441 || toupper (i) != TOUPPER (i))
3446 rm -f conftest$ac_exeext
3447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3448 (eval $ac_link) 2>&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); }; }; then
3459 echo "$as_me: program exited with status $ac_status" >&5
3460 echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3464 ac_cv_header_stdc=no
3466 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3470 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3471 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3472 if test $ac_cv_header_stdc = yes; then
3474 cat >>confdefs.h <<\_ACEOF
3475 #define STDC_HEADERS 1
3481 for ac_header in string.h
3483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3485 echo "$as_me:$LINENO: checking for $ac_header" >&5
3486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3487 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3488 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3493 # Is the header compilable?
3494 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3495 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3496 cat >conftest.$ac_ext <<_ACEOF
3497 #line $LINENO "configure"
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h. */
3503 $ac_includes_default
3504 #include <$ac_header>
3506 rm -f conftest.$ac_objext
3507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3508 (eval $ac_compile) 2>&5
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); } &&
3512 { ac_try='test -s conftest.$ac_objext'
3513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); }; }; then
3518 ac_header_compiler=yes
3520 echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3523 ac_header_compiler=no
3525 rm -f conftest.$ac_objext conftest.$ac_ext
3526 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3527 echo "${ECHO_T}$ac_header_compiler" >&6
3529 # Is the header present?
3530 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3531 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3532 cat >conftest.$ac_ext <<_ACEOF
3533 #line $LINENO "configure"
3536 cat confdefs.h >>conftest.$ac_ext
3537 cat >>conftest.$ac_ext <<_ACEOF
3538 /* end confdefs.h. */
3539 #include <$ac_header>
3541 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3542 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3544 grep -v '^ *+' conftest.er1 >conftest.err
3546 cat conftest.err >&5
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); } >/dev/null; then
3549 if test -s conftest.err; then
3550 ac_cpp_err=$ac_c_preproc_warn_flag
3557 if test -z "$ac_cpp_err"; then
3558 ac_header_preproc=yes
3560 echo "$as_me: failed program was:" >&5
3561 sed 's/^/| /' conftest.$ac_ext >&5
3563 ac_header_preproc=no
3565 rm -f conftest.err conftest.$ac_ext
3566 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3567 echo "${ECHO_T}$ac_header_preproc" >&6
3569 # So? What about this header?
3570 case $ac_header_compiler:$ac_header_preproc in
3572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3578 ## ------------------------------------ ##
3579 ## Report this to bug-autoconf@gnu.org. ##
3580 ## ------------------------------------ ##
3583 sed "s/^/$as_me: WARNING: /" >&2
3586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3589 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3594 ## ------------------------------------ ##
3595 ## Report this to bug-autoconf@gnu.org. ##
3596 ## ------------------------------------ ##
3599 sed "s/^/$as_me: WARNING: /" >&2
3602 echo "$as_me:$LINENO: checking for $ac_header" >&5
3603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3605 echo $ECHO_N "(cached) $ECHO_C" >&6
3607 eval "$as_ac_Header=$ac_header_preproc"
3609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3614 cat >>confdefs.h <<_ACEOF
3615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3623 if test "x$U" != "x"; then
3624 { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
3625 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
3626 { (exit 1); exit 1; }; }
3629 ac_cpp='$CPP $CPPFLAGS'
3630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3633 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3634 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3635 # On Suns, sometimes $CPP names a directory.
3636 if test -n "$CPP" && test -d "$CPP"; then
3639 if test -z "$CPP"; then
3640 if test "${ac_cv_prog_CPP+set}" = set; then
3641 echo $ECHO_N "(cached) $ECHO_C" >&6
3643 # Double quotes because CPP needs to be expanded
3644 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3647 for ac_c_preproc_warn_flag in '' yes
3649 # Use a header file that comes with gcc, so configuring glibc
3650 # with a fresh cross-compiler works.
3651 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3652 # <limits.h> exists even on freestanding compilers.
3653 # On the NeXT, cc -E runs the code through the compiler's parser,
3654 # not just through cpp. "Syntax error" is here to catch this case.
3655 cat >conftest.$ac_ext <<_ACEOF
3656 #line $LINENO "configure"
3659 cat confdefs.h >>conftest.$ac_ext
3660 cat >>conftest.$ac_ext <<_ACEOF
3661 /* end confdefs.h. */
3663 # include <limits.h>
3665 # include <assert.h>
3669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3670 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3672 grep -v '^ *+' conftest.er1 >conftest.err
3674 cat conftest.err >&5
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); } >/dev/null; then
3677 if test -s conftest.err; then
3678 ac_cpp_err=$ac_c_preproc_warn_flag
3685 if test -z "$ac_cpp_err"; then
3688 echo "$as_me: failed program was:" >&5
3689 sed 's/^/| /' conftest.$ac_ext >&5
3691 # Broken: fails on valid input.
3694 rm -f conftest.err conftest.$ac_ext
3696 # OK, works on sane cases. Now check whether non-existent headers
3697 # can be detected and how.
3698 cat >conftest.$ac_ext <<_ACEOF
3699 #line $LINENO "configure"
3702 cat confdefs.h >>conftest.$ac_ext
3703 cat >>conftest.$ac_ext <<_ACEOF
3704 /* end confdefs.h. */
3705 #include <ac_nonexistent.h>
3707 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3708 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3710 grep -v '^ *+' conftest.er1 >conftest.err
3712 cat conftest.err >&5
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); } >/dev/null; then
3715 if test -s conftest.err; then
3716 ac_cpp_err=$ac_c_preproc_warn_flag
3723 if test -z "$ac_cpp_err"; then
3724 # Broken: success on invalid input.
3727 echo "$as_me: failed program was:" >&5
3728 sed 's/^/| /' conftest.$ac_ext >&5
3730 # Passes both tests.
3734 rm -f conftest.err conftest.$ac_ext
3737 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3738 rm -f conftest.err conftest.$ac_ext
3739 if $ac_preproc_ok; then
3751 echo "$as_me:$LINENO: result: $CPP" >&5
3752 echo "${ECHO_T}$CPP" >&6
3754 for ac_c_preproc_warn_flag in '' yes
3756 # Use a header file that comes with gcc, so configuring glibc
3757 # with a fresh cross-compiler works.
3758 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3759 # <limits.h> exists even on freestanding compilers.
3760 # On the NeXT, cc -E runs the code through the compiler's parser,
3761 # not just through cpp. "Syntax error" is here to catch this case.
3762 cat >conftest.$ac_ext <<_ACEOF
3763 #line $LINENO "configure"
3766 cat confdefs.h >>conftest.$ac_ext
3767 cat >>conftest.$ac_ext <<_ACEOF
3768 /* end confdefs.h. */
3770 # include <limits.h>
3772 # include <assert.h>
3776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3779 grep -v '^ *+' conftest.er1 >conftest.err
3781 cat conftest.err >&5
3782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783 (exit $ac_status); } >/dev/null; then
3784 if test -s conftest.err; then
3785 ac_cpp_err=$ac_c_preproc_warn_flag
3792 if test -z "$ac_cpp_err"; then
3795 echo "$as_me: failed program was:" >&5
3796 sed 's/^/| /' conftest.$ac_ext >&5
3798 # Broken: fails on valid input.
3801 rm -f conftest.err conftest.$ac_ext
3803 # OK, works on sane cases. Now check whether non-existent headers
3804 # can be detected and how.
3805 cat >conftest.$ac_ext <<_ACEOF
3806 #line $LINENO "configure"
3809 cat confdefs.h >>conftest.$ac_ext
3810 cat >>conftest.$ac_ext <<_ACEOF
3811 /* end confdefs.h. */
3812 #include <ac_nonexistent.h>
3814 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3815 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3817 grep -v '^ *+' conftest.er1 >conftest.err
3819 cat conftest.err >&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); } >/dev/null; then
3822 if test -s conftest.err; then
3823 ac_cpp_err=$ac_c_preproc_warn_flag
3830 if test -z "$ac_cpp_err"; then
3831 # Broken: success on invalid input.
3834 echo "$as_me: failed program was:" >&5
3835 sed 's/^/| /' conftest.$ac_ext >&5
3837 # Passes both tests.
3841 rm -f conftest.err conftest.$ac_ext
3844 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3845 rm -f conftest.err conftest.$ac_ext
3846 if $ac_preproc_ok; then
3849 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3850 See \`config.log' for more details." >&5
3851 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3852 See \`config.log' for more details." >&2;}
3853 { (exit 1); exit 1; }; }
3857 ac_cpp='$CPP $CPPFLAGS'
3858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3862 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3863 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3864 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3865 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3866 echo $ECHO_N "(cached) $ECHO_C" >&6
3868 cat >conftest.make <<\_ACEOF
3870 @echo 'ac_maketemp="$(MAKE)"'
3872 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3873 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3874 if test -n "$ac_maketemp"; then
3875 eval ac_cv_prog_make_${ac_make}_set=yes
3877 eval ac_cv_prog_make_${ac_make}_set=no
3881 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3882 echo "$as_me:$LINENO: result: yes" >&5
3883 echo "${ECHO_T}yes" >&6
3886 echo "$as_me:$LINENO: result: no" >&5
3887 echo "${ECHO_T}no" >&6
3888 SET_MAKE="MAKE=${MAKE-make}"
3891 # Find a good install program. We prefer a C program (faster),
3892 # so one script is as good as another. But avoid the broken or
3893 # incompatible versions:
3894 # SysV /etc/install, /usr/sbin/install
3895 # SunOS /usr/etc/install
3896 # IRIX /sbin/install
3898 # AmigaOS /C/install, which installs bootblocks on floppy discs
3899 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3900 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3901 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3902 # ./install, which can be erroneously created by make from ./install.sh.
3903 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3904 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3905 if test -z "$INSTALL"; then
3906 if test "${ac_cv_path_install+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3913 test -z "$as_dir" && as_dir=.
3914 # Account for people who put trailing slashes in PATH elements.
3916 ./ | .// | /cC/* | \
3917 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3920 # OSF1 and SCO ODT 3.0 have their own names for install.
3921 # Don't use installbsd from OSF since it installs stuff as root
3923 for ac_prog in ginstall scoinst install; do
3924 for ac_exec_ext in '' $ac_executable_extensions; do
3925 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3926 if test $ac_prog = install &&
3927 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3928 # AIX install. It has an incompatible calling convention.
3930 elif test $ac_prog = install &&
3931 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3932 # program-specific install script used by HP pwplus--don't use.
3935 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3947 if test "${ac_cv_path_install+set}" = set; then
3948 INSTALL=$ac_cv_path_install
3950 # As a last resort, use the slow shell script. We don't cache a
3951 # path for INSTALL within a source directory, because that will
3952 # break other packages using the cache if that directory is
3953 # removed, or if the path is relative.
3954 INSTALL=$ac_install_sh
3957 echo "$as_me:$LINENO: result: $INSTALL" >&5
3958 echo "${ECHO_T}$INSTALL" >&6
3960 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3961 # It thinks the first close brace ends the variable substitution.
3962 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3964 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3966 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3968 if test -n "$ac_tool_prefix"; then
3969 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3970 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3971 echo "$as_me:$LINENO: checking for $ac_word" >&5
3972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3973 if test "${ac_cv_prog_RANLIB+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3976 if test -n "$RANLIB"; then
3977 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 test -z "$as_dir" && as_dir=.
3984 for ac_exec_ext in '' $ac_executable_extensions; do
3985 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3986 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3995 RANLIB=$ac_cv_prog_RANLIB
3996 if test -n "$RANLIB"; then
3997 echo "$as_me:$LINENO: result: $RANLIB" >&5
3998 echo "${ECHO_T}$RANLIB" >&6
4000 echo "$as_me:$LINENO: result: no" >&5
4001 echo "${ECHO_T}no" >&6
4005 if test -z "$ac_cv_prog_RANLIB"; then
4006 ac_ct_RANLIB=$RANLIB
4007 # Extract the first word of "ranlib", so it can be a program name with args.
4008 set dummy ranlib; ac_word=$2
4009 echo "$as_me:$LINENO: checking for $ac_word" >&5
4010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4011 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4012 echo $ECHO_N "(cached) $ECHO_C" >&6
4014 if test -n "$ac_ct_RANLIB"; then
4015 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021 test -z "$as_dir" && as_dir=.
4022 for ac_exec_ext in '' $ac_executable_extensions; do
4023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4024 ac_cv_prog_ac_ct_RANLIB="ranlib"
4025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4031 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4034 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4035 if test -n "$ac_ct_RANLIB"; then
4036 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4037 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4039 echo "$as_me:$LINENO: result: no" >&5
4040 echo "${ECHO_T}no" >&6
4043 RANLIB=$ac_ct_RANLIB
4045 RANLIB="$ac_cv_prog_RANLIB"
4048 if test -n "$ac_tool_prefix"; then
4049 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4050 set dummy ${ac_tool_prefix}ar; ac_word=$2
4051 echo "$as_me:$LINENO: checking for $ac_word" >&5
4052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4053 if test "${ac_cv_prog_AR+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 if test -n "$AR"; then
4057 ac_cv_prog_AR="$AR" # Let the user override the test.
4059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063 test -z "$as_dir" && as_dir=.
4064 for ac_exec_ext in '' $ac_executable_extensions; do
4065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4066 ac_cv_prog_AR="${ac_tool_prefix}ar"
4067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4076 if test -n "$AR"; then
4077 echo "$as_me:$LINENO: result: $AR" >&5
4078 echo "${ECHO_T}$AR" >&6
4080 echo "$as_me:$LINENO: result: no" >&5
4081 echo "${ECHO_T}no" >&6
4085 if test -z "$ac_cv_prog_AR"; then
4087 # Extract the first word of "ar", so it can be a program name with args.
4088 set dummy ar; ac_word=$2
4089 echo "$as_me:$LINENO: checking for $ac_word" >&5
4090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4091 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4094 if test -n "$ac_ct_AR"; then
4095 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 test -z "$as_dir" && as_dir=.
4102 for ac_exec_ext in '' $ac_executable_extensions; do
4103 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4104 ac_cv_prog_ac_ct_AR="ar"
4105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4111 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4114 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4115 if test -n "$ac_ct_AR"; then
4116 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4117 echo "${ECHO_T}$ac_ct_AR" >&6
4119 echo "$as_me:$LINENO: result: no" >&5
4120 echo "${ECHO_T}no" >&6
4129 echo "$as_me:$LINENO: checking for inline" >&5
4130 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4131 if test "${ac_cv_c_inline+set}" = set; then
4132 echo $ECHO_N "(cached) $ECHO_C" >&6
4135 for ac_kw in inline __inline__ __inline; do
4136 cat >conftest.$ac_ext <<_ACEOF
4137 #line $LINENO "configure"
4140 cat confdefs.h >>conftest.$ac_ext
4141 cat >>conftest.$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4145 static $ac_kw foo_t static_foo () {return 0; }
4146 $ac_kw foo_t foo () {return 0; }
4150 rm -f conftest.$ac_objext
4151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4152 (eval $ac_compile) 2>&5
4154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4155 (exit $ac_status); } &&
4156 { ac_try='test -s conftest.$ac_objext'
4157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; }; then
4162 ac_cv_c_inline=$ac_kw; break
4164 echo "$as_me: failed program was:" >&5
4165 sed 's/^/| /' conftest.$ac_ext >&5
4168 rm -f conftest.$ac_objext conftest.$ac_ext
4172 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4173 echo "${ECHO_T}$ac_cv_c_inline" >&6
4174 case $ac_cv_c_inline in
4177 cat >>confdefs.h <<\_ACEOF
4181 *) cat >>confdefs.h <<_ACEOF
4182 #define inline $ac_cv_c_inline
4187 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4188 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4189 if test "${ac_cv_c_const+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4192 cat >conftest.$ac_ext <<_ACEOF
4193 #line $LINENO "configure"
4196 cat confdefs.h >>conftest.$ac_ext
4197 cat >>conftest.$ac_ext <<_ACEOF
4198 /* end confdefs.h. */
4203 /* FIXME: Include the comments suggested by Paul. */
4205 /* Ultrix mips cc rejects this. */
4206 typedef int charset[2];
4208 /* SunOS 4.1.1 cc rejects this. */
4209 char const *const *ccp;
4211 /* NEC SVR4.0.2 mips cc rejects this. */
4212 struct point {int x, y;};
4213 static struct point const zero = {0,0};
4214 /* AIX XL C 1.02.0.0 rejects this.
4215 It does not let you subtract one const X* pointer from another in
4216 an arm of an if-expression whose if-part is not a constant
4218 const char *g = "string";
4219 ccp = &g + (g ? g-g : 0);
4220 /* HPUX 7.0 cc rejects these. */
4223 ccp = (char const *const *) p;
4224 { /* SCO 3.2v4 cc rejects this. */
4226 char const *s = 0 ? (char *) 0 : (char const *) 0;
4230 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4232 const int *foo = &x[0];
4235 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4236 typedef const int *iptr;
4240 { /* AIX XL C 1.02.0.0 rejects this saying
4241 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4242 struct s { int j; const int *ap[3]; };
4243 struct s *b; b->j = 5;
4245 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4254 rm -f conftest.$ac_objext
4255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4256 (eval $ac_compile) 2>&5
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); } &&
4260 { ac_try='test -s conftest.$ac_objext'
4261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); }; }; then
4268 echo "$as_me: failed program was:" >&5
4269 sed 's/^/| /' conftest.$ac_ext >&5
4273 rm -f conftest.$ac_objext conftest.$ac_ext
4275 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4276 echo "${ECHO_T}$ac_cv_c_const" >&6
4277 if test $ac_cv_c_const = no; then
4279 cat >>confdefs.h <<\_ACEOF
4286 # Extract the first word of "dbx", so it can be a program name with args.
4287 set dummy dbx; ac_word=$2
4288 echo "$as_me:$LINENO: checking for $ac_word" >&5
4289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4290 if test "${ac_cv_path_DBX+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 ac_cv_path_DBX="$DBX" # Let the user override the test with a path.
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4302 test -z "$as_dir" && as_dir=.
4303 for ac_exec_ext in '' $ac_executable_extensions; do
4304 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4305 ac_cv_path_DBX="$as_dir/$ac_word$ac_exec_ext"
4306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4312 test -z "$ac_cv_path_DBX" && ac_cv_path_DBX="no"
4318 if test -n "$DBX"; then
4319 echo "$as_me:$LINENO: result: $DBX" >&5
4320 echo "${ECHO_T}$DBX" >&6
4322 echo "$as_me:$LINENO: result: no" >&5
4323 echo "${ECHO_T}no" >&6
4326 # Extract the first word of "gdb", so it can be a program name with args.
4327 set dummy gdb; ac_word=$2
4328 echo "$as_me:$LINENO: checking for $ac_word" >&5
4329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4330 if test "${ac_cv_path_GDB+set}" = set; then
4331 echo $ECHO_N "(cached) $ECHO_C" >&6
4335 ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
4338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342 test -z "$as_dir" && as_dir=.
4343 for ac_exec_ext in '' $ac_executable_extensions; do
4344 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4345 ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
4346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4352 test -z "$ac_cv_path_GDB" && ac_cv_path_GDB="no"
4358 if test -n "$GDB"; then
4359 echo "$as_me:$LINENO: result: $GDB" >&5
4360 echo "${ECHO_T}$GDB" >&6
4362 echo "$as_me:$LINENO: result: no" >&5
4363 echo "${ECHO_T}no" >&6
4366 # Extract the first word of "sdb", so it can be a program name with args.
4367 set dummy sdb; ac_word=$2
4368 echo "$as_me:$LINENO: checking for $ac_word" >&5
4369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4370 if test "${ac_cv_path_SDB+set}" = set; then
4371 echo $ECHO_N "(cached) $ECHO_C" >&6
4375 ac_cv_path_SDB="$SDB" # Let the user override the test with a path.
4378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382 test -z "$as_dir" && as_dir=.
4383 for ac_exec_ext in '' $ac_executable_extensions; do
4384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4385 ac_cv_path_SDB="$as_dir/$ac_word$ac_exec_ext"
4386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4392 test -z "$ac_cv_path_SDB" && ac_cv_path_SDB="no"
4398 if test -n "$SDB"; then
4399 echo "$as_me:$LINENO: result: $SDB" >&5
4400 echo "${ECHO_T}$SDB" >&6
4402 echo "$as_me:$LINENO: result: no" >&5
4403 echo "${ECHO_T}no" >&6
4407 if test $GDB != no ; then
4409 elif test $DBX != no ; then
4411 elif test $SDB != no ; then
4419 # The following templates should be used with newer automakes
4420 # instead of acconfig.h
4422 #AH_TEMPLATE([sig_atomic_t],
4423 # [/* Define to `int' if <signal.h> doesn't define.])
4424 #AH_TEMPLATE([HAVE_START_COLOR],
4425 # [Define if you have start_color, as a function or macro.])
4426 #AH_TEMPLATE([HAVE_TYPEAHEAD],
4427 # [Define if you have typeahead, as a function or macro.])
4428 #AH_TEMPLATE([HAVE_BKGDSET],
4429 # [Define if you have bkgdset, as a function or macro.])
4430 #AH_TEMPLATE([HAVE_CURS_SET],
4431 # [Define if you have curs_set, as a function or macro.])
4432 #AH_TEMPLATE([HAVE_META],
4433 # [Define if you have meta, as a function or macro.])
4434 #AH_TEMPLATE([HAVE_USE_DEFAULT_COLORS],
4435 # [Define if you have use_default_colors, as a function or macro.])
4436 #AH_TEMPLATE([HAVE_RESIZETERM],
4437 # [Define if you have resizeterm, as a function or macro.])
4438 #AH_TEMPLATE([SIG_ATOMIC_VOLATILE_T],
4439 # [Some systems declare sig_atomic_t as volatile, some others -- no.
4440 # This define will have value `sig_atomic_t' or
4441 # `volatile sig_atomic_t' accordingly.])
4442 #AH_TEMPLATE([ICONV_NONTRANS],
4443 # [Define as 1 if iconv() only converts exactly and we should treat
4444 # all return values other than (size_t)(-1) as equivalent.])
4447 ac_aux_path_sendmail=/usr/sbin:/usr/lib
4448 # Extract the first word of "sendmail", so it can be a program name with args.
4449 set dummy sendmail; ac_word=$2
4450 echo "$as_me:$LINENO: checking for $ac_word" >&5
4451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4452 if test "${ac_cv_path_SENDMAIL+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4457 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461 as_dummy="$PATH:$ac_aux_path_sendmail"
4462 for as_dir in $as_dummy
4465 test -z "$as_dir" && as_dir=.
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4468 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
4469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4475 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/sbin/sendmail"
4479 SENDMAIL=$ac_cv_path_SENDMAIL
4481 if test -n "$SENDMAIL"; then
4482 echo "$as_me:$LINENO: result: $SENDMAIL" >&5
4483 echo "${ECHO_T}$SENDMAIL" >&6
4485 echo "$as_me:$LINENO: result: no" >&5
4486 echo "${ECHO_T}no" >&6
4490 cat >>confdefs.h <<_ACEOF
4491 #define SENDMAIL "$ac_cv_path_SENDMAIL"
4496 if test -f $srcdir/EXPORTABLE ; then
4501 # Check whether --enable-pgp or --disable-pgp was given.
4502 if test "${enable_pgp+set}" = set; then
4503 enableval="$enable_pgp"
4504 if test x$enableval = xno ; then
4510 if test x$have_pgp != xno ; then
4512 cat >>confdefs.h <<\_ACEOF
4513 #define CRYPT_BACKEND_CLASSIC_PGP 1
4516 PGPAUX_TARGET="pgpring pgpewrap"
4517 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pgp.o pgpinvoke.o pgpkey.o pgplib.o gnupgparse.o pgpmicalg.o pgppacket.o"
4520 # Check whether --enable-smime or --disable-smime was given.
4521 if test "${enable_smime+set}" = set; then
4522 enableval="$enable_smime"
4523 if test x$enableval = xno ; then
4529 if test x$have_smime != xno ; then
4531 cat >>confdefs.h <<\_ACEOF
4532 #define CRYPT_BACKEND_CLASSIC_SMIME 1
4535 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS smime.o "
4536 SMIMEAUX_TARGET="smime_keys"
4540 # Check whether --with-mixmaster or --without-mixmaster was given.
4541 if test "${with_mixmaster+set}" = set; then
4542 withval="$with_mixmaster"
4543 if test -x "$withval" ; then
4544 MIXMASTER="$withval"
4546 MIXMASTER="mixmaster"
4548 OPS="$OPS \$(srcdir)/OPS.MIX"
4549 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS remailer.o"
4551 cat >>confdefs.h <<_ACEOF
4552 #define MIXMASTER "$MIXMASTER"
4559 # We now require all OPS
4560 OPS="$OPS \$(srcdir)/OPS.PGP \$(srcdir)/OPS.SMIME \$(srcdir)/OPS.CRYPT "
4568 cat >>confdefs.h <<_ACEOF
4569 #define SUBVERSION "$SUBVERSION"
4574 # Extract the first word of "ispell", so it can be a program name with args.
4575 set dummy ispell; ac_word=$2
4576 echo "$as_me:$LINENO: checking for $ac_word" >&5
4577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4578 if test "${ac_cv_path_ISPELL+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4583 ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a path.
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590 test -z "$as_dir" && as_dir=.
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4593 ac_cv_path_ISPELL="$as_dir/$ac_word$ac_exec_ext"
4594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4600 test -z "$ac_cv_path_ISPELL" && ac_cv_path_ISPELL="no"
4604 ISPELL=$ac_cv_path_ISPELL
4606 if test -n "$ISPELL"; then
4607 echo "$as_me:$LINENO: result: $ISPELL" >&5
4608 echo "${ECHO_T}$ISPELL" >&6
4610 echo "$as_me:$LINENO: result: no" >&5
4611 echo "${ECHO_T}no" >&6
4614 if test $ISPELL != no; then
4616 cat >>confdefs.h <<_ACEOF
4617 #define ISPELL "$ISPELL"
4623 # Check whether --with-slang or --without-slang was given.
4624 if test "${with_slang+set}" = set; then
4625 withval="$with_slang"
4626 echo "$as_me:$LINENO: checking if this is a BSD system" >&5
4627 echo $ECHO_N "checking if this is a BSD system... $ECHO_C" >&6
4628 if test "${mutt_cv_bsdish+set}" = set; then
4629 echo $ECHO_N "(cached) $ECHO_C" >&6
4631 if test "$cross_compiling" = yes; then
4634 cat >conftest.$ac_ext <<_ACEOF
4635 #line $LINENO "configure"
4638 cat confdefs.h >>conftest.$ac_ext
4639 cat >>conftest.$ac_ext <<_ACEOF
4640 /* end confdefs.h. */
4641 #include <sys/param.h>
4652 rm -f conftest$ac_exeext
4653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4654 (eval $ac_link) 2>&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); }; }; then
4665 echo "$as_me: program exited with status $ac_status" >&5
4666 echo "$as_me: failed program was:" >&5
4667 sed 's/^/| /' conftest.$ac_ext >&5
4672 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4675 echo "$as_me:$LINENO: result: $mutt_cv_bsdish" >&5
4676 echo "${ECHO_T}$mutt_cv_bsdish" >&6
4678 echo "$as_me:$LINENO: checking for S-Lang" >&5
4679 echo $ECHO_N "checking for S-Lang... $ECHO_C" >&6
4680 if test $withval = yes; then
4681 if test -d $srcdir/../slang; then
4682 mutt_cv_slang=$srcdir/../slang/src
4683 CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
4684 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
4686 if test -d $mutt_cv_prefix/include/slang; then
4687 CPPFLAGS="$CPPFLAGS -I$mutt_cv_prefix/include/slang"
4688 elif test -d /usr/include/slang; then
4689 CPPFLAGS="$CPPFLAGS -I/usr/include/slang"
4694 if test -f $withval/src/slang.h; then
4695 mutt_cv_slang=$withval/src
4696 CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
4697 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
4699 mutt_cv_slang=$withval
4700 if test -d $withval/include/slang; then
4701 CPPFLAGS="$CPPFLAGS -I${withval}/include/slang"
4702 elif test -d $withval/include; then
4703 CPPFLAGS="$CPPFLAGS -I${withval}/include"
4705 LDFLAGS="$LDFLAGS -L${withval}/lib"
4708 echo "$as_me:$LINENO: result: $mutt_cv_slang" >&5
4709 echo "${ECHO_T}$mutt_cv_slang" >&6
4710 if test $mutt_cv_bsdish = yes; then
4712 echo "$as_me:$LINENO: checking for main in -ltermlib" >&5
4713 echo $ECHO_N "checking for main in -ltermlib... $ECHO_C" >&6
4714 if test "${ac_cv_lib_termlib_main+set}" = set; then
4715 echo $ECHO_N "(cached) $ECHO_C" >&6
4717 ac_check_lib_save_LIBS=$LIBS
4718 LIBS="-ltermlib $LIBS"
4719 cat >conftest.$ac_ext <<_ACEOF
4720 #line $LINENO "configure"
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h. */
4736 rm -f conftest.$ac_objext conftest$ac_exeext
4737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4738 (eval $ac_link) 2>&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } &&
4742 { ac_try='test -s conftest$ac_exeext'
4743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; }; then
4748 ac_cv_lib_termlib_main=yes
4750 echo "$as_me: failed program was:" >&5
4751 sed 's/^/| /' conftest.$ac_ext >&5
4753 ac_cv_lib_termlib_main=no
4755 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4756 LIBS=$ac_check_lib_save_LIBS
4758 echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_main" >&5
4759 echo "${ECHO_T}$ac_cv_lib_termlib_main" >&6
4760 if test $ac_cv_lib_termlib_main = yes; then
4761 cat >>confdefs.h <<_ACEOF
4762 #define HAVE_LIBTERMLIB 1
4765 LIBS="-ltermlib $LIBS"
4771 cat >>confdefs.h <<\_ACEOF
4772 #define USE_SLANG_CURSES 1
4776 cat >>confdefs.h <<\_ACEOF
4777 #define HAVE_COLOR 1
4780 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
4783 echo "$as_me:$LINENO: checking for SLtt_get_terminfo in -lslang" >&5
4784 echo $ECHO_N "checking for SLtt_get_terminfo in -lslang... $ECHO_C" >&6
4785 if test "${ac_cv_lib_slang_SLtt_get_terminfo+set}" = set; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4788 ac_check_lib_save_LIBS=$LIBS
4789 LIBS="-lslang -lm $LIBS"
4790 cat >conftest.$ac_ext <<_ACEOF
4791 #line $LINENO "configure"
4794 cat confdefs.h >>conftest.$ac_ext
4795 cat >>conftest.$ac_ext <<_ACEOF
4796 /* end confdefs.h. */
4798 /* Override any gcc2 internal prototype to avoid an error. */
4802 /* We use char because int might match the return type of a gcc2
4803 builtin and then its argument prototype would still apply. */
4804 char SLtt_get_terminfo ();
4808 SLtt_get_terminfo ();
4813 rm -f conftest.$ac_objext conftest$ac_exeext
4814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4815 (eval $ac_link) 2>&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); } &&
4819 { ac_try='test -s conftest$ac_exeext'
4820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); }; }; then
4825 ac_cv_lib_slang_SLtt_get_terminfo=yes
4827 echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.$ac_ext >&5
4830 ac_cv_lib_slang_SLtt_get_terminfo=no
4832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4833 LIBS=$ac_check_lib_save_LIBS
4835 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLtt_get_terminfo" >&5
4836 echo "${ECHO_T}$ac_cv_lib_slang_SLtt_get_terminfo" >&6
4837 if test $ac_cv_lib_slang_SLtt_get_terminfo = yes; then
4838 MUTTLIBS="$MUTTLIBS -lslang -lm"
4840 { { echo "$as_me:$LINENO: error: unable to compile. check config.log" >&5
4841 echo "$as_me: error: unable to compile. check config.log" >&2;}
4842 { (exit 1); exit 1; }; }
4850 # Check whether --with-curses or --without-curses was given.
4851 if test "${with_curses+set}" = set; then
4852 withval="$with_curses"
4853 if test $withval != yes; then
4854 mutt_cv_curses=$withval
4856 if test x$mutt_cv_curses != x/usr; then
4857 LDFLAGS="-L${mutt_cv_curses}/lib $LDFLAGS"
4858 CPPFLAGS="$CPPFLAGS -I${mutt_cv_curses}/include"
4862 echo "$as_me:$LINENO: checking for initscr" >&5
4863 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
4864 if test "${ac_cv_func_initscr+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4867 cat >conftest.$ac_ext <<_ACEOF
4868 #line $LINENO "configure"
4871 cat confdefs.h >>conftest.$ac_ext
4872 cat >>conftest.$ac_ext <<_ACEOF
4873 /* end confdefs.h. */
4874 /* System header to define __stub macros and hopefully few prototypes,
4875 which can conflict with char initscr (); below.
4876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4877 <limits.h> exists even on freestanding compilers. */
4879 # include <limits.h>
4881 # include <assert.h>
4883 /* Override any gcc2 internal prototype to avoid an error. */
4888 /* We use char because int might match the return type of a gcc2
4889 builtin and then its argument prototype would still apply. */
4891 /* The GNU C library defines this for functions which it implements
4892 to always fail with ENOSYS. Some functions are actually named
4893 something starting with __ and the normal name is an alias. */
4894 #if defined (__stub_initscr) || defined (__stub___initscr)
4897 char (*f) () = initscr;
4906 return f != initscr;
4911 rm -f conftest.$ac_objext conftest$ac_exeext
4912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4913 (eval $ac_link) 2>&5
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } &&
4917 { ac_try='test -s conftest$ac_exeext'
4918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); }; }; then
4923 ac_cv_func_initscr=yes
4925 echo "$as_me: failed program was:" >&5
4926 sed 's/^/| /' conftest.$ac_ext >&5
4928 ac_cv_func_initscr=no
4930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4932 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
4933 echo "${ECHO_T}$ac_cv_func_initscr" >&6
4934 if test $ac_cv_func_initscr = yes; then
4938 cf_ncurses="ncurses"
4939 for lib in ncurses ncursesw
4941 as_ac_Lib=`echo "ac_cv_lib_$lib''_waddnwstr" | $as_tr_sh`
4942 echo "$as_me:$LINENO: checking for waddnwstr in -l$lib" >&5
4943 echo $ECHO_N "checking for waddnwstr in -l$lib... $ECHO_C" >&6
4944 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
4945 echo $ECHO_N "(cached) $ECHO_C" >&6
4947 ac_check_lib_save_LIBS=$LIBS
4949 cat >conftest.$ac_ext <<_ACEOF
4950 #line $LINENO "configure"
4953 cat confdefs.h >>conftest.$ac_ext
4954 cat >>conftest.$ac_ext <<_ACEOF
4955 /* end confdefs.h. */
4957 /* Override any gcc2 internal prototype to avoid an error. */
4961 /* We use char because int might match the return type of a gcc2
4962 builtin and then its argument prototype would still apply. */
4972 rm -f conftest.$ac_objext conftest$ac_exeext
4973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4974 (eval $ac_link) 2>&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); } &&
4978 { ac_try='test -s conftest$ac_exeext'
4979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); }; }; then
4984 eval "$as_ac_Lib=yes"
4986 echo "$as_me: failed program was:" >&5
4987 sed 's/^/| /' conftest.$ac_ext >&5
4989 eval "$as_ac_Lib=no"
4991 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4992 LIBS=$ac_check_lib_save_LIBS
4994 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
4995 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
4996 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
4997 cf_ncurses="$lib"; break
5001 as_ac_Lib=`echo "ac_cv_lib_$cf_ncurses''_initscr" | $as_tr_sh`
5002 echo "$as_me:$LINENO: checking for initscr in -l$cf_ncurses" >&5
5003 echo $ECHO_N "checking for initscr in -l$cf_ncurses... $ECHO_C" >&6
5004 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5007 ac_check_lib_save_LIBS=$LIBS
5008 LIBS="-l$cf_ncurses $LIBS"
5009 cat >conftest.$ac_ext <<_ACEOF
5010 #line $LINENO "configure"
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h. */
5017 /* Override any gcc2 internal prototype to avoid an error. */
5021 /* We use char because int might match the return type of a gcc2
5022 builtin and then its argument prototype would still apply. */
5032 rm -f conftest.$ac_objext conftest$ac_exeext
5033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5034 (eval $ac_link) 2>&5
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); } &&
5038 { ac_try='test -s conftest$ac_exeext'
5039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); }; }; then
5044 eval "$as_ac_Lib=yes"
5046 echo "$as_me: failed program was:" >&5
5047 sed 's/^/| /' conftest.$ac_ext >&5
5049 eval "$as_ac_Lib=no"
5051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5052 LIBS=$ac_check_lib_save_LIBS
5054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5055 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5056 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5057 MUTTLIBS="$MUTTLIBS -l$cf_ncurses"
5058 if test x$mutt_cv_curses = x/usr -a -d /usr/include/ncurses; then
5059 CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
5062 if test "$cf_ncurses" = ncursesw; then
5064 for ac_header in ncursesw/ncurses.h
5066 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5068 echo "$as_me:$LINENO: checking for $ac_header" >&5
5069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5071 echo $ECHO_N "(cached) $ECHO_C" >&6
5073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5074 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5076 # Is the header compilable?
5077 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5078 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5079 cat >conftest.$ac_ext <<_ACEOF
5080 #line $LINENO "configure"
5083 cat confdefs.h >>conftest.$ac_ext
5084 cat >>conftest.$ac_ext <<_ACEOF
5085 /* end confdefs.h. */
5086 $ac_includes_default
5087 #include <$ac_header>
5089 rm -f conftest.$ac_objext
5090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5091 (eval $ac_compile) 2>&5
5093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5094 (exit $ac_status); } &&
5095 { ac_try='test -s conftest.$ac_objext'
5096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); }; }; then
5101 ac_header_compiler=yes
5103 echo "$as_me: failed program was:" >&5
5104 sed 's/^/| /' conftest.$ac_ext >&5
5106 ac_header_compiler=no
5108 rm -f conftest.$ac_objext conftest.$ac_ext
5109 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5110 echo "${ECHO_T}$ac_header_compiler" >&6
5112 # Is the header present?
5113 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5114 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5115 cat >conftest.$ac_ext <<_ACEOF
5116 #line $LINENO "configure"
5119 cat confdefs.h >>conftest.$ac_ext
5120 cat >>conftest.$ac_ext <<_ACEOF
5121 /* end confdefs.h. */
5122 #include <$ac_header>
5124 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5125 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5127 grep -v '^ *+' conftest.er1 >conftest.err
5129 cat conftest.err >&5
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); } >/dev/null; then
5132 if test -s conftest.err; then
5133 ac_cpp_err=$ac_c_preproc_warn_flag
5140 if test -z "$ac_cpp_err"; then
5141 ac_header_preproc=yes
5143 echo "$as_me: failed program was:" >&5
5144 sed 's/^/| /' conftest.$ac_ext >&5
5146 ac_header_preproc=no
5148 rm -f conftest.err conftest.$ac_ext
5149 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5150 echo "${ECHO_T}$ac_header_preproc" >&6
5152 # So? What about this header?
5153 case $ac_header_compiler:$ac_header_preproc in
5155 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5156 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5161 ## ------------------------------------ ##
5162 ## Report this to bug-autoconf@gnu.org. ##
5163 ## ------------------------------------ ##
5166 sed "s/^/$as_me: WARNING: /" >&2
5169 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5170 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5171 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5172 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5174 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5177 ## ------------------------------------ ##
5178 ## Report this to bug-autoconf@gnu.org. ##
5179 ## ------------------------------------ ##
5182 sed "s/^/$as_me: WARNING: /" >&2
5185 echo "$as_me:$LINENO: checking for $ac_header" >&5
5186 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5187 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5188 echo $ECHO_N "(cached) $ECHO_C" >&6
5190 eval "$as_ac_Header=$ac_header_preproc"
5192 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5193 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5197 cat >>confdefs.h <<_ACEOF
5198 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5200 cf_cv_ncurses_header="ncursesw/ncurses.h"
5207 for ac_header in ncurses.h
5209 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5211 echo "$as_me:$LINENO: checking for $ac_header" >&5
5212 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5213 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5214 echo $ECHO_N "(cached) $ECHO_C" >&6
5216 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5217 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5219 # Is the header compilable?
5220 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5221 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5222 cat >conftest.$ac_ext <<_ACEOF
5223 #line $LINENO "configure"
5226 cat confdefs.h >>conftest.$ac_ext
5227 cat >>conftest.$ac_ext <<_ACEOF
5228 /* end confdefs.h. */
5229 $ac_includes_default
5230 #include <$ac_header>
5232 rm -f conftest.$ac_objext
5233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5234 (eval $ac_compile) 2>&5
5236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237 (exit $ac_status); } &&
5238 { ac_try='test -s conftest.$ac_objext'
5239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243 (exit $ac_status); }; }; then
5244 ac_header_compiler=yes
5246 echo "$as_me: failed program was:" >&5
5247 sed 's/^/| /' conftest.$ac_ext >&5
5249 ac_header_compiler=no
5251 rm -f conftest.$ac_objext conftest.$ac_ext
5252 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5253 echo "${ECHO_T}$ac_header_compiler" >&6
5255 # Is the header present?
5256 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5257 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5258 cat >conftest.$ac_ext <<_ACEOF
5259 #line $LINENO "configure"
5262 cat confdefs.h >>conftest.$ac_ext
5263 cat >>conftest.$ac_ext <<_ACEOF
5264 /* end confdefs.h. */
5265 #include <$ac_header>
5267 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5270 grep -v '^ *+' conftest.er1 >conftest.err
5272 cat conftest.err >&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); } >/dev/null; then
5275 if test -s conftest.err; then
5276 ac_cpp_err=$ac_c_preproc_warn_flag
5283 if test -z "$ac_cpp_err"; then
5284 ac_header_preproc=yes
5286 echo "$as_me: failed program was:" >&5
5287 sed 's/^/| /' conftest.$ac_ext >&5
5289 ac_header_preproc=no
5291 rm -f conftest.err conftest.$ac_ext
5292 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5293 echo "${ECHO_T}$ac_header_preproc" >&6
5295 # So? What about this header?
5296 case $ac_header_compiler:$ac_header_preproc in
5298 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5299 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5301 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5304 ## ------------------------------------ ##
5305 ## Report this to bug-autoconf@gnu.org. ##
5306 ## ------------------------------------ ##
5309 sed "s/^/$as_me: WARNING: /" >&2
5312 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5313 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5314 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5315 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5316 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5317 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5320 ## ------------------------------------ ##
5321 ## Report this to bug-autoconf@gnu.org. ##
5322 ## ------------------------------------ ##
5325 sed "s/^/$as_me: WARNING: /" >&2
5328 echo "$as_me:$LINENO: checking for $ac_header" >&5
5329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5331 echo $ECHO_N "(cached) $ECHO_C" >&6
5333 eval "$as_ac_Header=$ac_header_preproc"
5335 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5336 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5340 cat >>confdefs.h <<_ACEOF
5341 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5343 cf_cv_ncurses_header="ncurses.h"
5351 echo "$as_me:$LINENO: checking for initscr" >&5
5352 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
5353 if test "${ac_cv_func_initscr+set}" = set; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5356 cat >conftest.$ac_ext <<_ACEOF
5357 #line $LINENO "configure"
5360 cat confdefs.h >>conftest.$ac_ext
5361 cat >>conftest.$ac_ext <<_ACEOF
5362 /* end confdefs.h. */
5363 /* System header to define __stub macros and hopefully few prototypes,
5364 which can conflict with char initscr (); below.
5365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5366 <limits.h> exists even on freestanding compilers. */
5368 # include <limits.h>
5370 # include <assert.h>
5372 /* Override any gcc2 internal prototype to avoid an error. */
5377 /* We use char because int might match the return type of a gcc2
5378 builtin and then its argument prototype would still apply. */
5380 /* The GNU C library defines this for functions which it implements
5381 to always fail with ENOSYS. Some functions are actually named
5382 something starting with __ and the normal name is an alias. */
5383 #if defined (__stub_initscr) || defined (__stub___initscr)
5386 char (*f) () = initscr;
5395 return f != initscr;
5400 rm -f conftest.$ac_objext conftest$ac_exeext
5401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5402 (eval $ac_link) 2>&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); } &&
5406 { ac_try='test -s conftest$ac_exeext'
5407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); }; }; then
5412 ac_cv_func_initscr=yes
5414 echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.$ac_ext >&5
5417 ac_cv_func_initscr=no
5419 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5421 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
5422 echo "${ECHO_T}$ac_cv_func_initscr" >&6
5423 if test $ac_cv_func_initscr = yes; then
5427 case $host_os in #(vi
5429 echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5
5430 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
5431 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
5432 echo $ECHO_N "(cached) $ECHO_C" >&6
5434 ac_check_lib_save_LIBS=$LIBS
5435 LIBS="-lmytinfo $LIBS"
5436 cat >conftest.$ac_ext <<_ACEOF
5437 #line $LINENO "configure"
5440 cat confdefs.h >>conftest.$ac_ext
5441 cat >>conftest.$ac_ext <<_ACEOF
5442 /* end confdefs.h. */
5444 /* Override any gcc2 internal prototype to avoid an error. */
5448 /* We use char because int might match the return type of a gcc2
5449 builtin and then its argument prototype would still apply. */
5459 rm -f conftest.$ac_objext conftest$ac_exeext
5460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5461 (eval $ac_link) 2>&5
5463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464 (exit $ac_status); } &&
5465 { ac_try='test -s conftest$ac_exeext'
5466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5470 (exit $ac_status); }; }; then
5471 ac_cv_lib_mytinfo_tgoto=yes
5473 echo "$as_me: failed program was:" >&5
5474 sed 's/^/| /' conftest.$ac_ext >&5
5476 ac_cv_lib_mytinfo_tgoto=no
5478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5479 LIBS=$ac_check_lib_save_LIBS
5481 echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5
5482 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
5483 if test $ac_cv_lib_mytinfo_tgoto = yes; then
5484 LIBS="-lmytinfo $LIBS"
5489 echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5
5490 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
5491 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
5492 echo $ECHO_N "(cached) $ECHO_C" >&6
5494 ac_check_lib_save_LIBS=$LIBS
5495 LIBS="-lcur_colr $LIBS"
5496 cat >conftest.$ac_ext <<_ACEOF
5497 #line $LINENO "configure"
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5504 /* Override any gcc2 internal prototype to avoid an error. */
5508 /* We use char because int might match the return type of a gcc2
5509 builtin and then its argument prototype would still apply. */
5519 rm -f conftest.$ac_objext conftest$ac_exeext
5520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5521 (eval $ac_link) 2>&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } &&
5525 { ac_try='test -s conftest$ac_exeext'
5526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530 (exit $ac_status); }; }; then
5531 ac_cv_lib_cur_colr_initscr=yes
5533 echo "$as_me: failed program was:" >&5
5534 sed 's/^/| /' conftest.$ac_ext >&5
5536 ac_cv_lib_cur_colr_initscr=no
5538 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5539 LIBS=$ac_check_lib_save_LIBS
5541 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5
5542 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
5543 if test $ac_cv_lib_cur_colr_initscr = yes; then
5545 LIBS="-lcur_colr $LIBS"
5546 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
5547 ac_cv_func_initscr=yes
5551 echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5
5552 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
5553 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
5554 echo $ECHO_N "(cached) $ECHO_C" >&6
5556 ac_check_lib_save_LIBS=$LIBS
5557 LIBS="-lHcurses $LIBS"
5558 cat >conftest.$ac_ext <<_ACEOF
5559 #line $LINENO "configure"
5562 cat confdefs.h >>conftest.$ac_ext
5563 cat >>conftest.$ac_ext <<_ACEOF
5564 /* end confdefs.h. */
5566 /* Override any gcc2 internal prototype to avoid an error. */
5570 /* We use char because int might match the return type of a gcc2
5571 builtin and then its argument prototype would still apply. */
5581 rm -f conftest.$ac_objext conftest$ac_exeext
5582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5583 (eval $ac_link) 2>&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } &&
5587 { ac_try='test -s conftest$ac_exeext'
5588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); }; }; then
5593 ac_cv_lib_Hcurses_initscr=yes
5595 echo "$as_me: failed program was:" >&5
5596 sed 's/^/| /' conftest.$ac_ext >&5
5598 ac_cv_lib_Hcurses_initscr=no
5600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5601 LIBS=$ac_check_lib_save_LIBS
5603 echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5
5604 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
5605 if test $ac_cv_lib_Hcurses_initscr = yes; then
5607 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
5608 LIBS="-lHcurses $LIBS"
5609 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
5610 ac_cv_func_initscr=yes
5617 linux*) # Suse Linux does not follow /usr/lib convention
5622 if test ".$With5lib" != ".no" ; then
5623 if test -d /usr/5lib ; then
5625 CPPFLAGS="$CPPFLAGS -I/usr/5include"
5626 LIBS="$LIBS -L/usr/5lib"
5630 if test ".$ac_cv_func_initscr" != .yes ; then
5631 cf_save_LIBS="$LIBS"
5635 # Check for library containing tgoto. Do this before curses library
5636 # because it may be needed to link the test-case for initscr.
5637 echo "$as_me:$LINENO: checking for tgoto" >&5
5638 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
5639 if test "${ac_cv_func_tgoto+set}" = set; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 cat >conftest.$ac_ext <<_ACEOF
5643 #line $LINENO "configure"
5646 cat confdefs.h >>conftest.$ac_ext
5647 cat >>conftest.$ac_ext <<_ACEOF
5648 /* end confdefs.h. */
5649 /* System header to define __stub macros and hopefully few prototypes,
5650 which can conflict with char tgoto (); below.
5651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5652 <limits.h> exists even on freestanding compilers. */
5654 # include <limits.h>
5656 # include <assert.h>
5658 /* Override any gcc2 internal prototype to avoid an error. */
5663 /* We use char because int might match the return type of a gcc2
5664 builtin and then its argument prototype would still apply. */
5666 /* The GNU C library defines this for functions which it implements
5667 to always fail with ENOSYS. Some functions are actually named
5668 something starting with __ and the normal name is an alias. */
5669 #if defined (__stub_tgoto) || defined (__stub___tgoto)
5672 char (*f) () = tgoto;
5686 rm -f conftest.$ac_objext conftest$ac_exeext
5687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5688 (eval $ac_link) 2>&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); } &&
5692 { ac_try='test -s conftest$ac_exeext'
5693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); }; }; then
5698 ac_cv_func_tgoto=yes
5700 echo "$as_me: failed program was:" >&5
5701 sed 's/^/| /' conftest.$ac_ext >&5
5705 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5707 echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5
5708 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
5709 if test $ac_cv_func_tgoto = yes; then
5710 cf_term_lib=predefined
5713 for cf_term_lib in termcap termlib unknown
5715 as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
5716 echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5
5717 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
5718 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5719 echo $ECHO_N "(cached) $ECHO_C" >&6
5721 ac_check_lib_save_LIBS=$LIBS
5722 LIBS="-l$cf_term_lib $LIBS"
5723 cat >conftest.$ac_ext <<_ACEOF
5724 #line $LINENO "configure"
5727 cat confdefs.h >>conftest.$ac_ext
5728 cat >>conftest.$ac_ext <<_ACEOF
5729 /* end confdefs.h. */
5731 /* Override any gcc2 internal prototype to avoid an error. */
5735 /* We use char because int might match the return type of a gcc2
5736 builtin and then its argument prototype would still apply. */
5746 rm -f conftest.$ac_objext conftest$ac_exeext
5747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5748 (eval $ac_link) 2>&5
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); } &&
5752 { ac_try='test -s conftest$ac_exeext'
5753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); }; }; then
5758 eval "$as_ac_Lib=yes"
5760 echo "$as_me: failed program was:" >&5
5761 sed 's/^/| /' conftest.$ac_ext >&5
5763 eval "$as_ac_Lib=no"
5765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5766 LIBS=$ac_check_lib_save_LIBS
5768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5769 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5770 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5779 # Check for library containing initscr
5780 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
5781 for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
5783 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
5784 echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5
5785 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
5786 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
5789 ac_check_lib_save_LIBS=$LIBS
5790 LIBS="-l$cf_curs_lib $LIBS"
5791 cat >conftest.$ac_ext <<_ACEOF
5792 #line $LINENO "configure"
5795 cat confdefs.h >>conftest.$ac_ext
5796 cat >>conftest.$ac_ext <<_ACEOF
5797 /* end confdefs.h. */
5799 /* Override any gcc2 internal prototype to avoid an error. */
5803 /* We use char because int might match the return type of a gcc2
5804 builtin and then its argument prototype would still apply. */
5814 rm -f conftest.$ac_objext conftest$ac_exeext
5815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5816 (eval $ac_link) 2>&5
5818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5819 (exit $ac_status); } &&
5820 { ac_try='test -s conftest$ac_exeext'
5821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); }; }; then
5826 eval "$as_ac_Lib=yes"
5828 echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.$ac_ext >&5
5831 eval "$as_ac_Lib=no"
5833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5834 LIBS=$ac_check_lib_save_LIBS
5836 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5837 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5838 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5843 test $cf_curs_lib = unknown && { { echo "$as_me:$LINENO: error: no curses library found" >&5
5844 echo "$as_me: error: no curses library found" >&2;}
5845 { (exit 1); exit 1; }; }
5847 LIBS="-l$cf_curs_lib $cf_save_LIBS"
5848 if test "$cf_term_lib" = unknown ; then
5849 echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5
5850 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
5851 cat >conftest.$ac_ext <<_ACEOF
5852 #line $LINENO "configure"
5855 cat confdefs.h >>conftest.$ac_ext
5856 cat >>conftest.$ac_ext <<_ACEOF
5857 /* end confdefs.h. */
5858 #include <${cf_cv_ncurses_header-curses.h}>
5867 rm -f conftest.$ac_objext conftest$ac_exeext
5868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5869 (eval $ac_link) 2>&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } &&
5873 { ac_try='test -s conftest$ac_exeext'
5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; }; then
5881 echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.$ac_ext >&5
5886 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5887 echo "$as_me:$LINENO: result: $cf_result" >&5
5888 echo "${ECHO_T}$cf_result" >&6
5889 test $cf_result = no && { { echo "$as_me:$LINENO: error: Cannot link curses library" >&5
5890 echo "$as_me: error: Cannot link curses library" >&2;}
5891 { (exit 1); exit 1; }; }
5892 elif test "$cf_term_lib" != predefined ; then
5893 echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
5894 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
5895 cat >conftest.$ac_ext <<_ACEOF
5896 #line $LINENO "configure"
5899 cat confdefs.h >>conftest.$ac_ext
5900 cat >>conftest.$ac_ext <<_ACEOF
5901 /* end confdefs.h. */
5902 #include <${cf_cv_ncurses_header-curses.h}>
5906 initscr(); tgoto((char *)0, 0, 0);
5911 rm -f conftest.$ac_objext conftest$ac_exeext
5912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5913 (eval $ac_link) 2>&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); } &&
5917 { ac_try='test -s conftest$ac_exeext'
5918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); }; }; then
5925 echo "$as_me: failed program was:" >&5
5926 sed 's/^/| /' conftest.$ac_ext >&5
5929 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
5930 cat >conftest.$ac_ext <<_ACEOF
5931 #line $LINENO "configure"
5934 cat confdefs.h >>conftest.$ac_ext
5935 cat >>conftest.$ac_ext <<_ACEOF
5936 /* end confdefs.h. */
5937 #include <${cf_cv_ncurses_header-curses.h}>
5946 rm -f conftest.$ac_objext conftest$ac_exeext
5947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5948 (eval $ac_link) 2>&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); } &&
5952 { ac_try='test -s conftest$ac_exeext'
5953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); }; }; then
5960 echo "$as_me: failed program was:" >&5
5961 sed 's/^/| /' conftest.$ac_ext >&5
5965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5968 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5969 echo "$as_me:$LINENO: result: $cf_result" >&5
5970 echo "${ECHO_T}$cf_result" >&6
5984 LIBS="$LIBS $MUTTLIBS"
5985 for ac_func in start_color typeahead bkgdset curs_set meta use_default_colors resizeterm
5988 echo "$as_me:$LINENO: checking for $ac_func declaration" >&5
5989 echo $ECHO_N "checking for $ac_func declaration... $ECHO_C" >&6
5990 if eval "test \"\${ac_cv_func_decl_$ac_func+set}\" = set"; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5993 cat >conftest.$ac_ext <<_ACEOF
5994 #line $LINENO "configure"
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h. */
6000 #include <${cf_cv_ncurses_header-curses.h}>
6005 extern int ${ac_func}();
6011 rm -f conftest.$ac_objext
6012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6013 (eval $ac_compile) 2>&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); } &&
6017 { ac_try='test -s conftest.$ac_objext'
6018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); }; }; then
6024 cat >conftest.$ac_ext <<_ACEOF
6025 #line $LINENO "configure"
6028 cat confdefs.h >>conftest.$ac_ext
6029 cat >>conftest.$ac_ext <<_ACEOF
6030 /* end confdefs.h. */
6031 #include <${cf_cv_ncurses_header-curses.h}>
6036 int (*p)() = ${ac_func};
6042 rm -f conftest.$ac_objext
6043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6044 (eval $ac_compile) 2>&5
6046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); } &&
6048 { ac_try='test -s conftest.$ac_objext'
6049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); }; }; then
6055 eval "ac_cv_func_decl_$ac_func=yes"
6057 echo "$as_me: failed program was:" >&5
6058 sed 's/^/| /' conftest.$ac_ext >&5
6061 eval "ac_cv_func_decl_$ac_func=no"
6063 rm -f conftest.$ac_objext conftest.$ac_ext
6065 echo "$as_me: failed program was:" >&5
6066 sed 's/^/| /' conftest.$ac_ext >&5
6069 eval "ac_cv_func_decl_$ac_func=yes"
6071 rm -f conftest.$ac_objext conftest.$ac_ext
6074 if eval "test \"`echo '$ac_cv_func_'decl_$ac_func`\" = yes"; then
6075 echo "$as_me:$LINENO: result: yes" >&5
6076 echo "${ECHO_T}yes" >&6
6079 ac_tr_func=`echo HAVE_$ac_func | tr '[a-z]' '[A-Z]'`
6081 cat >>confdefs.h <<_ACEOF
6082 #define $ac_tr_func 1
6086 echo "$as_me:$LINENO: result: no" >&5
6087 echo "${ECHO_T}no" >&6
6091 if test "$ac_cv_func_decl_start_color" = yes; then
6093 cat >>confdefs.h <<\_ACEOF
6094 #define HAVE_COLOR 1
6098 if test "$ac_cv_func_decl_resizeterm" = yes; then
6099 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
6105 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6106 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6107 if test "${ac_cv_header_stdc+set}" = set; then
6108 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 cat >conftest.$ac_ext <<_ACEOF
6111 #line $LINENO "configure"
6114 cat confdefs.h >>conftest.$ac_ext
6115 cat >>conftest.$ac_ext <<_ACEOF
6116 /* end confdefs.h. */
6130 rm -f conftest.$ac_objext
6131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6132 (eval $ac_compile) 2>&5
6134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6135 (exit $ac_status); } &&
6136 { ac_try='test -s conftest.$ac_objext'
6137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); }; }; then
6142 ac_cv_header_stdc=yes
6144 echo "$as_me: failed program was:" >&5
6145 sed 's/^/| /' conftest.$ac_ext >&5
6147 ac_cv_header_stdc=no
6149 rm -f conftest.$ac_objext conftest.$ac_ext
6151 if test $ac_cv_header_stdc = yes; then
6152 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6153 cat >conftest.$ac_ext <<_ACEOF
6154 #line $LINENO "configure"
6157 cat confdefs.h >>conftest.$ac_ext
6158 cat >>conftest.$ac_ext <<_ACEOF
6159 /* end confdefs.h. */
6163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6164 $EGREP "memchr" >/dev/null 2>&1; then
6167 ac_cv_header_stdc=no
6173 if test $ac_cv_header_stdc = yes; then
6174 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6175 cat >conftest.$ac_ext <<_ACEOF
6176 #line $LINENO "configure"
6179 cat confdefs.h >>conftest.$ac_ext
6180 cat >>conftest.$ac_ext <<_ACEOF
6181 /* end confdefs.h. */
6185 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6186 $EGREP "free" >/dev/null 2>&1; then
6189 ac_cv_header_stdc=no
6195 if test $ac_cv_header_stdc = yes; then
6196 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6197 if test "$cross_compiling" = yes; then
6200 cat >conftest.$ac_ext <<_ACEOF
6201 #line $LINENO "configure"
6204 cat confdefs.h >>conftest.$ac_ext
6205 cat >>conftest.$ac_ext <<_ACEOF
6206 /* end confdefs.h. */
6208 #if ((' ' & 0x0FF) == 0x020)
6209 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6210 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6212 # define ISLOWER(c) \
6213 (('a' <= (c) && (c) <= 'i') \
6214 || ('j' <= (c) && (c) <= 'r') \
6215 || ('s' <= (c) && (c) <= 'z'))
6216 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6219 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6224 for (i = 0; i < 256; i++)
6225 if (XOR (islower (i), ISLOWER (i))
6226 || toupper (i) != TOUPPER (i))
6231 rm -f conftest$ac_exeext
6232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6233 (eval $ac_link) 2>&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6241 (exit $ac_status); }; }; then
6244 echo "$as_me: program exited with status $ac_status" >&5
6245 echo "$as_me: failed program was:" >&5
6246 sed 's/^/| /' conftest.$ac_ext >&5
6249 ac_cv_header_stdc=no
6251 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6255 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6256 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6257 if test $ac_cv_header_stdc = yes; then
6259 cat >>confdefs.h <<\_ACEOF
6260 #define STDC_HEADERS 1
6270 for ac_header in stdarg.h sys/ioctl.h ioctl.h sysexits.h
6272 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6274 echo "$as_me:$LINENO: checking for $ac_header" >&5
6275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6276 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6277 echo $ECHO_N "(cached) $ECHO_C" >&6
6279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6280 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6282 # Is the header compilable?
6283 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6284 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6285 cat >conftest.$ac_ext <<_ACEOF
6286 #line $LINENO "configure"
6289 cat confdefs.h >>conftest.$ac_ext
6290 cat >>conftest.$ac_ext <<_ACEOF
6291 /* end confdefs.h. */
6292 $ac_includes_default
6293 #include <$ac_header>
6295 rm -f conftest.$ac_objext
6296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6297 (eval $ac_compile) 2>&5
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); } &&
6301 { ac_try='test -s conftest.$ac_objext'
6302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6306 (exit $ac_status); }; }; then
6307 ac_header_compiler=yes
6309 echo "$as_me: failed program was:" >&5
6310 sed 's/^/| /' conftest.$ac_ext >&5
6312 ac_header_compiler=no
6314 rm -f conftest.$ac_objext conftest.$ac_ext
6315 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6316 echo "${ECHO_T}$ac_header_compiler" >&6
6318 # Is the header present?
6319 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6320 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6321 cat >conftest.$ac_ext <<_ACEOF
6322 #line $LINENO "configure"
6325 cat confdefs.h >>conftest.$ac_ext
6326 cat >>conftest.$ac_ext <<_ACEOF
6327 /* end confdefs.h. */
6328 #include <$ac_header>
6330 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6331 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6333 grep -v '^ *+' conftest.er1 >conftest.err
6335 cat conftest.err >&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); } >/dev/null; then
6338 if test -s conftest.err; then
6339 ac_cpp_err=$ac_c_preproc_warn_flag
6346 if test -z "$ac_cpp_err"; then
6347 ac_header_preproc=yes
6349 echo "$as_me: failed program was:" >&5
6350 sed 's/^/| /' conftest.$ac_ext >&5
6352 ac_header_preproc=no
6354 rm -f conftest.err conftest.$ac_ext
6355 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6356 echo "${ECHO_T}$ac_header_preproc" >&6
6358 # So? What about this header?
6359 case $ac_header_compiler:$ac_header_preproc in
6361 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6362 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6367 ## ------------------------------------ ##
6368 ## Report this to bug-autoconf@gnu.org. ##
6369 ## ------------------------------------ ##
6372 sed "s/^/$as_me: WARNING: /" >&2
6375 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6376 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6377 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6378 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6379 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6383 ## ------------------------------------ ##
6384 ## Report this to bug-autoconf@gnu.org. ##
6385 ## ------------------------------------ ##
6388 sed "s/^/$as_me: WARNING: /" >&2
6391 echo "$as_me:$LINENO: checking for $ac_header" >&5
6392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6394 echo $ECHO_N "(cached) $ECHO_C" >&6
6396 eval "$as_ac_Header=$ac_header_preproc"
6398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6399 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6403 cat >>confdefs.h <<_ACEOF
6404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6413 for ac_header in sys/time.h sys/resource.h
6415 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6417 echo "$as_me:$LINENO: checking for $ac_header" >&5
6418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6420 echo $ECHO_N "(cached) $ECHO_C" >&6
6422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6425 # Is the header compilable?
6426 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6427 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6428 cat >conftest.$ac_ext <<_ACEOF
6429 #line $LINENO "configure"
6432 cat confdefs.h >>conftest.$ac_ext
6433 cat >>conftest.$ac_ext <<_ACEOF
6434 /* end confdefs.h. */
6435 $ac_includes_default
6436 #include <$ac_header>
6438 rm -f conftest.$ac_objext
6439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6440 (eval $ac_compile) 2>&5
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); } &&
6444 { ac_try='test -s conftest.$ac_objext'
6445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; }; then
6450 ac_header_compiler=yes
6452 echo "$as_me: failed program was:" >&5
6453 sed 's/^/| /' conftest.$ac_ext >&5
6455 ac_header_compiler=no
6457 rm -f conftest.$ac_objext conftest.$ac_ext
6458 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6459 echo "${ECHO_T}$ac_header_compiler" >&6
6461 # Is the header present?
6462 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6463 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6464 cat >conftest.$ac_ext <<_ACEOF
6465 #line $LINENO "configure"
6468 cat confdefs.h >>conftest.$ac_ext
6469 cat >>conftest.$ac_ext <<_ACEOF
6470 /* end confdefs.h. */
6471 #include <$ac_header>
6473 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6474 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6476 grep -v '^ *+' conftest.er1 >conftest.err
6478 cat conftest.err >&5
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); } >/dev/null; then
6481 if test -s conftest.err; then
6482 ac_cpp_err=$ac_c_preproc_warn_flag
6489 if test -z "$ac_cpp_err"; then
6490 ac_header_preproc=yes
6492 echo "$as_me: failed program was:" >&5
6493 sed 's/^/| /' conftest.$ac_ext >&5
6495 ac_header_preproc=no
6497 rm -f conftest.err conftest.$ac_ext
6498 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6499 echo "${ECHO_T}$ac_header_preproc" >&6
6501 # So? What about this header?
6502 case $ac_header_compiler:$ac_header_preproc in
6504 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6505 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6507 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6510 ## ------------------------------------ ##
6511 ## Report this to bug-autoconf@gnu.org. ##
6512 ## ------------------------------------ ##
6515 sed "s/^/$as_me: WARNING: /" >&2
6518 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6519 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6520 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6521 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6523 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6526 ## ------------------------------------ ##
6527 ## Report this to bug-autoconf@gnu.org. ##
6528 ## ------------------------------------ ##
6531 sed "s/^/$as_me: WARNING: /" >&2
6534 echo "$as_me:$LINENO: checking for $ac_header" >&5
6535 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6536 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6537 echo $ECHO_N "(cached) $ECHO_C" >&6
6539 eval "$as_ac_Header=$ac_header_preproc"
6541 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6542 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6546 cat >>confdefs.h <<_ACEOF
6547 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6555 for ac_header in unix.h
6557 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6559 echo "$as_me:$LINENO: checking for $ac_header" >&5
6560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6561 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6562 echo $ECHO_N "(cached) $ECHO_C" >&6
6564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6567 # Is the header compilable?
6568 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6569 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6570 cat >conftest.$ac_ext <<_ACEOF
6571 #line $LINENO "configure"
6574 cat confdefs.h >>conftest.$ac_ext
6575 cat >>conftest.$ac_ext <<_ACEOF
6576 /* end confdefs.h. */
6577 $ac_includes_default
6578 #include <$ac_header>
6580 rm -f conftest.$ac_objext
6581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6582 (eval $ac_compile) 2>&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); } &&
6586 { ac_try='test -s conftest.$ac_objext'
6587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); }; }; then
6592 ac_header_compiler=yes
6594 echo "$as_me: failed program was:" >&5
6595 sed 's/^/| /' conftest.$ac_ext >&5
6597 ac_header_compiler=no
6599 rm -f conftest.$ac_objext conftest.$ac_ext
6600 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6601 echo "${ECHO_T}$ac_header_compiler" >&6
6603 # Is the header present?
6604 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6605 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6606 cat >conftest.$ac_ext <<_ACEOF
6607 #line $LINENO "configure"
6610 cat confdefs.h >>conftest.$ac_ext
6611 cat >>conftest.$ac_ext <<_ACEOF
6612 /* end confdefs.h. */
6613 #include <$ac_header>
6615 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6616 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6618 grep -v '^ *+' conftest.er1 >conftest.err
6620 cat conftest.err >&5
6621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6622 (exit $ac_status); } >/dev/null; then
6623 if test -s conftest.err; then
6624 ac_cpp_err=$ac_c_preproc_warn_flag
6631 if test -z "$ac_cpp_err"; then
6632 ac_header_preproc=yes
6634 echo "$as_me: failed program was:" >&5
6635 sed 's/^/| /' conftest.$ac_ext >&5
6637 ac_header_preproc=no
6639 rm -f conftest.err conftest.$ac_ext
6640 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6641 echo "${ECHO_T}$ac_header_preproc" >&6
6643 # So? What about this header?
6644 case $ac_header_compiler:$ac_header_preproc in
6646 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6647 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6649 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6652 ## ------------------------------------ ##
6653 ## Report this to bug-autoconf@gnu.org. ##
6654 ## ------------------------------------ ##
6657 sed "s/^/$as_me: WARNING: /" >&2
6660 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6661 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6662 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6663 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6665 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6668 ## ------------------------------------ ##
6669 ## Report this to bug-autoconf@gnu.org. ##
6670 ## ------------------------------------ ##
6673 sed "s/^/$as_me: WARNING: /" >&2
6676 echo "$as_me:$LINENO: checking for $ac_header" >&5
6677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6678 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6679 echo $ECHO_N "(cached) $ECHO_C" >&6
6681 eval "$as_ac_Header=$ac_header_preproc"
6683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6684 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6687 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6688 cat >>confdefs.h <<_ACEOF
6689 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6700 for ac_func in setrlimit getsid isctype
6702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6703 echo "$as_me:$LINENO: checking for $ac_func" >&5
6704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6705 if eval "test \"\${$as_ac_var+set}\" = set"; then
6706 echo $ECHO_N "(cached) $ECHO_C" >&6
6708 cat >conftest.$ac_ext <<_ACEOF
6709 #line $LINENO "configure"
6712 cat confdefs.h >>conftest.$ac_ext
6713 cat >>conftest.$ac_ext <<_ACEOF
6714 /* end confdefs.h. */
6715 /* System header to define __stub macros and hopefully few prototypes,
6716 which can conflict with char $ac_func (); below.
6717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6718 <limits.h> exists even on freestanding compilers. */
6720 # include <limits.h>
6722 # include <assert.h>
6724 /* Override any gcc2 internal prototype to avoid an error. */
6729 /* We use char because int might match the return type of a gcc2
6730 builtin and then its argument prototype would still apply. */
6732 /* The GNU C library defines this for functions which it implements
6733 to always fail with ENOSYS. Some functions are actually named
6734 something starting with __ and the normal name is an alias. */
6735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6738 char (*f) () = $ac_func;
6747 return f != $ac_func;
6752 rm -f conftest.$ac_objext conftest$ac_exeext
6753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6754 (eval $ac_link) 2>&5
6756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757 (exit $ac_status); } &&
6758 { ac_try='test -s conftest$ac_exeext'
6759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); }; }; then
6764 eval "$as_ac_var=yes"
6766 echo "$as_me: failed program was:" >&5
6767 sed 's/^/| /' conftest.$ac_ext >&5
6769 eval "$as_ac_var=no"
6771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6774 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6775 if test `eval echo '${'$as_ac_var'}'` = yes; then
6776 cat >>confdefs.h <<_ACEOF
6777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6784 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6785 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6786 if test "${ac_cv_type_signal+set}" = set; then
6787 echo $ECHO_N "(cached) $ECHO_C" >&6
6789 cat >conftest.$ac_ext <<_ACEOF
6790 #line $LINENO "configure"
6793 cat confdefs.h >>conftest.$ac_ext
6794 cat >>conftest.$ac_ext <<_ACEOF
6795 /* end confdefs.h. */
6796 #include <sys/types.h>
6802 extern "C" void (*signal (int, void (*)(int)))(int);
6804 void (*signal ()) ();
6815 rm -f conftest.$ac_objext
6816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6817 (eval $ac_compile) 2>&5
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); } &&
6821 { ac_try='test -s conftest.$ac_objext'
6822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); }; }; then
6827 ac_cv_type_signal=void
6829 echo "$as_me: failed program was:" >&5
6830 sed 's/^/| /' conftest.$ac_ext >&5
6832 ac_cv_type_signal=int
6834 rm -f conftest.$ac_objext conftest.$ac_ext
6836 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6837 echo "${ECHO_T}$ac_cv_type_signal" >&6
6839 cat >>confdefs.h <<_ACEOF
6840 #define RETSIGTYPE $ac_cv_type_signal
6845 echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5
6846 echo $ECHO_N "checking for sig_atomic_t in signal.h... $ECHO_C" >&6
6847 cat >conftest.$ac_ext <<_ACEOF
6848 #line $LINENO "configure"
6851 cat confdefs.h >>conftest.$ac_ext
6852 cat >>conftest.$ac_ext <<_ACEOF
6853 /* end confdefs.h. */
6857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6858 $EGREP "sig_atomic_t" >/dev/null 2>&1; then
6860 ac_cv_type_sig_atomic_t=yes;
6861 cat >conftest.$ac_ext <<_ACEOF
6862 #line $LINENO "configure"
6865 cat confdefs.h >>conftest.$ac_ext
6866 cat >>conftest.$ac_ext <<_ACEOF
6867 /* end confdefs.h. */
6871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6872 $EGREP "volatile.*sig_atomic_t" >/dev/null 2>&1; then
6874 is_sig_atomic_t_volatile=yes;
6875 echo "$as_me:$LINENO: result: yes, volatile" >&5
6876 echo "${ECHO_T}yes, volatile" >&6
6880 is_sig_atomic_t_volatile=no;
6881 echo "$as_me:$LINENO: result: yes, non volatile" >&5
6882 echo "${ECHO_T}yes, non volatile" >&6
6890 echo "$as_me:$LINENO: result: no" >&5
6891 echo "${ECHO_T}no" >&6
6892 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
6893 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
6894 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
6895 echo $ECHO_N "(cached) $ECHO_C" >&6
6897 cat >conftest.$ac_ext <<_ACEOF
6898 #line $LINENO "configure"
6901 cat confdefs.h >>conftest.$ac_ext
6902 cat >>conftest.$ac_ext <<_ACEOF
6903 /* end confdefs.h. */
6904 $ac_includes_default
6908 if ((sig_atomic_t *) 0)
6910 if (sizeof (sig_atomic_t))
6916 rm -f conftest.$ac_objext
6917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6918 (eval $ac_compile) 2>&5
6920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); } &&
6922 { ac_try='test -s conftest.$ac_objext'
6923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6927 (exit $ac_status); }; }; then
6928 ac_cv_type_sig_atomic_t=yes
6930 echo "$as_me: failed program was:" >&5
6931 sed 's/^/| /' conftest.$ac_ext >&5
6933 ac_cv_type_sig_atomic_t=no
6935 rm -f conftest.$ac_objext conftest.$ac_ext
6937 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
6938 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
6939 if test $ac_cv_type_sig_atomic_t = yes; then
6943 cat >>confdefs.h <<_ACEOF
6944 #define sig_atomic_t int
6949 is_sig_atomic_t_volatile=no
6954 if test $is_sig_atomic_t_volatile = 'yes'
6956 cat >>confdefs.h <<\_ACEOF
6957 #define SIG_ATOMIC_VOLATILE_T sig_atomic_t
6961 cat >>confdefs.h <<\_ACEOF
6962 #define SIG_ATOMIC_VOLATILE_T volatile sig_atomic_t
6967 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6968 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6969 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6970 echo $ECHO_N "(cached) $ECHO_C" >&6
6972 cat >conftest.$ac_ext <<_ACEOF
6973 #line $LINENO "configure"
6976 cat confdefs.h >>conftest.$ac_ext
6977 cat >>conftest.$ac_ext <<_ACEOF
6978 /* end confdefs.h. */
6979 $ac_includes_default
6984 char *p = (char *) sys_siglist;
6991 rm -f conftest.$ac_objext
6992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6993 (eval $ac_compile) 2>&5
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); } &&
6997 { ac_try='test -s conftest.$ac_objext'
6998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); }; }; then
7003 ac_cv_have_decl_sys_siglist=yes
7005 echo "$as_me: failed program was:" >&5
7006 sed 's/^/| /' conftest.$ac_ext >&5
7008 ac_cv_have_decl_sys_siglist=no
7010 rm -f conftest.$ac_objext conftest.$ac_ext
7012 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7013 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
7014 if test $ac_cv_have_decl_sys_siglist = yes; then
7016 cat >>confdefs.h <<_ACEOF
7017 #define HAVE_DECL_SYS_SIGLIST 1
7022 cat >>confdefs.h <<_ACEOF
7023 #define HAVE_DECL_SYS_SIGLIST 0
7032 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7033 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7034 if test "${ac_cv_c_bigendian+set}" = set; then
7035 echo $ECHO_N "(cached) $ECHO_C" >&6
7037 # See if sys/param.h defines the BYTE_ORDER macro.
7038 cat >conftest.$ac_ext <<_ACEOF
7039 #line $LINENO "configure"
7042 cat confdefs.h >>conftest.$ac_ext
7043 cat >>conftest.$ac_ext <<_ACEOF
7044 /* end confdefs.h. */
7045 #include <sys/types.h>
7046 #include <sys/param.h>
7051 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7059 rm -f conftest.$ac_objext
7060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7061 (eval $ac_compile) 2>&5
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); } &&
7065 { ac_try='test -s conftest.$ac_objext'
7066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); }; }; then
7071 # It does; now see whether it defined to BIG_ENDIAN or not.
7072 cat >conftest.$ac_ext <<_ACEOF
7073 #line $LINENO "configure"
7076 cat confdefs.h >>conftest.$ac_ext
7077 cat >>conftest.$ac_ext <<_ACEOF
7078 /* end confdefs.h. */
7079 #include <sys/types.h>
7080 #include <sys/param.h>
7085 #if BYTE_ORDER != BIG_ENDIAN
7093 rm -f conftest.$ac_objext
7094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7095 (eval $ac_compile) 2>&5
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); } &&
7099 { ac_try='test -s conftest.$ac_objext'
7100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7104 (exit $ac_status); }; }; then
7105 ac_cv_c_bigendian=yes
7107 echo "$as_me: failed program was:" >&5
7108 sed 's/^/| /' conftest.$ac_ext >&5
7110 ac_cv_c_bigendian=no
7112 rm -f conftest.$ac_objext conftest.$ac_ext
7114 echo "$as_me: failed program was:" >&5
7115 sed 's/^/| /' conftest.$ac_ext >&5
7117 # It does not; compile a test program.
7118 if test "$cross_compiling" = yes; then
7119 # try to guess the endianness by grepping values into an object file
7120 ac_cv_c_bigendian=unknown
7121 cat >conftest.$ac_ext <<_ACEOF
7122 #line $LINENO "configure"
7125 cat confdefs.h >>conftest.$ac_ext
7126 cat >>conftest.$ac_ext <<_ACEOF
7127 /* end confdefs.h. */
7128 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7129 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7130 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7131 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7132 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7133 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7137 _ascii (); _ebcdic ();
7142 rm -f conftest.$ac_objext
7143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7144 (eval $ac_compile) 2>&5
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); } &&
7148 { ac_try='test -s conftest.$ac_objext'
7149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); }; }; then
7154 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7155 ac_cv_c_bigendian=yes
7157 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7158 if test "$ac_cv_c_bigendian" = unknown; then
7159 ac_cv_c_bigendian=no
7161 # finding both strings is unlikely to happen, but who knows?
7162 ac_cv_c_bigendian=unknown
7166 echo "$as_me: failed program was:" >&5
7167 sed 's/^/| /' conftest.$ac_ext >&5
7170 rm -f conftest.$ac_objext conftest.$ac_ext
7172 cat >conftest.$ac_ext <<_ACEOF
7173 #line $LINENO "configure"
7176 cat confdefs.h >>conftest.$ac_ext
7177 cat >>conftest.$ac_ext <<_ACEOF
7178 /* end confdefs.h. */
7182 /* Are we little or big endian? From Harbison&Steele. */
7186 char c[sizeof (long)];
7189 exit (u.c[sizeof (long) - 1] == 1);
7192 rm -f conftest$ac_exeext
7193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7194 (eval $ac_link) 2>&5
7196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); }; }; then
7203 ac_cv_c_bigendian=no
7205 echo "$as_me: program exited with status $ac_status" >&5
7206 echo "$as_me: failed program was:" >&5
7207 sed 's/^/| /' conftest.$ac_ext >&5
7210 ac_cv_c_bigendian=yes
7212 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7215 rm -f conftest.$ac_objext conftest.$ac_ext
7217 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7218 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7219 case $ac_cv_c_bigendian in
7222 cat >>confdefs.h <<\_ACEOF
7223 #define WORDS_BIGENDIAN 1
7229 { { echo "$as_me:$LINENO: error: unknown endianness
7230 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7231 echo "$as_me: error: unknown endianness
7232 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7233 { (exit 1); exit 1; }; } ;;
7238 for ac_header in inttypes.h stdint.h
7240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7242 echo "$as_me:$LINENO: checking for $ac_header" >&5
7243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7244 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7247 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7248 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7250 # Is the header compilable?
7251 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7252 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7253 cat >conftest.$ac_ext <<_ACEOF
7254 #line $LINENO "configure"
7257 cat confdefs.h >>conftest.$ac_ext
7258 cat >>conftest.$ac_ext <<_ACEOF
7259 /* end confdefs.h. */
7260 $ac_includes_default
7261 #include <$ac_header>
7263 rm -f conftest.$ac_objext
7264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7265 (eval $ac_compile) 2>&5
7267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268 (exit $ac_status); } &&
7269 { ac_try='test -s conftest.$ac_objext'
7270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); }; }; then
7275 ac_header_compiler=yes
7277 echo "$as_me: failed program was:" >&5
7278 sed 's/^/| /' conftest.$ac_ext >&5
7280 ac_header_compiler=no
7282 rm -f conftest.$ac_objext conftest.$ac_ext
7283 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7284 echo "${ECHO_T}$ac_header_compiler" >&6
7286 # Is the header present?
7287 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7289 cat >conftest.$ac_ext <<_ACEOF
7290 #line $LINENO "configure"
7293 cat confdefs.h >>conftest.$ac_ext
7294 cat >>conftest.$ac_ext <<_ACEOF
7295 /* end confdefs.h. */
7296 #include <$ac_header>
7298 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7299 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7301 grep -v '^ *+' conftest.er1 >conftest.err
7303 cat conftest.err >&5
7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); } >/dev/null; then
7306 if test -s conftest.err; then
7307 ac_cpp_err=$ac_c_preproc_warn_flag
7314 if test -z "$ac_cpp_err"; then
7315 ac_header_preproc=yes
7317 echo "$as_me: failed program was:" >&5
7318 sed 's/^/| /' conftest.$ac_ext >&5
7320 ac_header_preproc=no
7322 rm -f conftest.err conftest.$ac_ext
7323 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7324 echo "${ECHO_T}$ac_header_preproc" >&6
7326 # So? What about this header?
7327 case $ac_header_compiler:$ac_header_preproc in
7329 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7330 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7335 ## ------------------------------------ ##
7336 ## Report this to bug-autoconf@gnu.org. ##
7337 ## ------------------------------------ ##
7340 sed "s/^/$as_me: WARNING: /" >&2
7343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7346 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7348 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7351 ## ------------------------------------ ##
7352 ## Report this to bug-autoconf@gnu.org. ##
7353 ## ------------------------------------ ##
7356 sed "s/^/$as_me: WARNING: /" >&2
7359 echo "$as_me:$LINENO: checking for $ac_header" >&5
7360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7361 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
7364 eval "$as_ac_Header=$ac_header_preproc"
7366 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7367 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7370 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7371 cat >>confdefs.h <<_ACEOF
7372 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7379 echo "$as_me:$LINENO: checking for uint32_t" >&5
7380 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7381 cat >conftest.$ac_ext <<_ACEOF
7382 #line $LINENO "configure"
7385 cat confdefs.h >>conftest.$ac_ext
7386 cat >>conftest.$ac_ext <<_ACEOF
7387 /* end confdefs.h. */
7389 #include <sys/types.h>
7391 #include <inttypes.h>
7402 if (sizeof (uint32_t))
7409 rm -f conftest.$ac_objext
7410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7411 (eval $ac_compile) 2>&5
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); } &&
7415 { ac_try='test -s conftest.$ac_objext'
7416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); }; }; then
7423 cat >>confdefs.h <<\_ACEOF
7424 #define HAVE_UINT32_T 1
7427 echo "$as_me:$LINENO: result: yes" >&5
7428 echo "${ECHO_T}yes" >&6
7431 echo "$as_me: failed program was:" >&5
7432 sed 's/^/| /' conftest.$ac_ext >&5
7434 echo "$as_me:$LINENO: result: no" >&5
7435 echo "${ECHO_T}no" >&6
7438 rm -f conftest.$ac_objext conftest.$ac_ext
7439 echo "$as_me:$LINENO: checking for int" >&5
7440 echo $ECHO_N "checking for int... $ECHO_C" >&6
7441 if test "${ac_cv_type_int+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7444 cat >conftest.$ac_ext <<_ACEOF
7445 #line $LINENO "configure"
7448 cat confdefs.h >>conftest.$ac_ext
7449 cat >>conftest.$ac_ext <<_ACEOF
7450 /* end confdefs.h. */
7451 $ac_includes_default
7463 rm -f conftest.$ac_objext
7464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7465 (eval $ac_compile) 2>&5
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); } &&
7469 { ac_try='test -s conftest.$ac_objext'
7470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474 (exit $ac_status); }; }; then
7477 echo "$as_me: failed program was:" >&5
7478 sed 's/^/| /' conftest.$ac_ext >&5
7482 rm -f conftest.$ac_objext conftest.$ac_ext
7484 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7485 echo "${ECHO_T}$ac_cv_type_int" >&6
7487 echo "$as_me:$LINENO: checking size of int" >&5
7488 echo $ECHO_N "checking size of int... $ECHO_C" >&6
7489 if test "${ac_cv_sizeof_int+set}" = set; then
7490 echo $ECHO_N "(cached) $ECHO_C" >&6
7492 if test "$ac_cv_type_int" = yes; then
7493 # The cast to unsigned long works around a bug in the HP C Compiler
7494 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7495 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7496 # This bug is HP SR number 8606223364.
7497 if test "$cross_compiling" = yes; then
7498 # Depending upon the size, compute the lo and hi bounds.
7499 cat >conftest.$ac_ext <<_ACEOF
7500 #line $LINENO "configure"
7503 cat confdefs.h >>conftest.$ac_ext
7504 cat >>conftest.$ac_ext <<_ACEOF
7505 /* end confdefs.h. */
7506 $ac_includes_default
7510 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
7517 rm -f conftest.$ac_objext
7518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7519 (eval $ac_compile) 2>&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); } &&
7523 { ac_try='test -s conftest.$ac_objext'
7524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528 (exit $ac_status); }; }; then
7531 cat >conftest.$ac_ext <<_ACEOF
7532 #line $LINENO "configure"
7535 cat confdefs.h >>conftest.$ac_ext
7536 cat >>conftest.$ac_ext <<_ACEOF
7537 /* end confdefs.h. */
7538 $ac_includes_default
7542 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7549 rm -f conftest.$ac_objext
7550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7551 (eval $ac_compile) 2>&5
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); } &&
7555 { ac_try='test -s conftest.$ac_objext'
7556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); }; }; then
7561 ac_hi=$ac_mid; break
7563 echo "$as_me: failed program was:" >&5
7564 sed 's/^/| /' conftest.$ac_ext >&5
7566 ac_lo=`expr $ac_mid + 1`
7567 if test $ac_lo -le $ac_mid; then
7571 ac_mid=`expr 2 '*' $ac_mid + 1`
7573 rm -f conftest.$ac_objext conftest.$ac_ext
7576 echo "$as_me: failed program was:" >&5
7577 sed 's/^/| /' conftest.$ac_ext >&5
7579 cat >conftest.$ac_ext <<_ACEOF
7580 #line $LINENO "configure"
7583 cat confdefs.h >>conftest.$ac_ext
7584 cat >>conftest.$ac_ext <<_ACEOF
7585 /* end confdefs.h. */
7586 $ac_includes_default
7590 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
7597 rm -f conftest.$ac_objext
7598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7599 (eval $ac_compile) 2>&5
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); } &&
7603 { ac_try='test -s conftest.$ac_objext'
7604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); }; }; then
7611 cat >conftest.$ac_ext <<_ACEOF
7612 #line $LINENO "configure"
7615 cat confdefs.h >>conftest.$ac_ext
7616 cat >>conftest.$ac_ext <<_ACEOF
7617 /* end confdefs.h. */
7618 $ac_includes_default
7622 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
7629 rm -f conftest.$ac_objext
7630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7631 (eval $ac_compile) 2>&5
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); } &&
7635 { ac_try='test -s conftest.$ac_objext'
7636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); }; }; then
7641 ac_lo=$ac_mid; break
7643 echo "$as_me: failed program was:" >&5
7644 sed 's/^/| /' conftest.$ac_ext >&5
7646 ac_hi=`expr '(' $ac_mid ')' - 1`
7647 if test $ac_mid -le $ac_hi; then
7651 ac_mid=`expr 2 '*' $ac_mid`
7653 rm -f conftest.$ac_objext conftest.$ac_ext
7656 echo "$as_me: failed program was:" >&5
7657 sed 's/^/| /' conftest.$ac_ext >&5
7661 rm -f conftest.$ac_objext conftest.$ac_ext
7663 rm -f conftest.$ac_objext conftest.$ac_ext
7664 # Binary search between lo and hi bounds.
7665 while test "x$ac_lo" != "x$ac_hi"; do
7666 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7667 cat >conftest.$ac_ext <<_ACEOF
7668 #line $LINENO "configure"
7671 cat confdefs.h >>conftest.$ac_ext
7672 cat >>conftest.$ac_ext <<_ACEOF
7673 /* end confdefs.h. */
7674 $ac_includes_default
7678 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7685 rm -f conftest.$ac_objext
7686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7687 (eval $ac_compile) 2>&5
7689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690 (exit $ac_status); } &&
7691 { ac_try='test -s conftest.$ac_objext'
7692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7696 (exit $ac_status); }; }; then
7699 echo "$as_me: failed program was:" >&5
7700 sed 's/^/| /' conftest.$ac_ext >&5
7702 ac_lo=`expr '(' $ac_mid ')' + 1`
7704 rm -f conftest.$ac_objext conftest.$ac_ext
7707 ?*) ac_cv_sizeof_int=$ac_lo;;
7708 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7709 See \`config.log' for more details." >&5
7710 echo "$as_me: error: cannot compute sizeof (int), 77
7711 See \`config.log' for more details." >&2;}
7712 { (exit 1); exit 1; }; } ;;
7715 if test "$cross_compiling" = yes; then
7716 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7717 See \`config.log' for more details." >&5
7718 echo "$as_me: error: cannot run test program while cross compiling
7719 See \`config.log' for more details." >&2;}
7720 { (exit 1); exit 1; }; }
7722 cat >conftest.$ac_ext <<_ACEOF
7723 #line $LINENO "configure"
7726 cat confdefs.h >>conftest.$ac_ext
7727 cat >>conftest.$ac_ext <<_ACEOF
7728 /* end confdefs.h. */
7729 $ac_includes_default
7730 long longval () { return (long) (sizeof (int)); }
7731 unsigned long ulongval () { return (long) (sizeof (int)); }
7738 FILE *f = fopen ("conftest.val", "w");
7741 if (((long) (sizeof (int))) < 0)
7743 long i = longval ();
7744 if (i != ((long) (sizeof (int))))
7746 fprintf (f, "%ld\n", i);
7750 unsigned long i = ulongval ();
7751 if (i != ((long) (sizeof (int))))
7753 fprintf (f, "%lu\n", i);
7755 exit (ferror (f) || fclose (f) != 0);
7761 rm -f conftest$ac_exeext
7762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7763 (eval $ac_link) 2>&5
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); }; }; then
7772 ac_cv_sizeof_int=`cat conftest.val`
7774 echo "$as_me: program exited with status $ac_status" >&5
7775 echo "$as_me: failed program was:" >&5
7776 sed 's/^/| /' conftest.$ac_ext >&5
7779 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7780 See \`config.log' for more details." >&5
7781 echo "$as_me: error: cannot compute sizeof (int), 77
7782 See \`config.log' for more details." >&2;}
7783 { (exit 1); exit 1; }; }
7785 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7793 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7794 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7795 cat >>confdefs.h <<_ACEOF
7796 #define SIZEOF_INT $ac_cv_sizeof_int
7800 echo "$as_me:$LINENO: checking for long" >&5
7801 echo $ECHO_N "checking for long... $ECHO_C" >&6
7802 if test "${ac_cv_type_long+set}" = set; then
7803 echo $ECHO_N "(cached) $ECHO_C" >&6
7805 cat >conftest.$ac_ext <<_ACEOF
7806 #line $LINENO "configure"
7809 cat confdefs.h >>conftest.$ac_ext
7810 cat >>conftest.$ac_ext <<_ACEOF
7811 /* end confdefs.h. */
7812 $ac_includes_default
7824 rm -f conftest.$ac_objext
7825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7826 (eval $ac_compile) 2>&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); } &&
7830 { ac_try='test -s conftest.$ac_objext'
7831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); }; }; then
7838 echo "$as_me: failed program was:" >&5
7839 sed 's/^/| /' conftest.$ac_ext >&5
7843 rm -f conftest.$ac_objext conftest.$ac_ext
7845 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7846 echo "${ECHO_T}$ac_cv_type_long" >&6
7848 echo "$as_me:$LINENO: checking size of long" >&5
7849 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7850 if test "${ac_cv_sizeof_long+set}" = set; then
7851 echo $ECHO_N "(cached) $ECHO_C" >&6
7853 if test "$ac_cv_type_long" = yes; then
7854 # The cast to unsigned long works around a bug in the HP C Compiler
7855 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7856 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7857 # This bug is HP SR number 8606223364.
7858 if test "$cross_compiling" = yes; then
7859 # Depending upon the size, compute the lo and hi bounds.
7860 cat >conftest.$ac_ext <<_ACEOF
7861 #line $LINENO "configure"
7864 cat confdefs.h >>conftest.$ac_ext
7865 cat >>conftest.$ac_ext <<_ACEOF
7866 /* end confdefs.h. */
7867 $ac_includes_default
7871 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7878 rm -f conftest.$ac_objext
7879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7880 (eval $ac_compile) 2>&5
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); } &&
7884 { ac_try='test -s conftest.$ac_objext'
7885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); }; }; then
7892 cat >conftest.$ac_ext <<_ACEOF
7893 #line $LINENO "configure"
7896 cat confdefs.h >>conftest.$ac_ext
7897 cat >>conftest.$ac_ext <<_ACEOF
7898 /* end confdefs.h. */
7899 $ac_includes_default
7903 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7910 rm -f conftest.$ac_objext
7911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7912 (eval $ac_compile) 2>&5
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); } &&
7916 { ac_try='test -s conftest.$ac_objext'
7917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); }; }; then
7922 ac_hi=$ac_mid; break
7924 echo "$as_me: failed program was:" >&5
7925 sed 's/^/| /' conftest.$ac_ext >&5
7927 ac_lo=`expr $ac_mid + 1`
7928 if test $ac_lo -le $ac_mid; then
7932 ac_mid=`expr 2 '*' $ac_mid + 1`
7934 rm -f conftest.$ac_objext conftest.$ac_ext
7937 echo "$as_me: failed program was:" >&5
7938 sed 's/^/| /' conftest.$ac_ext >&5
7940 cat >conftest.$ac_ext <<_ACEOF
7941 #line $LINENO "configure"
7944 cat confdefs.h >>conftest.$ac_ext
7945 cat >>conftest.$ac_ext <<_ACEOF
7946 /* end confdefs.h. */
7947 $ac_includes_default
7951 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7958 rm -f conftest.$ac_objext
7959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7960 (eval $ac_compile) 2>&5
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); } &&
7964 { ac_try='test -s conftest.$ac_objext'
7965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); }; }; then
7972 cat >conftest.$ac_ext <<_ACEOF
7973 #line $LINENO "configure"
7976 cat confdefs.h >>conftest.$ac_ext
7977 cat >>conftest.$ac_ext <<_ACEOF
7978 /* end confdefs.h. */
7979 $ac_includes_default
7983 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7990 rm -f conftest.$ac_objext
7991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7992 (eval $ac_compile) 2>&5
7994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995 (exit $ac_status); } &&
7996 { ac_try='test -s conftest.$ac_objext'
7997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); }; }; then
8002 ac_lo=$ac_mid; break
8004 echo "$as_me: failed program was:" >&5
8005 sed 's/^/| /' conftest.$ac_ext >&5
8007 ac_hi=`expr '(' $ac_mid ')' - 1`
8008 if test $ac_mid -le $ac_hi; then
8012 ac_mid=`expr 2 '*' $ac_mid`
8014 rm -f conftest.$ac_objext conftest.$ac_ext
8017 echo "$as_me: failed program was:" >&5
8018 sed 's/^/| /' conftest.$ac_ext >&5
8022 rm -f conftest.$ac_objext conftest.$ac_ext
8024 rm -f conftest.$ac_objext conftest.$ac_ext
8025 # Binary search between lo and hi bounds.
8026 while test "x$ac_lo" != "x$ac_hi"; do
8027 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8028 cat >conftest.$ac_ext <<_ACEOF
8029 #line $LINENO "configure"
8032 cat confdefs.h >>conftest.$ac_ext
8033 cat >>conftest.$ac_ext <<_ACEOF
8034 /* end confdefs.h. */
8035 $ac_includes_default
8039 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
8046 rm -f conftest.$ac_objext
8047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8048 (eval $ac_compile) 2>&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); } &&
8052 { ac_try='test -s conftest.$ac_objext'
8053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); }; }; then
8060 echo "$as_me: failed program was:" >&5
8061 sed 's/^/| /' conftest.$ac_ext >&5
8063 ac_lo=`expr '(' $ac_mid ')' + 1`
8065 rm -f conftest.$ac_objext conftest.$ac_ext
8068 ?*) ac_cv_sizeof_long=$ac_lo;;
8069 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
8070 See \`config.log' for more details." >&5
8071 echo "$as_me: error: cannot compute sizeof (long), 77
8072 See \`config.log' for more details." >&2;}
8073 { (exit 1); exit 1; }; } ;;
8076 if test "$cross_compiling" = yes; then
8077 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8078 See \`config.log' for more details." >&5
8079 echo "$as_me: error: cannot run test program while cross compiling
8080 See \`config.log' for more details." >&2;}
8081 { (exit 1); exit 1; }; }
8083 cat >conftest.$ac_ext <<_ACEOF
8084 #line $LINENO "configure"
8087 cat confdefs.h >>conftest.$ac_ext
8088 cat >>conftest.$ac_ext <<_ACEOF
8089 /* end confdefs.h. */
8090 $ac_includes_default
8091 long longval () { return (long) (sizeof (long)); }
8092 unsigned long ulongval () { return (long) (sizeof (long)); }
8099 FILE *f = fopen ("conftest.val", "w");
8102 if (((long) (sizeof (long))) < 0)
8104 long i = longval ();
8105 if (i != ((long) (sizeof (long))))
8107 fprintf (f, "%ld\n", i);
8111 unsigned long i = ulongval ();
8112 if (i != ((long) (sizeof (long))))
8114 fprintf (f, "%lu\n", i);
8116 exit (ferror (f) || fclose (f) != 0);
8122 rm -f conftest$ac_exeext
8123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8124 (eval $ac_link) 2>&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); }; }; then
8133 ac_cv_sizeof_long=`cat conftest.val`
8135 echo "$as_me: program exited with status $ac_status" >&5
8136 echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8140 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
8141 See \`config.log' for more details." >&5
8142 echo "$as_me: error: cannot compute sizeof (long), 77
8143 See \`config.log' for more details." >&2;}
8144 { (exit 1); exit 1; }; }
8146 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8154 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8155 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
8156 cat >>confdefs.h <<_ACEOF
8157 #define SIZEOF_LONG $ac_cv_sizeof_long
8162 echo "$as_me:$LINENO: checking for pid_t" >&5
8163 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8164 if test "${ac_cv_type_pid_t+set}" = set; then
8165 echo $ECHO_N "(cached) $ECHO_C" >&6
8167 cat >conftest.$ac_ext <<_ACEOF
8168 #line $LINENO "configure"
8171 cat confdefs.h >>conftest.$ac_ext
8172 cat >>conftest.$ac_ext <<_ACEOF
8173 /* end confdefs.h. */
8174 $ac_includes_default
8186 rm -f conftest.$ac_objext
8187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8188 (eval $ac_compile) 2>&5
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); } &&
8192 { ac_try='test -s conftest.$ac_objext'
8193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); }; }; then
8198 ac_cv_type_pid_t=yes
8200 echo "$as_me: failed program was:" >&5
8201 sed 's/^/| /' conftest.$ac_ext >&5
8205 rm -f conftest.$ac_objext conftest.$ac_ext
8207 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8208 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8209 if test $ac_cv_type_pid_t = yes; then
8213 cat >>confdefs.h <<_ACEOF
8225 for ac_func in fgetpos memmove setegid srand48 strerror
8227 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8228 echo "$as_me:$LINENO: checking for $ac_func" >&5
8229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8230 if eval "test \"\${$as_ac_var+set}\" = set"; then
8231 echo $ECHO_N "(cached) $ECHO_C" >&6
8233 cat >conftest.$ac_ext <<_ACEOF
8234 #line $LINENO "configure"
8237 cat confdefs.h >>conftest.$ac_ext
8238 cat >>conftest.$ac_ext <<_ACEOF
8239 /* end confdefs.h. */
8240 /* System header to define __stub macros and hopefully few prototypes,
8241 which can conflict with char $ac_func (); below.
8242 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8243 <limits.h> exists even on freestanding compilers. */
8245 # include <limits.h>
8247 # include <assert.h>
8249 /* Override any gcc2 internal prototype to avoid an error. */
8254 /* We use char because int might match the return type of a gcc2
8255 builtin and then its argument prototype would still apply. */
8257 /* The GNU C library defines this for functions which it implements
8258 to always fail with ENOSYS. Some functions are actually named
8259 something starting with __ and the normal name is an alias. */
8260 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8263 char (*f) () = $ac_func;
8272 return f != $ac_func;
8277 rm -f conftest.$ac_objext conftest$ac_exeext
8278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8279 (eval $ac_link) 2>&5
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); } &&
8283 { ac_try='test -s conftest$ac_exeext'
8284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8288 (exit $ac_status); }; }; then
8289 eval "$as_ac_var=yes"
8291 echo "$as_me: failed program was:" >&5
8292 sed 's/^/| /' conftest.$ac_ext >&5
8294 eval "$as_ac_var=no"
8296 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8298 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8299 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8300 if test `eval echo '${'$as_ac_var'}'` = yes; then
8301 cat >>confdefs.h <<_ACEOF
8302 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8311 for ac_func in strcasecmp strdup
8313 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8314 echo "$as_me:$LINENO: checking for $ac_func" >&5
8315 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8316 if eval "test \"\${$as_ac_var+set}\" = set"; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
8319 cat >conftest.$ac_ext <<_ACEOF
8320 #line $LINENO "configure"
8323 cat confdefs.h >>conftest.$ac_ext
8324 cat >>conftest.$ac_ext <<_ACEOF
8325 /* end confdefs.h. */
8326 /* System header to define __stub macros and hopefully few prototypes,
8327 which can conflict with char $ac_func (); below.
8328 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8329 <limits.h> exists even on freestanding compilers. */
8331 # include <limits.h>
8333 # include <assert.h>
8335 /* Override any gcc2 internal prototype to avoid an error. */
8340 /* We use char because int might match the return type of a gcc2
8341 builtin and then its argument prototype would still apply. */
8343 /* The GNU C library defines this for functions which it implements
8344 to always fail with ENOSYS. Some functions are actually named
8345 something starting with __ and the normal name is an alias. */
8346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8349 char (*f) () = $ac_func;
8358 return f != $ac_func;
8363 rm -f conftest.$ac_objext conftest$ac_exeext
8364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8365 (eval $ac_link) 2>&5
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); } &&
8369 { ac_try='test -s conftest$ac_exeext'
8370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 (exit $ac_status); }; }; then
8375 eval "$as_ac_var=yes"
8377 echo "$as_me: failed program was:" >&5
8378 sed 's/^/| /' conftest.$ac_ext >&5
8380 eval "$as_ac_var=no"
8382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8384 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8385 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8386 if test `eval echo '${'$as_ac_var'}'` = yes; then
8387 cat >>confdefs.h <<_ACEOF
8388 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8392 LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
8398 echo "$as_me:$LINENO: checking for getopt" >&5
8399 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
8400 if test "${ac_cv_func_getopt+set}" = set; then
8401 echo $ECHO_N "(cached) $ECHO_C" >&6
8403 cat >conftest.$ac_ext <<_ACEOF
8404 #line $LINENO "configure"
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h. */
8410 /* System header to define __stub macros and hopefully few prototypes,
8411 which can conflict with char getopt (); below.
8412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8413 <limits.h> exists even on freestanding compilers. */
8415 # include <limits.h>
8417 # include <assert.h>
8419 /* Override any gcc2 internal prototype to avoid an error. */
8424 /* We use char because int might match the return type of a gcc2
8425 builtin and then its argument prototype would still apply. */
8427 /* The GNU C library defines this for functions which it implements
8428 to always fail with ENOSYS. Some functions are actually named
8429 something starting with __ and the normal name is an alias. */
8430 #if defined (__stub_getopt) || defined (__stub___getopt)
8433 char (*f) () = getopt;
8447 rm -f conftest.$ac_objext conftest$ac_exeext
8448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8449 (eval $ac_link) 2>&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); } &&
8453 { ac_try='test -s conftest$ac_exeext'
8454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); }; }; then
8459 ac_cv_func_getopt=yes
8461 echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.$ac_ext >&5
8464 ac_cv_func_getopt=no
8466 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8468 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
8469 echo "${ECHO_T}$ac_cv_func_getopt" >&6
8471 if test $ac_cv_func_getopt = yes; then
8473 for ac_header in getopt.h
8475 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8477 echo "$as_me:$LINENO: checking for $ac_header" >&5
8478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8480 echo $ECHO_N "(cached) $ECHO_C" >&6
8482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8483 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8485 # Is the header compilable?
8486 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8488 cat >conftest.$ac_ext <<_ACEOF
8489 #line $LINENO "configure"
8492 cat confdefs.h >>conftest.$ac_ext
8493 cat >>conftest.$ac_ext <<_ACEOF
8494 /* end confdefs.h. */
8495 $ac_includes_default
8496 #include <$ac_header>
8498 rm -f conftest.$ac_objext
8499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8500 (eval $ac_compile) 2>&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); } &&
8504 { ac_try='test -s conftest.$ac_objext'
8505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; }; then
8510 ac_header_compiler=yes
8512 echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8515 ac_header_compiler=no
8517 rm -f conftest.$ac_objext conftest.$ac_ext
8518 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8519 echo "${ECHO_T}$ac_header_compiler" >&6
8521 # Is the header present?
8522 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8524 cat >conftest.$ac_ext <<_ACEOF
8525 #line $LINENO "configure"
8528 cat confdefs.h >>conftest.$ac_ext
8529 cat >>conftest.$ac_ext <<_ACEOF
8530 /* end confdefs.h. */
8531 #include <$ac_header>
8533 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8536 grep -v '^ *+' conftest.er1 >conftest.err
8538 cat conftest.err >&5
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); } >/dev/null; then
8541 if test -s conftest.err; then
8542 ac_cpp_err=$ac_c_preproc_warn_flag
8549 if test -z "$ac_cpp_err"; then
8550 ac_header_preproc=yes
8552 echo "$as_me: failed program was:" >&5
8553 sed 's/^/| /' conftest.$ac_ext >&5
8555 ac_header_preproc=no
8557 rm -f conftest.err conftest.$ac_ext
8558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8559 echo "${ECHO_T}$ac_header_preproc" >&6
8561 # So? What about this header?
8562 case $ac_header_compiler:$ac_header_preproc in
8564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8570 ## ------------------------------------ ##
8571 ## Report this to bug-autoconf@gnu.org. ##
8572 ## ------------------------------------ ##
8575 sed "s/^/$as_me: WARNING: /" >&2
8578 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8580 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8581 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8586 ## ------------------------------------ ##
8587 ## Report this to bug-autoconf@gnu.org. ##
8588 ## ------------------------------------ ##
8591 sed "s/^/$as_me: WARNING: /" >&2
8594 echo "$as_me:$LINENO: checking for $ac_header" >&5
8595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8597 echo $ECHO_N "(cached) $ECHO_C" >&6
8599 eval "$as_ac_Header=$ac_header_preproc"
8601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8606 cat >>confdefs.h <<_ACEOF
8607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8619 for ac_func in snprintf
8621 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8622 echo "$as_me:$LINENO: checking for $ac_func" >&5
8623 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8624 if eval "test \"\${$as_ac_var+set}\" = set"; then
8625 echo $ECHO_N "(cached) $ECHO_C" >&6
8627 cat >conftest.$ac_ext <<_ACEOF
8628 #line $LINENO "configure"
8631 cat confdefs.h >>conftest.$ac_ext
8632 cat >>conftest.$ac_ext <<_ACEOF
8633 /* end confdefs.h. */
8634 /* System header to define __stub macros and hopefully few prototypes,
8635 which can conflict with char $ac_func (); below.
8636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8637 <limits.h> exists even on freestanding compilers. */
8639 # include <limits.h>
8641 # include <assert.h>
8643 /* Override any gcc2 internal prototype to avoid an error. */
8648 /* We use char because int might match the return type of a gcc2
8649 builtin and then its argument prototype would still apply. */
8651 /* The GNU C library defines this for functions which it implements
8652 to always fail with ENOSYS. Some functions are actually named
8653 something starting with __ and the normal name is an alias. */
8654 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8657 char (*f) () = $ac_func;
8666 return f != $ac_func;
8671 rm -f conftest.$ac_objext conftest$ac_exeext
8672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8673 (eval $ac_link) 2>&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); } &&
8677 { ac_try='test -s conftest$ac_exeext'
8678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); }; }; then
8683 eval "$as_ac_var=yes"
8685 echo "$as_me: failed program was:" >&5
8686 sed 's/^/| /' conftest.$ac_ext >&5
8688 eval "$as_ac_var=no"
8690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8692 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8693 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8694 if test `eval echo '${'$as_ac_var'}'` = yes; then
8695 cat >>confdefs.h <<_ACEOF
8696 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8700 mutt_cv_snprintf=yes
8705 for ac_func in vsnprintf
8707 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8708 echo "$as_me:$LINENO: checking for $ac_func" >&5
8709 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8710 if eval "test \"\${$as_ac_var+set}\" = set"; then
8711 echo $ECHO_N "(cached) $ECHO_C" >&6
8713 cat >conftest.$ac_ext <<_ACEOF
8714 #line $LINENO "configure"
8717 cat confdefs.h >>conftest.$ac_ext
8718 cat >>conftest.$ac_ext <<_ACEOF
8719 /* end confdefs.h. */
8720 /* System header to define __stub macros and hopefully few prototypes,
8721 which can conflict with char $ac_func (); below.
8722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8723 <limits.h> exists even on freestanding compilers. */
8725 # include <limits.h>
8727 # include <assert.h>
8729 /* Override any gcc2 internal prototype to avoid an error. */
8734 /* We use char because int might match the return type of a gcc2
8735 builtin and then its argument prototype would still apply. */
8737 /* The GNU C library defines this for functions which it implements
8738 to always fail with ENOSYS. Some functions are actually named
8739 something starting with __ and the normal name is an alias. */
8740 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8743 char (*f) () = $ac_func;
8752 return f != $ac_func;
8757 rm -f conftest.$ac_objext conftest$ac_exeext
8758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8759 (eval $ac_link) 2>&5
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); } &&
8763 { ac_try='test -s conftest$ac_exeext'
8764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); }; }; then
8769 eval "$as_ac_var=yes"
8771 echo "$as_me: failed program was:" >&5
8772 sed 's/^/| /' conftest.$ac_ext >&5
8774 eval "$as_ac_var=no"
8776 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8778 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8779 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8780 if test `eval echo '${'$as_ac_var'}'` = yes; then
8781 cat >>confdefs.h <<_ACEOF
8782 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8786 mutt_cv_snprintf=yes
8790 if test $mutt_cv_snprintf = yes; then
8791 LIBOBJS="$LIBOBJS snprintf.$ac_objext"
8795 for ac_func in ftruncate
8797 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8798 echo "$as_me:$LINENO: checking for $ac_func" >&5
8799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8800 if eval "test \"\${$as_ac_var+set}\" = set"; then
8801 echo $ECHO_N "(cached) $ECHO_C" >&6
8803 cat >conftest.$ac_ext <<_ACEOF
8804 #line $LINENO "configure"
8807 cat confdefs.h >>conftest.$ac_ext
8808 cat >>conftest.$ac_ext <<_ACEOF
8809 /* end confdefs.h. */
8810 /* System header to define __stub macros and hopefully few prototypes,
8811 which can conflict with char $ac_func (); below.
8812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8813 <limits.h> exists even on freestanding compilers. */
8815 # include <limits.h>
8817 # include <assert.h>
8819 /* Override any gcc2 internal prototype to avoid an error. */
8824 /* We use char because int might match the return type of a gcc2
8825 builtin and then its argument prototype would still apply. */
8827 /* The GNU C library defines this for functions which it implements
8828 to always fail with ENOSYS. Some functions are actually named
8829 something starting with __ and the normal name is an alias. */
8830 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8833 char (*f) () = $ac_func;
8842 return f != $ac_func;
8847 rm -f conftest.$ac_objext conftest$ac_exeext
8848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8849 (eval $ac_link) 2>&5
8851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852 (exit $ac_status); } &&
8853 { ac_try='test -s conftest$ac_exeext'
8854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); }; }; then
8859 eval "$as_ac_var=yes"
8861 echo "$as_me: failed program was:" >&5
8862 sed 's/^/| /' conftest.$ac_ext >&5
8864 eval "$as_ac_var=no"
8866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8868 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8869 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8870 if test `eval echo '${'$as_ac_var'}'` = yes; then
8871 cat >>confdefs.h <<_ACEOF
8872 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8877 echo "$as_me:$LINENO: checking for chsize in -lx" >&5
8878 echo $ECHO_N "checking for chsize in -lx... $ECHO_C" >&6
8879 if test "${ac_cv_lib_x_chsize+set}" = set; then
8880 echo $ECHO_N "(cached) $ECHO_C" >&6
8882 ac_check_lib_save_LIBS=$LIBS
8884 cat >conftest.$ac_ext <<_ACEOF
8885 #line $LINENO "configure"
8888 cat confdefs.h >>conftest.$ac_ext
8889 cat >>conftest.$ac_ext <<_ACEOF
8890 /* end confdefs.h. */
8892 /* Override any gcc2 internal prototype to avoid an error. */
8896 /* We use char because int might match the return type of a gcc2
8897 builtin and then its argument prototype would still apply. */
8907 rm -f conftest.$ac_objext conftest$ac_exeext
8908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8909 (eval $ac_link) 2>&5
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); } &&
8913 { ac_try='test -s conftest$ac_exeext'
8914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); }; }; then
8919 ac_cv_lib_x_chsize=yes
8921 echo "$as_me: failed program was:" >&5
8922 sed 's/^/| /' conftest.$ac_ext >&5
8924 ac_cv_lib_x_chsize=no
8926 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8927 LIBS=$ac_check_lib_save_LIBS
8929 echo "$as_me:$LINENO: result: $ac_cv_lib_x_chsize" >&5
8930 echo "${ECHO_T}$ac_cv_lib_x_chsize" >&6
8931 if test $ac_cv_lib_x_chsize = yes; then
8932 cat >>confdefs.h <<_ACEOF
8945 for ac_func in strftime
8947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8948 echo "$as_me:$LINENO: checking for $ac_func" >&5
8949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8950 if eval "test \"\${$as_ac_var+set}\" = set"; then
8951 echo $ECHO_N "(cached) $ECHO_C" >&6
8953 cat >conftest.$ac_ext <<_ACEOF
8954 #line $LINENO "configure"
8957 cat confdefs.h >>conftest.$ac_ext
8958 cat >>conftest.$ac_ext <<_ACEOF
8959 /* end confdefs.h. */
8960 /* System header to define __stub macros and hopefully few prototypes,
8961 which can conflict with char $ac_func (); below.
8962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8963 <limits.h> exists even on freestanding compilers. */
8965 # include <limits.h>
8967 # include <assert.h>
8969 /* Override any gcc2 internal prototype to avoid an error. */
8974 /* We use char because int might match the return type of a gcc2
8975 builtin and then its argument prototype would still apply. */
8977 /* The GNU C library defines this for functions which it implements
8978 to always fail with ENOSYS. Some functions are actually named
8979 something starting with __ and the normal name is an alias. */
8980 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8983 char (*f) () = $ac_func;
8992 return f != $ac_func;
8997 rm -f conftest.$ac_objext conftest$ac_exeext
8998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8999 (eval $ac_link) 2>&5
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); } &&
9003 { ac_try='test -s conftest$ac_exeext'
9004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); }; }; then
9009 eval "$as_ac_var=yes"
9011 echo "$as_me: failed program was:" >&5
9012 sed 's/^/| /' conftest.$ac_ext >&5
9014 eval "$as_ac_var=no"
9016 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9019 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9020 if test `eval echo '${'$as_ac_var'}'` = yes; then
9021 cat >>confdefs.h <<_ACEOF
9022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9027 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
9028 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
9029 if test "${ac_cv_lib_intl_strftime+set}" = set; then
9030 echo $ECHO_N "(cached) $ECHO_C" >&6
9032 ac_check_lib_save_LIBS=$LIBS
9034 cat >conftest.$ac_ext <<_ACEOF
9035 #line $LINENO "configure"
9038 cat confdefs.h >>conftest.$ac_ext
9039 cat >>conftest.$ac_ext <<_ACEOF
9040 /* end confdefs.h. */
9042 /* Override any gcc2 internal prototype to avoid an error. */
9046 /* We use char because int might match the return type of a gcc2
9047 builtin and then its argument prototype would still apply. */
9057 rm -f conftest.$ac_objext conftest$ac_exeext
9058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9059 (eval $ac_link) 2>&5
9061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); } &&
9063 { ac_try='test -s conftest$ac_exeext'
9064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068 (exit $ac_status); }; }; then
9069 ac_cv_lib_intl_strftime=yes
9071 echo "$as_me: failed program was:" >&5
9072 sed 's/^/| /' conftest.$ac_ext >&5
9074 ac_cv_lib_intl_strftime=no
9076 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9077 LIBS=$ac_check_lib_save_LIBS
9079 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
9080 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
9081 if test $ac_cv_lib_intl_strftime = yes; then
9082 cat >>confdefs.h <<_ACEOF
9083 #define HAVE_LIBINTL 1
9095 for ac_func in fchdir
9097 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9098 echo "$as_me:$LINENO: checking for $ac_func" >&5
9099 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9100 if eval "test \"\${$as_ac_var+set}\" = set"; then
9101 echo $ECHO_N "(cached) $ECHO_C" >&6
9103 cat >conftest.$ac_ext <<_ACEOF
9104 #line $LINENO "configure"
9107 cat confdefs.h >>conftest.$ac_ext
9108 cat >>conftest.$ac_ext <<_ACEOF
9109 /* end confdefs.h. */
9110 /* System header to define __stub macros and hopefully few prototypes,
9111 which can conflict with char $ac_func (); below.
9112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9113 <limits.h> exists even on freestanding compilers. */
9115 # include <limits.h>
9117 # include <assert.h>
9119 /* Override any gcc2 internal prototype to avoid an error. */
9124 /* We use char because int might match the return type of a gcc2
9125 builtin and then its argument prototype would still apply. */
9127 /* The GNU C library defines this for functions which it implements
9128 to always fail with ENOSYS. Some functions are actually named
9129 something starting with __ and the normal name is an alias. */
9130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9133 char (*f) () = $ac_func;
9142 return f != $ac_func;
9147 rm -f conftest.$ac_objext conftest$ac_exeext
9148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9149 (eval $ac_link) 2>&5
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); } &&
9153 { ac_try='test -s conftest$ac_exeext'
9154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); }; }; then
9159 eval "$as_ac_var=yes"
9161 echo "$as_me: failed program was:" >&5
9162 sed 's/^/| /' conftest.$ac_ext >&5
9164 eval "$as_ac_var=no"
9166 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9169 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9170 if test `eval echo '${'$as_ac_var'}'` = yes; then
9171 cat >>confdefs.h <<_ACEOF
9172 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9182 # Check whether --with-regex or --without-regex was given.
9183 if test "${with_regex+set}" = set; then
9184 withval="$with_regex"
9188 for ac_func in regcomp
9190 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9191 echo "$as_me:$LINENO: checking for $ac_func" >&5
9192 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9193 if eval "test \"\${$as_ac_var+set}\" = set"; then
9194 echo $ECHO_N "(cached) $ECHO_C" >&6
9196 cat >conftest.$ac_ext <<_ACEOF
9197 #line $LINENO "configure"
9200 cat confdefs.h >>conftest.$ac_ext
9201 cat >>conftest.$ac_ext <<_ACEOF
9202 /* end confdefs.h. */
9203 /* System header to define __stub macros and hopefully few prototypes,
9204 which can conflict with char $ac_func (); below.
9205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9206 <limits.h> exists even on freestanding compilers. */
9208 # include <limits.h>
9210 # include <assert.h>
9212 /* Override any gcc2 internal prototype to avoid an error. */
9217 /* We use char because int might match the return type of a gcc2
9218 builtin and then its argument prototype would still apply. */
9220 /* The GNU C library defines this for functions which it implements
9221 to always fail with ENOSYS. Some functions are actually named
9222 something starting with __ and the normal name is an alias. */
9223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9226 char (*f) () = $ac_func;
9235 return f != $ac_func;
9240 rm -f conftest.$ac_objext conftest$ac_exeext
9241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9242 (eval $ac_link) 2>&5
9244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245 (exit $ac_status); } &&
9246 { ac_try='test -s conftest$ac_exeext'
9247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); }; }; then
9252 eval "$as_ac_var=yes"
9254 echo "$as_me: failed program was:" >&5
9255 sed 's/^/| /' conftest.$ac_ext >&5
9257 eval "$as_ac_var=no"
9259 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9262 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9263 if test `eval echo '${'$as_ac_var'}'` = yes; then
9264 cat >>confdefs.h <<_ACEOF
9265 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9275 if test $mutt_cv_regex = no ; then
9276 echo "$as_me:$LINENO: checking whether your system's regexp library is completely broken" >&5
9277 echo $ECHO_N "checking whether your system's regexp library is completely broken... $ECHO_C" >&6
9278 if test "${mutt_cv_regex_broken+set}" = set; then
9279 echo $ECHO_N "(cached) $ECHO_C" >&6
9281 if test "$cross_compiling" = yes; then
9282 mutt_cv_regex_broken=yes
9284 cat >conftest.$ac_ext <<_ACEOF
9285 #line $LINENO "configure"
9288 cat confdefs.h >>conftest.$ac_ext
9289 cat >>conftest.$ac_ext <<_ACEOF
9290 /* end confdefs.h. */
9294 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); }
9296 rm -f conftest$ac_exeext
9297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9298 (eval $ac_link) 2>&5
9300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9301 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); }; }; then
9307 mutt_cv_regex_broken=no
9309 echo "$as_me: program exited with status $ac_status" >&5
9310 echo "$as_me: failed program was:" >&5
9311 sed 's/^/| /' conftest.$ac_ext >&5
9314 mutt_cv_regex_broken=yes
9316 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9319 echo "$as_me:$LINENO: result: $mutt_cv_regex_broken" >&5
9320 echo "${ECHO_T}$mutt_cv_regex_broken" >&6
9321 if test $mutt_cv_regex_broken = yes ; then
9322 echo "Using the included GNU regex instead." >&6
9327 if test $mutt_cv_regex = yes; then
9329 cat >>confdefs.h <<\_ACEOF
9330 #define USE_GNU_REGEX 1
9333 LIBOBJS="$LIBOBJS regex.$ac_objext"
9338 # Check whether --with-homespool or --without-homespool was given.
9339 if test "${with_homespool+set}" = set; then
9340 withval="$with_homespool"
9341 with_homespool=${withval}
9343 if test x$with_homespool != x; then
9344 if test $with_homespool = yes; then
9345 with_homespool=mailbox
9348 cat >>confdefs.h <<_ACEOF
9349 #define MAILPATH "$with_homespool"
9353 cat >>confdefs.h <<\_ACEOF
9358 cat >>confdefs.h <<\_ACEOF
9359 #define USE_DOTLOCK 1
9365 # Check whether --with-mailpath or --without-mailpath was given.
9366 if test "${with_mailpath+set}" = set; then
9367 withval="$with_mailpath"
9368 mutt_cv_mailpath=$withval
9370 echo "$as_me:$LINENO: checking where new mail is stored" >&5
9371 echo $ECHO_N "checking where new mail is stored... $ECHO_C" >&6
9372 if test "${mutt_cv_mailpath+set}" = set; then
9373 echo $ECHO_N "(cached) $ECHO_C" >&6
9376 if test -d /var/mail; then
9377 mutt_cv_mailpath=/var/mail
9378 elif test -d /var/spool/mail; then
9379 mutt_cv_mailpath=/var/spool/mail
9380 elif test -d /usr/spool/mail; then
9381 mutt_cv_mailpath=/usr/spool/mail
9382 elif test -d /usr/mail; then
9383 mutt_cv_mailpath=/usr/mail
9386 echo "$as_me:$LINENO: result: $mutt_cv_mailpath" >&5
9387 echo "${ECHO_T}$mutt_cv_mailpath" >&6
9390 if test "$mutt_cv_mailpath" = no; then
9391 { { echo "$as_me:$LINENO: error: \"Could not determine where new mail is stored.\"" >&5
9392 echo "$as_me: error: \"Could not determine where new mail is stored.\"" >&2;}
9393 { (exit 1); exit 1; }; }
9396 cat >>confdefs.h <<_ACEOF
9397 #define MAILPATH "$mutt_cv_mailpath"
9401 echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is world writable" >&5
9402 echo $ECHO_N "checking if $mutt_cv_mailpath is world writable... $ECHO_C" >&6
9403 if test "${mutt_cv_worldwrite+set}" = set; then
9404 echo $ECHO_N "(cached) $ECHO_C" >&6
9406 if test "$cross_compiling" = yes; then
9407 mutt_cv_worldwrite=no
9409 cat >conftest.$ac_ext <<_ACEOF
9410 #line $LINENO "configure"
9413 cat confdefs.h >>conftest.$ac_ext
9414 cat >>conftest.$ac_ext <<_ACEOF
9415 /* end confdefs.h. */
9416 #include <sys/types.h>
9417 #include <sys/stat.h>
9419 int main (int argc, char **argv)
9423 stat ("$mutt_cv_mailpath", &s);
9424 if (s.st_mode & S_IWOTH) exit (0);
9428 rm -f conftest$ac_exeext
9429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9430 (eval $ac_link) 2>&5
9432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9433 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); }; }; then
9439 mutt_cv_worldwrite=yes
9441 echo "$as_me: program exited with status $ac_status" >&5
9442 echo "$as_me: failed program was:" >&5
9443 sed 's/^/| /' conftest.$ac_ext >&5
9446 mutt_cv_worldwrite=no
9448 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9451 echo "$as_me:$LINENO: result: $mutt_cv_worldwrite" >&5
9452 echo "${ECHO_T}$mutt_cv_worldwrite" >&6
9455 if test $mutt_cv_worldwrite = yes; then
9457 cat >>confdefs.h <<\_ACEOF
9458 #define USE_DOTLOCK 1
9463 echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is group writable" >&5
9464 echo $ECHO_N "checking if $mutt_cv_mailpath is group writable... $ECHO_C" >&6
9465 if test "${mutt_cv_groupwrite+set}" = set; then
9466 echo $ECHO_N "(cached) $ECHO_C" >&6
9468 if test "$cross_compiling" = yes; then
9469 mutt_cv_groupwrite=no
9471 cat >conftest.$ac_ext <<_ACEOF
9472 #line $LINENO "configure"
9475 cat confdefs.h >>conftest.$ac_ext
9476 cat >>conftest.$ac_ext <<_ACEOF
9477 /* end confdefs.h. */
9478 #include <sys/types.h>
9479 #include <sys/stat.h>
9481 int main (int argc, char **argv)
9485 stat ("$mutt_cv_mailpath", &s);
9486 if (s.st_mode & S_IWGRP) exit (0);
9490 rm -f conftest$ac_exeext
9491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9492 (eval $ac_link) 2>&5
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9500 (exit $ac_status); }; }; then
9501 mutt_cv_groupwrite=yes
9503 echo "$as_me: program exited with status $ac_status" >&5
9504 echo "$as_me: failed program was:" >&5
9505 sed 's/^/| /' conftest.$ac_ext >&5
9508 mutt_cv_groupwrite=no
9510 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9513 echo "$as_me:$LINENO: result: $mutt_cv_groupwrite" >&5
9514 echo "${ECHO_T}$mutt_cv_groupwrite" >&6
9516 if test $mutt_cv_groupwrite = yes; then
9518 cat >>confdefs.h <<\_ACEOF
9519 #define USE_DOTLOCK 1
9523 cat >>confdefs.h <<\_ACEOF
9524 #define USE_SETGID 1
9532 # Check whether --enable-external_dotlock or --disable-external_dotlock was given.
9533 if test "${enable_external_dotlock+set}" = set; then
9534 enableval="$enable_external_dotlock"
9535 mutt_cv_external_dotlock="$enableval"
9538 if test "x$mutt_cv_setgid" = "xyes" || test "x$mutt_cv_fchdir" = "xno" \
9539 || test "x$mutt_cv_external_dotlock" = "xyes"
9542 cat >>confdefs.h <<\_ACEOF
9543 #define DL_STANDALONE 1
9546 DOTLOCK_TARGET="mutt_dotlock"
9548 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS dotlock.o"
9554 echo "$as_me:$LINENO: checking where to put the documentation" >&5
9555 echo $ECHO_N "checking where to put the documentation... $ECHO_C" >&6
9557 # Check whether --with-docdir or --without-docdir was given.
9558 if test "${with_docdir+set}" = set; then
9559 withval="$with_docdir"
9560 mutt_cv_docdir=$withval
9562 mutt_cv_docdir="$mutt_cv_prefix/doc/mutt"
9564 echo "$as_me:$LINENO: result: $mutt_cv_docdir" >&5
9565 echo "${ECHO_T}$mutt_cv_docdir" >&6
9567 docdir=$mutt_cv_docdir
9570 if test x$mutt_cv_setgid = xyes; then
9571 DOTLOCK_GROUP='mail'
9572 DOTLOCK_PERMISSION=2755
9575 DOTLOCK_PERMISSION=755
9581 # Check whether --with-domain or --without-domain was given.
9582 if test "${with_domain+set}" = set; then
9583 withval="$with_domain"
9584 if test $withval != yes; then
9586 cat >>confdefs.h <<_ACEOF
9587 #define DOMAIN "$withval"
9596 # Check whether --enable-pop or --disable-pop was given.
9597 if test "${enable_pop+set}" = set; then
9598 enableval="$enable_pop"
9599 if test x$enableval = xyes ; then
9601 cat >>confdefs.h <<\_ACEOF
9605 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pop.o pop_lib.o pop_auth.o"
9612 # Check whether --enable-imap or --disable-imap was given.
9613 if test "${enable_imap+set}" = set; then
9614 enableval="$enable_imap"
9615 if test x$enableval = xyes ; then
9617 cat >>confdefs.h <<\_ACEOF
9621 LIBIMAP="-Limap -limap"
9622 LIBIMAPDEPS="\$(top_srcdir)/imap/imap.h imap/libimap.a"
9631 if test x$need_imap = xyes; then
9633 BUILD_IMAP_FALSE='#'
9640 # Check whether --enable-nntp or --disable-nntp was given.
9641 if test "${enable_nntp+set}" = set; then
9642 enableval="$enable_nntp"
9643 if test x$enableval = xyes ; then
9644 cat >>confdefs.h <<\_ACEOF
9648 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS nntp.o newsrc.o"
9655 if test "$need_socket" = "yes"
9657 echo "$as_me:$LINENO: checking for socklen_t" >&5
9658 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
9659 cat >conftest.$ac_ext <<_ACEOF
9660 #line $LINENO "configure"
9663 cat confdefs.h >>conftest.$ac_ext
9664 cat >>conftest.$ac_ext <<_ACEOF
9665 /* end confdefs.h. */
9666 #include <sys/socket.h>
9669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9670 $EGREP "socklen_t" >/dev/null 2>&1; then
9671 echo "$as_me:$LINENO: result: yes" >&5
9672 echo "${ECHO_T}yes" >&6
9674 echo "$as_me:$LINENO: result: no" >&5
9675 echo "${ECHO_T}no" >&6
9677 cat >>confdefs.h <<\_ACEOF
9678 #define socklen_t int
9684 echo "$as_me:$LINENO: checking for gethostent" >&5
9685 echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
9686 if test "${ac_cv_func_gethostent+set}" = set; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9689 cat >conftest.$ac_ext <<_ACEOF
9690 #line $LINENO "configure"
9693 cat confdefs.h >>conftest.$ac_ext
9694 cat >>conftest.$ac_ext <<_ACEOF
9695 /* end confdefs.h. */
9696 /* System header to define __stub macros and hopefully few prototypes,
9697 which can conflict with char gethostent (); below.
9698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9699 <limits.h> exists even on freestanding compilers. */
9701 # include <limits.h>
9703 # include <assert.h>
9705 /* Override any gcc2 internal prototype to avoid an error. */
9710 /* We use char because int might match the return type of a gcc2
9711 builtin and then its argument prototype would still apply. */
9713 /* The GNU C library defines this for functions which it implements
9714 to always fail with ENOSYS. Some functions are actually named
9715 something starting with __ and the normal name is an alias. */
9716 #if defined (__stub_gethostent) || defined (__stub___gethostent)
9719 char (*f) () = gethostent;
9728 return f != gethostent;
9733 rm -f conftest.$ac_objext conftest$ac_exeext
9734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9735 (eval $ac_link) 2>&5
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); } &&
9739 { ac_try='test -s conftest$ac_exeext'
9740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); }; }; then
9745 ac_cv_func_gethostent=yes
9747 echo "$as_me: failed program was:" >&5
9748 sed 's/^/| /' conftest.$ac_ext >&5
9750 ac_cv_func_gethostent=no
9752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9754 echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5
9755 echo "${ECHO_T}$ac_cv_func_gethostent" >&6
9756 if test $ac_cv_func_gethostent = yes; then
9760 echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
9761 echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
9762 if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
9763 echo $ECHO_N "(cached) $ECHO_C" >&6
9765 ac_check_lib_save_LIBS=$LIBS
9767 cat >conftest.$ac_ext <<_ACEOF
9768 #line $LINENO "configure"
9771 cat confdefs.h >>conftest.$ac_ext
9772 cat >>conftest.$ac_ext <<_ACEOF
9773 /* end confdefs.h. */
9775 /* Override any gcc2 internal prototype to avoid an error. */
9779 /* We use char because int might match the return type of a gcc2
9780 builtin and then its argument prototype would still apply. */
9790 rm -f conftest.$ac_objext conftest$ac_exeext
9791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9792 (eval $ac_link) 2>&5
9794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795 (exit $ac_status); } &&
9796 { ac_try='test -s conftest$ac_exeext'
9797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); }; }; then
9802 ac_cv_lib_nsl_gethostent=yes
9804 echo "$as_me: failed program was:" >&5
9805 sed 's/^/| /' conftest.$ac_ext >&5
9807 ac_cv_lib_nsl_gethostent=no
9809 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9810 LIBS=$ac_check_lib_save_LIBS
9812 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
9813 echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
9814 if test $ac_cv_lib_nsl_gethostent = yes; then
9815 cat >>confdefs.h <<_ACEOF
9816 #define HAVE_LIBNSL 1
9825 echo "$as_me:$LINENO: checking for setsockopt" >&5
9826 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
9827 if test "${ac_cv_func_setsockopt+set}" = set; then
9828 echo $ECHO_N "(cached) $ECHO_C" >&6
9830 cat >conftest.$ac_ext <<_ACEOF
9831 #line $LINENO "configure"
9834 cat confdefs.h >>conftest.$ac_ext
9835 cat >>conftest.$ac_ext <<_ACEOF
9836 /* end confdefs.h. */
9837 /* System header to define __stub macros and hopefully few prototypes,
9838 which can conflict with char setsockopt (); below.
9839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9840 <limits.h> exists even on freestanding compilers. */
9842 # include <limits.h>
9844 # include <assert.h>
9846 /* Override any gcc2 internal prototype to avoid an error. */
9851 /* We use char because int might match the return type of a gcc2
9852 builtin and then its argument prototype would still apply. */
9854 /* The GNU C library defines this for functions which it implements
9855 to always fail with ENOSYS. Some functions are actually named
9856 something starting with __ and the normal name is an alias. */
9857 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
9860 char (*f) () = setsockopt;
9869 return f != setsockopt;
9874 rm -f conftest.$ac_objext conftest$ac_exeext
9875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9876 (eval $ac_link) 2>&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); } &&
9880 { ac_try='test -s conftest$ac_exeext'
9881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); }; }; then
9886 ac_cv_func_setsockopt=yes
9888 echo "$as_me: failed program was:" >&5
9889 sed 's/^/| /' conftest.$ac_ext >&5
9891 ac_cv_func_setsockopt=no
9893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9895 echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
9896 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
9897 if test $ac_cv_func_setsockopt = yes; then
9901 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
9902 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
9903 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
9904 echo $ECHO_N "(cached) $ECHO_C" >&6
9906 ac_check_lib_save_LIBS=$LIBS
9907 LIBS="-lsocket $LIBS"
9908 cat >conftest.$ac_ext <<_ACEOF
9909 #line $LINENO "configure"
9912 cat confdefs.h >>conftest.$ac_ext
9913 cat >>conftest.$ac_ext <<_ACEOF
9914 /* end confdefs.h. */
9916 /* Override any gcc2 internal prototype to avoid an error. */
9920 /* We use char because int might match the return type of a gcc2
9921 builtin and then its argument prototype would still apply. */
9931 rm -f conftest.$ac_objext conftest$ac_exeext
9932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9933 (eval $ac_link) 2>&5
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); } &&
9937 { ac_try='test -s conftest$ac_exeext'
9938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9942 (exit $ac_status); }; }; then
9943 ac_cv_lib_socket_setsockopt=yes
9945 echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9948 ac_cv_lib_socket_setsockopt=no
9950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9951 LIBS=$ac_check_lib_save_LIBS
9953 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
9954 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
9955 if test $ac_cv_lib_socket_setsockopt = yes; then
9956 cat >>confdefs.h <<_ACEOF
9957 #define HAVE_LIBSOCKET 1
9960 LIBS="-lsocket $LIBS"
9967 for ac_func in getaddrinfo
9969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9970 echo "$as_me:$LINENO: checking for $ac_func" >&5
9971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9972 if eval "test \"\${$as_ac_var+set}\" = set"; then
9973 echo $ECHO_N "(cached) $ECHO_C" >&6
9975 cat >conftest.$ac_ext <<_ACEOF
9976 #line $LINENO "configure"
9979 cat confdefs.h >>conftest.$ac_ext
9980 cat >>conftest.$ac_ext <<_ACEOF
9981 /* end confdefs.h. */
9982 /* System header to define __stub macros and hopefully few prototypes,
9983 which can conflict with char $ac_func (); below.
9984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9985 <limits.h> exists even on freestanding compilers. */
9987 # include <limits.h>
9989 # include <assert.h>
9991 /* Override any gcc2 internal prototype to avoid an error. */
9996 /* We use char because int might match the return type of a gcc2
9997 builtin and then its argument prototype would still apply. */
9999 /* The GNU C library defines this for functions which it implements
10000 to always fail with ENOSYS. Some functions are actually named
10001 something starting with __ and the normal name is an alias. */
10002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10005 char (*f) () = $ac_func;
10014 return f != $ac_func;
10019 rm -f conftest.$ac_objext conftest$ac_exeext
10020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10021 (eval $ac_link) 2>&5
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); } &&
10025 { ac_try='test -s conftest$ac_exeext'
10026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10027 (eval $ac_try) 2>&5
10029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10030 (exit $ac_status); }; }; then
10031 eval "$as_ac_var=yes"
10033 echo "$as_me: failed program was:" >&5
10034 sed 's/^/| /' conftest.$ac_ext >&5
10036 eval "$as_ac_var=no"
10038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10041 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10042 if test `eval echo '${'$as_ac_var'}'` = yes; then
10043 cat >>confdefs.h <<_ACEOF
10044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10051 cat >>confdefs.h <<\_ACEOF
10052 #define USE_SOCKET 1
10055 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS account.o mutt_socket.o mutt_tunnel.o"
10060 # Check whether --with-gss or --without-gss was given.
10061 if test "${with_gss+set}" = set; then
10062 withval="$with_gss"
10063 gss_prefix="$withval"
10067 if test "$gss_prefix" != "no"
10069 if test "$need_imap" = "yes"
10072 GSSAPI_PREFIX=$gss_prefix
10074 saved_CPPFLAGS="$CPPFLAGS"
10075 saved_LDFLAGS="$LDFLAGS"
10077 if test "$GSSAPI_PREFIX" != "yes"
10079 krb5_path="$GSSAPI_PREFIX/bin"
10083 # Extract the first word of "krb5-config", so it can be a program name with args.
10084 set dummy krb5-config; ac_word=$2
10085 echo "$as_me:$LINENO: checking for $ac_word" >&5
10086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10087 if test "${ac_cv_path_KRB5CFGPATH+set}" = set; then
10088 echo $ECHO_N "(cached) $ECHO_C" >&6
10090 case $KRB5CFGPATH in
10092 ac_cv_path_KRB5CFGPATH="$KRB5CFGPATH" # Let the user override the test with a path.
10095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10096 for as_dir in $krb5_path
10099 test -z "$as_dir" && as_dir=.
10100 for ac_exec_ext in '' $ac_executable_extensions; do
10101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10102 ac_cv_path_KRB5CFGPATH="$as_dir/$ac_word$ac_exec_ext"
10103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10109 test -z "$ac_cv_path_KRB5CFGPATH" && ac_cv_path_KRB5CFGPATH="none"
10113 KRB5CFGPATH=$ac_cv_path_KRB5CFGPATH
10115 if test -n "$KRB5CFGPATH"; then
10116 echo "$as_me:$LINENO: result: $KRB5CFGPATH" >&5
10117 echo "${ECHO_T}$KRB5CFGPATH" >&6
10119 echo "$as_me:$LINENO: result: no" >&5
10120 echo "${ECHO_T}no" >&6
10123 if test "$KRB5CFGPATH" != "none"
10125 GSSAPI_CFLAGS="$CPPFLAGS `$KRB5CFGPATH --cflags gssapi`"
10126 GSSAPI_LIBS="$MUTTLIBS `$KRB5CFGPATH --libs gssapi`"
10127 case "`$KRB5CFGPATH --version`" in
10128 "Kerberos 5 "*) GSSAPI_IMPL="MIT";;
10129 ?eimdal*) GSSAPI_IMPL="Heimdal";;
10130 *) GSSAPI_IMPL="Unknown";;
10133 if test "$GSSAPI_PREFIX" != "yes"
10135 GSSAPI_CFLAGS="-I$GSSAPI_PREFIX/include"
10136 GSSAPI_LDFLAGS="-L$GSSAPI_PREFIX/lib"
10137 CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
10138 LDFLAGS="$LDFLAGS $GSSAPI_LDFLAGS"
10141 echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
10142 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6
10143 if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
10144 echo $ECHO_N "(cached) $ECHO_C" >&6
10146 ac_check_lib_save_LIBS=$LIBS
10147 LIBS="-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err $LIBS"
10148 cat >conftest.$ac_ext <<_ACEOF
10149 #line $LINENO "configure"
10152 cat confdefs.h >>conftest.$ac_ext
10153 cat >>conftest.$ac_ext <<_ACEOF
10154 /* end confdefs.h. */
10156 /* Override any gcc2 internal prototype to avoid an error. */
10160 /* We use char because int might match the return type of a gcc2
10161 builtin and then its argument prototype would still apply. */
10162 char gss_init_sec_context ();
10166 gss_init_sec_context ();
10171 rm -f conftest.$ac_objext conftest$ac_exeext
10172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10173 (eval $ac_link) 2>&5
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176 (exit $ac_status); } &&
10177 { ac_try='test -s conftest$ac_exeext'
10178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10179 (eval $ac_try) 2>&5
10181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10182 (exit $ac_status); }; }; then
10183 ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
10185 echo "$as_me: failed program was:" >&5
10186 sed 's/^/| /' conftest.$ac_ext >&5
10188 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
10190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10191 LIBS=$ac_check_lib_save_LIBS
10193 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
10194 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6
10195 if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
10198 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err"
10203 if test "$GSSAPI_IMPL" = "none"
10205 echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
10206 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6
10207 if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
10208 echo $ECHO_N "(cached) $ECHO_C" >&6
10210 ac_check_lib_save_LIBS=$LIBS
10211 LIBS="-lgssapi -lkrb5 -ldes -lasn1 -lroken -lcrypt -lcom_err $LIBS"
10212 cat >conftest.$ac_ext <<_ACEOF
10213 #line $LINENO "configure"
10216 cat confdefs.h >>conftest.$ac_ext
10217 cat >>conftest.$ac_ext <<_ACEOF
10218 /* end confdefs.h. */
10220 /* Override any gcc2 internal prototype to avoid an error. */
10224 /* We use char because int might match the return type of a gcc2
10225 builtin and then its argument prototype would still apply. */
10226 char gss_init_sec_context ();
10230 gss_init_sec_context ();
10235 rm -f conftest.$ac_objext conftest$ac_exeext
10236 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10237 (eval $ac_link) 2>&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } &&
10241 { ac_try='test -s conftest$ac_exeext'
10242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10243 (eval $ac_try) 2>&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); }; }; then
10247 ac_cv_lib_gssapi_gss_init_sec_context=yes
10249 echo "$as_me: failed program was:" >&5
10250 sed 's/^/| /' conftest.$ac_ext >&5
10252 ac_cv_lib_gssapi_gss_init_sec_context=no
10254 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10255 LIBS=$ac_check_lib_save_LIBS
10257 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
10258 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6
10259 if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
10261 GSSAPI_IMPL="Heimdal"
10262 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi -lkrb5 -ldes -lasn1 -lroken"
10263 GSSAPI_LIBS="$GSSAPI_LIBS -lcrypt -lcom_err"
10269 if test "$GSSAPI_IMPL" = "none"
10271 echo "$as_me:$LINENO: checking for g_order_init in -lgssapi_krb5" >&5
10272 echo $ECHO_N "checking for g_order_init in -lgssapi_krb5... $ECHO_C" >&6
10273 if test "${ac_cv_lib_gssapi_krb5_g_order_init+set}" = set; then
10274 echo $ECHO_N "(cached) $ECHO_C" >&6
10276 ac_check_lib_save_LIBS=$LIBS
10277 LIBS="-lgssapi_krb5 -lkrb5 -lcrypto -lcom_err $LIBS"
10278 cat >conftest.$ac_ext <<_ACEOF
10279 #line $LINENO "configure"
10282 cat confdefs.h >>conftest.$ac_ext
10283 cat >>conftest.$ac_ext <<_ACEOF
10284 /* end confdefs.h. */
10286 /* Override any gcc2 internal prototype to avoid an error. */
10290 /* We use char because int might match the return type of a gcc2
10291 builtin and then its argument prototype would still apply. */
10292 char g_order_init ();
10301 rm -f conftest.$ac_objext conftest$ac_exeext
10302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10303 (eval $ac_link) 2>&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); } &&
10307 { ac_try='test -s conftest$ac_exeext'
10308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10309 (eval $ac_try) 2>&5
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); }; }; then
10313 ac_cv_lib_gssapi_krb5_g_order_init=yes
10315 echo "$as_me: failed program was:" >&5
10316 sed 's/^/| /' conftest.$ac_ext >&5
10318 ac_cv_lib_gssapi_krb5_g_order_init=no
10320 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10321 LIBS=$ac_check_lib_save_LIBS
10323 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_g_order_init" >&5
10324 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_g_order_init" >&6
10325 if test $ac_cv_lib_gssapi_krb5_g_order_init = yes; then
10327 GSSAPI_IMPL="OldMIT",
10328 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err"
10335 CPPFLAGS="$saved_CPPFLAGS"
10336 LDFLAGS="$saved_LDFLAGS"
10339 echo "$as_me:$LINENO: checking GSSAPI implementation" >&5
10340 echo $ECHO_N "checking GSSAPI implementation... $ECHO_C" >&6
10341 echo "$as_me:$LINENO: result: $GSSAPI_IMPL" >&5
10342 echo "${ECHO_T}$GSSAPI_IMPL" >&6
10343 if test "$GSSAPI_IMPL" = "none"
10345 cat >confcache <<\_ACEOF
10346 # This file is a shell script that caches the results of configure
10347 # tests run on this system so they can be shared between configure
10348 # scripts and configure runs, see configure's option --config-cache.
10349 # It is not useful on other systems. If it contains results you don't
10350 # want to keep, you may remove or edit it.
10352 # config.status only pays attention to the cache file if you give it
10353 # the --recheck option to rerun configure.
10355 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10356 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10357 # following values.
10361 # The following way of writing the cache mishandles newlines in values,
10362 # but we know of no workaround that is simple, portable, and efficient.
10363 # So, don't put newlines in cache variables' values.
10364 # Ultrix sh set writes to stderr and can't be redirected directly,
10365 # and sets the high bit in the cache file unless we assign to the vars.
10368 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10370 # `set' does not quote correctly, so add quotes (double-quote
10371 # substitution turns \\\\ into \\, and sed turns \\ into \).
10374 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10377 # `set' quotes correctly as required by POSIX, so do not add quotes.
10379 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10386 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10388 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10390 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10391 if test -w $cache_file; then
10392 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10393 cat confcache >$cache_file
10395 echo "not updating unwritable cache $cache_file"
10399 echo "$as_me:$LINENO: result: GSSAPI libraries not found" >&5
10400 echo "${ECHO_T}GSSAPI libraries not found" >&6
10402 if test "$GSSAPI_IMPL" = "Heimdal"
10405 cat >>confdefs.h <<\_ACEOF
10406 #define HAVE_HEIMDAL 1
10410 CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
10411 MUTTLIBS="$MUTTLIBS $GSSAPI_LIBS"
10413 cat >>confdefs.h <<\_ACEOF
10419 { echo "$as_me:$LINENO: WARNING: GSS was requested but IMAP is not enabled" >&5
10420 echo "$as_me: WARNING: GSS was requested but IMAP is not enabled" >&2;}
10425 if test x$need_gss = xyes; then
10436 # Check whether --with-ssl or --without-ssl was given.
10437 if test "${with_ssl+set}" = set; then
10438 withval="$with_ssl"
10439 if test "$with_ssl" != "no"
10441 if test "$need_socket" != "yes"; then
10442 { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
10443 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
10444 { (exit 1); exit 1; }; }
10447 if test "$with_ssl" != "yes"
10449 LDFLAGS="$LDFLAGS -L$withval/lib"
10450 CPPFLAGS="$CPPFLAGS -I$withval/include"
10455 echo "$as_me:$LINENO: checking for X509_new in -lcrypto" >&5
10456 echo $ECHO_N "checking for X509_new in -lcrypto... $ECHO_C" >&6
10457 if test "${ac_cv_lib_crypto_X509_new+set}" = set; then
10458 echo $ECHO_N "(cached) $ECHO_C" >&6
10460 ac_check_lib_save_LIBS=$LIBS
10461 LIBS="-lcrypto $LIBS"
10462 cat >conftest.$ac_ext <<_ACEOF
10463 #line $LINENO "configure"
10466 cat confdefs.h >>conftest.$ac_ext
10467 cat >>conftest.$ac_ext <<_ACEOF
10468 /* end confdefs.h. */
10470 /* Override any gcc2 internal prototype to avoid an error. */
10474 /* We use char because int might match the return type of a gcc2
10475 builtin and then its argument prototype would still apply. */
10485 rm -f conftest.$ac_objext conftest$ac_exeext
10486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10487 (eval $ac_link) 2>&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } &&
10491 { ac_try='test -s conftest$ac_exeext'
10492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10493 (eval $ac_try) 2>&5
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); }; }; then
10497 ac_cv_lib_crypto_X509_new=yes
10499 echo "$as_me: failed program was:" >&5
10500 sed 's/^/| /' conftest.$ac_ext >&5
10502 ac_cv_lib_crypto_X509_new=no
10504 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10505 LIBS=$ac_check_lib_save_LIBS
10507 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_X509_new" >&5
10508 echo "${ECHO_T}$ac_cv_lib_crypto_X509_new" >&6
10509 if test $ac_cv_lib_crypto_X509_new = yes; then
10510 cat >>confdefs.h <<_ACEOF
10511 #define HAVE_LIBCRYPTO 1
10514 LIBS="-lcrypto $LIBS"
10517 { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
10518 echo "$as_me: error: Unable to find SSL library" >&2;}
10519 { (exit 1); exit 1; }; }
10523 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
10524 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
10525 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
10526 echo $ECHO_N "(cached) $ECHO_C" >&6
10528 ac_check_lib_save_LIBS=$LIBS
10529 LIBS="-lssl -lcrypto $LIBS"
10530 cat >conftest.$ac_ext <<_ACEOF
10531 #line $LINENO "configure"
10534 cat confdefs.h >>conftest.$ac_ext
10535 cat >>conftest.$ac_ext <<_ACEOF
10536 /* end confdefs.h. */
10538 /* Override any gcc2 internal prototype to avoid an error. */
10542 /* We use char because int might match the return type of a gcc2
10543 builtin and then its argument prototype would still apply. */
10553 rm -f conftest.$ac_objext conftest$ac_exeext
10554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10555 (eval $ac_link) 2>&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); } &&
10559 { ac_try='test -s conftest$ac_exeext'
10560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10561 (eval $ac_try) 2>&5
10563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564 (exit $ac_status); }; }; then
10565 ac_cv_lib_ssl_SSL_new=yes
10567 echo "$as_me: failed program was:" >&5
10568 sed 's/^/| /' conftest.$ac_ext >&5
10570 ac_cv_lib_ssl_SSL_new=no
10572 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10573 LIBS=$ac_check_lib_save_LIBS
10575 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
10576 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6
10577 if test $ac_cv_lib_ssl_SSL_new = yes; then
10578 cat >>confdefs.h <<_ACEOF
10579 #define HAVE_LIBSSL 1
10585 { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
10586 echo "$as_me: error: Unable to find SSL library" >&2;}
10587 { (exit 1); exit 1; }; }
10593 for ac_func in RAND_status RAND_egd
10595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10596 echo "$as_me:$LINENO: checking for $ac_func" >&5
10597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10598 if eval "test \"\${$as_ac_var+set}\" = set"; then
10599 echo $ECHO_N "(cached) $ECHO_C" >&6
10601 cat >conftest.$ac_ext <<_ACEOF
10602 #line $LINENO "configure"
10605 cat confdefs.h >>conftest.$ac_ext
10606 cat >>conftest.$ac_ext <<_ACEOF
10607 /* end confdefs.h. */
10608 /* System header to define __stub macros and hopefully few prototypes,
10609 which can conflict with char $ac_func (); below.
10610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10611 <limits.h> exists even on freestanding compilers. */
10613 # include <limits.h>
10615 # include <assert.h>
10617 /* Override any gcc2 internal prototype to avoid an error. */
10622 /* We use char because int might match the return type of a gcc2
10623 builtin and then its argument prototype would still apply. */
10625 /* The GNU C library defines this for functions which it implements
10626 to always fail with ENOSYS. Some functions are actually named
10627 something starting with __ and the normal name is an alias. */
10628 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10631 char (*f) () = $ac_func;
10640 return f != $ac_func;
10645 rm -f conftest.$ac_objext conftest$ac_exeext
10646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10647 (eval $ac_link) 2>&5
10649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650 (exit $ac_status); } &&
10651 { ac_try='test -s conftest$ac_exeext'
10652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10653 (eval $ac_try) 2>&5
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); }; }; then
10657 eval "$as_ac_var=yes"
10659 echo "$as_me: failed program was:" >&5
10660 sed 's/^/| /' conftest.$ac_ext >&5
10662 eval "$as_ac_var=no"
10664 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10667 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10668 if test `eval echo '${'$as_ac_var'}'` = yes; then
10669 cat >>confdefs.h <<_ACEOF
10670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10678 cat >>confdefs.h <<\_ACEOF
10683 MUTTLIBS="$MUTTLIBS -lssl -lcrypto"
10684 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl.o"
10692 if test x$need_ssl = xyes; then
10702 # Check whether --with-gnutls or --without-gnutls was given.
10703 if test "${with_gnutls+set}" = set; then
10704 withval="$with_gnutls"
10705 if test "$need_ssl" = "yes"
10707 { { echo "$as_me:$LINENO: error: In order to compile in GNU TLS support, you must first disable SSL support" >&5
10708 echo "$as_me: error: In order to compile in GNU TLS support, you must first disable SSL support" >&2;}
10709 { (exit 1); exit 1; }; }
10711 if test "$with_gnutls" != "no"
10713 if test "$need_socket" != "yes"; then
10714 { { echo "$as_me:$LINENO: error: GNU TLS support is only useful with POP or IMAP support" >&5
10715 echo "$as_me: error: GNU TLS support is only useful with POP or IMAP support" >&2;}
10716 { (exit 1); exit 1; }; }
10718 if test "$with_gnutls" != "yes"
10720 LDFLAGS="$LDFLAGS -L$withval/lib"
10721 CPPFLAGS="$CPPFLAGS -I$withval/include"
10723 #saved_LIBS="$LIBS"
10726 echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
10727 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6
10728 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
10729 echo $ECHO_N "(cached) $ECHO_C" >&6
10731 ac_check_lib_save_LIBS=$LIBS
10732 LIBS="-lgnutls $LIBS"
10733 cat >conftest.$ac_ext <<_ACEOF
10734 #line $LINENO "configure"
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h. */
10741 /* Override any gcc2 internal prototype to avoid an error. */
10745 /* We use char because int might match the return type of a gcc2
10746 builtin and then its argument prototype would still apply. */
10747 char gnutls_init ();
10756 rm -f conftest.$ac_objext conftest$ac_exeext
10757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10758 (eval $ac_link) 2>&5
10760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761 (exit $ac_status); } &&
10762 { ac_try='test -s conftest$ac_exeext'
10763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10764 (eval $ac_try) 2>&5
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); }; }; then
10768 ac_cv_lib_gnutls_gnutls_init=yes
10770 echo "$as_me: failed program was:" >&5
10771 sed 's/^/| /' conftest.$ac_ext >&5
10773 ac_cv_lib_gnutls_gnutls_init=no
10775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10776 LIBS=$ac_check_lib_save_LIBS
10778 echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
10779 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6
10780 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
10781 cat >>confdefs.h <<_ACEOF
10782 #define HAVE_LIBGNUTLS 1
10785 LIBS="-lgnutls $LIBS"
10788 { { echo "$as_me:$LINENO: error: Unable to find GNU TLS library" >&5
10789 echo "$as_me: error: Unable to find GNU TLS library" >&2;}
10790 { (exit 1); exit 1; }; }
10795 cat >>confdefs.h <<\_ACEOF
10796 #define USE_GNUTLS 1
10799 #LIBS="$saved_LIBS"
10800 #MUTTLIBS="$MUTTLIBS -lgnutls"
10801 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_gnutls.o"
10808 if test x$need_gnutls = xyes; then
10810 USE_GNUTLS_FALSE='#'
10812 USE_GNUTLS_TRUE='#'
10818 # Check whether --with-nss or --without-nss was given.
10819 if test "${with_nss+set}" = set; then
10820 withval="$with_nss"
10821 if test "$with_nss" != no
10823 if test "$need_socket" != "yes"; then
10824 { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
10825 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
10826 { (exit 1); exit 1; }; }
10829 if test "$with_nss" != "yes"
10831 LDFLAGS="$LDFLAGS -L$withval/lib"
10832 CPPFLAGS="$CPPFLAGS -I$withval/include -I$withval/public/security"
10836 cat >>confdefs.h <<\_ACEOF
10840 MUTTLIBS="$MUTTLIBS -lssl -lnss -lcertdb -lcerthi -lcryptohi"
10841 MUTTLIBS="$MUTTLIBS -lpk11wrap -lsoftoken -lsecutil -ldbm -lplds4 -lplc4 -lfreebl"
10842 MUTTLIBS="$MUTTLIBS -lnspr4"
10844 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_nss.o"
10851 # Check whether --with-sasl or --without-sasl was given.
10852 if test "${with_sasl+set}" = set; then
10853 withval="$with_sasl"
10855 if test "$need_socket" != "yes"
10857 { { echo "$as_me:$LINENO: error: SASL support is only useful with POP or IMAP support" >&5
10858 echo "$as_me: error: SASL support is only useful with POP or IMAP support" >&2;}
10859 { (exit 1); exit 1; }; }
10862 if test "$with_sasl" != "no"
10864 if test "$with_sasl" != "yes"
10866 CPPFLAGS="$CPPFLAGS -I$with_sasl/include"
10867 LDFLAGS="$LDFLAGS -L$with_sasl/lib"
10873 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
10874 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
10875 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
10876 echo $ECHO_N "(cached) $ECHO_C" >&6
10878 ac_check_lib_save_LIBS=$LIBS
10879 LIBS="-lsasl $LIBS"
10880 cat >conftest.$ac_ext <<_ACEOF
10881 #line $LINENO "configure"
10884 cat confdefs.h >>conftest.$ac_ext
10885 cat >>conftest.$ac_ext <<_ACEOF
10886 /* end confdefs.h. */
10888 /* Override any gcc2 internal prototype to avoid an error. */
10892 /* We use char because int might match the return type of a gcc2
10893 builtin and then its argument prototype would still apply. */
10894 char sasl_client_init ();
10898 sasl_client_init ();
10903 rm -f conftest.$ac_objext conftest$ac_exeext
10904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10905 (eval $ac_link) 2>&5
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); } &&
10909 { ac_try='test -s conftest$ac_exeext'
10910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10911 (eval $ac_try) 2>&5
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); }; }; then
10915 ac_cv_lib_sasl_sasl_client_init=yes
10917 echo "$as_me: failed program was:" >&5
10918 sed 's/^/| /' conftest.$ac_ext >&5
10920 ac_cv_lib_sasl_sasl_client_init=no
10922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10923 LIBS=$ac_check_lib_save_LIBS
10925 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
10926 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
10927 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
10928 cat >>confdefs.h <<_ACEOF
10929 #define HAVE_LIBSASL 1
10932 LIBS="-lsasl $LIBS"
10935 { { echo "$as_me:$LINENO: error: could not find libsasl" >&5
10936 echo "$as_me: error: could not find libsasl" >&2;}
10937 { (exit 1); exit 1; }; }
10941 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
10942 MUTTLIBS="$MUTTLIBS -lsasl"
10945 cat >>confdefs.h <<\_ACEOF
10955 if test x$need_sasl = xyes; then
10965 # Check whether --with-sasl2 or --without-sasl2 was given.
10966 if test "${with_sasl2+set}" = set; then
10967 withval="$with_sasl2"
10969 if test "$need_socket" != "yes"
10971 { { echo "$as_me:$LINENO: error: SASL support is only useful with POP or IMAP support" >&5
10972 echo "$as_me: error: SASL support is only useful with POP or IMAP support" >&2;}
10973 { (exit 1); exit 1; }; }
10976 if test "$with_sasl2" != "no"
10978 if test "$with_sasl2" != "yes"
10980 CPPFLAGS="$CPPFLAGS -I$with_sasl2/include"
10981 LDFLAGS="$LDFLAGS -L$with_sasl2/lib"
10987 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
10988 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
10989 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
10990 echo $ECHO_N "(cached) $ECHO_C" >&6
10992 ac_check_lib_save_LIBS=$LIBS
10993 LIBS="-lsasl2 $LIBS"
10994 cat >conftest.$ac_ext <<_ACEOF
10995 #line $LINENO "configure"
10998 cat confdefs.h >>conftest.$ac_ext
10999 cat >>conftest.$ac_ext <<_ACEOF
11000 /* end confdefs.h. */
11002 /* Override any gcc2 internal prototype to avoid an error. */
11006 /* We use char because int might match the return type of a gcc2
11007 builtin and then its argument prototype would still apply. */
11008 char sasl_client_init ();
11012 sasl_client_init ();
11017 rm -f conftest.$ac_objext conftest$ac_exeext
11018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11019 (eval $ac_link) 2>&5
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); } &&
11023 { ac_try='test -s conftest$ac_exeext'
11024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11025 (eval $ac_try) 2>&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; }; then
11029 ac_cv_lib_sasl2_sasl_client_init=yes
11031 echo "$as_me: failed program was:" >&5
11032 sed 's/^/| /' conftest.$ac_ext >&5
11034 ac_cv_lib_sasl2_sasl_client_init=no
11036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11037 LIBS=$ac_check_lib_save_LIBS
11039 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
11040 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
11041 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
11042 cat >>confdefs.h <<_ACEOF
11043 #define HAVE_LIBSASL2 1
11046 LIBS="-lsasl2 $LIBS"
11049 { { echo "$as_me:$LINENO: error: could not find libsasl" >&5
11050 echo "$as_me: error: could not find libsasl" >&2;}
11051 { (exit 1); exit 1; }; }
11055 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
11056 MUTTLIBS="$MUTTLIBS -lsasl2"
11059 cat >>confdefs.h <<\_ACEOF
11064 cat >>confdefs.h <<\_ACEOF
11065 #define USE_SASL2 1
11074 if test x$need_sasl = xyes; then
11084 # Check whether --with-idn or --without-idn was given.
11085 if test "${with_idn+set}" = set; then
11086 withval="$with_idn"
11088 if test "$with_idn" != "no" ; then
11089 if test "$with_idn" != "yes" ; then
11090 CPPFLAGS="$CPPFLAGS -I$with_idn/include"
11091 LDFLAGS="$LDFLAGS -L$with_idn/lib"
11098 if test "x$with_idn" != "xno"; then
11100 echo "$as_me:$LINENO: checking for stringprep_check_version in -lidn" >&5
11101 echo $ECHO_N "checking for stringprep_check_version in -lidn... $ECHO_C" >&6
11102 if test "${ac_cv_lib_idn_stringprep_check_version+set}" = set; then
11103 echo $ECHO_N "(cached) $ECHO_C" >&6
11105 ac_check_lib_save_LIBS=$LIBS
11107 cat >conftest.$ac_ext <<_ACEOF
11108 #line $LINENO "configure"
11111 cat confdefs.h >>conftest.$ac_ext
11112 cat >>conftest.$ac_ext <<_ACEOF
11113 /* end confdefs.h. */
11115 /* Override any gcc2 internal prototype to avoid an error. */
11119 /* We use char because int might match the return type of a gcc2
11120 builtin and then its argument prototype would still apply. */
11121 char stringprep_check_version ();
11125 stringprep_check_version ();
11130 rm -f conftest.$ac_objext conftest$ac_exeext
11131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11132 (eval $ac_link) 2>&5
11134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11135 (exit $ac_status); } &&
11136 { ac_try='test -s conftest$ac_exeext'
11137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11138 (eval $ac_try) 2>&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); }; }; then
11142 ac_cv_lib_idn_stringprep_check_version=yes
11144 echo "$as_me: failed program was:" >&5
11145 sed 's/^/| /' conftest.$ac_ext >&5
11147 ac_cv_lib_idn_stringprep_check_version=no
11149 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11150 LIBS=$ac_check_lib_save_LIBS
11152 echo "$as_me:$LINENO: result: $ac_cv_lib_idn_stringprep_check_version" >&5
11153 echo "${ECHO_T}$ac_cv_lib_idn_stringprep_check_version" >&6
11154 if test $ac_cv_lib_idn_stringprep_check_version = yes; then
11155 cat >>confdefs.h <<_ACEOF
11156 #define HAVE_LIBIDN 1
11165 for ac_func in idna_to_unicode_utf8_from_utf8 idna_to_unicode_8z8z
11167 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11168 echo "$as_me:$LINENO: checking for $ac_func" >&5
11169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11170 if eval "test \"\${$as_ac_var+set}\" = set"; then
11171 echo $ECHO_N "(cached) $ECHO_C" >&6
11173 cat >conftest.$ac_ext <<_ACEOF
11174 #line $LINENO "configure"
11177 cat confdefs.h >>conftest.$ac_ext
11178 cat >>conftest.$ac_ext <<_ACEOF
11179 /* end confdefs.h. */
11180 /* System header to define __stub macros and hopefully few prototypes,
11181 which can conflict with char $ac_func (); below.
11182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11183 <limits.h> exists even on freestanding compilers. */
11185 # include <limits.h>
11187 # include <assert.h>
11189 /* Override any gcc2 internal prototype to avoid an error. */
11194 /* We use char because int might match the return type of a gcc2
11195 builtin and then its argument prototype would still apply. */
11197 /* The GNU C library defines this for functions which it implements
11198 to always fail with ENOSYS. Some functions are actually named
11199 something starting with __ and the normal name is an alias. */
11200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11203 char (*f) () = $ac_func;
11212 return f != $ac_func;
11217 rm -f conftest.$ac_objext conftest$ac_exeext
11218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11219 (eval $ac_link) 2>&5
11221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222 (exit $ac_status); } &&
11223 { ac_try='test -s conftest$ac_exeext'
11224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11225 (eval $ac_try) 2>&5
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); }; }; then
11229 eval "$as_ac_var=yes"
11231 echo "$as_me: failed program was:" >&5
11232 sed 's/^/| /' conftest.$ac_ext >&5
11234 eval "$as_ac_var=no"
11236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11238 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11239 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11240 if test `eval echo '${'$as_ac_var'}'` = yes; then
11241 cat >>confdefs.h <<_ACEOF
11242 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11250 for ac_func in idna_to_ascii_from_utf8 idna_to_ascii_8z
11252 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11253 echo "$as_me:$LINENO: checking for $ac_func" >&5
11254 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11255 if eval "test \"\${$as_ac_var+set}\" = set"; then
11256 echo $ECHO_N "(cached) $ECHO_C" >&6
11258 cat >conftest.$ac_ext <<_ACEOF
11259 #line $LINENO "configure"
11262 cat confdefs.h >>conftest.$ac_ext
11263 cat >>conftest.$ac_ext <<_ACEOF
11264 /* end confdefs.h. */
11265 /* System header to define __stub macros and hopefully few prototypes,
11266 which can conflict with char $ac_func (); below.
11267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11268 <limits.h> exists even on freestanding compilers. */
11270 # include <limits.h>
11272 # include <assert.h>
11274 /* Override any gcc2 internal prototype to avoid an error. */
11279 /* We use char because int might match the return type of a gcc2
11280 builtin and then its argument prototype would still apply. */
11282 /* The GNU C library defines this for functions which it implements
11283 to always fail with ENOSYS. Some functions are actually named
11284 something starting with __ and the normal name is an alias. */
11285 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11288 char (*f) () = $ac_func;
11297 return f != $ac_func;
11302 rm -f conftest.$ac_objext conftest$ac_exeext
11303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11304 (eval $ac_link) 2>&5
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); } &&
11308 { ac_try='test -s conftest$ac_exeext'
11309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11310 (eval $ac_try) 2>&5
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); }; }; then
11314 eval "$as_ac_var=yes"
11316 echo "$as_me: failed program was:" >&5
11317 sed 's/^/| /' conftest.$ac_ext >&5
11319 eval "$as_ac_var=no"
11321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11324 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11325 if test `eval echo '${'$as_ac_var'}'` = yes; then
11326 cat >>confdefs.h <<_ACEOF
11327 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11335 for ac_func in idna_to_ascii_lz idna_to_ascii_from_locale
11337 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11338 echo "$as_me:$LINENO: checking for $ac_func" >&5
11339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11340 if eval "test \"\${$as_ac_var+set}\" = set"; then
11341 echo $ECHO_N "(cached) $ECHO_C" >&6
11343 cat >conftest.$ac_ext <<_ACEOF
11344 #line $LINENO "configure"
11347 cat confdefs.h >>conftest.$ac_ext
11348 cat >>conftest.$ac_ext <<_ACEOF
11349 /* end confdefs.h. */
11350 /* System header to define __stub macros and hopefully few prototypes,
11351 which can conflict with char $ac_func (); below.
11352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11353 <limits.h> exists even on freestanding compilers. */
11355 # include <limits.h>
11357 # include <assert.h>
11359 /* Override any gcc2 internal prototype to avoid an error. */
11364 /* We use char because int might match the return type of a gcc2
11365 builtin and then its argument prototype would still apply. */
11367 /* The GNU C library defines this for functions which it implements
11368 to always fail with ENOSYS. Some functions are actually named
11369 something starting with __ and the normal name is an alias. */
11370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11373 char (*f) () = $ac_func;
11382 return f != $ac_func;
11387 rm -f conftest.$ac_objext conftest$ac_exeext
11388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11389 (eval $ac_link) 2>&5
11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); } &&
11393 { ac_try='test -s conftest$ac_exeext'
11394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11395 (eval $ac_try) 2>&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); }; }; then
11399 eval "$as_ac_var=yes"
11401 echo "$as_me: failed program was:" >&5
11402 sed 's/^/| /' conftest.$ac_ext >&5
11404 eval "$as_ac_var=no"
11406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11408 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11409 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11410 if test `eval echo '${'$as_ac_var'}'` = yes; then
11411 cat >>confdefs.h <<_ACEOF
11412 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11421 # Check whether --enable-debug or --disable-debug was given.
11422 if test "${enable_debug+set}" = set; then
11423 enableval="$enable_debug"
11424 if test x$enableval = xyes ; then
11426 cat >>confdefs.h <<\_ACEOF
11434 # Check whether --enable-flock or --disable-flock was given.
11435 if test "${enable_flock+set}" = set; then
11436 enableval="$enable_flock"
11437 if test $enableval = yes; then
11439 cat >>confdefs.h <<\_ACEOF
11440 #define USE_FLOCK 1
11447 # Check whether --enable-fcntl or --disable-fcntl was given.
11448 if test "${enable_fcntl+set}" = set; then
11449 enableval="$enable_fcntl"
11450 if test $enableval = no; then mutt_cv_fcntl=no; fi
11453 if test $mutt_cv_fcntl = yes; then
11455 cat >>confdefs.h <<\_ACEOF
11456 #define USE_FCNTL 1
11461 mutt_cv_warnings=yes
11462 # Check whether --enable-warnings or --disable-warnings was given.
11463 if test "${enable_warnings+set}" = set; then
11464 enableval="$enable_warnings"
11465 if test $enableval = no; then
11466 mutt_cv_warnings=no
11470 if test x$GCC = xyes -a $mutt_cv_warnings = yes; then
11471 CFLAGS="-Wall -pedantic $CFLAGS"
11474 # Check whether --enable-nfs-fix or --disable-nfs-fix was given.
11475 if test "${enable_nfs_fix+set}" = set; then
11476 enableval="$enable_nfs_fix"
11477 if test x$enableval = xyes; then
11479 cat >>confdefs.h <<\_ACEOF
11480 #define NFS_ATTRIBUTE_HACK 1
11486 # Check whether --enable-buffy-size or --disable-buffy-size was given.
11487 if test "${enable_buffy_size+set}" = set; then
11488 enableval="$enable_buffy_size"
11489 if test x$enableval = xyes; then
11491 cat >>confdefs.h <<\_ACEOF
11492 #define BUFFY_SIZE 1
11498 # Check whether --enable-mailtool or --disable-mailtool was given.
11499 if test "${enable_mailtool+set}" = set; then
11500 enableval="$enable_mailtool"
11501 if test x$enableval = xyes; then
11503 cat >>confdefs.h <<\_ACEOF
11504 #define SUN_ATTACHMENT 1
11510 # Check whether --enable-compressed or --disable-compressed was given.
11511 if test "${enable_compressed+set}" = set; then
11512 enableval="$enable_compressed"
11513 if test x$enableval = xyes; then
11514 cat >>confdefs.h <<\_ACEOF
11515 #define USE_COMPRESSED 1
11521 # Check whether --enable-locales-fix or --disable-locales-fix was given.
11522 if test "${enable_locales_fix+set}" = set; then
11523 enableval="$enable_locales_fix"
11524 if test x$enableval = xyes; then
11526 cat >>confdefs.h <<\_ACEOF
11527 #define LOCALES_HACK 1
11534 # Check whether --with-exec-shell or --without-exec-shell was given.
11535 if test "${with_exec_shell+set}" = set; then
11536 withval="$with_exec_shell"
11537 if test $withval != yes; then
11539 cat >>confdefs.h <<_ACEOF
11540 #define EXECSHELL "$withval"
11544 cat >>confdefs.h <<_ACEOF
11545 #define EXECSHELL "/bin/sh"
11550 cat >>confdefs.h <<_ACEOF
11551 #define EXECSHELL "/bin/sh"
11556 # Check whether --enable-exact-address or --disable-exact-address was given.
11557 if test "${enable_exact_address+set}" = set; then
11558 enableval="$enable_exact_address"
11559 if test $enableval = yes; then
11561 cat >>confdefs.h <<\_ACEOF
11562 #define EXACT_ADDRESS 1
11569 # Check whether --enable-hcache or --disable-hcache was given.
11570 if test "${enable_hcache+set}" = set; then
11571 enableval="$enable_hcache"
11572 if test x$enableval = xyes; then
11574 cat >>confdefs.h <<\_ACEOF
11575 #define USE_HCACHE 1
11579 OLDCPPFLAGS="$CPPFLAGS"
11585 # Check whether --with-gdbm or --without-gdbm was given.
11586 if test "${with_gdbm+set}" = set; then
11587 withval="$with_gdbm"
11588 ac_prefer_gdbm=$withval
11590 if test x$ac_prefer_gdbm != xno; then
11591 CPPFLAGS="$OLDCPPFLAGS"
11592 LIBS="$OLDLIBS -lgdbm";
11593 echo "$as_me:$LINENO: checking for gdbm_open" >&5
11594 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
11595 if test "${ac_cv_gdbmopen+set}" = set; then
11596 echo $ECHO_N "(cached) $ECHO_C" >&6
11600 cat >conftest.$ac_ext <<_ACEOF
11601 #line $LINENO "configure"
11604 cat confdefs.h >>conftest.$ac_ext
11605 cat >>conftest.$ac_ext <<_ACEOF
11606 /* end confdefs.h. */
11611 gdbm_open(0,0,0,0,0);
11616 rm -f conftest.$ac_objext conftest$ac_exeext
11617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11618 (eval $ac_link) 2>&5
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); } &&
11622 { ac_try='test -s conftest$ac_exeext'
11623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11624 (eval $ac_try) 2>&5
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); }; }; then
11630 echo "$as_me: failed program was:" >&5
11631 sed 's/^/| /' conftest.$ac_ext >&5
11634 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11637 echo "$as_me:$LINENO: result: $ac_cv_gdbmopen" >&5
11638 echo "${ECHO_T}$ac_cv_gdbmopen" >&6
11643 # Check whether --with-bdb or --without-bdb was given.
11644 if test "${with_bdb+set}" = set; then
11645 withval="$with_bdb"
11646 ac_bdb_prefix=$withval
11648 if test x$ac_bdb_prefix != xno -a x$ac_cv_gdbmopen != xyes; then
11649 test x$ac_bdb_prefix = xyes && ac_bdb_prefix="$mutt_cv_prefix /opt/csw/bdb4 /opt /usr/local /usr"
11650 for d in $ac_bdb_prefix; do
11651 bdbpfx="$bdbpfx $d"
11652 for v in BerkeleyDB.4.3 BerkeleyDB.4.2 BerkeleyDB.4.1; do
11653 bdbpfx="$bdbpfx $d/$v"
11656 BDB_VERSIONS="db-4 db4 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db ''"
11657 echo "$as_me:$LINENO: checking for BerkeleyDB > 4.0" >&5
11658 echo $ECHO_N "checking for BerkeleyDB > 4.0... $ECHO_C" >&6
11659 for d in $bdbpfx; do
11662 for v in / $BDB_VERSIONS; do
11663 if test -r "$d/include/$v/db.h"; then
11664 BDB_INCLUDE_DIR="$d/include/$v"
11665 if test -d "$d/lib/$v"; then
11666 BDB_LIB_DIR="$d/lib/$v"
11667 for l in `echo $BDB_VERSIONS`; do
11668 CPPFLAGS="-I$BDB_INCLUDE_DIR $OLDCPPFLAGS"
11669 LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$l"
11670 cat >conftest.$ac_ext <<_ACEOF
11671 #line $LINENO "configure"
11674 cat confdefs.h >>conftest.$ac_ext
11675 cat >>conftest.$ac_ext <<_ACEOF
11676 /* end confdefs.h. */
11678 #include <stdlib.h>
11686 db->open(db,NULL,NULL,NULL,0,0,0);
11692 rm -f conftest.$ac_objext conftest$ac_exeext
11693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11694 (eval $ac_link) 2>&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); } &&
11698 { ac_try='test -s conftest$ac_exeext'
11699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11700 (eval $ac_try) 2>&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); }; }; then
11710 echo "$as_me: failed program was:" >&5
11711 sed 's/^/| /' conftest.$ac_ext >&5
11714 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11716 test x$ac_dbcreate = xyes && break
11720 test x$BDB_LIB != x && break
11722 if test x$ac_cv_dbcreate = xyes; then
11723 echo "$as_me:$LINENO: result: yes" >&5
11724 echo "${ECHO_T}yes" >&6
11726 echo "$as_me:$LINENO: result: no" >&5
11727 echo "${ECHO_T}no" >&6
11731 if test x$ac_cv_gdbmopen = xyes; then
11732 CPPFLAGS="$OLDCPPFLAGS"
11733 LIBS="$OLDLIBS -lgdbm";
11735 cat >>confdefs.h <<\_ACEOF
11736 #define HAVE_GDBM 1
11739 elif test x$ac_cv_dbcreate = xyes; then
11740 CPPFLAGS="-I$BDB_INCLUDE_DIR $OLDCPPFLAGS"
11741 LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$BDB_LIB"
11743 cat >>confdefs.h <<\_ACEOF
11748 { { echo "$as_me:$LINENO: error: You need Sleepycat DB4 or GDBM for --enable-hcache" >&5
11749 echo "$as_me: error: You need Sleepycat DB4 or GDBM for --enable-hcache" >&2;}
11750 { (exit 1); exit 1; }; }
11755 if test "$need_md5" = "yes"
11757 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS md5c.o"
11766 # Check whether --enable-iconv or --disable-iconv was given.
11767 if test "${enable_iconv+set}" = set; then
11768 enableval="$enable_iconv"
11769 if test x$enableval = xno ; then
11770 am_cv_func_iconv=no
11775 echo "$as_me:$LINENO: checking for off_t" >&5
11776 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11777 if test "${ac_cv_type_off_t+set}" = set; then
11778 echo $ECHO_N "(cached) $ECHO_C" >&6
11780 cat >conftest.$ac_ext <<_ACEOF
11781 #line $LINENO "configure"
11784 cat confdefs.h >>conftest.$ac_ext
11785 cat >>conftest.$ac_ext <<_ACEOF
11786 /* end confdefs.h. */
11787 $ac_includes_default
11793 if (sizeof (off_t))
11799 rm -f conftest.$ac_objext
11800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11801 (eval $ac_compile) 2>&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); } &&
11805 { ac_try='test -s conftest.$ac_objext'
11806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11807 (eval $ac_try) 2>&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); }; }; then
11811 ac_cv_type_off_t=yes
11813 echo "$as_me: failed program was:" >&5
11814 sed 's/^/| /' conftest.$ac_ext >&5
11816 ac_cv_type_off_t=no
11818 rm -f conftest.$ac_objext conftest.$ac_ext
11820 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11821 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11822 if test $ac_cv_type_off_t = yes; then
11826 cat >>confdefs.h <<_ACEOF
11832 echo "$as_me:$LINENO: checking for size_t" >&5
11833 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11834 if test "${ac_cv_type_size_t+set}" = set; then
11835 echo $ECHO_N "(cached) $ECHO_C" >&6
11837 cat >conftest.$ac_ext <<_ACEOF
11838 #line $LINENO "configure"
11841 cat confdefs.h >>conftest.$ac_ext
11842 cat >>conftest.$ac_ext <<_ACEOF
11843 /* end confdefs.h. */
11844 $ac_includes_default
11850 if (sizeof (size_t))
11856 rm -f conftest.$ac_objext
11857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11858 (eval $ac_compile) 2>&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } &&
11862 { ac_try='test -s conftest.$ac_objext'
11863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11864 (eval $ac_try) 2>&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); }; }; then
11868 ac_cv_type_size_t=yes
11870 echo "$as_me: failed program was:" >&5
11871 sed 's/^/| /' conftest.$ac_ext >&5
11873 ac_cv_type_size_t=no
11875 rm -f conftest.$ac_objext conftest.$ac_ext
11877 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11878 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11879 if test $ac_cv_type_size_t = yes; then
11883 cat >>confdefs.h <<_ACEOF
11884 #define size_t unsigned
11889 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11890 # for constant arguments. Useless!
11891 echo "$as_me:$LINENO: checking for working alloca.h" >&5
11892 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11893 if test "${ac_cv_working_alloca_h+set}" = set; then
11894 echo $ECHO_N "(cached) $ECHO_C" >&6
11896 cat >conftest.$ac_ext <<_ACEOF
11897 #line $LINENO "configure"
11900 cat confdefs.h >>conftest.$ac_ext
11901 cat >>conftest.$ac_ext <<_ACEOF
11902 /* end confdefs.h. */
11903 #include <alloca.h>
11907 char *p = (char *) alloca (2 * sizeof (int));
11912 rm -f conftest.$ac_objext conftest$ac_exeext
11913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11914 (eval $ac_link) 2>&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); } &&
11918 { ac_try='test -s conftest$ac_exeext'
11919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920 (eval $ac_try) 2>&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; }; then
11924 ac_cv_working_alloca_h=yes
11926 echo "$as_me: failed program was:" >&5
11927 sed 's/^/| /' conftest.$ac_ext >&5
11929 ac_cv_working_alloca_h=no
11931 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11933 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11934 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11935 if test $ac_cv_working_alloca_h = yes; then
11937 cat >>confdefs.h <<\_ACEOF
11938 #define HAVE_ALLOCA_H 1
11943 echo "$as_me:$LINENO: checking for alloca" >&5
11944 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11945 if test "${ac_cv_func_alloca_works+set}" = set; then
11946 echo $ECHO_N "(cached) $ECHO_C" >&6
11948 cat >conftest.$ac_ext <<_ACEOF
11949 #line $LINENO "configure"
11952 cat confdefs.h >>conftest.$ac_ext
11953 cat >>conftest.$ac_ext <<_ACEOF
11954 /* end confdefs.h. */
11956 # define alloca __builtin_alloca
11959 # include <malloc.h>
11960 # define alloca _alloca
11963 # include <alloca.h>
11968 # ifndef alloca /* predefined by HP cc +Olibcalls */
11979 char *p = (char *) alloca (1);
11984 rm -f conftest.$ac_objext conftest$ac_exeext
11985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11986 (eval $ac_link) 2>&5
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); } &&
11990 { ac_try='test -s conftest$ac_exeext'
11991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11992 (eval $ac_try) 2>&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); }; }; then
11996 ac_cv_func_alloca_works=yes
11998 echo "$as_me: failed program was:" >&5
11999 sed 's/^/| /' conftest.$ac_ext >&5
12001 ac_cv_func_alloca_works=no
12003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12005 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
12006 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
12008 if test $ac_cv_func_alloca_works = yes; then
12010 cat >>confdefs.h <<\_ACEOF
12011 #define HAVE_ALLOCA 1
12015 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
12016 # that cause trouble. Some versions do not even contain alloca or
12017 # contain a buggy version. If you still want to use their alloca,
12018 # use ar to extract alloca.o from them instead of compiling alloca.c.
12020 ALLOCA=alloca.$ac_objext
12022 cat >>confdefs.h <<\_ACEOF
12027 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
12028 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
12029 if test "${ac_cv_os_cray+set}" = set; then
12030 echo $ECHO_N "(cached) $ECHO_C" >&6
12032 cat >conftest.$ac_ext <<_ACEOF
12033 #line $LINENO "configure"
12036 cat confdefs.h >>conftest.$ac_ext
12037 cat >>conftest.$ac_ext <<_ACEOF
12038 /* end confdefs.h. */
12039 #if defined(CRAY) && ! defined(CRAY2)
12046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12047 $EGREP "webecray" >/dev/null 2>&1; then
12055 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
12056 echo "${ECHO_T}$ac_cv_os_cray" >&6
12057 if test $ac_cv_os_cray = yes; then
12058 for ac_func in _getb67 GETB67 getb67; do
12059 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12060 echo "$as_me:$LINENO: checking for $ac_func" >&5
12061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12062 if eval "test \"\${$as_ac_var+set}\" = set"; then
12063 echo $ECHO_N "(cached) $ECHO_C" >&6
12065 cat >conftest.$ac_ext <<_ACEOF
12066 #line $LINENO "configure"
12069 cat confdefs.h >>conftest.$ac_ext
12070 cat >>conftest.$ac_ext <<_ACEOF
12071 /* end confdefs.h. */
12072 /* System header to define __stub macros and hopefully few prototypes,
12073 which can conflict with char $ac_func (); below.
12074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12075 <limits.h> exists even on freestanding compilers. */
12077 # include <limits.h>
12079 # include <assert.h>
12081 /* Override any gcc2 internal prototype to avoid an error. */
12086 /* We use char because int might match the return type of a gcc2
12087 builtin and then its argument prototype would still apply. */
12089 /* The GNU C library defines this for functions which it implements
12090 to always fail with ENOSYS. Some functions are actually named
12091 something starting with __ and the normal name is an alias. */
12092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12095 char (*f) () = $ac_func;
12104 return f != $ac_func;
12109 rm -f conftest.$ac_objext conftest$ac_exeext
12110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12111 (eval $ac_link) 2>&5
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); } &&
12115 { ac_try='test -s conftest$ac_exeext'
12116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12117 (eval $ac_try) 2>&5
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); }; }; then
12121 eval "$as_ac_var=yes"
12123 echo "$as_me: failed program was:" >&5
12124 sed 's/^/| /' conftest.$ac_ext >&5
12126 eval "$as_ac_var=no"
12128 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12130 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12131 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12132 if test `eval echo '${'$as_ac_var'}'` = yes; then
12134 cat >>confdefs.h <<_ACEOF
12135 #define CRAY_STACKSEG_END $ac_func
12144 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
12145 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
12146 if test "${ac_cv_c_stack_direction+set}" = set; then
12147 echo $ECHO_N "(cached) $ECHO_C" >&6
12149 if test "$cross_compiling" = yes; then
12150 ac_cv_c_stack_direction=0
12152 cat >conftest.$ac_ext <<_ACEOF
12153 #line $LINENO "configure"
12156 cat confdefs.h >>conftest.$ac_ext
12157 cat >>conftest.$ac_ext <<_ACEOF
12158 /* end confdefs.h. */
12160 find_stack_direction ()
12162 static char *addr = 0;
12167 return find_stack_direction ();
12170 return (&dummy > addr) ? 1 : -1;
12176 exit (find_stack_direction () < 0);
12179 rm -f conftest$ac_exeext
12180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12181 (eval $ac_link) 2>&5
12183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12186 (eval $ac_try) 2>&5
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); }; }; then
12190 ac_cv_c_stack_direction=1
12192 echo "$as_me: program exited with status $ac_status" >&5
12193 echo "$as_me: failed program was:" >&5
12194 sed 's/^/| /' conftest.$ac_ext >&5
12196 ( exit $ac_status )
12197 ac_cv_c_stack_direction=-1
12199 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12202 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12203 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12205 cat >>confdefs.h <<_ACEOF
12206 #define STACK_DIRECTION $ac_cv_c_stack_direction
12214 for ac_header in stdlib.h unistd.h
12216 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12218 echo "$as_me:$LINENO: checking for $ac_header" >&5
12219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12221 echo $ECHO_N "(cached) $ECHO_C" >&6
12223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12224 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12226 # Is the header compilable?
12227 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12228 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12229 cat >conftest.$ac_ext <<_ACEOF
12230 #line $LINENO "configure"
12233 cat confdefs.h >>conftest.$ac_ext
12234 cat >>conftest.$ac_ext <<_ACEOF
12235 /* end confdefs.h. */
12236 $ac_includes_default
12237 #include <$ac_header>
12239 rm -f conftest.$ac_objext
12240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12241 (eval $ac_compile) 2>&5
12243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12244 (exit $ac_status); } &&
12245 { ac_try='test -s conftest.$ac_objext'
12246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12247 (eval $ac_try) 2>&5
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); }; }; then
12251 ac_header_compiler=yes
12253 echo "$as_me: failed program was:" >&5
12254 sed 's/^/| /' conftest.$ac_ext >&5
12256 ac_header_compiler=no
12258 rm -f conftest.$ac_objext conftest.$ac_ext
12259 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12260 echo "${ECHO_T}$ac_header_compiler" >&6
12262 # Is the header present?
12263 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12265 cat >conftest.$ac_ext <<_ACEOF
12266 #line $LINENO "configure"
12269 cat confdefs.h >>conftest.$ac_ext
12270 cat >>conftest.$ac_ext <<_ACEOF
12271 /* end confdefs.h. */
12272 #include <$ac_header>
12274 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12275 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12277 grep -v '^ *+' conftest.er1 >conftest.err
12279 cat conftest.err >&5
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); } >/dev/null; then
12282 if test -s conftest.err; then
12283 ac_cpp_err=$ac_c_preproc_warn_flag
12290 if test -z "$ac_cpp_err"; then
12291 ac_header_preproc=yes
12293 echo "$as_me: failed program was:" >&5
12294 sed 's/^/| /' conftest.$ac_ext >&5
12296 ac_header_preproc=no
12298 rm -f conftest.err conftest.$ac_ext
12299 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12300 echo "${ECHO_T}$ac_header_preproc" >&6
12302 # So? What about this header?
12303 case $ac_header_compiler:$ac_header_preproc in
12305 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12306 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12311 ## ------------------------------------ ##
12312 ## Report this to bug-autoconf@gnu.org. ##
12313 ## ------------------------------------ ##
12316 sed "s/^/$as_me: WARNING: /" >&2
12319 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12320 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12321 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12322 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12324 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12327 ## ------------------------------------ ##
12328 ## Report this to bug-autoconf@gnu.org. ##
12329 ## ------------------------------------ ##
12332 sed "s/^/$as_me: WARNING: /" >&2
12335 echo "$as_me:$LINENO: checking for $ac_header" >&5
12336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12338 echo $ECHO_N "(cached) $ECHO_C" >&6
12340 eval "$as_ac_Header=$ac_header_preproc"
12342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12343 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12346 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12347 cat >>confdefs.h <<_ACEOF
12348 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12356 for ac_func in getpagesize
12358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12359 echo "$as_me:$LINENO: checking for $ac_func" >&5
12360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12361 if eval "test \"\${$as_ac_var+set}\" = set"; then
12362 echo $ECHO_N "(cached) $ECHO_C" >&6
12364 cat >conftest.$ac_ext <<_ACEOF
12365 #line $LINENO "configure"
12368 cat confdefs.h >>conftest.$ac_ext
12369 cat >>conftest.$ac_ext <<_ACEOF
12370 /* end confdefs.h. */
12371 /* System header to define __stub macros and hopefully few prototypes,
12372 which can conflict with char $ac_func (); below.
12373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12374 <limits.h> exists even on freestanding compilers. */
12376 # include <limits.h>
12378 # include <assert.h>
12380 /* Override any gcc2 internal prototype to avoid an error. */
12385 /* We use char because int might match the return type of a gcc2
12386 builtin and then its argument prototype would still apply. */
12388 /* The GNU C library defines this for functions which it implements
12389 to always fail with ENOSYS. Some functions are actually named
12390 something starting with __ and the normal name is an alias. */
12391 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12394 char (*f) () = $ac_func;
12403 return f != $ac_func;
12408 rm -f conftest.$ac_objext conftest$ac_exeext
12409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12410 (eval $ac_link) 2>&5
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); } &&
12414 { ac_try='test -s conftest$ac_exeext'
12415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12416 (eval $ac_try) 2>&5
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); }; }; then
12420 eval "$as_ac_var=yes"
12422 echo "$as_me: failed program was:" >&5
12423 sed 's/^/| /' conftest.$ac_ext >&5
12425 eval "$as_ac_var=no"
12427 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12430 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12431 if test `eval echo '${'$as_ac_var'}'` = yes; then
12432 cat >>confdefs.h <<_ACEOF
12433 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12439 echo "$as_me:$LINENO: checking for working mmap" >&5
12440 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12441 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12442 echo $ECHO_N "(cached) $ECHO_C" >&6
12444 if test "$cross_compiling" = yes; then
12445 ac_cv_func_mmap_fixed_mapped=no
12447 cat >conftest.$ac_ext <<_ACEOF
12448 #line $LINENO "configure"
12451 cat confdefs.h >>conftest.$ac_ext
12452 cat >>conftest.$ac_ext <<_ACEOF
12453 /* end confdefs.h. */
12454 $ac_includes_default
12455 /* malloc might have been renamed as rpl_malloc. */
12458 /* Thanks to Mike Haertel and Jim Avera for this test.
12459 Here is a matrix of mmap possibilities:
12460 mmap private not fixed
12461 mmap private fixed at somewhere currently unmapped
12462 mmap private fixed at somewhere already mapped
12463 mmap shared not fixed
12464 mmap shared fixed at somewhere currently unmapped
12465 mmap shared fixed at somewhere already mapped
12466 For private mappings, we should verify that changes cannot be read()
12467 back from the file, nor mmap's back from the file at a different
12468 address. (There have been systems where private was not correctly
12469 implemented like the infamous i386 svr4.0, and systems where the
12470 VM page cache was not coherent with the file system buffer cache
12471 like early versions of FreeBSD and possibly contemporary NetBSD.)
12472 For shared mappings, we should conversely verify that changes get
12473 propagated back to all the places they're supposed to be.
12475 Grep wants private fixed already mapped.
12476 The main things grep needs to know about mmap are:
12477 * does it exist and is it safe to write into the mmap'd area
12478 * how to use it (BSD variants) */
12481 #include <sys/mman.h>
12483 #if !STDC_HEADERS && !HAVE_STDLIB_H
12487 /* This mess was copied from the GNU getpagesize.h. */
12488 #if !HAVE_GETPAGESIZE
12489 /* Assume that all systems that can run configure have sys/param.h. */
12490 # if !HAVE_SYS_PARAM_H
12491 # define HAVE_SYS_PARAM_H 1
12494 # ifdef _SC_PAGESIZE
12495 # define getpagesize() sysconf(_SC_PAGESIZE)
12496 # else /* no _SC_PAGESIZE */
12497 # if HAVE_SYS_PARAM_H
12498 # include <sys/param.h>
12499 # ifdef EXEC_PAGESIZE
12500 # define getpagesize() EXEC_PAGESIZE
12501 # else /* no EXEC_PAGESIZE */
12503 # define getpagesize() NBPG * CLSIZE
12506 # endif /* no CLSIZE */
12507 # else /* no NBPG */
12509 # define getpagesize() NBPC
12510 # else /* no NBPC */
12512 # define getpagesize() PAGESIZE
12513 # endif /* PAGESIZE */
12514 # endif /* no NBPC */
12515 # endif /* no NBPG */
12516 # endif /* no EXEC_PAGESIZE */
12517 # else /* no HAVE_SYS_PARAM_H */
12518 # define getpagesize() 8192 /* punt totally */
12519 # endif /* no HAVE_SYS_PARAM_H */
12520 # endif /* no _SC_PAGESIZE */
12522 #endif /* no HAVE_GETPAGESIZE */
12527 char *data, *data2, *data3;
12531 pagesize = getpagesize ();
12533 /* First, make a file with some known garbage in it. */
12534 data = (char *) malloc (pagesize);
12537 for (i = 0; i < pagesize; ++i)
12538 *(data + i) = rand ();
12540 fd = creat ("conftest.mmap", 0600);
12543 if (write (fd, data, pagesize) != pagesize)
12547 /* Next, try to mmap the file at a fixed address which already has
12548 something else allocated at it. If we can, also make sure that
12549 we see the same garbage. */
12550 fd = open ("conftest.mmap", O_RDWR);
12553 data2 = (char *) malloc (2 * pagesize);
12556 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
12557 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12558 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12560 for (i = 0; i < pagesize; ++i)
12561 if (*(data + i) != *(data2 + i))
12564 /* Finally, make sure that changes to the mapped area do not
12565 percolate back to the file as seen by read(). (This is a bug on
12566 some variants of i386 svr4.0.) */
12567 for (i = 0; i < pagesize; ++i)
12568 *(data2 + i) = *(data2 + i) + 1;
12569 data3 = (char *) malloc (pagesize);
12572 if (read (fd, data3, pagesize) != pagesize)
12574 for (i = 0; i < pagesize; ++i)
12575 if (*(data + i) != *(data3 + i))
12581 rm -f conftest$ac_exeext
12582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12583 (eval $ac_link) 2>&5
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12588 (eval $ac_try) 2>&5
12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); }; }; then
12592 ac_cv_func_mmap_fixed_mapped=yes
12594 echo "$as_me: program exited with status $ac_status" >&5
12595 echo "$as_me: failed program was:" >&5
12596 sed 's/^/| /' conftest.$ac_ext >&5
12598 ( exit $ac_status )
12599 ac_cv_func_mmap_fixed_mapped=no
12601 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12604 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12605 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12606 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12608 cat >>confdefs.h <<\_ACEOF
12609 #define HAVE_MMAP 1
12613 rm -f conftest.mmap
12616 echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
12617 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
12618 if test "${ac_cv_gnu_library_2_1+set}" = set; then
12619 echo $ECHO_N "(cached) $ECHO_C" >&6
12621 cat >conftest.$ac_ext <<_ACEOF
12622 #line $LINENO "configure"
12625 cat confdefs.h >>conftest.$ac_ext
12626 cat >>conftest.$ac_ext <<_ACEOF
12627 /* end confdefs.h. */
12629 #include <features.h>
12630 #ifdef __GNU_LIBRARY__
12631 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
12637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12638 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
12639 ac_cv_gnu_library_2_1=yes
12641 ac_cv_gnu_library_2_1=no
12648 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
12649 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
12651 GLIBC21="$ac_cv_gnu_library_2_1"
12665 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12666 stdlib.h string.h unistd.h sys/param.h
12668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12669 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12670 echo "$as_me:$LINENO: checking for $ac_header" >&5
12671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12673 echo $ECHO_N "(cached) $ECHO_C" >&6
12675 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12676 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12678 # Is the header compilable?
12679 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12681 cat >conftest.$ac_ext <<_ACEOF
12682 #line $LINENO "configure"
12685 cat confdefs.h >>conftest.$ac_ext
12686 cat >>conftest.$ac_ext <<_ACEOF
12687 /* end confdefs.h. */
12688 $ac_includes_default
12689 #include <$ac_header>
12691 rm -f conftest.$ac_objext
12692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12693 (eval $ac_compile) 2>&5
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); } &&
12697 { ac_try='test -s conftest.$ac_objext'
12698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12699 (eval $ac_try) 2>&5
12701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12702 (exit $ac_status); }; }; then
12703 ac_header_compiler=yes
12705 echo "$as_me: failed program was:" >&5
12706 sed 's/^/| /' conftest.$ac_ext >&5
12708 ac_header_compiler=no
12710 rm -f conftest.$ac_objext conftest.$ac_ext
12711 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12712 echo "${ECHO_T}$ac_header_compiler" >&6
12714 # Is the header present?
12715 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12716 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12717 cat >conftest.$ac_ext <<_ACEOF
12718 #line $LINENO "configure"
12721 cat confdefs.h >>conftest.$ac_ext
12722 cat >>conftest.$ac_ext <<_ACEOF
12723 /* end confdefs.h. */
12724 #include <$ac_header>
12726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12729 grep -v '^ *+' conftest.er1 >conftest.err
12731 cat conftest.err >&5
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); } >/dev/null; then
12734 if test -s conftest.err; then
12735 ac_cpp_err=$ac_c_preproc_warn_flag
12742 if test -z "$ac_cpp_err"; then
12743 ac_header_preproc=yes
12745 echo "$as_me: failed program was:" >&5
12746 sed 's/^/| /' conftest.$ac_ext >&5
12748 ac_header_preproc=no
12750 rm -f conftest.err conftest.$ac_ext
12751 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12752 echo "${ECHO_T}$ac_header_preproc" >&6
12754 # So? What about this header?
12755 case $ac_header_compiler:$ac_header_preproc in
12757 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12758 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12760 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12763 ## ------------------------------------ ##
12764 ## Report this to bug-autoconf@gnu.org. ##
12765 ## ------------------------------------ ##
12768 sed "s/^/$as_me: WARNING: /" >&2
12771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12774 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12779 ## ------------------------------------ ##
12780 ## Report this to bug-autoconf@gnu.org. ##
12781 ## ------------------------------------ ##
12784 sed "s/^/$as_me: WARNING: /" >&2
12787 echo "$as_me:$LINENO: checking for $ac_header" >&5
12788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12789 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12790 echo $ECHO_N "(cached) $ECHO_C" >&6
12792 eval "$as_ac_Header=$ac_header_preproc"
12794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12795 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12798 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12799 cat >>confdefs.h <<_ACEOF
12800 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12828 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
12829 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
12830 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
12832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12833 echo "$as_me:$LINENO: checking for $ac_func" >&5
12834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12835 if eval "test \"\${$as_ac_var+set}\" = set"; then
12836 echo $ECHO_N "(cached) $ECHO_C" >&6
12838 cat >conftest.$ac_ext <<_ACEOF
12839 #line $LINENO "configure"
12842 cat confdefs.h >>conftest.$ac_ext
12843 cat >>conftest.$ac_ext <<_ACEOF
12844 /* end confdefs.h. */
12845 /* System header to define __stub macros and hopefully few prototypes,
12846 which can conflict with char $ac_func (); below.
12847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12848 <limits.h> exists even on freestanding compilers. */
12850 # include <limits.h>
12852 # include <assert.h>
12854 /* Override any gcc2 internal prototype to avoid an error. */
12859 /* We use char because int might match the return type of a gcc2
12860 builtin and then its argument prototype would still apply. */
12862 /* The GNU C library defines this for functions which it implements
12863 to always fail with ENOSYS. Some functions are actually named
12864 something starting with __ and the normal name is an alias. */
12865 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12868 char (*f) () = $ac_func;
12877 return f != $ac_func;
12882 rm -f conftest.$ac_objext conftest$ac_exeext
12883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12884 (eval $ac_link) 2>&5
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); } &&
12888 { ac_try='test -s conftest$ac_exeext'
12889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12890 (eval $ac_try) 2>&5
12892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893 (exit $ac_status); }; }; then
12894 eval "$as_ac_var=yes"
12896 echo "$as_me: failed program was:" >&5
12897 sed 's/^/| /' conftest.$ac_ext >&5
12899 eval "$as_ac_var=no"
12901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12904 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12905 if test `eval echo '${'$as_ac_var'}'` = yes; then
12906 cat >>confdefs.h <<_ACEOF
12907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12917 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
12918 if test "${with_libiconv_prefix+set}" = set; then
12919 withval="$with_libiconv_prefix"
12921 for dir in `echo "$withval" | tr : ' '`; do
12922 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
12923 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
12928 echo "$as_me:$LINENO: checking for iconv" >&5
12929 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
12930 if test "${am_cv_func_iconv+set}" = set; then
12931 echo $ECHO_N "(cached) $ECHO_C" >&6
12934 am_cv_func_iconv="no, consider installing GNU libiconv"
12936 cat >conftest.$ac_ext <<_ACEOF
12937 #line $LINENO "configure"
12940 cat confdefs.h >>conftest.$ac_ext
12941 cat >>conftest.$ac_ext <<_ACEOF
12942 /* end confdefs.h. */
12943 #include <stdlib.h>
12948 iconv_t cd = iconv_open("","");
12949 iconv(cd,NULL,NULL,NULL,NULL);
12955 rm -f conftest.$ac_objext conftest$ac_exeext
12956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12957 (eval $ac_link) 2>&5
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); } &&
12961 { ac_try='test -s conftest$ac_exeext'
12962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12963 (eval $ac_try) 2>&5
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); }; }; then
12967 am_cv_func_iconv=yes
12969 echo "$as_me: failed program was:" >&5
12970 sed 's/^/| /' conftest.$ac_ext >&5
12973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12974 if test "$am_cv_func_iconv" != yes; then
12975 am_save_LIBS="$LIBS"
12976 LIBS="$LIBS -liconv"
12977 cat >conftest.$ac_ext <<_ACEOF
12978 #line $LINENO "configure"
12981 cat confdefs.h >>conftest.$ac_ext
12982 cat >>conftest.$ac_ext <<_ACEOF
12983 /* end confdefs.h. */
12984 #include <stdlib.h>
12989 iconv_t cd = iconv_open("","");
12990 iconv(cd,NULL,NULL,NULL,NULL);
12996 rm -f conftest.$ac_objext conftest$ac_exeext
12997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12998 (eval $ac_link) 2>&5
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); } &&
13002 { ac_try='test -s conftest$ac_exeext'
13003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13004 (eval $ac_try) 2>&5
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); }; }; then
13008 am_cv_lib_iconv=yes
13009 am_cv_func_iconv=yes
13011 echo "$as_me: failed program was:" >&5
13012 sed 's/^/| /' conftest.$ac_ext >&5
13015 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13016 LIBS="$am_save_LIBS"
13020 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
13021 echo "${ECHO_T}$am_cv_func_iconv" >&6
13022 if test "$am_cv_func_iconv" = yes; then
13024 cat >>confdefs.h <<\_ACEOF
13025 #define HAVE_ICONV 1
13028 echo "$as_me:$LINENO: checking for iconv declaration" >&5
13029 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
13030 if test "${am_cv_proto_iconv+set}" = set; then
13031 echo $ECHO_N "(cached) $ECHO_C" >&6
13034 cat >conftest.$ac_ext <<_ACEOF
13035 #line $LINENO "configure"
13038 cat confdefs.h >>conftest.$ac_ext
13039 cat >>conftest.$ac_ext <<_ACEOF
13040 /* end confdefs.h. */
13042 #include <stdlib.h>
13048 #if defined(__STDC__) || defined(__cplusplus)
13049 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
13062 rm -f conftest.$ac_objext
13063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13064 (eval $ac_compile) 2>&5
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); } &&
13068 { ac_try='test -s conftest.$ac_objext'
13069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13070 (eval $ac_try) 2>&5
13072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13073 (exit $ac_status); }; }; then
13074 am_cv_proto_iconv_arg1=""
13076 echo "$as_me: failed program was:" >&5
13077 sed 's/^/| /' conftest.$ac_ext >&5
13079 am_cv_proto_iconv_arg1="const"
13081 rm -f conftest.$ac_objext conftest.$ac_ext
13082 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);"
13085 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
13086 echo "$as_me:$LINENO: result: ${ac_t:-
13087 }$am_cv_proto_iconv" >&5
13088 echo "${ECHO_T}${ac_t:-
13089 }$am_cv_proto_iconv" >&6
13091 cat >>confdefs.h <<_ACEOF
13092 #define ICONV_CONST $am_cv_proto_iconv_arg1
13097 if test "$am_cv_lib_iconv" = yes; then
13103 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
13104 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
13105 if test "${am_cv_langinfo_codeset+set}" = set; then
13106 echo $ECHO_N "(cached) $ECHO_C" >&6
13108 cat >conftest.$ac_ext <<_ACEOF
13109 #line $LINENO "configure"
13112 cat confdefs.h >>conftest.$ac_ext
13113 cat >>conftest.$ac_ext <<_ACEOF
13114 /* end confdefs.h. */
13115 #include <langinfo.h>
13119 char* cs = nl_langinfo(CODESET);
13124 rm -f conftest.$ac_objext conftest$ac_exeext
13125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13126 (eval $ac_link) 2>&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); } &&
13130 { ac_try='test -s conftest$ac_exeext'
13131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13132 (eval $ac_try) 2>&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); }; }; then
13136 am_cv_langinfo_codeset=yes
13138 echo "$as_me: failed program was:" >&5
13139 sed 's/^/| /' conftest.$ac_ext >&5
13141 am_cv_langinfo_codeset=no
13143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13146 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
13147 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
13148 if test $am_cv_langinfo_codeset = yes; then
13150 cat >>confdefs.h <<\_ACEOF
13151 #define HAVE_LANGINFO_CODESET 1
13156 if test $ac_cv_header_locale_h = yes; then
13157 echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
13158 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
13159 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
13160 echo $ECHO_N "(cached) $ECHO_C" >&6
13162 cat >conftest.$ac_ext <<_ACEOF
13163 #line $LINENO "configure"
13166 cat confdefs.h >>conftest.$ac_ext
13167 cat >>conftest.$ac_ext <<_ACEOF
13168 /* end confdefs.h. */
13169 #include <locale.h>
13178 rm -f conftest.$ac_objext conftest$ac_exeext
13179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13180 (eval $ac_link) 2>&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); } &&
13184 { ac_try='test -s conftest$ac_exeext'
13185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13186 (eval $ac_try) 2>&5
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); }; }; then
13190 am_cv_val_LC_MESSAGES=yes
13192 echo "$as_me: failed program was:" >&5
13193 sed 's/^/| /' conftest.$ac_ext >&5
13195 am_cv_val_LC_MESSAGES=no
13197 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13199 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
13200 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
13201 if test $am_cv_val_LC_MESSAGES = yes; then
13203 cat >>confdefs.h <<\_ACEOF
13204 #define HAVE_LC_MESSAGES 1
13209 echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13210 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13211 # Check whether --enable-nls or --disable-nls was given.
13212 if test "${enable_nls+set}" = set; then
13213 enableval="$enable_nls"
13218 echo "$as_me:$LINENO: result: $USE_NLS" >&5
13219 echo "${ECHO_T}$USE_NLS" >&6
13222 BUILD_INCLUDED_LIBINTL=no
13223 USE_INCLUDED_LIBINTL=no
13226 if test "$USE_NLS" = "yes"; then
13228 cat >>confdefs.h <<\_ACEOF
13229 #define ENABLE_NLS 1
13232 echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
13233 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
13235 # Check whether --with-included-gettext or --without-included-gettext was given.
13236 if test "${with_included_gettext+set}" = set; then
13237 withval="$with_included_gettext"
13238 nls_cv_force_use_gnu_gettext=$withval
13240 nls_cv_force_use_gnu_gettext=no
13242 echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
13243 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
13245 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
13246 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13252 if test "${ac_cv_header_libintl_h+set}" = set; then
13253 echo "$as_me:$LINENO: checking for libintl.h" >&5
13254 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
13255 if test "${ac_cv_header_libintl_h+set}" = set; then
13256 echo $ECHO_N "(cached) $ECHO_C" >&6
13258 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
13259 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
13261 # Is the header compilable?
13262 echo "$as_me:$LINENO: checking libintl.h usability" >&5
13263 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
13264 cat >conftest.$ac_ext <<_ACEOF
13265 #line $LINENO "configure"
13268 cat confdefs.h >>conftest.$ac_ext
13269 cat >>conftest.$ac_ext <<_ACEOF
13270 /* end confdefs.h. */
13271 $ac_includes_default
13272 #include <libintl.h>
13274 rm -f conftest.$ac_objext
13275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13276 (eval $ac_compile) 2>&5
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); } &&
13280 { ac_try='test -s conftest.$ac_objext'
13281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13282 (eval $ac_try) 2>&5
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); }; }; then
13286 ac_header_compiler=yes
13288 echo "$as_me: failed program was:" >&5
13289 sed 's/^/| /' conftest.$ac_ext >&5
13291 ac_header_compiler=no
13293 rm -f conftest.$ac_objext conftest.$ac_ext
13294 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13295 echo "${ECHO_T}$ac_header_compiler" >&6
13297 # Is the header present?
13298 echo "$as_me:$LINENO: checking libintl.h presence" >&5
13299 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
13300 cat >conftest.$ac_ext <<_ACEOF
13301 #line $LINENO "configure"
13304 cat confdefs.h >>conftest.$ac_ext
13305 cat >>conftest.$ac_ext <<_ACEOF
13306 /* end confdefs.h. */
13307 #include <libintl.h>
13309 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13310 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13312 grep -v '^ *+' conftest.er1 >conftest.err
13314 cat conftest.err >&5
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); } >/dev/null; then
13317 if test -s conftest.err; then
13318 ac_cpp_err=$ac_c_preproc_warn_flag
13325 if test -z "$ac_cpp_err"; then
13326 ac_header_preproc=yes
13328 echo "$as_me: failed program was:" >&5
13329 sed 's/^/| /' conftest.$ac_ext >&5
13331 ac_header_preproc=no
13333 rm -f conftest.err conftest.$ac_ext
13334 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13335 echo "${ECHO_T}$ac_header_preproc" >&6
13337 # So? What about this header?
13338 case $ac_header_compiler:$ac_header_preproc in
13340 { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
13341 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13342 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
13343 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
13346 ## ------------------------------------ ##
13347 ## Report this to bug-autoconf@gnu.org. ##
13348 ## ------------------------------------ ##
13351 sed "s/^/$as_me: WARNING: /" >&2
13354 { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
13355 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
13356 { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
13357 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
13358 { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
13359 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
13362 ## ------------------------------------ ##
13363 ## Report this to bug-autoconf@gnu.org. ##
13364 ## ------------------------------------ ##
13367 sed "s/^/$as_me: WARNING: /" >&2
13370 echo "$as_me:$LINENO: checking for libintl.h" >&5
13371 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
13372 if test "${ac_cv_header_libintl_h+set}" = set; then
13373 echo $ECHO_N "(cached) $ECHO_C" >&6
13375 ac_cv_header_libintl_h=$ac_header_preproc
13377 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
13378 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
13381 if test $ac_cv_header_libintl_h = yes; then
13382 echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
13383 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
13384 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
13385 echo $ECHO_N "(cached) $ECHO_C" >&6
13387 cat >conftest.$ac_ext <<_ACEOF
13388 #line $LINENO "configure"
13391 cat confdefs.h >>conftest.$ac_ext
13392 cat >>conftest.$ac_ext <<_ACEOF
13393 /* end confdefs.h. */
13394 #include <libintl.h>
13395 extern int _nl_msg_cat_cntr;
13399 bindtextdomain ("", "");
13400 return (int) gettext ("") + _nl_msg_cat_cntr
13405 rm -f conftest.$ac_objext conftest$ac_exeext
13406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13407 (eval $ac_link) 2>&5
13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); } &&
13411 { ac_try='test -s conftest$ac_exeext'
13412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13413 (eval $ac_try) 2>&5
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); }; }; then
13417 gt_cv_func_gnugettext1_libc=yes
13419 echo "$as_me: failed program was:" >&5
13420 sed 's/^/| /' conftest.$ac_ext >&5
13422 gt_cv_func_gnugettext1_libc=no
13424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13426 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
13427 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
13429 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
13430 echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13431 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
13432 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13433 echo $ECHO_N "(cached) $ECHO_C" >&6
13435 gt_save_LIBS="$LIBS"
13436 LIBS="$LIBS -lintl $LIBICONV"
13437 cat >conftest.$ac_ext <<_ACEOF
13438 #line $LINENO "configure"
13441 cat confdefs.h >>conftest.$ac_ext
13442 cat >>conftest.$ac_ext <<_ACEOF
13443 /* end confdefs.h. */
13444 #include <libintl.h>
13445 extern int _nl_msg_cat_cntr;
13449 bindtextdomain ("", "");
13450 return (int) gettext ("") + _nl_msg_cat_cntr
13455 rm -f conftest.$ac_objext conftest$ac_exeext
13456 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13457 (eval $ac_link) 2>&5
13459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13460 (exit $ac_status); } &&
13461 { ac_try='test -s conftest$ac_exeext'
13462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13463 (eval $ac_try) 2>&5
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466 (exit $ac_status); }; }; then
13467 gt_cv_func_gnugettext1_libintl=yes
13469 echo "$as_me: failed program was:" >&5
13470 sed 's/^/| /' conftest.$ac_ext >&5
13472 gt_cv_func_gnugettext1_libintl=no
13474 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13475 LIBS="$gt_save_LIBS"
13477 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13478 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
13481 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13482 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13483 && test "$PACKAGE" != gettext; }; then
13485 cat >>confdefs.h <<\_ACEOF
13486 #define HAVE_GETTEXT 1
13490 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13491 INTLLIBS="-lintl $LIBICONV"
13494 gt_save_LIBS="$LIBS"
13495 LIBS="$LIBS $INTLLIBS"
13497 for ac_func in dcgettext
13499 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13500 echo "$as_me:$LINENO: checking for $ac_func" >&5
13501 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13502 if eval "test \"\${$as_ac_var+set}\" = set"; then
13503 echo $ECHO_N "(cached) $ECHO_C" >&6
13505 cat >conftest.$ac_ext <<_ACEOF
13506 #line $LINENO "configure"
13509 cat confdefs.h >>conftest.$ac_ext
13510 cat >>conftest.$ac_ext <<_ACEOF
13511 /* end confdefs.h. */
13512 /* System header to define __stub macros and hopefully few prototypes,
13513 which can conflict with char $ac_func (); below.
13514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13515 <limits.h> exists even on freestanding compilers. */
13517 # include <limits.h>
13519 # include <assert.h>
13521 /* Override any gcc2 internal prototype to avoid an error. */
13526 /* We use char because int might match the return type of a gcc2
13527 builtin and then its argument prototype would still apply. */
13529 /* The GNU C library defines this for functions which it implements
13530 to always fail with ENOSYS. Some functions are actually named
13531 something starting with __ and the normal name is an alias. */
13532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13535 char (*f) () = $ac_func;
13544 return f != $ac_func;
13549 rm -f conftest.$ac_objext conftest$ac_exeext
13550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13551 (eval $ac_link) 2>&5
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); } &&
13555 { ac_try='test -s conftest$ac_exeext'
13556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13557 (eval $ac_try) 2>&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); }; }; then
13561 eval "$as_ac_var=yes"
13563 echo "$as_me: failed program was:" >&5
13564 sed 's/^/| /' conftest.$ac_ext >&5
13566 eval "$as_ac_var=no"
13568 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13571 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13572 if test `eval echo '${'$as_ac_var'}'` = yes; then
13573 cat >>confdefs.h <<_ACEOF
13574 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13580 LIBS="$gt_save_LIBS"
13582 # Extract the first word of "msgfmt", so it can be a program name with args.
13583 set dummy msgfmt; ac_word=$2
13584 echo "$as_me:$LINENO: checking for $ac_word" >&5
13585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13586 if test "${ac_cv_path_MSGFMT+set}" = set; then
13587 echo $ECHO_N "(cached) $ECHO_C" >&6
13591 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13594 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13595 for ac_dir in $PATH; do
13596 test -z "$ac_dir" && ac_dir=.
13597 if test -f $ac_dir/$ac_word; then
13598 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
13599 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
13605 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13609 MSGFMT="$ac_cv_path_MSGFMT"
13610 if test "$MSGFMT" != ":"; then
13611 echo "$as_me:$LINENO: result: $MSGFMT" >&5
13612 echo "${ECHO_T}$MSGFMT" >&6
13614 echo "$as_me:$LINENO: result: no" >&5
13615 echo "${ECHO_T}no" >&6
13618 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13619 set dummy gmsgfmt; ac_word=$2
13620 echo "$as_me:$LINENO: checking for $ac_word" >&5
13621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13622 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13623 echo $ECHO_N "(cached) $ECHO_C" >&6
13627 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13631 for as_dir in $PATH
13634 test -z "$as_dir" && as_dir=.
13635 for ac_exec_ext in '' $ac_executable_extensions; do
13636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13637 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13644 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13648 GMSGFMT=$ac_cv_path_GMSGFMT
13650 if test -n "$GMSGFMT"; then
13651 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
13652 echo "${ECHO_T}$GMSGFMT" >&6
13654 echo "$as_me:$LINENO: result: no" >&5
13655 echo "${ECHO_T}no" >&6
13659 # Extract the first word of "xgettext", so it can be a program name with args.
13660 set dummy xgettext; ac_word=$2
13661 echo "$as_me:$LINENO: checking for $ac_word" >&5
13662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13663 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13664 echo $ECHO_N "(cached) $ECHO_C" >&6
13666 case "$XGETTEXT" in
13668 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13672 for ac_dir in $PATH; do
13673 test -z "$ac_dir" && ac_dir=.
13674 if test -f $ac_dir/$ac_word; then
13675 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
13676 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
13682 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13686 XGETTEXT="$ac_cv_path_XGETTEXT"
13687 if test "$XGETTEXT" != ":"; then
13688 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
13689 echo "${ECHO_T}$XGETTEXT" >&6
13691 echo "$as_me:$LINENO: result: no" >&5
13692 echo "${ECHO_T}no" >&6
13703 if test "$CATOBJEXT" = "NONE"; then
13704 nls_cv_use_gnu_gettext=yes
13708 if test "$nls_cv_use_gnu_gettext" = "yes"; then
13709 INTLOBJS="\$(GETTOBJS)"
13710 # Extract the first word of "msgfmt", so it can be a program name with args.
13711 set dummy msgfmt; ac_word=$2
13712 echo "$as_me:$LINENO: checking for $ac_word" >&5
13713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13714 if test "${ac_cv_path_MSGFMT+set}" = set; then
13715 echo $ECHO_N "(cached) $ECHO_C" >&6
13719 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13722 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13723 for ac_dir in $PATH; do
13724 test -z "$ac_dir" && ac_dir=.
13725 if test -f $ac_dir/$ac_word; then
13726 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
13727 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
13733 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13737 MSGFMT="$ac_cv_path_MSGFMT"
13738 if test "$MSGFMT" != ":"; then
13739 echo "$as_me:$LINENO: result: $MSGFMT" >&5
13740 echo "${ECHO_T}$MSGFMT" >&6
13742 echo "$as_me:$LINENO: result: no" >&5
13743 echo "${ECHO_T}no" >&6
13746 # Extract the first word of "gmsgfmt", so it can be a program name with args.
13747 set dummy gmsgfmt; ac_word=$2
13748 echo "$as_me:$LINENO: checking for $ac_word" >&5
13749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13750 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13751 echo $ECHO_N "(cached) $ECHO_C" >&6
13755 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13759 for as_dir in $PATH
13762 test -z "$as_dir" && as_dir=.
13763 for ac_exec_ext in '' $ac_executable_extensions; do
13764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13765 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13772 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13776 GMSGFMT=$ac_cv_path_GMSGFMT
13778 if test -n "$GMSGFMT"; then
13779 echo "$as_me:$LINENO: result: $GMSGFMT" >&5
13780 echo "${ECHO_T}$GMSGFMT" >&6
13782 echo "$as_me:$LINENO: result: no" >&5
13783 echo "${ECHO_T}no" >&6
13786 # Extract the first word of "xgettext", so it can be a program name with args.
13787 set dummy xgettext; ac_word=$2
13788 echo "$as_me:$LINENO: checking for $ac_word" >&5
13789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13790 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13791 echo $ECHO_N "(cached) $ECHO_C" >&6
13793 case "$XGETTEXT" in
13795 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13798 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13799 for ac_dir in $PATH; do
13800 test -z "$ac_dir" && ac_dir=.
13801 if test -f $ac_dir/$ac_word; then
13802 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
13803 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
13809 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13813 XGETTEXT="$ac_cv_path_XGETTEXT"
13814 if test "$XGETTEXT" != ":"; then
13815 echo "$as_me:$LINENO: result: $XGETTEXT" >&5
13816 echo "${ECHO_T}$XGETTEXT" >&6
13818 echo "$as_me:$LINENO: result: no" >&5
13819 echo "${ECHO_T}no" >&6
13823 BUILD_INCLUDED_LIBINTL=yes
13824 USE_INCLUDED_LIBINTL=yes
13826 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
13827 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13830 if test "$GMSGFMT" != ":"; then
13831 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
13834 echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
13835 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
13840 if test "$XGETTEXT" != ":"; then
13841 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
13844 echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
13845 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
13852 ac_config_commands="$ac_config_commands default-1"
13856 if test "$PACKAGE" = gettext; then
13857 BUILD_INCLUDED_LIBINTL=yes
13860 for ac_prog in bison
13862 # Extract the first word of "$ac_prog", so it can be a program name with args.
13863 set dummy $ac_prog; ac_word=$2
13864 echo "$as_me:$LINENO: checking for $ac_word" >&5
13865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13866 if test "${ac_cv_prog_INTLBISON+set}" = set; then
13867 echo $ECHO_N "(cached) $ECHO_C" >&6
13869 if test -n "$INTLBISON"; then
13870 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13873 for as_dir in $PATH
13876 test -z "$as_dir" && as_dir=.
13877 for ac_exec_ext in '' $ac_executable_extensions; do
13878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13879 ac_cv_prog_INTLBISON="$ac_prog"
13880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13888 INTLBISON=$ac_cv_prog_INTLBISON
13889 if test -n "$INTLBISON"; then
13890 echo "$as_me:$LINENO: result: $INTLBISON" >&5
13891 echo "${ECHO_T}$INTLBISON" >&6
13893 echo "$as_me:$LINENO: result: no" >&5
13894 echo "${ECHO_T}no" >&6
13897 test -n "$INTLBISON" && break
13900 if test -z "$INTLBISON"; then
13903 echo "$as_me:$LINENO: checking version of bison" >&5
13904 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
13905 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13906 case $ac_prog_version in
13907 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13908 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13909 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13910 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13912 echo "$as_me:$LINENO: result: $ac_prog_version" >&5
13913 echo "${ECHO_T}$ac_prog_version" >&6
13915 if test $ac_verc_fail = yes; then
13919 for lang in $ALL_LINGUAS; do
13920 GMOFILES="$GMOFILES $lang.gmo"
13921 POFILES="$POFILES $lang.po"
13934 nls_cv_header_intl=
13935 nls_cv_header_libgt=
13947 if test "x$CATOBJEXT" != "x"; then
13948 if test "x$ALL_LINGUAS" = "x"; then
13951 echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13952 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
13954 for presentlang in $ALL_LINGUAS; do
13956 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
13957 # Use the presentlang catalog if desiredlang is
13958 # a. equal to presentlang, or
13959 # b. a variant of presentlang (because in this case,
13960 # presentlang can be used as a fallback for messages
13961 # which are not translated in the desiredlang catalog).
13962 case "$desiredlang" in
13963 "$presentlang"*) useit=yes;;
13966 if test $useit = yes; then
13967 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
13970 LINGUAS=$NEW_LINGUAS
13971 echo "$as_me:$LINENO: result: $LINGUAS" >&5
13972 echo "${ECHO_T}$LINGUAS" >&6
13975 if test -n "$LINGUAS"; then
13976 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
13981 if test -n "$ac_aux_dir"; then
13982 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
13984 if test -z "$MKINSTALLDIRS"; then
13985 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13989 INTL_LIBTOOL_SUFFIX_PREFIX=
13993 if test "$am_cv_func_iconv" != "yes"
13995 { echo "$as_me:$LINENO: WARNING: Configuring without iconv support. See INSTALL for details" >&5
13996 echo "$as_me: WARNING: Configuring without iconv support. See INSTALL for details" >&2;}
14000 for ac_header in iconv.h
14002 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14003 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14004 echo "$as_me:$LINENO: checking for $ac_header" >&5
14005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14007 echo $ECHO_N "(cached) $ECHO_C" >&6
14009 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14010 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14012 # Is the header compilable?
14013 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14014 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14015 cat >conftest.$ac_ext <<_ACEOF
14016 #line $LINENO "configure"
14019 cat confdefs.h >>conftest.$ac_ext
14020 cat >>conftest.$ac_ext <<_ACEOF
14021 /* end confdefs.h. */
14022 $ac_includes_default
14023 #include <$ac_header>
14025 rm -f conftest.$ac_objext
14026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14027 (eval $ac_compile) 2>&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); } &&
14031 { ac_try='test -s conftest.$ac_objext'
14032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14033 (eval $ac_try) 2>&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); }; }; then
14037 ac_header_compiler=yes
14039 echo "$as_me: failed program was:" >&5
14040 sed 's/^/| /' conftest.$ac_ext >&5
14042 ac_header_compiler=no
14044 rm -f conftest.$ac_objext conftest.$ac_ext
14045 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14046 echo "${ECHO_T}$ac_header_compiler" >&6
14048 # Is the header present?
14049 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14050 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14051 cat >conftest.$ac_ext <<_ACEOF
14052 #line $LINENO "configure"
14055 cat confdefs.h >>conftest.$ac_ext
14056 cat >>conftest.$ac_ext <<_ACEOF
14057 /* end confdefs.h. */
14058 #include <$ac_header>
14060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14063 grep -v '^ *+' conftest.er1 >conftest.err
14065 cat conftest.err >&5
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); } >/dev/null; then
14068 if test -s conftest.err; then
14069 ac_cpp_err=$ac_c_preproc_warn_flag
14076 if test -z "$ac_cpp_err"; then
14077 ac_header_preproc=yes
14079 echo "$as_me: failed program was:" >&5
14080 sed 's/^/| /' conftest.$ac_ext >&5
14082 ac_header_preproc=no
14084 rm -f conftest.err conftest.$ac_ext
14085 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14086 echo "${ECHO_T}$ac_header_preproc" >&6
14088 # So? What about this header?
14089 case $ac_header_compiler:$ac_header_preproc in
14091 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14092 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14097 ## ------------------------------------ ##
14098 ## Report this to bug-autoconf@gnu.org. ##
14099 ## ------------------------------------ ##
14102 sed "s/^/$as_me: WARNING: /" >&2
14105 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14106 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14107 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14108 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14110 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14113 ## ------------------------------------ ##
14114 ## Report this to bug-autoconf@gnu.org. ##
14115 ## ------------------------------------ ##
14118 sed "s/^/$as_me: WARNING: /" >&2
14121 echo "$as_me:$LINENO: checking for $ac_header" >&5
14122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14124 echo $ECHO_N "(cached) $ECHO_C" >&6
14126 eval "$as_ac_Header=$ac_header_preproc"
14128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14133 cat >>confdefs.h <<_ACEOF
14134 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14136 echo "$as_me:$LINENO: checking whether iconv.h defines iconv_t" >&5
14137 echo $ECHO_N "checking whether iconv.h defines iconv_t... $ECHO_C" >&6
14138 cat >conftest.$ac_ext <<_ACEOF
14139 #line $LINENO "configure"
14142 cat confdefs.h >>conftest.$ac_ext
14143 cat >>conftest.$ac_ext <<_ACEOF
14144 /* end confdefs.h. */
14148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14149 $EGREP "typedef.*iconv_t" >/dev/null 2>&1; then
14150 echo "$as_me:$LINENO: result: yes" >&5
14151 echo "${ECHO_T}yes" >&6
14153 cat >>confdefs.h <<\_ACEOF
14154 #define HAVE_ICONV_T_DEF 1
14158 echo "$as_me:$LINENO: result: no" >&5
14159 echo "${ECHO_T}no" >&6
14168 echo "$as_me:$LINENO: checking whether this iconv is good enough" >&5
14169 echo $ECHO_N "checking whether this iconv is good enough... $ECHO_C" >&6
14170 if test "${mutt_cv_iconv_good+set}" = set; then
14171 echo $ECHO_N "(cached) $ECHO_C" >&6
14173 mutt_save_LIBS="$LIBS"
14174 LIBS="$LIBS $LIBICONV"
14175 if test "$cross_compiling" = yes; then
14176 mutt_cv_iconv_good=yes
14178 cat >conftest.$ac_ext <<_ACEOF
14179 #line $LINENO "configure"
14182 cat confdefs.h >>conftest.$ac_ext
14183 cat >>conftest.$ac_ext <<_ACEOF
14184 /* end confdefs.h. */
14193 ob = buf, obl = sizeof(buf);
14194 return ((cd = iconv_open("UTF-8", "UTF-8")) != (iconv_t)(-1) &&
14195 (iconv(cd, 0, 0, &ob, &obl) ||
14196 !(ob == buf && obl == sizeof(buf)) ||
14201 rm -f conftest$ac_exeext
14202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14203 (eval $ac_link) 2>&5
14205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14206 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14208 (eval $ac_try) 2>&5
14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14211 (exit $ac_status); }; }; then
14212 mutt_cv_iconv_good=yes
14214 echo "$as_me: program exited with status $ac_status" >&5
14215 echo "$as_me: failed program was:" >&5
14216 sed 's/^/| /' conftest.$ac_ext >&5
14218 ( exit $ac_status )
14219 mutt_cv_iconv_good=no
14221 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14223 LIBS="$mutt_save_LIBS"
14225 echo "$as_me:$LINENO: result: $mutt_cv_iconv_good" >&5
14226 echo "${ECHO_T}$mutt_cv_iconv_good" >&6
14227 if test "$mutt_cv_iconv_good" = no; then
14228 { { echo "$as_me:$LINENO: error: Try using libiconv instead" >&5
14229 echo "$as_me: error: Try using libiconv instead" >&2;}
14230 { (exit 1); exit 1; }; }
14233 echo "$as_me:$LINENO: checking whether iconv is non-transcribing" >&5
14234 echo $ECHO_N "checking whether iconv is non-transcribing... $ECHO_C" >&6
14235 if test "${mutt_cv_iconv_nontrans+set}" = set; then
14236 echo $ECHO_N "(cached) $ECHO_C" >&6
14238 mutt_save_LIBS="$LIBS"
14239 LIBS="$LIBS $LIBICONV"
14240 if test "$cross_compiling" = yes; then
14241 mutt_cv_iconv_nontrans=no
14243 cat >conftest.$ac_ext <<_ACEOF
14244 #line $LINENO "configure"
14247 cat confdefs.h >>conftest.$ac_ext
14248 cat >>conftest.$ac_ext <<_ACEOF
14249 /* end confdefs.h. */
14252 #include <string.h>
14259 const char *s = "\304\211";
14261 ib = s, ibl = 2, ob = t, obl = 3;
14262 return ((cd = iconv_open("UTF-8", "UTF-8")) == (iconv_t)(-1) ||
14263 iconv(cd, &ib, &ibl, &ob, &obl));
14267 rm -f conftest$ac_exeext
14268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14269 (eval $ac_link) 2>&5
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_iconv_nontrans=no
14280 echo "$as_me: program exited with status $ac_status" >&5
14281 echo "$as_me: failed program was:" >&5
14282 sed 's/^/| /' conftest.$ac_ext >&5
14284 ( exit $ac_status )
14285 mutt_cv_iconv_nontrans=yes
14287 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14289 LIBS="$mutt_save_LIBS"
14291 echo "$as_me:$LINENO: result: $mutt_cv_iconv_nontrans" >&5
14292 echo "${ECHO_T}$mutt_cv_iconv_nontrans" >&6
14293 if test "$mutt_cv_iconv_nontrans" = yes; then
14294 cat >>confdefs.h <<\_ACEOF
14295 #define ICONV_NONTRANS 1
14299 cat >>confdefs.h <<\_ACEOF
14300 #define ICONV_NONTRANS 0
14305 CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/intl"
14307 if test "$BUILD_INCLUDED_LIBINTL" = "yes"; then
14309 cat >>confdefs.h <<\_ACEOF
14310 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
14315 for ac_func in bind_textdomain_codeset
14317 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14318 echo "$as_me:$LINENO: checking for $ac_func" >&5
14319 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14320 if eval "test \"\${$as_ac_var+set}\" = set"; then
14321 echo $ECHO_N "(cached) $ECHO_C" >&6
14323 cat >conftest.$ac_ext <<_ACEOF
14324 #line $LINENO "configure"
14327 cat confdefs.h >>conftest.$ac_ext
14328 cat >>conftest.$ac_ext <<_ACEOF
14329 /* end confdefs.h. */
14330 /* System header to define __stub macros and hopefully few prototypes,
14331 which can conflict with char $ac_func (); below.
14332 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14333 <limits.h> exists even on freestanding compilers. */
14335 # include <limits.h>
14337 # include <assert.h>
14339 /* Override any gcc2 internal prototype to avoid an error. */
14344 /* We use char because int might match the return type of a gcc2
14345 builtin and then its argument prototype would still apply. */
14347 /* The GNU C library defines this for functions which it implements
14348 to always fail with ENOSYS. Some functions are actually named
14349 something starting with __ and the normal name is an alias. */
14350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14353 char (*f) () = $ac_func;
14362 return f != $ac_func;
14367 rm -f conftest.$ac_objext conftest$ac_exeext
14368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14369 (eval $ac_link) 2>&5
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); } &&
14373 { ac_try='test -s conftest$ac_exeext'
14374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14375 (eval $ac_try) 2>&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); }; }; then
14379 eval "$as_ac_var=yes"
14381 echo "$as_me: failed program was:" >&5
14382 sed 's/^/| /' conftest.$ac_ext >&5
14384 eval "$as_ac_var=no"
14386 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14388 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14389 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14390 if test `eval echo '${'$as_ac_var'}'` = yes; then
14391 cat >>confdefs.h <<_ACEOF
14392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14404 for ac_header in wchar.h
14406 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14408 echo "$as_me:$LINENO: checking for $ac_header" >&5
14409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14411 echo $ECHO_N "(cached) $ECHO_C" >&6
14413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14414 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14416 # Is the header compilable?
14417 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14418 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14419 cat >conftest.$ac_ext <<_ACEOF
14420 #line $LINENO "configure"
14423 cat confdefs.h >>conftest.$ac_ext
14424 cat >>conftest.$ac_ext <<_ACEOF
14425 /* end confdefs.h. */
14426 $ac_includes_default
14427 #include <$ac_header>
14429 rm -f conftest.$ac_objext
14430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14431 (eval $ac_compile) 2>&5
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); } &&
14435 { ac_try='test -s conftest.$ac_objext'
14436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14437 (eval $ac_try) 2>&5
14439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14440 (exit $ac_status); }; }; then
14441 ac_header_compiler=yes
14443 echo "$as_me: failed program was:" >&5
14444 sed 's/^/| /' conftest.$ac_ext >&5
14446 ac_header_compiler=no
14448 rm -f conftest.$ac_objext conftest.$ac_ext
14449 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14450 echo "${ECHO_T}$ac_header_compiler" >&6
14452 # Is the header present?
14453 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14455 cat >conftest.$ac_ext <<_ACEOF
14456 #line $LINENO "configure"
14459 cat confdefs.h >>conftest.$ac_ext
14460 cat >>conftest.$ac_ext <<_ACEOF
14461 /* end confdefs.h. */
14462 #include <$ac_header>
14464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14465 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14467 grep -v '^ *+' conftest.er1 >conftest.err
14469 cat conftest.err >&5
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); } >/dev/null; then
14472 if test -s conftest.err; then
14473 ac_cpp_err=$ac_c_preproc_warn_flag
14480 if test -z "$ac_cpp_err"; then
14481 ac_header_preproc=yes
14483 echo "$as_me: failed program was:" >&5
14484 sed 's/^/| /' conftest.$ac_ext >&5
14486 ac_header_preproc=no
14488 rm -f conftest.err conftest.$ac_ext
14489 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14490 echo "${ECHO_T}$ac_header_preproc" >&6
14492 # So? What about this header?
14493 case $ac_header_compiler:$ac_header_preproc in
14495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14501 ## ------------------------------------ ##
14502 ## Report this to bug-autoconf@gnu.org. ##
14503 ## ------------------------------------ ##
14506 sed "s/^/$as_me: WARNING: /" >&2
14509 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14510 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14511 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14512 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14517 ## ------------------------------------ ##
14518 ## Report this to bug-autoconf@gnu.org. ##
14519 ## ------------------------------------ ##
14522 sed "s/^/$as_me: WARNING: /" >&2
14525 echo "$as_me:$LINENO: checking for $ac_header" >&5
14526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14527 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14528 echo $ECHO_N "(cached) $ECHO_C" >&6
14530 eval "$as_ac_Header=$ac_header_preproc"
14532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14533 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14537 cat >>confdefs.h <<_ACEOF
14538 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14546 echo "$as_me:$LINENO: checking for wchar_t" >&5
14547 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
14548 if test "${mutt_cv_wchar_t+set}" = set; then
14549 echo $ECHO_N "(cached) $ECHO_C" >&6
14551 cat >conftest.$ac_ext <<_ACEOF
14552 #line $LINENO "configure"
14555 cat confdefs.h >>conftest.$ac_ext
14556 cat >>conftest.$ac_ext <<_ACEOF
14557 /* end confdefs.h. */
14559 #include <stddef.h>
14560 #include <stdlib.h>
14561 #ifdef HAVE_WCHAR_H
14568 wchar_t wc; return 0;
14573 rm -f conftest.$ac_objext
14574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14575 (eval $ac_compile) 2>&5
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); } &&
14579 { ac_try='test -s conftest.$ac_objext'
14580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14581 (eval $ac_try) 2>&5
14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); }; }; then
14585 mutt_cv_wchar_t=yes
14587 echo "$as_me: failed program was:" >&5
14588 sed 's/^/| /' conftest.$ac_ext >&5
14592 rm -f conftest.$ac_objext conftest.$ac_ext
14594 echo "$as_me:$LINENO: result: $mutt_cv_wchar_t" >&5
14595 echo "${ECHO_T}$mutt_cv_wchar_t" >&6
14597 if test "$mutt_cv_wchar_t" = no; then
14599 cat >>confdefs.h <<\_ACEOF
14600 #define wchar_t int
14605 echo "$as_me:$LINENO: checking for wint_t" >&5
14606 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
14607 if test "${mutt_cv_wint_t+set}" = set; then
14608 echo $ECHO_N "(cached) $ECHO_C" >&6
14610 cat >conftest.$ac_ext <<_ACEOF
14611 #line $LINENO "configure"
14614 cat confdefs.h >>conftest.$ac_ext
14615 cat >>conftest.$ac_ext <<_ACEOF
14616 /* end confdefs.h. */
14618 #include <stddef.h>
14619 #include <stdlib.h>
14620 #ifdef HAVE_WCHAR_H
14627 wint_t wc; return 0;
14632 rm -f conftest.$ac_objext
14633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14634 (eval $ac_compile) 2>&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); } &&
14638 { ac_try='test -s conftest.$ac_objext'
14639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14640 (eval $ac_try) 2>&5
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); }; }; then
14646 echo "$as_me: failed program was:" >&5
14647 sed 's/^/| /' conftest.$ac_ext >&5
14651 rm -f conftest.$ac_objext conftest.$ac_ext
14653 echo "$as_me:$LINENO: result: $mutt_cv_wint_t" >&5
14654 echo "${ECHO_T}$mutt_cv_wint_t" >&6
14656 if test "$mutt_cv_wint_t" = no; then
14658 cat >>confdefs.h <<\_ACEOF
14665 for ac_header in wctype.h
14667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14669 echo "$as_me:$LINENO: checking for $ac_header" >&5
14670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14671 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14672 echo $ECHO_N "(cached) $ECHO_C" >&6
14674 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14675 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14677 # Is the header compilable?
14678 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14680 cat >conftest.$ac_ext <<_ACEOF
14681 #line $LINENO "configure"
14684 cat confdefs.h >>conftest.$ac_ext
14685 cat >>conftest.$ac_ext <<_ACEOF
14686 /* end confdefs.h. */
14687 $ac_includes_default
14688 #include <$ac_header>
14690 rm -f conftest.$ac_objext
14691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14692 (eval $ac_compile) 2>&5
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); } &&
14696 { ac_try='test -s conftest.$ac_objext'
14697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14698 (eval $ac_try) 2>&5
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701 (exit $ac_status); }; }; then
14702 ac_header_compiler=yes
14704 echo "$as_me: failed program was:" >&5
14705 sed 's/^/| /' conftest.$ac_ext >&5
14707 ac_header_compiler=no
14709 rm -f conftest.$ac_objext conftest.$ac_ext
14710 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14711 echo "${ECHO_T}$ac_header_compiler" >&6
14713 # Is the header present?
14714 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14715 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14716 cat >conftest.$ac_ext <<_ACEOF
14717 #line $LINENO "configure"
14720 cat confdefs.h >>conftest.$ac_ext
14721 cat >>conftest.$ac_ext <<_ACEOF
14722 /* end confdefs.h. */
14723 #include <$ac_header>
14725 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14726 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14728 grep -v '^ *+' conftest.er1 >conftest.err
14730 cat conftest.err >&5
14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); } >/dev/null; then
14733 if test -s conftest.err; then
14734 ac_cpp_err=$ac_c_preproc_warn_flag
14741 if test -z "$ac_cpp_err"; then
14742 ac_header_preproc=yes
14744 echo "$as_me: failed program was:" >&5
14745 sed 's/^/| /' conftest.$ac_ext >&5
14747 ac_header_preproc=no
14749 rm -f conftest.err conftest.$ac_ext
14750 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14751 echo "${ECHO_T}$ac_header_preproc" >&6
14753 # So? What about this header?
14754 case $ac_header_compiler:$ac_header_preproc in
14756 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14757 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14758 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14762 ## ------------------------------------ ##
14763 ## Report this to bug-autoconf@gnu.org. ##
14764 ## ------------------------------------ ##
14767 sed "s/^/$as_me: WARNING: /" >&2
14770 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14771 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14772 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14773 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14778 ## ------------------------------------ ##
14779 ## Report this to bug-autoconf@gnu.org. ##
14780 ## ------------------------------------ ##
14783 sed "s/^/$as_me: WARNING: /" >&2
14786 echo "$as_me:$LINENO: checking for $ac_header" >&5
14787 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14788 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14789 echo $ECHO_N "(cached) $ECHO_C" >&6
14791 eval "$as_ac_Header=$ac_header_preproc"
14793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14798 cat >>confdefs.h <<_ACEOF
14799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14810 for ac_func in iswalnum iswalpha iswcntrl iswdigit
14812 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14813 echo "$as_me:$LINENO: checking for $ac_func" >&5
14814 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14815 if eval "test \"\${$as_ac_var+set}\" = set"; then
14816 echo $ECHO_N "(cached) $ECHO_C" >&6
14818 cat >conftest.$ac_ext <<_ACEOF
14819 #line $LINENO "configure"
14822 cat confdefs.h >>conftest.$ac_ext
14823 cat >>conftest.$ac_ext <<_ACEOF
14824 /* end confdefs.h. */
14825 /* System header to define __stub macros and hopefully few prototypes,
14826 which can conflict with char $ac_func (); below.
14827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14828 <limits.h> exists even on freestanding compilers. */
14830 # include <limits.h>
14832 # include <assert.h>
14834 /* Override any gcc2 internal prototype to avoid an error. */
14839 /* We use char because int might match the return type of a gcc2
14840 builtin and then its argument prototype would still apply. */
14842 /* The GNU C library defines this for functions which it implements
14843 to always fail with ENOSYS. Some functions are actually named
14844 something starting with __ and the normal name is an alias. */
14845 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14848 char (*f) () = $ac_func;
14857 return f != $ac_func;
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 eval "$as_ac_var=yes"
14876 echo "$as_me: failed program was:" >&5
14877 sed 's/^/| /' conftest.$ac_ext >&5
14879 eval "$as_ac_var=no"
14881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14883 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14884 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14885 if test `eval echo '${'$as_ac_var'}'` = yes; then
14886 cat >>confdefs.h <<_ACEOF
14887 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14899 for ac_func in iswgraph iswlower iswprint iswpunct iswspace iswupper
14901 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14902 echo "$as_me:$LINENO: checking for $ac_func" >&5
14903 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14904 if eval "test \"\${$as_ac_var+set}\" = set"; then
14905 echo $ECHO_N "(cached) $ECHO_C" >&6
14907 cat >conftest.$ac_ext <<_ACEOF
14908 #line $LINENO "configure"
14911 cat confdefs.h >>conftest.$ac_ext
14912 cat >>conftest.$ac_ext <<_ACEOF
14913 /* end confdefs.h. */
14914 /* System header to define __stub macros and hopefully few prototypes,
14915 which can conflict with char $ac_func (); below.
14916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14917 <limits.h> exists even on freestanding compilers. */
14919 # include <limits.h>
14921 # include <assert.h>
14923 /* Override any gcc2 internal prototype to avoid an error. */
14928 /* We use char because int might match the return type of a gcc2
14929 builtin and then its argument prototype would still apply. */
14931 /* The GNU C library defines this for functions which it implements
14932 to always fail with ENOSYS. Some functions are actually named
14933 something starting with __ and the normal name is an alias. */
14934 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14937 char (*f) () = $ac_func;
14946 return f != $ac_func;
14951 rm -f conftest.$ac_objext conftest$ac_exeext
14952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14953 (eval $ac_link) 2>&5
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); } &&
14957 { ac_try='test -s conftest$ac_exeext'
14958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14959 (eval $ac_try) 2>&5
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); }; }; then
14963 eval "$as_ac_var=yes"
14965 echo "$as_me: failed program was:" >&5
14966 sed 's/^/| /' conftest.$ac_ext >&5
14968 eval "$as_ac_var=no"
14970 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14972 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14973 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14974 if test `eval echo '${'$as_ac_var'}'` = yes; then
14975 cat >>confdefs.h <<_ACEOF
14976 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14985 for ac_func in iswxdigit towupper towlower
14987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14988 echo "$as_me:$LINENO: checking for $ac_func" >&5
14989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14990 if eval "test \"\${$as_ac_var+set}\" = set"; then
14991 echo $ECHO_N "(cached) $ECHO_C" >&6
14993 cat >conftest.$ac_ext <<_ACEOF
14994 #line $LINENO "configure"
14997 cat confdefs.h >>conftest.$ac_ext
14998 cat >>conftest.$ac_ext <<_ACEOF
14999 /* end confdefs.h. */
15000 /* System header to define __stub macros and hopefully few prototypes,
15001 which can conflict with char $ac_func (); below.
15002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15003 <limits.h> exists even on freestanding compilers. */
15005 # include <limits.h>
15007 # include <assert.h>
15009 /* Override any gcc2 internal prototype to avoid an error. */
15014 /* We use char because int might match the return type of a gcc2
15015 builtin and then its argument prototype would still apply. */
15017 /* The GNU C library defines this for functions which it implements
15018 to always fail with ENOSYS. Some functions are actually named
15019 something starting with __ and the normal name is an alias. */
15020 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15023 char (*f) () = $ac_func;
15032 return f != $ac_func;
15037 rm -f conftest.$ac_objext conftest$ac_exeext
15038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15039 (eval $ac_link) 2>&5
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); } &&
15043 { ac_try='test -s conftest$ac_exeext'
15044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15045 (eval $ac_try) 2>&5
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); }; }; then
15049 eval "$as_ac_var=yes"
15051 echo "$as_me: failed program was:" >&5
15052 sed 's/^/| /' conftest.$ac_ext >&5
15054 eval "$as_ac_var=no"
15056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15059 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15060 if test `eval echo '${'$as_ac_var'}'` = yes; then
15061 cat >>confdefs.h <<_ACEOF
15062 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15069 echo "$as_me:$LINENO: checking for mbstate_t" >&5
15070 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
15071 if test "${mutt_cv_mbstate_t+set}" = set; then
15072 echo $ECHO_N "(cached) $ECHO_C" >&6
15074 cat >conftest.$ac_ext <<_ACEOF
15075 #line $LINENO "configure"
15078 cat confdefs.h >>conftest.$ac_ext
15079 cat >>conftest.$ac_ext <<_ACEOF
15080 /* end confdefs.h. */
15082 #include <stddef.h>
15083 #include <stdlib.h>
15084 #ifdef HAVE_WCHAR_H
15091 mbstate_t s; return 0;
15096 rm -f conftest.$ac_objext
15097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15098 (eval $ac_compile) 2>&5
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); } &&
15102 { ac_try='test -s conftest.$ac_objext'
15103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15104 (eval $ac_try) 2>&5
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); }; }; then
15108 mutt_cv_mbstate_t=yes
15110 echo "$as_me: failed program was:" >&5
15111 sed 's/^/| /' conftest.$ac_ext >&5
15113 mutt_cv_mbstate_t=no
15115 rm -f conftest.$ac_objext conftest.$ac_ext
15117 echo "$as_me:$LINENO: result: $mutt_cv_mbstate_t" >&5
15118 echo "${ECHO_T}$mutt_cv_mbstate_t" >&6
15120 if test "$mutt_cv_mbstate_t" = no; then
15122 cat >>confdefs.h <<\_ACEOF
15123 #define mbstate_t int
15130 # Check whether --with-wc-funcs or --without-wc-funcs was given.
15131 if test "${with_wc_funcs+set}" = set; then
15132 withval="$with_wc_funcs"
15136 if test "$wc_funcs" != yes -a "$wc_funcs" != no; then
15137 echo "$as_me:$LINENO: checking for wchar_t functions" >&5
15138 echo $ECHO_N "checking for wchar_t functions... $ECHO_C" >&6
15139 if test "${mutt_cv_wc_funcs+set}" = set; then
15140 echo $ECHO_N "(cached) $ECHO_C" >&6
15142 mutt_cv_wc_funcs=no
15143 cat >conftest.$ac_ext <<_ACEOF
15144 #line $LINENO "configure"
15147 cat confdefs.h >>conftest.$ac_ext
15148 cat >>conftest.$ac_ext <<_ACEOF
15149 /* end confdefs.h. */
15151 #define _XOPEN_SOURCE 1
15152 #include <stddef.h>
15153 #include <stdlib.h>
15154 #ifdef HAVE_WCTYPE_H
15155 #include <wctype.h>
15157 #ifdef HAVE_WCHAR_H
15163 mbrtowc(0, 0, 0, 0); wctomb(0, 0); wcwidth(0);
15164 iswprint(0); iswspace(0); towlower(0); towupper(0); iswalnum(0)
15169 rm -f conftest.$ac_objext conftest$ac_exeext
15170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15171 (eval $ac_link) 2>&5
15173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); } &&
15175 { ac_try='test -s conftest$ac_exeext'
15176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15177 (eval $ac_try) 2>&5
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); }; }; then
15181 mutt_cv_wc_funcs=yes
15183 echo "$as_me: failed program was:" >&5
15184 sed 's/^/| /' conftest.$ac_ext >&5
15187 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15189 echo "$as_me:$LINENO: result: $mutt_cv_wc_funcs" >&5
15190 echo "${ECHO_T}$mutt_cv_wc_funcs" >&6
15191 wc_funcs=$mutt_cv_wc_funcs
15194 if test $wc_funcs = yes; then
15196 cat >>confdefs.h <<\_ACEOF
15197 #define HAVE_WC_FUNCS 1
15202 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
15203 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
15204 if test "${mutt_cv_langinfo_codeset+set}" = set; then
15205 echo $ECHO_N "(cached) $ECHO_C" >&6
15207 cat >conftest.$ac_ext <<_ACEOF
15208 #line $LINENO "configure"
15211 cat confdefs.h >>conftest.$ac_ext
15212 cat >>conftest.$ac_ext <<_ACEOF
15213 /* end confdefs.h. */
15214 #include <langinfo.h>
15218 char* cs = nl_langinfo(CODESET);
15223 rm -f conftest.$ac_objext conftest$ac_exeext
15224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15225 (eval $ac_link) 2>&5
15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); } &&
15229 { ac_try='test -s conftest$ac_exeext'
15230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15231 (eval $ac_try) 2>&5
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); }; }; then
15235 mutt_cv_langinfo_codeset=yes
15237 echo "$as_me: failed program was:" >&5
15238 sed 's/^/| /' conftest.$ac_ext >&5
15240 mutt_cv_langinfo_codeset=no
15242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15244 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_codeset" >&5
15245 echo "${ECHO_T}$mutt_cv_langinfo_codeset" >&6
15246 if test $mutt_cv_langinfo_codeset = yes; then
15248 cat >>confdefs.h <<\_ACEOF
15249 #define HAVE_LANGINFO_CODESET 1
15254 echo "$as_me:$LINENO: checking for nl_langinfo and YESEXPR" >&5
15255 echo $ECHO_N "checking for nl_langinfo and YESEXPR... $ECHO_C" >&6
15256 if test "${mutt_cv_langinfo_yesexpr+set}" = set; then
15257 echo $ECHO_N "(cached) $ECHO_C" >&6
15259 cat >conftest.$ac_ext <<_ACEOF
15260 #line $LINENO "configure"
15263 cat confdefs.h >>conftest.$ac_ext
15264 cat >>conftest.$ac_ext <<_ACEOF
15265 /* end confdefs.h. */
15266 #include <langinfo.h>
15270 char* cs = nl_langinfo(YESEXPR);
15275 rm -f conftest.$ac_objext conftest$ac_exeext
15276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15277 (eval $ac_link) 2>&5
15279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15280 (exit $ac_status); } &&
15281 { ac_try='test -s conftest$ac_exeext'
15282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15283 (eval $ac_try) 2>&5
15285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15286 (exit $ac_status); }; }; then
15287 mutt_cv_langinfo_yesexpr=yes
15289 echo "$as_me: failed program was:" >&5
15290 sed 's/^/| /' conftest.$ac_ext >&5
15292 mutt_cv_langinfo_yesexpr=no
15294 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15296 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_yesexpr" >&5
15297 echo "${ECHO_T}$mutt_cv_langinfo_yesexpr" >&6
15298 if test $mutt_cv_langinfo_yesexpr = yes; then
15300 cat >>confdefs.h <<\_ACEOF
15301 #define HAVE_LANGINFO_YESEXPR 1
15308 # Check whether --with-libesmtp or --without-libesmtp was given.
15309 if test "${with_libesmtp+set}" = set; then
15310 withval="$with_libesmtp"
15311 if test "$with_libesmtp" != "no"
15313 mutt_libesmtp_check_path="$PATH"
15315 if test "$with_libesmtp" != "yes"
15317 mutt_libesmtp_check_path="$tmp_path:$withval/bin"
15320 # Extract the first word of "libesmtp-config", so it can be a program name with args.
15321 set dummy libesmtp-config; ac_word=$2
15322 echo "$as_me:$LINENO: checking for $ac_word" >&5
15323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15324 if test "${ac_cv_path_mutt_libesmtp_config_path+set}" = set; then
15325 echo $ECHO_N "(cached) $ECHO_C" >&6
15327 case $mutt_libesmtp_config_path in
15329 ac_cv_path_mutt_libesmtp_config_path="$mutt_libesmtp_config_path" # Let the user override the test with a path.
15332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15333 for as_dir in $mutt_libesmtp_check_path
15336 test -z "$as_dir" && as_dir=.
15337 for ac_exec_ext in '' $ac_executable_extensions; do
15338 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15339 ac_cv_path_mutt_libesmtp_config_path="$as_dir/$ac_word$ac_exec_ext"
15340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15346 test -z "$ac_cv_path_mutt_libesmtp_config_path" && ac_cv_path_mutt_libesmtp_config_path="no"
15350 mutt_libesmtp_config_path=$ac_cv_path_mutt_libesmtp_config_path
15352 if test -n "$mutt_libesmtp_config_path"; then
15353 echo "$as_me:$LINENO: result: $mutt_libesmtp_config_path" >&5
15354 echo "${ECHO_T}$mutt_libesmtp_config_path" >&6
15356 echo "$as_me:$LINENO: result: no" >&5
15357 echo "${ECHO_T}no" >&6
15361 if test "$mutt_libesmtp_config_path" = "no"
15363 { { echo "$as_me:$LINENO: error: libesmtp-config binary not found." >&5
15364 echo "$as_me: error: libesmtp-config binary not found." >&2;}
15365 { (exit 1); exit 1; }; }
15368 mutt_libesmtp_cflags=`$mutt_libesmtp_config_path --cflags`
15369 mutt_libesmtp_libs=`$mutt_libesmtp_config_path --libs`
15371 temp_CFLAGS="$CFLAGS"
15372 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
15373 if test "${ac_cv_header_libesmtp_h+set}" = set; then
15374 echo "$as_me:$LINENO: checking for libesmtp.h" >&5
15375 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
15376 if test "${ac_cv_header_libesmtp_h+set}" = set; then
15377 echo $ECHO_N "(cached) $ECHO_C" >&6
15379 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
15380 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
15382 # Is the header compilable?
15383 echo "$as_me:$LINENO: checking libesmtp.h usability" >&5
15384 echo $ECHO_N "checking libesmtp.h usability... $ECHO_C" >&6
15385 cat >conftest.$ac_ext <<_ACEOF
15386 #line $LINENO "configure"
15389 cat confdefs.h >>conftest.$ac_ext
15390 cat >>conftest.$ac_ext <<_ACEOF
15391 /* end confdefs.h. */
15392 $ac_includes_default
15393 #include <libesmtp.h>
15395 rm -f conftest.$ac_objext
15396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15397 (eval $ac_compile) 2>&5
15399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15400 (exit $ac_status); } &&
15401 { ac_try='test -s conftest.$ac_objext'
15402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15403 (eval $ac_try) 2>&5
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); }; }; then
15407 ac_header_compiler=yes
15409 echo "$as_me: failed program was:" >&5
15410 sed 's/^/| /' conftest.$ac_ext >&5
15412 ac_header_compiler=no
15414 rm -f conftest.$ac_objext conftest.$ac_ext
15415 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15416 echo "${ECHO_T}$ac_header_compiler" >&6
15418 # Is the header present?
15419 echo "$as_me:$LINENO: checking libesmtp.h presence" >&5
15420 echo $ECHO_N "checking libesmtp.h presence... $ECHO_C" >&6
15421 cat >conftest.$ac_ext <<_ACEOF
15422 #line $LINENO "configure"
15425 cat confdefs.h >>conftest.$ac_ext
15426 cat >>conftest.$ac_ext <<_ACEOF
15427 /* end confdefs.h. */
15428 #include <libesmtp.h>
15430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15433 grep -v '^ *+' conftest.er1 >conftest.err
15435 cat conftest.err >&5
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); } >/dev/null; then
15438 if test -s conftest.err; then
15439 ac_cpp_err=$ac_c_preproc_warn_flag
15446 if test -z "$ac_cpp_err"; then
15447 ac_header_preproc=yes
15449 echo "$as_me: failed program was:" >&5
15450 sed 's/^/| /' conftest.$ac_ext >&5
15452 ac_header_preproc=no
15454 rm -f conftest.err conftest.$ac_ext
15455 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15456 echo "${ECHO_T}$ac_header_preproc" >&6
15458 # So? What about this header?
15459 case $ac_header_compiler:$ac_header_preproc in
15461 { echo "$as_me:$LINENO: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&5
15462 echo "$as_me: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15463 { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&5
15464 echo "$as_me: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&2;}
15467 ## ------------------------------------ ##
15468 ## Report this to bug-autoconf@gnu.org. ##
15469 ## ------------------------------------ ##
15472 sed "s/^/$as_me: WARNING: /" >&2
15475 { echo "$as_me:$LINENO: WARNING: libesmtp.h: present but cannot be compiled" >&5
15476 echo "$as_me: WARNING: libesmtp.h: present but cannot be compiled" >&2;}
15477 { echo "$as_me:$LINENO: WARNING: libesmtp.h: check for missing prerequisite headers?" >&5
15478 echo "$as_me: WARNING: libesmtp.h: check for missing prerequisite headers?" >&2;}
15479 { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&5
15480 echo "$as_me: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&2;}
15483 ## ------------------------------------ ##
15484 ## Report this to bug-autoconf@gnu.org. ##
15485 ## ------------------------------------ ##
15488 sed "s/^/$as_me: WARNING: /" >&2
15491 echo "$as_me:$LINENO: checking for libesmtp.h" >&5
15492 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
15493 if test "${ac_cv_header_libesmtp_h+set}" = set; then
15494 echo $ECHO_N "(cached) $ECHO_C" >&6
15496 ac_cv_header_libesmtp_h=$ac_header_preproc
15498 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
15499 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
15502 if test $ac_cv_header_libesmtp_h = yes; then
15505 { { echo "$as_me:$LINENO: error: Could not find libesmtp.h" >&5
15506 echo "$as_me: error: Could not find libesmtp.h" >&2;}
15507 { (exit 1); exit 1; }; }
15511 CFLAGS="$temp_CFLAGS"
15513 temp_CFLAGS="$CFLAGS"
15515 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
15516 LIBS="$LIBS $mutt_libesmtp_libs"
15518 echo "$as_me:$LINENO: checking for smtp_create_session in -lesmtp" >&5
15519 echo $ECHO_N "checking for smtp_create_session in -lesmtp... $ECHO_C" >&6
15520 if test "${ac_cv_lib_esmtp_smtp_create_session+set}" = set; then
15521 echo $ECHO_N "(cached) $ECHO_C" >&6
15523 ac_check_lib_save_LIBS=$LIBS
15524 LIBS="-lesmtp $LIBS"
15525 cat >conftest.$ac_ext <<_ACEOF
15526 #line $LINENO "configure"
15529 cat confdefs.h >>conftest.$ac_ext
15530 cat >>conftest.$ac_ext <<_ACEOF
15531 /* end confdefs.h. */
15533 /* Override any gcc2 internal prototype to avoid an error. */
15537 /* We use char because int might match the return type of a gcc2
15538 builtin and then its argument prototype would still apply. */
15539 char smtp_create_session ();
15543 smtp_create_session ();
15548 rm -f conftest.$ac_objext conftest$ac_exeext
15549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15550 (eval $ac_link) 2>&5
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); } &&
15554 { ac_try='test -s conftest$ac_exeext'
15555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15556 (eval $ac_try) 2>&5
15558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); }; }; then
15560 ac_cv_lib_esmtp_smtp_create_session=yes
15562 echo "$as_me: failed program was:" >&5
15563 sed 's/^/| /' conftest.$ac_ext >&5
15565 ac_cv_lib_esmtp_smtp_create_session=no
15567 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15568 LIBS=$ac_check_lib_save_LIBS
15570 echo "$as_me:$LINENO: result: $ac_cv_lib_esmtp_smtp_create_session" >&5
15571 echo "${ECHO_T}$ac_cv_lib_esmtp_smtp_create_session" >&6
15572 if test $ac_cv_lib_esmtp_smtp_create_session = yes; then
15573 cat >>confdefs.h <<_ACEOF
15574 #define HAVE_LIBESMTP 1
15577 LIBS="-lesmtp $LIBS"
15580 { { echo "$as_me:$LINENO: error: Could not find libesmtp" >&5
15581 echo "$as_me: error: Could not find libesmtp" >&2;}
15582 { (exit 1); exit 1; }; }
15585 CFLAGS="$temp_CFLAGS"
15594 if test x$use_libesmtp = xyes; then
15595 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
15596 MUTTLIBS="$MUTTLIBS $mutt_libesmtp_libs"
15597 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_libesmtp.o"
15600 cat >>confdefs.h <<\_ACEOF
15601 #define USE_LIBESMTP 1
15606 ac_config_files="$ac_config_files Makefile intl/Makefile m4/Makefile po/Makefile.in doc/Makefile contrib/Makefile muttbug.sh imap/Makefile Muttngrc.head doc/instdoc.sh"
15607 cat >confcache <<\_ACEOF
15608 # This file is a shell script that caches the results of configure
15609 # tests run on this system so they can be shared between configure
15610 # scripts and configure runs, see configure's option --config-cache.
15611 # It is not useful on other systems. If it contains results you don't
15612 # want to keep, you may remove or edit it.
15614 # config.status only pays attention to the cache file if you give it
15615 # the --recheck option to rerun configure.
15617 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15618 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15619 # following values.
15623 # The following way of writing the cache mishandles newlines in values,
15624 # but we know of no workaround that is simple, portable, and efficient.
15625 # So, don't put newlines in cache variables' values.
15626 # Ultrix sh set writes to stderr and can't be redirected directly,
15627 # and sets the high bit in the cache file unless we assign to the vars.
15630 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15632 # `set' does not quote correctly, so add quotes (double-quote
15633 # substitution turns \\\\ into \\, and sed turns \\ into \).
15636 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15639 # `set' quotes correctly as required by POSIX, so do not add quotes.
15641 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15648 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15650 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15652 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15653 if test -w $cache_file; then
15654 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15655 cat confcache >$cache_file
15657 echo "not updating unwritable cache $cache_file"
15662 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15663 # Let make expand exec_prefix.
15664 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15666 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15667 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15668 # trailing colons and then remove the whole line if VPATH becomes empty
15669 # (actually we leave an empty line to preserve line numbers).
15670 if test "x$srcdir" = x.; then
15671 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15672 s/:*\$(srcdir):*/:/;
15673 s/:*\${srcdir}:*/:/;
15675 s/^\([^=]*=[ ]*\):*/\1/;
15681 DEFS=-DHAVE_CONFIG_H
15685 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15686 # 1. Remove the extension, and $U if already installed.
15687 ac_i=`echo "$ac_i" |
15688 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15690 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15691 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15693 LIBOBJS=$ac_libobjs
15695 LTLIBOBJS=$ac_ltlibobjs
15698 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15699 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15700 Usually this means the macro was only invoked conditionally." >&5
15701 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15702 Usually this means the macro was only invoked conditionally." >&2;}
15703 { (exit 1); exit 1; }; }
15705 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15706 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15707 Usually this means the macro was only invoked conditionally." >&5
15708 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15709 Usually this means the macro was only invoked conditionally." >&2;}
15710 { (exit 1); exit 1; }; }
15712 if test -z "${BUILD_IMAP_TRUE}" && test -z "${BUILD_IMAP_FALSE}"; then
15713 { { echo "$as_me:$LINENO: error: conditional \"BUILD_IMAP\" was never defined.
15714 Usually this means the macro was only invoked conditionally." >&5
15715 echo "$as_me: error: conditional \"BUILD_IMAP\" was never defined.
15716 Usually this means the macro was only invoked conditionally." >&2;}
15717 { (exit 1); exit 1; }; }
15719 if test -z "${USE_GSS_TRUE}" && test -z "${USE_GSS_FALSE}"; then
15720 { { echo "$as_me:$LINENO: error: conditional \"USE_GSS\" was never defined.
15721 Usually this means the macro was only invoked conditionally." >&5
15722 echo "$as_me: error: conditional \"USE_GSS\" was never defined.
15723 Usually this means the macro was only invoked conditionally." >&2;}
15724 { (exit 1); exit 1; }; }
15726 if test -z "${USE_SSL_TRUE}" && test -z "${USE_SSL_FALSE}"; then
15727 { { echo "$as_me:$LINENO: error: conditional \"USE_SSL\" was never defined.
15728 Usually this means the macro was only invoked conditionally." >&5
15729 echo "$as_me: error: conditional \"USE_SSL\" was never defined.
15730 Usually this means the macro was only invoked conditionally." >&2;}
15731 { (exit 1); exit 1; }; }
15733 if test -z "${USE_GNUTLS_TRUE}" && test -z "${USE_GNUTLS_FALSE}"; then
15734 { { echo "$as_me:$LINENO: error: conditional \"USE_GNUTLS\" was never defined.
15735 Usually this means the macro was only invoked conditionally." >&5
15736 echo "$as_me: error: conditional \"USE_GNUTLS\" was never defined.
15737 Usually this means the macro was only invoked conditionally." >&2;}
15738 { (exit 1); exit 1; }; }
15740 if test -z "${USE_SASL_TRUE}" && test -z "${USE_SASL_FALSE}"; then
15741 { { echo "$as_me:$LINENO: error: conditional \"USE_SASL\" was never defined.
15742 Usually this means the macro was only invoked conditionally." >&5
15743 echo "$as_me: error: conditional \"USE_SASL\" was never defined.
15744 Usually this means the macro was only invoked conditionally." >&2;}
15745 { (exit 1); exit 1; }; }
15747 if test -z "${USE_SASL_TRUE}" && test -z "${USE_SASL_FALSE}"; then
15748 { { echo "$as_me:$LINENO: error: conditional \"USE_SASL\" was never defined.
15749 Usually this means the macro was only invoked conditionally." >&5
15750 echo "$as_me: error: conditional \"USE_SASL\" was never defined.
15751 Usually this means the macro was only invoked conditionally." >&2;}
15752 { (exit 1); exit 1; }; }
15755 : ${CONFIG_STATUS=./config.status}
15756 ac_clean_files_save=$ac_clean_files
15757 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15758 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15759 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15760 cat >$CONFIG_STATUS <<_ACEOF
15762 # Generated by $as_me.
15763 # Run this file to recreate the current configuration.
15764 # Compiler output produced by configure, useful for debugging
15765 # configure, is in config.log if it exists.
15768 ac_cs_recheck=false
15770 SHELL=\${CONFIG_SHELL-$SHELL}
15773 cat >>$CONFIG_STATUS <<\_ACEOF
15774 ## --------------------- ##
15775 ## M4sh Initialization. ##
15776 ## --------------------- ##
15778 # Be Bourne compatible
15779 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15782 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15783 # is contrary to our usage. Disable this feature.
15784 alias -g '${1+"$@"}'='"$@"'
15785 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15789 # Support unset when possible.
15790 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15797 # Work around bugs in pre-3.0 UWIN ksh.
15798 $as_unset ENV MAIL MAILPATH
15805 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15806 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15807 LC_TELEPHONE LC_TIME
15809 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
15810 eval $as_var=C; export $as_var
15816 # Required to use basename.
15817 if expr a : '\(a\)' >/dev/null 2>&1; then
15823 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15824 as_basename=basename
15830 # Name of the executable.
15831 as_me=`$as_basename "$0" ||
15832 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15833 X"$0" : 'X\(//\)$' \| \
15834 X"$0" : 'X\(/\)$' \| \
15835 . : '\(.\)' 2>/dev/null ||
15837 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15838 /^X\/\(\/\/\)$/{ s//\1/; q; }
15839 /^X\/\(\/\).*/{ s//\1/; q; }
15843 # PATH needs CR, and LINENO needs CR and PATH.
15844 # Avoid depending upon Character Ranges.
15845 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15846 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15847 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15848 as_cr_digits='0123456789'
15849 as_cr_alnum=$as_cr_Letters$as_cr_digits
15851 # The user is always right.
15852 if test "${PATH_SEPARATOR+set}" != set; then
15853 echo "#! /bin/sh" >conf$$.sh
15854 echo "exit 0" >>conf$$.sh
15856 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15865 as_lineno_1=$LINENO
15866 as_lineno_2=$LINENO
15867 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15868 test "x$as_lineno_1" != "x$as_lineno_2" &&
15869 test "x$as_lineno_3" = "x$as_lineno_2" || {
15870 # Find who we are. Look in the path if we contain no path at all
15873 *[\\/]* ) as_myself=$0 ;;
15874 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15875 for as_dir in $PATH
15878 test -z "$as_dir" && as_dir=.
15879 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15884 # We did not find ourselves, most probably we were run as `sh COMMAND'
15885 # in which case we are not to be found in the path.
15886 if test "x$as_myself" = x; then
15889 if test ! -f "$as_myself"; then
15890 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15891 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15892 { (exit 1); exit 1; }; }
15894 case $CONFIG_SHELL in
15896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15897 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15900 test -z "$as_dir" && as_dir=.
15901 for as_base in sh bash ksh sh5; do
15904 if ("$as_dir/$as_base" -c '
15905 as_lineno_1=$LINENO
15906 as_lineno_2=$LINENO
15907 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15908 test "x$as_lineno_1" != "x$as_lineno_2" &&
15909 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
15910 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15911 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15912 CONFIG_SHELL=$as_dir/$as_base
15913 export CONFIG_SHELL
15914 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15922 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15923 # uniformly replaced by the line number. The first 'sed' inserts a
15924 # line-number line before each line; the second 'sed' does the real
15925 # work. The second script uses 'N' to pair each line-number line
15926 # with the numbered line, and appends trailing '-' during
15927 # substitution so that $LINENO is not a special case at line end.
15928 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15929 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
15930 sed '=' <$as_myself |
15935 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15938 s,^['$as_cr_digits']*\n,,
15939 ' >$as_me.lineno &&
15940 chmod +x $as_me.lineno ||
15941 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15942 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15943 { (exit 1); exit 1; }; }
15945 # Don't try to exec as it changes $[0], causing all sort of problems
15946 # (the dirname of $[0] is not the place where we might find the
15947 # original and so on. Autoconf is especially sensible to this).
15949 # Exit status is that of the last command.
15954 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15955 *c*,-n*) ECHO_N= ECHO_C='
15957 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15958 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
15961 if expr a : '\(a\)' >/dev/null 2>&1; then
15967 rm -f conf$$ conf$$.exe conf$$.file
15969 if ln -s conf$$.file conf$$ 2>/dev/null; then
15970 # We could just check for DJGPP; but this test a) works b) is more generic
15971 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15972 if test -f conf$$.exe; then
15973 # Don't use ln at all; we don't have any links
15978 elif ln conf$$.file conf$$ 2>/dev/null; then
15983 rm -f conf$$ conf$$.exe conf$$.file
15985 if mkdir -p . 2>/dev/null; then
15991 as_executable_p="test -f"
15993 # Sed expression to map a string onto a valid CPP name.
15994 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15996 # Sed expression to map a string onto a valid variable name.
15997 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16001 # We need space, tab and new line, in precisely that order.
16011 # Open the log real soon, to keep \$[0] and so on meaningful, and to
16012 # report actual input values of CONFIG_FILES etc. instead of their
16013 # values after options handling. Logging --version etc. is OK.
16017 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16018 ## Running $as_me. ##
16023 This file was extended by $as_me, which was
16024 generated by GNU Autoconf 2.57. Invocation command line was
16026 CONFIG_FILES = $CONFIG_FILES
16027 CONFIG_HEADERS = $CONFIG_HEADERS
16028 CONFIG_LINKS = $CONFIG_LINKS
16029 CONFIG_COMMANDS = $CONFIG_COMMANDS
16033 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16037 # Files that config.status was made for.
16038 if test -n "$ac_config_files"; then
16039 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16042 if test -n "$ac_config_headers"; then
16043 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16046 if test -n "$ac_config_links"; then
16047 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16050 if test -n "$ac_config_commands"; then
16051 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16054 cat >>$CONFIG_STATUS <<\_ACEOF
16057 \`$as_me' instantiates files from templates according to the
16058 current configuration.
16060 Usage: $0 [OPTIONS] [FILE]...
16062 -h, --help print this help, then exit
16063 -V, --version print version number, then exit
16064 -q, --quiet do not print progress messages
16065 -d, --debug don't remove temporary files
16066 --recheck update $as_me by reconfiguring in the same conditions
16067 --file=FILE[:TEMPLATE]
16068 instantiate the configuration file FILE
16069 --header=FILE[:TEMPLATE]
16070 instantiate the configuration header FILE
16072 Configuration files:
16075 Configuration headers:
16078 Configuration commands:
16081 Report bugs to <bug-autoconf@gnu.org>."
16084 cat >>$CONFIG_STATUS <<_ACEOF
16087 configured by $0, generated by GNU Autoconf 2.57,
16088 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16090 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16091 Free Software Foundation, Inc.
16092 This config.status script is free software; the Free Software Foundation
16093 gives unlimited permission to copy, distribute and modify it."
16098 cat >>$CONFIG_STATUS <<\_ACEOF
16099 # If no file are specified by the user, then we need to provide default
16100 # value. By we need to know if files were specified by the user.
16106 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16107 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16115 *) # This is not an option, so the user has probably given explicit
16118 ac_need_defaults=false;;
16122 # Handling of the options.
16124 cat >>$CONFIG_STATUS <<\_ACEOF
16125 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16127 --version | --vers* | -V )
16128 echo "$ac_cs_version"; exit 0 ;;
16130 # Conflict between --help and --header
16131 { { echo "$as_me:$LINENO: error: ambiguous option: $1
16132 Try \`$0 --help' for more information." >&5
16133 echo "$as_me: error: ambiguous option: $1
16134 Try \`$0 --help' for more information." >&2;}
16135 { (exit 1); exit 1; }; };;
16136 --help | --hel | -h )
16137 echo "$ac_cs_usage"; exit 0 ;;
16138 --debug | --d* | -d )
16140 --file | --fil | --fi | --f )
16142 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
16143 ac_need_defaults=false;;
16144 --header | --heade | --head | --hea )
16146 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
16147 ac_need_defaults=false;;
16148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16149 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16152 # This is an error.
16153 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16154 Try \`$0 --help' for more information." >&5
16155 echo "$as_me: error: unrecognized option: $1
16156 Try \`$0 --help' for more information." >&2;}
16157 { (exit 1); exit 1; }; } ;;
16159 *) ac_config_targets="$ac_config_targets $1" ;;
16165 ac_configure_extra_args=
16167 if $ac_cs_silent; then
16169 ac_configure_extra_args="$ac_configure_extra_args --silent"
16173 cat >>$CONFIG_STATUS <<_ACEOF
16174 if \$ac_cs_recheck; then
16175 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16176 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16181 cat >>$CONFIG_STATUS <<_ACEOF
16183 # INIT-COMMANDS section.
16186 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16193 cat >>$CONFIG_STATUS <<\_ACEOF
16194 for ac_config_target in $ac_config_targets
16196 case "$ac_config_target" in
16197 # Handling of arguments.
16198 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16199 "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
16200 "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
16201 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16202 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16203 "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
16204 "muttbug.sh" ) CONFIG_FILES="$CONFIG_FILES muttbug.sh" ;;
16205 "imap/Makefile" ) CONFIG_FILES="$CONFIG_FILES imap/Makefile" ;;
16206 "Muttngrc.head" ) CONFIG_FILES="$CONFIG_FILES Muttngrc.head" ;;
16207 "doc/instdoc.sh" ) CONFIG_FILES="$CONFIG_FILES doc/instdoc.sh" ;;
16208 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16209 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16210 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16211 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16212 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16213 { (exit 1); exit 1; }; };;
16217 # If the user did not use the arguments to specify the items to instantiate,
16218 # then the envvar interface is used. Set only those that are not.
16219 # We use the long form for the default assignment because of an extremely
16220 # bizarre bug on SunOS 4.1.3.
16221 if $ac_need_defaults; then
16222 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16223 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16224 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16227 # Have a temporary directory for convenience. Make it in the build tree
16228 # simply because there is no reason to put it here, and in addition,
16229 # creating and moving files from /tmp can sometimes cause problems.
16230 # Create a temporary directory, and hook for its removal unless debugging.
16233 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16234 trap '{ (exit 1); exit 1; }' 1 2 13 15
16237 # Create a (secure) tmp directory for tmp files.
16240 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16241 test -n "$tmp" && test -d "$tmp"
16244 tmp=./confstat$$-$RANDOM
16245 (umask 077 && mkdir $tmp)
16248 echo "$me: cannot create a temporary directory in ." >&2
16249 { (exit 1); exit 1; }
16254 cat >>$CONFIG_STATUS <<_ACEOF
16257 # CONFIG_FILES section.
16260 # No need to generate the scripts if there are no CONFIG_FILES.
16261 # This happens for instance when ./config.status config.h
16262 if test -n "\$CONFIG_FILES"; then
16263 # Protect against being on the right side of a sed subst in config.status.
16264 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16265 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16266 s,@SHELL@,$SHELL,;t t
16267 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16268 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16269 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16270 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16271 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16272 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16273 s,@exec_prefix@,$exec_prefix,;t t
16274 s,@prefix@,$prefix,;t t
16275 s,@program_transform_name@,$program_transform_name,;t t
16276 s,@bindir@,$bindir,;t t
16277 s,@sbindir@,$sbindir,;t t
16278 s,@libexecdir@,$libexecdir,;t t
16279 s,@datadir@,$datadir,;t t
16280 s,@sysconfdir@,$sysconfdir,;t t
16281 s,@sharedstatedir@,$sharedstatedir,;t t
16282 s,@localstatedir@,$localstatedir,;t t
16283 s,@libdir@,$libdir,;t t
16284 s,@includedir@,$includedir,;t t
16285 s,@oldincludedir@,$oldincludedir,;t t
16286 s,@infodir@,$infodir,;t t
16287 s,@mandir@,$mandir,;t t
16288 s,@build_alias@,$build_alias,;t t
16289 s,@host_alias@,$host_alias,;t t
16290 s,@target_alias@,$target_alias,;t t
16291 s,@DEFS@,$DEFS,;t t
16292 s,@ECHO_C@,$ECHO_C,;t t
16293 s,@ECHO_N@,$ECHO_N,;t t
16294 s,@ECHO_T@,$ECHO_T,;t t
16295 s,@LIBS@,$LIBS,;t t
16296 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16297 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16298 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16299 s,@CYGPATH_W@,$CYGPATH_W,;t t
16300 s,@PACKAGE@,$PACKAGE,;t t
16301 s,@VERSION@,$VERSION,;t t
16302 s,@ACLOCAL@,$ACLOCAL,;t t
16303 s,@AUTOCONF@,$AUTOCONF,;t t
16304 s,@AUTOMAKE@,$AUTOMAKE,;t t
16305 s,@AUTOHEADER@,$AUTOHEADER,;t t
16306 s,@MAKEINFO@,$MAKEINFO,;t t
16307 s,@AMTAR@,$AMTAR,;t t
16308 s,@install_sh@,$install_sh,;t t
16309 s,@STRIP@,$STRIP,;t t
16310 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16311 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
16313 s,@SET_MAKE@,$SET_MAKE,;t t
16314 s,@am__leading_dot@,$am__leading_dot,;t t
16315 s,@build@,$build,;t t
16316 s,@build_cpu@,$build_cpu,;t t
16317 s,@build_vendor@,$build_vendor,;t t
16318 s,@build_os@,$build_os,;t t
16319 s,@host@,$host,;t t
16320 s,@host_cpu@,$host_cpu,;t t
16321 s,@host_vendor@,$host_vendor,;t t
16322 s,@host_os@,$host_os,;t t
16324 s,@CFLAGS@,$CFLAGS,;t t
16325 s,@LDFLAGS@,$LDFLAGS,;t t
16326 s,@CPPFLAGS@,$CPPFLAGS,;t t
16327 s,@ac_ct_CC@,$ac_ct_CC,;t t
16328 s,@EXEEXT@,$EXEEXT,;t t
16329 s,@OBJEXT@,$OBJEXT,;t t
16330 s,@DEPDIR@,$DEPDIR,;t t
16331 s,@am__include@,$am__include,;t t
16332 s,@am__quote@,$am__quote,;t t
16333 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16334 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16335 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16336 s,@CCDEPMODE@,$CCDEPMODE,;t t
16337 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16338 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
16340 s,@EGREP@,$EGREP,;t t
16342 s,@ANSI2KNR@,$ANSI2KNR,;t t
16343 s,@RANLIB@,$RANLIB,;t t
16344 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16346 s,@ac_ct_AR@,$ac_ct_AR,;t t
16350 s,@DEBUGGER@,$DEBUGGER,;t t
16351 s,@SENDMAIL@,$SENDMAIL,;t t
16353 s,@PGPAUX_TARGET@,$PGPAUX_TARGET,;t t
16354 s,@SMIMEAUX_TARGET@,$SMIMEAUX_TARGET,;t t
16355 s,@SUBVERSION@,$SUBVERSION,;t t
16356 s,@ISPELL@,$ISPELL,;t t
16357 s,@LIBOBJS@,$LIBOBJS,;t t
16358 s,@DOTLOCK_TARGET@,$DOTLOCK_TARGET,;t t
16359 s,@docdir@,$docdir,;t t
16360 s,@DOTLOCK_GROUP@,$DOTLOCK_GROUP,;t t
16361 s,@DOTLOCK_PERMISSION@,$DOTLOCK_PERMISSION,;t t
16362 s,@BUILD_IMAP_TRUE@,$BUILD_IMAP_TRUE,;t t
16363 s,@BUILD_IMAP_FALSE@,$BUILD_IMAP_FALSE,;t t
16364 s,@KRB5CFGPATH@,$KRB5CFGPATH,;t t
16365 s,@USE_GSS_TRUE@,$USE_GSS_TRUE,;t t
16366 s,@USE_GSS_FALSE@,$USE_GSS_FALSE,;t t
16367 s,@USE_SSL_TRUE@,$USE_SSL_TRUE,;t t
16368 s,@USE_SSL_FALSE@,$USE_SSL_FALSE,;t t
16369 s,@USE_GNUTLS_TRUE@,$USE_GNUTLS_TRUE,;t t
16370 s,@USE_GNUTLS_FALSE@,$USE_GNUTLS_FALSE,;t t
16371 s,@USE_SASL_TRUE@,$USE_SASL_TRUE,;t t
16372 s,@USE_SASL_FALSE@,$USE_SASL_FALSE,;t t
16373 s,@MUTTLIBS@,$MUTTLIBS,;t t
16374 s,@MUTT_LIB_OBJECTS@,$MUTT_LIB_OBJECTS,;t t
16375 s,@LIBIMAP@,$LIBIMAP,;t t
16376 s,@LIBIMAPDEPS@,$LIBIMAPDEPS,;t t
16377 s,@ALLOCA@,$ALLOCA,;t t
16378 s,@GLIBC21@,$GLIBC21,;t t
16379 s,@LIBICONV@,$LIBICONV,;t t
16380 s,@USE_NLS@,$USE_NLS,;t t
16381 s,@MSGFMT@,$MSGFMT,;t t
16382 s,@GMSGFMT@,$GMSGFMT,;t t
16383 s,@XGETTEXT@,$XGETTEXT,;t t
16384 s,@INTLBISON@,$INTLBISON,;t t
16385 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
16386 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
16387 s,@CATALOGS@,$CATALOGS,;t t
16388 s,@CATOBJEXT@,$CATOBJEXT,;t t
16389 s,@GMOFILES@,$GMOFILES,;t t
16390 s,@INTLLIBS@,$INTLLIBS,;t t
16391 s,@INTLOBJS@,$INTLOBJS,;t t
16392 s,@POFILES@,$POFILES,;t t
16393 s,@POSUB@,$POSUB,;t t
16394 s,@DATADIRNAME@,$DATADIRNAME,;t t
16395 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
16396 s,@GENCAT@,$GENCAT,;t t
16397 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
16398 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
16399 s,@mutt_libesmtp_config_path@,$mutt_libesmtp_config_path,;t t
16400 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16405 cat >>$CONFIG_STATUS <<\_ACEOF
16406 # Split the substitutions into bite-sized pieces for seds with
16407 # small command number limits, like on Digital OSF/1 and HP-UX.
16408 ac_max_sed_lines=48
16409 ac_sed_frag=1 # Number of current file.
16410 ac_beg=1 # First line for current file.
16411 ac_end=$ac_max_sed_lines # Line after last line for current file.
16414 while $ac_more_lines; do
16415 if test $ac_beg -gt 1; then
16416 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16418 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16420 if test ! -s $tmp/subs.frag; then
16421 ac_more_lines=false
16423 # The purpose of the label and of the branching condition is to
16424 # speed up the sed processing (if there are no `@' at all, there
16425 # is no need to browse any of the substitutions).
16426 # These are the two extra sed commands mentioned above.
16428 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16429 if test -z "$ac_sed_cmds"; then
16430 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16432 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16434 ac_sed_frag=`expr $ac_sed_frag + 1`
16436 ac_end=`expr $ac_end + $ac_max_sed_lines`
16439 if test -z "$ac_sed_cmds"; then
16442 fi # test -n "$CONFIG_FILES"
16445 cat >>$CONFIG_STATUS <<\_ACEOF
16446 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16447 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16449 - | *:- | *:-:* ) # input from stdin
16451 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16452 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16453 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16454 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16455 * ) ac_file_in=$ac_file.in ;;
16458 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16459 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16460 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16461 X"$ac_file" : 'X\(//\)[^/]' \| \
16462 X"$ac_file" : 'X\(//\)$' \| \
16463 X"$ac_file" : 'X\(/\)' \| \
16464 . : '\(.\)' 2>/dev/null ||
16466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16467 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16468 /^X\(\/\/\)$/{ s//\1/; q; }
16469 /^X\(\/\).*/{ s//\1/; q; }
16471 { if $as_mkdir_p; then
16476 while test ! -d "$as_dir"; do
16477 as_dirs="$as_dir $as_dirs"
16478 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16479 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16480 X"$as_dir" : 'X\(//\)[^/]' \| \
16481 X"$as_dir" : 'X\(//\)$' \| \
16482 X"$as_dir" : 'X\(/\)' \| \
16483 . : '\(.\)' 2>/dev/null ||
16485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16486 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16487 /^X\(\/\/\)$/{ s//\1/; q; }
16488 /^X\(\/\).*/{ s//\1/; q; }
16491 test ! -n "$as_dirs" || mkdir $as_dirs
16492 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16493 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16494 { (exit 1); exit 1; }; }; }
16498 if test "$ac_dir" != .; then
16499 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16500 # A "../" for each directory in $ac_dir_suffix.
16501 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16503 ac_dir_suffix= ac_top_builddir=
16507 .) # No --srcdir option. We are building in place.
16509 if test -z "$ac_top_builddir"; then
16512 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16514 [\\/]* | ?:[\\/]* ) # Absolute path.
16515 ac_srcdir=$srcdir$ac_dir_suffix;
16516 ac_top_srcdir=$srcdir ;;
16517 *) # Relative path.
16518 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16519 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16521 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16523 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16524 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16525 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16526 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16530 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16531 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16534 if test x"$ac_file" != x-; then
16535 { echo "$as_me:$LINENO: creating $ac_file" >&5
16536 echo "$as_me: creating $ac_file" >&6;}
16539 # Let's still pretend it is `configure' which instantiates (i.e., don't
16540 # use $as_me), people would be surprised to read:
16541 # /* config.h. Generated by config.status. */
16542 if test x"$ac_file" = x-; then
16545 configure_input="$ac_file. "
16547 configure_input=$configure_input"Generated from `echo $ac_file_in |
16548 sed 's,.*/,,'` by configure."
16550 # First look for the input files in the build tree, otherwise in the
16552 ac_file_inputs=`IFS=:
16553 for f in $ac_file_in; do
16555 -) echo $tmp/stdin ;;
16557 # Absolute (can't be DOS-style, as IFS=:)
16558 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16559 echo "$as_me: error: cannot find input file: $f" >&2;}
16560 { (exit 1); exit 1; }; }
16563 if test -f "$f"; then
16566 elif test -f "$srcdir/$f"; then
16571 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16572 echo "$as_me: error: cannot find input file: $f" >&2;}
16573 { (exit 1); exit 1; }; }
16576 done` || { (exit 1); exit 1; }
16578 cat >>$CONFIG_STATUS <<_ACEOF
16582 cat >>$CONFIG_STATUS <<\_ACEOF
16584 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16585 s,@configure_input@,$configure_input,;t t
16586 s,@srcdir@,$ac_srcdir,;t t
16587 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16588 s,@top_srcdir@,$ac_top_srcdir,;t t
16589 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16590 s,@builddir@,$ac_builddir,;t t
16591 s,@abs_builddir@,$ac_abs_builddir,;t t
16592 s,@top_builddir@,$ac_top_builddir,;t t
16593 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16594 s,@INSTALL@,$ac_INSTALL,;t t
16595 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16597 if test x"$ac_file" != x-; then
16598 mv $tmp/out $ac_file
16606 cat >>$CONFIG_STATUS <<\_ACEOF
16609 # CONFIG_HEADER section.
16612 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16613 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16615 # ac_d sets the value in "#define NAME VALUE" lines.
16616 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
16617 ac_dB='[ ].*$,\1#\2'
16620 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16621 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
16622 ac_uB='$,\1#\2define\3'
16626 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16627 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16629 - | *:- | *:-:* ) # input from stdin
16631 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16632 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16633 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16634 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16635 * ) ac_file_in=$ac_file.in ;;
16638 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16639 echo "$as_me: creating $ac_file" >&6;}
16641 # First look for the input files in the build tree, otherwise in the
16643 ac_file_inputs=`IFS=:
16644 for f in $ac_file_in; do
16646 -) echo $tmp/stdin ;;
16648 # Absolute (can't be DOS-style, as IFS=:)
16649 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16650 echo "$as_me: error: cannot find input file: $f" >&2;}
16651 { (exit 1); exit 1; }; }
16654 if test -f "$f"; then
16657 elif test -f "$srcdir/$f"; then
16662 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16663 echo "$as_me: error: cannot find input file: $f" >&2;}
16664 { (exit 1); exit 1; }; }
16667 done` || { (exit 1); exit 1; }
16668 # Remove the trailing spaces.
16669 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
16673 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16674 # `conftest.undefs', that substitutes the proper values into
16675 # config.h.in to produce config.h. The first handles `#define'
16676 # templates, and the second `#undef' templates.
16677 # And first: Protect against being on the right side of a sed subst in
16678 # config.status. Protect against being in an unquoted here document
16679 # in config.status.
16680 rm -f conftest.defines conftest.undefs
16681 # Using a here document instead of a string reduces the quoting nightmare.
16682 # Putting comments in sed scripts is not portable.
16684 # `end' is used to avoid that the second main sed command (meant for
16685 # 0-ary CPP macros) applies to n-ary macro definitions.
16686 # See the Autoconf documentation for `clear'.
16687 cat >confdef2sed.sed <<\_ACEOF
16692 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16694 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16697 # If some macros were called several times there might be several times
16698 # the same #defines, which is useless. Nevertheless, we may not want to
16699 # sort them, since we want the *last* AC-DEFINE to be honored.
16700 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16701 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16702 rm -f confdef2sed.sed
16704 # This sed command replaces #undef with comments. This is necessary, for
16705 # example, in the case of _POSIX_SOURCE, which is predefined and required
16706 # on some systems where configure will not decide to define it.
16707 cat >>conftest.undefs <<\_ACEOF
16708 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16711 # Break up conftest.defines because some shells have a limit on the size
16712 # of here documents, and old seds have small limits too (100 cmds).
16713 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16714 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16715 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16716 echo ' :' >>$CONFIG_STATUS
16717 rm -f conftest.tail
16718 while grep . conftest.defines >/dev/null
16720 # Write a limited-size here document to $tmp/defines.sed.
16721 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16722 # Speed up: don't consider the non `#define' lines.
16723 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
16724 # Work around the forget-to-reset-the-flag bug.
16725 echo 't clr' >>$CONFIG_STATUS
16726 echo ': clr' >>$CONFIG_STATUS
16727 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16729 sed -f $tmp/defines.sed $tmp/in >$tmp/out
16731 mv $tmp/out $tmp/in
16733 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16734 rm -f conftest.defines
16735 mv conftest.tail conftest.defines
16737 rm -f conftest.defines
16738 echo ' fi # grep' >>$CONFIG_STATUS
16739 echo >>$CONFIG_STATUS
16741 # Break up conftest.undefs because some shells have a limit on the size
16742 # of here documents, and old seds have small limits too (100 cmds).
16743 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
16744 rm -f conftest.tail
16745 while grep . conftest.undefs >/dev/null
16747 # Write a limited-size here document to $tmp/undefs.sed.
16748 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16749 # Speed up: don't consider the non `#undef'
16750 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
16751 # Work around the forget-to-reset-the-flag bug.
16752 echo 't clr' >>$CONFIG_STATUS
16753 echo ': clr' >>$CONFIG_STATUS
16754 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16756 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16758 mv $tmp/out $tmp/in
16760 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16761 rm -f conftest.undefs
16762 mv conftest.tail conftest.undefs
16764 rm -f conftest.undefs
16766 cat >>$CONFIG_STATUS <<\_ACEOF
16767 # Let's still pretend it is `configure' which instantiates (i.e., don't
16768 # use $as_me), people would be surprised to read:
16769 # /* config.h. Generated by config.status. */
16770 if test x"$ac_file" = x-; then
16771 echo "/* Generated by configure. */" >$tmp/config.h
16773 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
16775 cat $tmp/in >>$tmp/config.h
16777 if test x"$ac_file" != x-; then
16778 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16779 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16780 echo "$as_me: $ac_file is unchanged" >&6;}
16782 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16783 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16784 X"$ac_file" : 'X\(//\)[^/]' \| \
16785 X"$ac_file" : 'X\(//\)$' \| \
16786 X"$ac_file" : 'X\(/\)' \| \
16787 . : '\(.\)' 2>/dev/null ||
16789 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16790 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16791 /^X\(\/\/\)$/{ s//\1/; q; }
16792 /^X\(\/\).*/{ s//\1/; q; }
16794 { if $as_mkdir_p; then
16799 while test ! -d "$as_dir"; do
16800 as_dirs="$as_dir $as_dirs"
16801 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16802 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16803 X"$as_dir" : 'X\(//\)[^/]' \| \
16804 X"$as_dir" : 'X\(//\)$' \| \
16805 X"$as_dir" : 'X\(/\)' \| \
16806 . : '\(.\)' 2>/dev/null ||
16808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16809 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16810 /^X\(\/\/\)$/{ s//\1/; q; }
16811 /^X\(\/\).*/{ s//\1/; q; }
16814 test ! -n "$as_dirs" || mkdir $as_dirs
16815 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16816 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16817 { (exit 1); exit 1; }; }; }
16820 mv $tmp/config.h $ac_file
16824 rm -f $tmp/config.h
16826 # Compute $ac_file's index in $config_headers.
16828 for _am_header in $config_headers :; do
16829 case $_am_header in
16830 $ac_file | $ac_file:* )
16833 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16836 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
16837 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16838 X$ac_file : 'X\(//\)[^/]' \| \
16839 X$ac_file : 'X\(//\)$' \| \
16840 X$ac_file : 'X\(/\)' \| \
16841 . : '\(.\)' 2>/dev/null ||
16843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16844 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16845 /^X\(\/\/\)$/{ s//\1/; q; }
16846 /^X\(\/\).*/{ s//\1/; q; }
16847 s/.*/./; q'`/stamp-h$_am_stamp_count
16850 cat >>$CONFIG_STATUS <<\_ACEOF
16853 # CONFIG_COMMANDS section.
16855 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16856 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16857 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16858 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16859 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16860 X"$ac_dest" : 'X\(//\)[^/]' \| \
16861 X"$ac_dest" : 'X\(//\)$' \| \
16862 X"$ac_dest" : 'X\(/\)' \| \
16863 . : '\(.\)' 2>/dev/null ||
16865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16867 /^X\(\/\/\)$/{ s//\1/; q; }
16868 /^X\(\/\).*/{ s//\1/; q; }
16872 if test "$ac_dir" != .; then
16873 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16874 # A "../" for each directory in $ac_dir_suffix.
16875 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16877 ac_dir_suffix= ac_top_builddir=
16881 .) # No --srcdir option. We are building in place.
16883 if test -z "$ac_top_builddir"; then
16886 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16888 [\\/]* | ?:[\\/]* ) # Absolute path.
16889 ac_srcdir=$srcdir$ac_dir_suffix;
16890 ac_top_srcdir=$srcdir ;;
16891 *) # Relative path.
16892 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16893 ac_top_srcdir=$ac_top_builddir$srcdir ;;
16895 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16897 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16898 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16899 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16900 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16903 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16904 echo "$as_me: executing $ac_dest commands" >&6;}
16906 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16907 # Strip MF so we end up with the name of the file.
16908 mf=`echo "$mf" | sed -e 's/:.*$//'`
16909 # Check whether this is an Automake generated Makefile or not.
16910 # We used to match only the files named `Makefile.in', but
16911 # some people rename them; so instead we look at the file content.
16912 # Grep'ing the first line is not enough: some people post-process
16913 # each Makefile.in and add a new line on top of each file to say so.
16914 # So let's grep whole file.
16915 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
16916 dirpart=`(dirname "$mf") 2>/dev/null ||
16917 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16918 X"$mf" : 'X\(//\)[^/]' \| \
16919 X"$mf" : 'X\(//\)$' \| \
16920 X"$mf" : 'X\(/\)' \| \
16921 . : '\(.\)' 2>/dev/null ||
16923 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16924 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16925 /^X\(\/\/\)$/{ s//\1/; q; }
16926 /^X\(\/\).*/{ s//\1/; q; }
16931 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
16932 # Extract the definition of DEP_FILES from the Makefile without
16934 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
16935 test -z "$DEPDIR" && continue
16936 # When using ansi2knr, U may be empty or an underscore; expand it
16937 U=`sed -n -e '/^U = / s///p' < "$mf"`
16938 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
16939 # We invoke sed twice because it is the simplest approach to
16940 # changing $(DEPDIR) to its actual value in the expansion.
16941 for file in `sed -n -e '
16942 /^DEP_FILES = .*\\\\$/ {
16951 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
16952 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16953 # Make sure the directory exists.
16954 test -f "$dirpart/$file" && continue
16955 fdir=`(dirname "$file") 2>/dev/null ||
16956 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16957 X"$file" : 'X\(//\)[^/]' \| \
16958 X"$file" : 'X\(//\)$' \| \
16959 X"$file" : 'X\(/\)' \| \
16960 . : '\(.\)' 2>/dev/null ||
16962 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16963 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16964 /^X\(\/\/\)$/{ s//\1/; q; }
16965 /^X\(\/\).*/{ s//\1/; q; }
16967 { if $as_mkdir_p; then
16968 mkdir -p $dirpart/$fdir
16970 as_dir=$dirpart/$fdir
16972 while test ! -d "$as_dir"; do
16973 as_dirs="$as_dir $as_dirs"
16974 as_dir=`(dirname "$as_dir") 2>/dev/null ||
16975 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16976 X"$as_dir" : 'X\(//\)[^/]' \| \
16977 X"$as_dir" : 'X\(//\)$' \| \
16978 X"$as_dir" : 'X\(/\)' \| \
16979 . : '\(.\)' 2>/dev/null ||
16981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16982 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16983 /^X\(\/\/\)$/{ s//\1/; q; }
16984 /^X\(\/\).*/{ s//\1/; q; }
16987 test ! -n "$as_dirs" || mkdir $as_dirs
16988 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
16989 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
16990 { (exit 1); exit 1; }; }; }
16992 # echo "creating $dirpart/$file"
16993 echo '# dummy' > "$dirpart/$file"
16997 default-1 ) for ac_file in $CONFIG_FILES; do
16998 # Support "outfile[:infile[:infile...]]"
17000 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17002 # PO directories have a Makefile.in generated from Makefile.in.in.
17003 case "$ac_file" in */Makefile.in)
17004 # Adjust a relative srcdir.
17005 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17006 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17007 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17008 # In autoconf-2.13 it is called $ac_given_srcdir.
17009 # In autoconf-2.50 it is called $srcdir.
17010 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17011 case "$ac_given_srcdir" in
17012 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17013 /*) top_srcdir="$ac_given_srcdir" ;;
17014 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17016 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17017 rm -f "$ac_dir/POTFILES"
17018 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17019 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
17020 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17021 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
17030 cat >>$CONFIG_STATUS <<\_ACEOF
17032 { (exit 0); exit 0; }
17034 chmod +x $CONFIG_STATUS
17035 ac_clean_files=$ac_clean_files_save
17038 # configure is writing to config.log, and then calls config.status.
17039 # config.status does its own redirection, appending to config.log.
17040 # Unfortunately, on DOS this fails, as config.log is still kept open
17041 # by configure, so config.status won't be able to write to it; its
17042 # output is simply discarded. So we exec the FD to /dev/null,
17043 # effectively closing config.log, so it can be properly (re)opened and
17044 # appended to by config.status. When coming back to configure, we
17045 # need to make the FD available again.
17046 if test "$no_create" != yes; then
17048 ac_config_status_args=
17049 test "$silent" = yes &&
17050 ac_config_status_args="$ac_config_status_args --quiet"
17052 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17054 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17055 # would make configure fail if this is the last instruction.
17056 $ac_cs_success || { (exit 1); exit 1; }