3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 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.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --disable-pgp Disable PGP support"
17 --disable-smime Disable SMIME support"
19 --with-mixmaster[=PATH] Include Mixmaster support"
21 --with-slang[=DIR] Use S-Lang instead of ncurses"
23 --with-curses=DIR Where ncurses is installed "
25 --with-regex Use the GNU regex library "
27 --with-homespool[=FILE] File in user's directory where new mail is spooled"
29 --with-mailpath=DIR Directory where spool mailboxes are located"
31 --enable-external-dotlock Force use of an external dotlock program"
33 --with-docdir=PATH Specify where to put the documentation"
35 --with-domain=DOMAIN Specify your DNS domain name"
37 --enable-pop Enable POP3 support"
39 --enable-imap Enable IMAP support"
41 --enable-nntp Enable NNTP support"
43 --with-gss[=PFX] Compile in GSSAPI authentication for IMAP"
45 --with-ssl[=PFX] Compile in SSL support for POP/IMAP"
47 --with-gnutls[=PFX] Compile in GNU TLS support for POP/IMAP"
49 --with-nss[=PFX] Compile in SSL support for POP/IMAP via NSS"
51 --with-sasl[=PFX] Use Cyrus SASL library for POP/IMAP authentication"
53 --with-sasl2[=PFX] Use Cyrus SASL library version 2 for POP/IMAP authentication"
55 --with-idn=[PFX] Use GNU libidn for domain names"
57 --enable-debug Enable debugging support"
59 --enable-flock Use flock() to lock files"
61 --disable-fcntl Do NOT use fcntl() to lock files "
63 --disable-warnings Turn off compiler warnings (not recommended)"
65 --enable-nfs-fix Work around an NFS with broken attributes caching "
67 --enable-buffy-size Use file size attribute instead of access time "
69 --enable-mailtool Enable Sun mailtool attachments support "
71 --enable-compressed Enable compressed folders support "
73 --enable-locales-fix The result of isprint() is unreliable "
75 --with-exec-shell=SHELL Specify alternate shell (ONLY if /bin/sh is broken)"
77 --enable-exact-address Enable regeneration of email addresses"
79 --enable-hcache Enable header caching"
81 --without-gdbm Get rid of gdbm even if it is available "
83 --with-bdb[=DIR] Use BerkeleyDB4 if gdbm is not available "
85 --disable-iconv Disable iconv support"
87 --with-libiconv-prefix=DIR Search for libiconv in DIR/include and DIR/lib"
89 --disable-nls Do not use Native Language Support"
91 --with-included-gettext Use the GNU gettext library included here"
93 --without-wc-funcs Do not use the system's wchar_t functions"
95 --with-libesmtp=DIR Compile in support for libesmtp for the MTA"
97 # Initialize some variables set by options.
98 # The variables have the same names as the options, with
99 # dashes changed to underlines.
101 cache_file=./config.cache
110 program_transform_name=s,x,x,
118 bindir='${exec_prefix}/bin'
119 sbindir='${exec_prefix}/sbin'
120 libexecdir='${exec_prefix}/libexec'
121 datadir='${prefix}/share'
122 sysconfdir='${prefix}/etc'
123 sharedstatedir='${prefix}/com'
124 localstatedir='${prefix}/var'
125 libdir='${exec_prefix}/lib'
126 includedir='${prefix}/include'
127 oldincludedir='/usr/include'
128 infodir='${prefix}/info'
129 mandir='${prefix}/man'
131 # Initialize some other variables.
134 SHELL=${CONFIG_SHELL-/bin/sh}
135 # Maximum number of lines to put in a shell here document.
142 # If the previous option needs an argument, assign it.
143 if test -n "$ac_prev"; then
144 eval "$ac_prev=\$ac_option"
150 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
154 # Accept the important Cygnus configure options, so we can diagnose typos.
158 -bindir | --bindir | --bindi | --bind | --bin | --bi)
160 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
161 bindir="$ac_optarg" ;;
163 -build | --build | --buil | --bui | --bu)
165 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
166 build="$ac_optarg" ;;
168 -cache-file | --cache-file | --cache-fil | --cache-fi \
169 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
170 ac_prev=cache_file ;;
171 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
172 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
173 cache_file="$ac_optarg" ;;
175 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
177 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
179 datadir="$ac_optarg" ;;
181 -disable-* | --disable-*)
182 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
183 # Reject names that are not valid shell variable names.
184 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
185 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
187 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
188 eval "enable_${ac_feature}=no" ;;
190 -enable-* | --enable-*)
191 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
192 # Reject names that are not valid shell variable names.
193 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
194 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
196 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
201 eval "enable_${ac_feature}='$ac_optarg'" ;;
203 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
204 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
205 | --exec | --exe | --ex)
206 ac_prev=exec_prefix ;;
207 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
208 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
209 | --exec=* | --exe=* | --ex=*)
210 exec_prefix="$ac_optarg" ;;
212 -gas | --gas | --ga | --g)
213 # Obsolete; use --with-gas.
216 -help | --help | --hel | --he)
217 # Omit some internal or obsolete options to make the list less imposing.
218 # This message is too long to be a string in the A/UX 3.1 sh.
220 Usage: configure [options] [host]
221 Options: [defaults in brackets after descriptions]
223 --cache-file=FILE cache test results in FILE
224 --help print this message
225 --no-create do not create output files
226 --quiet, --silent do not print \`checking...' messages
227 --version print the version of autoconf that created configure
228 Directory and file names:
229 --prefix=PREFIX install architecture-independent files in PREFIX
231 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
233 --bindir=DIR user executables in DIR [EPREFIX/bin]
234 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
235 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
236 --datadir=DIR read-only architecture-independent data in DIR
238 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
239 --sharedstatedir=DIR modifiable architecture-independent data in DIR
241 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
242 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
243 --includedir=DIR C header files in DIR [PREFIX/include]
244 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
245 --infodir=DIR info documentation in DIR [PREFIX/info]
246 --mandir=DIR man documentation in DIR [PREFIX/man]
247 --srcdir=DIR find the sources in DIR [configure dir or ..]
248 --program-prefix=PREFIX prepend PREFIX to installed program names
249 --program-suffix=SUFFIX append SUFFIX to installed program names
250 --program-transform-name=PROGRAM
251 run sed PROGRAM on installed program names
255 --build=BUILD configure for building on BUILD [BUILD=HOST]
256 --host=HOST configure for HOST [guessed]
257 --target=TARGET configure for TARGET [TARGET=HOST]
258 Features and packages:
259 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
260 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
261 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
262 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
263 --x-includes=DIR X include files are in DIR
264 --x-libraries=DIR X library files are in DIR
266 if test -n "$ac_help"; then
267 echo "--enable and --with options recognized:$ac_help"
271 -host | --host | --hos | --ho)
273 -host=* | --host=* | --hos=* | --ho=*)
276 -includedir | --includedir | --includedi | --included | --include \
277 | --includ | --inclu | --incl | --inc)
278 ac_prev=includedir ;;
279 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
280 | --includ=* | --inclu=* | --incl=* | --inc=*)
281 includedir="$ac_optarg" ;;
283 -infodir | --infodir | --infodi | --infod | --info | --inf)
285 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
286 infodir="$ac_optarg" ;;
288 -libdir | --libdir | --libdi | --libd)
290 -libdir=* | --libdir=* | --libdi=* | --libd=*)
291 libdir="$ac_optarg" ;;
293 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
294 | --libexe | --libex | --libe)
295 ac_prev=libexecdir ;;
296 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
297 | --libexe=* | --libex=* | --libe=*)
298 libexecdir="$ac_optarg" ;;
300 -localstatedir | --localstatedir | --localstatedi | --localstated \
301 | --localstate | --localstat | --localsta | --localst \
302 | --locals | --local | --loca | --loc | --lo)
303 ac_prev=localstatedir ;;
304 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
305 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
306 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
307 localstatedir="$ac_optarg" ;;
309 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
311 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
312 mandir="$ac_optarg" ;;
315 # Obsolete; use --without-fp.
318 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
322 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
323 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
326 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
327 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
328 | --oldin | --oldi | --old | --ol | --o)
329 ac_prev=oldincludedir ;;
330 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
331 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
332 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
333 oldincludedir="$ac_optarg" ;;
335 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
337 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
338 prefix="$ac_optarg" ;;
340 -program-prefix | --program-prefix | --program-prefi | --program-pref \
341 | --program-pre | --program-pr | --program-p)
342 ac_prev=program_prefix ;;
343 -program-prefix=* | --program-prefix=* | --program-prefi=* \
344 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
345 program_prefix="$ac_optarg" ;;
347 -program-suffix | --program-suffix | --program-suffi | --program-suff \
348 | --program-suf | --program-su | --program-s)
349 ac_prev=program_suffix ;;
350 -program-suffix=* | --program-suffix=* | --program-suffi=* \
351 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
352 program_suffix="$ac_optarg" ;;
354 -program-transform-name | --program-transform-name \
355 | --program-transform-nam | --program-transform-na \
356 | --program-transform-n | --program-transform- \
357 | --program-transform | --program-transfor \
358 | --program-transfo | --program-transf \
359 | --program-trans | --program-tran \
360 | --progr-tra | --program-tr | --program-t)
361 ac_prev=program_transform_name ;;
362 -program-transform-name=* | --program-transform-name=* \
363 | --program-transform-nam=* | --program-transform-na=* \
364 | --program-transform-n=* | --program-transform-=* \
365 | --program-transform=* | --program-transfor=* \
366 | --program-transfo=* | --program-transf=* \
367 | --program-trans=* | --program-tran=* \
368 | --progr-tra=* | --program-tr=* | --program-t=*)
369 program_transform_name="$ac_optarg" ;;
371 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
372 | -silent | --silent | --silen | --sile | --sil)
375 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
377 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
379 sbindir="$ac_optarg" ;;
381 -sharedstatedir | --sharedstatedir | --sharedstatedi \
382 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
383 | --sharedst | --shareds | --shared | --share | --shar \
385 ac_prev=sharedstatedir ;;
386 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
387 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
388 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
390 sharedstatedir="$ac_optarg" ;;
392 -site | --site | --sit)
394 -site=* | --site=* | --sit=*)
397 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
399 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
400 srcdir="$ac_optarg" ;;
402 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
403 | --syscon | --sysco | --sysc | --sys | --sy)
404 ac_prev=sysconfdir ;;
405 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
406 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
407 sysconfdir="$ac_optarg" ;;
409 -target | --target | --targe | --targ | --tar | --ta | --t)
411 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
412 target="$ac_optarg" ;;
414 -v | -verbose | --verbose | --verbos | --verbo | --verb)
417 -version | --version | --versio | --versi | --vers)
418 echo "configure generated by autoconf version 2.13"
422 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
423 # Reject names that are not valid shell variable names.
424 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
425 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
427 ac_package=`echo $ac_package| sed 's/-/_/g'`
432 eval "with_${ac_package}='$ac_optarg'" ;;
434 -without-* | --without-*)
435 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
436 # Reject names that are not valid shell variable names.
437 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
438 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
440 ac_package=`echo $ac_package| sed 's/-/_/g'`
441 eval "with_${ac_package}=no" ;;
444 # Obsolete; use --with-x.
447 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
448 | --x-incl | --x-inc | --x-in | --x-i)
449 ac_prev=x_includes ;;
450 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
451 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
452 x_includes="$ac_optarg" ;;
454 -x-libraries | --x-libraries | --x-librarie | --x-librari \
455 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
456 ac_prev=x_libraries ;;
457 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
458 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
459 x_libraries="$ac_optarg" ;;
461 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
465 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
466 echo "configure: warning: $ac_option: invalid host type" 1>&2
468 if test "x$nonopt" != xNONE; then
469 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
477 if test -n "$ac_prev"; then
478 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
481 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
483 # File descriptor usage:
486 # 2 errors and warnings
487 # 3 some systems may open it to /dev/tty
488 # 4 used on the Kubota Titan
489 # 6 checking for... messages and results
490 # 5 compiler messages saved in config.log
491 if test "$silent" = yes; then
499 This file contains any messages produced by compilers while
500 running configure, to aid debugging if configure makes a mistake.
503 # Strip out --no-create and --no-recursion so they do not pile up.
504 # Also quote any args containing shell metacharacters.
509 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
510 | --no-cr | --no-c) ;;
511 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
512 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
513 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
514 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
515 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
520 # Only set these to C if already set. These must not be set unconditionally
521 # because not all systems understand e.g. LANG=C (notably SCO).
522 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
523 # Non-C LC_CTYPE values break the ctype check.
524 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
525 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
526 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
527 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
529 # confdefs.h avoids OS command line length limits that DEFS can exceed.
530 rm -rf conftest* confdefs.h
531 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
534 # A filename unique to this package, relative to the directory that
535 # configure is in, which we can look for to find out if srcdir is correct.
536 ac_unique_file=mutt.h
538 # Find the source files, if location was not specified.
539 if test -z "$srcdir"; then
540 ac_srcdir_defaulted=yes
541 # Try the directory containing this script, then its parent.
543 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
544 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
546 if test ! -r $srcdir/$ac_unique_file; then
550 ac_srcdir_defaulted=no
552 if test ! -r $srcdir/$ac_unique_file; then
553 if test "$ac_srcdir_defaulted" = yes; then
554 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
556 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
559 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
561 # Prefer explicitly selected file to automatically selected ones.
562 if test -z "$CONFIG_SITE"; then
563 if test "x$prefix" != xNONE; then
564 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
566 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
569 for ac_site_file in $CONFIG_SITE; do
570 if test -r "$ac_site_file"; then
571 echo "loading site script $ac_site_file"
576 if test -r "$cache_file"; then
577 echo "loading cache $cache_file"
580 echo "creating cache $cache_file"
585 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
586 ac_cpp='$CPP $CPPFLAGS'
587 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
588 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
589 cross_compiling=$ac_cv_prog_cc_cross
593 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
594 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
595 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
602 ac_n= ac_c='\c' ac_t=
610 mutt_cv_version=`cat $srcdir/VERSION`
614 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
615 if test -f $ac_dir/install-sh; then
617 ac_install_sh="$ac_aux_dir/install-sh -c"
619 elif test -f $ac_dir/install.sh; then
621 ac_install_sh="$ac_aux_dir/install.sh -c"
625 if test -z "$ac_aux_dir"; then
626 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
628 ac_config_guess=$ac_aux_dir/config.guess
629 ac_config_sub=$ac_aux_dir/config.sub
630 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
632 # Find a good install program. We prefer a C program (faster),
633 # so one script is as good as another. But avoid the broken or
634 # incompatible versions:
635 # SysV /etc/install, /usr/sbin/install
636 # SunOS /usr/etc/install
639 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
640 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
641 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
642 # ./install, which can be erroneously created by make from ./install.sh.
643 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
644 echo "configure:645: checking for a BSD compatible install" >&5
645 if test -z "$INSTALL"; then
646 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
647 echo $ac_n "(cached) $ac_c" 1>&6
649 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
650 for ac_dir in $PATH; do
651 # Account for people who put trailing slashes in PATH elements.
653 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
655 # OSF1 and SCO ODT 3.0 have their own names for install.
656 # Don't use installbsd from OSF since it installs stuff as root
658 for ac_prog in ginstall scoinst install; do
659 if test -f $ac_dir/$ac_prog; then
660 if test $ac_prog = install &&
661 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
662 # AIX install. It has an incompatible calling convention.
665 ac_cv_path_install="$ac_dir/$ac_prog -c"
676 if test "${ac_cv_path_install+set}" = set; then
677 INSTALL="$ac_cv_path_install"
679 # As a last resort, use the slow shell script. We don't cache a
680 # path for INSTALL within a source directory, because that will
681 # break other packages using the cache if that directory is
682 # removed, or if the path is relative.
683 INSTALL="$ac_install_sh"
686 echo "$ac_t""$INSTALL" 1>&6
688 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
689 # It thinks the first close brace ends the variable substitution.
690 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
692 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
694 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
696 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
697 echo "configure:698: checking whether build environment is sane" >&5
700 echo timestamp > conftestfile
701 # Do `set' in a subshell so we don't clobber the current shell's
702 # arguments. Must try -L first in case configure is actually a
703 # symlink; some systems play weird games with the mod time of symlinks
704 # (eg FreeBSD returns the mod time of the symlink's containing
707 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
708 if test "$*" = "X"; then
710 set X `ls -t $srcdir/configure conftestfile`
712 if test "$*" != "X $srcdir/configure conftestfile" \
713 && test "$*" != "X conftestfile $srcdir/configure"; then
715 # If neither matched, then we have a broken ls. This can happen
716 # if, for instance, CONFIG_SHELL is bash and it inherits a
717 # broken ls alias from the environment. This has actually
718 # happened. Such a system could not be considered "sane".
719 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
720 alias in your environment" 1>&2; exit 1; }
723 test "$2" = conftestfile
729 { echo "configure: error: newly created file is older than distributed files!
730 Check your system clock" 1>&2; exit 1; }
733 echo "$ac_t""yes" 1>&6
734 if test "$program_transform_name" = s,x,x,; then
735 program_transform_name=
737 # Double any \ or $. echo might interpret backslashes.
738 cat <<\EOF_SED > conftestsed
739 s,\\,\\\\,g; s,\$,$$,g
741 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
744 test "$program_prefix" != NONE &&
745 program_transform_name="s,^,${program_prefix},; $program_transform_name"
746 # Use a double $ so make ignores it.
747 test "$program_suffix" != NONE &&
748 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
750 # sed with no file args requires a program.
751 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
753 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
754 echo "configure:755: checking whether ${MAKE-make} sets \${MAKE}" >&5
755 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
756 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
757 echo $ac_n "(cached) $ac_c" 1>&6
759 cat > conftestmake <<\EOF
761 @echo 'ac_maketemp="${MAKE}"'
763 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
764 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
765 if test -n "$ac_maketemp"; then
766 eval ac_cv_prog_make_${ac_make}_set=yes
768 eval ac_cv_prog_make_${ac_make}_set=no
772 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
773 echo "$ac_t""yes" 1>&6
776 echo "$ac_t""no" 1>&6
777 SET_MAKE="MAKE=${MAKE-make}"
783 VERSION=$mutt_cv_version
785 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
786 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
788 cat >> confdefs.h <<EOF
789 #define PACKAGE "$PACKAGE"
792 cat >> confdefs.h <<EOF
793 #define VERSION "$VERSION"
798 missing_dir=`cd $ac_aux_dir && pwd`
799 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
800 echo "configure:801: checking for working aclocal" >&5
801 # Run test in a subshell; some versions of sh will print an error if
802 # an executable is not found, even if stderr is redirected.
803 # Redirect stdin to placate older versions of autoconf. Sigh.
804 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
806 echo "$ac_t""found" 1>&6
808 ACLOCAL="$missing_dir/missing aclocal"
809 echo "$ac_t""missing" 1>&6
812 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
813 echo "configure:814: checking for working autoconf" >&5
814 # Run test in a subshell; some versions of sh will print an error if
815 # an executable is not found, even if stderr is redirected.
816 # Redirect stdin to placate older versions of autoconf. Sigh.
817 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
819 echo "$ac_t""found" 1>&6
821 AUTOCONF="$missing_dir/missing autoconf"
822 echo "$ac_t""missing" 1>&6
825 echo $ac_n "checking for working automake""... $ac_c" 1>&6
826 echo "configure:827: checking for working automake" >&5
827 # Run test in a subshell; some versions of sh will print an error if
828 # an executable is not found, even if stderr is redirected.
829 # Redirect stdin to placate older versions of autoconf. Sigh.
830 if (automake --version) < /dev/null > /dev/null 2>&1; then
832 echo "$ac_t""found" 1>&6
834 AUTOMAKE="$missing_dir/missing automake"
835 echo "$ac_t""missing" 1>&6
838 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
839 echo "configure:840: checking for working autoheader" >&5
840 # Run test in a subshell; some versions of sh will print an error if
841 # an executable is not found, even if stderr is redirected.
842 # Redirect stdin to placate older versions of autoconf. Sigh.
843 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
844 AUTOHEADER=autoheader
845 echo "$ac_t""found" 1>&6
847 AUTOHEADER="$missing_dir/missing autoheader"
848 echo "$ac_t""missing" 1>&6
851 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
852 echo "configure:853: checking for working makeinfo" >&5
853 # Run test in a subshell; some versions of sh will print an error if
854 # an executable is not found, even if stderr is redirected.
855 # Redirect stdin to placate older versions of autoconf. Sigh.
856 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
858 echo "$ac_t""found" 1>&6
860 MAKEINFO="$missing_dir/missing makeinfo"
861 echo "$ac_t""missing" 1>&6
868 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"
871 # Make sure we can run config.sub.
872 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
873 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
876 echo $ac_n "checking host system type""... $ac_c" 1>&6
877 echo "configure:878: checking host system type" >&5
880 case "$host_alias" in
884 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
885 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
887 *) host_alias=$nonopt ;;
891 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
892 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
893 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
894 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
895 echo "$ac_t""$host" 1>&6
898 echo $ac_n "checking for prefix""... $ac_c" 1>&6
899 echo "configure:900: checking for prefix" >&5
900 if test x$prefix = xNONE; then
901 mutt_cv_prefix=$ac_default_prefix
903 mutt_cv_prefix=$prefix
905 echo "$ac_t""$mutt_cv_prefix" 1>&6
907 # Extract the first word of "gcc", so it can be a program name with args.
908 set dummy gcc; ac_word=$2
909 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
910 echo "configure:911: checking for $ac_word" >&5
911 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
912 echo $ac_n "(cached) $ac_c" 1>&6
914 if test -n "$CC"; then
915 ac_cv_prog_CC="$CC" # Let the user override the test.
917 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
919 for ac_dir in $ac_dummy; do
920 test -z "$ac_dir" && ac_dir=.
921 if test -f $ac_dir/$ac_word; then
930 if test -n "$CC"; then
931 echo "$ac_t""$CC" 1>&6
933 echo "$ac_t""no" 1>&6
936 if test -z "$CC"; then
937 # Extract the first word of "cc", so it can be a program name with args.
938 set dummy cc; ac_word=$2
939 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
940 echo "configure:941: checking for $ac_word" >&5
941 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
942 echo $ac_n "(cached) $ac_c" 1>&6
944 if test -n "$CC"; then
945 ac_cv_prog_CC="$CC" # Let the user override the test.
947 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
950 for ac_dir in $ac_dummy; do
951 test -z "$ac_dir" && ac_dir=.
952 if test -f $ac_dir/$ac_word; then
953 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
962 if test $ac_prog_rejected = yes; then
963 # We found a bogon in the path, so make sure we never use it.
964 set dummy $ac_cv_prog_CC
966 if test $# -gt 0; then
967 # We chose a different compiler from the bogus one.
968 # However, it has the same basename, so the bogon will be chosen
969 # first if we set CC to just the basename; use the full file name.
971 set dummy "$ac_dir/$ac_word" "$@"
979 if test -n "$CC"; then
980 echo "$ac_t""$CC" 1>&6
982 echo "$ac_t""no" 1>&6
985 if test -z "$CC"; then
988 # Extract the first word of "cl", so it can be a program name with args.
989 set dummy cl; ac_word=$2
990 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
991 echo "configure:992: checking for $ac_word" >&5
992 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
993 echo $ac_n "(cached) $ac_c" 1>&6
995 if test -n "$CC"; then
996 ac_cv_prog_CC="$CC" # Let the user override the test.
998 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1000 for ac_dir in $ac_dummy; do
1001 test -z "$ac_dir" && ac_dir=.
1002 if test -f $ac_dir/$ac_word; then
1011 if test -n "$CC"; then
1012 echo "$ac_t""$CC" 1>&6
1014 echo "$ac_t""no" 1>&6
1019 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1022 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1023 echo "configure:1024: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1026 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1027 ac_cpp='$CPP $CPPFLAGS'
1028 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1029 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1030 cross_compiling=$ac_cv_prog_cc_cross
1032 cat > conftest.$ac_ext << EOF
1034 #line 1035 "configure"
1035 #include "confdefs.h"
1039 if { (eval echo configure:1040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1040 ac_cv_prog_cc_works=yes
1041 # If we can't run a trivial program, we are probably using a cross compiler.
1042 if (./conftest; exit) 2>/dev/null; then
1043 ac_cv_prog_cc_cross=no
1045 ac_cv_prog_cc_cross=yes
1048 echo "configure: failed program was:" >&5
1049 cat conftest.$ac_ext >&5
1050 ac_cv_prog_cc_works=no
1054 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1055 ac_cpp='$CPP $CPPFLAGS'
1056 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1057 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1058 cross_compiling=$ac_cv_prog_cc_cross
1060 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1061 if test $ac_cv_prog_cc_works = no; then
1062 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1064 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1065 echo "configure:1066: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1066 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1067 cross_compiling=$ac_cv_prog_cc_cross
1069 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1070 echo "configure:1071: checking whether we are using GNU C" >&5
1071 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1072 echo $ac_n "(cached) $ac_c" 1>&6
1074 cat > conftest.c <<EOF
1079 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1086 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1088 if test $ac_cv_prog_gcc = yes; then
1094 ac_test_CFLAGS="${CFLAGS+set}"
1095 ac_save_CFLAGS="$CFLAGS"
1097 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1098 echo "configure:1099: checking whether ${CC-cc} accepts -g" >&5
1099 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1100 echo $ac_n "(cached) $ac_c" 1>&6
1102 echo 'void f(){}' > conftest.c
1103 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1112 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1113 if test "$ac_test_CFLAGS" = set; then
1114 CFLAGS="$ac_save_CFLAGS"
1115 elif test $ac_cv_prog_cc_g = yes; then
1116 if test "$GCC" = yes; then
1122 if test "$GCC" = yes; then
1130 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1131 echo "configure:1132: checking for strerror in -lcposix" >&5
1132 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1133 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1134 echo $ac_n "(cached) $ac_c" 1>&6
1136 ac_save_LIBS="$LIBS"
1137 LIBS="-lcposix $LIBS"
1138 cat > conftest.$ac_ext <<EOF
1139 #line 1140 "configure"
1140 #include "confdefs.h"
1141 /* Override any gcc2 internal prototype to avoid an error. */
1142 /* We use char because int might match the return type of a gcc2
1143 builtin and then its argument prototype would still apply. */
1150 if { (eval echo configure:1151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1152 eval "ac_cv_lib_$ac_lib_var=yes"
1154 echo "configure: failed program was:" >&5
1155 cat conftest.$ac_ext >&5
1157 eval "ac_cv_lib_$ac_lib_var=no"
1160 LIBS="$ac_save_LIBS"
1163 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1164 echo "$ac_t""yes" 1>&6
1165 LIBS="$LIBS -lcposix"
1167 echo "$ac_t""no" 1>&6
1175 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
1176 echo "configure:1177: checking for ${CC-cc} option to accept ANSI C" >&5
1177 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
1178 echo $ac_n "(cached) $ac_c" 1>&6
1180 am_cv_prog_cc_stdc=no
1182 # Don't try gcc -ansi; that turns off useful extensions and
1183 # breaks some systems' header files.
1184 # AIX -qlanglvl=ansi
1185 # Ultrix and OSF/1 -std1
1186 # HP-UX -Aa -D_HPUX_SOURCE
1187 # SVR4 -Xc -D__EXTENSIONS__
1188 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1190 CC="$ac_save_CC $ac_arg"
1191 cat > conftest.$ac_ext <<EOF
1192 #line 1193 "configure"
1193 #include "confdefs.h"
1196 #include <sys/types.h>
1197 #include <sys/stat.h>
1198 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1199 struct buf { int x; };
1200 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1201 static char *e (p, i)
1207 static char *f (char * (*g) (char **, int), char **p, ...)
1212 s = g (p, va_arg (v,int));
1216 int test (int i, double x);
1217 struct s1 {int (*f) (int a);};
1218 struct s2 {int (*f) (double a);};
1219 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1225 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1229 if { (eval echo configure:1230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1231 am_cv_prog_cc_stdc="$ac_arg"; break
1233 echo "configure: failed program was:" >&5
1234 cat conftest.$ac_ext >&5
1242 if test -z "$am_cv_prog_cc_stdc"; then
1243 echo "$ac_t""none needed" 1>&6
1245 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1247 case "x$am_cv_prog_cc_stdc" in
1249 *) CC="$CC $am_cv_prog_cc_stdc" ;;
1252 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1253 echo "configure:1254: checking how to run the C preprocessor" >&5
1254 # On Suns, sometimes $CPP names a directory.
1255 if test -n "$CPP" && test -d "$CPP"; then
1258 if test -z "$CPP"; then
1259 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1260 echo $ac_n "(cached) $ac_c" 1>&6
1262 # This must be in double quotes, not single quotes, because CPP may get
1263 # substituted into the Makefile and "${CC-cc}" will confuse make.
1265 # On the NeXT, cc -E runs the code through the compiler's parser,
1266 # not just through cpp.
1267 cat > conftest.$ac_ext <<EOF
1268 #line 1269 "configure"
1269 #include "confdefs.h"
1273 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1274 { (eval echo configure:1275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1275 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1276 if test -z "$ac_err"; then
1280 echo "configure: failed program was:" >&5
1281 cat conftest.$ac_ext >&5
1283 CPP="${CC-cc} -E -traditional-cpp"
1284 cat > conftest.$ac_ext <<EOF
1285 #line 1286 "configure"
1286 #include "confdefs.h"
1290 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1291 { (eval echo configure:1292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1292 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1293 if test -z "$ac_err"; then
1297 echo "configure: failed program was:" >&5
1298 cat conftest.$ac_ext >&5
1300 CPP="${CC-cc} -nologo -E"
1301 cat > conftest.$ac_ext <<EOF
1302 #line 1303 "configure"
1303 #include "confdefs.h"
1307 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1308 { (eval echo configure:1309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1309 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1310 if test -z "$ac_err"; then
1314 echo "configure: failed program was:" >&5
1315 cat conftest.$ac_ext >&5
1324 ac_cv_prog_CPP="$CPP"
1326 CPP="$ac_cv_prog_CPP"
1328 ac_cv_prog_CPP="$CPP"
1330 echo "$ac_t""$CPP" 1>&6
1334 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
1335 echo "configure:1336: checking for function prototypes" >&5
1336 if test "$am_cv_prog_cc_stdc" != no; then
1337 echo "$ac_t""yes" 1>&6
1338 cat >> confdefs.h <<\EOF
1339 #define PROTOTYPES 1
1344 echo "$ac_t""no" 1>&6
1345 U=_ ANSI2KNR=./ansi2knr
1346 # Ensure some checks needed by ansi2knr itself.
1347 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1348 echo "configure:1349: checking for ANSI C header files" >&5
1349 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1350 echo $ac_n "(cached) $ac_c" 1>&6
1352 cat > conftest.$ac_ext <<EOF
1353 #line 1354 "configure"
1354 #include "confdefs.h"
1360 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1361 { (eval echo configure:1362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1362 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1363 if test -z "$ac_err"; then
1365 ac_cv_header_stdc=yes
1368 echo "configure: failed program was:" >&5
1369 cat conftest.$ac_ext >&5
1371 ac_cv_header_stdc=no
1375 if test $ac_cv_header_stdc = yes; then
1376 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1377 cat > conftest.$ac_ext <<EOF
1378 #line 1379 "configure"
1379 #include "confdefs.h"
1382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1383 egrep "memchr" >/dev/null 2>&1; then
1387 ac_cv_header_stdc=no
1393 if test $ac_cv_header_stdc = yes; then
1394 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1395 cat > conftest.$ac_ext <<EOF
1396 #line 1397 "configure"
1397 #include "confdefs.h"
1400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1401 egrep "free" >/dev/null 2>&1; then
1405 ac_cv_header_stdc=no
1411 if test $ac_cv_header_stdc = yes; then
1412 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1413 if test "$cross_compiling" = yes; then
1416 cat > conftest.$ac_ext <<EOF
1417 #line 1418 "configure"
1418 #include "confdefs.h"
1420 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1421 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1422 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1423 int main () { int i; for (i = 0; i < 256; i++)
1424 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1428 if { (eval echo configure:1429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1432 echo "configure: failed program was:" >&5
1433 cat conftest.$ac_ext >&5
1435 ac_cv_header_stdc=no
1443 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1444 if test $ac_cv_header_stdc = yes; then
1445 cat >> confdefs.h <<\EOF
1446 #define STDC_HEADERS 1
1451 for ac_hdr in string.h
1453 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1454 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1455 echo "configure:1456: checking for $ac_hdr" >&5
1456 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1457 echo $ac_n "(cached) $ac_c" 1>&6
1459 cat > conftest.$ac_ext <<EOF
1460 #line 1461 "configure"
1461 #include "confdefs.h"
1464 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1465 { (eval echo configure:1466: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1466 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1467 if test -z "$ac_err"; then
1469 eval "ac_cv_header_$ac_safe=yes"
1472 echo "configure: failed program was:" >&5
1473 cat conftest.$ac_ext >&5
1475 eval "ac_cv_header_$ac_safe=no"
1479 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1480 echo "$ac_t""yes" 1>&6
1481 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1482 cat >> confdefs.h <<EOF
1483 #define $ac_tr_hdr 1
1487 echo "$ac_t""no" 1>&6
1493 if test "x$U" != "x"; then
1494 { echo "configure: error: Compiler not ANSI compliant" 1>&2; exit 1; }
1496 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1497 echo "configure:1498: checking how to run the C preprocessor" >&5
1498 # On Suns, sometimes $CPP names a directory.
1499 if test -n "$CPP" && test -d "$CPP"; then
1502 if test -z "$CPP"; then
1503 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1504 echo $ac_n "(cached) $ac_c" 1>&6
1506 # This must be in double quotes, not single quotes, because CPP may get
1507 # substituted into the Makefile and "${CC-cc}" will confuse make.
1509 # On the NeXT, cc -E runs the code through the compiler's parser,
1510 # not just through cpp.
1511 cat > conftest.$ac_ext <<EOF
1512 #line 1513 "configure"
1513 #include "confdefs.h"
1517 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1518 { (eval echo configure:1519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1519 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1520 if test -z "$ac_err"; then
1524 echo "configure: failed program was:" >&5
1525 cat conftest.$ac_ext >&5
1527 CPP="${CC-cc} -E -traditional-cpp"
1528 cat > conftest.$ac_ext <<EOF
1529 #line 1530 "configure"
1530 #include "confdefs.h"
1534 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1535 { (eval echo configure:1536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1536 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1537 if test -z "$ac_err"; then
1541 echo "configure: failed program was:" >&5
1542 cat conftest.$ac_ext >&5
1544 CPP="${CC-cc} -nologo -E"
1545 cat > conftest.$ac_ext <<EOF
1546 #line 1547 "configure"
1547 #include "confdefs.h"
1551 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1552 { (eval echo configure:1553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1553 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1554 if test -z "$ac_err"; then
1558 echo "configure: failed program was:" >&5
1559 cat conftest.$ac_ext >&5
1568 ac_cv_prog_CPP="$CPP"
1570 CPP="$ac_cv_prog_CPP"
1572 ac_cv_prog_CPP="$CPP"
1574 echo "$ac_t""$CPP" 1>&6
1576 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1577 echo "configure:1578: checking whether ${MAKE-make} sets \${MAKE}" >&5
1578 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1579 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1580 echo $ac_n "(cached) $ac_c" 1>&6
1582 cat > conftestmake <<\EOF
1584 @echo 'ac_maketemp="${MAKE}"'
1586 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1587 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1588 if test -n "$ac_maketemp"; then
1589 eval ac_cv_prog_make_${ac_make}_set=yes
1591 eval ac_cv_prog_make_${ac_make}_set=no
1595 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1596 echo "$ac_t""yes" 1>&6
1599 echo "$ac_t""no" 1>&6
1600 SET_MAKE="MAKE=${MAKE-make}"
1603 # Find a good install program. We prefer a C program (faster),
1604 # so one script is as good as another. But avoid the broken or
1605 # incompatible versions:
1606 # SysV /etc/install, /usr/sbin/install
1607 # SunOS /usr/etc/install
1608 # IRIX /sbin/install
1610 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1611 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1612 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1613 # ./install, which can be erroneously created by make from ./install.sh.
1614 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1615 echo "configure:1616: checking for a BSD compatible install" >&5
1616 if test -z "$INSTALL"; then
1617 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1618 echo $ac_n "(cached) $ac_c" 1>&6
1620 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1621 for ac_dir in $PATH; do
1622 # Account for people who put trailing slashes in PATH elements.
1624 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1626 # OSF1 and SCO ODT 3.0 have their own names for install.
1627 # Don't use installbsd from OSF since it installs stuff as root
1629 for ac_prog in ginstall scoinst install; do
1630 if test -f $ac_dir/$ac_prog; then
1631 if test $ac_prog = install &&
1632 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1633 # AIX install. It has an incompatible calling convention.
1636 ac_cv_path_install="$ac_dir/$ac_prog -c"
1647 if test "${ac_cv_path_install+set}" = set; then
1648 INSTALL="$ac_cv_path_install"
1650 # As a last resort, use the slow shell script. We don't cache a
1651 # path for INSTALL within a source directory, because that will
1652 # break other packages using the cache if that directory is
1653 # removed, or if the path is relative.
1654 INSTALL="$ac_install_sh"
1657 echo "$ac_t""$INSTALL" 1>&6
1659 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1660 # It thinks the first close brace ends the variable substitution.
1661 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1663 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1665 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1667 # Extract the first word of "ranlib", so it can be a program name with args.
1668 set dummy ranlib; ac_word=$2
1669 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1670 echo "configure:1671: checking for $ac_word" >&5
1671 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1672 echo $ac_n "(cached) $ac_c" 1>&6
1674 if test -n "$RANLIB"; then
1675 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1679 for ac_dir in $ac_dummy; do
1680 test -z "$ac_dir" && ac_dir=.
1681 if test -f $ac_dir/$ac_word; then
1682 ac_cv_prog_RANLIB="ranlib"
1687 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1690 RANLIB="$ac_cv_prog_RANLIB"
1691 if test -n "$RANLIB"; then
1692 echo "$ac_t""$RANLIB" 1>&6
1694 echo "$ac_t""no" 1>&6
1697 echo $ac_n "checking build system type""... $ac_c" 1>&6
1698 echo "configure:1699: checking build system type" >&5
1701 case "$build_alias" in
1704 NONE) build_alias=$host_alias ;;
1705 *) build_alias=$nonopt ;;
1709 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1710 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1711 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1712 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1713 echo "$ac_t""$build" 1>&6
1715 if test $host != $build; then
1716 ac_tool_prefix=${host_alias}-
1721 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1722 set dummy ${ac_tool_prefix}ar; ac_word=$2
1723 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1724 echo "configure:1725: checking for $ac_word" >&5
1725 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1726 echo $ac_n "(cached) $ac_c" 1>&6
1728 if test -n "$AR"; then
1729 ac_cv_prog_AR="$AR" # Let the user override the test.
1731 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1733 for ac_dir in $ac_dummy; do
1734 test -z "$ac_dir" && ac_dir=.
1735 if test -f $ac_dir/$ac_word; then
1736 ac_cv_prog_AR="${ac_tool_prefix}ar"
1744 if test -n "$AR"; then
1745 echo "$ac_t""$AR" 1>&6
1747 echo "$ac_t""no" 1>&6
1751 if test -z "$ac_cv_prog_AR"; then
1752 if test -n "$ac_tool_prefix"; then
1753 # Extract the first word of "ar", so it can be a program name with args.
1754 set dummy ar; ac_word=$2
1755 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1756 echo "configure:1757: checking for $ac_word" >&5
1757 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1758 echo $ac_n "(cached) $ac_c" 1>&6
1760 if test -n "$AR"; then
1761 ac_cv_prog_AR="$AR" # Let the user override the test.
1763 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1765 for ac_dir in $ac_dummy; do
1766 test -z "$ac_dir" && ac_dir=.
1767 if test -f $ac_dir/$ac_word; then
1773 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1777 if test -n "$AR"; then
1778 echo "$ac_t""$AR" 1>&6
1780 echo "$ac_t""no" 1>&6
1789 echo $ac_n "checking for inline""... $ac_c" 1>&6
1790 echo "configure:1791: checking for inline" >&5
1791 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1792 echo $ac_n "(cached) $ac_c" 1>&6
1795 for ac_kw in inline __inline__ __inline; do
1796 cat > conftest.$ac_ext <<EOF
1797 #line 1798 "configure"
1798 #include "confdefs.h"
1804 if { (eval echo configure:1805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1806 ac_cv_c_inline=$ac_kw; break
1808 echo "configure: failed program was:" >&5
1809 cat conftest.$ac_ext >&5
1816 echo "$ac_t""$ac_cv_c_inline" 1>&6
1817 case "$ac_cv_c_inline" in
1819 no) cat >> confdefs.h <<\EOF
1823 *) cat >> confdefs.h <<EOF
1824 #define inline $ac_cv_c_inline
1829 echo $ac_n "checking for working const""... $ac_c" 1>&6
1830 echo "configure:1831: checking for working const" >&5
1831 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1832 echo $ac_n "(cached) $ac_c" 1>&6
1834 cat > conftest.$ac_ext <<EOF
1835 #line 1836 "configure"
1836 #include "confdefs.h"
1840 /* Ultrix mips cc rejects this. */
1841 typedef int charset[2]; const charset x;
1842 /* SunOS 4.1.1 cc rejects this. */
1843 char const *const *ccp;
1845 /* NEC SVR4.0.2 mips cc rejects this. */
1846 struct point {int x, y;};
1847 static struct point const zero = {0,0};
1848 /* AIX XL C 1.02.0.0 rejects this.
1849 It does not let you subtract one const X* pointer from another in an arm
1850 of an if-expression whose if-part is not a constant expression */
1851 const char *g = "string";
1852 ccp = &g + (g ? g-g : 0);
1853 /* HPUX 7.0 cc rejects these. */
1856 ccp = (char const *const *) p;
1857 { /* SCO 3.2v4 cc rejects this. */
1859 char const *s = 0 ? (char *) 0 : (char const *) 0;
1863 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1865 const int *foo = &x[0];
1868 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1869 typedef const int *iptr;
1873 { /* AIX XL C 1.02.0.0 rejects this saying
1874 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1875 struct s { int j; const int *ap[3]; };
1876 struct s *b; b->j = 5;
1878 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1884 if { (eval echo configure:1885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1888 echo "configure: failed program was:" >&5
1889 cat conftest.$ac_ext >&5
1896 echo "$ac_t""$ac_cv_c_const" 1>&6
1897 if test $ac_cv_c_const = no; then
1898 cat >> confdefs.h <<\EOF
1905 # Extract the first word of "dbx", so it can be a program name with args.
1906 set dummy dbx; ac_word=$2
1907 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1908 echo "configure:1909: checking for $ac_word" >&5
1909 if eval "test \"`echo '$''{'ac_cv_path_DBX'+set}'`\" = set"; then
1910 echo $ac_n "(cached) $ac_c" 1>&6
1914 ac_cv_path_DBX="$DBX" # Let the user override the test with a path.
1917 ac_cv_path_DBX="$DBX" # Let the user override the test with a dos path.
1920 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1922 for ac_dir in $ac_dummy; do
1923 test -z "$ac_dir" && ac_dir=.
1924 if test -f $ac_dir/$ac_word; then
1925 ac_cv_path_DBX="$ac_dir/$ac_word"
1930 test -z "$ac_cv_path_DBX" && ac_cv_path_DBX="no"
1934 DBX="$ac_cv_path_DBX"
1935 if test -n "$DBX"; then
1936 echo "$ac_t""$DBX" 1>&6
1938 echo "$ac_t""no" 1>&6
1941 # Extract the first word of "gdb", so it can be a program name with args.
1942 set dummy gdb; ac_word=$2
1943 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1944 echo "configure:1945: checking for $ac_word" >&5
1945 if eval "test \"`echo '$''{'ac_cv_path_GDB'+set}'`\" = set"; then
1946 echo $ac_n "(cached) $ac_c" 1>&6
1950 ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
1953 ac_cv_path_GDB="$GDB" # Let the user override the test with a dos path.
1956 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1958 for ac_dir in $ac_dummy; do
1959 test -z "$ac_dir" && ac_dir=.
1960 if test -f $ac_dir/$ac_word; then
1961 ac_cv_path_GDB="$ac_dir/$ac_word"
1966 test -z "$ac_cv_path_GDB" && ac_cv_path_GDB="no"
1970 GDB="$ac_cv_path_GDB"
1971 if test -n "$GDB"; then
1972 echo "$ac_t""$GDB" 1>&6
1974 echo "$ac_t""no" 1>&6
1977 # Extract the first word of "sdb", so it can be a program name with args.
1978 set dummy sdb; ac_word=$2
1979 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1980 echo "configure:1981: checking for $ac_word" >&5
1981 if eval "test \"`echo '$''{'ac_cv_path_SDB'+set}'`\" = set"; then
1982 echo $ac_n "(cached) $ac_c" 1>&6
1986 ac_cv_path_SDB="$SDB" # Let the user override the test with a path.
1989 ac_cv_path_SDB="$SDB" # Let the user override the test with a dos path.
1992 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1994 for ac_dir in $ac_dummy; do
1995 test -z "$ac_dir" && ac_dir=.
1996 if test -f $ac_dir/$ac_word; then
1997 ac_cv_path_SDB="$ac_dir/$ac_word"
2002 test -z "$ac_cv_path_SDB" && ac_cv_path_SDB="no"
2006 SDB="$ac_cv_path_SDB"
2007 if test -n "$SDB"; then
2008 echo "$ac_t""$SDB" 1>&6
2010 echo "$ac_t""no" 1>&6
2014 if test $GDB != no ; then
2016 elif test $DBX != no ; then
2018 elif test $SDB != no ; then
2026 # The following templates should be used with newer automakes
2027 # instead of acconfig.h
2029 #AH_TEMPLATE([sig_atomic_t],
2030 # [/* Define to `int' if <signal.h> doesn't define.])
2031 #AH_TEMPLATE([HAVE_START_COLOR],
2032 # [Define if you have start_color, as a function or macro.])
2033 #AH_TEMPLATE([HAVE_TYPEAHEAD],
2034 # [Define if you have typeahead, as a function or macro.])
2035 #AH_TEMPLATE([HAVE_BKGDSET],
2036 # [Define if you have bkgdset, as a function or macro.])
2037 #AH_TEMPLATE([HAVE_CURS_SET],
2038 # [Define if you have curs_set, as a function or macro.])
2039 #AH_TEMPLATE([HAVE_META],
2040 # [Define if you have meta, as a function or macro.])
2041 #AH_TEMPLATE([HAVE_USE_DEFAULT_COLORS],
2042 # [Define if you have use_default_colors, as a function or macro.])
2043 #AH_TEMPLATE([HAVE_RESIZETERM],
2044 # [Define if you have resizeterm, as a function or macro.])
2045 #AH_TEMPLATE([SIG_ATOMIC_VOLATILE_T],
2046 # [Some systems declare sig_atomic_t as volatile, some others -- no.
2047 # This define will have value `sig_atomic_t' or
2048 # `volatile sig_atomic_t' accordingly.])
2049 #AH_TEMPLATE([ICONV_NONTRANS],
2050 # [Define as 1 if iconv() only converts exactly and we should treat
2051 # all return values other than (size_t)(-1) as equivalent.])
2054 ac_aux_path_sendmail=/usr/sbin:/usr/lib
2055 # Extract the first word of "sendmail", so it can be a program name with args.
2056 set dummy sendmail; ac_word=$2
2057 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2058 echo "configure:2059: checking for $ac_word" >&5
2059 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2060 echo $ac_n "(cached) $ac_c" 1>&6
2064 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2067 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
2070 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2071 ac_dummy="$PATH:$ac_aux_path_sendmail"
2072 for ac_dir in $ac_dummy; do
2073 test -z "$ac_dir" && ac_dir=.
2074 if test -f $ac_dir/$ac_word; then
2075 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2080 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/sbin/sendmail"
2084 SENDMAIL="$ac_cv_path_SENDMAIL"
2085 if test -n "$SENDMAIL"; then
2086 echo "$ac_t""$SENDMAIL" 1>&6
2088 echo "$ac_t""no" 1>&6
2091 cat >> confdefs.h <<EOF
2092 #define SENDMAIL "$ac_cv_path_SENDMAIL"
2097 if test -f $srcdir/EXPORTABLE ; then
2102 # Check whether --enable-pgp or --disable-pgp was given.
2103 if test "${enable_pgp+set}" = set; then
2104 enableval="$enable_pgp"
2105 if test x$enableval = xno ; then
2112 if test x$have_pgp != xno ; then
2113 cat >> confdefs.h <<\EOF
2114 #define CRYPT_BACKEND_CLASSIC_PGP 1
2117 PGPAUX_TARGET="pgpring pgpewrap"
2118 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pgp.o pgpinvoke.o pgpkey.o pgplib.o gnupgparse.o pgpmicalg.o pgppacket.o"
2121 # Check whether --enable-smime or --disable-smime was given.
2122 if test "${enable_smime+set}" = set; then
2123 enableval="$enable_smime"
2124 if test x$enableval = xno ; then
2131 if test x$have_smime != xno ; then
2132 cat >> confdefs.h <<\EOF
2133 #define CRYPT_BACKEND_CLASSIC_SMIME 1
2136 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS smime.o "
2137 SMIMEAUX_TARGET="smime_keys"
2140 # Check whether --with-mixmaster or --without-mixmaster was given.
2141 if test "${with_mixmaster+set}" = set; then
2142 withval="$with_mixmaster"
2143 if test -x "$withval" ; then
2144 MIXMASTER="$withval"
2146 MIXMASTER="mixmaster"
2148 OPS="$OPS \$(srcdir)/OPS.MIX"
2149 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS remailer.o"
2150 cat >> confdefs.h <<EOF
2151 #define MIXMASTER "$MIXMASTER"
2159 # We now require all OPS
2160 OPS="$OPS \$(srcdir)/OPS.PGP \$(srcdir)/OPS.SMIME \$(srcdir)/OPS.CRYPT "
2167 cat >> confdefs.h <<EOF
2168 #define SUBVERSION "$SUBVERSION"
2173 # Extract the first word of "ispell", so it can be a program name with args.
2174 set dummy ispell; ac_word=$2
2175 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2176 echo "configure:2177: checking for $ac_word" >&5
2177 if eval "test \"`echo '$''{'ac_cv_path_ISPELL'+set}'`\" = set"; then
2178 echo $ac_n "(cached) $ac_c" 1>&6
2182 ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a path.
2185 ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a dos path.
2188 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2190 for ac_dir in $ac_dummy; do
2191 test -z "$ac_dir" && ac_dir=.
2192 if test -f $ac_dir/$ac_word; then
2193 ac_cv_path_ISPELL="$ac_dir/$ac_word"
2198 test -z "$ac_cv_path_ISPELL" && ac_cv_path_ISPELL="no"
2202 ISPELL="$ac_cv_path_ISPELL"
2203 if test -n "$ISPELL"; then
2204 echo "$ac_t""$ISPELL" 1>&6
2206 echo "$ac_t""no" 1>&6
2209 if test $ISPELL != no; then
2210 cat >> confdefs.h <<EOF
2211 #define ISPELL "$ISPELL"
2216 # Check whether --with-slang or --without-slang was given.
2217 if test "${with_slang+set}" = set; then
2218 withval="$with_slang"
2219 echo $ac_n "checking if this is a BSD system""... $ac_c" 1>&6
2220 echo "configure:2221: checking if this is a BSD system" >&5
2221 if eval "test \"`echo '$''{'mutt_cv_bsdish'+set}'`\" = set"; then
2222 echo $ac_n "(cached) $ac_c" 1>&6
2224 if test "$cross_compiling" = yes; then
2227 cat > conftest.$ac_ext <<EOF
2228 #line 2229 "configure"
2229 #include "confdefs.h"
2230 #include <sys/param.h>
2241 if { (eval echo configure:2242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2245 echo "configure: failed program was:" >&5
2246 cat conftest.$ac_ext >&5
2255 echo "$ac_t""$mutt_cv_bsdish" 1>&6
2257 echo $ac_n "checking for S-Lang""... $ac_c" 1>&6
2258 echo "configure:2259: checking for S-Lang" >&5
2259 if test $withval = yes; then
2260 if test -d $srcdir/../slang; then
2261 mutt_cv_slang=$srcdir/../slang/src
2262 CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
2263 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
2265 if test -d $mutt_cv_prefix/include/slang; then
2266 CPPFLAGS="$CPPFLAGS -I$mutt_cv_prefix/include/slang"
2267 elif test -d /usr/include/slang; then
2268 CPPFLAGS="$CPPFLAGS -I/usr/include/slang"
2273 if test -f $withval/src/slang.h; then
2274 mutt_cv_slang=$withval/src
2275 CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
2276 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
2278 mutt_cv_slang=$withval
2279 if test -d $withval/include/slang; then
2280 CPPFLAGS="$CPPFLAGS -I${withval}/include/slang"
2281 elif test -d $withval/include; then
2282 CPPFLAGS="$CPPFLAGS -I${withval}/include"
2284 LDFLAGS="$LDFLAGS -L${withval}/lib"
2287 echo "$ac_t""$mutt_cv_slang" 1>&6
2288 if test $mutt_cv_bsdish = yes; then
2289 echo $ac_n "checking for main in -ltermlib""... $ac_c" 1>&6
2290 echo "configure:2291: checking for main in -ltermlib" >&5
2291 ac_lib_var=`echo termlib'_'main | sed 'y%./+-%__p_%'`
2292 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2293 echo $ac_n "(cached) $ac_c" 1>&6
2295 ac_save_LIBS="$LIBS"
2296 LIBS="-ltermlib $LIBS"
2297 cat > conftest.$ac_ext <<EOF
2298 #line 2299 "configure"
2299 #include "confdefs.h"
2305 if { (eval echo configure:2306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2307 eval "ac_cv_lib_$ac_lib_var=yes"
2309 echo "configure: failed program was:" >&5
2310 cat conftest.$ac_ext >&5
2312 eval "ac_cv_lib_$ac_lib_var=no"
2315 LIBS="$ac_save_LIBS"
2318 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2319 echo "$ac_t""yes" 1>&6
2320 ac_tr_lib=HAVE_LIB`echo termlib | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2321 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2322 cat >> confdefs.h <<EOF
2323 #define $ac_tr_lib 1
2326 LIBS="-ltermlib $LIBS"
2329 echo "$ac_t""no" 1>&6
2333 cat >> confdefs.h <<\EOF
2334 #define USE_SLANG_CURSES 1
2337 cat >> confdefs.h <<\EOF
2338 #define HAVE_COLOR 1
2341 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
2344 echo $ac_n "checking for SLtt_get_terminfo in -lslang""... $ac_c" 1>&6
2345 echo "configure:2346: checking for SLtt_get_terminfo in -lslang" >&5
2346 ac_lib_var=`echo slang'_'SLtt_get_terminfo | sed 'y%./+-%__p_%'`
2347 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2348 echo $ac_n "(cached) $ac_c" 1>&6
2350 ac_save_LIBS="$LIBS"
2351 LIBS="-lslang -lm $LIBS"
2352 cat > conftest.$ac_ext <<EOF
2353 #line 2354 "configure"
2354 #include "confdefs.h"
2355 /* Override any gcc2 internal prototype to avoid an error. */
2356 /* We use char because int might match the return type of a gcc2
2357 builtin and then its argument prototype would still apply. */
2358 char SLtt_get_terminfo();
2364 if { (eval echo configure:2365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2366 eval "ac_cv_lib_$ac_lib_var=yes"
2368 echo "configure: failed program was:" >&5
2369 cat conftest.$ac_ext >&5
2371 eval "ac_cv_lib_$ac_lib_var=no"
2374 LIBS="$ac_save_LIBS"
2377 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2378 echo "$ac_t""yes" 1>&6
2379 MUTTLIBS="$MUTTLIBS -lslang -lm"
2381 echo "$ac_t""no" 1>&6
2382 { echo "configure: error: unable to compile. check config.log" 1>&2; exit 1; }
2389 # Check whether --with-curses or --without-curses was given.
2390 if test "${with_curses+set}" = set; then
2391 withval="$with_curses"
2392 if test $withval != yes; then
2393 mutt_cv_curses=$withval
2395 if test x$mutt_cv_curses != x/usr; then
2396 LDFLAGS="-L${mutt_cv_curses}/lib $LDFLAGS"
2397 CPPFLAGS="$CPPFLAGS -I${mutt_cv_curses}/include"
2402 echo $ac_n "checking for initscr""... $ac_c" 1>&6
2403 echo "configure:2404: checking for initscr" >&5
2404 if eval "test \"`echo '$''{'ac_cv_func_initscr'+set}'`\" = set"; then
2405 echo $ac_n "(cached) $ac_c" 1>&6
2407 cat > conftest.$ac_ext <<EOF
2408 #line 2409 "configure"
2409 #include "confdefs.h"
2410 /* System header to define __stub macros and hopefully few prototypes,
2411 which can conflict with char initscr(); below. */
2413 /* Override any gcc2 internal prototype to avoid an error. */
2414 /* We use char because int might match the return type of a gcc2
2415 builtin and then its argument prototype would still apply. */
2420 /* The GNU C library defines this for functions which it implements
2421 to always fail with ENOSYS. Some functions are actually named
2422 something starting with __ and the normal name is an alias. */
2423 #if defined (__stub_initscr) || defined (__stub___initscr)
2431 if { (eval echo configure:2432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2433 eval "ac_cv_func_initscr=yes"
2435 echo "configure: failed program was:" >&5
2436 cat conftest.$ac_ext >&5
2438 eval "ac_cv_func_initscr=no"
2443 if eval "test \"`echo '$ac_cv_func_'initscr`\" = yes"; then
2444 echo "$ac_t""yes" 1>&6
2447 echo "$ac_t""no" 1>&6
2449 cf_ncurses="ncurses"
2450 for lib in ncurses ncursesw
2452 echo $ac_n "checking for waddnwstr in -l$lib""... $ac_c" 1>&6
2453 echo "configure:2454: checking for waddnwstr in -l$lib" >&5
2454 ac_lib_var=`echo $lib'_'waddnwstr | sed 'y%./+-%__p_%'`
2455 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2456 echo $ac_n "(cached) $ac_c" 1>&6
2458 ac_save_LIBS="$LIBS"
2460 cat > conftest.$ac_ext <<EOF
2461 #line 2462 "configure"
2462 #include "confdefs.h"
2463 /* Override any gcc2 internal prototype to avoid an error. */
2464 /* We use char because int might match the return type of a gcc2
2465 builtin and then its argument prototype would still apply. */
2472 if { (eval echo configure:2473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2474 eval "ac_cv_lib_$ac_lib_var=yes"
2476 echo "configure: failed program was:" >&5
2477 cat conftest.$ac_ext >&5
2479 eval "ac_cv_lib_$ac_lib_var=no"
2482 LIBS="$ac_save_LIBS"
2485 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2486 echo "$ac_t""yes" 1>&6
2487 cf_ncurses="$lib"; break
2489 echo "$ac_t""no" 1>&6
2493 echo $ac_n "checking for initscr in -l$cf_ncurses""... $ac_c" 1>&6
2494 echo "configure:2495: checking for initscr in -l$cf_ncurses" >&5
2495 ac_lib_var=`echo $cf_ncurses'_'initscr | sed 'y%./+-%__p_%'`
2496 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2497 echo $ac_n "(cached) $ac_c" 1>&6
2499 ac_save_LIBS="$LIBS"
2500 LIBS="-l$cf_ncurses $LIBS"
2501 cat > conftest.$ac_ext <<EOF
2502 #line 2503 "configure"
2503 #include "confdefs.h"
2504 /* Override any gcc2 internal prototype to avoid an error. */
2505 /* We use char because int might match the return type of a gcc2
2506 builtin and then its argument prototype would still apply. */
2513 if { (eval echo configure:2514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2515 eval "ac_cv_lib_$ac_lib_var=yes"
2517 echo "configure: failed program was:" >&5
2518 cat conftest.$ac_ext >&5
2520 eval "ac_cv_lib_$ac_lib_var=no"
2523 LIBS="$ac_save_LIBS"
2526 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2527 echo "$ac_t""yes" 1>&6
2528 MUTTLIBS="$MUTTLIBS -l$cf_ncurses"
2529 if test x$mutt_cv_curses = x/usr -a -d /usr/include/ncurses; then
2530 CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
2533 if test "$cf_ncurses" = ncursesw; then
2534 for ac_hdr in ncursesw/ncurses.h
2536 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2537 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2538 echo "configure:2539: checking for $ac_hdr" >&5
2539 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2540 echo $ac_n "(cached) $ac_c" 1>&6
2542 cat > conftest.$ac_ext <<EOF
2543 #line 2544 "configure"
2544 #include "confdefs.h"
2547 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2548 { (eval echo configure:2549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2549 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2550 if test -z "$ac_err"; then
2552 eval "ac_cv_header_$ac_safe=yes"
2555 echo "configure: failed program was:" >&5
2556 cat conftest.$ac_ext >&5
2558 eval "ac_cv_header_$ac_safe=no"
2562 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2563 echo "$ac_t""yes" 1>&6
2564 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2565 cat >> confdefs.h <<EOF
2566 #define $ac_tr_hdr 1
2568 cf_cv_ncurses_header="ncursesw/ncurses.h"
2570 echo "$ac_t""no" 1>&6
2575 for ac_hdr in ncurses.h
2577 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2578 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2579 echo "configure:2580: checking for $ac_hdr" >&5
2580 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2581 echo $ac_n "(cached) $ac_c" 1>&6
2583 cat > conftest.$ac_ext <<EOF
2584 #line 2585 "configure"
2585 #include "confdefs.h"
2588 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2589 { (eval echo configure:2590: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2590 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2591 if test -z "$ac_err"; then
2593 eval "ac_cv_header_$ac_safe=yes"
2596 echo "configure: failed program was:" >&5
2597 cat conftest.$ac_ext >&5
2599 eval "ac_cv_header_$ac_safe=no"
2603 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2604 echo "$ac_t""yes" 1>&6
2605 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2606 cat >> confdefs.h <<EOF
2607 #define $ac_tr_hdr 1
2609 cf_cv_ncurses_header="ncurses.h"
2611 echo "$ac_t""no" 1>&6
2617 echo "$ac_t""no" 1>&6
2619 echo $ac_n "checking for initscr""... $ac_c" 1>&6
2620 echo "configure:2621: checking for initscr" >&5
2621 if eval "test \"`echo '$''{'ac_cv_func_initscr'+set}'`\" = set"; then
2622 echo $ac_n "(cached) $ac_c" 1>&6
2624 cat > conftest.$ac_ext <<EOF
2625 #line 2626 "configure"
2626 #include "confdefs.h"
2627 /* System header to define __stub macros and hopefully few prototypes,
2628 which can conflict with char initscr(); below. */
2630 /* Override any gcc2 internal prototype to avoid an error. */
2631 /* We use char because int might match the return type of a gcc2
2632 builtin and then its argument prototype would still apply. */
2637 /* The GNU C library defines this for functions which it implements
2638 to always fail with ENOSYS. Some functions are actually named
2639 something starting with __ and the normal name is an alias. */
2640 #if defined (__stub_initscr) || defined (__stub___initscr)
2648 if { (eval echo configure:2649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2650 eval "ac_cv_func_initscr=yes"
2652 echo "configure: failed program was:" >&5
2653 cat conftest.$ac_ext >&5
2655 eval "ac_cv_func_initscr=no"
2660 if eval "test \"`echo '$ac_cv_func_'initscr`\" = yes"; then
2661 echo "$ac_t""yes" 1>&6
2664 echo "$ac_t""no" 1>&6
2666 case $host_os in #(vi
2668 echo $ac_n "checking for tgoto in -lmytinfo""... $ac_c" 1>&6
2669 echo "configure:2670: checking for tgoto in -lmytinfo" >&5
2670 ac_lib_var=`echo mytinfo'_'tgoto | sed 'y%./+-%__p_%'`
2671 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2672 echo $ac_n "(cached) $ac_c" 1>&6
2674 ac_save_LIBS="$LIBS"
2675 LIBS="-lmytinfo $LIBS"
2676 cat > conftest.$ac_ext <<EOF
2677 #line 2678 "configure"
2678 #include "confdefs.h"
2679 /* Override any gcc2 internal prototype to avoid an error. */
2680 /* We use char because int might match the return type of a gcc2
2681 builtin and then its argument prototype would still apply. */
2688 if { (eval echo configure:2689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2690 eval "ac_cv_lib_$ac_lib_var=yes"
2692 echo "configure: failed program was:" >&5
2693 cat conftest.$ac_ext >&5
2695 eval "ac_cv_lib_$ac_lib_var=no"
2698 LIBS="$ac_save_LIBS"
2701 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2702 echo "$ac_t""yes" 1>&6
2703 LIBS="-lmytinfo $LIBS"
2705 echo "$ac_t""no" 1>&6
2710 echo $ac_n "checking for initscr in -lcur_colr""... $ac_c" 1>&6
2711 echo "configure:2712: checking for initscr in -lcur_colr" >&5
2712 ac_lib_var=`echo cur_colr'_'initscr | sed 'y%./+-%__p_%'`
2713 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2714 echo $ac_n "(cached) $ac_c" 1>&6
2716 ac_save_LIBS="$LIBS"
2717 LIBS="-lcur_colr $LIBS"
2718 cat > conftest.$ac_ext <<EOF
2719 #line 2720 "configure"
2720 #include "confdefs.h"
2721 /* Override any gcc2 internal prototype to avoid an error. */
2722 /* We use char because int might match the return type of a gcc2
2723 builtin and then its argument prototype would still apply. */
2730 if { (eval echo configure:2731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2732 eval "ac_cv_lib_$ac_lib_var=yes"
2734 echo "configure: failed program was:" >&5
2735 cat conftest.$ac_ext >&5
2737 eval "ac_cv_lib_$ac_lib_var=no"
2740 LIBS="$ac_save_LIBS"
2743 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2744 echo "$ac_t""yes" 1>&6
2746 LIBS="-lcur_colr $LIBS"
2747 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
2748 ac_cv_func_initscr=yes
2751 echo "$ac_t""no" 1>&6
2753 echo $ac_n "checking for initscr in -lHcurses""... $ac_c" 1>&6
2754 echo "configure:2755: checking for initscr in -lHcurses" >&5
2755 ac_lib_var=`echo Hcurses'_'initscr | sed 'y%./+-%__p_%'`
2756 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2757 echo $ac_n "(cached) $ac_c" 1>&6
2759 ac_save_LIBS="$LIBS"
2760 LIBS="-lHcurses $LIBS"
2761 cat > conftest.$ac_ext <<EOF
2762 #line 2763 "configure"
2763 #include "confdefs.h"
2764 /* Override any gcc2 internal prototype to avoid an error. */
2765 /* We use char because int might match the return type of a gcc2
2766 builtin and then its argument prototype would still apply. */
2773 if { (eval echo configure:2774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2775 eval "ac_cv_lib_$ac_lib_var=yes"
2777 echo "configure: failed program was:" >&5
2778 cat conftest.$ac_ext >&5
2780 eval "ac_cv_lib_$ac_lib_var=no"
2783 LIBS="$ac_save_LIBS"
2786 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2787 echo "$ac_t""yes" 1>&6
2789 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
2790 LIBS="-lHcurses $LIBS"
2791 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
2792 ac_cv_func_initscr=yes
2795 echo "$ac_t""no" 1>&6
2801 linux*) # Suse Linux does not follow /usr/lib convention
2806 if test ".$With5lib" != ".no" ; then
2807 if test -d /usr/5lib ; then
2809 CPPFLAGS="$CPPFLAGS -I/usr/5include"
2810 LIBS="$LIBS -L/usr/5lib"
2814 if test ".$ac_cv_func_initscr" != .yes ; then
2815 cf_save_LIBS="$LIBS"
2819 # Check for library containing tgoto. Do this before curses library
2820 # because it may be needed to link the test-case for initscr.
2821 echo $ac_n "checking for tgoto""... $ac_c" 1>&6
2822 echo "configure:2823: checking for tgoto" >&5
2823 if eval "test \"`echo '$''{'ac_cv_func_tgoto'+set}'`\" = set"; then
2824 echo $ac_n "(cached) $ac_c" 1>&6
2826 cat > conftest.$ac_ext <<EOF
2827 #line 2828 "configure"
2828 #include "confdefs.h"
2829 /* System header to define __stub macros and hopefully few prototypes,
2830 which can conflict with char tgoto(); below. */
2832 /* Override any gcc2 internal prototype to avoid an error. */
2833 /* We use char because int might match the return type of a gcc2
2834 builtin and then its argument prototype would still apply. */
2839 /* The GNU C library defines this for functions which it implements
2840 to always fail with ENOSYS. Some functions are actually named
2841 something starting with __ and the normal name is an alias. */
2842 #if defined (__stub_tgoto) || defined (__stub___tgoto)
2850 if { (eval echo configure:2851: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2852 eval "ac_cv_func_tgoto=yes"
2854 echo "configure: failed program was:" >&5
2855 cat conftest.$ac_ext >&5
2857 eval "ac_cv_func_tgoto=no"
2862 if eval "test \"`echo '$ac_cv_func_'tgoto`\" = yes"; then
2863 echo "$ac_t""yes" 1>&6
2864 cf_term_lib=predefined
2866 echo "$ac_t""no" 1>&6
2868 for cf_term_lib in termcap termlib unknown
2870 echo $ac_n "checking for tgoto in -l$cf_term_lib""... $ac_c" 1>&6
2871 echo "configure:2872: checking for tgoto in -l$cf_term_lib" >&5
2872 ac_lib_var=`echo $cf_term_lib'_'tgoto | sed 'y%./+-%__p_%'`
2873 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2874 echo $ac_n "(cached) $ac_c" 1>&6
2876 ac_save_LIBS="$LIBS"
2877 LIBS="-l$cf_term_lib $LIBS"
2878 cat > conftest.$ac_ext <<EOF
2879 #line 2880 "configure"
2880 #include "confdefs.h"
2881 /* Override any gcc2 internal prototype to avoid an error. */
2882 /* We use char because int might match the return type of a gcc2
2883 builtin and then its argument prototype would still apply. */
2890 if { (eval echo configure:2891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2892 eval "ac_cv_lib_$ac_lib_var=yes"
2894 echo "configure: failed program was:" >&5
2895 cat conftest.$ac_ext >&5
2897 eval "ac_cv_lib_$ac_lib_var=no"
2900 LIBS="$ac_save_LIBS"
2903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2904 echo "$ac_t""yes" 1>&6
2907 echo "$ac_t""no" 1>&6
2915 # Check for library containing initscr
2916 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
2917 for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
2919 echo $ac_n "checking for initscr in -l$cf_curs_lib""... $ac_c" 1>&6
2920 echo "configure:2921: checking for initscr in -l$cf_curs_lib" >&5
2921 ac_lib_var=`echo $cf_curs_lib'_'initscr | sed 'y%./+-%__p_%'`
2922 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2923 echo $ac_n "(cached) $ac_c" 1>&6
2925 ac_save_LIBS="$LIBS"
2926 LIBS="-l$cf_curs_lib $LIBS"
2927 cat > conftest.$ac_ext <<EOF
2928 #line 2929 "configure"
2929 #include "confdefs.h"
2930 /* Override any gcc2 internal prototype to avoid an error. */
2931 /* We use char because int might match the return type of a gcc2
2932 builtin and then its argument prototype would still apply. */
2939 if { (eval echo configure:2940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2941 eval "ac_cv_lib_$ac_lib_var=yes"
2943 echo "configure: failed program was:" >&5
2944 cat conftest.$ac_ext >&5
2946 eval "ac_cv_lib_$ac_lib_var=no"
2949 LIBS="$ac_save_LIBS"
2952 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2953 echo "$ac_t""yes" 1>&6
2956 echo "$ac_t""no" 1>&6
2960 test $cf_curs_lib = unknown && { echo "configure: error: no curses library found" 1>&2; exit 1; }
2962 LIBS="-l$cf_curs_lib $cf_save_LIBS"
2963 if test "$cf_term_lib" = unknown ; then
2964 echo $ac_n "checking if we can link with $cf_curs_lib library""... $ac_c" 1>&6
2965 echo "configure:2966: checking if we can link with $cf_curs_lib library" >&5
2966 cat > conftest.$ac_ext <<EOF
2967 #line 2968 "configure"
2968 #include "confdefs.h"
2969 #include <${cf_cv_ncurses_header-curses.h}>
2974 if { (eval echo configure:2975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2978 echo "configure: failed program was:" >&5
2979 cat conftest.$ac_ext >&5
2984 echo "$ac_t""$cf_result" 1>&6
2985 test $cf_result = no && { echo "configure: error: Cannot link curses library" 1>&2; exit 1; }
2986 elif test "$cf_term_lib" != predefined ; then
2987 echo $ac_n "checking if we need both $cf_curs_lib and $cf_term_lib libraries""... $ac_c" 1>&6
2988 echo "configure:2989: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
2989 cat > conftest.$ac_ext <<EOF
2990 #line 2991 "configure"
2991 #include "confdefs.h"
2992 #include <${cf_cv_ncurses_header-curses.h}>
2994 initscr(); tgoto((char *)0, 0, 0);
2997 if { (eval echo configure:2998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3001 echo "configure: failed program was:" >&5
3002 cat conftest.$ac_ext >&5
3005 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
3006 cat > conftest.$ac_ext <<EOF
3007 #line 3008 "configure"
3008 #include "confdefs.h"
3009 #include <${cf_cv_ncurses_header-curses.h}>
3014 if { (eval echo configure:3015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3018 echo "configure: failed program was:" >&5
3019 cat conftest.$ac_ext >&5
3027 echo "$ac_t""$cf_result" 1>&6
3041 LIBS="$LIBS $MUTTLIBS"
3042 for ac_func in start_color typeahead bkgdset curs_set meta use_default_colors resizeterm
3045 echo $ac_n "checking for $ac_func declaration""... $ac_c" 1>&6
3046 echo "configure:3047: checking for $ac_func declaration" >&5
3047 if eval "test \"`echo '$''{'ac_cv_func_decl_$ac_func'+set}'`\" = set"; then
3048 echo $ac_n "(cached) $ac_c" 1>&6
3050 cat > conftest.$ac_ext <<EOF
3051 #line 3052 "configure"
3052 #include "confdefs.h"
3053 #include <${cf_cv_ncurses_header-curses.h}>
3056 extern int ${ac_func}();
3060 if { (eval echo configure:3061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3063 cat > conftest.$ac_ext <<EOF
3064 #line 3065 "configure"
3065 #include "confdefs.h"
3066 #include <${cf_cv_ncurses_header-curses.h}>
3069 int (*p)() = ${ac_func};
3073 if { (eval echo configure:3074: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3076 eval "ac_cv_func_decl_$ac_func=yes"
3078 echo "configure: failed program was:" >&5
3079 cat conftest.$ac_ext >&5
3082 eval "ac_cv_func_decl_$ac_func=no"
3086 echo "configure: failed program was:" >&5
3087 cat conftest.$ac_ext >&5
3090 eval "ac_cv_func_decl_$ac_func=yes"
3095 if eval "test \"`echo '$ac_cv_func_'decl_$ac_func`\" = yes"; then
3096 echo "$ac_t""yes" 1>&6
3099 ac_tr_func=`echo HAVE_$ac_func | tr '[a-z]' '[A-Z]'`
3101 cat >> confdefs.h <<EOF
3102 #define $ac_tr_func 1
3106 echo "$ac_t""no" 1>&6
3110 if test "$ac_cv_func_decl_start_color" = yes; then
3111 cat >> confdefs.h <<\EOF
3112 #define HAVE_COLOR 1
3116 if test "$ac_cv_func_decl_resizeterm" = yes; then
3117 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
3124 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3125 echo "configure:3126: checking for ANSI C header files" >&5
3126 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3127 echo $ac_n "(cached) $ac_c" 1>&6
3129 cat > conftest.$ac_ext <<EOF
3130 #line 3131 "configure"
3131 #include "confdefs.h"
3137 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3138 { (eval echo configure:3139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3139 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3140 if test -z "$ac_err"; then
3142 ac_cv_header_stdc=yes
3145 echo "configure: failed program was:" >&5
3146 cat conftest.$ac_ext >&5
3148 ac_cv_header_stdc=no
3152 if test $ac_cv_header_stdc = yes; then
3153 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3154 cat > conftest.$ac_ext <<EOF
3155 #line 3156 "configure"
3156 #include "confdefs.h"
3159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3160 egrep "memchr" >/dev/null 2>&1; then
3164 ac_cv_header_stdc=no
3170 if test $ac_cv_header_stdc = yes; then
3171 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3172 cat > conftest.$ac_ext <<EOF
3173 #line 3174 "configure"
3174 #include "confdefs.h"
3177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3178 egrep "free" >/dev/null 2>&1; then
3182 ac_cv_header_stdc=no
3188 if test $ac_cv_header_stdc = yes; then
3189 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3190 if test "$cross_compiling" = yes; then
3193 cat > conftest.$ac_ext <<EOF
3194 #line 3195 "configure"
3195 #include "confdefs.h"
3197 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3198 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3199 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3200 int main () { int i; for (i = 0; i < 256; i++)
3201 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3205 if { (eval echo configure:3206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3209 echo "configure: failed program was:" >&5
3210 cat conftest.$ac_ext >&5
3212 ac_cv_header_stdc=no
3220 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3221 if test $ac_cv_header_stdc = yes; then
3222 cat >> confdefs.h <<\EOF
3223 #define STDC_HEADERS 1
3229 for ac_hdr in stdarg.h sys/ioctl.h ioctl.h sysexits.h
3231 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3232 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3233 echo "configure:3234: checking for $ac_hdr" >&5
3234 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3235 echo $ac_n "(cached) $ac_c" 1>&6
3237 cat > conftest.$ac_ext <<EOF
3238 #line 3239 "configure"
3239 #include "confdefs.h"
3242 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3243 { (eval echo configure:3244: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3244 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3245 if test -z "$ac_err"; then
3247 eval "ac_cv_header_$ac_safe=yes"
3250 echo "configure: failed program was:" >&5
3251 cat conftest.$ac_ext >&5
3253 eval "ac_cv_header_$ac_safe=no"
3257 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3258 echo "$ac_t""yes" 1>&6
3259 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3260 cat >> confdefs.h <<EOF
3261 #define $ac_tr_hdr 1
3265 echo "$ac_t""no" 1>&6
3269 for ac_hdr in sys/time.h sys/resource.h
3271 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3272 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3273 echo "configure:3274: checking for $ac_hdr" >&5
3274 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3275 echo $ac_n "(cached) $ac_c" 1>&6
3277 cat > conftest.$ac_ext <<EOF
3278 #line 3279 "configure"
3279 #include "confdefs.h"
3282 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3283 { (eval echo configure:3284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3284 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3285 if test -z "$ac_err"; then
3287 eval "ac_cv_header_$ac_safe=yes"
3290 echo "configure: failed program was:" >&5
3291 cat conftest.$ac_ext >&5
3293 eval "ac_cv_header_$ac_safe=no"
3297 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3298 echo "$ac_t""yes" 1>&6
3299 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3300 cat >> confdefs.h <<EOF
3301 #define $ac_tr_hdr 1
3305 echo "$ac_t""no" 1>&6
3309 for ac_hdr in unix.h
3311 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3312 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3313 echo "configure:3314: checking for $ac_hdr" >&5
3314 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3315 echo $ac_n "(cached) $ac_c" 1>&6
3317 cat > conftest.$ac_ext <<EOF
3318 #line 3319 "configure"
3319 #include "confdefs.h"
3322 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3323 { (eval echo configure:3324: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3324 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3325 if test -z "$ac_err"; then
3327 eval "ac_cv_header_$ac_safe=yes"
3330 echo "configure: failed program was:" >&5
3331 cat conftest.$ac_ext >&5
3333 eval "ac_cv_header_$ac_safe=no"
3337 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3338 echo "$ac_t""yes" 1>&6
3339 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3340 cat >> confdefs.h <<EOF
3341 #define $ac_tr_hdr 1
3345 echo "$ac_t""no" 1>&6
3350 for ac_func in setrlimit getsid isctype
3352 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3353 echo "configure:3354: checking for $ac_func" >&5
3354 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3355 echo $ac_n "(cached) $ac_c" 1>&6
3357 cat > conftest.$ac_ext <<EOF
3358 #line 3359 "configure"
3359 #include "confdefs.h"
3360 /* System header to define __stub macros and hopefully few prototypes,
3361 which can conflict with char $ac_func(); below. */
3363 /* Override any gcc2 internal prototype to avoid an error. */
3364 /* We use char because int might match the return type of a gcc2
3365 builtin and then its argument prototype would still apply. */
3370 /* The GNU C library defines this for functions which it implements
3371 to always fail with ENOSYS. Some functions are actually named
3372 something starting with __ and the normal name is an alias. */
3373 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3381 if { (eval echo configure:3382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3383 eval "ac_cv_func_$ac_func=yes"
3385 echo "configure: failed program was:" >&5
3386 cat conftest.$ac_ext >&5
3388 eval "ac_cv_func_$ac_func=no"
3393 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3394 echo "$ac_t""yes" 1>&6
3395 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3396 cat >> confdefs.h <<EOF
3397 #define $ac_tr_func 1
3401 echo "$ac_t""no" 1>&6
3406 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3407 echo "configure:3408: checking return type of signal handlers" >&5
3408 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3409 echo $ac_n "(cached) $ac_c" 1>&6
3411 cat > conftest.$ac_ext <<EOF
3412 #line 3413 "configure"
3413 #include "confdefs.h"
3414 #include <sys/types.h>
3420 extern "C" void (*signal (int, void (*)(int)))(int);
3422 void (*signal ()) ();
3429 if { (eval echo configure:3430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3431 ac_cv_type_signal=void
3433 echo "configure: failed program was:" >&5
3434 cat conftest.$ac_ext >&5
3436 ac_cv_type_signal=int
3441 echo "$ac_t""$ac_cv_type_signal" 1>&6
3442 cat >> confdefs.h <<EOF
3443 #define RETSIGTYPE $ac_cv_type_signal
3448 echo $ac_n "checking for sig_atomic_t in signal.h""... $ac_c" 1>&6
3449 echo "configure:3450: checking for sig_atomic_t in signal.h" >&5
3450 cat > conftest.$ac_ext <<EOF
3451 #line 3452 "configure"
3452 #include "confdefs.h"
3455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3456 egrep "sig_atomic_t" >/dev/null 2>&1; then
3459 ac_cv_type_sig_atomic_t=yes;
3460 cat > conftest.$ac_ext <<EOF
3461 #line 3462 "configure"
3462 #include "confdefs.h"
3465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3466 egrep "volatile.*sig_atomic_t" >/dev/null 2>&1; then
3469 is_sig_atomic_t_volatile=yes;
3470 echo "$ac_t""yes, volatile" 1>&6
3475 is_sig_atomic_t_volatile=no;
3476 echo "$ac_t""yes, non volatile" 1>&6
3485 echo "$ac_t""no" 1>&6
3486 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
3487 echo "configure:3488: checking for sig_atomic_t" >&5
3488 if eval "test \"`echo '$''{'ac_cv_type_sig_atomic_t'+set}'`\" = set"; then
3489 echo $ac_n "(cached) $ac_c" 1>&6
3491 cat > conftest.$ac_ext <<EOF
3492 #line 3493 "configure"
3493 #include "confdefs.h"
3494 #include <sys/types.h>
3500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3501 egrep "(^|[^a-zA-Z_0-9])sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3503 ac_cv_type_sig_atomic_t=yes
3506 ac_cv_type_sig_atomic_t=no
3511 echo "$ac_t""$ac_cv_type_sig_atomic_t" 1>&6
3512 if test $ac_cv_type_sig_atomic_t = no; then
3513 cat >> confdefs.h <<\EOF
3514 #define sig_atomic_t int
3519 is_sig_atomic_t_volatile=no
3524 if test $is_sig_atomic_t_volatile = 'yes'
3526 cat >> confdefs.h <<\EOF
3527 #define SIG_ATOMIC_VOLATILE_T sig_atomic_t
3531 cat >> confdefs.h <<\EOF
3532 #define SIG_ATOMIC_VOLATILE_T volatile sig_atomic_t
3537 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3538 echo "configure:3539: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3539 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
3540 echo $ac_n "(cached) $ac_c" 1>&6
3542 cat > conftest.$ac_ext <<EOF
3543 #line 3544 "configure"
3544 #include "confdefs.h"
3545 #include <sys/types.h>
3547 /* NetBSD declares sys_siglist in unistd.h. */
3548 #ifdef HAVE_UNISTD_H
3552 char *msg = *(sys_siglist + 1);
3555 if { (eval echo configure:3556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3557 ac_cv_decl_sys_siglist=yes
3559 echo "configure: failed program was:" >&5
3560 cat conftest.$ac_ext >&5
3562 ac_cv_decl_sys_siglist=no
3567 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3568 if test $ac_cv_decl_sys_siglist = yes; then
3569 cat >> confdefs.h <<\EOF
3570 #define SYS_SIGLIST_DECLARED 1
3576 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3577 echo "configure:3578: checking whether byte ordering is bigendian" >&5
3578 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3579 echo $ac_n "(cached) $ac_c" 1>&6
3581 ac_cv_c_bigendian=unknown
3582 # See if sys/param.h defines the BYTE_ORDER macro.
3583 cat > conftest.$ac_ext <<EOF
3584 #line 3585 "configure"
3585 #include "confdefs.h"
3586 #include <sys/types.h>
3587 #include <sys/param.h>
3590 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3595 if { (eval echo configure:3596: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3597 # It does; now see whether it defined to BIG_ENDIAN or not.
3598 cat > conftest.$ac_ext <<EOF
3599 #line 3600 "configure"
3600 #include "confdefs.h"
3601 #include <sys/types.h>
3602 #include <sys/param.h>
3605 #if BYTE_ORDER != BIG_ENDIAN
3610 if { (eval echo configure:3611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3612 ac_cv_c_bigendian=yes
3614 echo "configure: failed program was:" >&5
3615 cat conftest.$ac_ext >&5
3617 ac_cv_c_bigendian=no
3621 echo "configure: failed program was:" >&5
3622 cat conftest.$ac_ext >&5
3625 if test $ac_cv_c_bigendian = unknown; then
3626 if test "$cross_compiling" = yes; then
3627 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3629 cat > conftest.$ac_ext <<EOF
3630 #line 3631 "configure"
3631 #include "confdefs.h"
3633 /* Are we little or big endian? From Harbison&Steele. */
3637 char c[sizeof (long)];
3640 exit (u.c[sizeof (long) - 1] == 1);
3643 if { (eval echo configure:3644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3645 ac_cv_c_bigendian=no
3647 echo "configure: failed program was:" >&5
3648 cat conftest.$ac_ext >&5
3650 ac_cv_c_bigendian=yes
3658 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3659 if test $ac_cv_c_bigendian = yes; then
3660 cat >> confdefs.h <<\EOF
3661 #define WORDS_BIGENDIAN 1
3666 for ac_hdr in inttypes.h stdint.h
3668 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3669 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3670 echo "configure:3671: checking for $ac_hdr" >&5
3671 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3672 echo $ac_n "(cached) $ac_c" 1>&6
3674 cat > conftest.$ac_ext <<EOF
3675 #line 3676 "configure"
3676 #include "confdefs.h"
3679 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3680 { (eval echo configure:3681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3681 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3682 if test -z "$ac_err"; then
3684 eval "ac_cv_header_$ac_safe=yes"
3687 echo "configure: failed program was:" >&5
3688 cat conftest.$ac_ext >&5
3690 eval "ac_cv_header_$ac_safe=no"
3694 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3695 echo "$ac_t""yes" 1>&6
3696 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3697 cat >> confdefs.h <<EOF
3698 #define $ac_tr_hdr 1
3702 echo "$ac_t""no" 1>&6
3706 echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
3707 echo "configure:3708: checking for uint32_t" >&5
3708 cat > conftest.$ac_ext <<EOF
3709 #line 3710 "configure"
3710 #include "confdefs.h"
3712 #include <sys/types.h>
3714 #include <inttypes.h>
3723 if (sizeof (uint32_t))
3728 if { (eval echo configure:3729: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3731 cat >> confdefs.h <<\EOF
3732 #define HAVE_UINT32_T 1
3735 echo "$ac_t""yes" 1>&6
3738 echo "configure: failed program was:" >&5
3739 cat conftest.$ac_ext >&5
3741 echo "$ac_t""no" 1>&6
3745 echo $ac_n "checking size of int""... $ac_c" 1>&6
3746 echo "configure:3747: checking size of int" >&5
3747 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3748 echo $ac_n "(cached) $ac_c" 1>&6
3750 if test "$cross_compiling" = yes; then
3751 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3753 cat > conftest.$ac_ext <<EOF
3754 #line 3755 "configure"
3755 #include "confdefs.h"
3757 #include <sys/types.h>
3760 FILE *f=fopen("conftestval", "w");
3762 fprintf(f, "%d\n", sizeof(int));
3766 if { (eval echo configure:3767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3768 ac_cv_sizeof_int=`cat conftestval`
3770 echo "configure: failed program was:" >&5
3771 cat conftest.$ac_ext >&5
3779 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3780 cat >> confdefs.h <<EOF
3781 #define SIZEOF_INT $ac_cv_sizeof_int
3785 echo $ac_n "checking size of long""... $ac_c" 1>&6
3786 echo "configure:3787: checking size of long" >&5
3787 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3788 echo $ac_n "(cached) $ac_c" 1>&6
3790 if test "$cross_compiling" = yes; then
3791 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3793 cat > conftest.$ac_ext <<EOF
3794 #line 3795 "configure"
3795 #include "confdefs.h"
3797 #include <sys/types.h>
3800 FILE *f=fopen("conftestval", "w");
3802 fprintf(f, "%d\n", sizeof(long));
3806 if { (eval echo configure:3807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3808 ac_cv_sizeof_long=`cat conftestval`
3810 echo "configure: failed program was:" >&5
3811 cat conftest.$ac_ext >&5
3819 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3820 cat >> confdefs.h <<EOF
3821 #define SIZEOF_LONG $ac_cv_sizeof_long
3826 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3827 echo "configure:3828: checking for pid_t" >&5
3828 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3829 echo $ac_n "(cached) $ac_c" 1>&6
3831 cat > conftest.$ac_ext <<EOF
3832 #line 3833 "configure"
3833 #include "confdefs.h"
3834 #include <sys/types.h>
3840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3841 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3843 ac_cv_type_pid_t=yes
3851 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3852 if test $ac_cv_type_pid_t = no; then
3853 cat >> confdefs.h <<\EOF
3860 for ac_func in fgetpos memmove setegid srand48 strerror
3862 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3863 echo "configure:3864: checking for $ac_func" >&5
3864 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3865 echo $ac_n "(cached) $ac_c" 1>&6
3867 cat > conftest.$ac_ext <<EOF
3868 #line 3869 "configure"
3869 #include "confdefs.h"
3870 /* System header to define __stub macros and hopefully few prototypes,
3871 which can conflict with char $ac_func(); below. */
3873 /* Override any gcc2 internal prototype to avoid an error. */
3874 /* We use char because int might match the return type of a gcc2
3875 builtin and then its argument prototype would still apply. */
3880 /* The GNU C library defines this for functions which it implements
3881 to always fail with ENOSYS. Some functions are actually named
3882 something starting with __ and the normal name is an alias. */
3883 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3891 if { (eval echo configure:3892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3893 eval "ac_cv_func_$ac_func=yes"
3895 echo "configure: failed program was:" >&5
3896 cat conftest.$ac_ext >&5
3898 eval "ac_cv_func_$ac_func=no"
3903 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3904 echo "$ac_t""yes" 1>&6
3905 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3906 cat >> confdefs.h <<EOF
3907 #define $ac_tr_func 1
3911 echo "$ac_t""no" 1>&6
3916 for ac_func in strcasecmp strdup
3918 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3919 echo "configure:3920: checking for $ac_func" >&5
3920 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3921 echo $ac_n "(cached) $ac_c" 1>&6
3923 cat > conftest.$ac_ext <<EOF
3924 #line 3925 "configure"
3925 #include "confdefs.h"
3926 /* System header to define __stub macros and hopefully few prototypes,
3927 which can conflict with char $ac_func(); below. */
3929 /* Override any gcc2 internal prototype to avoid an error. */
3930 /* We use char because int might match the return type of a gcc2
3931 builtin and then its argument prototype would still apply. */
3936 /* The GNU C library defines this for functions which it implements
3937 to always fail with ENOSYS. Some functions are actually named
3938 something starting with __ and the normal name is an alias. */
3939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3947 if { (eval echo configure:3948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3949 eval "ac_cv_func_$ac_func=yes"
3951 echo "configure: failed program was:" >&5
3952 cat conftest.$ac_ext >&5
3954 eval "ac_cv_func_$ac_func=no"
3959 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3960 echo "$ac_t""yes" 1>&6
3961 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3962 cat >> confdefs.h <<EOF
3963 #define $ac_tr_func 1
3967 echo "$ac_t""no" 1>&6
3968 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
3974 echo $ac_n "checking for getopt""... $ac_c" 1>&6
3975 echo "configure:3976: checking for getopt" >&5
3976 if eval "test \"`echo '$''{'ac_cv_func_getopt'+set}'`\" = set"; then
3977 echo $ac_n "(cached) $ac_c" 1>&6
3979 cat > conftest.$ac_ext <<EOF
3980 #line 3981 "configure"
3981 #include "confdefs.h"
3982 /* System header to define __stub macros and hopefully few prototypes,
3983 which can conflict with char getopt(); below. */
3985 /* Override any gcc2 internal prototype to avoid an error. */
3986 /* We use char because int might match the return type of a gcc2
3987 builtin and then its argument prototype would still apply. */
3992 /* The GNU C library defines this for functions which it implements
3993 to always fail with ENOSYS. Some functions are actually named
3994 something starting with __ and the normal name is an alias. */
3995 #if defined (__stub_getopt) || defined (__stub___getopt)
4003 if { (eval echo configure:4004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4005 eval "ac_cv_func_getopt=yes"
4007 echo "configure: failed program was:" >&5
4008 cat conftest.$ac_ext >&5
4010 eval "ac_cv_func_getopt=no"
4015 if eval "test \"`echo '$ac_cv_func_'getopt`\" = yes"; then
4016 echo "$ac_t""yes" 1>&6
4019 echo "$ac_t""no" 1>&6
4022 if test $ac_cv_func_getopt = yes; then
4023 for ac_hdr in getopt.h
4025 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4026 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4027 echo "configure:4028: checking for $ac_hdr" >&5
4028 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4029 echo $ac_n "(cached) $ac_c" 1>&6
4031 cat > conftest.$ac_ext <<EOF
4032 #line 4033 "configure"
4033 #include "confdefs.h"
4036 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4037 { (eval echo configure:4038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4038 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4039 if test -z "$ac_err"; then
4041 eval "ac_cv_header_$ac_safe=yes"
4044 echo "configure: failed program was:" >&5
4045 cat conftest.$ac_ext >&5
4047 eval "ac_cv_header_$ac_safe=no"
4051 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4052 echo "$ac_t""yes" 1>&6
4053 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4054 cat >> confdefs.h <<EOF
4055 #define $ac_tr_hdr 1
4059 echo "$ac_t""no" 1>&6
4067 for ac_func in snprintf
4069 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4070 echo "configure:4071: checking for $ac_func" >&5
4071 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4072 echo $ac_n "(cached) $ac_c" 1>&6
4074 cat > conftest.$ac_ext <<EOF
4075 #line 4076 "configure"
4076 #include "confdefs.h"
4077 /* System header to define __stub macros and hopefully few prototypes,
4078 which can conflict with char $ac_func(); below. */
4080 /* Override any gcc2 internal prototype to avoid an error. */
4081 /* We use char because int might match the return type of a gcc2
4082 builtin and then its argument prototype would still apply. */
4087 /* The GNU C library defines this for functions which it implements
4088 to always fail with ENOSYS. Some functions are actually named
4089 something starting with __ and the normal name is an alias. */
4090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4098 if { (eval echo configure:4099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4100 eval "ac_cv_func_$ac_func=yes"
4102 echo "configure: failed program was:" >&5
4103 cat conftest.$ac_ext >&5
4105 eval "ac_cv_func_$ac_func=no"
4110 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4111 echo "$ac_t""yes" 1>&6
4112 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4113 cat >> confdefs.h <<EOF
4114 #define $ac_tr_func 1
4118 echo "$ac_t""no" 1>&6
4119 mutt_cv_snprintf=yes
4123 for ac_func in vsnprintf
4125 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4126 echo "configure:4127: checking for $ac_func" >&5
4127 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4128 echo $ac_n "(cached) $ac_c" 1>&6
4130 cat > conftest.$ac_ext <<EOF
4131 #line 4132 "configure"
4132 #include "confdefs.h"
4133 /* System header to define __stub macros and hopefully few prototypes,
4134 which can conflict with char $ac_func(); below. */
4136 /* Override any gcc2 internal prototype to avoid an error. */
4137 /* We use char because int might match the return type of a gcc2
4138 builtin and then its argument prototype would still apply. */
4143 /* The GNU C library defines this for functions which it implements
4144 to always fail with ENOSYS. Some functions are actually named
4145 something starting with __ and the normal name is an alias. */
4146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4154 if { (eval echo configure:4155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4156 eval "ac_cv_func_$ac_func=yes"
4158 echo "configure: failed program was:" >&5
4159 cat conftest.$ac_ext >&5
4161 eval "ac_cv_func_$ac_func=no"
4166 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4167 echo "$ac_t""yes" 1>&6
4168 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4169 cat >> confdefs.h <<EOF
4170 #define $ac_tr_func 1
4174 echo "$ac_t""no" 1>&6
4175 mutt_cv_snprintf=yes
4179 if test $mutt_cv_snprintf = yes; then
4180 LIBOBJS="$LIBOBJS snprintf.o"
4183 for ac_func in ftruncate
4185 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4186 echo "configure:4187: checking for $ac_func" >&5
4187 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4188 echo $ac_n "(cached) $ac_c" 1>&6
4190 cat > conftest.$ac_ext <<EOF
4191 #line 4192 "configure"
4192 #include "confdefs.h"
4193 /* System header to define __stub macros and hopefully few prototypes,
4194 which can conflict with char $ac_func(); below. */
4196 /* Override any gcc2 internal prototype to avoid an error. */
4197 /* We use char because int might match the return type of a gcc2
4198 builtin and then its argument prototype would still apply. */
4203 /* The GNU C library defines this for functions which it implements
4204 to always fail with ENOSYS. Some functions are actually named
4205 something starting with __ and the normal name is an alias. */
4206 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4214 if { (eval echo configure:4215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4216 eval "ac_cv_func_$ac_func=yes"
4218 echo "configure: failed program was:" >&5
4219 cat conftest.$ac_ext >&5
4221 eval "ac_cv_func_$ac_func=no"
4226 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4227 echo "$ac_t""yes" 1>&6
4228 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4229 cat >> confdefs.h <<EOF
4230 #define $ac_tr_func 1
4234 echo "$ac_t""no" 1>&6
4235 echo $ac_n "checking for chsize in -lx""... $ac_c" 1>&6
4236 echo "configure:4237: checking for chsize in -lx" >&5
4237 ac_lib_var=`echo x'_'chsize | sed 'y%./+-%__p_%'`
4238 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4239 echo $ac_n "(cached) $ac_c" 1>&6
4241 ac_save_LIBS="$LIBS"
4243 cat > conftest.$ac_ext <<EOF
4244 #line 4245 "configure"
4245 #include "confdefs.h"
4246 /* Override any gcc2 internal prototype to avoid an error. */
4247 /* We use char because int might match the return type of a gcc2
4248 builtin and then its argument prototype would still apply. */
4255 if { (eval echo configure:4256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4257 eval "ac_cv_lib_$ac_lib_var=yes"
4259 echo "configure: failed program was:" >&5
4260 cat conftest.$ac_ext >&5
4262 eval "ac_cv_lib_$ac_lib_var=no"
4265 LIBS="$ac_save_LIBS"
4268 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4269 echo "$ac_t""yes" 1>&6
4270 ac_tr_lib=HAVE_LIB`echo x | sed -e 's/^a-zA-Z0-9_/_/g' \
4271 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4272 cat >> confdefs.h <<EOF
4273 #define $ac_tr_lib 1
4279 echo "$ac_t""no" 1>&6
4286 for ac_func in strftime
4288 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4289 echo "configure:4290: checking for $ac_func" >&5
4290 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4291 echo $ac_n "(cached) $ac_c" 1>&6
4293 cat > conftest.$ac_ext <<EOF
4294 #line 4295 "configure"
4295 #include "confdefs.h"
4296 /* System header to define __stub macros and hopefully few prototypes,
4297 which can conflict with char $ac_func(); below. */
4299 /* Override any gcc2 internal prototype to avoid an error. */
4300 /* We use char because int might match the return type of a gcc2
4301 builtin and then its argument prototype would still apply. */
4306 /* The GNU C library defines this for functions which it implements
4307 to always fail with ENOSYS. Some functions are actually named
4308 something starting with __ and the normal name is an alias. */
4309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4317 if { (eval echo configure:4318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4319 eval "ac_cv_func_$ac_func=yes"
4321 echo "configure: failed program was:" >&5
4322 cat conftest.$ac_ext >&5
4324 eval "ac_cv_func_$ac_func=no"
4329 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4330 echo "$ac_t""yes" 1>&6
4331 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4332 cat >> confdefs.h <<EOF
4333 #define $ac_tr_func 1
4337 echo "$ac_t""no" 1>&6
4338 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
4339 echo "configure:4340: checking for strftime in -lintl" >&5
4340 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
4341 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4342 echo $ac_n "(cached) $ac_c" 1>&6
4344 ac_save_LIBS="$LIBS"
4346 cat > conftest.$ac_ext <<EOF
4347 #line 4348 "configure"
4348 #include "confdefs.h"
4349 /* Override any gcc2 internal prototype to avoid an error. */
4350 /* We use char because int might match the return type of a gcc2
4351 builtin and then its argument prototype would still apply. */
4358 if { (eval echo configure:4359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4360 eval "ac_cv_lib_$ac_lib_var=yes"
4362 echo "configure: failed program was:" >&5
4363 cat conftest.$ac_ext >&5
4365 eval "ac_cv_lib_$ac_lib_var=no"
4368 LIBS="$ac_save_LIBS"
4371 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4372 echo "$ac_t""yes" 1>&6
4373 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/^a-zA-Z0-9_/_/g' \
4374 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4375 cat >> confdefs.h <<EOF
4376 #define $ac_tr_lib 1
4382 echo "$ac_t""no" 1>&6
4389 for ac_func in fchdir
4391 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4392 echo "configure:4393: checking for $ac_func" >&5
4393 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4394 echo $ac_n "(cached) $ac_c" 1>&6
4396 cat > conftest.$ac_ext <<EOF
4397 #line 4398 "configure"
4398 #include "confdefs.h"
4399 /* System header to define __stub macros and hopefully few prototypes,
4400 which can conflict with char $ac_func(); below. */
4402 /* Override any gcc2 internal prototype to avoid an error. */
4403 /* We use char because int might match the return type of a gcc2
4404 builtin and then its argument prototype would still apply. */
4409 /* The GNU C library defines this for functions which it implements
4410 to always fail with ENOSYS. Some functions are actually named
4411 something starting with __ and the normal name is an alias. */
4412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4420 if { (eval echo configure:4421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4422 eval "ac_cv_func_$ac_func=yes"
4424 echo "configure: failed program was:" >&5
4425 cat conftest.$ac_ext >&5
4427 eval "ac_cv_func_$ac_func=no"
4432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4433 echo "$ac_t""yes" 1>&6
4434 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4435 cat >> confdefs.h <<EOF
4436 #define $ac_tr_func 1
4440 echo "$ac_t""no" 1>&6
4446 # Check whether --with-regex or --without-regex was given.
4447 if test "${with_regex+set}" = set; then
4448 withval="$with_regex"
4451 for ac_func in regcomp
4453 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4454 echo "configure:4455: checking for $ac_func" >&5
4455 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4456 echo $ac_n "(cached) $ac_c" 1>&6
4458 cat > conftest.$ac_ext <<EOF
4459 #line 4460 "configure"
4460 #include "confdefs.h"
4461 /* System header to define __stub macros and hopefully few prototypes,
4462 which can conflict with char $ac_func(); below. */
4464 /* Override any gcc2 internal prototype to avoid an error. */
4465 /* We use char because int might match the return type of a gcc2
4466 builtin and then its argument prototype would still apply. */
4471 /* The GNU C library defines this for functions which it implements
4472 to always fail with ENOSYS. Some functions are actually named
4473 something starting with __ and the normal name is an alias. */
4474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4482 if { (eval echo configure:4483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4484 eval "ac_cv_func_$ac_func=yes"
4486 echo "configure: failed program was:" >&5
4487 cat conftest.$ac_ext >&5
4489 eval "ac_cv_func_$ac_func=no"
4494 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4495 echo "$ac_t""yes" 1>&6
4496 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4497 cat >> confdefs.h <<EOF
4498 #define $ac_tr_func 1
4502 echo "$ac_t""no" 1>&6
4510 if test $mutt_cv_regex = no ; then
4511 echo $ac_n "checking whether your system's regexp library is completely broken""... $ac_c" 1>&6
4512 echo "configure:4513: checking whether your system's regexp library is completely broken" >&5
4513 if eval "test \"`echo '$''{'mutt_cv_regex_broken'+set}'`\" = set"; then
4514 echo $ac_n "(cached) $ac_c" 1>&6
4516 if test "$cross_compiling" = yes; then
4517 mutt_cv_regex_broken=yes
4519 cat > conftest.$ac_ext <<EOF
4520 #line 4521 "configure"
4521 #include "confdefs.h"
4525 main() { regex_t blah ; regmatch_t p; p.rm_eo = p.rm_eo; return regcomp(&blah, "foo.*bar", REG_NOSUB) || regexec (&blah, "foobar", 0, NULL, 0); }
4527 if { (eval echo configure:4528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4529 mutt_cv_regex_broken=no
4531 echo "configure: failed program was:" >&5
4532 cat conftest.$ac_ext >&5
4534 mutt_cv_regex_broken=yes
4541 echo "$ac_t""$mutt_cv_regex_broken" 1>&6
4542 if test $mutt_cv_regex_broken = yes ; then
4543 echo "Using the included GNU regex instead." >&6
4548 if test $mutt_cv_regex = yes; then
4549 cat >> confdefs.h <<\EOF
4550 #define USE_GNU_REGEX 1
4553 LIBOBJS="$LIBOBJS regex.o"
4557 # Check whether --with-homespool or --without-homespool was given.
4558 if test "${with_homespool+set}" = set; then
4559 withval="$with_homespool"
4560 with_homespool=${withval}
4563 if test x$with_homespool != x; then
4564 if test $with_homespool = yes; then
4565 with_homespool=mailbox
4567 cat >> confdefs.h <<EOF
4568 #define MAILPATH "$with_homespool"
4571 cat >> confdefs.h <<\EOF
4575 cat >> confdefs.h <<\EOF
4576 #define USE_DOTLOCK 1
4581 # Check whether --with-mailpath or --without-mailpath was given.
4582 if test "${with_mailpath+set}" = set; then
4583 withval="$with_mailpath"
4584 mutt_cv_mailpath=$withval
4586 echo $ac_n "checking where new mail is stored""... $ac_c" 1>&6
4587 echo "configure:4588: checking where new mail is stored" >&5
4588 if eval "test \"`echo '$''{'mutt_cv_mailpath'+set}'`\" = set"; then
4589 echo $ac_n "(cached) $ac_c" 1>&6
4592 if test -d /var/mail; then
4593 mutt_cv_mailpath=/var/mail
4594 elif test -d /var/spool/mail; then
4595 mutt_cv_mailpath=/var/spool/mail
4596 elif test -d /usr/spool/mail; then
4597 mutt_cv_mailpath=/usr/spool/mail
4598 elif test -d /usr/mail; then
4599 mutt_cv_mailpath=/usr/mail
4603 echo "$ac_t""$mutt_cv_mailpath" 1>&6
4607 if test "$mutt_cv_mailpath" = no; then
4608 { echo "configure: error: "Could not determine where new mail is stored."" 1>&2; exit 1; }
4610 cat >> confdefs.h <<EOF
4611 #define MAILPATH "$mutt_cv_mailpath"
4615 echo $ac_n "checking if $mutt_cv_mailpath is world writable""... $ac_c" 1>&6
4616 echo "configure:4617: checking if $mutt_cv_mailpath is world writable" >&5
4617 if eval "test \"`echo '$''{'mutt_cv_worldwrite'+set}'`\" = set"; then
4618 echo $ac_n "(cached) $ac_c" 1>&6
4620 if test "$cross_compiling" = yes; then
4621 mutt_cv_worldwrite=no
4623 cat > conftest.$ac_ext <<EOF
4624 #line 4625 "configure"
4625 #include "confdefs.h"
4626 #include <sys/types.h>
4627 #include <sys/stat.h>
4629 int main (int argc, char **argv)
4633 stat ("$mutt_cv_mailpath", &s);
4634 if (s.st_mode & S_IWOTH) exit (0);
4638 if { (eval echo configure:4639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4640 mutt_cv_worldwrite=yes
4642 echo "configure: failed program was:" >&5
4643 cat conftest.$ac_ext >&5
4645 mutt_cv_worldwrite=no
4652 echo "$ac_t""$mutt_cv_worldwrite" 1>&6
4655 if test $mutt_cv_worldwrite = yes; then
4656 cat >> confdefs.h <<\EOF
4657 #define USE_DOTLOCK 1
4662 echo $ac_n "checking if $mutt_cv_mailpath is group writable""... $ac_c" 1>&6
4663 echo "configure:4664: checking if $mutt_cv_mailpath is group writable" >&5
4664 if eval "test \"`echo '$''{'mutt_cv_groupwrite'+set}'`\" = set"; then
4665 echo $ac_n "(cached) $ac_c" 1>&6
4667 if test "$cross_compiling" = yes; then
4668 mutt_cv_groupwrite=no
4670 cat > conftest.$ac_ext <<EOF
4671 #line 4672 "configure"
4672 #include "confdefs.h"
4673 #include <sys/types.h>
4674 #include <sys/stat.h>
4676 int main (int argc, char **argv)
4680 stat ("$mutt_cv_mailpath", &s);
4681 if (s.st_mode & S_IWGRP) exit (0);
4685 if { (eval echo configure:4686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4687 mutt_cv_groupwrite=yes
4689 echo "configure: failed program was:" >&5
4690 cat conftest.$ac_ext >&5
4692 mutt_cv_groupwrite=no
4699 echo "$ac_t""$mutt_cv_groupwrite" 1>&6
4701 if test $mutt_cv_groupwrite = yes; then
4702 cat >> confdefs.h <<\EOF
4703 #define USE_DOTLOCK 1
4706 cat >> confdefs.h <<\EOF
4707 #define USE_SETGID 1
4715 # Check whether --enable-external_dotlock or --disable-external_dotlock was given.
4716 if test "${enable_external_dotlock+set}" = set; then
4717 enableval="$enable_external_dotlock"
4718 mutt_cv_external_dotlock="$enableval"
4722 if test "x$mutt_cv_setgid" = "xyes" || test "x$mutt_cv_fchdir" = "xno" \
4723 || test "x$mutt_cv_external_dotlock" = "xyes"
4725 cat >> confdefs.h <<\EOF
4726 #define DL_STANDALONE 1
4729 DOTLOCK_TARGET="muttng_dotlock"
4731 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS dotlock.o"
4737 echo $ac_n "checking where to put the documentation""... $ac_c" 1>&6
4738 echo "configure:4739: checking where to put the documentation" >&5
4739 # Check whether --with-docdir or --without-docdir was given.
4740 if test "${with_docdir+set}" = set; then
4741 withval="$with_docdir"
4742 mutt_cv_docdir=$withval
4744 mutt_cv_docdir="$mutt_cv_prefix/doc/muttng"
4747 echo "$ac_t""$mutt_cv_docdir" 1>&6
4749 docdir=$mutt_cv_docdir
4752 if test x$mutt_cv_setgid = xyes; then
4753 DOTLOCK_GROUP='mail'
4754 DOTLOCK_PERMISSION=2755
4757 DOTLOCK_PERMISSION=755
4762 # Check whether --with-domain or --without-domain was given.
4763 if test "${with_domain+set}" = set; then
4764 withval="$with_domain"
4765 if test $withval != yes; then
4766 cat >> confdefs.h <<EOF
4767 #define DOMAIN "$withval"
4777 # Check whether --enable-pop or --disable-pop was given.
4778 if test "${enable_pop+set}" = set; then
4779 enableval="$enable_pop"
4780 if test x$enableval = xyes ; then
4781 cat >> confdefs.h <<\EOF
4785 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pop.o pop_lib.o pop_auth.o"
4793 # Check whether --enable-imap or --disable-imap was given.
4794 if test "${enable_imap+set}" = set; then
4795 enableval="$enable_imap"
4796 if test x$enableval = xyes ; then
4797 cat >> confdefs.h <<\EOF
4801 LIBIMAP="-Limap -limap"
4802 LIBIMAPDEPS="\$(top_srcdir)/imap/imap.h imap/libimap.a"
4812 if test x$need_imap = xyes; then
4814 BUILD_IMAP_FALSE='#'
4820 # Check whether --enable-nntp or --disable-nntp was given.
4821 if test "${enable_nntp+set}" = set; then
4822 enableval="$enable_nntp"
4823 if test x$enableval = xyes ; then
4824 cat >> confdefs.h <<\EOF
4828 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS nntp.o newsrc.o"
4836 if test "$need_socket" = "yes"
4838 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
4839 echo "configure:4840: checking for socklen_t" >&5
4840 cat > conftest.$ac_ext <<EOF
4841 #line 4842 "configure"
4842 #include "confdefs.h"
4843 #include <sys/socket.h>
4845 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4846 egrep "socklen_t" >/dev/null 2>&1; then
4848 echo "$ac_t""yes" 1>&6
4851 echo "$ac_t""no" 1>&6
4852 cat >> confdefs.h <<\EOF
4853 #define socklen_t int
4859 echo $ac_n "checking for gethostent""... $ac_c" 1>&6
4860 echo "configure:4861: checking for gethostent" >&5
4861 if eval "test \"`echo '$''{'ac_cv_func_gethostent'+set}'`\" = set"; then
4862 echo $ac_n "(cached) $ac_c" 1>&6
4864 cat > conftest.$ac_ext <<EOF
4865 #line 4866 "configure"
4866 #include "confdefs.h"
4867 /* System header to define __stub macros and hopefully few prototypes,
4868 which can conflict with char gethostent(); below. */
4870 /* Override any gcc2 internal prototype to avoid an error. */
4871 /* We use char because int might match the return type of a gcc2
4872 builtin and then its argument prototype would still apply. */
4877 /* The GNU C library defines this for functions which it implements
4878 to always fail with ENOSYS. Some functions are actually named
4879 something starting with __ and the normal name is an alias. */
4880 #if defined (__stub_gethostent) || defined (__stub___gethostent)
4888 if { (eval echo configure:4889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4890 eval "ac_cv_func_gethostent=yes"
4892 echo "configure: failed program was:" >&5
4893 cat conftest.$ac_ext >&5
4895 eval "ac_cv_func_gethostent=no"
4900 if eval "test \"`echo '$ac_cv_func_'gethostent`\" = yes"; then
4901 echo "$ac_t""yes" 1>&6
4904 echo "$ac_t""no" 1>&6
4905 echo $ac_n "checking for gethostent in -lnsl""... $ac_c" 1>&6
4906 echo "configure:4907: checking for gethostent in -lnsl" >&5
4907 ac_lib_var=`echo nsl'_'gethostent | sed 'y%./+-%__p_%'`
4908 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4909 echo $ac_n "(cached) $ac_c" 1>&6
4911 ac_save_LIBS="$LIBS"
4913 cat > conftest.$ac_ext <<EOF
4914 #line 4915 "configure"
4915 #include "confdefs.h"
4916 /* Override any gcc2 internal prototype to avoid an error. */
4917 /* We use char because int might match the return type of a gcc2
4918 builtin and then its argument prototype would still apply. */
4925 if { (eval echo configure:4926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4927 eval "ac_cv_lib_$ac_lib_var=yes"
4929 echo "configure: failed program was:" >&5
4930 cat conftest.$ac_ext >&5
4932 eval "ac_cv_lib_$ac_lib_var=no"
4935 LIBS="$ac_save_LIBS"
4938 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4939 echo "$ac_t""yes" 1>&6
4940 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
4941 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4942 cat >> confdefs.h <<EOF
4943 #define $ac_tr_lib 1
4949 echo "$ac_t""no" 1>&6
4954 echo $ac_n "checking for setsockopt""... $ac_c" 1>&6
4955 echo "configure:4956: checking for setsockopt" >&5
4956 if eval "test \"`echo '$''{'ac_cv_func_setsockopt'+set}'`\" = set"; then
4957 echo $ac_n "(cached) $ac_c" 1>&6
4959 cat > conftest.$ac_ext <<EOF
4960 #line 4961 "configure"
4961 #include "confdefs.h"
4962 /* System header to define __stub macros and hopefully few prototypes,
4963 which can conflict with char setsockopt(); below. */
4965 /* Override any gcc2 internal prototype to avoid an error. */
4966 /* We use char because int might match the return type of a gcc2
4967 builtin and then its argument prototype would still apply. */
4972 /* The GNU C library defines this for functions which it implements
4973 to always fail with ENOSYS. Some functions are actually named
4974 something starting with __ and the normal name is an alias. */
4975 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
4983 if { (eval echo configure:4984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4985 eval "ac_cv_func_setsockopt=yes"
4987 echo "configure: failed program was:" >&5
4988 cat conftest.$ac_ext >&5
4990 eval "ac_cv_func_setsockopt=no"
4995 if eval "test \"`echo '$ac_cv_func_'setsockopt`\" = yes"; then
4996 echo "$ac_t""yes" 1>&6
4999 echo "$ac_t""no" 1>&6
5000 echo $ac_n "checking for setsockopt in -lsocket""... $ac_c" 1>&6
5001 echo "configure:5002: checking for setsockopt in -lsocket" >&5
5002 ac_lib_var=`echo socket'_'setsockopt | sed 'y%./+-%__p_%'`
5003 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5004 echo $ac_n "(cached) $ac_c" 1>&6
5006 ac_save_LIBS="$LIBS"
5007 LIBS="-lsocket $LIBS"
5008 cat > conftest.$ac_ext <<EOF
5009 #line 5010 "configure"
5010 #include "confdefs.h"
5011 /* Override any gcc2 internal prototype to avoid an error. */
5012 /* We use char because int might match the return type of a gcc2
5013 builtin and then its argument prototype would still apply. */
5020 if { (eval echo configure:5021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5022 eval "ac_cv_lib_$ac_lib_var=yes"
5024 echo "configure: failed program was:" >&5
5025 cat conftest.$ac_ext >&5
5027 eval "ac_cv_lib_$ac_lib_var=no"
5030 LIBS="$ac_save_LIBS"
5033 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5034 echo "$ac_t""yes" 1>&6
5035 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
5036 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5037 cat >> confdefs.h <<EOF
5038 #define $ac_tr_lib 1
5041 LIBS="-lsocket $LIBS"
5044 echo "$ac_t""no" 1>&6
5049 for ac_func in getaddrinfo
5051 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5052 echo "configure:5053: checking for $ac_func" >&5
5053 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5054 echo $ac_n "(cached) $ac_c" 1>&6
5056 cat > conftest.$ac_ext <<EOF
5057 #line 5058 "configure"
5058 #include "confdefs.h"
5059 /* System header to define __stub macros and hopefully few prototypes,
5060 which can conflict with char $ac_func(); below. */
5062 /* Override any gcc2 internal prototype to avoid an error. */
5063 /* We use char because int might match the return type of a gcc2
5064 builtin and then its argument prototype would still apply. */
5069 /* The GNU C library defines this for functions which it implements
5070 to always fail with ENOSYS. Some functions are actually named
5071 something starting with __ and the normal name is an alias. */
5072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5080 if { (eval echo configure:5081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5082 eval "ac_cv_func_$ac_func=yes"
5084 echo "configure: failed program was:" >&5
5085 cat conftest.$ac_ext >&5
5087 eval "ac_cv_func_$ac_func=no"
5092 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5093 echo "$ac_t""yes" 1>&6
5094 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5095 cat >> confdefs.h <<EOF
5096 #define $ac_tr_func 1
5100 echo "$ac_t""no" 1>&6
5104 cat >> confdefs.h <<\EOF
5105 #define USE_SOCKET 1
5108 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS account.o mutt_socket.o mutt_tunnel.o"
5112 # Check whether --with-gss or --without-gss was given.
5113 if test "${with_gss+set}" = set; then
5115 gss_prefix="$withval"
5120 if test "$gss_prefix" != "no"
5122 if test "$need_imap" = "yes"
5125 GSSAPI_PREFIX=$gss_prefix
5127 saved_CPPFLAGS="$CPPFLAGS"
5128 saved_LDFLAGS="$LDFLAGS"
5130 if test "$GSSAPI_PREFIX" != "yes"
5132 krb5_path="$GSSAPI_PREFIX/bin"
5136 # Extract the first word of "krb5-config", so it can be a program name with args.
5137 set dummy krb5-config; ac_word=$2
5138 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5139 echo "configure:5140: checking for $ac_word" >&5
5140 if eval "test \"`echo '$''{'ac_cv_path_KRB5CFGPATH'+set}'`\" = set"; then
5141 echo $ac_n "(cached) $ac_c" 1>&6
5143 case "$KRB5CFGPATH" in
5145 ac_cv_path_KRB5CFGPATH="$KRB5CFGPATH" # Let the user override the test with a path.
5148 ac_cv_path_KRB5CFGPATH="$KRB5CFGPATH" # Let the user override the test with a dos path.
5151 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5152 ac_dummy="$krb5_path"
5153 for ac_dir in $ac_dummy; do
5154 test -z "$ac_dir" && ac_dir=.
5155 if test -f $ac_dir/$ac_word; then
5156 ac_cv_path_KRB5CFGPATH="$ac_dir/$ac_word"
5161 test -z "$ac_cv_path_KRB5CFGPATH" && ac_cv_path_KRB5CFGPATH="none"
5165 KRB5CFGPATH="$ac_cv_path_KRB5CFGPATH"
5166 if test -n "$KRB5CFGPATH"; then
5167 echo "$ac_t""$KRB5CFGPATH" 1>&6
5169 echo "$ac_t""no" 1>&6
5172 if test "$KRB5CFGPATH" != "none"
5174 GSSAPI_CFLAGS="$CPPFLAGS `$KRB5CFGPATH --cflags gssapi`"
5175 GSSAPI_LIBS="$MUTTLIBS `$KRB5CFGPATH --libs gssapi`"
5176 case "`$KRB5CFGPATH --version`" in
5177 "Kerberos 5 "*) GSSAPI_IMPL="MIT";;
5178 ?eimdal*) GSSAPI_IMPL="Heimdal";;
5179 *) GSSAPI_IMPL="Unknown";;
5182 if test "$GSSAPI_PREFIX" != "yes"
5184 GSSAPI_CFLAGS="-I$GSSAPI_PREFIX/include"
5185 GSSAPI_LDFLAGS="-L$GSSAPI_PREFIX/lib"
5186 CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
5187 LDFLAGS="$LDFLAGS $GSSAPI_LDFLAGS"
5190 echo $ac_n "checking for gss_init_sec_context in -lgssapi_krb5""... $ac_c" 1>&6
5191 echo "configure:5192: checking for gss_init_sec_context in -lgssapi_krb5" >&5
5192 ac_lib_var=`echo gssapi_krb5'_'gss_init_sec_context | sed 'y%./+-%__p_%'`
5193 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5194 echo $ac_n "(cached) $ac_c" 1>&6
5196 ac_save_LIBS="$LIBS"
5197 LIBS="-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err $LIBS"
5198 cat > conftest.$ac_ext <<EOF
5199 #line 5200 "configure"
5200 #include "confdefs.h"
5201 /* Override any gcc2 internal prototype to avoid an error. */
5202 /* We use char because int might match the return type of a gcc2
5203 builtin and then its argument prototype would still apply. */
5204 char gss_init_sec_context();
5207 gss_init_sec_context()
5210 if { (eval echo configure:5211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5212 eval "ac_cv_lib_$ac_lib_var=yes"
5214 echo "configure: failed program was:" >&5
5215 cat conftest.$ac_ext >&5
5217 eval "ac_cv_lib_$ac_lib_var=no"
5220 LIBS="$ac_save_LIBS"
5223 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5224 echo "$ac_t""yes" 1>&6
5227 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err"
5230 echo "$ac_t""no" 1>&6
5234 if test "$GSSAPI_IMPL" = "none"
5236 echo $ac_n "checking for gss_init_sec_context in -lgssapi""... $ac_c" 1>&6
5237 echo "configure:5238: checking for gss_init_sec_context in -lgssapi" >&5
5238 ac_lib_var=`echo gssapi'_'gss_init_sec_context | sed 'y%./+-%__p_%'`
5239 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5240 echo $ac_n "(cached) $ac_c" 1>&6
5242 ac_save_LIBS="$LIBS"
5243 LIBS="-lgssapi -lkrb5 -ldes -lasn1 -lroken -lcrypt -lcom_err $LIBS"
5244 cat > conftest.$ac_ext <<EOF
5245 #line 5246 "configure"
5246 #include "confdefs.h"
5247 /* Override any gcc2 internal prototype to avoid an error. */
5248 /* We use char because int might match the return type of a gcc2
5249 builtin and then its argument prototype would still apply. */
5250 char gss_init_sec_context();
5253 gss_init_sec_context()
5256 if { (eval echo configure:5257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5258 eval "ac_cv_lib_$ac_lib_var=yes"
5260 echo "configure: failed program was:" >&5
5261 cat conftest.$ac_ext >&5
5263 eval "ac_cv_lib_$ac_lib_var=no"
5266 LIBS="$ac_save_LIBS"
5269 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5270 echo "$ac_t""yes" 1>&6
5272 GSSAPI_IMPL="Heimdal"
5273 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi -lkrb5 -ldes -lasn1 -lroken"
5274 GSSAPI_LIBS="$GSSAPI_LIBS -lcrypt -lcom_err"
5277 echo "$ac_t""no" 1>&6
5282 if test "$GSSAPI_IMPL" = "none"
5284 echo $ac_n "checking for g_order_init in -lgssapi_krb5""... $ac_c" 1>&6
5285 echo "configure:5286: checking for g_order_init in -lgssapi_krb5" >&5
5286 ac_lib_var=`echo gssapi_krb5'_'g_order_init | sed 'y%./+-%__p_%'`
5287 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5288 echo $ac_n "(cached) $ac_c" 1>&6
5290 ac_save_LIBS="$LIBS"
5291 LIBS="-lgssapi_krb5 -lkrb5 -lcrypto -lcom_err $LIBS"
5292 cat > conftest.$ac_ext <<EOF
5293 #line 5294 "configure"
5294 #include "confdefs.h"
5295 /* Override any gcc2 internal prototype to avoid an error. */
5296 /* We use char because int might match the return type of a gcc2
5297 builtin and then its argument prototype would still apply. */
5298 char g_order_init();
5304 if { (eval echo configure:5305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5306 eval "ac_cv_lib_$ac_lib_var=yes"
5308 echo "configure: failed program was:" >&5
5309 cat conftest.$ac_ext >&5
5311 eval "ac_cv_lib_$ac_lib_var=no"
5314 LIBS="$ac_save_LIBS"
5317 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5318 echo "$ac_t""yes" 1>&6
5320 GSSAPI_IMPL="OldMIT",
5321 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err"
5324 echo "$ac_t""no" 1>&6
5330 CPPFLAGS="$saved_CPPFLAGS"
5331 LDFLAGS="$saved_LDFLAGS"
5334 echo $ac_n "checking GSSAPI implementation""... $ac_c" 1>&6
5335 echo "configure:5336: checking GSSAPI implementation" >&5
5336 echo "$ac_t""$GSSAPI_IMPL" 1>&6
5337 if test "$GSSAPI_IMPL" = "none"
5339 cat > confcache <<\EOF
5340 # This file is a shell script that caches the results of configure
5341 # tests run on this system so they can be shared between configure
5342 # scripts and configure runs. It is not useful on other systems.
5343 # If it contains results you don't want to keep, you may remove or edit it.
5345 # By default, configure uses ./config.cache as the cache file,
5346 # creating it if it does not exist already. You can give configure
5347 # the --cache-file=FILE option to use a different cache file; that is
5348 # what configure does when it calls configure scripts in
5349 # subdirectories, so they share the cache.
5350 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5351 # config.status only pays attention to the cache file if you give it the
5352 # --recheck option to rerun configure.
5355 # The following way of writing the cache mishandles newlines in values,
5356 # but we know of no workaround that is simple, portable, and efficient.
5357 # So, don't put newlines in cache variables' values.
5358 # Ultrix sh set writes to stderr and can't be redirected directly,
5359 # and sets the high bit in the cache file unless we assign to the vars.
5361 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5363 # `set' does not quote correctly, so add quotes (double-quote substitution
5364 # turns \\\\ into \\, and sed turns \\ into \).
5366 -e "s/'/'\\\\''/g" \
5367 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5370 # `set' quotes correctly as required by POSIX, so do not add quotes.
5371 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5374 if cmp -s $cache_file confcache; then
5377 if test -w $cache_file; then
5378 echo "updating cache $cache_file"
5379 cat confcache > $cache_file
5381 echo "not updating unwritable cache $cache_file"
5386 echo "$ac_t""GSSAPI libraries not found" 1>&6
5388 if test "$GSSAPI_IMPL" = "Heimdal"
5390 cat >> confdefs.h <<\EOF
5391 #define HAVE_HEIMDAL 1
5395 CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
5396 MUTTLIBS="$MUTTLIBS $GSSAPI_LIBS"
5397 cat >> confdefs.h <<\EOF
5403 echo "configure: warning: GSS was requested but IMAP is not enabled" 1>&2
5408 if test x$need_gss = xyes; then
5417 # Check whether --with-ssl or --without-ssl was given.
5418 if test "${with_ssl+set}" = set; then
5420 if test "$with_ssl" != "no"
5422 if test "$need_socket" != "yes"; then
5423 { echo "configure: error: SSL support is only useful with POP or IMAP support" 1>&2; exit 1; }
5426 if test "$with_ssl" != "yes"
5428 LDFLAGS="$LDFLAGS -L$withval/lib"
5429 CPPFLAGS="$CPPFLAGS -I$withval/include"
5433 echo $ac_n "checking for X509_new in -lcrypto""... $ac_c" 1>&6
5434 echo "configure:5435: checking for X509_new in -lcrypto" >&5
5435 ac_lib_var=`echo crypto'_'X509_new | sed 'y%./+-%__p_%'`
5436 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5437 echo $ac_n "(cached) $ac_c" 1>&6
5439 ac_save_LIBS="$LIBS"
5440 LIBS="-lcrypto $LIBS"
5441 cat > conftest.$ac_ext <<EOF
5442 #line 5443 "configure"
5443 #include "confdefs.h"
5444 /* Override any gcc2 internal prototype to avoid an error. */
5445 /* We use char because int might match the return type of a gcc2
5446 builtin and then its argument prototype would still apply. */
5453 if { (eval echo configure:5454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5455 eval "ac_cv_lib_$ac_lib_var=yes"
5457 echo "configure: failed program was:" >&5
5458 cat conftest.$ac_ext >&5
5460 eval "ac_cv_lib_$ac_lib_var=no"
5463 LIBS="$ac_save_LIBS"
5466 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5467 echo "$ac_t""yes" 1>&6
5468 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5469 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5470 cat >> confdefs.h <<EOF
5471 #define $ac_tr_lib 1
5474 LIBS="-lcrypto $LIBS"
5477 echo "$ac_t""no" 1>&6
5478 { echo "configure: error: Unable to find SSL library" 1>&2; exit 1; }
5481 echo $ac_n "checking for SSL_new in -lssl""... $ac_c" 1>&6
5482 echo "configure:5483: checking for SSL_new in -lssl" >&5
5483 ac_lib_var=`echo ssl'_'SSL_new | sed 'y%./+-%__p_%'`
5484 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5485 echo $ac_n "(cached) $ac_c" 1>&6
5487 ac_save_LIBS="$LIBS"
5488 LIBS="-lssl -lcrypto $LIBS"
5489 cat > conftest.$ac_ext <<EOF
5490 #line 5491 "configure"
5491 #include "confdefs.h"
5492 /* Override any gcc2 internal prototype to avoid an error. */
5493 /* We use char because int might match the return type of a gcc2
5494 builtin and then its argument prototype would still apply. */
5501 if { (eval echo configure:5502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5503 eval "ac_cv_lib_$ac_lib_var=yes"
5505 echo "configure: failed program was:" >&5
5506 cat conftest.$ac_ext >&5
5508 eval "ac_cv_lib_$ac_lib_var=no"
5511 LIBS="$ac_save_LIBS"
5514 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5515 echo "$ac_t""yes" 1>&6
5516 ac_tr_lib=HAVE_LIB`echo ssl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5517 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5518 cat >> confdefs.h <<EOF
5519 #define $ac_tr_lib 1
5525 echo "$ac_t""no" 1>&6
5526 { echo "configure: error: Unable to find SSL library" 1>&2; exit 1; }
5530 for ac_func in RAND_status RAND_egd
5532 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5533 echo "configure:5534: checking for $ac_func" >&5
5534 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5535 echo $ac_n "(cached) $ac_c" 1>&6
5537 cat > conftest.$ac_ext <<EOF
5538 #line 5539 "configure"
5539 #include "confdefs.h"
5540 /* System header to define __stub macros and hopefully few prototypes,
5541 which can conflict with char $ac_func(); below. */
5543 /* Override any gcc2 internal prototype to avoid an error. */
5544 /* We use char because int might match the return type of a gcc2
5545 builtin and then its argument prototype would still apply. */
5550 /* The GNU C library defines this for functions which it implements
5551 to always fail with ENOSYS. Some functions are actually named
5552 something starting with __ and the normal name is an alias. */
5553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5561 if { (eval echo configure:5562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5563 eval "ac_cv_func_$ac_func=yes"
5565 echo "configure: failed program was:" >&5
5566 cat conftest.$ac_ext >&5
5568 eval "ac_cv_func_$ac_func=no"
5573 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5574 echo "$ac_t""yes" 1>&6
5575 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5576 cat >> confdefs.h <<EOF
5577 #define $ac_tr_func 1
5581 echo "$ac_t""no" 1>&6
5586 cat >> confdefs.h <<\EOF
5591 MUTTLIBS="$MUTTLIBS -lssl -lcrypto"
5592 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl.o"
5601 if test x$need_ssl = xyes; then
5609 # Check whether --with-gnutls or --without-gnutls was given.
5610 if test "${with_gnutls+set}" = set; then
5611 withval="$with_gnutls"
5612 if test "$need_ssl" = "yes"
5614 { echo "configure: error: In order to compile in GNU TLS support, you must first disable SSL support" 1>&2; exit 1; }
5616 if test "$with_gnutls" != "no"
5618 if test "$need_socket" != "yes"; then
5619 { echo "configure: error: GNU TLS support is only useful with POP or IMAP support" 1>&2; exit 1; }
5621 if test "$with_gnutls" != "yes"
5623 LDFLAGS="$LDFLAGS -L$withval/lib"
5624 CPPFLAGS="$CPPFLAGS -I$withval/include"
5628 echo $ac_n "checking for gnutls_init in -lgnutls""... $ac_c" 1>&6
5629 echo "configure:5630: checking for gnutls_init in -lgnutls" >&5
5630 ac_lib_var=`echo gnutls'_'gnutls_init | sed 'y%./+-%__p_%'`
5631 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5632 echo $ac_n "(cached) $ac_c" 1>&6
5634 ac_save_LIBS="$LIBS"
5635 LIBS="-lgnutls $LIBS"
5636 cat > conftest.$ac_ext <<EOF
5637 #line 5638 "configure"
5638 #include "confdefs.h"
5639 /* Override any gcc2 internal prototype to avoid an error. */
5640 /* We use char because int might match the return type of a gcc2
5641 builtin and then its argument prototype would still apply. */
5648 if { (eval echo configure:5649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5650 eval "ac_cv_lib_$ac_lib_var=yes"
5652 echo "configure: failed program was:" >&5
5653 cat conftest.$ac_ext >&5
5655 eval "ac_cv_lib_$ac_lib_var=no"
5658 LIBS="$ac_save_LIBS"
5661 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5662 echo "$ac_t""yes" 1>&6
5663 ac_tr_lib=HAVE_LIB`echo gnutls | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5664 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5665 cat >> confdefs.h <<EOF
5666 #define $ac_tr_lib 1
5669 LIBS="-lgnutls $LIBS"
5672 echo "$ac_t""no" 1>&6
5673 { echo "configure: error: Unable to find GNU TLS library" 1>&2; exit 1; }
5677 cat >> confdefs.h <<\EOF
5678 #define USE_GNUTLS 1
5682 #MUTTLIBS="$MUTTLIBS -lgnutls"
5683 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_gnutls.o"
5691 if test x$need_gnutls = xyes; then
5693 USE_GNUTLS_FALSE='#'
5699 # Check whether --with-nss or --without-nss was given.
5700 if test "${with_nss+set}" = set; then
5702 if test "$with_nss" != no
5704 if test "$need_socket" != "yes"; then
5705 { echo "configure: error: SSL support is only useful with POP or IMAP support" 1>&2; exit 1; }
5708 if test "$with_nss" != "yes"
5710 LDFLAGS="$LDFLAGS -L$withval/lib"
5711 CPPFLAGS="$CPPFLAGS -I$withval/include -I$withval/public/security"
5714 cat >> confdefs.h <<\EOF
5718 MUTTLIBS="$MUTTLIBS -lssl -lnss -lcertdb -lcerthi -lcryptohi"
5719 MUTTLIBS="$MUTTLIBS -lpk11wrap -lsoftoken -lsecutil -ldbm -lplds4 -lplc4 -lfreebl"
5720 MUTTLIBS="$MUTTLIBS -lnspr4"
5722 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_nss.o"
5729 # Check whether --with-sasl or --without-sasl was given.
5730 if test "${with_sasl+set}" = set; then
5731 withval="$with_sasl"
5733 if test "$need_socket" != "yes"
5735 { echo "configure: error: SASL support is only useful with POP or IMAP support" 1>&2; exit 1; }
5738 if test "$with_sasl" != "no"
5740 if test "$with_sasl" != "yes"
5742 CPPFLAGS="$CPPFLAGS -I$with_sasl/include"
5743 LDFLAGS="$LDFLAGS -L$with_sasl/lib"
5748 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
5749 echo "configure:5750: checking for sasl_client_init in -lsasl" >&5
5750 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-%__p_%'`
5751 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5752 echo $ac_n "(cached) $ac_c" 1>&6
5754 ac_save_LIBS="$LIBS"
5756 cat > conftest.$ac_ext <<EOF
5757 #line 5758 "configure"
5758 #include "confdefs.h"
5759 /* Override any gcc2 internal prototype to avoid an error. */
5760 /* We use char because int might match the return type of a gcc2
5761 builtin and then its argument prototype would still apply. */
5762 char sasl_client_init();
5768 if { (eval echo configure:5769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5770 eval "ac_cv_lib_$ac_lib_var=yes"
5772 echo "configure: failed program was:" >&5
5773 cat conftest.$ac_ext >&5
5775 eval "ac_cv_lib_$ac_lib_var=no"
5778 LIBS="$ac_save_LIBS"
5781 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5782 echo "$ac_t""yes" 1>&6
5783 ac_tr_lib=HAVE_LIB`echo sasl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5784 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5785 cat >> confdefs.h <<EOF
5786 #define $ac_tr_lib 1
5792 echo "$ac_t""no" 1>&6
5793 { echo "configure: error: could not find libsasl" 1>&2; exit 1; }
5797 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
5798 MUTTLIBS="$MUTTLIBS -lsasl"
5800 cat >> confdefs.h <<\EOF
5811 if test x$need_sasl = xyes; then
5819 # Check whether --with-sasl2 or --without-sasl2 was given.
5820 if test "${with_sasl2+set}" = set; then
5821 withval="$with_sasl2"
5823 if test "$need_socket" != "yes"
5825 { echo "configure: error: SASL support is only useful with POP or IMAP support" 1>&2; exit 1; }
5828 if test "$with_sasl2" != "no"
5830 if test "$with_sasl2" != "yes"
5832 CPPFLAGS="$CPPFLAGS -I$with_sasl2/include"
5833 LDFLAGS="$LDFLAGS -L$with_sasl2/lib"
5838 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
5839 echo "configure:5840: checking for sasl_client_init in -lsasl2" >&5
5840 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-%__p_%'`
5841 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5842 echo $ac_n "(cached) $ac_c" 1>&6
5844 ac_save_LIBS="$LIBS"
5845 LIBS="-lsasl2 $LIBS"
5846 cat > conftest.$ac_ext <<EOF
5847 #line 5848 "configure"
5848 #include "confdefs.h"
5849 /* Override any gcc2 internal prototype to avoid an error. */
5850 /* We use char because int might match the return type of a gcc2
5851 builtin and then its argument prototype would still apply. */
5852 char sasl_client_init();
5858 if { (eval echo configure:5859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5860 eval "ac_cv_lib_$ac_lib_var=yes"
5862 echo "configure: failed program was:" >&5
5863 cat conftest.$ac_ext >&5
5865 eval "ac_cv_lib_$ac_lib_var=no"
5868 LIBS="$ac_save_LIBS"
5871 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5872 echo "$ac_t""yes" 1>&6
5873 ac_tr_lib=HAVE_LIB`echo sasl2 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5874 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5875 cat >> confdefs.h <<EOF
5876 #define $ac_tr_lib 1
5879 LIBS="-lsasl2 $LIBS"
5882 echo "$ac_t""no" 1>&6
5883 { echo "configure: error: could not find libsasl" 1>&2; exit 1; }
5887 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
5888 MUTTLIBS="$MUTTLIBS -lsasl2"
5890 cat >> confdefs.h <<\EOF
5894 cat >> confdefs.h <<\EOF
5905 if test x$need_sasl = xyes; then
5913 # Check whether --with-idn or --without-idn was given.
5914 if test "${with_idn+set}" = set; then
5917 if test "$with_idn" != "no" ; then
5918 if test "$with_idn" != "yes" ; then
5919 CPPFLAGS="$CPPFLAGS -I$with_idn/include"
5920 LDFLAGS="$LDFLAGS -L$with_idn/lib"
5928 if test "x$with_idn" != "xno"; then
5929 echo $ac_n "checking for stringprep_check_version in -lidn""... $ac_c" 1>&6
5930 echo "configure:5931: checking for stringprep_check_version in -lidn" >&5
5931 ac_lib_var=`echo idn'_'stringprep_check_version | sed 'y%./+-%__p_%'`
5932 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5933 echo $ac_n "(cached) $ac_c" 1>&6
5935 ac_save_LIBS="$LIBS"
5937 cat > conftest.$ac_ext <<EOF
5938 #line 5939 "configure"
5939 #include "confdefs.h"
5940 /* Override any gcc2 internal prototype to avoid an error. */
5941 /* We use char because int might match the return type of a gcc2
5942 builtin and then its argument prototype would still apply. */
5943 char stringprep_check_version();
5946 stringprep_check_version()
5949 if { (eval echo configure:5950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5951 eval "ac_cv_lib_$ac_lib_var=yes"
5953 echo "configure: failed program was:" >&5
5954 cat conftest.$ac_ext >&5
5956 eval "ac_cv_lib_$ac_lib_var=no"
5959 LIBS="$ac_save_LIBS"
5962 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5963 echo "$ac_t""yes" 1>&6
5964 ac_tr_lib=HAVE_LIB`echo idn | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5965 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5966 cat >> confdefs.h <<EOF
5967 #define $ac_tr_lib 1
5973 echo "$ac_t""no" 1>&6
5976 for ac_func in idna_to_unicode_utf8_from_utf8 idna_to_unicode_8z8z
5978 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5979 echo "configure:5980: checking for $ac_func" >&5
5980 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5981 echo $ac_n "(cached) $ac_c" 1>&6
5983 cat > conftest.$ac_ext <<EOF
5984 #line 5985 "configure"
5985 #include "confdefs.h"
5986 /* System header to define __stub macros and hopefully few prototypes,
5987 which can conflict with char $ac_func(); below. */
5989 /* Override any gcc2 internal prototype to avoid an error. */
5990 /* We use char because int might match the return type of a gcc2
5991 builtin and then its argument prototype would still apply. */
5996 /* The GNU C library defines this for functions which it implements
5997 to always fail with ENOSYS. Some functions are actually named
5998 something starting with __ and the normal name is an alias. */
5999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6007 if { (eval echo configure:6008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6009 eval "ac_cv_func_$ac_func=yes"
6011 echo "configure: failed program was:" >&5
6012 cat conftest.$ac_ext >&5
6014 eval "ac_cv_func_$ac_func=no"
6019 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6020 echo "$ac_t""yes" 1>&6
6021 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6022 cat >> confdefs.h <<EOF
6023 #define $ac_tr_func 1
6027 echo "$ac_t""no" 1>&6
6031 for ac_func in idna_to_ascii_from_utf8 idna_to_ascii_8z
6033 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6034 echo "configure:6035: checking for $ac_func" >&5
6035 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6036 echo $ac_n "(cached) $ac_c" 1>&6
6038 cat > conftest.$ac_ext <<EOF
6039 #line 6040 "configure"
6040 #include "confdefs.h"
6041 /* System header to define __stub macros and hopefully few prototypes,
6042 which can conflict with char $ac_func(); below. */
6044 /* Override any gcc2 internal prototype to avoid an error. */
6045 /* We use char because int might match the return type of a gcc2
6046 builtin and then its argument prototype would still apply. */
6051 /* The GNU C library defines this for functions which it implements
6052 to always fail with ENOSYS. Some functions are actually named
6053 something starting with __ and the normal name is an alias. */
6054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6062 if { (eval echo configure:6063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6064 eval "ac_cv_func_$ac_func=yes"
6066 echo "configure: failed program was:" >&5
6067 cat conftest.$ac_ext >&5
6069 eval "ac_cv_func_$ac_func=no"
6074 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6075 echo "$ac_t""yes" 1>&6
6076 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6077 cat >> confdefs.h <<EOF
6078 #define $ac_tr_func 1
6082 echo "$ac_t""no" 1>&6
6086 for ac_func in idna_to_ascii_lz idna_to_ascii_from_locale
6088 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6089 echo "configure:6090: checking for $ac_func" >&5
6090 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6091 echo $ac_n "(cached) $ac_c" 1>&6
6093 cat > conftest.$ac_ext <<EOF
6094 #line 6095 "configure"
6095 #include "confdefs.h"
6096 /* System header to define __stub macros and hopefully few prototypes,
6097 which can conflict with char $ac_func(); below. */
6099 /* Override any gcc2 internal prototype to avoid an error. */
6100 /* We use char because int might match the return type of a gcc2
6101 builtin and then its argument prototype would still apply. */
6106 /* The GNU C library defines this for functions which it implements
6107 to always fail with ENOSYS. Some functions are actually named
6108 something starting with __ and the normal name is an alias. */
6109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6117 if { (eval echo configure:6118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6119 eval "ac_cv_func_$ac_func=yes"
6121 echo "configure: failed program was:" >&5
6122 cat conftest.$ac_ext >&5
6124 eval "ac_cv_func_$ac_func=no"
6129 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6130 echo "$ac_t""yes" 1>&6
6131 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6132 cat >> confdefs.h <<EOF
6133 #define $ac_tr_func 1
6137 echo "$ac_t""no" 1>&6
6144 # Check whether --enable-debug or --disable-debug was given.
6145 if test "${enable_debug+set}" = set; then
6146 enableval="$enable_debug"
6147 if test x$enableval = xyes ; then
6148 cat >> confdefs.h <<\EOF
6157 # Check whether --enable-flock or --disable-flock was given.
6158 if test "${enable_flock+set}" = set; then
6159 enableval="$enable_flock"
6160 if test $enableval = yes; then
6161 cat >> confdefs.h <<\EOF
6170 # Check whether --enable-fcntl or --disable-fcntl was given.
6171 if test "${enable_fcntl+set}" = set; then
6172 enableval="$enable_fcntl"
6173 if test $enableval = no; then mutt_cv_fcntl=no; fi
6177 if test $mutt_cv_fcntl = yes; then
6178 cat >> confdefs.h <<\EOF
6184 mutt_cv_warnings=yes
6185 # Check whether --enable-warnings or --disable-warnings was given.
6186 if test "${enable_warnings+set}" = set; then
6187 enableval="$enable_warnings"
6188 if test $enableval = no; then
6194 if test x$GCC = xyes -a $mutt_cv_warnings = yes; then
6195 CFLAGS="-Wall -pedantic $CFLAGS"
6198 # Check whether --enable-nfs-fix or --disable-nfs-fix was given.
6199 if test "${enable_nfs_fix+set}" = set; then
6200 enableval="$enable_nfs_fix"
6201 if test x$enableval = xyes; then
6202 cat >> confdefs.h <<\EOF
6203 #define NFS_ATTRIBUTE_HACK 1
6210 # Check whether --enable-buffy-size or --disable-buffy-size was given.
6211 if test "${enable_buffy_size+set}" = set; then
6212 enableval="$enable_buffy_size"
6213 if test x$enableval = xyes; then
6214 cat >> confdefs.h <<\EOF
6215 #define BUFFY_SIZE 1
6222 # Check whether --enable-mailtool or --disable-mailtool was given.
6223 if test "${enable_mailtool+set}" = set; then
6224 enableval="$enable_mailtool"
6225 if test x$enableval = xyes; then
6226 cat >> confdefs.h <<\EOF
6227 #define SUN_ATTACHMENT 1
6234 # Check whether --enable-compressed or --disable-compressed was given.
6235 if test "${enable_compressed+set}" = set; then
6236 enableval="$enable_compressed"
6237 if test x$enableval = xyes; then
6238 cat >> confdefs.h <<\EOF
6239 #define USE_COMPRESSED 1
6246 # Check whether --enable-locales-fix or --disable-locales-fix was given.
6247 if test "${enable_locales_fix+set}" = set; then
6248 enableval="$enable_locales_fix"
6249 if test x$enableval = xyes; then
6250 cat >> confdefs.h <<\EOF
6251 #define LOCALES_HACK 1
6258 # Check whether --with-exec-shell or --without-exec-shell was given.
6259 if test "${with_exec_shell+set}" = set; then
6260 withval="$with_exec_shell"
6261 if test $withval != yes; then
6262 cat >> confdefs.h <<EOF
6263 #define EXECSHELL "$withval"
6267 cat >> confdefs.h <<EOF
6268 #define EXECSHELL "/bin/sh"
6273 cat >> confdefs.h <<EOF
6274 #define EXECSHELL "/bin/sh"
6280 # Check whether --enable-exact-address or --disable-exact-address was given.
6281 if test "${enable_exact_address+set}" = set; then
6282 enableval="$enable_exact_address"
6283 if test $enableval = yes; then
6284 cat >> confdefs.h <<\EOF
6285 #define EXACT_ADDRESS 1
6293 # Check whether --enable-hcache or --disable-hcache was given.
6294 if test "${enable_hcache+set}" = set; then
6295 enableval="$enable_hcache"
6296 if test x$enableval = xyes; then
6297 cat >> confdefs.h <<\EOF
6298 #define USE_HCACHE 1
6302 OLDCPPFLAGS="$CPPFLAGS"
6307 # Check whether --with-gdbm or --without-gdbm was given.
6308 if test "${with_gdbm+set}" = set; then
6309 withval="$with_gdbm"
6310 ac_prefer_gdbm=$withval
6313 if test x$ac_prefer_gdbm != xno; then
6314 CPPFLAGS="$OLDCPPFLAGS"
6315 LIBS="$OLDLIBS -lgdbm";
6316 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
6317 echo "configure:6318: checking for gdbm_open" >&5
6318 if eval "test \"`echo '$''{'ac_cv_gdbmopen'+set}'`\" = set"; then
6319 echo $ac_n "(cached) $ac_c" 1>&6
6323 cat > conftest.$ac_ext <<EOF
6324 #line 6325 "configure"
6325 #include "confdefs.h"
6328 gdbm_open(0,0,0,0,0);
6331 if { (eval echo configure:6332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6335 echo "configure: failed program was:" >&5
6336 cat conftest.$ac_ext >&5
6342 echo "$ac_t""$ac_cv_gdbmopen" 1>&6
6346 # Check whether --with-bdb or --without-bdb was given.
6347 if test "${with_bdb+set}" = set; then
6349 ac_bdb_prefix=$withval
6352 if test x$ac_bdb_prefix != xno -a x$ac_cv_gdbmopen != xyes; then
6353 test x$ac_bdb_prefix = xyes && ac_bdb_prefix="$mutt_cv_prefix /opt/csw/bdb4 /opt /usr/local /usr"
6354 for d in $ac_bdb_prefix; do
6356 for v in BerkeleyDB.4.3 BerkeleyDB.4.2 BerkeleyDB.4.1; do
6357 bdbpfx="$bdbpfx $d/$v"
6360 BDB_VERSIONS="db-4 db4 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db ''"
6361 echo $ac_n "checking for BerkeleyDB > 4.0""... $ac_c" 1>&6
6362 echo "configure:6363: checking for BerkeleyDB > 4.0" >&5
6363 for d in $bdbpfx; do
6366 for v in / $BDB_VERSIONS; do
6367 if test -r "$d/include/$v/db.h"; then
6368 BDB_INCLUDE_DIR="$d/include/$v"
6369 if test -d "$d/lib/$v"; then
6370 BDB_LIB_DIR="$d/lib/$v"
6371 for l in `echo $BDB_VERSIONS`; do
6372 CPPFLAGS="-I$BDB_INCLUDE_DIR $OLDCPPFLAGS"
6373 LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$l"
6374 cat > conftest.$ac_ext <<EOF
6375 #line 6376 "configure"
6376 #include "confdefs.h"
6384 db->open(db,NULL,NULL,NULL,0,0,0);
6388 if { (eval echo configure:6389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6396 echo "configure: failed program was:" >&5
6397 cat conftest.$ac_ext >&5
6401 test x$ac_dbcreate = xyes && break
6405 test x$BDB_LIB != x && break
6407 if test x$ac_cv_dbcreate = xyes; then
6408 echo "$ac_t""yes" 1>&6
6410 echo "$ac_t""no" 1>&6
6414 if test x$ac_cv_gdbmopen = xyes; then
6415 CPPFLAGS="$OLDCPPFLAGS"
6416 LIBS="$OLDLIBS -lgdbm";
6417 cat >> confdefs.h <<\EOF
6421 elif test x$ac_cv_dbcreate = xyes; then
6422 CPPFLAGS="-I$BDB_INCLUDE_DIR $OLDCPPFLAGS"
6423 LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$BDB_LIB"
6424 cat >> confdefs.h <<\EOF
6429 { echo "configure: error: You need Sleepycat DB4 or GDBM for --enable-hcache" 1>&2; exit 1; }
6435 if test "$need_md5" = "yes"
6437 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS md5c.o"
6446 # Check whether --enable-iconv or --disable-iconv was given.
6447 if test "${enable_iconv+set}" = set; then
6448 enableval="$enable_iconv"
6449 if test x$enableval = xno ; then
6456 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6457 echo "configure:6458: checking for off_t" >&5
6458 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6459 echo $ac_n "(cached) $ac_c" 1>&6
6461 cat > conftest.$ac_ext <<EOF
6462 #line 6463 "configure"
6463 #include "confdefs.h"
6464 #include <sys/types.h>
6470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6471 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6473 ac_cv_type_off_t=yes
6481 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6482 if test $ac_cv_type_off_t = no; then
6483 cat >> confdefs.h <<\EOF
6489 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6490 echo "configure:6491: checking for size_t" >&5
6491 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6492 echo $ac_n "(cached) $ac_c" 1>&6
6494 cat > conftest.$ac_ext <<EOF
6495 #line 6496 "configure"
6496 #include "confdefs.h"
6497 #include <sys/types.h>
6503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6504 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6506 ac_cv_type_size_t=yes
6509 ac_cv_type_size_t=no
6514 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6515 if test $ac_cv_type_size_t = no; then
6516 cat >> confdefs.h <<\EOF
6517 #define size_t unsigned
6522 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6523 # for constant arguments. Useless!
6524 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6525 echo "configure:6526: checking for working alloca.h" >&5
6526 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6527 echo $ac_n "(cached) $ac_c" 1>&6
6529 cat > conftest.$ac_ext <<EOF
6530 #line 6531 "configure"
6531 #include "confdefs.h"
6534 char *p = alloca(2 * sizeof(int));
6537 if { (eval echo configure:6538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6539 ac_cv_header_alloca_h=yes
6541 echo "configure: failed program was:" >&5
6542 cat conftest.$ac_ext >&5
6544 ac_cv_header_alloca_h=no
6549 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6550 if test $ac_cv_header_alloca_h = yes; then
6551 cat >> confdefs.h <<\EOF
6552 #define HAVE_ALLOCA_H 1
6557 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6558 echo "configure:6559: checking for alloca" >&5
6559 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6560 echo $ac_n "(cached) $ac_c" 1>&6
6562 cat > conftest.$ac_ext <<EOF
6563 #line 6564 "configure"
6564 #include "confdefs.h"
6567 # define alloca __builtin_alloca
6570 # include <malloc.h>
6571 # define alloca _alloca
6574 # include <alloca.h>
6579 # ifndef alloca /* predefined by HP cc +Olibcalls */
6588 char *p = (char *) alloca(1);
6591 if { (eval echo configure:6592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6593 ac_cv_func_alloca_works=yes
6595 echo "configure: failed program was:" >&5
6596 cat conftest.$ac_ext >&5
6598 ac_cv_func_alloca_works=no
6603 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6604 if test $ac_cv_func_alloca_works = yes; then
6605 cat >> confdefs.h <<\EOF
6606 #define HAVE_ALLOCA 1
6611 if test $ac_cv_func_alloca_works = no; then
6612 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6613 # that cause trouble. Some versions do not even contain alloca or
6614 # contain a buggy version. If you still want to use their alloca,
6615 # use ar to extract alloca.o from them instead of compiling alloca.c.
6616 ALLOCA=alloca.${ac_objext}
6617 cat >> confdefs.h <<\EOF
6622 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6623 echo "configure:6624: checking whether alloca needs Cray hooks" >&5
6624 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6625 echo $ac_n "(cached) $ac_c" 1>&6
6627 cat > conftest.$ac_ext <<EOF
6628 #line 6629 "configure"
6629 #include "confdefs.h"
6630 #if defined(CRAY) && ! defined(CRAY2)
6637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6638 egrep "webecray" >/dev/null 2>&1; then
6649 echo "$ac_t""$ac_cv_os_cray" 1>&6
6650 if test $ac_cv_os_cray = yes; then
6651 for ac_func in _getb67 GETB67 getb67; do
6652 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6653 echo "configure:6654: checking for $ac_func" >&5
6654 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6655 echo $ac_n "(cached) $ac_c" 1>&6
6657 cat > conftest.$ac_ext <<EOF
6658 #line 6659 "configure"
6659 #include "confdefs.h"
6660 /* System header to define __stub macros and hopefully few prototypes,
6661 which can conflict with char $ac_func(); below. */
6663 /* Override any gcc2 internal prototype to avoid an error. */
6664 /* We use char because int might match the return type of a gcc2
6665 builtin and then its argument prototype would still apply. */
6670 /* The GNU C library defines this for functions which it implements
6671 to always fail with ENOSYS. Some functions are actually named
6672 something starting with __ and the normal name is an alias. */
6673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6681 if { (eval echo configure:6682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6683 eval "ac_cv_func_$ac_func=yes"
6685 echo "configure: failed program was:" >&5
6686 cat conftest.$ac_ext >&5
6688 eval "ac_cv_func_$ac_func=no"
6693 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6694 echo "$ac_t""yes" 1>&6
6695 cat >> confdefs.h <<EOF
6696 #define CRAY_STACKSEG_END $ac_func
6701 echo "$ac_t""no" 1>&6
6707 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
6708 echo "configure:6709: checking stack direction for C alloca" >&5
6709 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6710 echo $ac_n "(cached) $ac_c" 1>&6
6712 if test "$cross_compiling" = yes; then
6713 ac_cv_c_stack_direction=0
6715 cat > conftest.$ac_ext <<EOF
6716 #line 6717 "configure"
6717 #include "confdefs.h"
6718 find_stack_direction ()
6720 static char *addr = 0;
6725 return find_stack_direction ();
6728 return (&dummy > addr) ? 1 : -1;
6732 exit (find_stack_direction() < 0);
6735 if { (eval echo configure:6736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6737 ac_cv_c_stack_direction=1
6739 echo "configure: failed program was:" >&5
6740 cat conftest.$ac_ext >&5
6742 ac_cv_c_stack_direction=-1
6749 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6750 cat >> confdefs.h <<EOF
6751 #define STACK_DIRECTION $ac_cv_c_stack_direction
6756 for ac_hdr in unistd.h
6758 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6759 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6760 echo "configure:6761: checking for $ac_hdr" >&5
6761 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6762 echo $ac_n "(cached) $ac_c" 1>&6
6764 cat > conftest.$ac_ext <<EOF
6765 #line 6766 "configure"
6766 #include "confdefs.h"
6769 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6770 { (eval echo configure:6771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6771 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6772 if test -z "$ac_err"; then
6774 eval "ac_cv_header_$ac_safe=yes"
6777 echo "configure: failed program was:" >&5
6778 cat conftest.$ac_ext >&5
6780 eval "ac_cv_header_$ac_safe=no"
6784 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6785 echo "$ac_t""yes" 1>&6
6786 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6787 cat >> confdefs.h <<EOF
6788 #define $ac_tr_hdr 1
6792 echo "$ac_t""no" 1>&6
6796 for ac_func in getpagesize
6798 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6799 echo "configure:6800: checking for $ac_func" >&5
6800 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6801 echo $ac_n "(cached) $ac_c" 1>&6
6803 cat > conftest.$ac_ext <<EOF
6804 #line 6805 "configure"
6805 #include "confdefs.h"
6806 /* System header to define __stub macros and hopefully few prototypes,
6807 which can conflict with char $ac_func(); below. */
6809 /* Override any gcc2 internal prototype to avoid an error. */
6810 /* We use char because int might match the return type of a gcc2
6811 builtin and then its argument prototype would still apply. */
6816 /* The GNU C library defines this for functions which it implements
6817 to always fail with ENOSYS. Some functions are actually named
6818 something starting with __ and the normal name is an alias. */
6819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6827 if { (eval echo configure:6828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6829 eval "ac_cv_func_$ac_func=yes"
6831 echo "configure: failed program was:" >&5
6832 cat conftest.$ac_ext >&5
6834 eval "ac_cv_func_$ac_func=no"
6839 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6840 echo "$ac_t""yes" 1>&6
6841 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6842 cat >> confdefs.h <<EOF
6843 #define $ac_tr_func 1
6847 echo "$ac_t""no" 1>&6
6851 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6852 echo "configure:6853: checking for working mmap" >&5
6853 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6854 echo $ac_n "(cached) $ac_c" 1>&6
6856 if test "$cross_compiling" = yes; then
6857 ac_cv_func_mmap_fixed_mapped=no
6859 cat > conftest.$ac_ext <<EOF
6860 #line 6861 "configure"
6861 #include "confdefs.h"
6863 /* Thanks to Mike Haertel and Jim Avera for this test.
6864 Here is a matrix of mmap possibilities:
6865 mmap private not fixed
6866 mmap private fixed at somewhere currently unmapped
6867 mmap private fixed at somewhere already mapped
6868 mmap shared not fixed
6869 mmap shared fixed at somewhere currently unmapped
6870 mmap shared fixed at somewhere already mapped
6871 For private mappings, we should verify that changes cannot be read()
6872 back from the file, nor mmap's back from the file at a different
6873 address. (There have been systems where private was not correctly
6874 implemented like the infamous i386 svr4.0, and systems where the
6875 VM page cache was not coherent with the filesystem buffer cache
6876 like early versions of FreeBSD and possibly contemporary NetBSD.)
6877 For shared mappings, we should conversely verify that changes get
6878 propogated back to all the places they're supposed to be.
6880 Grep wants private fixed already mapped.
6881 The main things grep needs to know about mmap are:
6882 * does it exist and is it safe to write into the mmap'd area
6883 * how to use it (BSD variants) */
6884 #include <sys/types.h>
6886 #include <sys/mman.h>
6888 /* This mess was copied from the GNU getpagesize.h. */
6889 #ifndef HAVE_GETPAGESIZE
6890 # ifdef HAVE_UNISTD_H
6891 # include <unistd.h>
6894 /* Assume that all systems that can run configure have sys/param.h. */
6895 # ifndef HAVE_SYS_PARAM_H
6896 # define HAVE_SYS_PARAM_H 1
6899 # ifdef _SC_PAGESIZE
6900 # define getpagesize() sysconf(_SC_PAGESIZE)
6901 # else /* no _SC_PAGESIZE */
6902 # ifdef HAVE_SYS_PARAM_H
6903 # include <sys/param.h>
6904 # ifdef EXEC_PAGESIZE
6905 # define getpagesize() EXEC_PAGESIZE
6906 # else /* no EXEC_PAGESIZE */
6908 # define getpagesize() NBPG * CLSIZE
6911 # endif /* no CLSIZE */
6912 # else /* no NBPG */
6914 # define getpagesize() NBPC
6915 # else /* no NBPC */
6917 # define getpagesize() PAGESIZE
6918 # endif /* PAGESIZE */
6919 # endif /* no NBPC */
6920 # endif /* no NBPG */
6921 # endif /* no EXEC_PAGESIZE */
6922 # else /* no HAVE_SYS_PARAM_H */
6923 # define getpagesize() 8192 /* punt totally */
6924 # endif /* no HAVE_SYS_PARAM_H */
6925 # endif /* no _SC_PAGESIZE */
6927 #endif /* no HAVE_GETPAGESIZE */
6930 extern "C" { void *malloc(unsigned); }
6938 char *data, *data2, *data3;
6942 pagesize = getpagesize();
6945 * First, make a file with some known garbage in it.
6947 data = malloc(pagesize);
6950 for (i = 0; i < pagesize; ++i)
6951 *(data + i) = rand();
6953 fd = creat("conftestmmap", 0600);
6956 if (write(fd, data, pagesize) != pagesize)
6961 * Next, try to mmap the file at a fixed address which
6962 * already has something else allocated at it. If we can,
6963 * also make sure that we see the same garbage.
6965 fd = open("conftestmmap", O_RDWR);
6968 data2 = malloc(2 * pagesize);
6971 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6972 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6973 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6975 for (i = 0; i < pagesize; ++i)
6976 if (*(data + i) != *(data2 + i))
6980 * Finally, make sure that changes to the mapped area
6981 * do not percolate back to the file as seen by read().
6982 * (This is a bug on some variants of i386 svr4.0.)
6984 for (i = 0; i < pagesize; ++i)
6985 *(data2 + i) = *(data2 + i) + 1;
6986 data3 = malloc(pagesize);
6989 if (read(fd, data3, pagesize) != pagesize)
6991 for (i = 0; i < pagesize; ++i)
6992 if (*(data + i) != *(data3 + i))
6995 unlink("conftestmmap");
7000 if { (eval echo configure:7001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7002 ac_cv_func_mmap_fixed_mapped=yes
7004 echo "configure: failed program was:" >&5
7005 cat conftest.$ac_ext >&5
7007 ac_cv_func_mmap_fixed_mapped=no
7014 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
7015 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7016 cat >> confdefs.h <<\EOF
7023 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
7024 echo "configure:7025: checking whether we are using the GNU C Library 2.1 or newer" >&5
7025 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
7026 echo $ac_n "(cached) $ac_c" 1>&6
7028 cat > conftest.$ac_ext <<EOF
7029 #line 7030 "configure"
7030 #include "confdefs.h"
7032 #include <features.h>
7033 #ifdef __GNU_LIBRARY__
7034 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7041 egrep "Lucky GNU user" >/dev/null 2>&1; then
7043 ac_cv_gnu_library_2_1=yes
7046 ac_cv_gnu_library_2_1=no
7054 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
7056 GLIBC21="$ac_cv_gnu_library_2_1"
7060 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7061 stdlib.h string.h unistd.h sys/param.h
7063 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7064 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7065 echo "configure:7066: checking for $ac_hdr" >&5
7066 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7067 echo $ac_n "(cached) $ac_c" 1>&6
7069 cat > conftest.$ac_ext <<EOF
7070 #line 7071 "configure"
7071 #include "confdefs.h"
7074 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7075 { (eval echo configure:7076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7076 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7077 if test -z "$ac_err"; then
7079 eval "ac_cv_header_$ac_safe=yes"
7082 echo "configure: failed program was:" >&5
7083 cat conftest.$ac_ext >&5
7085 eval "ac_cv_header_$ac_safe=no"
7089 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7090 echo "$ac_t""yes" 1>&6
7091 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7092 cat >> confdefs.h <<EOF
7093 #define $ac_tr_hdr 1
7097 echo "$ac_t""no" 1>&6
7101 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
7102 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
7103 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
7105 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7106 echo "configure:7107: checking for $ac_func" >&5
7107 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7108 echo $ac_n "(cached) $ac_c" 1>&6
7110 cat > conftest.$ac_ext <<EOF
7111 #line 7112 "configure"
7112 #include "confdefs.h"
7113 /* System header to define __stub macros and hopefully few prototypes,
7114 which can conflict with char $ac_func(); below. */
7116 /* Override any gcc2 internal prototype to avoid an error. */
7117 /* We use char because int might match the return type of a gcc2
7118 builtin and then its argument prototype would still apply. */
7123 /* The GNU C library defines this for functions which it implements
7124 to always fail with ENOSYS. Some functions are actually named
7125 something starting with __ and the normal name is an alias. */
7126 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7134 if { (eval echo configure:7135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7136 eval "ac_cv_func_$ac_func=yes"
7138 echo "configure: failed program was:" >&5
7139 cat conftest.$ac_ext >&5
7141 eval "ac_cv_func_$ac_func=no"
7146 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7147 echo "$ac_t""yes" 1>&6
7148 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7149 cat >> confdefs.h <<EOF
7150 #define $ac_tr_func 1
7154 echo "$ac_t""no" 1>&6
7161 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7162 if test "${with_libiconv_prefix+set}" = set; then
7163 withval="$with_libiconv_prefix"
7165 for dir in `echo "$withval" | tr : ' '`; do
7166 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
7167 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
7173 echo $ac_n "checking for iconv""... $ac_c" 1>&6
7174 echo "configure:7175: checking for iconv" >&5
7175 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
7176 echo $ac_n "(cached) $ac_c" 1>&6
7179 am_cv_func_iconv="no, consider installing GNU libiconv"
7181 cat > conftest.$ac_ext <<EOF
7182 #line 7183 "configure"
7183 #include "confdefs.h"
7187 iconv_t cd = iconv_open("","");
7188 iconv(cd,NULL,NULL,NULL,NULL);
7192 if { (eval echo configure:7193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7194 am_cv_func_iconv=yes
7196 echo "configure: failed program was:" >&5
7197 cat conftest.$ac_ext >&5
7200 if test "$am_cv_func_iconv" != yes; then
7201 am_save_LIBS="$LIBS"
7202 LIBS="$LIBS -liconv"
7203 cat > conftest.$ac_ext <<EOF
7204 #line 7205 "configure"
7205 #include "confdefs.h"
7209 iconv_t cd = iconv_open("","");
7210 iconv(cd,NULL,NULL,NULL,NULL);
7214 if { (eval echo configure:7215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7217 am_cv_func_iconv=yes
7219 echo "configure: failed program was:" >&5
7220 cat conftest.$ac_ext >&5
7223 LIBS="$am_save_LIBS"
7228 echo "$ac_t""$am_cv_func_iconv" 1>&6
7229 if test "$am_cv_func_iconv" = yes; then
7230 cat >> confdefs.h <<\EOF
7231 #define HAVE_ICONV 1
7234 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
7235 echo "configure:7236: checking for iconv declaration" >&5
7236 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
7237 echo $ac_n "(cached) $ac_c" 1>&6
7240 cat > conftest.$ac_ext <<EOF
7241 #line 7242 "configure"
7242 #include "confdefs.h"
7250 #if defined(__STDC__) || defined(__cplusplus)
7251 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7260 if { (eval echo configure:7261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7262 am_cv_proto_iconv_arg1=""
7264 echo "configure: failed program was:" >&5
7265 cat conftest.$ac_ext >&5
7267 am_cv_proto_iconv_arg1="const"
7270 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
7273 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7274 echo "$ac_t""${ac_t:-
7275 }$am_cv_proto_iconv" 1>&6
7276 cat >> confdefs.h <<EOF
7277 #define ICONV_CONST $am_cv_proto_iconv_arg1
7282 if test "$am_cv_lib_iconv" = yes; then
7288 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
7289 echo "configure:7290: checking for nl_langinfo and CODESET" >&5
7290 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
7291 echo $ac_n "(cached) $ac_c" 1>&6
7293 cat > conftest.$ac_ext <<EOF
7294 #line 7295 "configure"
7295 #include "confdefs.h"
7296 #include <langinfo.h>
7298 char* cs = nl_langinfo(CODESET);
7301 if { (eval echo configure:7302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7303 am_cv_langinfo_codeset=yes
7305 echo "configure: failed program was:" >&5
7306 cat conftest.$ac_ext >&5
7308 am_cv_langinfo_codeset=no
7314 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
7315 if test $am_cv_langinfo_codeset = yes; then
7316 cat >> confdefs.h <<\EOF
7317 #define HAVE_LANGINFO_CODESET 1
7322 if test $ac_cv_header_locale_h = yes; then
7323 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7324 echo "configure:7325: checking for LC_MESSAGES" >&5
7325 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7326 echo $ac_n "(cached) $ac_c" 1>&6
7328 cat > conftest.$ac_ext <<EOF
7329 #line 7330 "configure"
7330 #include "confdefs.h"
7336 if { (eval echo configure:7337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7338 am_cv_val_LC_MESSAGES=yes
7340 echo "configure: failed program was:" >&5
7341 cat conftest.$ac_ext >&5
7343 am_cv_val_LC_MESSAGES=no
7348 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7349 if test $am_cv_val_LC_MESSAGES = yes; then
7350 cat >> confdefs.h <<\EOF
7351 #define HAVE_LC_MESSAGES 1
7356 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7357 echo "configure:7358: checking whether NLS is requested" >&5
7358 # Check whether --enable-nls or --disable-nls was given.
7359 if test "${enable_nls+set}" = set; then
7360 enableval="$enable_nls"
7366 echo "$ac_t""$USE_NLS" 1>&6
7369 BUILD_INCLUDED_LIBINTL=no
7370 USE_INCLUDED_LIBINTL=no
7373 if test "$USE_NLS" = "yes"; then
7374 cat >> confdefs.h <<\EOF
7375 #define ENABLE_NLS 1
7378 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7379 echo "configure:7380: checking whether included gettext is requested" >&5
7380 # Check whether --with-included-gettext or --without-included-gettext was given.
7381 if test "${with_included_gettext+set}" = set; then
7382 withval="$with_included_gettext"
7383 nls_cv_force_use_gnu_gettext=$withval
7385 nls_cv_force_use_gnu_gettext=no
7388 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7390 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7391 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7397 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7398 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7399 echo "configure:7400: checking for libintl.h" >&5
7400 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7401 echo $ac_n "(cached) $ac_c" 1>&6
7403 cat > conftest.$ac_ext <<EOF
7404 #line 7405 "configure"
7405 #include "confdefs.h"
7406 #include <libintl.h>
7408 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7409 { (eval echo configure:7410: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7410 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7411 if test -z "$ac_err"; then
7413 eval "ac_cv_header_$ac_safe=yes"
7416 echo "configure: failed program was:" >&5
7417 cat conftest.$ac_ext >&5
7419 eval "ac_cv_header_$ac_safe=no"
7423 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7424 echo "$ac_t""yes" 1>&6
7425 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
7426 echo "configure:7427: checking for GNU gettext in libc" >&5
7427 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
7428 echo $ac_n "(cached) $ac_c" 1>&6
7430 cat > conftest.$ac_ext <<EOF
7431 #line 7432 "configure"
7432 #include "confdefs.h"
7433 #include <libintl.h>
7434 extern int _nl_msg_cat_cntr;
7436 bindtextdomain ("", "");
7437 return (int) gettext ("") + _nl_msg_cat_cntr
7440 if { (eval echo configure:7441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7442 gt_cv_func_gnugettext1_libc=yes
7444 echo "configure: failed program was:" >&5
7445 cat conftest.$ac_ext >&5
7447 gt_cv_func_gnugettext1_libc=no
7452 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
7454 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
7455 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
7456 echo "configure:7457: checking for GNU gettext in libintl" >&5
7457 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
7458 echo $ac_n "(cached) $ac_c" 1>&6
7460 gt_save_LIBS="$LIBS"
7461 LIBS="$LIBS -lintl $LIBICONV"
7462 cat > conftest.$ac_ext <<EOF
7463 #line 7464 "configure"
7464 #include "confdefs.h"
7465 #include <libintl.h>
7466 extern int _nl_msg_cat_cntr;
7468 bindtextdomain ("", "");
7469 return (int) gettext ("") + _nl_msg_cat_cntr
7472 if { (eval echo configure:7473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7474 gt_cv_func_gnugettext1_libintl=yes
7476 echo "configure: failed program was:" >&5
7477 cat conftest.$ac_ext >&5
7479 gt_cv_func_gnugettext1_libintl=no
7482 LIBS="$gt_save_LIBS"
7485 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
7488 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7489 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7490 && test "$PACKAGE" != gettext; }; then
7491 cat >> confdefs.h <<\EOF
7492 #define HAVE_GETTEXT 1
7496 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7497 INTLLIBS="-lintl $LIBICONV"
7500 gt_save_LIBS="$LIBS"
7501 LIBS="$LIBS $INTLLIBS"
7502 for ac_func in dcgettext
7504 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7505 echo "configure:7506: checking for $ac_func" >&5
7506 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7507 echo $ac_n "(cached) $ac_c" 1>&6
7509 cat > conftest.$ac_ext <<EOF
7510 #line 7511 "configure"
7511 #include "confdefs.h"
7512 /* System header to define __stub macros and hopefully few prototypes,
7513 which can conflict with char $ac_func(); below. */
7515 /* Override any gcc2 internal prototype to avoid an error. */
7516 /* We use char because int might match the return type of a gcc2
7517 builtin and then its argument prototype would still apply. */
7522 /* The GNU C library defines this for functions which it implements
7523 to always fail with ENOSYS. Some functions are actually named
7524 something starting with __ and the normal name is an alias. */
7525 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7533 if { (eval echo configure:7534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7535 eval "ac_cv_func_$ac_func=yes"
7537 echo "configure: failed program was:" >&5
7538 cat conftest.$ac_ext >&5
7540 eval "ac_cv_func_$ac_func=no"
7545 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7546 echo "$ac_t""yes" 1>&6
7547 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7548 cat >> confdefs.h <<EOF
7549 #define $ac_tr_func 1
7553 echo "$ac_t""no" 1>&6
7557 LIBS="$gt_save_LIBS"
7559 # Extract the first word of "msgfmt", so it can be a program name with args.
7560 set dummy msgfmt; ac_word=$2
7561 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7562 echo "configure:7563: checking for $ac_word" >&5
7563 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7564 echo $ac_n "(cached) $ac_c" 1>&6
7568 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7571 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7572 for ac_dir in $PATH; do
7573 test -z "$ac_dir" && ac_dir=.
7574 if test -f $ac_dir/$ac_word; then
7575 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
7576 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7582 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7586 MSGFMT="$ac_cv_path_MSGFMT"
7587 if test "$MSGFMT" != ":"; then
7588 echo "$ac_t""$MSGFMT" 1>&6
7590 echo "$ac_t""no" 1>&6
7593 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7594 set dummy gmsgfmt; ac_word=$2
7595 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7596 echo "configure:7597: checking for $ac_word" >&5
7597 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7598 echo $ac_n "(cached) $ac_c" 1>&6
7602 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7605 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7608 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7610 for ac_dir in $ac_dummy; do
7611 test -z "$ac_dir" && ac_dir=.
7612 if test -f $ac_dir/$ac_word; then
7613 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7618 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7622 GMSGFMT="$ac_cv_path_GMSGFMT"
7623 if test -n "$GMSGFMT"; then
7624 echo "$ac_t""$GMSGFMT" 1>&6
7626 echo "$ac_t""no" 1>&6
7630 # Extract the first word of "xgettext", so it can be a program name with args.
7631 set dummy xgettext; ac_word=$2
7632 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7633 echo "configure:7634: checking for $ac_word" >&5
7634 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7635 echo $ac_n "(cached) $ac_c" 1>&6
7639 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7642 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7643 for ac_dir in $PATH; do
7644 test -z "$ac_dir" && ac_dir=.
7645 if test -f $ac_dir/$ac_word; then
7646 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
7647 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7653 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7657 XGETTEXT="$ac_cv_path_XGETTEXT"
7658 if test "$XGETTEXT" != ":"; then
7659 echo "$ac_t""$XGETTEXT" 1>&6
7661 echo "$ac_t""no" 1>&6
7669 echo "$ac_t""no" 1>&6
7673 if test "$CATOBJEXT" = "NONE"; then
7674 nls_cv_use_gnu_gettext=yes
7678 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7679 INTLOBJS="\$(GETTOBJS)"
7680 # Extract the first word of "msgfmt", so it can be a program name with args.
7681 set dummy msgfmt; ac_word=$2
7682 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7683 echo "configure:7684: checking for $ac_word" >&5
7684 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7685 echo $ac_n "(cached) $ac_c" 1>&6
7689 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7692 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7693 for ac_dir in $PATH; do
7694 test -z "$ac_dir" && ac_dir=.
7695 if test -f $ac_dir/$ac_word; then
7696 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
7697 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7703 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7707 MSGFMT="$ac_cv_path_MSGFMT"
7708 if test "$MSGFMT" != ":"; then
7709 echo "$ac_t""$MSGFMT" 1>&6
7711 echo "$ac_t""no" 1>&6
7714 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7715 set dummy gmsgfmt; ac_word=$2
7716 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7717 echo "configure:7718: checking for $ac_word" >&5
7718 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7719 echo $ac_n "(cached) $ac_c" 1>&6
7723 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7726 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7729 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7731 for ac_dir in $ac_dummy; do
7732 test -z "$ac_dir" && ac_dir=.
7733 if test -f $ac_dir/$ac_word; then
7734 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7739 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7743 GMSGFMT="$ac_cv_path_GMSGFMT"
7744 if test -n "$GMSGFMT"; then
7745 echo "$ac_t""$GMSGFMT" 1>&6
7747 echo "$ac_t""no" 1>&6
7750 # Extract the first word of "xgettext", so it can be a program name with args.
7751 set dummy xgettext; ac_word=$2
7752 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7753 echo "configure:7754: checking for $ac_word" >&5
7754 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7755 echo $ac_n "(cached) $ac_c" 1>&6
7759 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7762 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7763 for ac_dir in $PATH; do
7764 test -z "$ac_dir" && ac_dir=.
7765 if test -f $ac_dir/$ac_word; then
7766 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
7767 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7773 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7777 XGETTEXT="$ac_cv_path_XGETTEXT"
7778 if test "$XGETTEXT" != ":"; then
7779 echo "$ac_t""$XGETTEXT" 1>&6
7781 echo "$ac_t""no" 1>&6
7785 BUILD_INCLUDED_LIBINTL=yes
7786 USE_INCLUDED_LIBINTL=yes
7788 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
7789 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
7792 if test "$GMSGFMT" != ":"; then
7793 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
7796 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
7801 if test "$XGETTEXT" != ":"; then
7802 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
7805 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
7815 if test "$PACKAGE" = gettext; then
7816 BUILD_INCLUDED_LIBINTL=yes
7819 for ac_prog in bison
7821 # Extract the first word of "$ac_prog", so it can be a program name with args.
7822 set dummy $ac_prog; ac_word=$2
7823 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7824 echo "configure:7825: checking for $ac_word" >&5
7825 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
7826 echo $ac_n "(cached) $ac_c" 1>&6
7828 if test -n "$INTLBISON"; then
7829 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
7831 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7833 for ac_dir in $ac_dummy; do
7834 test -z "$ac_dir" && ac_dir=.
7835 if test -f $ac_dir/$ac_word; then
7836 ac_cv_prog_INTLBISON="$ac_prog"
7843 INTLBISON="$ac_cv_prog_INTLBISON"
7844 if test -n "$INTLBISON"; then
7845 echo "$ac_t""$INTLBISON" 1>&6
7847 echo "$ac_t""no" 1>&6
7850 test -n "$INTLBISON" && break
7853 if test -z "$INTLBISON"; then
7856 echo $ac_n "checking version of bison""... $ac_c" 1>&6
7857 echo "configure:7858: checking version of bison" >&5
7858 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
7859 case $ac_prog_version in
7860 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
7861 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
7862 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
7863 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
7865 echo "$ac_t""$ac_prog_version" 1>&6
7867 if test $ac_verc_fail = yes; then
7871 for lang in $ALL_LINGUAS; do
7872 GMOFILES="$GMOFILES $lang.gmo"
7873 POFILES="$POFILES $lang.po"
7887 nls_cv_header_libgt=
7899 if test "x$CATOBJEXT" != "x"; then
7900 if test "x$ALL_LINGUAS" = "x"; then
7903 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
7904 echo "configure:7905: checking for catalogs to be installed" >&5
7906 for presentlang in $ALL_LINGUAS; do
7908 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
7909 # Use the presentlang catalog if desiredlang is
7910 # a. equal to presentlang, or
7911 # b. a variant of presentlang (because in this case,
7912 # presentlang can be used as a fallback for messages
7913 # which are not translated in the desiredlang catalog).
7914 case "$desiredlang" in
7915 "$presentlang"*) useit=yes;;
7918 if test $useit = yes; then
7919 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
7922 LINGUAS=$NEW_LINGUAS
7923 echo "$ac_t""$LINGUAS" 1>&6
7926 if test -n "$LINGUAS"; then
7927 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7932 if test -n "$ac_aux_dir"; then
7933 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
7935 if test -z "$MKINSTALLDIRS"; then
7936 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7940 INTL_LIBTOOL_SUFFIX_PREFIX=
7944 if test "$am_cv_func_iconv" != "yes"
7946 echo "configure: warning: Configuring without iconv support. See INSTALL for details" 1>&2
7949 for ac_hdr in iconv.h
7951 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7952 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7953 echo "configure:7954: checking for $ac_hdr" >&5
7954 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7955 echo $ac_n "(cached) $ac_c" 1>&6
7957 cat > conftest.$ac_ext <<EOF
7958 #line 7959 "configure"
7959 #include "confdefs.h"
7962 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7963 { (eval echo configure:7964: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7964 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7965 if test -z "$ac_err"; then
7967 eval "ac_cv_header_$ac_safe=yes"
7970 echo "configure: failed program was:" >&5
7971 cat conftest.$ac_ext >&5
7973 eval "ac_cv_header_$ac_safe=no"
7977 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7978 echo "$ac_t""yes" 1>&6
7979 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7980 cat >> confdefs.h <<EOF
7981 #define $ac_tr_hdr 1
7983 echo $ac_n "checking whether iconv.h defines iconv_t""... $ac_c" 1>&6
7984 echo "configure:7985: checking whether iconv.h defines iconv_t" >&5
7985 cat > conftest.$ac_ext <<EOF
7986 #line 7987 "configure"
7987 #include "confdefs.h"
7990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7991 egrep "typedef.*iconv_t" >/dev/null 2>&1; then
7993 echo "$ac_t""yes" 1>&6
7994 cat >> confdefs.h <<\EOF
7995 #define HAVE_ICONV_T_DEF 1
8000 echo "$ac_t""no" 1>&6
8005 echo "$ac_t""no" 1>&6
8010 echo $ac_n "checking whether this iconv is good enough""... $ac_c" 1>&6
8011 echo "configure:8012: checking whether this iconv is good enough" >&5
8012 if eval "test \"`echo '$''{'mutt_cv_iconv_good'+set}'`\" = set"; then
8013 echo $ac_n "(cached) $ac_c" 1>&6
8015 mutt_save_LIBS="$LIBS"
8016 LIBS="$LIBS $LIBICONV"
8017 if test "$cross_compiling" = yes; then
8018 mutt_cv_iconv_good=yes
8020 cat > conftest.$ac_ext <<EOF
8021 #line 8022 "configure"
8022 #include "confdefs.h"
8031 ob = buf, obl = sizeof(buf);
8032 return ((cd = iconv_open("UTF-8", "UTF-8")) != (iconv_t)(-1) &&
8033 (iconv(cd, 0, 0, &ob, &obl) ||
8034 !(ob == buf && obl == sizeof(buf)) ||
8039 if { (eval echo configure:8040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8041 mutt_cv_iconv_good=yes
8043 echo "configure: failed program was:" >&5
8044 cat conftest.$ac_ext >&5
8046 mutt_cv_iconv_good=no
8051 LIBS="$mutt_save_LIBS"
8054 echo "$ac_t""$mutt_cv_iconv_good" 1>&6
8055 if test "$mutt_cv_iconv_good" = no; then
8056 { echo "configure: error: Try using libiconv instead" 1>&2; exit 1; }
8059 echo $ac_n "checking whether iconv is non-transcribing""... $ac_c" 1>&6
8060 echo "configure:8061: checking whether iconv is non-transcribing" >&5
8061 if eval "test \"`echo '$''{'mutt_cv_iconv_nontrans'+set}'`\" = set"; then
8062 echo $ac_n "(cached) $ac_c" 1>&6
8064 mutt_save_LIBS="$LIBS"
8065 LIBS="$LIBS $LIBICONV"
8066 if test "$cross_compiling" = yes; then
8067 mutt_cv_iconv_nontrans=no
8069 cat > conftest.$ac_ext <<EOF
8070 #line 8071 "configure"
8071 #include "confdefs.h"
8081 const char *s = "\304\211";
8083 ib = s, ibl = 2, ob = t, obl = 3;
8084 return ((cd = iconv_open("UTF-8", "UTF-8")) == (iconv_t)(-1) ||
8085 iconv(cd, &ib, &ibl, &ob, &obl));
8089 if { (eval echo configure:8090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8091 mutt_cv_iconv_nontrans=no
8093 echo "configure: failed program was:" >&5
8094 cat conftest.$ac_ext >&5
8096 mutt_cv_iconv_nontrans=yes
8101 LIBS="$mutt_save_LIBS"
8104 echo "$ac_t""$mutt_cv_iconv_nontrans" 1>&6
8105 if test "$mutt_cv_iconv_nontrans" = yes; then
8106 cat >> confdefs.h <<\EOF
8107 #define ICONV_NONTRANS 1
8111 cat >> confdefs.h <<\EOF
8112 #define ICONV_NONTRANS 0
8117 CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/intl"
8119 if test "$BUILD_INCLUDED_LIBINTL" = "yes"; then
8120 cat >> confdefs.h <<\EOF
8121 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
8125 for ac_func in bind_textdomain_codeset
8127 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8128 echo "configure:8129: checking for $ac_func" >&5
8129 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8130 echo $ac_n "(cached) $ac_c" 1>&6
8132 cat > conftest.$ac_ext <<EOF
8133 #line 8134 "configure"
8134 #include "confdefs.h"
8135 /* System header to define __stub macros and hopefully few prototypes,
8136 which can conflict with char $ac_func(); below. */
8138 /* Override any gcc2 internal prototype to avoid an error. */
8139 /* We use char because int might match the return type of a gcc2
8140 builtin and then its argument prototype would still apply. */
8145 /* The GNU C library defines this for functions which it implements
8146 to always fail with ENOSYS. Some functions are actually named
8147 something starting with __ and the normal name is an alias. */
8148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8156 if { (eval echo configure:8157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8158 eval "ac_cv_func_$ac_func=yes"
8160 echo "configure: failed program was:" >&5
8161 cat conftest.$ac_ext >&5
8163 eval "ac_cv_func_$ac_func=no"
8168 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8169 echo "$ac_t""yes" 1>&6
8170 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8171 cat >> confdefs.h <<EOF
8172 #define $ac_tr_func 1
8176 echo "$ac_t""no" 1>&6
8185 for ac_hdr in wchar.h
8187 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8188 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8189 echo "configure:8190: checking for $ac_hdr" >&5
8190 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8191 echo $ac_n "(cached) $ac_c" 1>&6
8193 cat > conftest.$ac_ext <<EOF
8194 #line 8195 "configure"
8195 #include "confdefs.h"
8198 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8199 { (eval echo configure:8200: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8200 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8201 if test -z "$ac_err"; then
8203 eval "ac_cv_header_$ac_safe=yes"
8206 echo "configure: failed program was:" >&5
8207 cat conftest.$ac_ext >&5
8209 eval "ac_cv_header_$ac_safe=no"
8213 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8214 echo "$ac_t""yes" 1>&6
8215 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8216 cat >> confdefs.h <<EOF
8217 #define $ac_tr_hdr 1
8221 echo "$ac_t""no" 1>&6
8226 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
8227 echo "configure:8228: checking for wchar_t" >&5
8228 if eval "test \"`echo '$''{'mutt_cv_wchar_t'+set}'`\" = set"; then
8229 echo $ac_n "(cached) $ac_c" 1>&6
8231 cat > conftest.$ac_ext <<EOF
8232 #line 8233 "configure"
8233 #include "confdefs.h"
8242 wchar_t wc; return 0;
8245 if { (eval echo configure:8246: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8249 echo "configure: failed program was:" >&5
8250 cat conftest.$ac_ext >&5
8257 echo "$ac_t""$mutt_cv_wchar_t" 1>&6
8259 if test "$mutt_cv_wchar_t" = no; then
8260 cat >> confdefs.h <<\EOF
8266 echo $ac_n "checking for wint_t""... $ac_c" 1>&6
8267 echo "configure:8268: checking for wint_t" >&5
8268 if eval "test \"`echo '$''{'mutt_cv_wint_t'+set}'`\" = set"; then
8269 echo $ac_n "(cached) $ac_c" 1>&6
8271 cat > conftest.$ac_ext <<EOF
8272 #line 8273 "configure"
8273 #include "confdefs.h"
8282 wint_t wc; return 0;
8285 if { (eval echo configure:8286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8289 echo "configure: failed program was:" >&5
8290 cat conftest.$ac_ext >&5
8297 echo "$ac_t""$mutt_cv_wint_t" 1>&6
8299 if test "$mutt_cv_wint_t" = no; then
8300 cat >> confdefs.h <<\EOF
8306 for ac_hdr in wctype.h
8308 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8309 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8310 echo "configure:8311: checking for $ac_hdr" >&5
8311 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8312 echo $ac_n "(cached) $ac_c" 1>&6
8314 cat > conftest.$ac_ext <<EOF
8315 #line 8316 "configure"
8316 #include "confdefs.h"
8319 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8320 { (eval echo configure:8321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8321 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8322 if test -z "$ac_err"; then
8324 eval "ac_cv_header_$ac_safe=yes"
8327 echo "configure: failed program was:" >&5
8328 cat conftest.$ac_ext >&5
8330 eval "ac_cv_header_$ac_safe=no"
8334 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8335 echo "$ac_t""yes" 1>&6
8336 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8337 cat >> confdefs.h <<EOF
8338 #define $ac_tr_hdr 1
8342 echo "$ac_t""no" 1>&6
8346 for ac_func in iswalnum iswalpha iswcntrl iswdigit
8348 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8349 echo "configure:8350: checking for $ac_func" >&5
8350 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8351 echo $ac_n "(cached) $ac_c" 1>&6
8353 cat > conftest.$ac_ext <<EOF
8354 #line 8355 "configure"
8355 #include "confdefs.h"
8356 /* System header to define __stub macros and hopefully few prototypes,
8357 which can conflict with char $ac_func(); below. */
8359 /* Override any gcc2 internal prototype to avoid an error. */
8360 /* We use char because int might match the return type of a gcc2
8361 builtin and then its argument prototype would still apply. */
8366 /* The GNU C library defines this for functions which it implements
8367 to always fail with ENOSYS. Some functions are actually named
8368 something starting with __ and the normal name is an alias. */
8369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8377 if { (eval echo configure:8378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8379 eval "ac_cv_func_$ac_func=yes"
8381 echo "configure: failed program was:" >&5
8382 cat conftest.$ac_ext >&5
8384 eval "ac_cv_func_$ac_func=no"
8389 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8390 echo "$ac_t""yes" 1>&6
8391 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8392 cat >> confdefs.h <<EOF
8393 #define $ac_tr_func 1
8397 echo "$ac_t""no" 1>&6
8401 for ac_func in iswgraph iswlower iswprint iswpunct iswspace iswupper
8403 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8404 echo "configure:8405: checking for $ac_func" >&5
8405 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8406 echo $ac_n "(cached) $ac_c" 1>&6
8408 cat > conftest.$ac_ext <<EOF
8409 #line 8410 "configure"
8410 #include "confdefs.h"
8411 /* System header to define __stub macros and hopefully few prototypes,
8412 which can conflict with char $ac_func(); below. */
8414 /* Override any gcc2 internal prototype to avoid an error. */
8415 /* We use char because int might match the return type of a gcc2
8416 builtin and then its argument prototype would still apply. */
8421 /* The GNU C library defines this for functions which it implements
8422 to always fail with ENOSYS. Some functions are actually named
8423 something starting with __ and the normal name is an alias. */
8424 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8432 if { (eval echo configure:8433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8434 eval "ac_cv_func_$ac_func=yes"
8436 echo "configure: failed program was:" >&5
8437 cat conftest.$ac_ext >&5
8439 eval "ac_cv_func_$ac_func=no"
8444 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8445 echo "$ac_t""yes" 1>&6
8446 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8447 cat >> confdefs.h <<EOF
8448 #define $ac_tr_func 1
8452 echo "$ac_t""no" 1>&6
8456 for ac_func in iswxdigit towupper towlower
8458 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8459 echo "configure:8460: checking for $ac_func" >&5
8460 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8461 echo $ac_n "(cached) $ac_c" 1>&6
8463 cat > conftest.$ac_ext <<EOF
8464 #line 8465 "configure"
8465 #include "confdefs.h"
8466 /* System header to define __stub macros and hopefully few prototypes,
8467 which can conflict with char $ac_func(); below. */
8469 /* Override any gcc2 internal prototype to avoid an error. */
8470 /* We use char because int might match the return type of a gcc2
8471 builtin and then its argument prototype would still apply. */
8476 /* The GNU C library defines this for functions which it implements
8477 to always fail with ENOSYS. Some functions are actually named
8478 something starting with __ and the normal name is an alias. */
8479 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8487 if { (eval echo configure:8488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8489 eval "ac_cv_func_$ac_func=yes"
8491 echo "configure: failed program was:" >&5
8492 cat conftest.$ac_ext >&5
8494 eval "ac_cv_func_$ac_func=no"
8499 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8500 echo "$ac_t""yes" 1>&6
8501 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8502 cat >> confdefs.h <<EOF
8503 #define $ac_tr_func 1
8507 echo "$ac_t""no" 1>&6
8512 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8513 echo "configure:8514: checking for mbstate_t" >&5
8514 if eval "test \"`echo '$''{'mutt_cv_mbstate_t'+set}'`\" = set"; then
8515 echo $ac_n "(cached) $ac_c" 1>&6
8517 cat > conftest.$ac_ext <<EOF
8518 #line 8519 "configure"
8519 #include "confdefs.h"
8528 mbstate_t s; return 0;
8531 if { (eval echo configure:8532: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8533 mutt_cv_mbstate_t=yes
8535 echo "configure: failed program was:" >&5
8536 cat conftest.$ac_ext >&5
8538 mutt_cv_mbstate_t=no
8543 echo "$ac_t""$mutt_cv_mbstate_t" 1>&6
8545 if test "$mutt_cv_mbstate_t" = no; then
8546 cat >> confdefs.h <<\EOF
8547 #define mbstate_t int
8553 # Check whether --with-wc-funcs or --without-wc-funcs was given.
8554 if test "${with_wc_funcs+set}" = set; then
8555 withval="$with_wc_funcs"
8560 if test "$wc_funcs" != yes -a "$wc_funcs" != no; then
8561 echo $ac_n "checking for wchar_t functions""... $ac_c" 1>&6
8562 echo "configure:8563: checking for wchar_t functions" >&5
8563 if eval "test \"`echo '$''{'mutt_cv_wc_funcs'+set}'`\" = set"; then
8564 echo $ac_n "(cached) $ac_c" 1>&6
8567 cat > conftest.$ac_ext <<EOF
8568 #line 8569 "configure"
8569 #include "confdefs.h"
8571 #define _XOPEN_SOURCE 1
8574 #ifdef HAVE_WCTYPE_H
8581 mbrtowc(0, 0, 0, 0); wctomb(0, 0); wcwidth(0);
8582 iswprint(0); iswspace(0); towlower(0); towupper(0); iswalnum(0)
8585 if { (eval echo configure:8586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8587 mutt_cv_wc_funcs=yes
8589 echo "configure: failed program was:" >&5
8590 cat conftest.$ac_ext >&5
8595 echo "$ac_t""$mutt_cv_wc_funcs" 1>&6
8596 wc_funcs=$mutt_cv_wc_funcs
8599 if test $wc_funcs = yes; then
8600 cat >> confdefs.h <<\EOF
8601 #define HAVE_WC_FUNCS 1
8606 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
8607 echo "configure:8608: checking for nl_langinfo and CODESET" >&5
8608 if eval "test \"`echo '$''{'mutt_cv_langinfo_codeset'+set}'`\" = set"; then
8609 echo $ac_n "(cached) $ac_c" 1>&6
8611 cat > conftest.$ac_ext <<EOF
8612 #line 8613 "configure"
8613 #include "confdefs.h"
8614 #include <langinfo.h>
8616 char* cs = nl_langinfo(CODESET);
8619 if { (eval echo configure:8620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8621 mutt_cv_langinfo_codeset=yes
8623 echo "configure: failed program was:" >&5
8624 cat conftest.$ac_ext >&5
8626 mutt_cv_langinfo_codeset=no
8631 echo "$ac_t""$mutt_cv_langinfo_codeset" 1>&6
8632 if test $mutt_cv_langinfo_codeset = yes; then
8633 cat >> confdefs.h <<\EOF
8634 #define HAVE_LANGINFO_CODESET 1
8639 echo $ac_n "checking for nl_langinfo and YESEXPR""... $ac_c" 1>&6
8640 echo "configure:8641: checking for nl_langinfo and YESEXPR" >&5
8641 if eval "test \"`echo '$''{'mutt_cv_langinfo_yesexpr'+set}'`\" = set"; then
8642 echo $ac_n "(cached) $ac_c" 1>&6
8644 cat > conftest.$ac_ext <<EOF
8645 #line 8646 "configure"
8646 #include "confdefs.h"
8647 #include <langinfo.h>
8649 char* cs = nl_langinfo(YESEXPR);
8652 if { (eval echo configure:8653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8654 mutt_cv_langinfo_yesexpr=yes
8656 echo "configure: failed program was:" >&5
8657 cat conftest.$ac_ext >&5
8659 mutt_cv_langinfo_yesexpr=no
8664 echo "$ac_t""$mutt_cv_langinfo_yesexpr" 1>&6
8665 if test $mutt_cv_langinfo_yesexpr = yes; then
8666 cat >> confdefs.h <<\EOF
8667 #define HAVE_LANGINFO_YESEXPR 1
8673 # Check whether --with-libesmtp or --without-libesmtp was given.
8674 if test "${with_libesmtp+set}" = set; then
8675 withval="$with_libesmtp"
8676 if test "$with_libesmtp" != "no"
8678 mutt_libesmtp_check_path="$PATH"
8680 if test "$with_libesmtp" != "yes"
8682 mutt_libesmtp_check_path="$tmp_path:$withval/bin"
8685 # Extract the first word of "libesmtp-config", so it can be a program name with args.
8686 set dummy libesmtp-config; ac_word=$2
8687 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8688 echo "configure:8689: checking for $ac_word" >&5
8689 if eval "test \"`echo '$''{'ac_cv_path_mutt_libesmtp_config_path'+set}'`\" = set"; then
8690 echo $ac_n "(cached) $ac_c" 1>&6
8692 case "$mutt_libesmtp_config_path" in
8694 ac_cv_path_mutt_libesmtp_config_path="$mutt_libesmtp_config_path" # Let the user override the test with a path.
8697 ac_cv_path_mutt_libesmtp_config_path="$mutt_libesmtp_config_path" # Let the user override the test with a dos path.
8700 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8701 ac_dummy="$mutt_libesmtp_check_path"
8702 for ac_dir in $ac_dummy; do
8703 test -z "$ac_dir" && ac_dir=.
8704 if test -f $ac_dir/$ac_word; then
8705 ac_cv_path_mutt_libesmtp_config_path="$ac_dir/$ac_word"
8710 test -z "$ac_cv_path_mutt_libesmtp_config_path" && ac_cv_path_mutt_libesmtp_config_path="no"
8714 mutt_libesmtp_config_path="$ac_cv_path_mutt_libesmtp_config_path"
8715 if test -n "$mutt_libesmtp_config_path"; then
8716 echo "$ac_t""$mutt_libesmtp_config_path" 1>&6
8718 echo "$ac_t""no" 1>&6
8722 if test "$mutt_libesmtp_config_path" = "no"
8724 { echo "configure: error: libesmtp-config binary not found." 1>&2; exit 1; }
8727 mutt_libesmtp_cflags=`$mutt_libesmtp_config_path --cflags`
8728 mutt_libesmtp_libs=`$mutt_libesmtp_config_path --libs`
8730 temp_CFLAGS="$CFLAGS"
8731 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
8732 ac_safe=`echo "libesmtp.h" | sed 'y%./+-%__p_%'`
8733 echo $ac_n "checking for libesmtp.h""... $ac_c" 1>&6
8734 echo "configure:8735: checking for libesmtp.h" >&5
8735 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8736 echo $ac_n "(cached) $ac_c" 1>&6
8738 cat > conftest.$ac_ext <<EOF
8739 #line 8740 "configure"
8740 #include "confdefs.h"
8741 #include <libesmtp.h>
8743 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8744 { (eval echo configure:8745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8745 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8746 if test -z "$ac_err"; then
8748 eval "ac_cv_header_$ac_safe=yes"
8751 echo "configure: failed program was:" >&5
8752 cat conftest.$ac_ext >&5
8754 eval "ac_cv_header_$ac_safe=no"
8758 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8759 echo "$ac_t""yes" 1>&6
8762 echo "$ac_t""no" 1>&6
8763 { echo "configure: error: Could not find libesmtp.h" 1>&2; exit 1; }
8766 CFLAGS="$temp_CFLAGS"
8768 temp_CFLAGS="$CFLAGS"
8770 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
8771 LIBS="$LIBS $mutt_libesmtp_libs"
8772 echo $ac_n "checking for smtp_create_session in -lesmtp""... $ac_c" 1>&6
8773 echo "configure:8774: checking for smtp_create_session in -lesmtp" >&5
8774 ac_lib_var=`echo esmtp'_'smtp_create_session | sed 'y%./+-%__p_%'`
8775 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8776 echo $ac_n "(cached) $ac_c" 1>&6
8778 ac_save_LIBS="$LIBS"
8779 LIBS="-lesmtp $LIBS"
8780 cat > conftest.$ac_ext <<EOF
8781 #line 8782 "configure"
8782 #include "confdefs.h"
8783 /* Override any gcc2 internal prototype to avoid an error. */
8784 /* We use char because int might match the return type of a gcc2
8785 builtin and then its argument prototype would still apply. */
8786 char smtp_create_session();
8789 smtp_create_session()
8792 if { (eval echo configure:8793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8794 eval "ac_cv_lib_$ac_lib_var=yes"
8796 echo "configure: failed program was:" >&5
8797 cat conftest.$ac_ext >&5
8799 eval "ac_cv_lib_$ac_lib_var=no"
8802 LIBS="$ac_save_LIBS"
8805 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8806 echo "$ac_t""yes" 1>&6
8807 ac_tr_lib=HAVE_LIB`echo esmtp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8808 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8809 cat >> confdefs.h <<EOF
8810 #define $ac_tr_lib 1
8813 LIBS="-lesmtp $LIBS"
8816 echo "$ac_t""no" 1>&6
8817 { echo "configure: error: Could not find libesmtp" 1>&2; exit 1; }
8820 CFLAGS="$temp_CFLAGS"
8830 if test x$use_libesmtp = xyes; then
8831 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
8832 MUTTLIBS="$MUTTLIBS $mutt_libesmtp_libs"
8833 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_libesmtp.o"
8835 cat >> confdefs.h <<\EOF
8836 #define USE_LIBESMTP 1
8842 cat > confcache <<\EOF
8843 # This file is a shell script that caches the results of configure
8844 # tests run on this system so they can be shared between configure
8845 # scripts and configure runs. It is not useful on other systems.
8846 # If it contains results you don't want to keep, you may remove or edit it.
8848 # By default, configure uses ./config.cache as the cache file,
8849 # creating it if it does not exist already. You can give configure
8850 # the --cache-file=FILE option to use a different cache file; that is
8851 # what configure does when it calls configure scripts in
8852 # subdirectories, so they share the cache.
8853 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8854 # config.status only pays attention to the cache file if you give it the
8855 # --recheck option to rerun configure.
8858 # The following way of writing the cache mishandles newlines in values,
8859 # but we know of no workaround that is simple, portable, and efficient.
8860 # So, don't put newlines in cache variables' values.
8861 # Ultrix sh set writes to stderr and can't be redirected directly,
8862 # and sets the high bit in the cache file unless we assign to the vars.
8864 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8866 # `set' does not quote correctly, so add quotes (double-quote substitution
8867 # turns \\\\ into \\, and sed turns \\ into \).
8869 -e "s/'/'\\\\''/g" \
8870 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8873 # `set' quotes correctly as required by POSIX, so do not add quotes.
8874 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8877 if cmp -s $cache_file confcache; then
8880 if test -w $cache_file; then
8881 echo "updating cache $cache_file"
8882 cat confcache > $cache_file
8884 echo "not updating unwritable cache $cache_file"
8889 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8891 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8892 # Let make expand exec_prefix.
8893 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8895 # Any assignment to VPATH causes Sun make to only execute
8896 # the first set of double-colon rules, so remove it if not needed.
8897 # If there is a colon in the path, we need to keep it.
8898 if test "x$srcdir" = x.; then
8899 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8902 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8904 DEFS=-DHAVE_CONFIG_H
8906 # Without the "./", some shells look in PATH for config.status.
8907 : ${CONFIG_STATUS=./config.status}
8909 echo creating $CONFIG_STATUS
8910 rm -f $CONFIG_STATUS
8911 cat > $CONFIG_STATUS <<EOF
8913 # Generated automatically by configure.
8914 # Run this file to recreate the current configuration.
8915 # This directory was configured as follows,
8916 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8918 # $0 $ac_configure_args
8920 # Compiler output produced by configure, useful for debugging
8921 # configure, is in ./config.log if it exists.
8923 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8926 case "\$ac_option" in
8927 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8928 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8929 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8930 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8931 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8933 -help | --help | --hel | --he | --h)
8934 echo "\$ac_cs_usage"; exit 0 ;;
8935 *) echo "\$ac_cs_usage"; exit 1 ;;
8939 ac_given_srcdir=$srcdir
8940 ac_given_INSTALL="$INSTALL"
8942 trap 'rm -fr `echo "Makefile intl/Makefile m4/Makefile
8943 po/Makefile.in doc/Makefile contrib/Makefile
8947 doc/instdoc.sh config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8949 cat >> $CONFIG_STATUS <<EOF
8951 # Protect against being on the right side of a sed subst in config.status.
8952 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8953 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8957 s%@CFLAGS@%$CFLAGS%g
8958 s%@CPPFLAGS@%$CPPFLAGS%g
8959 s%@CXXFLAGS@%$CXXFLAGS%g
8960 s%@FFLAGS@%$FFLAGS%g
8962 s%@LDFLAGS@%$LDFLAGS%g
8964 s%@exec_prefix@%$exec_prefix%g
8965 s%@prefix@%$prefix%g
8966 s%@program_transform_name@%$program_transform_name%g
8967 s%@bindir@%$bindir%g
8968 s%@sbindir@%$sbindir%g
8969 s%@libexecdir@%$libexecdir%g
8970 s%@datadir@%$datadir%g
8971 s%@sysconfdir@%$sysconfdir%g
8972 s%@sharedstatedir@%$sharedstatedir%g
8973 s%@localstatedir@%$localstatedir%g
8974 s%@libdir@%$libdir%g
8975 s%@includedir@%$includedir%g
8976 s%@oldincludedir@%$oldincludedir%g
8977 s%@infodir@%$infodir%g
8978 s%@mandir@%$mandir%g
8979 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8980 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8981 s%@INSTALL_DATA@%$INSTALL_DATA%g
8982 s%@PACKAGE@%$PACKAGE%g
8983 s%@VERSION@%$VERSION%g
8984 s%@ACLOCAL@%$ACLOCAL%g
8985 s%@AUTOCONF@%$AUTOCONF%g
8986 s%@AUTOMAKE@%$AUTOMAKE%g
8987 s%@AUTOHEADER@%$AUTOHEADER%g
8988 s%@MAKEINFO@%$MAKEINFO%g
8989 s%@SET_MAKE@%$SET_MAKE%g
8991 s%@host_alias@%$host_alias%g
8992 s%@host_cpu@%$host_cpu%g
8993 s%@host_vendor@%$host_vendor%g
8994 s%@host_os@%$host_os%g
8998 s%@ANSI2KNR@%$ANSI2KNR%g
8999 s%@RANLIB@%$RANLIB%g
9001 s%@build_alias@%$build_alias%g
9002 s%@build_cpu@%$build_cpu%g
9003 s%@build_vendor@%$build_vendor%g
9004 s%@build_os@%$build_os%g
9009 s%@DEBUGGER@%$DEBUGGER%g
9010 s%@SENDMAIL@%$SENDMAIL%g
9012 s%@PGPAUX_TARGET@%$PGPAUX_TARGET%g
9013 s%@SMIMEAUX_TARGET@%$SMIMEAUX_TARGET%g
9014 s%@SUBVERSION@%$SUBVERSION%g
9015 s%@ISPELL@%$ISPELL%g
9016 s%@LIBOBJS@%$LIBOBJS%g
9017 s%@DOTLOCK_TARGET@%$DOTLOCK_TARGET%g
9018 s%@docdir@%$docdir%g
9019 s%@DOTLOCK_GROUP@%$DOTLOCK_GROUP%g
9020 s%@DOTLOCK_PERMISSION@%$DOTLOCK_PERMISSION%g
9021 s%@BUILD_IMAP_TRUE@%$BUILD_IMAP_TRUE%g
9022 s%@BUILD_IMAP_FALSE@%$BUILD_IMAP_FALSE%g
9023 s%@KRB5CFGPATH@%$KRB5CFGPATH%g
9024 s%@USE_GSS_TRUE@%$USE_GSS_TRUE%g
9025 s%@USE_GSS_FALSE@%$USE_GSS_FALSE%g
9026 s%@USE_SSL_TRUE@%$USE_SSL_TRUE%g
9027 s%@USE_SSL_FALSE@%$USE_SSL_FALSE%g
9028 s%@USE_GNUTLS_TRUE@%$USE_GNUTLS_TRUE%g
9029 s%@USE_GNUTLS_FALSE@%$USE_GNUTLS_FALSE%g
9030 s%@USE_SASL_TRUE@%$USE_SASL_TRUE%g
9031 s%@USE_SASL_FALSE@%$USE_SASL_FALSE%g
9032 s%@MUTTLIBS@%$MUTTLIBS%g
9033 s%@MUTT_LIB_OBJECTS@%$MUTT_LIB_OBJECTS%g
9034 s%@LIBIMAP@%$LIBIMAP%g
9035 s%@LIBIMAPDEPS@%$LIBIMAPDEPS%g
9036 s%@ALLOCA@%$ALLOCA%g
9037 s%@GLIBC21@%$GLIBC21%g
9038 s%@LIBICONV@%$LIBICONV%g
9039 s%@USE_NLS@%$USE_NLS%g
9040 s%@MSGFMT@%$MSGFMT%g
9041 s%@GMSGFMT@%$GMSGFMT%g
9042 s%@XGETTEXT@%$XGETTEXT%g
9043 s%@INTLBISON@%$INTLBISON%g
9044 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
9045 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9046 s%@CATALOGS@%$CATALOGS%g
9047 s%@CATOBJEXT@%$CATOBJEXT%g
9048 s%@GMOFILES@%$GMOFILES%g
9049 s%@INTLLIBS@%$INTLLIBS%g
9050 s%@INTLOBJS@%$INTLOBJS%g
9051 s%@POFILES@%$POFILES%g
9053 s%@DATADIRNAME@%$DATADIRNAME%g
9054 s%@INSTOBJEXT@%$INSTOBJEXT%g
9055 s%@GENCAT@%$GENCAT%g
9056 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9057 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
9058 s%@mutt_libesmtp_config_path@%$mutt_libesmtp_config_path%g
9063 cat >> $CONFIG_STATUS <<\EOF
9065 # Split the substitutions into bite-sized pieces for seds with
9066 # small command number limits, like on Digital OSF/1 and HP-UX.
9067 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9068 ac_file=1 # Number of current file.
9069 ac_beg=1 # First line for current file.
9070 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9073 while $ac_more_lines; do
9074 if test $ac_beg -gt 1; then
9075 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9077 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9079 if test ! -s conftest.s$ac_file; then
9081 rm -f conftest.s$ac_file
9083 if test -z "$ac_sed_cmds"; then
9084 ac_sed_cmds="sed -f conftest.s$ac_file"
9086 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9088 ac_file=`expr $ac_file + 1`
9090 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9093 if test -z "$ac_sed_cmds"; then
9098 cat >> $CONFIG_STATUS <<EOF
9100 CONFIG_FILES=\${CONFIG_FILES-"Makefile intl/Makefile m4/Makefile
9101 po/Makefile.in doc/Makefile contrib/Makefile
9107 cat >> $CONFIG_STATUS <<\EOF
9108 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9109 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9111 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9112 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9113 *) ac_file_in="${ac_file}.in" ;;
9116 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9118 # Remove last slash and all that follows it. Not all systems have dirname.
9119 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9120 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9121 # The file is in a subdirectory.
9122 test ! -d "$ac_dir" && mkdir "$ac_dir"
9123 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9124 # A "../" for each directory in $ac_dir_suffix.
9125 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9127 ac_dir_suffix= ac_dots=
9130 case "$ac_given_srcdir" in
9132 if test -z "$ac_dots"; then top_srcdir=.
9133 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9134 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9136 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9137 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9140 case "$ac_given_INSTALL" in
9141 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9142 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9145 echo creating "$ac_file"
9147 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9149 *Makefile*) ac_comsub="1i\\
9150 # $configure_input" ;;
9154 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9156 s%@configure_input@%$configure_input%g
9157 s%@srcdir@%$srcdir%g
9158 s%@top_srcdir@%$top_srcdir%g
9159 s%@INSTALL@%$INSTALL%g
9160 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9164 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9165 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9167 # ac_d sets the value in "#define NAME VALUE" lines.
9168 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9169 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9172 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9173 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9174 ac_uB='\([ ]\)%\1#\2define\3'
9177 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9178 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9179 ac_eB='$%\1#\2define\3'
9183 if test "${CONFIG_HEADERS+set}" != set; then
9185 cat >> $CONFIG_STATUS <<EOF
9186 CONFIG_HEADERS="config.h"
9188 cat >> $CONFIG_STATUS <<\EOF
9190 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9191 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9193 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9194 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9195 *) ac_file_in="${ac_file}.in" ;;
9198 echo creating $ac_file
9200 rm -f conftest.frag conftest.in conftest.out
9201 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9202 cat $ac_file_inputs > conftest.in
9206 # Transform confdefs.h into a sed script conftest.vals that substitutes
9207 # the proper values into config.h.in to produce config.h. And first:
9208 # Protect against being on the right side of a sed subst in config.status.
9209 # Protect against being in an unquoted here document in config.status.
9211 cat > conftest.hdr <<\EOF
9214 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9218 sed -n -f conftest.hdr confdefs.h > conftest.vals
9221 # This sed command replaces #undef with comments. This is necessary, for
9222 # example, in the case of _POSIX_SOURCE, which is predefined and required
9223 # on some systems where configure will not decide to define it.
9224 cat >> conftest.vals <<\EOF
9225 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9228 # Break up conftest.vals because some shells have a limit on
9229 # the size of here documents, and old seds have small limits too.
9234 ac_lines=`grep -c . conftest.vals`
9235 # grep -c gives empty output for an empty file on some AIX systems.
9236 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9237 # Write a limited-size here document to conftest.frag.
9238 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9239 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9241 sed -f conftest.frag conftest.in > conftest.out
9243 mv conftest.out conftest.in
9245 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9247 mv conftest.tail conftest.vals
9251 cat >> $CONFIG_STATUS <<\EOF
9252 rm -f conftest.frag conftest.h
9253 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9254 cat conftest.in >> conftest.h
9256 if cmp -s $ac_file conftest.h 2>/dev/null; then
9257 echo "$ac_file is unchanged"
9260 # Remove last slash and all that follows it. Not all systems have dirname.
9261 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9262 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9263 # The file is in a subdirectory.
9264 test ! -d "$ac_dir" && mkdir "$ac_dir"
9267 mv conftest.h $ac_file
9272 cat >> $CONFIG_STATUS <<EOF
9277 cat >> $CONFIG_STATUS <<\EOF
9278 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
9279 for ac_file in $CONFIG_FILES; do
9280 # Support "outfile[:infile[:infile...]]"
9282 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9284 # PO directories have a Makefile.in generated from Makefile.in.in.
9285 case "$ac_file" in */Makefile.in)
9286 # Adjust a relative srcdir.
9287 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9288 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9289 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9290 # In autoconf-2.13 it is called $ac_given_srcdir.
9291 # In autoconf-2.50 it is called $srcdir.
9292 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9293 case "$ac_given_srcdir" in
9294 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9295 /*) top_srcdir="$ac_given_srcdir" ;;
9296 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9298 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9299 rm -f "$ac_dir/POTFILES"
9300 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9301 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9302 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9303 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9311 chmod +x $CONFIG_STATUS
9312 rm -fr confdefs* $ac_clean_files
9313 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1