2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file="mutt.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP U ANSI2KNR RANLIB ac_ct_RANLIB AR ac_ct_AR DBX GDB SDB DEBUGGER SENDMAIL OPS PGPAUX_TARGET SMIMEAUX_TARGET SUBVERSION ISPELL LIBOBJS DOTLOCK_TARGET docdir DOTLOCK_GROUP DOTLOCK_PERMISSION BUILD_IMAP_TRUE BUILD_IMAP_FALSE KRB5CFGPATH USE_GSS_TRUE USE_GSS_FALSE USE_SSL_TRUE USE_SSL_FALSE USE_SASL_TRUE USE_SASL_FALSE MUTTLIBS MUTT_LIB_OBJECTS LIBIMAP LIBIMAPDEPS ALLOCA GLIBC21 LIBICONV USE_NLS MSGFMT GMSGFMT XGETTEXT INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT GMOFILES INTLLIBS INTLOBJS POFILES POSUB DATADIRNAME INSTOBJEXT GENCAT MKINSTALLDIRS INTL_LIBTOOL_SUFFIX_PREFIX mutt_libesmtp_config_path LTLIBOBJS'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
774 # Report the --help message.
776 if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
780 \`configure' configures this package to adapt to many kinds of systems.
782 Usage: $0 [OPTION]... [VAR=VALUE]...
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE. See below for descriptions of some of the useful variables.
787 Defaults for the options are specified in brackets.
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
803 Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
814 For better control, use the options below.
816 Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
834 --program-prefix=PREFIX prepend PREFIX to installed program names
835 --program-suffix=SUFFIX append SUFFIX to installed program names
836 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
839 --build=BUILD configure for building on BUILD [guessed]
840 --host=HOST cross-compile to build programs to run on HOST [BUILD]
844 if test -n "$ac_init_help"; then
849 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
850 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
851 --disable-dependency-tracking Speeds up one-time builds
852 --enable-dependency-tracking Do not reject slow dependency extractors
853 --disable-pgp Disable PGP support
854 --disable-smime Disable SMIME support
855 --enable-external-dotlock Force use of an external dotlock program
856 --enable-pop Enable POP3 support
857 --enable-imap Enable IMAP support
858 --enable-nntp Enable NNTP support
859 --enable-debug Enable debugging support
860 --enable-flock Use flock() to lock files
861 --disable-fcntl Do NOT use fcntl() to lock files
862 --disable-warnings Turn off compiler warnings (not recommended)
863 --enable-nfs-fix Work around an NFS with broken attributes caching
864 --enable-buffy-size Use file size attribute instead of access time
865 --enable-mailtool Enable Sun mailtool attachments support
866 --enable-locales-fix The result of isprint() is unreliable
867 --enable-exact-address Enable regeneration of email addresses
868 --disable-iconv Disable iconv support
869 --disable-nls Do not use Native Language Support
872 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
873 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
874 --with-mixmaster=PATH Include Mixmaster support
875 --with-slang=DIR Use S-Lang instead of ncurses
876 --with-curses=DIR Where ncurses is installed
877 --with-regex Use the GNU regex library
878 --with-homespool=FILE File in user's directory where new mail is spooled
879 --with-mailpath=DIR Directory where spool mailboxes are located
880 --with-docdir=PATH Specify where to put the documentation
881 --with-domain=DOMAIN Specify your DNS domain name
882 --with-gss=PFX Compile in GSSAPI authentication for IMAP
883 --with-ssl=PFX Compile in SSL support for POP/IMAP
884 --with-nss=PFX Compile in SSL support for POP/IMAP via NSS
885 --with-sasl=PFX Use Cyrus SASL library for POP/IMAP authentication
886 --with-sasl2=PFX Use Cyrus SASL library version 2 for POP/IMAP authentication
887 --with-idn=PFX Use GNU libidn for domain names
888 --with-exec-shell=SHELL Specify alternate shell (ONLY if /bin/sh is broken)
889 --with-libiconv-prefix=DIR Search for libiconv in DIR/include and DIR/lib
890 --with-included-gettext Use the GNU gettext library included here
891 --without-wc-funcs Do not use the system's wchar_t functions
892 --with-libesmtp=DIR Compile in support for libesmtp for the MTA
894 Some influential environment variables:
895 CC C compiler command
896 CFLAGS C compiler flags
897 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
898 nonstandard directory <lib dir>
899 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
900 headers in a nonstandard directory <include dir>
903 Use these variables to override the choices made by `configure' or to help
904 it to find libraries and programs with nonstandard names/locations.
909 if test "$ac_init_help" = "recursive"; then
910 # If there are subdirs, report their specific --help.
912 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
913 test -d $ac_dir || continue
916 if test "$ac_dir" != .; then
917 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
918 # A "../" for each directory in $ac_dir_suffix.
919 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
921 ac_dir_suffix= ac_top_builddir=
925 .) # No --srcdir option. We are building in place.
927 if test -z "$ac_top_builddir"; then
930 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
932 [\\/]* | ?:[\\/]* ) # Absolute path.
933 ac_srcdir=$srcdir$ac_dir_suffix;
934 ac_top_srcdir=$srcdir ;;
936 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
937 ac_top_srcdir=$ac_top_builddir$srcdir ;;
939 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
941 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
942 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
943 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
944 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
947 # Check for guested configure; otherwise get Cygnus style configure.
948 if test -f $ac_srcdir/configure.gnu; then
950 $SHELL $ac_srcdir/configure.gnu --help=recursive
951 elif test -f $ac_srcdir/configure; then
953 $SHELL $ac_srcdir/configure --help=recursive
954 elif test -f $ac_srcdir/configure.ac ||
955 test -f $ac_srcdir/configure.in; then
959 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
965 test -n "$ac_init_help" && exit 0
966 if $ac_init_version; then
969 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
970 Free Software Foundation, Inc.
971 This configure script is free software; the Free Software Foundation
972 gives unlimited permission to copy, distribute and modify it.
978 This file contains any messages produced by compilers while
979 running configure, to aid debugging if configure makes a mistake.
981 It was created by $as_me, which was
982 generated by GNU Autoconf 2.57. Invocation command line was
993 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
994 uname -m = `(uname -m) 2>/dev/null || echo unknown`
995 uname -r = `(uname -r) 2>/dev/null || echo unknown`
996 uname -s = `(uname -s) 2>/dev/null || echo unknown`
997 uname -v = `(uname -v) 2>/dev/null || echo unknown`
999 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1000 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1002 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1003 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1004 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1005 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1006 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1007 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1008 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1016 test -z "$as_dir" && as_dir=.
1017 echo "PATH: $as_dir"
1032 # Keep a trace of the command line.
1033 # Strip out --no-create and --no-recursion so they do not pile up.
1034 # Strip out --silent because we don't want to record it for future runs.
1035 # Also quote any args containing shell meta-characters.
1036 # Make two passes to allow for proper duplicate-argument suppression.
1041 ac_must_keep_next=false
1047 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1051 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1052 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1055 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1057 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1058 if test $ac_must_keep_next = true; then
1059 ac_must_keep_next=false # Got value, back to normal.
1062 *=* | --config-cache | -C | -disable-* | --disable-* \
1063 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1064 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1065 | -with-* | --with-* | -without-* | --without-* | --x)
1066 case "$ac_configure_args0 " in
1067 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1070 -* ) ac_must_keep_next=true ;;
1073 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1074 # Get rid of the leading space.
1080 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1081 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1083 # When interrupted or exit'd, cleanup temporary files, and complete
1084 # config.log. We remove comments because anyway the quotes in there
1085 # would cause problems or look ugly.
1086 # WARNING: Be sure not to use single quotes in there, as some shells,
1087 # such as our DU 5.0 friend, will then `close' the trap.
1088 trap 'exit_status=$?
1089 # Save into config.log some information that might help in debugging.
1094 ## ---------------- ##
1095 ## Cache variables. ##
1096 ## ---------------- ##
1099 # The following way of writing the cache mishandles newlines in values,
1102 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1105 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1106 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1110 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1117 ## ----------------- ##
1118 ## Output variables. ##
1119 ## ----------------- ##
1122 for ac_var in $ac_subst_vars
1124 eval ac_val=$`echo $ac_var`
1125 echo "$ac_var='"'"'$ac_val'"'"'"
1129 if test -n "$ac_subst_files"; then
1136 for ac_var in $ac_subst_files
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1144 if test -s confdefs.h; then
1151 sed "/^$/d" confdefs.h | sort
1154 test "$ac_signal" != 0 &&
1155 echo "$as_me: caught signal $ac_signal"
1156 echo "$as_me: exit $exit_status"
1158 rm -f core core.* *.core &&
1159 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1162 for ac_signal in 1 2 13 15; do
1163 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1167 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1168 rm -rf conftest* confdefs.h
1169 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1172 # Predefined preprocessor variables.
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_NAME "$PACKAGE_NAME"
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_STRING "$PACKAGE_STRING"
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1199 # Let the site file select an alternate cache file if it wants to.
1200 # Prefer explicitly selected file to automatically selected ones.
1201 if test -z "$CONFIG_SITE"; then
1202 if test "x$prefix" != xNONE; then
1203 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1205 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1208 for ac_site_file in $CONFIG_SITE; do
1209 if test -r "$ac_site_file"; then
1210 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1211 echo "$as_me: loading site script $ac_site_file" >&6;}
1212 sed 's/^/| /' "$ac_site_file" >&5
1217 if test -r "$cache_file"; then
1218 # Some versions of bash will fail to source /dev/null (special
1219 # files actually), so we avoid doing that.
1220 if test -f "$cache_file"; then
1221 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1222 echo "$as_me: loading cache $cache_file" >&6;}
1224 [\\/]* | ?:[\\/]* ) . $cache_file;;
1225 *) . ./$cache_file;;
1229 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1230 echo "$as_me: creating cache $cache_file" >&6;}
1234 # Check that the precious variables saved in the cache have kept the same
1236 ac_cache_corrupted=false
1237 for ac_var in `(set) 2>&1 |
1238 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1239 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1240 eval ac_new_set=\$ac_env_${ac_var}_set
1241 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1242 eval ac_new_val="\$ac_env_${ac_var}_value"
1243 case $ac_old_set,$ac_new_set in
1245 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1246 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1247 ac_cache_corrupted=: ;;
1249 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1250 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1251 ac_cache_corrupted=: ;;
1254 if test "x$ac_old_val" != "x$ac_new_val"; then
1255 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1256 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1257 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1258 echo "$as_me: former value: $ac_old_val" >&2;}
1259 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1260 echo "$as_me: current value: $ac_new_val" >&2;}
1261 ac_cache_corrupted=:
1264 # Pass precious variables to config.status.
1265 if test "$ac_new_set" = set; then
1267 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1268 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1269 *) ac_arg=$ac_var=$ac_new_val ;;
1271 case " $ac_configure_args " in
1272 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1273 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1277 if $ac_cache_corrupted; then
1278 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1279 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1280 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1281 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1282 { (exit 1); exit 1; }; }
1286 ac_cpp='$CPP $CPPFLAGS'
1287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1309 ac_config_headers="$ac_config_headers config.h"
1312 mutt_cv_version=`cat $srcdir/VERSION`
1315 am__api_version="1.7"
1317 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1318 if test -f $ac_dir/install-sh; then
1320 ac_install_sh="$ac_aux_dir/install-sh -c"
1322 elif test -f $ac_dir/install.sh; then
1324 ac_install_sh="$ac_aux_dir/install.sh -c"
1326 elif test -f $ac_dir/shtool; then
1328 ac_install_sh="$ac_aux_dir/shtool install -c"
1332 if test -z "$ac_aux_dir"; then
1333 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1334 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1335 { (exit 1); exit 1; }; }
1337 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1338 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1339 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1341 # Find a good install program. We prefer a C program (faster),
1342 # so one script is as good as another. But avoid the broken or
1343 # incompatible versions:
1344 # SysV /etc/install, /usr/sbin/install
1345 # SunOS /usr/etc/install
1346 # IRIX /sbin/install
1348 # AmigaOS /C/install, which installs bootblocks on floppy discs
1349 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1350 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1351 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1352 # ./install, which can be erroneously created by make from ./install.sh.
1353 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1354 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1355 if test -z "$INSTALL"; then
1356 if test "${ac_cv_path_install+set}" = set; then
1357 echo $ECHO_N "(cached) $ECHO_C" >&6
1359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1363 test -z "$as_dir" && as_dir=.
1364 # Account for people who put trailing slashes in PATH elements.
1366 ./ | .// | /cC/* | \
1367 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1370 # OSF1 and SCO ODT 3.0 have their own names for install.
1371 # Don't use installbsd from OSF since it installs stuff as root
1373 for ac_prog in ginstall scoinst install; do
1374 for ac_exec_ext in '' $ac_executable_extensions; do
1375 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1376 if test $ac_prog = install &&
1377 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1378 # AIX install. It has an incompatible calling convention.
1380 elif test $ac_prog = install &&
1381 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1382 # program-specific install script used by HP pwplus--don't use.
1385 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1397 if test "${ac_cv_path_install+set}" = set; then
1398 INSTALL=$ac_cv_path_install
1400 # As a last resort, use the slow shell script. We don't cache a
1401 # path for INSTALL within a source directory, because that will
1402 # break other packages using the cache if that directory is
1403 # removed, or if the path is relative.
1404 INSTALL=$ac_install_sh
1407 echo "$as_me:$LINENO: result: $INSTALL" >&5
1408 echo "${ECHO_T}$INSTALL" >&6
1410 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1411 # It thinks the first close brace ends the variable substitution.
1412 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1414 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1416 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1418 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1419 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1422 echo timestamp > conftest.file
1423 # Do `set' in a subshell so we don't clobber the current shell's
1424 # arguments. Must try -L first in case configure is actually a
1425 # symlink; some systems play weird games with the mod time of symlinks
1426 # (eg FreeBSD returns the mod time of the symlink's containing
1429 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1430 if test "$*" = "X"; then
1432 set X `ls -t $srcdir/configure conftest.file`
1435 if test "$*" != "X $srcdir/configure conftest.file" \
1436 && test "$*" != "X conftest.file $srcdir/configure"; then
1438 # If neither matched, then we have a broken ls. This can happen
1439 # if, for instance, CONFIG_SHELL is bash and it inherits a
1440 # broken ls alias from the environment. This has actually
1441 # happened. Such a system could not be considered "sane".
1442 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1443 alias in your environment" >&5
1444 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1445 alias in your environment" >&2;}
1446 { (exit 1); exit 1; }; }
1449 test "$2" = conftest.file
1455 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1456 Check your system clock" >&5
1457 echo "$as_me: error: newly created file is older than distributed files!
1458 Check your system clock" >&2;}
1459 { (exit 1); exit 1; }; }
1461 echo "$as_me:$LINENO: result: yes" >&5
1462 echo "${ECHO_T}yes" >&6
1463 test "$program_prefix" != NONE &&
1464 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1465 # Use a double $ so make ignores it.
1466 test "$program_suffix" != NONE &&
1467 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1468 # Double any \ or $. echo might interpret backslashes.
1469 # By default was `s,x,x', remove it if useless.
1470 cat <<\_ACEOF >conftest.sed
1471 s/[\\$]/&&/g;s/;s,x,x,$//
1473 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1477 # expand $ac_aux_dir to an absolute path
1478 am_aux_dir=`cd $ac_aux_dir && pwd`
1480 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1481 # Use eval to expand $SHELL
1482 if eval "$MISSING --run true"; then
1483 am_missing_run="$MISSING --run "
1486 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1487 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1490 for ac_prog in gawk mawk nawk awk
1492 # Extract the first word of "$ac_prog", so it can be a program name with args.
1493 set dummy $ac_prog; ac_word=$2
1494 echo "$as_me:$LINENO: checking for $ac_word" >&5
1495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1496 if test "${ac_cv_prog_AWK+set}" = set; then
1497 echo $ECHO_N "(cached) $ECHO_C" >&6
1499 if test -n "$AWK"; then
1500 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1506 test -z "$as_dir" && as_dir=.
1507 for ac_exec_ext in '' $ac_executable_extensions; do
1508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1509 ac_cv_prog_AWK="$ac_prog"
1510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1519 if test -n "$AWK"; then
1520 echo "$as_me:$LINENO: result: $AWK" >&5
1521 echo "${ECHO_T}$AWK" >&6
1523 echo "$as_me:$LINENO: result: no" >&5
1524 echo "${ECHO_T}no" >&6
1527 test -n "$AWK" && break
1530 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1531 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1532 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1533 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1534 echo $ECHO_N "(cached) $ECHO_C" >&6
1536 cat >conftest.make <<\_ACEOF
1538 @echo 'ac_maketemp="$(MAKE)"'
1540 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1541 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1542 if test -n "$ac_maketemp"; then
1543 eval ac_cv_prog_make_${ac_make}_set=yes
1545 eval ac_cv_prog_make_${ac_make}_set=no
1549 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1550 echo "$as_me:$LINENO: result: yes" >&5
1551 echo "${ECHO_T}yes" >&6
1554 echo "$as_me:$LINENO: result: no" >&5
1555 echo "${ECHO_T}no" >&6
1556 SET_MAKE="MAKE=${MAKE-make}"
1559 rm -rf .tst 2>/dev/null
1560 mkdir .tst 2>/dev/null
1561 if test -d .tst; then
1566 rmdir .tst 2>/dev/null
1568 # test to see if srcdir already configured
1569 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1570 test -f $srcdir/config.status; then
1571 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1572 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1573 { (exit 1); exit 1; }; }
1576 # test whether we have cygpath
1577 if test -z "$CYGPATH_W"; then
1578 if (cygpath --version) >/dev/null 2>/dev/null; then
1579 CYGPATH_W='cygpath -w'
1586 # Define the identity of the package.
1588 VERSION=$mutt_cv_version
1591 cat >>confdefs.h <<_ACEOF
1592 #define PACKAGE "$PACKAGE"
1596 cat >>confdefs.h <<_ACEOF
1597 #define VERSION "$VERSION"
1600 # Some tools Automake needs.
1602 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1605 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1608 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1611 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1614 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1617 AMTAR=${AMTAR-"${am_missing_run}tar"}
1619 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1621 # Installed binaries are usually stripped using `strip' when the user
1622 # run `make install-strip'. However `strip' might not be the right
1623 # tool to use in cross-compilation environments, therefore Automake
1624 # will honor the `STRIP' environment variable to overrule this program.
1625 if test "$cross_compiling" != no; then
1626 if test -n "$ac_tool_prefix"; then
1627 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1628 set dummy ${ac_tool_prefix}strip; ac_word=$2
1629 echo "$as_me:$LINENO: checking for $ac_word" >&5
1630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1631 if test "${ac_cv_prog_STRIP+set}" = set; then
1632 echo $ECHO_N "(cached) $ECHO_C" >&6
1634 if test -n "$STRIP"; then
1635 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1641 test -z "$as_dir" && as_dir=.
1642 for ac_exec_ext in '' $ac_executable_extensions; do
1643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1644 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1653 STRIP=$ac_cv_prog_STRIP
1654 if test -n "$STRIP"; then
1655 echo "$as_me:$LINENO: result: $STRIP" >&5
1656 echo "${ECHO_T}$STRIP" >&6
1658 echo "$as_me:$LINENO: result: no" >&5
1659 echo "${ECHO_T}no" >&6
1663 if test -z "$ac_cv_prog_STRIP"; then
1665 # Extract the first word of "strip", so it can be a program name with args.
1666 set dummy strip; ac_word=$2
1667 echo "$as_me:$LINENO: checking for $ac_word" >&5
1668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1669 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1670 echo $ECHO_N "(cached) $ECHO_C" >&6
1672 if test -n "$ac_ct_STRIP"; then
1673 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1679 test -z "$as_dir" && as_dir=.
1680 for ac_exec_ext in '' $ac_executable_extensions; do
1681 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1682 ac_cv_prog_ac_ct_STRIP="strip"
1683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1689 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1692 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1693 if test -n "$ac_ct_STRIP"; then
1694 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1695 echo "${ECHO_T}$ac_ct_STRIP" >&6
1697 echo "$as_me:$LINENO: result: no" >&5
1698 echo "${ECHO_T}no" >&6
1703 STRIP="$ac_cv_prog_STRIP"
1707 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1709 # We need awk for the "check" target. The system "awk" is bad on
1717 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"
1719 # Make sure we can run config.sub.
1720 $ac_config_sub sun4 >/dev/null 2>&1 ||
1721 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1722 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1723 { (exit 1); exit 1; }; }
1725 echo "$as_me:$LINENO: checking build system type" >&5
1726 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1727 if test "${ac_cv_build+set}" = set; then
1728 echo $ECHO_N "(cached) $ECHO_C" >&6
1730 ac_cv_build_alias=$build_alias
1731 test -z "$ac_cv_build_alias" &&
1732 ac_cv_build_alias=`$ac_config_guess`
1733 test -z "$ac_cv_build_alias" &&
1734 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1735 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1736 { (exit 1); exit 1; }; }
1737 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1738 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1739 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1740 { (exit 1); exit 1; }; }
1743 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1744 echo "${ECHO_T}$ac_cv_build" >&6
1746 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1747 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1748 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1751 echo "$as_me:$LINENO: checking host system type" >&5
1752 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1753 if test "${ac_cv_host+set}" = set; then
1754 echo $ECHO_N "(cached) $ECHO_C" >&6
1756 ac_cv_host_alias=$host_alias
1757 test -z "$ac_cv_host_alias" &&
1758 ac_cv_host_alias=$ac_cv_build_alias
1759 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1760 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1761 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1762 { (exit 1); exit 1; }; }
1765 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1766 echo "${ECHO_T}$ac_cv_host" >&6
1768 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1769 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1770 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1774 echo "$as_me:$LINENO: checking for prefix" >&5
1775 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1776 if test x$prefix = xNONE; then
1777 mutt_cv_prefix=$ac_default_prefix
1779 mutt_cv_prefix=$prefix
1781 echo "$as_me:$LINENO: result: $mutt_cv_prefix" >&5
1782 echo "${ECHO_T}$mutt_cv_prefix" >&6
1785 ac_cpp='$CPP $CPPFLAGS'
1786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1789 if test -n "$ac_tool_prefix"; then
1790 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1791 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1792 echo "$as_me:$LINENO: checking for $ac_word" >&5
1793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1794 if test "${ac_cv_prog_CC+set}" = set; then
1795 echo $ECHO_N "(cached) $ECHO_C" >&6
1797 if test -n "$CC"; then
1798 ac_cv_prog_CC="$CC" # Let the user override the test.
1800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1804 test -z "$as_dir" && as_dir=.
1805 for ac_exec_ext in '' $ac_executable_extensions; do
1806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1807 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1817 if test -n "$CC"; then
1818 echo "$as_me:$LINENO: result: $CC" >&5
1819 echo "${ECHO_T}$CC" >&6
1821 echo "$as_me:$LINENO: result: no" >&5
1822 echo "${ECHO_T}no" >&6
1826 if test -z "$ac_cv_prog_CC"; then
1828 # Extract the first word of "gcc", so it can be a program name with args.
1829 set dummy gcc; ac_word=$2
1830 echo "$as_me:$LINENO: checking for $ac_word" >&5
1831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1832 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1833 echo $ECHO_N "(cached) $ECHO_C" >&6
1835 if test -n "$ac_ct_CC"; then
1836 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1842 test -z "$as_dir" && as_dir=.
1843 for ac_exec_ext in '' $ac_executable_extensions; do
1844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1845 ac_cv_prog_ac_ct_CC="gcc"
1846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1854 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1855 if test -n "$ac_ct_CC"; then
1856 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1857 echo "${ECHO_T}$ac_ct_CC" >&6
1859 echo "$as_me:$LINENO: result: no" >&5
1860 echo "${ECHO_T}no" >&6
1868 if test -z "$CC"; then
1869 if test -n "$ac_tool_prefix"; then
1870 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1871 set dummy ${ac_tool_prefix}cc; ac_word=$2
1872 echo "$as_me:$LINENO: checking for $ac_word" >&5
1873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1874 if test "${ac_cv_prog_CC+set}" = set; then
1875 echo $ECHO_N "(cached) $ECHO_C" >&6
1877 if test -n "$CC"; then
1878 ac_cv_prog_CC="$CC" # Let the user override the test.
1880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1884 test -z "$as_dir" && as_dir=.
1885 for ac_exec_ext in '' $ac_executable_extensions; do
1886 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1887 ac_cv_prog_CC="${ac_tool_prefix}cc"
1888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1897 if test -n "$CC"; then
1898 echo "$as_me:$LINENO: result: $CC" >&5
1899 echo "${ECHO_T}$CC" >&6
1901 echo "$as_me:$LINENO: result: no" >&5
1902 echo "${ECHO_T}no" >&6
1906 if test -z "$ac_cv_prog_CC"; then
1908 # Extract the first word of "cc", so it can be a program name with args.
1909 set dummy cc; ac_word=$2
1910 echo "$as_me:$LINENO: checking for $ac_word" >&5
1911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1912 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1913 echo $ECHO_N "(cached) $ECHO_C" >&6
1915 if test -n "$ac_ct_CC"; then
1916 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1922 test -z "$as_dir" && as_dir=.
1923 for ac_exec_ext in '' $ac_executable_extensions; do
1924 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1925 ac_cv_prog_ac_ct_CC="cc"
1926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1934 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1935 if test -n "$ac_ct_CC"; then
1936 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1937 echo "${ECHO_T}$ac_ct_CC" >&6
1939 echo "$as_me:$LINENO: result: no" >&5
1940 echo "${ECHO_T}no" >&6
1949 if test -z "$CC"; then
1950 # Extract the first word of "cc", so it can be a program name with args.
1951 set dummy cc; ac_word=$2
1952 echo "$as_me:$LINENO: checking for $ac_word" >&5
1953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1954 if test "${ac_cv_prog_CC+set}" = set; then
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
1957 if test -n "$CC"; then
1958 ac_cv_prog_CC="$CC" # Let the user override the test.
1961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1965 test -z "$as_dir" && as_dir=.
1966 for ac_exec_ext in '' $ac_executable_extensions; do
1967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1968 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1969 ac_prog_rejected=yes
1973 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1979 if test $ac_prog_rejected = yes; then
1980 # We found a bogon in the path, so make sure we never use it.
1981 set dummy $ac_cv_prog_CC
1983 if test $# != 0; then
1984 # We chose a different compiler from the bogus one.
1985 # However, it has the same basename, so the bogon will be chosen
1986 # first if we set CC to just the basename; use the full file name.
1988 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1994 if test -n "$CC"; then
1995 echo "$as_me:$LINENO: result: $CC" >&5
1996 echo "${ECHO_T}$CC" >&6
1998 echo "$as_me:$LINENO: result: no" >&5
1999 echo "${ECHO_T}no" >&6
2003 if test -z "$CC"; then
2004 if test -n "$ac_tool_prefix"; then
2007 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2008 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2009 echo "$as_me:$LINENO: checking for $ac_word" >&5
2010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2011 if test "${ac_cv_prog_CC+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2014 if test -n "$CC"; then
2015 ac_cv_prog_CC="$CC" # Let the user override the test.
2017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021 test -z "$as_dir" && as_dir=.
2022 for ac_exec_ext in '' $ac_executable_extensions; do
2023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2024 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2034 if test -n "$CC"; then
2035 echo "$as_me:$LINENO: result: $CC" >&5
2036 echo "${ECHO_T}$CC" >&6
2038 echo "$as_me:$LINENO: result: no" >&5
2039 echo "${ECHO_T}no" >&6
2042 test -n "$CC" && break
2045 if test -z "$CC"; then
2049 # Extract the first word of "$ac_prog", so it can be a program name with args.
2050 set dummy $ac_prog; ac_word=$2
2051 echo "$as_me:$LINENO: checking for $ac_word" >&5
2052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2053 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2054 echo $ECHO_N "(cached) $ECHO_C" >&6
2056 if test -n "$ac_ct_CC"; then
2057 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2063 test -z "$as_dir" && as_dir=.
2064 for ac_exec_ext in '' $ac_executable_extensions; do
2065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2066 ac_cv_prog_ac_ct_CC="$ac_prog"
2067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2075 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2076 if test -n "$ac_ct_CC"; then
2077 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2078 echo "${ECHO_T}$ac_ct_CC" >&6
2080 echo "$as_me:$LINENO: result: no" >&5
2081 echo "${ECHO_T}no" >&6
2084 test -n "$ac_ct_CC" && break
2093 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2094 See \`config.log' for more details." >&5
2095 echo "$as_me: error: no acceptable C compiler found in \$PATH
2096 See \`config.log' for more details." >&2;}
2097 { (exit 1); exit 1; }; }
2099 # Provide some information about the compiler.
2100 echo "$as_me:$LINENO:" \
2101 "checking for C compiler version" >&5
2102 ac_compiler=`set X $ac_compile; echo $2`
2103 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2104 (eval $ac_compiler --version </dev/null >&5) 2>&5
2106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107 (exit $ac_status); }
2108 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2109 (eval $ac_compiler -v </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); }
2119 cat >conftest.$ac_ext <<_ACEOF
2120 #line $LINENO "configure"
2123 cat confdefs.h >>conftest.$ac_ext
2124 cat >>conftest.$ac_ext <<_ACEOF
2125 /* end confdefs.h. */
2135 ac_clean_files_save=$ac_clean_files
2136 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2137 # Try to create an executable without -o first, disregard a.out.
2138 # It will help us diagnose broken compilers, and finding out an intuition
2140 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2141 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2142 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2143 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2144 (eval $ac_link_default) 2>&5
2146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147 (exit $ac_status); }; then
2148 # Find the output, starting from the most likely. This scheme is
2149 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2152 # Be careful to initialize this variable, since it used to be cached.
2153 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2155 # b.out is created by i960 compilers.
2156 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2158 test -f "$ac_file" || continue
2160 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2163 # This is the source file.
2166 # We found the default executable, but exeext='' is most
2170 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2171 # FIXME: I believe we export ac_cv_exeext for Libtool,
2172 # but it would be cool to find out if it's true. Does anybody
2173 # maintain Libtool? --akim.
2181 echo "$as_me: failed program was:" >&5
2182 sed 's/^/| /' conftest.$ac_ext >&5
2184 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2185 See \`config.log' for more details." >&5
2186 echo "$as_me: error: C compiler cannot create executables
2187 See \`config.log' for more details." >&2;}
2188 { (exit 77); exit 77; }; }
2191 ac_exeext=$ac_cv_exeext
2192 echo "$as_me:$LINENO: result: $ac_file" >&5
2193 echo "${ECHO_T}$ac_file" >&6
2195 # Check the compiler produces executables we can run. If not, either
2196 # the compiler is broken, or we cross compile.
2197 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2198 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2199 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2200 # If not cross compiling, check that we can run a simple program.
2201 if test "$cross_compiling" != yes; then
2202 if { ac_try='./$ac_file'
2203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207 (exit $ac_status); }; }; then
2210 if test "$cross_compiling" = maybe; then
2213 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2214 If you meant to cross compile, use \`--host'.
2215 See \`config.log' for more details." >&5
2216 echo "$as_me: error: cannot run C compiled programs.
2217 If you meant to cross compile, use \`--host'.
2218 See \`config.log' for more details." >&2;}
2219 { (exit 1); exit 1; }; }
2223 echo "$as_me:$LINENO: result: yes" >&5
2224 echo "${ECHO_T}yes" >&6
2226 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2227 ac_clean_files=$ac_clean_files_save
2228 # Check the compiler produces executables we can run. If not, either
2229 # the compiler is broken, or we cross compile.
2230 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2231 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2232 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2233 echo "${ECHO_T}$cross_compiling" >&6
2235 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2236 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2238 (eval $ac_link) 2>&5
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; then
2242 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2243 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2244 # work properly (i.e., refer to `conftest.exe'), while it won't with
2246 for ac_file in conftest.exe conftest conftest.*; do
2247 test -f "$ac_file" || continue
2249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2250 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2257 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2258 See \`config.log' for more details." >&5
2259 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2260 See \`config.log' for more details." >&2;}
2261 { (exit 1); exit 1; }; }
2264 rm -f conftest$ac_cv_exeext
2265 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2266 echo "${ECHO_T}$ac_cv_exeext" >&6
2268 rm -f conftest.$ac_ext
2269 EXEEXT=$ac_cv_exeext
2271 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2272 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2273 if test "${ac_cv_objext+set}" = set; then
2274 echo $ECHO_N "(cached) $ECHO_C" >&6
2276 cat >conftest.$ac_ext <<_ACEOF
2277 #line $LINENO "configure"
2280 cat confdefs.h >>conftest.$ac_ext
2281 cat >>conftest.$ac_ext <<_ACEOF
2282 /* end confdefs.h. */
2292 rm -f conftest.o conftest.obj
2293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2294 (eval $ac_compile) 2>&5
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); }; then
2298 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2301 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2306 echo "$as_me: failed program was:" >&5
2307 sed 's/^/| /' conftest.$ac_ext >&5
2309 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2310 See \`config.log' for more details." >&5
2311 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2312 See \`config.log' for more details." >&2;}
2313 { (exit 1); exit 1; }; }
2316 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2318 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2319 echo "${ECHO_T}$ac_cv_objext" >&6
2320 OBJEXT=$ac_cv_objext
2322 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2323 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2324 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2325 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 cat >conftest.$ac_ext <<_ACEOF
2328 #line $LINENO "configure"
2331 cat confdefs.h >>conftest.$ac_ext
2332 cat >>conftest.$ac_ext <<_ACEOF
2333 /* end confdefs.h. */
2346 rm -f conftest.$ac_objext
2347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2348 (eval $ac_compile) 2>&5
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); } &&
2352 { ac_try='test -s conftest.$ac_objext'
2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; }; then
2360 echo "$as_me: failed program was:" >&5
2361 sed 's/^/| /' conftest.$ac_ext >&5
2365 rm -f conftest.$ac_objext conftest.$ac_ext
2366 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2369 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2370 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2371 GCC=`test $ac_compiler_gnu = yes && echo yes`
2372 ac_test_CFLAGS=${CFLAGS+set}
2373 ac_save_CFLAGS=$CFLAGS
2375 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2376 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2377 if test "${ac_cv_prog_cc_g+set}" = set; then
2378 echo $ECHO_N "(cached) $ECHO_C" >&6
2380 cat >conftest.$ac_ext <<_ACEOF
2381 #line $LINENO "configure"
2384 cat confdefs.h >>conftest.$ac_ext
2385 cat >>conftest.$ac_ext <<_ACEOF
2386 /* end confdefs.h. */
2396 rm -f conftest.$ac_objext
2397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2398 (eval $ac_compile) 2>&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); } &&
2402 { ac_try='test -s conftest.$ac_objext'
2403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407 (exit $ac_status); }; }; then
2410 echo "$as_me: failed program was:" >&5
2411 sed 's/^/| /' conftest.$ac_ext >&5
2415 rm -f conftest.$ac_objext conftest.$ac_ext
2417 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2418 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2419 if test "$ac_test_CFLAGS" = set; then
2420 CFLAGS=$ac_save_CFLAGS
2421 elif test $ac_cv_prog_cc_g = yes; then
2422 if test "$GCC" = yes; then
2428 if test "$GCC" = yes; then
2434 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2435 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2436 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2439 ac_cv_prog_cc_stdc=no
2441 cat >conftest.$ac_ext <<_ACEOF
2442 #line $LINENO "configure"
2445 cat confdefs.h >>conftest.$ac_ext
2446 cat >>conftest.$ac_ext <<_ACEOF
2447 /* end confdefs.h. */
2450 #include <sys/types.h>
2451 #include <sys/stat.h>
2452 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2453 struct buf { int x; };
2454 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2455 static char *e (p, i)
2461 static char *f (char * (*g) (char **, int), char **p, ...)
2466 s = g (p, va_arg (v,int));
2470 int test (int i, double x);
2471 struct s1 {int (*f) (int a);};
2472 struct s2 {int (*f) (double a);};
2473 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2479 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2484 # Don't try gcc -ansi; that turns off useful extensions and
2485 # breaks some systems' header files.
2486 # AIX -qlanglvl=ansi
2487 # Ultrix and OSF/1 -std1
2488 # HP-UX 10.20 and later -Ae
2489 # HP-UX older versions -Aa -D_HPUX_SOURCE
2490 # SVR4 -Xc -D__EXTENSIONS__
2491 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2493 CC="$ac_save_CC $ac_arg"
2494 rm -f conftest.$ac_objext
2495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2496 (eval $ac_compile) 2>&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); } &&
2500 { ac_try='test -s conftest.$ac_objext'
2501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); }; }; then
2506 ac_cv_prog_cc_stdc=$ac_arg
2509 echo "$as_me: failed program was:" >&5
2510 sed 's/^/| /' conftest.$ac_ext >&5
2513 rm -f conftest.$ac_objext
2515 rm -f conftest.$ac_ext conftest.$ac_objext
2520 case "x$ac_cv_prog_cc_stdc" in
2522 echo "$as_me:$LINENO: result: none needed" >&5
2523 echo "${ECHO_T}none needed" >&6 ;;
2525 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2526 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2527 CC="$CC $ac_cv_prog_cc_stdc" ;;
2530 # Some people use a C++ compiler to compile C. Since we use `exit',
2531 # in C++ we need to declare it. In case someone uses the same compiler
2532 # for both compiling C and C++ we need to have the C++ compiler decide
2533 # the declaration of exit, since it's the most demanding environment.
2534 cat >conftest.$ac_ext <<_ACEOF
2539 rm -f conftest.$ac_objext
2540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2541 (eval $ac_compile) 2>&5
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); } &&
2545 { ac_try='test -s conftest.$ac_objext'
2546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); }; }; then
2551 for ac_declaration in \
2553 '#include <stdlib.h>' \
2554 'extern "C" void std::exit (int) throw (); using std::exit;' \
2555 'extern "C" void std::exit (int); using std::exit;' \
2556 'extern "C" void exit (int) throw ();' \
2557 'extern "C" void exit (int);' \
2560 cat >conftest.$ac_ext <<_ACEOF
2561 #line $LINENO "configure"
2564 cat confdefs.h >>conftest.$ac_ext
2565 cat >>conftest.$ac_ext <<_ACEOF
2566 /* end confdefs.h. */
2577 rm -f conftest.$ac_objext
2578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2579 (eval $ac_compile) 2>&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); } &&
2583 { ac_try='test -s conftest.$ac_objext'
2584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }; }; then
2591 echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2596 rm -f conftest.$ac_objext conftest.$ac_ext
2597 cat >conftest.$ac_ext <<_ACEOF
2598 #line $LINENO "configure"
2601 cat confdefs.h >>conftest.$ac_ext
2602 cat >>conftest.$ac_ext <<_ACEOF
2603 /* end confdefs.h. */
2613 rm -f conftest.$ac_objext
2614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2615 (eval $ac_compile) 2>&5
2617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618 (exit $ac_status); } &&
2619 { ac_try='test -s conftest.$ac_objext'
2620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; }; then
2627 echo "$as_me: failed program was:" >&5
2628 sed 's/^/| /' conftest.$ac_ext >&5
2631 rm -f conftest.$ac_objext conftest.$ac_ext
2634 if test -n "$ac_declaration"; then
2635 echo '#ifdef __cplusplus' >>confdefs.h
2636 echo $ac_declaration >>confdefs.h
2637 echo '#endif' >>confdefs.h
2641 echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2645 rm -f conftest.$ac_objext conftest.$ac_ext
2647 ac_cpp='$CPP $CPPFLAGS'
2648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2651 DEPDIR="${am__leading_dot}deps"
2653 ac_config_commands="$ac_config_commands depfiles"
2656 am_make=${MAKE-make}
2657 cat > confinc << 'END'
2662 # If we don't find an include directive, just comment out the code.
2663 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2664 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2668 # First try GNU make style include.
2669 echo "include confinc" > confmf
2670 # We grep out `Entering directory' and `Leaving directory'
2671 # messages which can occur if `w' ends up in MAKEFLAGS.
2672 # In particular we don't look at `^make:' because GNU make might
2673 # be invoked under some other name (usually "gmake"), in which
2674 # case it prints its new name instead of `make'.
2675 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2680 # Now try BSD make style include.
2681 if test "$am__include" = "#"; then
2682 echo '.include "confinc"' > confmf
2683 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2684 am__include=.include
2691 echo "$as_me:$LINENO: result: $_am_result" >&5
2692 echo "${ECHO_T}$_am_result" >&6
2693 rm -f confinc confmf
2695 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2696 if test "${enable_dependency_tracking+set}" = set; then
2697 enableval="$enable_dependency_tracking"
2700 if test "x$enable_dependency_tracking" != xno; then
2701 am_depcomp="$ac_aux_dir/depcomp"
2706 if test "x$enable_dependency_tracking" != xno; then
2717 depcc="$CC" am_compiler_list=
2719 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2720 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2721 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2722 echo $ECHO_N "(cached) $ECHO_C" >&6
2724 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2725 # We make a subdir and do the tests there. Otherwise we can end up
2726 # making bogus files that we don't know about and never remove. For
2727 # instance it was reported that on HP-UX the gcc test will end up
2728 # making a dummy file named `D' -- because `-MD' means `put the output
2731 # Copy depcomp to subdir because otherwise we won't find it if we're
2732 # using a relative directory.
2733 cp "$am_depcomp" conftest.dir
2735 # We will build objects and dependencies in a subdirectory because
2736 # it helps to detect inapplicable dependency modes. For instance
2737 # both Tru64's cc and ICC support -MD to output dependencies as a
2738 # side effect of compilation, but ICC will put the dependencies in
2739 # the current directory while Tru64 will put them in the object
2743 am_cv_CC_dependencies_compiler_type=none
2744 if test "$am_compiler_list" = ""; then
2745 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2747 for depmode in $am_compiler_list; do
2748 # Setup a source with many dependencies, because some compilers
2749 # like to wrap large dependency lists on column 80 (with \), and
2750 # we should not choose a depcomp mode which is confused by this.
2752 # We need to recreate these files for each test, as the compiler may
2753 # overwrite some of them when testing with obscure command lines.
2754 # This happens at least with the AIX C compiler.
2756 for i in 1 2 3 4 5 6; do
2757 echo '#include "conftst'$i'.h"' >> sub/conftest.c
2760 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2764 # after this tag, mechanisms are not by side-effect, so they'll
2765 # only be used when explicitly requested
2766 if test "x$enable_dependency_tracking" = xyes; then
2774 # We check with `-c' and `-o' for the sake of the "dashmstdout"
2775 # mode. It turns out that the SunPro C++ compiler does not properly
2776 # handle `-M -o', and we need to detect this.
2777 if depmode=$depmode \
2778 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2779 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2780 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2781 >/dev/null 2>conftest.err &&
2782 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2783 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2784 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2785 # icc doesn't choke on unknown options, it will just issue warnings
2786 # (even with -Werror). So we grep stderr for any message
2787 # that says an option was ignored.
2788 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2789 am_cv_CC_dependencies_compiler_type=$depmode
2798 am_cv_CC_dependencies_compiler_type=none
2802 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2803 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2804 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2809 test "x$enable_dependency_tracking" != xno \
2810 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2812 am__fastdepCC_FALSE='#'
2814 am__fastdepCC_TRUE='#'
2815 am__fastdepCC_FALSE=
2821 echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2822 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2823 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2824 echo $ECHO_N "(cached) $ECHO_C" >&6
2826 ac_check_lib_save_LIBS=$LIBS
2827 LIBS="-lcposix $LIBS"
2828 cat >conftest.$ac_ext <<_ACEOF
2829 #line $LINENO "configure"
2832 cat confdefs.h >>conftest.$ac_ext
2833 cat >>conftest.$ac_ext <<_ACEOF
2834 /* end confdefs.h. */
2836 /* Override any gcc2 internal prototype to avoid an error. */
2840 /* We use char because int might match the return type of a gcc2
2841 builtin and then its argument prototype would still apply. */
2851 rm -f conftest.$ac_objext conftest$ac_exeext
2852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2853 (eval $ac_link) 2>&5
2855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); } &&
2857 { ac_try='test -s conftest$ac_exeext'
2858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); }; }; then
2863 ac_cv_lib_cposix_strerror=yes
2865 echo "$as_me: failed program was:" >&5
2866 sed 's/^/| /' conftest.$ac_ext >&5
2868 ac_cv_lib_cposix_strerror=no
2870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2871 LIBS=$ac_check_lib_save_LIBS
2873 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2874 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2875 if test $ac_cv_lib_cposix_strerror = yes; then
2876 LIBS="$LIBS -lcposix"
2884 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2885 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2886 if test "${am_cv_prog_cc_stdc+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2889 am_cv_prog_cc_stdc=no
2891 # Don't try gcc -ansi; that turns off useful extensions and
2892 # breaks some systems' header files.
2893 # AIX -qlanglvl=ansi
2894 # Ultrix and OSF/1 -std1
2895 # HP-UX 10.20 and later -Ae
2896 # HP-UX older versions -Aa -D_HPUX_SOURCE
2897 # SVR4 -Xc -D__EXTENSIONS__
2898 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2900 CC="$ac_save_CC $ac_arg"
2901 cat >conftest.$ac_ext <<_ACEOF
2902 #line $LINENO "configure"
2905 cat confdefs.h >>conftest.$ac_ext
2906 cat >>conftest.$ac_ext <<_ACEOF
2907 /* end confdefs.h. */
2910 #include <sys/types.h>
2911 #include <sys/stat.h>
2912 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2913 struct buf { int x; };
2914 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2915 static char *e (p, i)
2921 static char *f (char * (*g) (char **, int), char **p, ...)
2926 s = g (p, va_arg (v,int));
2930 int test (int i, double x);
2931 struct s1 {int (*f) (int a);};
2932 struct s2 {int (*f) (double a);};
2933 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2941 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2947 rm -f conftest.$ac_objext
2948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2949 (eval $ac_compile) 2>&5
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); } &&
2953 { ac_try='test -s conftest.$ac_objext'
2954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; }; then
2959 am_cv_prog_cc_stdc="$ac_arg"; break
2961 echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2965 rm -f conftest.$ac_objext conftest.$ac_ext
2971 if test -z "$am_cv_prog_cc_stdc"; then
2972 echo "$as_me:$LINENO: result: none needed" >&5
2973 echo "${ECHO_T}none needed" >&6
2975 echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2976 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2978 case "x$am_cv_prog_cc_stdc" in
2980 *) CC="$CC $am_cv_prog_cc_stdc" ;;
2984 ac_cpp='$CPP $CPPFLAGS'
2985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2988 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2989 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2990 # On Suns, sometimes $CPP names a directory.
2991 if test -n "$CPP" && test -d "$CPP"; then
2994 if test -z "$CPP"; then
2995 if test "${ac_cv_prog_CPP+set}" = set; then
2996 echo $ECHO_N "(cached) $ECHO_C" >&6
2998 # Double quotes because CPP needs to be expanded
2999 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3002 for ac_c_preproc_warn_flag in '' yes
3004 # Use a header file that comes with gcc, so configuring glibc
3005 # with a fresh cross-compiler works.
3006 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3007 # <limits.h> exists even on freestanding compilers.
3008 # On the NeXT, cc -E runs the code through the compiler's parser,
3009 # not just through cpp. "Syntax error" is here to catch this case.
3010 cat >conftest.$ac_ext <<_ACEOF
3011 #line $LINENO "configure"
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h. */
3018 # include <limits.h>
3020 # include <assert.h>
3024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3025 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3027 grep -v '^ *+' conftest.er1 >conftest.err
3029 cat conftest.err >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } >/dev/null; then
3032 if test -s conftest.err; then
3033 ac_cpp_err=$ac_c_preproc_warn_flag
3040 if test -z "$ac_cpp_err"; then
3043 echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.$ac_ext >&5
3046 # Broken: fails on valid input.
3049 rm -f conftest.err conftest.$ac_ext
3051 # OK, works on sane cases. Now check whether non-existent headers
3052 # can be detected and how.
3053 cat >conftest.$ac_ext <<_ACEOF
3054 #line $LINENO "configure"
3057 cat confdefs.h >>conftest.$ac_ext
3058 cat >>conftest.$ac_ext <<_ACEOF
3059 /* end confdefs.h. */
3060 #include <ac_nonexistent.h>
3062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3063 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3065 grep -v '^ *+' conftest.er1 >conftest.err
3067 cat conftest.err >&5
3068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069 (exit $ac_status); } >/dev/null; then
3070 if test -s conftest.err; then
3071 ac_cpp_err=$ac_c_preproc_warn_flag
3078 if test -z "$ac_cpp_err"; then
3079 # Broken: success on invalid input.
3082 echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3085 # Passes both tests.
3089 rm -f conftest.err conftest.$ac_ext
3092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3093 rm -f conftest.err conftest.$ac_ext
3094 if $ac_preproc_ok; then
3106 echo "$as_me:$LINENO: result: $CPP" >&5
3107 echo "${ECHO_T}$CPP" >&6
3109 for ac_c_preproc_warn_flag in '' yes
3111 # Use a header file that comes with gcc, so configuring glibc
3112 # with a fresh cross-compiler works.
3113 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3114 # <limits.h> exists even on freestanding compilers.
3115 # On the NeXT, cc -E runs the code through the compiler's parser,
3116 # not just through cpp. "Syntax error" is here to catch this case.
3117 cat >conftest.$ac_ext <<_ACEOF
3118 #line $LINENO "configure"
3121 cat confdefs.h >>conftest.$ac_ext
3122 cat >>conftest.$ac_ext <<_ACEOF
3123 /* end confdefs.h. */
3125 # include <limits.h>
3127 # include <assert.h>
3131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3132 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3134 grep -v '^ *+' conftest.er1 >conftest.err
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138 (exit $ac_status); } >/dev/null; then
3139 if test -s conftest.err; then
3140 ac_cpp_err=$ac_c_preproc_warn_flag
3147 if test -z "$ac_cpp_err"; then
3150 echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3153 # Broken: fails on valid input.
3156 rm -f conftest.err conftest.$ac_ext
3158 # OK, works on sane cases. Now check whether non-existent headers
3159 # can be detected and how.
3160 cat >conftest.$ac_ext <<_ACEOF
3161 #line $LINENO "configure"
3164 cat confdefs.h >>conftest.$ac_ext
3165 cat >>conftest.$ac_ext <<_ACEOF
3166 /* end confdefs.h. */
3167 #include <ac_nonexistent.h>
3169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3170 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3172 grep -v '^ *+' conftest.er1 >conftest.err
3174 cat conftest.err >&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); } >/dev/null; then
3177 if test -s conftest.err; then
3178 ac_cpp_err=$ac_c_preproc_warn_flag
3185 if test -z "$ac_cpp_err"; then
3186 # Broken: success on invalid input.
3189 echo "$as_me: failed program was:" >&5
3190 sed 's/^/| /' conftest.$ac_ext >&5
3192 # Passes both tests.
3196 rm -f conftest.err conftest.$ac_ext
3199 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3200 rm -f conftest.err conftest.$ac_ext
3201 if $ac_preproc_ok; then
3204 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3205 See \`config.log' for more details." >&5
3206 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3207 See \`config.log' for more details." >&2;}
3208 { (exit 1); exit 1; }; }
3212 ac_cpp='$CPP $CPPFLAGS'
3213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3218 echo "$as_me:$LINENO: checking for egrep" >&5
3219 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3220 if test "${ac_cv_prog_egrep+set}" = set; then
3221 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3224 then ac_cv_prog_egrep='grep -E'
3225 else ac_cv_prog_egrep='egrep'
3228 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3229 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3230 EGREP=$ac_cv_prog_egrep
3233 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3243 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3244 inttypes.h stdint.h unistd.h
3246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3247 echo "$as_me:$LINENO: checking for $ac_header" >&5
3248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3250 echo $ECHO_N "(cached) $ECHO_C" >&6
3252 cat >conftest.$ac_ext <<_ACEOF
3253 #line $LINENO "configure"
3256 cat confdefs.h >>conftest.$ac_ext
3257 cat >>conftest.$ac_ext <<_ACEOF
3258 /* end confdefs.h. */
3259 $ac_includes_default
3261 #include <$ac_header>
3263 rm -f conftest.$ac_objext
3264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3265 (eval $ac_compile) 2>&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); } &&
3269 { ac_try='test -s conftest.$ac_objext'
3270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }; }; then
3275 eval "$as_ac_Header=yes"
3277 echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3280 eval "$as_ac_Header=no"
3282 rm -f conftest.$ac_objext conftest.$ac_ext
3284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3286 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3287 cat >>confdefs.h <<_ACEOF
3288 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3298 echo "$as_me:$LINENO: checking for function prototypes" >&5
3299 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3300 if test "$am_cv_prog_cc_stdc" != no; then
3301 echo "$as_me:$LINENO: result: yes" >&5
3302 echo "${ECHO_T}yes" >&6
3304 cat >>confdefs.h <<\_ACEOF
3305 #define PROTOTYPES 1
3310 echo "$as_me:$LINENO: result: no" >&5
3311 echo "${ECHO_T}no" >&6
3312 U=_ ANSI2KNR=./ansi2knr
3314 # Ensure some checks needed by ansi2knr itself.
3315 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3316 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3317 if test "${ac_cv_header_stdc+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 cat >conftest.$ac_ext <<_ACEOF
3321 #line $LINENO "configure"
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3340 rm -f conftest.$ac_objext
3341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3342 (eval $ac_compile) 2>&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); } &&
3346 { ac_try='test -s conftest.$ac_objext'
3347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); }; }; then
3352 ac_cv_header_stdc=yes
3354 echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.$ac_ext >&5
3357 ac_cv_header_stdc=no
3359 rm -f conftest.$ac_objext conftest.$ac_ext
3361 if test $ac_cv_header_stdc = yes; then
3362 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3363 cat >conftest.$ac_ext <<_ACEOF
3364 #line $LINENO "configure"
3367 cat confdefs.h >>conftest.$ac_ext
3368 cat >>conftest.$ac_ext <<_ACEOF
3369 /* end confdefs.h. */
3373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3374 $EGREP "memchr" >/dev/null 2>&1; then
3377 ac_cv_header_stdc=no
3383 if test $ac_cv_header_stdc = yes; then
3384 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3385 cat >conftest.$ac_ext <<_ACEOF
3386 #line $LINENO "configure"
3389 cat confdefs.h >>conftest.$ac_ext
3390 cat >>conftest.$ac_ext <<_ACEOF
3391 /* end confdefs.h. */
3395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3396 $EGREP "free" >/dev/null 2>&1; then
3399 ac_cv_header_stdc=no
3405 if test $ac_cv_header_stdc = yes; then
3406 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3407 if test "$cross_compiling" = yes; then
3410 cat >conftest.$ac_ext <<_ACEOF
3411 #line $LINENO "configure"
3414 cat confdefs.h >>conftest.$ac_ext
3415 cat >>conftest.$ac_ext <<_ACEOF
3416 /* end confdefs.h. */
3418 #if ((' ' & 0x0FF) == 0x020)
3419 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3420 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3422 # define ISLOWER(c) \
3423 (('a' <= (c) && (c) <= 'i') \
3424 || ('j' <= (c) && (c) <= 'r') \
3425 || ('s' <= (c) && (c) <= 'z'))
3426 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3429 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3434 for (i = 0; i < 256; i++)
3435 if (XOR (islower (i), ISLOWER (i))
3436 || toupper (i) != TOUPPER (i))
3441 rm -f conftest$ac_exeext
3442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3443 (eval $ac_link) 2>&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451 (exit $ac_status); }; }; then
3454 echo "$as_me: program exited with status $ac_status" >&5
3455 echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3459 ac_cv_header_stdc=no
3461 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3465 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3466 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3467 if test $ac_cv_header_stdc = yes; then
3469 cat >>confdefs.h <<\_ACEOF
3470 #define STDC_HEADERS 1
3476 for ac_header in string.h
3478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3480 echo "$as_me:$LINENO: checking for $ac_header" >&5
3481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3483 echo $ECHO_N "(cached) $ECHO_C" >&6
3485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3488 # Is the header compilable?
3489 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3491 cat >conftest.$ac_ext <<_ACEOF
3492 #line $LINENO "configure"
3495 cat confdefs.h >>conftest.$ac_ext
3496 cat >>conftest.$ac_ext <<_ACEOF
3497 /* end confdefs.h. */
3498 $ac_includes_default
3499 #include <$ac_header>
3501 rm -f conftest.$ac_objext
3502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3503 (eval $ac_compile) 2>&5
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); } &&
3507 { ac_try='test -s conftest.$ac_objext'
3508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512 (exit $ac_status); }; }; then
3513 ac_header_compiler=yes
3515 echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3518 ac_header_compiler=no
3520 rm -f conftest.$ac_objext conftest.$ac_ext
3521 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3522 echo "${ECHO_T}$ac_header_compiler" >&6
3524 # Is the header present?
3525 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3526 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3527 cat >conftest.$ac_ext <<_ACEOF
3528 #line $LINENO "configure"
3531 cat confdefs.h >>conftest.$ac_ext
3532 cat >>conftest.$ac_ext <<_ACEOF
3533 /* end confdefs.h. */
3534 #include <$ac_header>
3536 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3537 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3539 grep -v '^ *+' conftest.er1 >conftest.err
3541 cat conftest.err >&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } >/dev/null; then
3544 if test -s conftest.err; then
3545 ac_cpp_err=$ac_c_preproc_warn_flag
3552 if test -z "$ac_cpp_err"; then
3553 ac_header_preproc=yes
3555 echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3558 ac_header_preproc=no
3560 rm -f conftest.err conftest.$ac_ext
3561 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3562 echo "${ECHO_T}$ac_header_preproc" >&6
3564 # So? What about this header?
3565 case $ac_header_compiler:$ac_header_preproc in
3567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3573 ## ------------------------------------ ##
3574 ## Report this to bug-autoconf@gnu.org. ##
3575 ## ------------------------------------ ##
3578 sed "s/^/$as_me: WARNING: /" >&2
3581 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3582 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3583 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3584 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3589 ## ------------------------------------ ##
3590 ## Report this to bug-autoconf@gnu.org. ##
3591 ## ------------------------------------ ##
3594 sed "s/^/$as_me: WARNING: /" >&2
3597 echo "$as_me:$LINENO: checking for $ac_header" >&5
3598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3600 echo $ECHO_N "(cached) $ECHO_C" >&6
3602 eval "$as_ac_Header=$ac_header_preproc"
3604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3609 cat >>confdefs.h <<_ACEOF
3610 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3618 if test "x$U" != "x"; then
3619 { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
3620 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
3621 { (exit 1); exit 1; }; }
3624 ac_cpp='$CPP $CPPFLAGS'
3625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3628 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3629 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3630 # On Suns, sometimes $CPP names a directory.
3631 if test -n "$CPP" && test -d "$CPP"; then
3634 if test -z "$CPP"; then
3635 if test "${ac_cv_prog_CPP+set}" = set; then
3636 echo $ECHO_N "(cached) $ECHO_C" >&6
3638 # Double quotes because CPP needs to be expanded
3639 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3642 for ac_c_preproc_warn_flag in '' yes
3644 # Use a header file that comes with gcc, so configuring glibc
3645 # with a fresh cross-compiler works.
3646 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3647 # <limits.h> exists even on freestanding compilers.
3648 # On the NeXT, cc -E runs the code through the compiler's parser,
3649 # not just through cpp. "Syntax error" is here to catch this case.
3650 cat >conftest.$ac_ext <<_ACEOF
3651 #line $LINENO "configure"
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h. */
3658 # include <limits.h>
3660 # include <assert.h>
3664 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3665 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3667 grep -v '^ *+' conftest.er1 >conftest.err
3669 cat conftest.err >&5
3670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); } >/dev/null; then
3672 if test -s conftest.err; then
3673 ac_cpp_err=$ac_c_preproc_warn_flag
3680 if test -z "$ac_cpp_err"; then
3683 echo "$as_me: failed program was:" >&5
3684 sed 's/^/| /' conftest.$ac_ext >&5
3686 # Broken: fails on valid input.
3689 rm -f conftest.err conftest.$ac_ext
3691 # OK, works on sane cases. Now check whether non-existent headers
3692 # can be detected and how.
3693 cat >conftest.$ac_ext <<_ACEOF
3694 #line $LINENO "configure"
3697 cat confdefs.h >>conftest.$ac_ext
3698 cat >>conftest.$ac_ext <<_ACEOF
3699 /* end confdefs.h. */
3700 #include <ac_nonexistent.h>
3702 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3703 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3705 grep -v '^ *+' conftest.er1 >conftest.err
3707 cat conftest.err >&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } >/dev/null; then
3710 if test -s conftest.err; then
3711 ac_cpp_err=$ac_c_preproc_warn_flag
3718 if test -z "$ac_cpp_err"; then
3719 # Broken: success on invalid input.
3722 echo "$as_me: failed program was:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3725 # Passes both tests.
3729 rm -f conftest.err conftest.$ac_ext
3732 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3733 rm -f conftest.err conftest.$ac_ext
3734 if $ac_preproc_ok; then
3746 echo "$as_me:$LINENO: result: $CPP" >&5
3747 echo "${ECHO_T}$CPP" >&6
3749 for ac_c_preproc_warn_flag in '' yes
3751 # Use a header file that comes with gcc, so configuring glibc
3752 # with a fresh cross-compiler works.
3753 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3754 # <limits.h> exists even on freestanding compilers.
3755 # On the NeXT, cc -E runs the code through the compiler's parser,
3756 # not just through cpp. "Syntax error" is here to catch this case.
3757 cat >conftest.$ac_ext <<_ACEOF
3758 #line $LINENO "configure"
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h. */
3765 # include <limits.h>
3767 # include <assert.h>
3771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3774 grep -v '^ *+' conftest.er1 >conftest.err
3776 cat conftest.err >&5
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); } >/dev/null; then
3779 if test -s conftest.err; then
3780 ac_cpp_err=$ac_c_preproc_warn_flag
3787 if test -z "$ac_cpp_err"; then
3790 echo "$as_me: failed program was:" >&5
3791 sed 's/^/| /' conftest.$ac_ext >&5
3793 # Broken: fails on valid input.
3796 rm -f conftest.err conftest.$ac_ext
3798 # OK, works on sane cases. Now check whether non-existent headers
3799 # can be detected and how.
3800 cat >conftest.$ac_ext <<_ACEOF
3801 #line $LINENO "configure"
3804 cat confdefs.h >>conftest.$ac_ext
3805 cat >>conftest.$ac_ext <<_ACEOF
3806 /* end confdefs.h. */
3807 #include <ac_nonexistent.h>
3809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3810 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3812 grep -v '^ *+' conftest.er1 >conftest.err
3814 cat conftest.err >&5
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); } >/dev/null; then
3817 if test -s conftest.err; then
3818 ac_cpp_err=$ac_c_preproc_warn_flag
3825 if test -z "$ac_cpp_err"; then
3826 # Broken: success on invalid input.
3829 echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.$ac_ext >&5
3832 # Passes both tests.
3836 rm -f conftest.err conftest.$ac_ext
3839 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3840 rm -f conftest.err conftest.$ac_ext
3841 if $ac_preproc_ok; then
3844 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3845 See \`config.log' for more details." >&5
3846 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3847 See \`config.log' for more details." >&2;}
3848 { (exit 1); exit 1; }; }
3852 ac_cpp='$CPP $CPPFLAGS'
3853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3857 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3858 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3859 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3860 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3861 echo $ECHO_N "(cached) $ECHO_C" >&6
3863 cat >conftest.make <<\_ACEOF
3865 @echo 'ac_maketemp="$(MAKE)"'
3867 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3868 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3869 if test -n "$ac_maketemp"; then
3870 eval ac_cv_prog_make_${ac_make}_set=yes
3872 eval ac_cv_prog_make_${ac_make}_set=no
3876 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3877 echo "$as_me:$LINENO: result: yes" >&5
3878 echo "${ECHO_T}yes" >&6
3881 echo "$as_me:$LINENO: result: no" >&5
3882 echo "${ECHO_T}no" >&6
3883 SET_MAKE="MAKE=${MAKE-make}"
3886 # Find a good install program. We prefer a C program (faster),
3887 # so one script is as good as another. But avoid the broken or
3888 # incompatible versions:
3889 # SysV /etc/install, /usr/sbin/install
3890 # SunOS /usr/etc/install
3891 # IRIX /sbin/install
3893 # AmigaOS /C/install, which installs bootblocks on floppy discs
3894 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3895 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3896 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3897 # ./install, which can be erroneously created by make from ./install.sh.
3898 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3899 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3900 if test -z "$INSTALL"; then
3901 if test "${ac_cv_path_install+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3908 test -z "$as_dir" && as_dir=.
3909 # Account for people who put trailing slashes in PATH elements.
3911 ./ | .// | /cC/* | \
3912 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3915 # OSF1 and SCO ODT 3.0 have their own names for install.
3916 # Don't use installbsd from OSF since it installs stuff as root
3918 for ac_prog in ginstall scoinst install; do
3919 for ac_exec_ext in '' $ac_executable_extensions; do
3920 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3921 if test $ac_prog = install &&
3922 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3923 # AIX install. It has an incompatible calling convention.
3925 elif test $ac_prog = install &&
3926 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3927 # program-specific install script used by HP pwplus--don't use.
3930 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3942 if test "${ac_cv_path_install+set}" = set; then
3943 INSTALL=$ac_cv_path_install
3945 # As a last resort, use the slow shell script. We don't cache a
3946 # path for INSTALL within a source directory, because that will
3947 # break other packages using the cache if that directory is
3948 # removed, or if the path is relative.
3949 INSTALL=$ac_install_sh
3952 echo "$as_me:$LINENO: result: $INSTALL" >&5
3953 echo "${ECHO_T}$INSTALL" >&6
3955 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3956 # It thinks the first close brace ends the variable substitution.
3957 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3959 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3961 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3963 if test -n "$ac_tool_prefix"; then
3964 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3965 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3966 echo "$as_me:$LINENO: checking for $ac_word" >&5
3967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3968 if test "${ac_cv_prog_RANLIB+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3971 if test -n "$RANLIB"; then
3972 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978 test -z "$as_dir" && as_dir=.
3979 for ac_exec_ext in '' $ac_executable_extensions; do
3980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3981 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3990 RANLIB=$ac_cv_prog_RANLIB
3991 if test -n "$RANLIB"; then
3992 echo "$as_me:$LINENO: result: $RANLIB" >&5
3993 echo "${ECHO_T}$RANLIB" >&6
3995 echo "$as_me:$LINENO: result: no" >&5
3996 echo "${ECHO_T}no" >&6
4000 if test -z "$ac_cv_prog_RANLIB"; then
4001 ac_ct_RANLIB=$RANLIB
4002 # Extract the first word of "ranlib", so it can be a program name with args.
4003 set dummy ranlib; ac_word=$2
4004 echo "$as_me:$LINENO: checking for $ac_word" >&5
4005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4006 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4007 echo $ECHO_N "(cached) $ECHO_C" >&6
4009 if test -n "$ac_ct_RANLIB"; then
4010 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016 test -z "$as_dir" && as_dir=.
4017 for ac_exec_ext in '' $ac_executable_extensions; do
4018 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4019 ac_cv_prog_ac_ct_RANLIB="ranlib"
4020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4026 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4029 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4030 if test -n "$ac_ct_RANLIB"; then
4031 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4032 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4034 echo "$as_me:$LINENO: result: no" >&5
4035 echo "${ECHO_T}no" >&6
4038 RANLIB=$ac_ct_RANLIB
4040 RANLIB="$ac_cv_prog_RANLIB"
4043 if test -n "$ac_tool_prefix"; then
4044 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4045 set dummy ${ac_tool_prefix}ar; ac_word=$2
4046 echo "$as_me:$LINENO: checking for $ac_word" >&5
4047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4048 if test "${ac_cv_prog_AR+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 if test -n "$AR"; then
4052 ac_cv_prog_AR="$AR" # Let the user override the test.
4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058 test -z "$as_dir" && as_dir=.
4059 for ac_exec_ext in '' $ac_executable_extensions; do
4060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4061 ac_cv_prog_AR="${ac_tool_prefix}ar"
4062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4071 if test -n "$AR"; then
4072 echo "$as_me:$LINENO: result: $AR" >&5
4073 echo "${ECHO_T}$AR" >&6
4075 echo "$as_me:$LINENO: result: no" >&5
4076 echo "${ECHO_T}no" >&6
4080 if test -z "$ac_cv_prog_AR"; then
4082 # Extract the first word of "ar", so it can be a program name with args.
4083 set dummy ar; ac_word=$2
4084 echo "$as_me:$LINENO: checking for $ac_word" >&5
4085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4086 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 if test -n "$ac_ct_AR"; then
4090 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096 test -z "$as_dir" && as_dir=.
4097 for ac_exec_ext in '' $ac_executable_extensions; do
4098 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4099 ac_cv_prog_ac_ct_AR="ar"
4100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4106 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4109 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4110 if test -n "$ac_ct_AR"; then
4111 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4112 echo "${ECHO_T}$ac_ct_AR" >&6
4114 echo "$as_me:$LINENO: result: no" >&5
4115 echo "${ECHO_T}no" >&6
4124 echo "$as_me:$LINENO: checking for inline" >&5
4125 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4126 if test "${ac_cv_c_inline+set}" = set; then
4127 echo $ECHO_N "(cached) $ECHO_C" >&6
4130 for ac_kw in inline __inline__ __inline; do
4131 cat >conftest.$ac_ext <<_ACEOF
4132 #line $LINENO "configure"
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h. */
4140 static $ac_kw foo_t static_foo () {return 0; }
4141 $ac_kw foo_t foo () {return 0; }
4145 rm -f conftest.$ac_objext
4146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4147 (eval $ac_compile) 2>&5
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); } &&
4151 { ac_try='test -s conftest.$ac_objext'
4152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156 (exit $ac_status); }; }; then
4157 ac_cv_c_inline=$ac_kw; break
4159 echo "$as_me: failed program was:" >&5
4160 sed 's/^/| /' conftest.$ac_ext >&5
4163 rm -f conftest.$ac_objext conftest.$ac_ext
4167 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4168 echo "${ECHO_T}$ac_cv_c_inline" >&6
4169 case $ac_cv_c_inline in
4172 cat >>confdefs.h <<\_ACEOF
4176 *) cat >>confdefs.h <<_ACEOF
4177 #define inline $ac_cv_c_inline
4182 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4183 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4184 if test "${ac_cv_c_const+set}" = set; then
4185 echo $ECHO_N "(cached) $ECHO_C" >&6
4187 cat >conftest.$ac_ext <<_ACEOF
4188 #line $LINENO "configure"
4191 cat confdefs.h >>conftest.$ac_ext
4192 cat >>conftest.$ac_ext <<_ACEOF
4193 /* end confdefs.h. */
4198 /* FIXME: Include the comments suggested by Paul. */
4200 /* Ultrix mips cc rejects this. */
4201 typedef int charset[2];
4203 /* SunOS 4.1.1 cc rejects this. */
4204 char const *const *ccp;
4206 /* NEC SVR4.0.2 mips cc rejects this. */
4207 struct point {int x, y;};
4208 static struct point const zero = {0,0};
4209 /* AIX XL C 1.02.0.0 rejects this.
4210 It does not let you subtract one const X* pointer from another in
4211 an arm of an if-expression whose if-part is not a constant
4213 const char *g = "string";
4214 ccp = &g + (g ? g-g : 0);
4215 /* HPUX 7.0 cc rejects these. */
4218 ccp = (char const *const *) p;
4219 { /* SCO 3.2v4 cc rejects this. */
4221 char const *s = 0 ? (char *) 0 : (char const *) 0;
4225 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4227 const int *foo = &x[0];
4230 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4231 typedef const int *iptr;
4235 { /* AIX XL C 1.02.0.0 rejects this saying
4236 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4237 struct s { int j; const int *ap[3]; };
4238 struct s *b; b->j = 5;
4240 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4249 rm -f conftest.$ac_objext
4250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4251 (eval $ac_compile) 2>&5
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); } &&
4255 { ac_try='test -s conftest.$ac_objext'
4256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); }; }; then
4263 echo "$as_me: failed program was:" >&5
4264 sed 's/^/| /' conftest.$ac_ext >&5
4268 rm -f conftest.$ac_objext conftest.$ac_ext
4270 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4271 echo "${ECHO_T}$ac_cv_c_const" >&6
4272 if test $ac_cv_c_const = no; then
4274 cat >>confdefs.h <<\_ACEOF
4281 # Extract the first word of "dbx", so it can be a program name with args.
4282 set dummy dbx; ac_word=$2
4283 echo "$as_me:$LINENO: checking for $ac_word" >&5
4284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4285 if test "${ac_cv_path_DBX+set}" = set; then
4286 echo $ECHO_N "(cached) $ECHO_C" >&6
4290 ac_cv_path_DBX="$DBX" # Let the user override the test with a path.
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 test -z "$as_dir" && as_dir=.
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4300 ac_cv_path_DBX="$as_dir/$ac_word$ac_exec_ext"
4301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4307 test -z "$ac_cv_path_DBX" && ac_cv_path_DBX="no"
4313 if test -n "$DBX"; then
4314 echo "$as_me:$LINENO: result: $DBX" >&5
4315 echo "${ECHO_T}$DBX" >&6
4317 echo "$as_me:$LINENO: result: no" >&5
4318 echo "${ECHO_T}no" >&6
4321 # Extract the first word of "gdb", so it can be a program name with args.
4322 set dummy gdb; ac_word=$2
4323 echo "$as_me:$LINENO: checking for $ac_word" >&5
4324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4325 if test "${ac_cv_path_GDB+set}" = set; then
4326 echo $ECHO_N "(cached) $ECHO_C" >&6
4330 ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
4333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337 test -z "$as_dir" && as_dir=.
4338 for ac_exec_ext in '' $ac_executable_extensions; do
4339 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4340 ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
4341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4347 test -z "$ac_cv_path_GDB" && ac_cv_path_GDB="no"
4353 if test -n "$GDB"; then
4354 echo "$as_me:$LINENO: result: $GDB" >&5
4355 echo "${ECHO_T}$GDB" >&6
4357 echo "$as_me:$LINENO: result: no" >&5
4358 echo "${ECHO_T}no" >&6
4361 # Extract the first word of "sdb", so it can be a program name with args.
4362 set dummy sdb; ac_word=$2
4363 echo "$as_me:$LINENO: checking for $ac_word" >&5
4364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4365 if test "${ac_cv_path_SDB+set}" = set; then
4366 echo $ECHO_N "(cached) $ECHO_C" >&6
4370 ac_cv_path_SDB="$SDB" # Let the user override the test with a path.
4373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377 test -z "$as_dir" && as_dir=.
4378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4380 ac_cv_path_SDB="$as_dir/$ac_word$ac_exec_ext"
4381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4387 test -z "$ac_cv_path_SDB" && ac_cv_path_SDB="no"
4393 if test -n "$SDB"; then
4394 echo "$as_me:$LINENO: result: $SDB" >&5
4395 echo "${ECHO_T}$SDB" >&6
4397 echo "$as_me:$LINENO: result: no" >&5
4398 echo "${ECHO_T}no" >&6
4402 if test $GDB != no ; then
4404 elif test $DBX != no ; then
4406 elif test $SDB != no ; then
4414 # The following templates should be used with newer automakes
4415 # instead of acconfig.h
4417 #AH_TEMPLATE([sig_atomic_t],
4418 # [/* Define to `int' if <signal.h> doesn't define.])
4419 #AH_TEMPLATE([HAVE_START_COLOR],
4420 # [Define if you have start_color, as a function or macro.])
4421 #AH_TEMPLATE([HAVE_TYPEAHEAD],
4422 # [Define if you have typeahead, as a function or macro.])
4423 #AH_TEMPLATE([HAVE_BKGDSET],
4424 # [Define if you have bkgdset, as a function or macro.])
4425 #AH_TEMPLATE([HAVE_CURS_SET],
4426 # [Define if you have curs_set, as a function or macro.])
4427 #AH_TEMPLATE([HAVE_META],
4428 # [Define if you have meta, as a function or macro.])
4429 #AH_TEMPLATE([HAVE_USE_DEFAULT_COLORS],
4430 # [Define if you have use_default_colors, as a function or macro.])
4431 #AH_TEMPLATE([HAVE_RESIZETERM],
4432 # [Define if you have resizeterm, as a function or macro.])
4433 #AH_TEMPLATE([SIG_ATOMIC_VOLATILE_T],
4434 # [Some systems declare sig_atomic_t as volatile, some others -- no.
4435 # This define will have value `sig_atomic_t' or
4436 # `volatile sig_atomic_t' accordingly.])
4437 #AH_TEMPLATE([ICONV_NONTRANS],
4438 # [Define as 1 if iconv() only converts exactly and we should treat
4439 # all return values other than (size_t)(-1) as equivalent.])
4442 ac_aux_path_sendmail=/usr/sbin:/usr/lib
4443 # Extract the first word of "sendmail", so it can be a program name with args.
4444 set dummy sendmail; ac_word=$2
4445 echo "$as_me:$LINENO: checking for $ac_word" >&5
4446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4447 if test "${ac_cv_path_SENDMAIL+set}" = set; then
4448 echo $ECHO_N "(cached) $ECHO_C" >&6
4452 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 as_dummy="$PATH:$ac_aux_path_sendmail"
4457 for as_dir in $as_dummy
4460 test -z "$as_dir" && as_dir=.
4461 for ac_exec_ext in '' $ac_executable_extensions; do
4462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4463 ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
4464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4470 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/sbin/sendmail"
4474 SENDMAIL=$ac_cv_path_SENDMAIL
4476 if test -n "$SENDMAIL"; then
4477 echo "$as_me:$LINENO: result: $SENDMAIL" >&5
4478 echo "${ECHO_T}$SENDMAIL" >&6
4480 echo "$as_me:$LINENO: result: no" >&5
4481 echo "${ECHO_T}no" >&6
4485 cat >>confdefs.h <<_ACEOF
4486 #define SENDMAIL "$ac_cv_path_SENDMAIL"
4491 if test -f $srcdir/EXPORTABLE ; then
4496 # Check whether --enable-pgp or --disable-pgp was given.
4497 if test "${enable_pgp+set}" = set; then
4498 enableval="$enable_pgp"
4499 if test x$enableval = xno ; then
4505 if test x$have_pgp != xno ; then
4507 cat >>confdefs.h <<\_ACEOF
4508 #define CRYPT_BACKEND_CLASSIC_PGP 1
4511 PGPAUX_TARGET="pgpring pgpewrap"
4512 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pgp.o pgpinvoke.o pgpkey.o pgplib.o gnupgparse.o pgpmicalg.o pgppacket.o"
4515 # Check whether --enable-smime or --disable-smime was given.
4516 if test "${enable_smime+set}" = set; then
4517 enableval="$enable_smime"
4518 if test x$enableval = xno ; then
4524 if test x$have_smime != xno ; then
4526 cat >>confdefs.h <<\_ACEOF
4527 #define CRYPT_BACKEND_CLASSIC_SMIME 1
4530 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS smime.o "
4531 SMIMEAUX_TARGET="smime_keys"
4535 # Check whether --with-mixmaster or --without-mixmaster was given.
4536 if test "${with_mixmaster+set}" = set; then
4537 withval="$with_mixmaster"
4538 if test -x "$withval" ; then
4539 MIXMASTER="$withval"
4541 MIXMASTER="mixmaster"
4543 OPS="$OPS \$(srcdir)/OPS.MIX"
4544 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS remailer.o"
4546 cat >>confdefs.h <<_ACEOF
4547 #define MIXMASTER "$MIXMASTER"
4554 # We now require all OPS
4555 OPS="$OPS \$(srcdir)/OPS.PGP \$(srcdir)/OPS.SMIME \$(srcdir)/OPS.CRYPT "
4563 cat >>confdefs.h <<_ACEOF
4564 #define SUBVERSION "$SUBVERSION"
4569 # Extract the first word of "ispell", so it can be a program name with args.
4570 set dummy ispell; ac_word=$2
4571 echo "$as_me:$LINENO: checking for $ac_word" >&5
4572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4573 if test "${ac_cv_path_ISPELL+set}" = set; then
4574 echo $ECHO_N "(cached) $ECHO_C" >&6
4578 ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a path.
4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 test -z "$as_dir" && as_dir=.
4586 for ac_exec_ext in '' $ac_executable_extensions; do
4587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4588 ac_cv_path_ISPELL="$as_dir/$ac_word$ac_exec_ext"
4589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4595 test -z "$ac_cv_path_ISPELL" && ac_cv_path_ISPELL="no"
4599 ISPELL=$ac_cv_path_ISPELL
4601 if test -n "$ISPELL"; then
4602 echo "$as_me:$LINENO: result: $ISPELL" >&5
4603 echo "${ECHO_T}$ISPELL" >&6
4605 echo "$as_me:$LINENO: result: no" >&5
4606 echo "${ECHO_T}no" >&6
4609 if test $ISPELL != no; then
4611 cat >>confdefs.h <<_ACEOF
4612 #define ISPELL "$ISPELL"
4618 # Check whether --with-slang or --without-slang was given.
4619 if test "${with_slang+set}" = set; then
4620 withval="$with_slang"
4621 echo "$as_me:$LINENO: checking if this is a BSD system" >&5
4622 echo $ECHO_N "checking if this is a BSD system... $ECHO_C" >&6
4623 if test "${mutt_cv_bsdish+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 if test "$cross_compiling" = yes; then
4629 cat >conftest.$ac_ext <<_ACEOF
4630 #line $LINENO "configure"
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h. */
4636 #include <sys/param.h>
4647 rm -f conftest$ac_exeext
4648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4649 (eval $ac_link) 2>&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); }; }; then
4660 echo "$as_me: program exited with status $ac_status" >&5
4661 echo "$as_me: failed program was:" >&5
4662 sed 's/^/| /' conftest.$ac_ext >&5
4667 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4670 echo "$as_me:$LINENO: result: $mutt_cv_bsdish" >&5
4671 echo "${ECHO_T}$mutt_cv_bsdish" >&6
4673 echo "$as_me:$LINENO: checking for S-Lang" >&5
4674 echo $ECHO_N "checking for S-Lang... $ECHO_C" >&6
4675 if test $withval = yes; then
4676 if test -d $srcdir/../slang; then
4677 mutt_cv_slang=$srcdir/../slang/src
4678 CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
4679 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
4681 if test -d $mutt_cv_prefix/include/slang; then
4682 CPPFLAGS="$CPPFLAGS -I$mutt_cv_prefix/include/slang"
4683 elif test -d /usr/include/slang; then
4684 CPPFLAGS="$CPPFLAGS -I/usr/include/slang"
4689 if test -f $withval/src/slang.h; then
4690 mutt_cv_slang=$withval/src
4691 CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
4692 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
4694 mutt_cv_slang=$withval
4695 if test -d $withval/include/slang; then
4696 CPPFLAGS="$CPPFLAGS -I${withval}/include/slang"
4697 elif test -d $withval/include; then
4698 CPPFLAGS="$CPPFLAGS -I${withval}/include"
4700 LDFLAGS="$LDFLAGS -L${withval}/lib"
4703 echo "$as_me:$LINENO: result: $mutt_cv_slang" >&5
4704 echo "${ECHO_T}$mutt_cv_slang" >&6
4705 if test $mutt_cv_bsdish = yes; then
4707 echo "$as_me:$LINENO: checking for main in -ltermlib" >&5
4708 echo $ECHO_N "checking for main in -ltermlib... $ECHO_C" >&6
4709 if test "${ac_cv_lib_termlib_main+set}" = set; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
4712 ac_check_lib_save_LIBS=$LIBS
4713 LIBS="-ltermlib $LIBS"
4714 cat >conftest.$ac_ext <<_ACEOF
4715 #line $LINENO "configure"
4718 cat confdefs.h >>conftest.$ac_ext
4719 cat >>conftest.$ac_ext <<_ACEOF
4720 /* end confdefs.h. */
4731 rm -f conftest.$ac_objext conftest$ac_exeext
4732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4733 (eval $ac_link) 2>&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } &&
4737 { ac_try='test -s conftest$ac_exeext'
4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }; }; then
4743 ac_cv_lib_termlib_main=yes
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4748 ac_cv_lib_termlib_main=no
4750 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4751 LIBS=$ac_check_lib_save_LIBS
4753 echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_main" >&5
4754 echo "${ECHO_T}$ac_cv_lib_termlib_main" >&6
4755 if test $ac_cv_lib_termlib_main = yes; then
4756 cat >>confdefs.h <<_ACEOF
4757 #define HAVE_LIBTERMLIB 1
4760 LIBS="-ltermlib $LIBS"
4766 cat >>confdefs.h <<\_ACEOF
4767 #define USE_SLANG_CURSES 1
4771 cat >>confdefs.h <<\_ACEOF
4772 #define HAVE_COLOR 1
4775 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
4778 echo "$as_me:$LINENO: checking for SLtt_get_terminfo in -lslang" >&5
4779 echo $ECHO_N "checking for SLtt_get_terminfo in -lslang... $ECHO_C" >&6
4780 if test "${ac_cv_lib_slang_SLtt_get_terminfo+set}" = set; then
4781 echo $ECHO_N "(cached) $ECHO_C" >&6
4783 ac_check_lib_save_LIBS=$LIBS
4784 LIBS="-lslang -lm $LIBS"
4785 cat >conftest.$ac_ext <<_ACEOF
4786 #line $LINENO "configure"
4789 cat confdefs.h >>conftest.$ac_ext
4790 cat >>conftest.$ac_ext <<_ACEOF
4791 /* end confdefs.h. */
4793 /* Override any gcc2 internal prototype to avoid an error. */
4797 /* We use char because int might match the return type of a gcc2
4798 builtin and then its argument prototype would still apply. */
4799 char SLtt_get_terminfo ();
4803 SLtt_get_terminfo ();
4808 rm -f conftest.$ac_objext conftest$ac_exeext
4809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4810 (eval $ac_link) 2>&5
4812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813 (exit $ac_status); } &&
4814 { ac_try='test -s conftest$ac_exeext'
4815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); }; }; then
4820 ac_cv_lib_slang_SLtt_get_terminfo=yes
4822 echo "$as_me: failed program was:" >&5
4823 sed 's/^/| /' conftest.$ac_ext >&5
4825 ac_cv_lib_slang_SLtt_get_terminfo=no
4827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4828 LIBS=$ac_check_lib_save_LIBS
4830 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLtt_get_terminfo" >&5
4831 echo "${ECHO_T}$ac_cv_lib_slang_SLtt_get_terminfo" >&6
4832 if test $ac_cv_lib_slang_SLtt_get_terminfo = yes; then
4833 MUTTLIBS="$MUTTLIBS -lslang -lm"
4835 { { echo "$as_me:$LINENO: error: unable to compile. check config.log" >&5
4836 echo "$as_me: error: unable to compile. check config.log" >&2;}
4837 { (exit 1); exit 1; }; }
4845 # Check whether --with-curses or --without-curses was given.
4846 if test "${with_curses+set}" = set; then
4847 withval="$with_curses"
4848 if test $withval != yes; then
4849 mutt_cv_curses=$withval
4851 if test x$mutt_cv_curses != x/usr; then
4852 LDFLAGS="-L${mutt_cv_curses}/lib $LDFLAGS"
4853 CPPFLAGS="$CPPFLAGS -I${mutt_cv_curses}/include"