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-inodesort Do NOT read files in maildir folders sorted by inode. "
65 --disable-warnings Turn off compiler warnings (not recommended)"
67 --enable-nfs-fix Work around an NFS with broken attributes caching "
69 --enable-buffy-size Use file size attribute instead of access time "
71 --enable-mailtool Enable Sun mailtool attachments support "
73 --enable-compressed Enable compressed folders support "
75 --enable-locales-fix The result of isprint() is unreliable "
77 --with-exec-shell=SHELL Specify alternate shell (ONLY if /bin/sh is broken)"
79 --enable-exact-address Enable regeneration of email addresses"
81 --enable-hcache Enable header caching"
83 --without-gdbm Get rid of gdbm even if it is available "
85 --with-bdb[=DIR] Use BerkeleyDB4 if gdbm is not available "
87 --disable-iconv Disable iconv support"
89 --with-libiconv-prefix=DIR Search for libiconv in DIR/include and DIR/lib"
91 --disable-nls Do not use Native Language Support"
93 --with-included-gettext Use the GNU gettext library included here"
95 --without-wc-funcs Do not use the system's wchar_t functions"
97 --with-libesmtp=DIR Compile in support for libesmtp for the MTA"
99 # Initialize some variables set by options.
100 # The variables have the same names as the options, with
101 # dashes changed to underlines.
103 cache_file=./config.cache
112 program_transform_name=s,x,x,
120 bindir='${exec_prefix}/bin'
121 sbindir='${exec_prefix}/sbin'
122 libexecdir='${exec_prefix}/libexec'
123 datadir='${prefix}/share'
124 sysconfdir='${prefix}/etc'
125 sharedstatedir='${prefix}/com'
126 localstatedir='${prefix}/var'
127 libdir='${exec_prefix}/lib'
128 includedir='${prefix}/include'
129 oldincludedir='/usr/include'
130 infodir='${prefix}/info'
131 mandir='${prefix}/man'
133 # Initialize some other variables.
136 SHELL=${CONFIG_SHELL-/bin/sh}
137 # Maximum number of lines to put in a shell here document.
144 # If the previous option needs an argument, assign it.
145 if test -n "$ac_prev"; then
146 eval "$ac_prev=\$ac_option"
152 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
156 # Accept the important Cygnus configure options, so we can diagnose typos.
160 -bindir | --bindir | --bindi | --bind | --bin | --bi)
162 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
163 bindir="$ac_optarg" ;;
165 -build | --build | --buil | --bui | --bu)
167 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
168 build="$ac_optarg" ;;
170 -cache-file | --cache-file | --cache-fil | --cache-fi \
171 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
172 ac_prev=cache_file ;;
173 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
174 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
175 cache_file="$ac_optarg" ;;
177 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
179 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
181 datadir="$ac_optarg" ;;
183 -disable-* | --disable-*)
184 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
185 # Reject names that are not valid shell variable names.
186 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
187 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
189 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
190 eval "enable_${ac_feature}=no" ;;
192 -enable-* | --enable-*)
193 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
194 # Reject names that are not valid shell variable names.
195 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
196 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
198 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
203 eval "enable_${ac_feature}='$ac_optarg'" ;;
205 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
206 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
207 | --exec | --exe | --ex)
208 ac_prev=exec_prefix ;;
209 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
210 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
211 | --exec=* | --exe=* | --ex=*)
212 exec_prefix="$ac_optarg" ;;
214 -gas | --gas | --ga | --g)
215 # Obsolete; use --with-gas.
218 -help | --help | --hel | --he)
219 # Omit some internal or obsolete options to make the list less imposing.
220 # This message is too long to be a string in the A/UX 3.1 sh.
222 Usage: configure [options] [host]
223 Options: [defaults in brackets after descriptions]
225 --cache-file=FILE cache test results in FILE
226 --help print this message
227 --no-create do not create output files
228 --quiet, --silent do not print \`checking...' messages
229 --version print the version of autoconf that created configure
230 Directory and file names:
231 --prefix=PREFIX install architecture-independent files in PREFIX
233 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
235 --bindir=DIR user executables in DIR [EPREFIX/bin]
236 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
237 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
238 --datadir=DIR read-only architecture-independent data in DIR
240 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
241 --sharedstatedir=DIR modifiable architecture-independent data in DIR
243 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
244 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
245 --includedir=DIR C header files in DIR [PREFIX/include]
246 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
247 --infodir=DIR info documentation in DIR [PREFIX/info]
248 --mandir=DIR man documentation in DIR [PREFIX/man]
249 --srcdir=DIR find the sources in DIR [configure dir or ..]
250 --program-prefix=PREFIX prepend PREFIX to installed program names
251 --program-suffix=SUFFIX append SUFFIX to installed program names
252 --program-transform-name=PROGRAM
253 run sed PROGRAM on installed program names
257 --build=BUILD configure for building on BUILD [BUILD=HOST]
258 --host=HOST configure for HOST [guessed]
259 --target=TARGET configure for TARGET [TARGET=HOST]
260 Features and packages:
261 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
262 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
263 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
264 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
265 --x-includes=DIR X include files are in DIR
266 --x-libraries=DIR X library files are in DIR
268 if test -n "$ac_help"; then
269 echo "--enable and --with options recognized:$ac_help"
273 -host | --host | --hos | --ho)
275 -host=* | --host=* | --hos=* | --ho=*)
278 -includedir | --includedir | --includedi | --included | --include \
279 | --includ | --inclu | --incl | --inc)
280 ac_prev=includedir ;;
281 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
282 | --includ=* | --inclu=* | --incl=* | --inc=*)
283 includedir="$ac_optarg" ;;
285 -infodir | --infodir | --infodi | --infod | --info | --inf)
287 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
288 infodir="$ac_optarg" ;;
290 -libdir | --libdir | --libdi | --libd)
292 -libdir=* | --libdir=* | --libdi=* | --libd=*)
293 libdir="$ac_optarg" ;;
295 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
296 | --libexe | --libex | --libe)
297 ac_prev=libexecdir ;;
298 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
299 | --libexe=* | --libex=* | --libe=*)
300 libexecdir="$ac_optarg" ;;
302 -localstatedir | --localstatedir | --localstatedi | --localstated \
303 | --localstate | --localstat | --localsta | --localst \
304 | --locals | --local | --loca | --loc | --lo)
305 ac_prev=localstatedir ;;
306 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
307 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
308 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
309 localstatedir="$ac_optarg" ;;
311 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
313 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
314 mandir="$ac_optarg" ;;
317 # Obsolete; use --without-fp.
320 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
324 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
325 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
328 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
329 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
330 | --oldin | --oldi | --old | --ol | --o)
331 ac_prev=oldincludedir ;;
332 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
333 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
334 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
335 oldincludedir="$ac_optarg" ;;
337 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
339 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
340 prefix="$ac_optarg" ;;
342 -program-prefix | --program-prefix | --program-prefi | --program-pref \
343 | --program-pre | --program-pr | --program-p)
344 ac_prev=program_prefix ;;
345 -program-prefix=* | --program-prefix=* | --program-prefi=* \
346 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
347 program_prefix="$ac_optarg" ;;
349 -program-suffix | --program-suffix | --program-suffi | --program-suff \
350 | --program-suf | --program-su | --program-s)
351 ac_prev=program_suffix ;;
352 -program-suffix=* | --program-suffix=* | --program-suffi=* \
353 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
354 program_suffix="$ac_optarg" ;;
356 -program-transform-name | --program-transform-name \
357 | --program-transform-nam | --program-transform-na \
358 | --program-transform-n | --program-transform- \
359 | --program-transform | --program-transfor \
360 | --program-transfo | --program-transf \
361 | --program-trans | --program-tran \
362 | --progr-tra | --program-tr | --program-t)
363 ac_prev=program_transform_name ;;
364 -program-transform-name=* | --program-transform-name=* \
365 | --program-transform-nam=* | --program-transform-na=* \
366 | --program-transform-n=* | --program-transform-=* \
367 | --program-transform=* | --program-transfor=* \
368 | --program-transfo=* | --program-transf=* \
369 | --program-trans=* | --program-tran=* \
370 | --progr-tra=* | --program-tr=* | --program-t=*)
371 program_transform_name="$ac_optarg" ;;
373 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
374 | -silent | --silent | --silen | --sile | --sil)
377 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
379 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
381 sbindir="$ac_optarg" ;;
383 -sharedstatedir | --sharedstatedir | --sharedstatedi \
384 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
385 | --sharedst | --shareds | --shared | --share | --shar \
387 ac_prev=sharedstatedir ;;
388 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
389 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
390 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
392 sharedstatedir="$ac_optarg" ;;
394 -site | --site | --sit)
396 -site=* | --site=* | --sit=*)
399 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
401 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
402 srcdir="$ac_optarg" ;;
404 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
405 | --syscon | --sysco | --sysc | --sys | --sy)
406 ac_prev=sysconfdir ;;
407 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
408 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
409 sysconfdir="$ac_optarg" ;;
411 -target | --target | --targe | --targ | --tar | --ta | --t)
413 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
414 target="$ac_optarg" ;;
416 -v | -verbose | --verbose | --verbos | --verbo | --verb)
419 -version | --version | --versio | --versi | --vers)
420 echo "configure generated by autoconf version 2.13"
424 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
425 # Reject names that are not valid shell variable names.
426 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
427 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
429 ac_package=`echo $ac_package| sed 's/-/_/g'`
434 eval "with_${ac_package}='$ac_optarg'" ;;
436 -without-* | --without-*)
437 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
438 # Reject names that are not valid shell variable names.
439 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
440 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
442 ac_package=`echo $ac_package| sed 's/-/_/g'`
443 eval "with_${ac_package}=no" ;;
446 # Obsolete; use --with-x.
449 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
450 | --x-incl | --x-inc | --x-in | --x-i)
451 ac_prev=x_includes ;;
452 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
453 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
454 x_includes="$ac_optarg" ;;
456 -x-libraries | --x-libraries | --x-librarie | --x-librari \
457 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
458 ac_prev=x_libraries ;;
459 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
460 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
461 x_libraries="$ac_optarg" ;;
463 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
467 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
468 echo "configure: warning: $ac_option: invalid host type" 1>&2
470 if test "x$nonopt" != xNONE; then
471 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
479 if test -n "$ac_prev"; then
480 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
483 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
485 # File descriptor usage:
488 # 2 errors and warnings
489 # 3 some systems may open it to /dev/tty
490 # 4 used on the Kubota Titan
491 # 6 checking for... messages and results
492 # 5 compiler messages saved in config.log
493 if test "$silent" = yes; then
501 This file contains any messages produced by compilers while
502 running configure, to aid debugging if configure makes a mistake.
505 # Strip out --no-create and --no-recursion so they do not pile up.
506 # Also quote any args containing shell metacharacters.
511 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
512 | --no-cr | --no-c) ;;
513 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
514 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
515 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
516 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
517 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
522 # Only set these to C if already set. These must not be set unconditionally
523 # because not all systems understand e.g. LANG=C (notably SCO).
524 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
525 # Non-C LC_CTYPE values break the ctype check.
526 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
527 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
528 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
529 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
531 # confdefs.h avoids OS command line length limits that DEFS can exceed.
532 rm -rf conftest* confdefs.h
533 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
536 # A filename unique to this package, relative to the directory that
537 # configure is in, which we can look for to find out if srcdir is correct.
538 ac_unique_file=mutt.h
540 # Find the source files, if location was not specified.
541 if test -z "$srcdir"; then
542 ac_srcdir_defaulted=yes
543 # Try the directory containing this script, then its parent.
545 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
546 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
548 if test ! -r $srcdir/$ac_unique_file; then
552 ac_srcdir_defaulted=no
554 if test ! -r $srcdir/$ac_unique_file; then
555 if test "$ac_srcdir_defaulted" = yes; then
556 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
558 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
561 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
563 # Prefer explicitly selected file to automatically selected ones.
564 if test -z "$CONFIG_SITE"; then
565 if test "x$prefix" != xNONE; then
566 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
568 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
571 for ac_site_file in $CONFIG_SITE; do
572 if test -r "$ac_site_file"; then
573 echo "loading site script $ac_site_file"
578 if test -r "$cache_file"; then
579 echo "loading cache $cache_file"
582 echo "creating cache $cache_file"
587 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
588 ac_cpp='$CPP $CPPFLAGS'
589 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
590 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
591 cross_compiling=$ac_cv_prog_cc_cross
595 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
596 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
597 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
604 ac_n= ac_c='\c' ac_t=
612 mutt_cv_version=`cat $srcdir/VERSION`
616 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
617 if test -f $ac_dir/install-sh; then
619 ac_install_sh="$ac_aux_dir/install-sh -c"
621 elif test -f $ac_dir/install.sh; then
623 ac_install_sh="$ac_aux_dir/install.sh -c"
627 if test -z "$ac_aux_dir"; then
628 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
630 ac_config_guess=$ac_aux_dir/config.guess
631 ac_config_sub=$ac_aux_dir/config.sub
632 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
634 # Find a good install program. We prefer a C program (faster),
635 # so one script is as good as another. But avoid the broken or
636 # incompatible versions:
637 # SysV /etc/install, /usr/sbin/install
638 # SunOS /usr/etc/install
641 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
642 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
643 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
644 # ./install, which can be erroneously created by make from ./install.sh.
645 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
646 echo "configure:647: checking for a BSD compatible install" >&5
647 if test -z "$INSTALL"; then
648 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
649 echo $ac_n "(cached) $ac_c" 1>&6
651 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
652 for ac_dir in $PATH; do
653 # Account for people who put trailing slashes in PATH elements.
655 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
657 # OSF1 and SCO ODT 3.0 have their own names for install.
658 # Don't use installbsd from OSF since it installs stuff as root
660 for ac_prog in ginstall scoinst install; do
661 if test -f $ac_dir/$ac_prog; then
662 if test $ac_prog = install &&
663 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
664 # AIX install. It has an incompatible calling convention.
667 ac_cv_path_install="$ac_dir/$ac_prog -c"
678 if test "${ac_cv_path_install+set}" = set; then
679 INSTALL="$ac_cv_path_install"
681 # As a last resort, use the slow shell script. We don't cache a
682 # path for INSTALL within a source directory, because that will
683 # break other packages using the cache if that directory is
684 # removed, or if the path is relative.
685 INSTALL="$ac_install_sh"
688 echo "$ac_t""$INSTALL" 1>&6
690 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
691 # It thinks the first close brace ends the variable substitution.
692 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
694 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
696 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
698 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
699 echo "configure:700: checking whether build environment is sane" >&5
702 echo timestamp > conftestfile
703 # Do `set' in a subshell so we don't clobber the current shell's
704 # arguments. Must try -L first in case configure is actually a
705 # symlink; some systems play weird games with the mod time of symlinks
706 # (eg FreeBSD returns the mod time of the symlink's containing
709 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
710 if test "$*" = "X"; then
712 set X `ls -t $srcdir/configure conftestfile`
714 if test "$*" != "X $srcdir/configure conftestfile" \
715 && test "$*" != "X conftestfile $srcdir/configure"; then
717 # If neither matched, then we have a broken ls. This can happen
718 # if, for instance, CONFIG_SHELL is bash and it inherits a
719 # broken ls alias from the environment. This has actually
720 # happened. Such a system could not be considered "sane".
721 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
722 alias in your environment" 1>&2; exit 1; }
725 test "$2" = conftestfile
731 { echo "configure: error: newly created file is older than distributed files!
732 Check your system clock" 1>&2; exit 1; }
735 echo "$ac_t""yes" 1>&6
736 if test "$program_transform_name" = s,x,x,; then
737 program_transform_name=
739 # Double any \ or $. echo might interpret backslashes.
740 cat <<\EOF_SED > conftestsed
741 s,\\,\\\\,g; s,\$,$$,g
743 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
746 test "$program_prefix" != NONE &&
747 program_transform_name="s,^,${program_prefix},; $program_transform_name"
748 # Use a double $ so make ignores it.
749 test "$program_suffix" != NONE &&
750 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
752 # sed with no file args requires a program.
753 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
755 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
756 echo "configure:757: checking whether ${MAKE-make} sets \${MAKE}" >&5
757 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
758 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
759 echo $ac_n "(cached) $ac_c" 1>&6
761 cat > conftestmake <<\EOF
763 @echo 'ac_maketemp="${MAKE}"'
765 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
766 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
767 if test -n "$ac_maketemp"; then
768 eval ac_cv_prog_make_${ac_make}_set=yes
770 eval ac_cv_prog_make_${ac_make}_set=no
774 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
775 echo "$ac_t""yes" 1>&6
778 echo "$ac_t""no" 1>&6
779 SET_MAKE="MAKE=${MAKE-make}"
785 VERSION=$mutt_cv_version
787 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
788 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
790 cat >> confdefs.h <<EOF
791 #define PACKAGE "$PACKAGE"
794 cat >> confdefs.h <<EOF
795 #define VERSION "$VERSION"
800 missing_dir=`cd $ac_aux_dir && pwd`
801 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
802 echo "configure:803: checking for working aclocal" >&5
803 # Run test in a subshell; some versions of sh will print an error if
804 # an executable is not found, even if stderr is redirected.
805 # Redirect stdin to placate older versions of autoconf. Sigh.
806 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
808 echo "$ac_t""found" 1>&6
810 ACLOCAL="$missing_dir/missing aclocal"
811 echo "$ac_t""missing" 1>&6
814 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
815 echo "configure:816: checking for working autoconf" >&5
816 # Run test in a subshell; some versions of sh will print an error if
817 # an executable is not found, even if stderr is redirected.
818 # Redirect stdin to placate older versions of autoconf. Sigh.
819 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
821 echo "$ac_t""found" 1>&6
823 AUTOCONF="$missing_dir/missing autoconf"
824 echo "$ac_t""missing" 1>&6
827 echo $ac_n "checking for working automake""... $ac_c" 1>&6
828 echo "configure:829: checking for working automake" >&5
829 # Run test in a subshell; some versions of sh will print an error if
830 # an executable is not found, even if stderr is redirected.
831 # Redirect stdin to placate older versions of autoconf. Sigh.
832 if (automake --version) < /dev/null > /dev/null 2>&1; then
834 echo "$ac_t""found" 1>&6
836 AUTOMAKE="$missing_dir/missing automake"
837 echo "$ac_t""missing" 1>&6
840 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
841 echo "configure:842: checking for working autoheader" >&5
842 # Run test in a subshell; some versions of sh will print an error if
843 # an executable is not found, even if stderr is redirected.
844 # Redirect stdin to placate older versions of autoconf. Sigh.
845 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
846 AUTOHEADER=autoheader
847 echo "$ac_t""found" 1>&6
849 AUTOHEADER="$missing_dir/missing autoheader"
850 echo "$ac_t""missing" 1>&6
853 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
854 echo "configure:855: checking for working makeinfo" >&5
855 # Run test in a subshell; some versions of sh will print an error if
856 # an executable is not found, even if stderr is redirected.
857 # Redirect stdin to placate older versions of autoconf. Sigh.
858 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
860 echo "$ac_t""found" 1>&6
862 MAKEINFO="$missing_dir/missing makeinfo"
863 echo "$ac_t""missing" 1>&6
870 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"
873 # Make sure we can run config.sub.
874 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
875 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
878 echo $ac_n "checking host system type""... $ac_c" 1>&6
879 echo "configure:880: checking host system type" >&5
882 case "$host_alias" in
886 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
887 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
889 *) host_alias=$nonopt ;;
893 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
894 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
895 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
896 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
897 echo "$ac_t""$host" 1>&6
900 echo $ac_n "checking for prefix""... $ac_c" 1>&6
901 echo "configure:902: checking for prefix" >&5
902 if test x$prefix = xNONE; then
903 mutt_cv_prefix=$ac_default_prefix
905 mutt_cv_prefix=$prefix
907 echo "$ac_t""$mutt_cv_prefix" 1>&6
909 # Extract the first word of "gcc", so it can be a program name with args.
910 set dummy gcc; ac_word=$2
911 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
912 echo "configure:913: checking for $ac_word" >&5
913 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
914 echo $ac_n "(cached) $ac_c" 1>&6
916 if test -n "$CC"; then
917 ac_cv_prog_CC="$CC" # Let the user override the test.
919 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
921 for ac_dir in $ac_dummy; do
922 test -z "$ac_dir" && ac_dir=.
923 if test -f $ac_dir/$ac_word; then
932 if test -n "$CC"; then
933 echo "$ac_t""$CC" 1>&6
935 echo "$ac_t""no" 1>&6
938 if test -z "$CC"; then
939 # Extract the first word of "cc", so it can be a program name with args.
940 set dummy cc; ac_word=$2
941 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
942 echo "configure:943: checking for $ac_word" >&5
943 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
944 echo $ac_n "(cached) $ac_c" 1>&6
946 if test -n "$CC"; then
947 ac_cv_prog_CC="$CC" # Let the user override the test.
949 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
952 for ac_dir in $ac_dummy; do
953 test -z "$ac_dir" && ac_dir=.
954 if test -f $ac_dir/$ac_word; then
955 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
964 if test $ac_prog_rejected = yes; then
965 # We found a bogon in the path, so make sure we never use it.
966 set dummy $ac_cv_prog_CC
968 if test $# -gt 0; then
969 # We chose a different compiler from the bogus one.
970 # However, it has the same basename, so the bogon will be chosen
971 # first if we set CC to just the basename; use the full file name.
973 set dummy "$ac_dir/$ac_word" "$@"
981 if test -n "$CC"; then
982 echo "$ac_t""$CC" 1>&6
984 echo "$ac_t""no" 1>&6
987 if test -z "$CC"; then
990 # Extract the first word of "cl", so it can be a program name with args.
991 set dummy cl; ac_word=$2
992 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
993 echo "configure:994: checking for $ac_word" >&5
994 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
995 echo $ac_n "(cached) $ac_c" 1>&6
997 if test -n "$CC"; then
998 ac_cv_prog_CC="$CC" # Let the user override the test.
1000 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1002 for ac_dir in $ac_dummy; do
1003 test -z "$ac_dir" && ac_dir=.
1004 if test -f $ac_dir/$ac_word; then
1013 if test -n "$CC"; then
1014 echo "$ac_t""$CC" 1>&6
1016 echo "$ac_t""no" 1>&6
1021 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1024 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1025 echo "configure:1026: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1028 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1029 ac_cpp='$CPP $CPPFLAGS'
1030 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1031 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1032 cross_compiling=$ac_cv_prog_cc_cross
1034 cat > conftest.$ac_ext << EOF
1036 #line 1037 "configure"
1037 #include "confdefs.h"
1041 if { (eval echo configure:1042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1042 ac_cv_prog_cc_works=yes
1043 # If we can't run a trivial program, we are probably using a cross compiler.
1044 if (./conftest; exit) 2>/dev/null; then
1045 ac_cv_prog_cc_cross=no
1047 ac_cv_prog_cc_cross=yes
1050 echo "configure: failed program was:" >&5
1051 cat conftest.$ac_ext >&5
1052 ac_cv_prog_cc_works=no
1056 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1057 ac_cpp='$CPP $CPPFLAGS'
1058 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1059 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1060 cross_compiling=$ac_cv_prog_cc_cross
1062 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1063 if test $ac_cv_prog_cc_works = no; then
1064 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1066 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1067 echo "configure:1068: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1068 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1069 cross_compiling=$ac_cv_prog_cc_cross
1071 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1072 echo "configure:1073: checking whether we are using GNU C" >&5
1073 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1074 echo $ac_n "(cached) $ac_c" 1>&6
1076 cat > conftest.c <<EOF
1081 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1088 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1090 if test $ac_cv_prog_gcc = yes; then
1096 ac_test_CFLAGS="${CFLAGS+set}"
1097 ac_save_CFLAGS="$CFLAGS"
1099 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1100 echo "configure:1101: checking whether ${CC-cc} accepts -g" >&5
1101 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1102 echo $ac_n "(cached) $ac_c" 1>&6
1104 echo 'void f(){}' > conftest.c
1105 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1114 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1115 if test "$ac_test_CFLAGS" = set; then
1116 CFLAGS="$ac_save_CFLAGS"
1117 elif test $ac_cv_prog_cc_g = yes; then
1118 if test "$GCC" = yes; then
1124 if test "$GCC" = yes; then
1132 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1133 echo "configure:1134: checking for strerror in -lcposix" >&5
1134 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1135 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1136 echo $ac_n "(cached) $ac_c" 1>&6
1138 ac_save_LIBS="$LIBS"
1139 LIBS="-lcposix $LIBS"
1140 cat > conftest.$ac_ext <<EOF
1141 #line 1142 "configure"
1142 #include "confdefs.h"
1143 /* Override any gcc2 internal prototype to avoid an error. */
1144 /* We use char because int might match the return type of a gcc2
1145 builtin and then its argument prototype would still apply. */
1152 if { (eval echo configure:1153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1154 eval "ac_cv_lib_$ac_lib_var=yes"
1156 echo "configure: failed program was:" >&5
1157 cat conftest.$ac_ext >&5
1159 eval "ac_cv_lib_$ac_lib_var=no"
1162 LIBS="$ac_save_LIBS"
1165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1166 echo "$ac_t""yes" 1>&6
1167 LIBS="$LIBS -lcposix"
1169 echo "$ac_t""no" 1>&6
1177 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
1178 echo "configure:1179: checking for ${CC-cc} option to accept ANSI C" >&5
1179 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
1180 echo $ac_n "(cached) $ac_c" 1>&6
1182 am_cv_prog_cc_stdc=no
1184 # Don't try gcc -ansi; that turns off useful extensions and
1185 # breaks some systems' header files.
1186 # AIX -qlanglvl=ansi
1187 # Ultrix and OSF/1 -std1
1188 # HP-UX -Aa -D_HPUX_SOURCE
1189 # SVR4 -Xc -D__EXTENSIONS__
1190 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1192 CC="$ac_save_CC $ac_arg"
1193 cat > conftest.$ac_ext <<EOF
1194 #line 1195 "configure"
1195 #include "confdefs.h"
1198 #include <sys/types.h>
1199 #include <sys/stat.h>
1200 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1201 struct buf { int x; };
1202 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1203 static char *e (p, i)
1209 static char *f (char * (*g) (char **, int), char **p, ...)
1214 s = g (p, va_arg (v,int));
1218 int test (int i, double x);
1219 struct s1 {int (*f) (int a);};
1220 struct s2 {int (*f) (double a);};
1221 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1227 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1231 if { (eval echo configure:1232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1233 am_cv_prog_cc_stdc="$ac_arg"; break
1235 echo "configure: failed program was:" >&5
1236 cat conftest.$ac_ext >&5
1244 if test -z "$am_cv_prog_cc_stdc"; then
1245 echo "$ac_t""none needed" 1>&6
1247 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1249 case "x$am_cv_prog_cc_stdc" in
1251 *) CC="$CC $am_cv_prog_cc_stdc" ;;
1254 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1255 echo "configure:1256: checking how to run the C preprocessor" >&5
1256 # On Suns, sometimes $CPP names a directory.
1257 if test -n "$CPP" && test -d "$CPP"; then
1260 if test -z "$CPP"; then
1261 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1262 echo $ac_n "(cached) $ac_c" 1>&6
1264 # This must be in double quotes, not single quotes, because CPP may get
1265 # substituted into the Makefile and "${CC-cc}" will confuse make.
1267 # On the NeXT, cc -E runs the code through the compiler's parser,
1268 # not just through cpp.
1269 cat > conftest.$ac_ext <<EOF
1270 #line 1271 "configure"
1271 #include "confdefs.h"
1275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1276 { (eval echo configure:1277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1277 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1278 if test -z "$ac_err"; then
1282 echo "configure: failed program was:" >&5
1283 cat conftest.$ac_ext >&5
1285 CPP="${CC-cc} -E -traditional-cpp"
1286 cat > conftest.$ac_ext <<EOF
1287 #line 1288 "configure"
1288 #include "confdefs.h"
1292 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1293 { (eval echo configure:1294: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1294 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1295 if test -z "$ac_err"; then
1299 echo "configure: failed program was:" >&5
1300 cat conftest.$ac_ext >&5
1302 CPP="${CC-cc} -nologo -E"
1303 cat > conftest.$ac_ext <<EOF
1304 #line 1305 "configure"
1305 #include "confdefs.h"
1309 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1310 { (eval echo configure:1311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1311 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1312 if test -z "$ac_err"; then
1316 echo "configure: failed program was:" >&5
1317 cat conftest.$ac_ext >&5
1326 ac_cv_prog_CPP="$CPP"
1328 CPP="$ac_cv_prog_CPP"
1330 ac_cv_prog_CPP="$CPP"
1332 echo "$ac_t""$CPP" 1>&6
1336 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
1337 echo "configure:1338: checking for function prototypes" >&5
1338 if test "$am_cv_prog_cc_stdc" != no; then
1339 echo "$ac_t""yes" 1>&6
1340 cat >> confdefs.h <<\EOF
1341 #define PROTOTYPES 1
1346 echo "$ac_t""no" 1>&6
1347 U=_ ANSI2KNR=./ansi2knr
1348 # Ensure some checks needed by ansi2knr itself.
1349 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1350 echo "configure:1351: checking for ANSI C header files" >&5
1351 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1352 echo $ac_n "(cached) $ac_c" 1>&6
1354 cat > conftest.$ac_ext <<EOF
1355 #line 1356 "configure"
1356 #include "confdefs.h"
1362 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1363 { (eval echo configure:1364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1364 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1365 if test -z "$ac_err"; then
1367 ac_cv_header_stdc=yes
1370 echo "configure: failed program was:" >&5
1371 cat conftest.$ac_ext >&5
1373 ac_cv_header_stdc=no
1377 if test $ac_cv_header_stdc = yes; then
1378 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1379 cat > conftest.$ac_ext <<EOF
1380 #line 1381 "configure"
1381 #include "confdefs.h"
1384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1385 egrep "memchr" >/dev/null 2>&1; then
1389 ac_cv_header_stdc=no
1395 if test $ac_cv_header_stdc = yes; then
1396 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1397 cat > conftest.$ac_ext <<EOF
1398 #line 1399 "configure"
1399 #include "confdefs.h"
1402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1403 egrep "free" >/dev/null 2>&1; then
1407 ac_cv_header_stdc=no
1413 if test $ac_cv_header_stdc = yes; then
1414 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1415 if test "$cross_compiling" = yes; then
1418 cat > conftest.$ac_ext <<EOF
1419 #line 1420 "configure"
1420 #include "confdefs.h"
1422 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1423 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1424 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1425 int main () { int i; for (i = 0; i < 256; i++)
1426 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1430 if { (eval echo configure:1431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1434 echo "configure: failed program was:" >&5
1435 cat conftest.$ac_ext >&5
1437 ac_cv_header_stdc=no
1445 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1446 if test $ac_cv_header_stdc = yes; then
1447 cat >> confdefs.h <<\EOF
1448 #define STDC_HEADERS 1
1453 for ac_hdr in string.h
1455 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1456 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1457 echo "configure:1458: checking for $ac_hdr" >&5
1458 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1459 echo $ac_n "(cached) $ac_c" 1>&6
1461 cat > conftest.$ac_ext <<EOF
1462 #line 1463 "configure"
1463 #include "confdefs.h"
1466 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1467 { (eval echo configure:1468: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1468 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1469 if test -z "$ac_err"; then
1471 eval "ac_cv_header_$ac_safe=yes"
1474 echo "configure: failed program was:" >&5
1475 cat conftest.$ac_ext >&5
1477 eval "ac_cv_header_$ac_safe=no"
1481 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1482 echo "$ac_t""yes" 1>&6
1483 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1484 cat >> confdefs.h <<EOF
1485 #define $ac_tr_hdr 1
1489 echo "$ac_t""no" 1>&6
1495 if test "x$U" != "x"; then
1496 { echo "configure: error: Compiler not ANSI compliant" 1>&2; exit 1; }
1498 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1499 echo "configure:1500: checking how to run the C preprocessor" >&5
1500 # On Suns, sometimes $CPP names a directory.
1501 if test -n "$CPP" && test -d "$CPP"; then
1504 if test -z "$CPP"; then
1505 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1506 echo $ac_n "(cached) $ac_c" 1>&6
1508 # This must be in double quotes, not single quotes, because CPP may get
1509 # substituted into the Makefile and "${CC-cc}" will confuse make.
1511 # On the NeXT, cc -E runs the code through the compiler's parser,
1512 # not just through cpp.
1513 cat > conftest.$ac_ext <<EOF
1514 #line 1515 "configure"
1515 #include "confdefs.h"
1519 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1520 { (eval echo configure:1521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1521 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1522 if test -z "$ac_err"; then
1526 echo "configure: failed program was:" >&5
1527 cat conftest.$ac_ext >&5
1529 CPP="${CC-cc} -E -traditional-cpp"
1530 cat > conftest.$ac_ext <<EOF
1531 #line 1532 "configure"
1532 #include "confdefs.h"
1536 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1537 { (eval echo configure:1538: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1538 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1539 if test -z "$ac_err"; then
1543 echo "configure: failed program was:" >&5
1544 cat conftest.$ac_ext >&5
1546 CPP="${CC-cc} -nologo -E"
1547 cat > conftest.$ac_ext <<EOF
1548 #line 1549 "configure"
1549 #include "confdefs.h"
1553 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1554 { (eval echo configure:1555: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1555 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1556 if test -z "$ac_err"; then
1560 echo "configure: failed program was:" >&5
1561 cat conftest.$ac_ext >&5
1570 ac_cv_prog_CPP="$CPP"
1572 CPP="$ac_cv_prog_CPP"
1574 ac_cv_prog_CPP="$CPP"
1576 echo "$ac_t""$CPP" 1>&6
1578 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1579 echo "configure:1580: checking whether ${MAKE-make} sets \${MAKE}" >&5
1580 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1581 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1582 echo $ac_n "(cached) $ac_c" 1>&6
1584 cat > conftestmake <<\EOF
1586 @echo 'ac_maketemp="${MAKE}"'
1588 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1589 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1590 if test -n "$ac_maketemp"; then
1591 eval ac_cv_prog_make_${ac_make}_set=yes
1593 eval ac_cv_prog_make_${ac_make}_set=no
1597 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1598 echo "$ac_t""yes" 1>&6
1601 echo "$ac_t""no" 1>&6
1602 SET_MAKE="MAKE=${MAKE-make}"
1605 # Find a good install program. We prefer a C program (faster),
1606 # so one script is as good as another. But avoid the broken or
1607 # incompatible versions:
1608 # SysV /etc/install, /usr/sbin/install
1609 # SunOS /usr/etc/install
1610 # IRIX /sbin/install
1612 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1613 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1614 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1615 # ./install, which can be erroneously created by make from ./install.sh.
1616 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1617 echo "configure:1618: checking for a BSD compatible install" >&5
1618 if test -z "$INSTALL"; then
1619 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1620 echo $ac_n "(cached) $ac_c" 1>&6
1622 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1623 for ac_dir in $PATH; do
1624 # Account for people who put trailing slashes in PATH elements.
1626 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1628 # OSF1 and SCO ODT 3.0 have their own names for install.
1629 # Don't use installbsd from OSF since it installs stuff as root
1631 for ac_prog in ginstall scoinst install; do
1632 if test -f $ac_dir/$ac_prog; then
1633 if test $ac_prog = install &&
1634 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1635 # AIX install. It has an incompatible calling convention.
1638 ac_cv_path_install="$ac_dir/$ac_prog -c"
1649 if test "${ac_cv_path_install+set}" = set; then
1650 INSTALL="$ac_cv_path_install"
1652 # As a last resort, use the slow shell script. We don't cache a
1653 # path for INSTALL within a source directory, because that will
1654 # break other packages using the cache if that directory is
1655 # removed, or if the path is relative.
1656 INSTALL="$ac_install_sh"
1659 echo "$ac_t""$INSTALL" 1>&6
1661 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1662 # It thinks the first close brace ends the variable substitution.
1663 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1665 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1667 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1669 # Extract the first word of "ranlib", so it can be a program name with args.
1670 set dummy ranlib; ac_word=$2
1671 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1672 echo "configure:1673: checking for $ac_word" >&5
1673 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1674 echo $ac_n "(cached) $ac_c" 1>&6
1676 if test -n "$RANLIB"; then
1677 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1679 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1681 for ac_dir in $ac_dummy; do
1682 test -z "$ac_dir" && ac_dir=.
1683 if test -f $ac_dir/$ac_word; then
1684 ac_cv_prog_RANLIB="ranlib"
1689 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1692 RANLIB="$ac_cv_prog_RANLIB"
1693 if test -n "$RANLIB"; then
1694 echo "$ac_t""$RANLIB" 1>&6
1696 echo "$ac_t""no" 1>&6
1699 echo $ac_n "checking build system type""... $ac_c" 1>&6
1700 echo "configure:1701: checking build system type" >&5
1703 case "$build_alias" in
1706 NONE) build_alias=$host_alias ;;
1707 *) build_alias=$nonopt ;;
1711 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1712 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1713 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1714 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1715 echo "$ac_t""$build" 1>&6
1717 if test $host != $build; then
1718 ac_tool_prefix=${host_alias}-
1723 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1724 set dummy ${ac_tool_prefix}ar; ac_word=$2
1725 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1726 echo "configure:1727: checking for $ac_word" >&5
1727 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1728 echo $ac_n "(cached) $ac_c" 1>&6
1730 if test -n "$AR"; then
1731 ac_cv_prog_AR="$AR" # Let the user override the test.
1733 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1735 for ac_dir in $ac_dummy; do
1736 test -z "$ac_dir" && ac_dir=.
1737 if test -f $ac_dir/$ac_word; then
1738 ac_cv_prog_AR="${ac_tool_prefix}ar"
1746 if test -n "$AR"; then
1747 echo "$ac_t""$AR" 1>&6
1749 echo "$ac_t""no" 1>&6
1753 if test -z "$ac_cv_prog_AR"; then
1754 if test -n "$ac_tool_prefix"; then
1755 # Extract the first word of "ar", so it can be a program name with args.
1756 set dummy ar; ac_word=$2
1757 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1758 echo "configure:1759: checking for $ac_word" >&5
1759 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1760 echo $ac_n "(cached) $ac_c" 1>&6
1762 if test -n "$AR"; then
1763 ac_cv_prog_AR="$AR" # Let the user override the test.
1765 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1767 for ac_dir in $ac_dummy; do
1768 test -z "$ac_dir" && ac_dir=.
1769 if test -f $ac_dir/$ac_word; then
1775 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1779 if test -n "$AR"; then
1780 echo "$ac_t""$AR" 1>&6
1782 echo "$ac_t""no" 1>&6
1791 echo $ac_n "checking for inline""... $ac_c" 1>&6
1792 echo "configure:1793: checking for inline" >&5
1793 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1794 echo $ac_n "(cached) $ac_c" 1>&6
1797 for ac_kw in inline __inline__ __inline; do
1798 cat > conftest.$ac_ext <<EOF
1799 #line 1800 "configure"
1800 #include "confdefs.h"
1806 if { (eval echo configure:1807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1808 ac_cv_c_inline=$ac_kw; break
1810 echo "configure: failed program was:" >&5
1811 cat conftest.$ac_ext >&5
1818 echo "$ac_t""$ac_cv_c_inline" 1>&6
1819 case "$ac_cv_c_inline" in
1821 no) cat >> confdefs.h <<\EOF
1825 *) cat >> confdefs.h <<EOF
1826 #define inline $ac_cv_c_inline
1831 echo $ac_n "checking for working const""... $ac_c" 1>&6
1832 echo "configure:1833: checking for working const" >&5
1833 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1834 echo $ac_n "(cached) $ac_c" 1>&6
1836 cat > conftest.$ac_ext <<EOF
1837 #line 1838 "configure"
1838 #include "confdefs.h"
1842 /* Ultrix mips cc rejects this. */
1843 typedef int charset[2]; const charset x;
1844 /* SunOS 4.1.1 cc rejects this. */
1845 char const *const *ccp;
1847 /* NEC SVR4.0.2 mips cc rejects this. */
1848 struct point {int x, y;};
1849 static struct point const zero = {0,0};
1850 /* AIX XL C 1.02.0.0 rejects this.
1851 It does not let you subtract one const X* pointer from another in an arm
1852 of an if-expression whose if-part is not a constant expression */
1853 const char *g = "string";
1854 ccp = &g + (g ? g-g : 0);
1855 /* HPUX 7.0 cc rejects these. */
1858 ccp = (char const *const *) p;
1859 { /* SCO 3.2v4 cc rejects this. */
1861 char const *s = 0 ? (char *) 0 : (char const *) 0;
1865 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1867 const int *foo = &x[0];
1870 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1871 typedef const int *iptr;
1875 { /* AIX XL C 1.02.0.0 rejects this saying
1876 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1877 struct s { int j; const int *ap[3]; };
1878 struct s *b; b->j = 5;
1880 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1886 if { (eval echo configure:1887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1890 echo "configure: failed program was:" >&5
1891 cat conftest.$ac_ext >&5
1898 echo "$ac_t""$ac_cv_c_const" 1>&6
1899 if test $ac_cv_c_const = no; then
1900 cat >> confdefs.h <<\EOF
1907 # Extract the first word of "dbx", so it can be a program name with args.
1908 set dummy dbx; ac_word=$2
1909 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1910 echo "configure:1911: checking for $ac_word" >&5
1911 if eval "test \"`echo '$''{'ac_cv_path_DBX'+set}'`\" = set"; then
1912 echo $ac_n "(cached) $ac_c" 1>&6
1916 ac_cv_path_DBX="$DBX" # Let the user override the test with a path.
1919 ac_cv_path_DBX="$DBX" # Let the user override the test with a dos path.
1922 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1924 for ac_dir in $ac_dummy; do
1925 test -z "$ac_dir" && ac_dir=.
1926 if test -f $ac_dir/$ac_word; then
1927 ac_cv_path_DBX="$ac_dir/$ac_word"
1932 test -z "$ac_cv_path_DBX" && ac_cv_path_DBX="no"
1936 DBX="$ac_cv_path_DBX"
1937 if test -n "$DBX"; then
1938 echo "$ac_t""$DBX" 1>&6
1940 echo "$ac_t""no" 1>&6
1943 # Extract the first word of "gdb", so it can be a program name with args.
1944 set dummy gdb; ac_word=$2
1945 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1946 echo "configure:1947: checking for $ac_word" >&5
1947 if eval "test \"`echo '$''{'ac_cv_path_GDB'+set}'`\" = set"; then
1948 echo $ac_n "(cached) $ac_c" 1>&6
1952 ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
1955 ac_cv_path_GDB="$GDB" # Let the user override the test with a dos path.
1958 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1960 for ac_dir in $ac_dummy; do
1961 test -z "$ac_dir" && ac_dir=.
1962 if test -f $ac_dir/$ac_word; then
1963 ac_cv_path_GDB="$ac_dir/$ac_word"
1968 test -z "$ac_cv_path_GDB" && ac_cv_path_GDB="no"
1972 GDB="$ac_cv_path_GDB"
1973 if test -n "$GDB"; then
1974 echo "$ac_t""$GDB" 1>&6
1976 echo "$ac_t""no" 1>&6
1979 # Extract the first word of "sdb", so it can be a program name with args.
1980 set dummy sdb; ac_word=$2
1981 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1982 echo "configure:1983: checking for $ac_word" >&5
1983 if eval "test \"`echo '$''{'ac_cv_path_SDB'+set}'`\" = set"; then
1984 echo $ac_n "(cached) $ac_c" 1>&6
1988 ac_cv_path_SDB="$SDB" # Let the user override the test with a path.
1991 ac_cv_path_SDB="$SDB" # Let the user override the test with a dos path.
1994 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1996 for ac_dir in $ac_dummy; do
1997 test -z "$ac_dir" && ac_dir=.
1998 if test -f $ac_dir/$ac_word; then
1999 ac_cv_path_SDB="$ac_dir/$ac_word"
2004 test -z "$ac_cv_path_SDB" && ac_cv_path_SDB="no"
2008 SDB="$ac_cv_path_SDB"
2009 if test -n "$SDB"; then
2010 echo "$ac_t""$SDB" 1>&6
2012 echo "$ac_t""no" 1>&6
2016 if test $GDB != no ; then
2018 elif test $DBX != no ; then
2020 elif test $SDB != no ; then
2028 # The following templates should be used with newer automakes
2029 # instead of acconfig.h
2031 #AH_TEMPLATE([sig_atomic_t],
2032 # [/* Define to `int' if <signal.h> doesn't define.])
2033 #AH_TEMPLATE([HAVE_START_COLOR],
2034 # [Define if you have start_color, as a function or macro.])
2035 #AH_TEMPLATE([HAVE_TYPEAHEAD],
2036 # [Define if you have typeahead, as a function or macro.])
2037 #AH_TEMPLATE([HAVE_BKGDSET],
2038 # [Define if you have bkgdset, as a function or macro.])
2039 #AH_TEMPLATE([HAVE_CURS_SET],
2040 # [Define if you have curs_set, as a function or macro.])
2041 #AH_TEMPLATE([HAVE_META],
2042 # [Define if you have meta, as a function or macro.])
2043 #AH_TEMPLATE([HAVE_USE_DEFAULT_COLORS],
2044 # [Define if you have use_default_colors, as a function or macro.])
2045 #AH_TEMPLATE([HAVE_RESIZETERM],
2046 # [Define if you have resizeterm, as a function or macro.])
2047 #AH_TEMPLATE([SIG_ATOMIC_VOLATILE_T],
2048 # [Some systems declare sig_atomic_t as volatile, some others -- no.
2049 # This define will have value `sig_atomic_t' or
2050 # `volatile sig_atomic_t' accordingly.])
2051 #AH_TEMPLATE([ICONV_NONTRANS],
2052 # [Define as 1 if iconv() only converts exactly and we should treat
2053 # all return values other than (size_t)(-1) as equivalent.])
2056 ac_aux_path_sendmail=/usr/sbin:/usr/lib
2057 # Extract the first word of "sendmail", so it can be a program name with args.
2058 set dummy sendmail; ac_word=$2
2059 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2060 echo "configure:2061: checking for $ac_word" >&5
2061 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2062 echo $ac_n "(cached) $ac_c" 1>&6
2066 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2069 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
2072 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2073 ac_dummy="$PATH:$ac_aux_path_sendmail"
2074 for ac_dir in $ac_dummy; do
2075 test -z "$ac_dir" && ac_dir=.
2076 if test -f $ac_dir/$ac_word; then
2077 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2082 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/sbin/sendmail"
2086 SENDMAIL="$ac_cv_path_SENDMAIL"
2087 if test -n "$SENDMAIL"; then
2088 echo "$ac_t""$SENDMAIL" 1>&6
2090 echo "$ac_t""no" 1>&6
2093 cat >> confdefs.h <<EOF
2094 #define SENDMAIL "$ac_cv_path_SENDMAIL"
2099 if test -f $srcdir/EXPORTABLE ; then
2104 # Check whether --enable-pgp or --disable-pgp was given.
2105 if test "${enable_pgp+set}" = set; then
2106 enableval="$enable_pgp"
2107 if test x$enableval = xno ; then
2114 if test x$have_pgp != xno ; then
2115 cat >> confdefs.h <<\EOF
2116 #define CRYPT_BACKEND_CLASSIC_PGP 1
2119 PGPAUX_TARGET="pgpring pgpewrap"
2120 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pgp.o pgpinvoke.o pgpkey.o pgplib.o gnupgparse.o pgpmicalg.o pgppacket.o crypt-mod-pgp-classic.o"
2123 # Check whether --enable-smime or --disable-smime was given.
2124 if test "${enable_smime+set}" = set; then
2125 enableval="$enable_smime"
2126 if test x$enableval = xno ; then
2133 if test x$have_smime != xno ; then
2134 cat >> confdefs.h <<\EOF
2135 #define CRYPT_BACKEND_CLASSIC_SMIME 1
2138 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS smime.o crypt-mod-smime-classic.o"
2139 SMIMEAUX_TARGET="smime_keys"
2142 # Check whether --with-mixmaster or --without-mixmaster was given.
2143 if test "${with_mixmaster+set}" = set; then
2144 withval="$with_mixmaster"
2145 if test -x "$withval" ; then
2146 MIXMASTER="$withval"
2148 MIXMASTER="mixmaster"
2150 OPS="$OPS \$(srcdir)/OPS.MIX"
2151 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS remailer.o"
2152 cat >> confdefs.h <<EOF
2153 #define MIXMASTER "$MIXMASTER"
2161 # We now require all OPS
2162 OPS="$OPS \$(srcdir)/OPS.PGP \$(srcdir)/OPS.SMIME \$(srcdir)/OPS.CRYPT "
2169 cat >> confdefs.h <<EOF
2170 #define SUBVERSION "$SUBVERSION"
2175 # Extract the first word of "ispell", so it can be a program name with args.
2176 set dummy ispell; ac_word=$2
2177 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2178 echo "configure:2179: checking for $ac_word" >&5
2179 if eval "test \"`echo '$''{'ac_cv_path_ISPELL'+set}'`\" = set"; then
2180 echo $ac_n "(cached) $ac_c" 1>&6
2184 ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a path.
2187 ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a dos path.
2190 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2192 for ac_dir in $ac_dummy; do
2193 test -z "$ac_dir" && ac_dir=.
2194 if test -f $ac_dir/$ac_word; then
2195 ac_cv_path_ISPELL="$ac_dir/$ac_word"
2200 test -z "$ac_cv_path_ISPELL" && ac_cv_path_ISPELL="no"
2204 ISPELL="$ac_cv_path_ISPELL"
2205 if test -n "$ISPELL"; then
2206 echo "$ac_t""$ISPELL" 1>&6
2208 echo "$ac_t""no" 1>&6
2211 if test $ISPELL != no; then
2212 cat >> confdefs.h <<EOF
2213 #define ISPELL "$ISPELL"
2218 # Check whether --with-slang or --without-slang was given.
2219 if test "${with_slang+set}" = set; then
2220 withval="$with_slang"
2221 echo $ac_n "checking if this is a BSD system""... $ac_c" 1>&6
2222 echo "configure:2223: checking if this is a BSD system" >&5
2223 if eval "test \"`echo '$''{'mutt_cv_bsdish'+set}'`\" = set"; then
2224 echo $ac_n "(cached) $ac_c" 1>&6
2226 if test "$cross_compiling" = yes; then
2229 cat > conftest.$ac_ext <<EOF
2230 #line 2231 "configure"
2231 #include "confdefs.h"
2232 #include <sys/param.h>
2243 if { (eval echo configure:2244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2247 echo "configure: failed program was:" >&5
2248 cat conftest.$ac_ext >&5
2257 echo "$ac_t""$mutt_cv_bsdish" 1>&6
2259 echo $ac_n "checking for S-Lang""... $ac_c" 1>&6
2260 echo "configure:2261: checking for S-Lang" >&5
2261 if test $withval = yes; then
2262 if test -d $srcdir/../slang; then
2263 mutt_cv_slang=$srcdir/../slang/src
2264 CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
2265 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
2267 if test -d $mutt_cv_prefix/include/slang; then
2268 CPPFLAGS="$CPPFLAGS -I$mutt_cv_prefix/include/slang"
2269 elif test -d /usr/include/slang; then
2270 CPPFLAGS="$CPPFLAGS -I/usr/include/slang"
2275 if test -f $withval/src/slang.h; then
2276 mutt_cv_slang=$withval/src
2277 CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
2278 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
2280 mutt_cv_slang=$withval
2281 if test -d $withval/include/slang; then
2282 CPPFLAGS="$CPPFLAGS -I${withval}/include/slang"
2283 elif test -d $withval/include; then
2284 CPPFLAGS="$CPPFLAGS -I${withval}/include"
2286 LDFLAGS="$LDFLAGS -L${withval}/lib"
2289 echo "$ac_t""$mutt_cv_slang" 1>&6
2290 if test $mutt_cv_bsdish = yes; then
2291 echo $ac_n "checking for main in -ltermlib""... $ac_c" 1>&6
2292 echo "configure:2293: checking for main in -ltermlib" >&5
2293 ac_lib_var=`echo termlib'_'main | sed 'y%./+-%__p_%'`
2294 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2295 echo $ac_n "(cached) $ac_c" 1>&6
2297 ac_save_LIBS="$LIBS"
2298 LIBS="-ltermlib $LIBS"
2299 cat > conftest.$ac_ext <<EOF
2300 #line 2301 "configure"
2301 #include "confdefs.h"
2307 if { (eval echo configure:2308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2309 eval "ac_cv_lib_$ac_lib_var=yes"
2311 echo "configure: failed program was:" >&5
2312 cat conftest.$ac_ext >&5
2314 eval "ac_cv_lib_$ac_lib_var=no"
2317 LIBS="$ac_save_LIBS"
2320 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2321 echo "$ac_t""yes" 1>&6
2322 ac_tr_lib=HAVE_LIB`echo termlib | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2323 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2324 cat >> confdefs.h <<EOF
2325 #define $ac_tr_lib 1
2328 LIBS="-ltermlib $LIBS"
2331 echo "$ac_t""no" 1>&6
2335 cat >> confdefs.h <<\EOF
2336 #define USE_SLANG_CURSES 1
2339 cat >> confdefs.h <<\EOF
2340 #define HAVE_COLOR 1
2343 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
2346 echo $ac_n "checking for SLtt_get_terminfo in -lslang""... $ac_c" 1>&6
2347 echo "configure:2348: checking for SLtt_get_terminfo in -lslang" >&5
2348 ac_lib_var=`echo slang'_'SLtt_get_terminfo | sed 'y%./+-%__p_%'`
2349 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2350 echo $ac_n "(cached) $ac_c" 1>&6
2352 ac_save_LIBS="$LIBS"
2353 LIBS="-lslang -lm $LIBS"
2354 cat > conftest.$ac_ext <<EOF
2355 #line 2356 "configure"
2356 #include "confdefs.h"
2357 /* Override any gcc2 internal prototype to avoid an error. */
2358 /* We use char because int might match the return type of a gcc2
2359 builtin and then its argument prototype would still apply. */
2360 char SLtt_get_terminfo();
2366 if { (eval echo configure:2367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2368 eval "ac_cv_lib_$ac_lib_var=yes"
2370 echo "configure: failed program was:" >&5
2371 cat conftest.$ac_ext >&5
2373 eval "ac_cv_lib_$ac_lib_var=no"
2376 LIBS="$ac_save_LIBS"
2379 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2380 echo "$ac_t""yes" 1>&6
2381 MUTTLIBS="$MUTTLIBS -lslang -lm"
2383 echo "$ac_t""no" 1>&6
2384 { echo "configure: error: unable to compile. check config.log" 1>&2; exit 1; }
2391 # Check whether --with-curses or --without-curses was given.
2392 if test "${with_curses+set}" = set; then
2393 withval="$with_curses"
2394 if test $withval != yes; then
2395 mutt_cv_curses=$withval
2397 if test x$mutt_cv_curses != x/usr; then
2398 LDFLAGS="-L${mutt_cv_curses}/lib $LDFLAGS"
2399 CPPFLAGS="$CPPFLAGS -I${mutt_cv_curses}/include"
2404 echo $ac_n "checking for initscr""... $ac_c" 1>&6
2405 echo "configure:2406: checking for initscr" >&5
2406 if eval "test \"`echo '$''{'ac_cv_func_initscr'+set}'`\" = set"; then
2407 echo $ac_n "(cached) $ac_c" 1>&6
2409 cat > conftest.$ac_ext <<EOF
2410 #line 2411 "configure"
2411 #include "confdefs.h"
2412 /* System header to define __stub macros and hopefully few prototypes,
2413 which can conflict with char initscr(); below. */
2415 /* Override any gcc2 internal prototype to avoid an error. */
2416 /* We use char because int might match the return type of a gcc2
2417 builtin and then its argument prototype would still apply. */
2422 /* The GNU C library defines this for functions which it implements
2423 to always fail with ENOSYS. Some functions are actually named
2424 something starting with __ and the normal name is an alias. */
2425 #if defined (__stub_initscr) || defined (__stub___initscr)
2433 if { (eval echo configure:2434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2435 eval "ac_cv_func_initscr=yes"
2437 echo "configure: failed program was:" >&5
2438 cat conftest.$ac_ext >&5
2440 eval "ac_cv_func_initscr=no"
2445 if eval "test \"`echo '$ac_cv_func_'initscr`\" = yes"; then
2446 echo "$ac_t""yes" 1>&6
2449 echo "$ac_t""no" 1>&6
2451 cf_ncurses="ncurses"
2452 for lib in ncurses ncursesw
2454 echo $ac_n "checking for waddnwstr in -l$lib""... $ac_c" 1>&6
2455 echo "configure:2456: checking for waddnwstr in -l$lib" >&5
2456 ac_lib_var=`echo $lib'_'waddnwstr | sed 'y%./+-%__p_%'`
2457 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2458 echo $ac_n "(cached) $ac_c" 1>&6
2460 ac_save_LIBS="$LIBS"
2462 cat > conftest.$ac_ext <<EOF
2463 #line 2464 "configure"
2464 #include "confdefs.h"
2465 /* Override any gcc2 internal prototype to avoid an error. */
2466 /* We use char because int might match the return type of a gcc2
2467 builtin and then its argument prototype would still apply. */
2474 if { (eval echo configure:2475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2476 eval "ac_cv_lib_$ac_lib_var=yes"
2478 echo "configure: failed program was:" >&5
2479 cat conftest.$ac_ext >&5
2481 eval "ac_cv_lib_$ac_lib_var=no"
2484 LIBS="$ac_save_LIBS"
2487 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2488 echo "$ac_t""yes" 1>&6
2489 cf_ncurses="$lib"; break
2491 echo "$ac_t""no" 1>&6
2495 echo $ac_n "checking for initscr in -l$cf_ncurses""... $ac_c" 1>&6
2496 echo "configure:2497: checking for initscr in -l$cf_ncurses" >&5
2497 ac_lib_var=`echo $cf_ncurses'_'initscr | sed 'y%./+-%__p_%'`
2498 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2499 echo $ac_n "(cached) $ac_c" 1>&6
2501 ac_save_LIBS="$LIBS"
2502 LIBS="-l$cf_ncurses $LIBS"
2503 cat > conftest.$ac_ext <<EOF
2504 #line 2505 "configure"
2505 #include "confdefs.h"
2506 /* Override any gcc2 internal prototype to avoid an error. */
2507 /* We use char because int might match the return type of a gcc2
2508 builtin and then its argument prototype would still apply. */
2515 if { (eval echo configure:2516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2517 eval "ac_cv_lib_$ac_lib_var=yes"
2519 echo "configure: failed program was:" >&5
2520 cat conftest.$ac_ext >&5
2522 eval "ac_cv_lib_$ac_lib_var=no"
2525 LIBS="$ac_save_LIBS"
2528 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2529 echo "$ac_t""yes" 1>&6
2530 MUTTLIBS="$MUTTLIBS -l$cf_ncurses"
2531 if test x$mutt_cv_curses = x/usr -a -d /usr/include/ncurses; then
2532 CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
2535 if test "$cf_ncurses" = ncursesw; then
2536 for ac_hdr in ncursesw/ncurses.h
2538 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2539 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2540 echo "configure:2541: checking for $ac_hdr" >&5
2541 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2542 echo $ac_n "(cached) $ac_c" 1>&6
2544 cat > conftest.$ac_ext <<EOF
2545 #line 2546 "configure"
2546 #include "confdefs.h"
2549 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2550 { (eval echo configure:2551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2551 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2552 if test -z "$ac_err"; then
2554 eval "ac_cv_header_$ac_safe=yes"
2557 echo "configure: failed program was:" >&5
2558 cat conftest.$ac_ext >&5
2560 eval "ac_cv_header_$ac_safe=no"
2564 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2565 echo "$ac_t""yes" 1>&6
2566 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2567 cat >> confdefs.h <<EOF
2568 #define $ac_tr_hdr 1
2570 cf_cv_ncurses_header="ncursesw/ncurses.h"
2572 echo "$ac_t""no" 1>&6
2577 for ac_hdr in ncurses.h
2579 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2580 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2581 echo "configure:2582: checking for $ac_hdr" >&5
2582 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2583 echo $ac_n "(cached) $ac_c" 1>&6
2585 cat > conftest.$ac_ext <<EOF
2586 #line 2587 "configure"
2587 #include "confdefs.h"
2590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2591 { (eval echo configure:2592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2592 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2593 if test -z "$ac_err"; then
2595 eval "ac_cv_header_$ac_safe=yes"
2598 echo "configure: failed program was:" >&5
2599 cat conftest.$ac_ext >&5
2601 eval "ac_cv_header_$ac_safe=no"
2605 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2606 echo "$ac_t""yes" 1>&6
2607 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2608 cat >> confdefs.h <<EOF
2609 #define $ac_tr_hdr 1
2611 cf_cv_ncurses_header="ncurses.h"
2613 echo "$ac_t""no" 1>&6
2619 echo "$ac_t""no" 1>&6
2621 echo $ac_n "checking for initscr""... $ac_c" 1>&6
2622 echo "configure:2623: checking for initscr" >&5
2623 if eval "test \"`echo '$''{'ac_cv_func_initscr'+set}'`\" = set"; then
2624 echo $ac_n "(cached) $ac_c" 1>&6
2626 cat > conftest.$ac_ext <<EOF
2627 #line 2628 "configure"
2628 #include "confdefs.h"
2629 /* System header to define __stub macros and hopefully few prototypes,
2630 which can conflict with char initscr(); below. */
2632 /* Override any gcc2 internal prototype to avoid an error. */
2633 /* We use char because int might match the return type of a gcc2
2634 builtin and then its argument prototype would still apply. */
2639 /* The GNU C library defines this for functions which it implements
2640 to always fail with ENOSYS. Some functions are actually named
2641 something starting with __ and the normal name is an alias. */
2642 #if defined (__stub_initscr) || defined (__stub___initscr)
2650 if { (eval echo configure:2651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2652 eval "ac_cv_func_initscr=yes"
2654 echo "configure: failed program was:" >&5
2655 cat conftest.$ac_ext >&5
2657 eval "ac_cv_func_initscr=no"
2662 if eval "test \"`echo '$ac_cv_func_'initscr`\" = yes"; then
2663 echo "$ac_t""yes" 1>&6
2666 echo "$ac_t""no" 1>&6
2668 case $host_os in #(vi
2670 echo $ac_n "checking for tgoto in -lmytinfo""... $ac_c" 1>&6
2671 echo "configure:2672: checking for tgoto in -lmytinfo" >&5
2672 ac_lib_var=`echo mytinfo'_'tgoto | sed 'y%./+-%__p_%'`
2673 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2674 echo $ac_n "(cached) $ac_c" 1>&6
2676 ac_save_LIBS="$LIBS"
2677 LIBS="-lmytinfo $LIBS"
2678 cat > conftest.$ac_ext <<EOF
2679 #line 2680 "configure"
2680 #include "confdefs.h"
2681 /* Override any gcc2 internal prototype to avoid an error. */
2682 /* We use char because int might match the return type of a gcc2
2683 builtin and then its argument prototype would still apply. */
2690 if { (eval echo configure:2691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2692 eval "ac_cv_lib_$ac_lib_var=yes"
2694 echo "configure: failed program was:" >&5
2695 cat conftest.$ac_ext >&5
2697 eval "ac_cv_lib_$ac_lib_var=no"
2700 LIBS="$ac_save_LIBS"
2703 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2704 echo "$ac_t""yes" 1>&6
2705 LIBS="-lmytinfo $LIBS"
2707 echo "$ac_t""no" 1>&6
2712 echo $ac_n "checking for initscr in -lcur_colr""... $ac_c" 1>&6
2713 echo "configure:2714: checking for initscr in -lcur_colr" >&5
2714 ac_lib_var=`echo cur_colr'_'initscr | sed 'y%./+-%__p_%'`
2715 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2716 echo $ac_n "(cached) $ac_c" 1>&6
2718 ac_save_LIBS="$LIBS"
2719 LIBS="-lcur_colr $LIBS"
2720 cat > conftest.$ac_ext <<EOF
2721 #line 2722 "configure"
2722 #include "confdefs.h"
2723 /* Override any gcc2 internal prototype to avoid an error. */
2724 /* We use char because int might match the return type of a gcc2
2725 builtin and then its argument prototype would still apply. */
2732 if { (eval echo configure:2733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2734 eval "ac_cv_lib_$ac_lib_var=yes"
2736 echo "configure: failed program was:" >&5
2737 cat conftest.$ac_ext >&5
2739 eval "ac_cv_lib_$ac_lib_var=no"
2742 LIBS="$ac_save_LIBS"
2745 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2746 echo "$ac_t""yes" 1>&6
2748 LIBS="-lcur_colr $LIBS"
2749 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
2750 ac_cv_func_initscr=yes
2753 echo "$ac_t""no" 1>&6
2755 echo $ac_n "checking for initscr in -lHcurses""... $ac_c" 1>&6
2756 echo "configure:2757: checking for initscr in -lHcurses" >&5
2757 ac_lib_var=`echo Hcurses'_'initscr | sed 'y%./+-%__p_%'`
2758 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2759 echo $ac_n "(cached) $ac_c" 1>&6
2761 ac_save_LIBS="$LIBS"
2762 LIBS="-lHcurses $LIBS"
2763 cat > conftest.$ac_ext <<EOF
2764 #line 2765 "configure"
2765 #include "confdefs.h"
2766 /* Override any gcc2 internal prototype to avoid an error. */
2767 /* We use char because int might match the return type of a gcc2
2768 builtin and then its argument prototype would still apply. */
2775 if { (eval echo configure:2776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2777 eval "ac_cv_lib_$ac_lib_var=yes"
2779 echo "configure: failed program was:" >&5
2780 cat conftest.$ac_ext >&5
2782 eval "ac_cv_lib_$ac_lib_var=no"
2785 LIBS="$ac_save_LIBS"
2788 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2789 echo "$ac_t""yes" 1>&6
2791 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
2792 LIBS="-lHcurses $LIBS"
2793 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
2794 ac_cv_func_initscr=yes
2797 echo "$ac_t""no" 1>&6
2803 linux*) # Suse Linux does not follow /usr/lib convention
2808 if test ".$With5lib" != ".no" ; then
2809 if test -d /usr/5lib ; then
2811 CPPFLAGS="$CPPFLAGS -I/usr/5include"
2812 LIBS="$LIBS -L/usr/5lib"
2816 if test ".$ac_cv_func_initscr" != .yes ; then
2817 cf_save_LIBS="$LIBS"
2821 # Check for library containing tgoto. Do this before curses library
2822 # because it may be needed to link the test-case for initscr.
2823 echo $ac_n "checking for tgoto""... $ac_c" 1>&6
2824 echo "configure:2825: checking for tgoto" >&5
2825 if eval "test \"`echo '$''{'ac_cv_func_tgoto'+set}'`\" = set"; then
2826 echo $ac_n "(cached) $ac_c" 1>&6
2828 cat > conftest.$ac_ext <<EOF
2829 #line 2830 "configure"
2830 #include "confdefs.h"
2831 /* System header to define __stub macros and hopefully few prototypes,
2832 which can conflict with char tgoto(); below. */
2834 /* Override any gcc2 internal prototype to avoid an error. */
2835 /* We use char because int might match the return type of a gcc2
2836 builtin and then its argument prototype would still apply. */
2841 /* The GNU C library defines this for functions which it implements
2842 to always fail with ENOSYS. Some functions are actually named
2843 something starting with __ and the normal name is an alias. */
2844 #if defined (__stub_tgoto) || defined (__stub___tgoto)
2852 if { (eval echo configure:2853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2854 eval "ac_cv_func_tgoto=yes"
2856 echo "configure: failed program was:" >&5
2857 cat conftest.$ac_ext >&5
2859 eval "ac_cv_func_tgoto=no"
2864 if eval "test \"`echo '$ac_cv_func_'tgoto`\" = yes"; then
2865 echo "$ac_t""yes" 1>&6
2866 cf_term_lib=predefined
2868 echo "$ac_t""no" 1>&6
2870 for cf_term_lib in termcap termlib unknown
2872 echo $ac_n "checking for tgoto in -l$cf_term_lib""... $ac_c" 1>&6
2873 echo "configure:2874: checking for tgoto in -l$cf_term_lib" >&5
2874 ac_lib_var=`echo $cf_term_lib'_'tgoto | sed 'y%./+-%__p_%'`
2875 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2876 echo $ac_n "(cached) $ac_c" 1>&6
2878 ac_save_LIBS="$LIBS"
2879 LIBS="-l$cf_term_lib $LIBS"
2880 cat > conftest.$ac_ext <<EOF
2881 #line 2882 "configure"
2882 #include "confdefs.h"
2883 /* Override any gcc2 internal prototype to avoid an error. */
2884 /* We use char because int might match the return type of a gcc2
2885 builtin and then its argument prototype would still apply. */
2892 if { (eval echo configure:2893: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2894 eval "ac_cv_lib_$ac_lib_var=yes"
2896 echo "configure: failed program was:" >&5
2897 cat conftest.$ac_ext >&5
2899 eval "ac_cv_lib_$ac_lib_var=no"
2902 LIBS="$ac_save_LIBS"
2905 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2906 echo "$ac_t""yes" 1>&6
2909 echo "$ac_t""no" 1>&6
2917 # Check for library containing initscr
2918 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
2919 for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
2921 echo $ac_n "checking for initscr in -l$cf_curs_lib""... $ac_c" 1>&6
2922 echo "configure:2923: checking for initscr in -l$cf_curs_lib" >&5
2923 ac_lib_var=`echo $cf_curs_lib'_'initscr | sed 'y%./+-%__p_%'`
2924 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2925 echo $ac_n "(cached) $ac_c" 1>&6
2927 ac_save_LIBS="$LIBS"
2928 LIBS="-l$cf_curs_lib $LIBS"
2929 cat > conftest.$ac_ext <<EOF
2930 #line 2931 "configure"
2931 #include "confdefs.h"
2932 /* Override any gcc2 internal prototype to avoid an error. */
2933 /* We use char because int might match the return type of a gcc2
2934 builtin and then its argument prototype would still apply. */
2941 if { (eval echo configure:2942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2943 eval "ac_cv_lib_$ac_lib_var=yes"
2945 echo "configure: failed program was:" >&5
2946 cat conftest.$ac_ext >&5
2948 eval "ac_cv_lib_$ac_lib_var=no"
2951 LIBS="$ac_save_LIBS"
2954 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2955 echo "$ac_t""yes" 1>&6
2958 echo "$ac_t""no" 1>&6
2962 test $cf_curs_lib = unknown && { echo "configure: error: no curses library found" 1>&2; exit 1; }
2964 LIBS="-l$cf_curs_lib $cf_save_LIBS"
2965 if test "$cf_term_lib" = unknown ; then
2966 echo $ac_n "checking if we can link with $cf_curs_lib library""... $ac_c" 1>&6
2967 echo "configure:2968: checking if we can link with $cf_curs_lib library" >&5
2968 cat > conftest.$ac_ext <<EOF
2969 #line 2970 "configure"
2970 #include "confdefs.h"
2971 #include <${cf_cv_ncurses_header-curses.h}>
2976 if { (eval echo configure:2977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2980 echo "configure: failed program was:" >&5
2981 cat conftest.$ac_ext >&5
2986 echo "$ac_t""$cf_result" 1>&6
2987 test $cf_result = no && { echo "configure: error: Cannot link curses library" 1>&2; exit 1; }
2988 elif test "$cf_term_lib" != predefined ; then
2989 echo $ac_n "checking if we need both $cf_curs_lib and $cf_term_lib libraries""... $ac_c" 1>&6
2990 echo "configure:2991: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
2991 cat > conftest.$ac_ext <<EOF
2992 #line 2993 "configure"
2993 #include "confdefs.h"
2994 #include <${cf_cv_ncurses_header-curses.h}>
2996 initscr(); tgoto((char *)0, 0, 0);
2999 if { (eval echo configure:3000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3003 echo "configure: failed program was:" >&5
3004 cat conftest.$ac_ext >&5
3007 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
3008 cat > conftest.$ac_ext <<EOF
3009 #line 3010 "configure"
3010 #include "confdefs.h"
3011 #include <${cf_cv_ncurses_header-curses.h}>
3016 if { (eval echo configure:3017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3020 echo "configure: failed program was:" >&5
3021 cat conftest.$ac_ext >&5
3029 echo "$ac_t""$cf_result" 1>&6
3043 LIBS="$LIBS $MUTTLIBS"
3044 for ac_func in start_color typeahead bkgdset curs_set meta use_default_colors resizeterm
3047 echo $ac_n "checking for $ac_func declaration""... $ac_c" 1>&6
3048 echo "configure:3049: checking for $ac_func declaration" >&5
3049 if eval "test \"`echo '$''{'ac_cv_func_decl_$ac_func'+set}'`\" = set"; then
3050 echo $ac_n "(cached) $ac_c" 1>&6
3052 cat > conftest.$ac_ext <<EOF
3053 #line 3054 "configure"
3054 #include "confdefs.h"
3055 #include <${cf_cv_ncurses_header-curses.h}>
3058 extern int ${ac_func}();
3062 if { (eval echo configure:3063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3065 cat > conftest.$ac_ext <<EOF
3066 #line 3067 "configure"
3067 #include "confdefs.h"
3068 #include <${cf_cv_ncurses_header-curses.h}>
3071 int (*p)() = ${ac_func};
3075 if { (eval echo configure:3076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3078 eval "ac_cv_func_decl_$ac_func=yes"
3080 echo "configure: failed program was:" >&5
3081 cat conftest.$ac_ext >&5
3084 eval "ac_cv_func_decl_$ac_func=no"
3088 echo "configure: failed program was:" >&5
3089 cat conftest.$ac_ext >&5
3092 eval "ac_cv_func_decl_$ac_func=yes"
3097 if eval "test \"`echo '$ac_cv_func_'decl_$ac_func`\" = yes"; then
3098 echo "$ac_t""yes" 1>&6
3101 ac_tr_func=`echo HAVE_$ac_func | tr '[a-z]' '[A-Z]'`
3103 cat >> confdefs.h <<EOF
3104 #define $ac_tr_func 1
3108 echo "$ac_t""no" 1>&6
3112 if test "$ac_cv_func_decl_start_color" = yes; then
3113 cat >> confdefs.h <<\EOF
3114 #define HAVE_COLOR 1
3118 if test "$ac_cv_func_decl_resizeterm" = yes; then
3119 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
3126 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3127 echo "configure:3128: checking for ANSI C header files" >&5
3128 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3129 echo $ac_n "(cached) $ac_c" 1>&6
3131 cat > conftest.$ac_ext <<EOF
3132 #line 3133 "configure"
3133 #include "confdefs.h"
3139 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3140 { (eval echo configure:3141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3141 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3142 if test -z "$ac_err"; then
3144 ac_cv_header_stdc=yes
3147 echo "configure: failed program was:" >&5
3148 cat conftest.$ac_ext >&5
3150 ac_cv_header_stdc=no
3154 if test $ac_cv_header_stdc = yes; then
3155 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3156 cat > conftest.$ac_ext <<EOF
3157 #line 3158 "configure"
3158 #include "confdefs.h"
3161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3162 egrep "memchr" >/dev/null 2>&1; then
3166 ac_cv_header_stdc=no
3172 if test $ac_cv_header_stdc = yes; then
3173 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3174 cat > conftest.$ac_ext <<EOF
3175 #line 3176 "configure"
3176 #include "confdefs.h"
3179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3180 egrep "free" >/dev/null 2>&1; then
3184 ac_cv_header_stdc=no
3190 if test $ac_cv_header_stdc = yes; then
3191 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3192 if test "$cross_compiling" = yes; then
3195 cat > conftest.$ac_ext <<EOF
3196 #line 3197 "configure"
3197 #include "confdefs.h"
3199 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3200 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3201 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3202 int main () { int i; for (i = 0; i < 256; i++)
3203 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3207 if { (eval echo configure:3208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3211 echo "configure: failed program was:" >&5
3212 cat conftest.$ac_ext >&5
3214 ac_cv_header_stdc=no
3222 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3223 if test $ac_cv_header_stdc = yes; then
3224 cat >> confdefs.h <<\EOF
3225 #define STDC_HEADERS 1
3231 for ac_hdr in stdarg.h sys/ioctl.h ioctl.h sysexits.h
3233 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3234 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3235 echo "configure:3236: checking for $ac_hdr" >&5
3236 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3237 echo $ac_n "(cached) $ac_c" 1>&6
3239 cat > conftest.$ac_ext <<EOF
3240 #line 3241 "configure"
3241 #include "confdefs.h"
3244 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3245 { (eval echo configure:3246: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3246 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3247 if test -z "$ac_err"; then
3249 eval "ac_cv_header_$ac_safe=yes"
3252 echo "configure: failed program was:" >&5
3253 cat conftest.$ac_ext >&5
3255 eval "ac_cv_header_$ac_safe=no"
3259 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3260 echo "$ac_t""yes" 1>&6
3261 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3262 cat >> confdefs.h <<EOF
3263 #define $ac_tr_hdr 1
3267 echo "$ac_t""no" 1>&6
3271 for ac_hdr in sys/time.h sys/resource.h
3273 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3274 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3275 echo "configure:3276: checking for $ac_hdr" >&5
3276 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3277 echo $ac_n "(cached) $ac_c" 1>&6
3279 cat > conftest.$ac_ext <<EOF
3280 #line 3281 "configure"
3281 #include "confdefs.h"
3284 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3285 { (eval echo configure:3286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3286 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3287 if test -z "$ac_err"; then
3289 eval "ac_cv_header_$ac_safe=yes"
3292 echo "configure: failed program was:" >&5
3293 cat conftest.$ac_ext >&5
3295 eval "ac_cv_header_$ac_safe=no"
3299 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3300 echo "$ac_t""yes" 1>&6
3301 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3302 cat >> confdefs.h <<EOF
3303 #define $ac_tr_hdr 1
3307 echo "$ac_t""no" 1>&6
3311 for ac_hdr in unix.h
3313 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3314 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3315 echo "configure:3316: checking for $ac_hdr" >&5
3316 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3317 echo $ac_n "(cached) $ac_c" 1>&6
3319 cat > conftest.$ac_ext <<EOF
3320 #line 3321 "configure"
3321 #include "confdefs.h"
3324 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3325 { (eval echo configure:3326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3326 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3327 if test -z "$ac_err"; then
3329 eval "ac_cv_header_$ac_safe=yes"
3332 echo "configure: failed program was:" >&5
3333 cat conftest.$ac_ext >&5
3335 eval "ac_cv_header_$ac_safe=no"
3339 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3340 echo "$ac_t""yes" 1>&6
3341 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3342 cat >> confdefs.h <<EOF
3343 #define $ac_tr_hdr 1
3347 echo "$ac_t""no" 1>&6
3352 for ac_func in setrlimit getsid isctype
3354 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3355 echo "configure:3356: checking for $ac_func" >&5
3356 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3357 echo $ac_n "(cached) $ac_c" 1>&6
3359 cat > conftest.$ac_ext <<EOF
3360 #line 3361 "configure"
3361 #include "confdefs.h"
3362 /* System header to define __stub macros and hopefully few prototypes,
3363 which can conflict with char $ac_func(); below. */
3365 /* Override any gcc2 internal prototype to avoid an error. */
3366 /* We use char because int might match the return type of a gcc2
3367 builtin and then its argument prototype would still apply. */
3372 /* The GNU C library defines this for functions which it implements
3373 to always fail with ENOSYS. Some functions are actually named
3374 something starting with __ and the normal name is an alias. */
3375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3383 if { (eval echo configure:3384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3385 eval "ac_cv_func_$ac_func=yes"
3387 echo "configure: failed program was:" >&5
3388 cat conftest.$ac_ext >&5
3390 eval "ac_cv_func_$ac_func=no"
3395 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3396 echo "$ac_t""yes" 1>&6
3397 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3398 cat >> confdefs.h <<EOF
3399 #define $ac_tr_func 1
3403 echo "$ac_t""no" 1>&6
3408 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3409 echo "configure:3410: checking return type of signal handlers" >&5
3410 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3411 echo $ac_n "(cached) $ac_c" 1>&6
3413 cat > conftest.$ac_ext <<EOF
3414 #line 3415 "configure"
3415 #include "confdefs.h"
3416 #include <sys/types.h>
3422 extern "C" void (*signal (int, void (*)(int)))(int);
3424 void (*signal ()) ();
3431 if { (eval echo configure:3432: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3433 ac_cv_type_signal=void
3435 echo "configure: failed program was:" >&5
3436 cat conftest.$ac_ext >&5
3438 ac_cv_type_signal=int
3443 echo "$ac_t""$ac_cv_type_signal" 1>&6
3444 cat >> confdefs.h <<EOF
3445 #define RETSIGTYPE $ac_cv_type_signal
3450 echo $ac_n "checking for sig_atomic_t in signal.h""... $ac_c" 1>&6
3451 echo "configure:3452: checking for sig_atomic_t in signal.h" >&5
3452 cat > conftest.$ac_ext <<EOF
3453 #line 3454 "configure"
3454 #include "confdefs.h"
3457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3458 egrep "sig_atomic_t" >/dev/null 2>&1; then
3461 ac_cv_type_sig_atomic_t=yes;
3462 cat > conftest.$ac_ext <<EOF
3463 #line 3464 "configure"
3464 #include "confdefs.h"
3467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3468 egrep "volatile.*sig_atomic_t" >/dev/null 2>&1; then
3471 is_sig_atomic_t_volatile=yes;
3472 echo "$ac_t""yes, volatile" 1>&6
3477 is_sig_atomic_t_volatile=no;
3478 echo "$ac_t""yes, non volatile" 1>&6
3487 echo "$ac_t""no" 1>&6
3488 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
3489 echo "configure:3490: checking for sig_atomic_t" >&5
3490 if eval "test \"`echo '$''{'ac_cv_type_sig_atomic_t'+set}'`\" = set"; then
3491 echo $ac_n "(cached) $ac_c" 1>&6
3493 cat > conftest.$ac_ext <<EOF
3494 #line 3495 "configure"
3495 #include "confdefs.h"
3496 #include <sys/types.h>
3502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3503 egrep "(^|[^a-zA-Z_0-9])sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3505 ac_cv_type_sig_atomic_t=yes
3508 ac_cv_type_sig_atomic_t=no
3513 echo "$ac_t""$ac_cv_type_sig_atomic_t" 1>&6
3514 if test $ac_cv_type_sig_atomic_t = no; then
3515 cat >> confdefs.h <<\EOF
3516 #define sig_atomic_t int
3521 is_sig_atomic_t_volatile=no
3526 if test $is_sig_atomic_t_volatile = 'yes'
3528 cat >> confdefs.h <<\EOF
3529 #define SIG_ATOMIC_VOLATILE_T sig_atomic_t
3533 cat >> confdefs.h <<\EOF
3534 #define SIG_ATOMIC_VOLATILE_T volatile sig_atomic_t
3539 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3540 echo "configure:3541: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3541 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
3542 echo $ac_n "(cached) $ac_c" 1>&6
3544 cat > conftest.$ac_ext <<EOF
3545 #line 3546 "configure"
3546 #include "confdefs.h"
3547 #include <sys/types.h>
3549 /* NetBSD declares sys_siglist in unistd.h. */
3550 #ifdef HAVE_UNISTD_H
3554 char *msg = *(sys_siglist + 1);
3557 if { (eval echo configure:3558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3559 ac_cv_decl_sys_siglist=yes
3561 echo "configure: failed program was:" >&5
3562 cat conftest.$ac_ext >&5
3564 ac_cv_decl_sys_siglist=no
3569 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3570 if test $ac_cv_decl_sys_siglist = yes; then
3571 cat >> confdefs.h <<\EOF
3572 #define SYS_SIGLIST_DECLARED 1
3578 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3579 echo "configure:3580: checking whether byte ordering is bigendian" >&5
3580 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3581 echo $ac_n "(cached) $ac_c" 1>&6
3583 ac_cv_c_bigendian=unknown
3584 # See if sys/param.h defines the BYTE_ORDER macro.
3585 cat > conftest.$ac_ext <<EOF
3586 #line 3587 "configure"
3587 #include "confdefs.h"
3588 #include <sys/types.h>
3589 #include <sys/param.h>
3592 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3597 if { (eval echo configure:3598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3599 # It does; now see whether it defined to BIG_ENDIAN or not.
3600 cat > conftest.$ac_ext <<EOF
3601 #line 3602 "configure"
3602 #include "confdefs.h"
3603 #include <sys/types.h>
3604 #include <sys/param.h>
3607 #if BYTE_ORDER != BIG_ENDIAN
3612 if { (eval echo configure:3613: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3614 ac_cv_c_bigendian=yes
3616 echo "configure: failed program was:" >&5
3617 cat conftest.$ac_ext >&5
3619 ac_cv_c_bigendian=no
3623 echo "configure: failed program was:" >&5
3624 cat conftest.$ac_ext >&5
3627 if test $ac_cv_c_bigendian = unknown; then
3628 if test "$cross_compiling" = yes; then
3629 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3631 cat > conftest.$ac_ext <<EOF
3632 #line 3633 "configure"
3633 #include "confdefs.h"
3635 /* Are we little or big endian? From Harbison&Steele. */
3639 char c[sizeof (long)];
3642 exit (u.c[sizeof (long) - 1] == 1);
3645 if { (eval echo configure:3646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3647 ac_cv_c_bigendian=no
3649 echo "configure: failed program was:" >&5
3650 cat conftest.$ac_ext >&5
3652 ac_cv_c_bigendian=yes
3660 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3661 if test $ac_cv_c_bigendian = yes; then
3662 cat >> confdefs.h <<\EOF
3663 #define WORDS_BIGENDIAN 1
3668 for ac_hdr in inttypes.h stdint.h
3670 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3671 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3672 echo "configure:3673: checking for $ac_hdr" >&5
3673 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3674 echo $ac_n "(cached) $ac_c" 1>&6
3676 cat > conftest.$ac_ext <<EOF
3677 #line 3678 "configure"
3678 #include "confdefs.h"
3681 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3682 { (eval echo configure:3683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3683 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3684 if test -z "$ac_err"; then
3686 eval "ac_cv_header_$ac_safe=yes"
3689 echo "configure: failed program was:" >&5
3690 cat conftest.$ac_ext >&5
3692 eval "ac_cv_header_$ac_safe=no"
3696 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3697 echo "$ac_t""yes" 1>&6
3698 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3699 cat >> confdefs.h <<EOF
3700 #define $ac_tr_hdr 1
3704 echo "$ac_t""no" 1>&6
3708 echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
3709 echo "configure:3710: checking for uint32_t" >&5
3710 cat > conftest.$ac_ext <<EOF
3711 #line 3712 "configure"
3712 #include "confdefs.h"
3714 #include <sys/types.h>
3716 #include <inttypes.h>
3725 if (sizeof (uint32_t))
3730 if { (eval echo configure:3731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3733 cat >> confdefs.h <<\EOF
3734 #define HAVE_UINT32_T 1
3737 echo "$ac_t""yes" 1>&6
3740 echo "configure: failed program was:" >&5
3741 cat conftest.$ac_ext >&5
3743 echo "$ac_t""no" 1>&6
3747 echo $ac_n "checking size of int""... $ac_c" 1>&6
3748 echo "configure:3749: checking size of int" >&5
3749 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3750 echo $ac_n "(cached) $ac_c" 1>&6
3752 if test "$cross_compiling" = yes; then
3753 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3755 cat > conftest.$ac_ext <<EOF
3756 #line 3757 "configure"
3757 #include "confdefs.h"
3759 #include <sys/types.h>
3762 FILE *f=fopen("conftestval", "w");
3764 fprintf(f, "%d\n", sizeof(int));
3768 if { (eval echo configure:3769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3770 ac_cv_sizeof_int=`cat conftestval`
3772 echo "configure: failed program was:" >&5
3773 cat conftest.$ac_ext >&5
3781 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3782 cat >> confdefs.h <<EOF
3783 #define SIZEOF_INT $ac_cv_sizeof_int
3787 echo $ac_n "checking size of long""... $ac_c" 1>&6
3788 echo "configure:3789: checking size of long" >&5
3789 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3790 echo $ac_n "(cached) $ac_c" 1>&6
3792 if test "$cross_compiling" = yes; then
3793 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3795 cat > conftest.$ac_ext <<EOF
3796 #line 3797 "configure"
3797 #include "confdefs.h"
3799 #include <sys/types.h>
3802 FILE *f=fopen("conftestval", "w");
3804 fprintf(f, "%d\n", sizeof(long));
3808 if { (eval echo configure:3809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3810 ac_cv_sizeof_long=`cat conftestval`
3812 echo "configure: failed program was:" >&5
3813 cat conftest.$ac_ext >&5
3821 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3822 cat >> confdefs.h <<EOF
3823 #define SIZEOF_LONG $ac_cv_sizeof_long
3828 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3829 echo "configure:3830: checking for pid_t" >&5
3830 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3831 echo $ac_n "(cached) $ac_c" 1>&6
3833 cat > conftest.$ac_ext <<EOF
3834 #line 3835 "configure"
3835 #include "confdefs.h"
3836 #include <sys/types.h>
3842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3843 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3845 ac_cv_type_pid_t=yes
3853 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3854 if test $ac_cv_type_pid_t = no; then
3855 cat >> confdefs.h <<\EOF
3862 for ac_func in fgetpos memmove setegid srand48 strerror
3864 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3865 echo "configure:3866: checking for $ac_func" >&5
3866 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3867 echo $ac_n "(cached) $ac_c" 1>&6
3869 cat > conftest.$ac_ext <<EOF
3870 #line 3871 "configure"
3871 #include "confdefs.h"
3872 /* System header to define __stub macros and hopefully few prototypes,
3873 which can conflict with char $ac_func(); below. */
3875 /* Override any gcc2 internal prototype to avoid an error. */
3876 /* We use char because int might match the return type of a gcc2
3877 builtin and then its argument prototype would still apply. */
3882 /* The GNU C library defines this for functions which it implements
3883 to always fail with ENOSYS. Some functions are actually named
3884 something starting with __ and the normal name is an alias. */
3885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3893 if { (eval echo configure:3894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3895 eval "ac_cv_func_$ac_func=yes"
3897 echo "configure: failed program was:" >&5
3898 cat conftest.$ac_ext >&5
3900 eval "ac_cv_func_$ac_func=no"
3905 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3906 echo "$ac_t""yes" 1>&6
3907 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3908 cat >> confdefs.h <<EOF
3909 #define $ac_tr_func 1
3913 echo "$ac_t""no" 1>&6
3918 for ac_func in strcasecmp strdup
3920 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3921 echo "configure:3922: checking for $ac_func" >&5
3922 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3923 echo $ac_n "(cached) $ac_c" 1>&6
3925 cat > conftest.$ac_ext <<EOF
3926 #line 3927 "configure"
3927 #include "confdefs.h"
3928 /* System header to define __stub macros and hopefully few prototypes,
3929 which can conflict with char $ac_func(); below. */
3931 /* Override any gcc2 internal prototype to avoid an error. */
3932 /* We use char because int might match the return type of a gcc2
3933 builtin and then its argument prototype would still apply. */
3938 /* The GNU C library defines this for functions which it implements
3939 to always fail with ENOSYS. Some functions are actually named
3940 something starting with __ and the normal name is an alias. */
3941 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3949 if { (eval echo configure:3950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3951 eval "ac_cv_func_$ac_func=yes"
3953 echo "configure: failed program was:" >&5
3954 cat conftest.$ac_ext >&5
3956 eval "ac_cv_func_$ac_func=no"
3961 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3962 echo "$ac_t""yes" 1>&6
3963 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3964 cat >> confdefs.h <<EOF
3965 #define $ac_tr_func 1
3969 echo "$ac_t""no" 1>&6
3970 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
3976 echo $ac_n "checking for getopt""... $ac_c" 1>&6
3977 echo "configure:3978: checking for getopt" >&5
3978 if eval "test \"`echo '$''{'ac_cv_func_getopt'+set}'`\" = set"; then
3979 echo $ac_n "(cached) $ac_c" 1>&6
3981 cat > conftest.$ac_ext <<EOF
3982 #line 3983 "configure"
3983 #include "confdefs.h"
3984 /* System header to define __stub macros and hopefully few prototypes,
3985 which can conflict with char getopt(); below. */
3987 /* Override any gcc2 internal prototype to avoid an error. */
3988 /* We use char because int might match the return type of a gcc2
3989 builtin and then its argument prototype would still apply. */
3994 /* The GNU C library defines this for functions which it implements
3995 to always fail with ENOSYS. Some functions are actually named
3996 something starting with __ and the normal name is an alias. */
3997 #if defined (__stub_getopt) || defined (__stub___getopt)
4005 if { (eval echo configure:4006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4007 eval "ac_cv_func_getopt=yes"
4009 echo "configure: failed program was:" >&5
4010 cat conftest.$ac_ext >&5
4012 eval "ac_cv_func_getopt=no"
4017 if eval "test \"`echo '$ac_cv_func_'getopt`\" = yes"; then
4018 echo "$ac_t""yes" 1>&6
4021 echo "$ac_t""no" 1>&6
4024 if test $ac_cv_func_getopt = yes; then
4025 for ac_hdr in getopt.h
4027 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4028 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4029 echo "configure:4030: checking for $ac_hdr" >&5
4030 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4031 echo $ac_n "(cached) $ac_c" 1>&6
4033 cat > conftest.$ac_ext <<EOF
4034 #line 4035 "configure"
4035 #include "confdefs.h"
4038 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4039 { (eval echo configure:4040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4040 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4041 if test -z "$ac_err"; then
4043 eval "ac_cv_header_$ac_safe=yes"
4046 echo "configure: failed program was:" >&5
4047 cat conftest.$ac_ext >&5
4049 eval "ac_cv_header_$ac_safe=no"
4053 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4054 echo "$ac_t""yes" 1>&6
4055 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4056 cat >> confdefs.h <<EOF
4057 #define $ac_tr_hdr 1
4061 echo "$ac_t""no" 1>&6
4069 for ac_func in snprintf
4071 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4072 echo "configure:4073: checking for $ac_func" >&5
4073 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4074 echo $ac_n "(cached) $ac_c" 1>&6
4076 cat > conftest.$ac_ext <<EOF
4077 #line 4078 "configure"
4078 #include "confdefs.h"
4079 /* System header to define __stub macros and hopefully few prototypes,
4080 which can conflict with char $ac_func(); below. */
4082 /* Override any gcc2 internal prototype to avoid an error. */
4083 /* We use char because int might match the return type of a gcc2
4084 builtin and then its argument prototype would still apply. */
4089 /* The GNU C library defines this for functions which it implements
4090 to always fail with ENOSYS. Some functions are actually named
4091 something starting with __ and the normal name is an alias. */
4092 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4100 if { (eval echo configure:4101: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4102 eval "ac_cv_func_$ac_func=yes"
4104 echo "configure: failed program was:" >&5
4105 cat conftest.$ac_ext >&5
4107 eval "ac_cv_func_$ac_func=no"
4112 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4113 echo "$ac_t""yes" 1>&6
4114 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4115 cat >> confdefs.h <<EOF
4116 #define $ac_tr_func 1
4120 echo "$ac_t""no" 1>&6
4121 mutt_cv_snprintf=yes
4125 for ac_func in vsnprintf
4127 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4128 echo "configure:4129: checking for $ac_func" >&5
4129 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4130 echo $ac_n "(cached) $ac_c" 1>&6
4132 cat > conftest.$ac_ext <<EOF
4133 #line 4134 "configure"
4134 #include "confdefs.h"
4135 /* System header to define __stub macros and hopefully few prototypes,
4136 which can conflict with char $ac_func(); below. */
4138 /* Override any gcc2 internal prototype to avoid an error. */
4139 /* We use char because int might match the return type of a gcc2
4140 builtin and then its argument prototype would still apply. */
4145 /* The GNU C library defines this for functions which it implements
4146 to always fail with ENOSYS. Some functions are actually named
4147 something starting with __ and the normal name is an alias. */
4148 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4156 if { (eval echo configure:4157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4158 eval "ac_cv_func_$ac_func=yes"
4160 echo "configure: failed program was:" >&5
4161 cat conftest.$ac_ext >&5
4163 eval "ac_cv_func_$ac_func=no"
4168 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4169 echo "$ac_t""yes" 1>&6
4170 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4171 cat >> confdefs.h <<EOF
4172 #define $ac_tr_func 1
4176 echo "$ac_t""no" 1>&6
4177 mutt_cv_snprintf=yes
4181 if test $mutt_cv_snprintf = yes; then
4182 LIBOBJS="$LIBOBJS snprintf.o"
4185 for ac_func in ftruncate
4187 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4188 echo "configure:4189: checking for $ac_func" >&5
4189 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4190 echo $ac_n "(cached) $ac_c" 1>&6
4192 cat > conftest.$ac_ext <<EOF
4193 #line 4194 "configure"
4194 #include "confdefs.h"
4195 /* System header to define __stub macros and hopefully few prototypes,
4196 which can conflict with char $ac_func(); below. */
4198 /* Override any gcc2 internal prototype to avoid an error. */
4199 /* We use char because int might match the return type of a gcc2
4200 builtin and then its argument prototype would still apply. */
4205 /* The GNU C library defines this for functions which it implements
4206 to always fail with ENOSYS. Some functions are actually named
4207 something starting with __ and the normal name is an alias. */
4208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4216 if { (eval echo configure:4217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4218 eval "ac_cv_func_$ac_func=yes"
4220 echo "configure: failed program was:" >&5
4221 cat conftest.$ac_ext >&5
4223 eval "ac_cv_func_$ac_func=no"
4228 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4229 echo "$ac_t""yes" 1>&6
4230 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4231 cat >> confdefs.h <<EOF
4232 #define $ac_tr_func 1
4236 echo "$ac_t""no" 1>&6
4237 echo $ac_n "checking for chsize in -lx""... $ac_c" 1>&6
4238 echo "configure:4239: checking for chsize in -lx" >&5
4239 ac_lib_var=`echo x'_'chsize | sed 'y%./+-%__p_%'`
4240 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4241 echo $ac_n "(cached) $ac_c" 1>&6
4243 ac_save_LIBS="$LIBS"
4245 cat > conftest.$ac_ext <<EOF
4246 #line 4247 "configure"
4247 #include "confdefs.h"
4248 /* Override any gcc2 internal prototype to avoid an error. */
4249 /* We use char because int might match the return type of a gcc2
4250 builtin and then its argument prototype would still apply. */
4257 if { (eval echo configure:4258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4259 eval "ac_cv_lib_$ac_lib_var=yes"
4261 echo "configure: failed program was:" >&5
4262 cat conftest.$ac_ext >&5
4264 eval "ac_cv_lib_$ac_lib_var=no"
4267 LIBS="$ac_save_LIBS"
4270 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4271 echo "$ac_t""yes" 1>&6
4272 ac_tr_lib=HAVE_LIB`echo x | sed -e 's/^a-zA-Z0-9_/_/g' \
4273 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4274 cat >> confdefs.h <<EOF
4275 #define $ac_tr_lib 1
4281 echo "$ac_t""no" 1>&6
4288 for ac_func in strftime
4290 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4291 echo "configure:4292: checking for $ac_func" >&5
4292 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4293 echo $ac_n "(cached) $ac_c" 1>&6
4295 cat > conftest.$ac_ext <<EOF
4296 #line 4297 "configure"
4297 #include "confdefs.h"
4298 /* System header to define __stub macros and hopefully few prototypes,
4299 which can conflict with char $ac_func(); below. */
4301 /* Override any gcc2 internal prototype to avoid an error. */
4302 /* We use char because int might match the return type of a gcc2
4303 builtin and then its argument prototype would still apply. */
4308 /* The GNU C library defines this for functions which it implements
4309 to always fail with ENOSYS. Some functions are actually named
4310 something starting with __ and the normal name is an alias. */
4311 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4319 if { (eval echo configure:4320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4321 eval "ac_cv_func_$ac_func=yes"
4323 echo "configure: failed program was:" >&5
4324 cat conftest.$ac_ext >&5
4326 eval "ac_cv_func_$ac_func=no"
4331 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4332 echo "$ac_t""yes" 1>&6
4333 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4334 cat >> confdefs.h <<EOF
4335 #define $ac_tr_func 1
4339 echo "$ac_t""no" 1>&6
4340 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
4341 echo "configure:4342: checking for strftime in -lintl" >&5
4342 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
4343 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4344 echo $ac_n "(cached) $ac_c" 1>&6
4346 ac_save_LIBS="$LIBS"
4348 cat > conftest.$ac_ext <<EOF
4349 #line 4350 "configure"
4350 #include "confdefs.h"
4351 /* Override any gcc2 internal prototype to avoid an error. */
4352 /* We use char because int might match the return type of a gcc2
4353 builtin and then its argument prototype would still apply. */
4360 if { (eval echo configure:4361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4362 eval "ac_cv_lib_$ac_lib_var=yes"
4364 echo "configure: failed program was:" >&5
4365 cat conftest.$ac_ext >&5
4367 eval "ac_cv_lib_$ac_lib_var=no"
4370 LIBS="$ac_save_LIBS"
4373 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4374 echo "$ac_t""yes" 1>&6
4375 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/^a-zA-Z0-9_/_/g' \
4376 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4377 cat >> confdefs.h <<EOF
4378 #define $ac_tr_lib 1
4384 echo "$ac_t""no" 1>&6
4391 for ac_func in fchdir
4393 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4394 echo "configure:4395: checking for $ac_func" >&5
4395 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4396 echo $ac_n "(cached) $ac_c" 1>&6
4398 cat > conftest.$ac_ext <<EOF
4399 #line 4400 "configure"
4400 #include "confdefs.h"
4401 /* System header to define __stub macros and hopefully few prototypes,
4402 which can conflict with char $ac_func(); below. */
4404 /* Override any gcc2 internal prototype to avoid an error. */
4405 /* We use char because int might match the return type of a gcc2
4406 builtin and then its argument prototype would still apply. */
4411 /* The GNU C library defines this for functions which it implements
4412 to always fail with ENOSYS. Some functions are actually named
4413 something starting with __ and the normal name is an alias. */
4414 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4422 if { (eval echo configure:4423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4424 eval "ac_cv_func_$ac_func=yes"
4426 echo "configure: failed program was:" >&5
4427 cat conftest.$ac_ext >&5
4429 eval "ac_cv_func_$ac_func=no"
4434 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4435 echo "$ac_t""yes" 1>&6
4436 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4437 cat >> confdefs.h <<EOF
4438 #define $ac_tr_func 1
4442 echo "$ac_t""no" 1>&6
4448 # Check whether --with-regex or --without-regex was given.
4449 if test "${with_regex+set}" = set; then
4450 withval="$with_regex"
4453 for ac_func in regcomp
4455 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4456 echo "configure:4457: checking for $ac_func" >&5
4457 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4458 echo $ac_n "(cached) $ac_c" 1>&6
4460 cat > conftest.$ac_ext <<EOF
4461 #line 4462 "configure"
4462 #include "confdefs.h"
4463 /* System header to define __stub macros and hopefully few prototypes,
4464 which can conflict with char $ac_func(); below. */
4466 /* Override any gcc2 internal prototype to avoid an error. */
4467 /* We use char because int might match the return type of a gcc2
4468 builtin and then its argument prototype would still apply. */
4473 /* The GNU C library defines this for functions which it implements
4474 to always fail with ENOSYS. Some functions are actually named
4475 something starting with __ and the normal name is an alias. */
4476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4484 if { (eval echo configure:4485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4486 eval "ac_cv_func_$ac_func=yes"
4488 echo "configure: failed program was:" >&5
4489 cat conftest.$ac_ext >&5
4491 eval "ac_cv_func_$ac_func=no"
4496 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4497 echo "$ac_t""yes" 1>&6
4498 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4499 cat >> confdefs.h <<EOF
4500 #define $ac_tr_func 1
4504 echo "$ac_t""no" 1>&6
4512 if test $mutt_cv_regex = no ; then
4513 echo $ac_n "checking whether your system's regexp library is completely broken""... $ac_c" 1>&6
4514 echo "configure:4515: checking whether your system's regexp library is completely broken" >&5
4515 if eval "test \"`echo '$''{'mutt_cv_regex_broken'+set}'`\" = set"; then
4516 echo $ac_n "(cached) $ac_c" 1>&6
4518 if test "$cross_compiling" = yes; then
4519 mutt_cv_regex_broken=yes
4521 cat > conftest.$ac_ext <<EOF
4522 #line 4523 "configure"
4523 #include "confdefs.h"
4527 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); }
4529 if { (eval echo configure:4530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4531 mutt_cv_regex_broken=no
4533 echo "configure: failed program was:" >&5
4534 cat conftest.$ac_ext >&5
4536 mutt_cv_regex_broken=yes
4543 echo "$ac_t""$mutt_cv_regex_broken" 1>&6
4544 if test $mutt_cv_regex_broken = yes ; then
4545 echo "Using the included GNU regex instead." >&6
4550 if test $mutt_cv_regex = yes; then
4551 cat >> confdefs.h <<\EOF
4552 #define USE_GNU_REGEX 1
4555 LIBOBJS="$LIBOBJS regex.o"
4559 # Check whether --with-homespool or --without-homespool was given.
4560 if test "${with_homespool+set}" = set; then
4561 withval="$with_homespool"
4562 with_homespool=${withval}
4565 if test x$with_homespool != x; then
4566 if test $with_homespool = yes; then
4567 with_homespool=mailbox
4569 cat >> confdefs.h <<EOF
4570 #define MAILPATH "$with_homespool"
4573 cat >> confdefs.h <<\EOF
4577 cat >> confdefs.h <<\EOF
4578 #define USE_DOTLOCK 1
4583 # Check whether --with-mailpath or --without-mailpath was given.
4584 if test "${with_mailpath+set}" = set; then
4585 withval="$with_mailpath"
4586 mutt_cv_mailpath=$withval
4588 echo $ac_n "checking where new mail is stored""... $ac_c" 1>&6
4589 echo "configure:4590: checking where new mail is stored" >&5
4590 if eval "test \"`echo '$''{'mutt_cv_mailpath'+set}'`\" = set"; then
4591 echo $ac_n "(cached) $ac_c" 1>&6
4594 if test -d /var/mail; then
4595 mutt_cv_mailpath=/var/mail
4596 elif test -d /var/spool/mail; then
4597 mutt_cv_mailpath=/var/spool/mail
4598 elif test -d /usr/spool/mail; then
4599 mutt_cv_mailpath=/usr/spool/mail
4600 elif test -d /usr/mail; then
4601 mutt_cv_mailpath=/usr/mail
4605 echo "$ac_t""$mutt_cv_mailpath" 1>&6
4609 if test "$mutt_cv_mailpath" = no; then
4610 { echo "configure: error: "Could not determine where new mail is stored."" 1>&2; exit 1; }
4612 cat >> confdefs.h <<EOF
4613 #define MAILPATH "$mutt_cv_mailpath"
4617 echo $ac_n "checking if $mutt_cv_mailpath is world writable""... $ac_c" 1>&6
4618 echo "configure:4619: checking if $mutt_cv_mailpath is world writable" >&5
4619 if eval "test \"`echo '$''{'mutt_cv_worldwrite'+set}'`\" = set"; then
4620 echo $ac_n "(cached) $ac_c" 1>&6
4622 if test "$cross_compiling" = yes; then
4623 mutt_cv_worldwrite=no
4625 cat > conftest.$ac_ext <<EOF
4626 #line 4627 "configure"
4627 #include "confdefs.h"
4628 #include <sys/types.h>
4629 #include <sys/stat.h>
4631 int main (int argc, char **argv)
4635 stat ("$mutt_cv_mailpath", &s);
4636 if (s.st_mode & S_IWOTH) exit (0);
4640 if { (eval echo configure:4641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4642 mutt_cv_worldwrite=yes
4644 echo "configure: failed program was:" >&5
4645 cat conftest.$ac_ext >&5
4647 mutt_cv_worldwrite=no
4654 echo "$ac_t""$mutt_cv_worldwrite" 1>&6
4657 if test $mutt_cv_worldwrite = yes; then
4658 cat >> confdefs.h <<\EOF
4659 #define USE_DOTLOCK 1
4664 echo $ac_n "checking if $mutt_cv_mailpath is group writable""... $ac_c" 1>&6
4665 echo "configure:4666: checking if $mutt_cv_mailpath is group writable" >&5
4666 if eval "test \"`echo '$''{'mutt_cv_groupwrite'+set}'`\" = set"; then
4667 echo $ac_n "(cached) $ac_c" 1>&6
4669 if test "$cross_compiling" = yes; then
4670 mutt_cv_groupwrite=no
4672 cat > conftest.$ac_ext <<EOF
4673 #line 4674 "configure"
4674 #include "confdefs.h"
4675 #include <sys/types.h>
4676 #include <sys/stat.h>
4678 int main (int argc, char **argv)
4682 stat ("$mutt_cv_mailpath", &s);
4683 if (s.st_mode & S_IWGRP) exit (0);
4687 if { (eval echo configure:4688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4689 mutt_cv_groupwrite=yes
4691 echo "configure: failed program was:" >&5
4692 cat conftest.$ac_ext >&5
4694 mutt_cv_groupwrite=no
4701 echo "$ac_t""$mutt_cv_groupwrite" 1>&6
4703 if test $mutt_cv_groupwrite = yes; then
4704 cat >> confdefs.h <<\EOF
4705 #define USE_DOTLOCK 1
4708 cat >> confdefs.h <<\EOF
4709 #define USE_SETGID 1
4717 # Check whether --enable-external_dotlock or --disable-external_dotlock was given.
4718 if test "${enable_external_dotlock+set}" = set; then
4719 enableval="$enable_external_dotlock"
4720 mutt_cv_external_dotlock="$enableval"
4724 if test "x$mutt_cv_setgid" = "xyes" || test "x$mutt_cv_fchdir" = "xno" \
4725 || test "x$mutt_cv_external_dotlock" = "xyes"
4727 cat >> confdefs.h <<\EOF
4728 #define DL_STANDALONE 1
4731 DOTLOCK_TARGET="muttng_dotlock"
4733 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS dotlock.o"
4739 echo $ac_n "checking where to put the documentation""... $ac_c" 1>&6
4740 echo "configure:4741: checking where to put the documentation" >&5
4741 # Check whether --with-docdir or --without-docdir was given.
4742 if test "${with_docdir+set}" = set; then
4743 withval="$with_docdir"
4744 mutt_cv_docdir=$withval
4746 mutt_cv_docdir="$mutt_cv_prefix/doc/muttng"
4749 echo "$ac_t""$mutt_cv_docdir" 1>&6
4751 docdir=$mutt_cv_docdir
4754 if test x$mutt_cv_setgid = xyes; then
4755 DOTLOCK_GROUP='mail'
4756 DOTLOCK_PERMISSION=2755
4759 DOTLOCK_PERMISSION=755
4764 # Check whether --with-domain or --without-domain was given.
4765 if test "${with_domain+set}" = set; then
4766 withval="$with_domain"
4767 if test $withval != yes; then
4768 cat >> confdefs.h <<EOF
4769 #define DOMAIN "$withval"
4779 # Check whether --enable-pop or --disable-pop was given.
4780 if test "${enable_pop+set}" = set; then
4781 enableval="$enable_pop"
4782 if test x$enableval = xyes ; then
4783 cat >> confdefs.h <<\EOF
4787 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pop.o pop_lib.o pop_auth.o"
4796 # Check whether --enable-imap or --disable-imap was given.
4797 if test "${enable_imap+set}" = set; then
4798 enableval="$enable_imap"
4799 if test x$enableval = xyes ; then
4800 cat >> confdefs.h <<\EOF
4804 LIBIMAP="-Limap -limap"
4805 LIBIMAPDEPS="\$(top_srcdir)/imap/imap.h imap/libimap.a"
4815 if test x$need_imap = xyes; then
4817 BUILD_IMAP_FALSE='#'
4823 # Check whether --enable-nntp or --disable-nntp was given.
4824 if test "${enable_nntp+set}" = set; then
4825 enableval="$enable_nntp"
4826 if test x$enableval = xyes ; then
4827 cat >> confdefs.h <<\EOF
4831 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS nntp.o newsrc.o"
4839 if test "$need_socket" = "yes"
4841 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
4842 echo "configure:4843: checking for socklen_t" >&5
4843 cat > conftest.$ac_ext <<EOF
4844 #line 4845 "configure"
4845 #include "confdefs.h"
4846 #include <sys/socket.h>
4848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4849 egrep "socklen_t" >/dev/null 2>&1; then
4851 echo "$ac_t""yes" 1>&6
4854 echo "$ac_t""no" 1>&6
4855 cat >> confdefs.h <<\EOF
4856 #define socklen_t int
4862 echo $ac_n "checking for gethostent""... $ac_c" 1>&6
4863 echo "configure:4864: checking for gethostent" >&5
4864 if eval "test \"`echo '$''{'ac_cv_func_gethostent'+set}'`\" = set"; then
4865 echo $ac_n "(cached) $ac_c" 1>&6
4867 cat > conftest.$ac_ext <<EOF
4868 #line 4869 "configure"
4869 #include "confdefs.h"
4870 /* System header to define __stub macros and hopefully few prototypes,
4871 which can conflict with char gethostent(); below. */
4873 /* Override any gcc2 internal prototype to avoid an error. */
4874 /* We use char because int might match the return type of a gcc2
4875 builtin and then its argument prototype would still apply. */
4880 /* The GNU C library defines this for functions which it implements
4881 to always fail with ENOSYS. Some functions are actually named
4882 something starting with __ and the normal name is an alias. */
4883 #if defined (__stub_gethostent) || defined (__stub___gethostent)
4891 if { (eval echo configure:4892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4893 eval "ac_cv_func_gethostent=yes"
4895 echo "configure: failed program was:" >&5
4896 cat conftest.$ac_ext >&5
4898 eval "ac_cv_func_gethostent=no"
4903 if eval "test \"`echo '$ac_cv_func_'gethostent`\" = yes"; then
4904 echo "$ac_t""yes" 1>&6
4907 echo "$ac_t""no" 1>&6
4908 echo $ac_n "checking for gethostent in -lnsl""... $ac_c" 1>&6
4909 echo "configure:4910: checking for gethostent in -lnsl" >&5
4910 ac_lib_var=`echo nsl'_'gethostent | sed 'y%./+-%__p_%'`
4911 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4912 echo $ac_n "(cached) $ac_c" 1>&6
4914 ac_save_LIBS="$LIBS"
4916 cat > conftest.$ac_ext <<EOF
4917 #line 4918 "configure"
4918 #include "confdefs.h"
4919 /* Override any gcc2 internal prototype to avoid an error. */
4920 /* We use char because int might match the return type of a gcc2
4921 builtin and then its argument prototype would still apply. */
4928 if { (eval echo configure:4929: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4930 eval "ac_cv_lib_$ac_lib_var=yes"
4932 echo "configure: failed program was:" >&5
4933 cat conftest.$ac_ext >&5
4935 eval "ac_cv_lib_$ac_lib_var=no"
4938 LIBS="$ac_save_LIBS"
4941 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4942 echo "$ac_t""yes" 1>&6
4943 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
4944 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4945 cat >> confdefs.h <<EOF
4946 #define $ac_tr_lib 1
4952 echo "$ac_t""no" 1>&6
4957 echo $ac_n "checking for setsockopt""... $ac_c" 1>&6
4958 echo "configure:4959: checking for setsockopt" >&5
4959 if eval "test \"`echo '$''{'ac_cv_func_setsockopt'+set}'`\" = set"; then
4960 echo $ac_n "(cached) $ac_c" 1>&6
4962 cat > conftest.$ac_ext <<EOF
4963 #line 4964 "configure"
4964 #include "confdefs.h"
4965 /* System header to define __stub macros and hopefully few prototypes,
4966 which can conflict with char setsockopt(); below. */
4968 /* Override any gcc2 internal prototype to avoid an error. */
4969 /* We use char because int might match the return type of a gcc2
4970 builtin and then its argument prototype would still apply. */
4975 /* The GNU C library defines this for functions which it implements
4976 to always fail with ENOSYS. Some functions are actually named
4977 something starting with __ and the normal name is an alias. */
4978 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
4986 if { (eval echo configure:4987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4988 eval "ac_cv_func_setsockopt=yes"
4990 echo "configure: failed program was:" >&5
4991 cat conftest.$ac_ext >&5
4993 eval "ac_cv_func_setsockopt=no"
4998 if eval "test \"`echo '$ac_cv_func_'setsockopt`\" = yes"; then
4999 echo "$ac_t""yes" 1>&6
5002 echo "$ac_t""no" 1>&6
5003 echo $ac_n "checking for setsockopt in -lsocket""... $ac_c" 1>&6
5004 echo "configure:5005: checking for setsockopt in -lsocket" >&5
5005 ac_lib_var=`echo socket'_'setsockopt | sed 'y%./+-%__p_%'`
5006 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5007 echo $ac_n "(cached) $ac_c" 1>&6
5009 ac_save_LIBS="$LIBS"
5010 LIBS="-lsocket $LIBS"
5011 cat > conftest.$ac_ext <<EOF
5012 #line 5013 "configure"
5013 #include "confdefs.h"
5014 /* Override any gcc2 internal prototype to avoid an error. */
5015 /* We use char because int might match the return type of a gcc2
5016 builtin and then its argument prototype would still apply. */
5023 if { (eval echo configure:5024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5025 eval "ac_cv_lib_$ac_lib_var=yes"
5027 echo "configure: failed program was:" >&5
5028 cat conftest.$ac_ext >&5
5030 eval "ac_cv_lib_$ac_lib_var=no"
5033 LIBS="$ac_save_LIBS"
5036 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5037 echo "$ac_t""yes" 1>&6
5038 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
5039 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5040 cat >> confdefs.h <<EOF
5041 #define $ac_tr_lib 1
5044 LIBS="-lsocket $LIBS"
5047 echo "$ac_t""no" 1>&6
5052 for ac_func in getaddrinfo
5054 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5055 echo "configure:5056: checking for $ac_func" >&5
5056 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5057 echo $ac_n "(cached) $ac_c" 1>&6
5059 cat > conftest.$ac_ext <<EOF
5060 #line 5061 "configure"
5061 #include "confdefs.h"
5062 /* System header to define __stub macros and hopefully few prototypes,
5063 which can conflict with char $ac_func(); below. */
5065 /* Override any gcc2 internal prototype to avoid an error. */
5066 /* We use char because int might match the return type of a gcc2
5067 builtin and then its argument prototype would still apply. */
5072 /* The GNU C library defines this for functions which it implements
5073 to always fail with ENOSYS. Some functions are actually named
5074 something starting with __ and the normal name is an alias. */
5075 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5083 if { (eval echo configure:5084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5085 eval "ac_cv_func_$ac_func=yes"
5087 echo "configure: failed program was:" >&5
5088 cat conftest.$ac_ext >&5
5090 eval "ac_cv_func_$ac_func=no"
5095 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5096 echo "$ac_t""yes" 1>&6
5097 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5098 cat >> confdefs.h <<EOF
5099 #define $ac_tr_func 1
5103 echo "$ac_t""no" 1>&6
5107 cat >> confdefs.h <<\EOF
5108 #define USE_SOCKET 1
5111 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS account.o mutt_socket.o mutt_tunnel.o"
5115 # Check whether --with-gss or --without-gss was given.
5116 if test "${with_gss+set}" = set; then
5118 gss_prefix="$withval"
5123 if test "$gss_prefix" != "no"
5125 if test "$need_imap" = "yes"
5128 GSSAPI_PREFIX=$gss_prefix
5130 saved_CPPFLAGS="$CPPFLAGS"
5131 saved_LDFLAGS="$LDFLAGS"
5133 if test "$GSSAPI_PREFIX" != "yes"
5135 krb5_path="$GSSAPI_PREFIX/bin"
5139 # Extract the first word of "krb5-config", so it can be a program name with args.
5140 set dummy krb5-config; ac_word=$2
5141 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5142 echo "configure:5143: checking for $ac_word" >&5
5143 if eval "test \"`echo '$''{'ac_cv_path_KRB5CFGPATH'+set}'`\" = set"; then
5144 echo $ac_n "(cached) $ac_c" 1>&6
5146 case "$KRB5CFGPATH" in
5148 ac_cv_path_KRB5CFGPATH="$KRB5CFGPATH" # Let the user override the test with a path.
5151 ac_cv_path_KRB5CFGPATH="$KRB5CFGPATH" # Let the user override the test with a dos path.
5154 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5155 ac_dummy="$krb5_path"
5156 for ac_dir in $ac_dummy; do
5157 test -z "$ac_dir" && ac_dir=.
5158 if test -f $ac_dir/$ac_word; then
5159 ac_cv_path_KRB5CFGPATH="$ac_dir/$ac_word"
5164 test -z "$ac_cv_path_KRB5CFGPATH" && ac_cv_path_KRB5CFGPATH="none"
5168 KRB5CFGPATH="$ac_cv_path_KRB5CFGPATH"
5169 if test -n "$KRB5CFGPATH"; then
5170 echo "$ac_t""$KRB5CFGPATH" 1>&6
5172 echo "$ac_t""no" 1>&6
5175 if test "$KRB5CFGPATH" != "none"
5177 GSSAPI_CFLAGS="$CPPFLAGS `$KRB5CFGPATH --cflags gssapi`"
5178 GSSAPI_LIBS="$MUTTLIBS `$KRB5CFGPATH --libs gssapi`"
5179 case "`$KRB5CFGPATH --version`" in
5180 "Kerberos 5 "*) GSSAPI_IMPL="MIT";;
5181 ?eimdal*) GSSAPI_IMPL="Heimdal";;
5182 *) GSSAPI_IMPL="Unknown";;
5185 if test "$GSSAPI_PREFIX" != "yes"
5187 GSSAPI_CFLAGS="-I$GSSAPI_PREFIX/include"
5188 GSSAPI_LDFLAGS="-L$GSSAPI_PREFIX/lib"
5189 CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
5190 LDFLAGS="$LDFLAGS $GSSAPI_LDFLAGS"
5193 echo $ac_n "checking for gss_init_sec_context in -lgssapi_krb5""... $ac_c" 1>&6
5194 echo "configure:5195: checking for gss_init_sec_context in -lgssapi_krb5" >&5
5195 ac_lib_var=`echo gssapi_krb5'_'gss_init_sec_context | sed 'y%./+-%__p_%'`
5196 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5197 echo $ac_n "(cached) $ac_c" 1>&6
5199 ac_save_LIBS="$LIBS"
5200 LIBS="-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err $LIBS"
5201 cat > conftest.$ac_ext <<EOF
5202 #line 5203 "configure"
5203 #include "confdefs.h"
5204 /* Override any gcc2 internal prototype to avoid an error. */
5205 /* We use char because int might match the return type of a gcc2
5206 builtin and then its argument prototype would still apply. */
5207 char gss_init_sec_context();
5210 gss_init_sec_context()
5213 if { (eval echo configure:5214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5215 eval "ac_cv_lib_$ac_lib_var=yes"
5217 echo "configure: failed program was:" >&5
5218 cat conftest.$ac_ext >&5
5220 eval "ac_cv_lib_$ac_lib_var=no"
5223 LIBS="$ac_save_LIBS"
5226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5227 echo "$ac_t""yes" 1>&6
5230 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err"
5233 echo "$ac_t""no" 1>&6
5237 if test "$GSSAPI_IMPL" = "none"
5239 echo $ac_n "checking for gss_init_sec_context in -lgssapi""... $ac_c" 1>&6
5240 echo "configure:5241: checking for gss_init_sec_context in -lgssapi" >&5
5241 ac_lib_var=`echo gssapi'_'gss_init_sec_context | sed 'y%./+-%__p_%'`
5242 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5243 echo $ac_n "(cached) $ac_c" 1>&6
5245 ac_save_LIBS="$LIBS"
5246 LIBS="-lgssapi -lkrb5 -ldes -lasn1 -lroken -lcrypt -lcom_err $LIBS"
5247 cat > conftest.$ac_ext <<EOF
5248 #line 5249 "configure"
5249 #include "confdefs.h"
5250 /* Override any gcc2 internal prototype to avoid an error. */
5251 /* We use char because int might match the return type of a gcc2
5252 builtin and then its argument prototype would still apply. */
5253 char gss_init_sec_context();
5256 gss_init_sec_context()
5259 if { (eval echo configure:5260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5261 eval "ac_cv_lib_$ac_lib_var=yes"
5263 echo "configure: failed program was:" >&5
5264 cat conftest.$ac_ext >&5
5266 eval "ac_cv_lib_$ac_lib_var=no"
5269 LIBS="$ac_save_LIBS"
5272 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5273 echo "$ac_t""yes" 1>&6
5275 GSSAPI_IMPL="Heimdal"
5276 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi -lkrb5 -ldes -lasn1 -lroken"
5277 GSSAPI_LIBS="$GSSAPI_LIBS -lcrypt -lcom_err"
5280 echo "$ac_t""no" 1>&6
5285 if test "$GSSAPI_IMPL" = "none"
5287 echo $ac_n "checking for g_order_init in -lgssapi_krb5""... $ac_c" 1>&6
5288 echo "configure:5289: checking for g_order_init in -lgssapi_krb5" >&5
5289 ac_lib_var=`echo gssapi_krb5'_'g_order_init | sed 'y%./+-%__p_%'`
5290 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5291 echo $ac_n "(cached) $ac_c" 1>&6
5293 ac_save_LIBS="$LIBS"
5294 LIBS="-lgssapi_krb5 -lkrb5 -lcrypto -lcom_err $LIBS"
5295 cat > conftest.$ac_ext <<EOF
5296 #line 5297 "configure"
5297 #include "confdefs.h"
5298 /* Override any gcc2 internal prototype to avoid an error. */
5299 /* We use char because int might match the return type of a gcc2
5300 builtin and then its argument prototype would still apply. */
5301 char g_order_init();
5307 if { (eval echo configure:5308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5309 eval "ac_cv_lib_$ac_lib_var=yes"
5311 echo "configure: failed program was:" >&5
5312 cat conftest.$ac_ext >&5
5314 eval "ac_cv_lib_$ac_lib_var=no"
5317 LIBS="$ac_save_LIBS"
5320 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5321 echo "$ac_t""yes" 1>&6
5323 GSSAPI_IMPL="OldMIT",
5324 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err"
5327 echo "$ac_t""no" 1>&6
5333 CPPFLAGS="$saved_CPPFLAGS"
5334 LDFLAGS="$saved_LDFLAGS"
5337 echo $ac_n "checking GSSAPI implementation""... $ac_c" 1>&6
5338 echo "configure:5339: checking GSSAPI implementation" >&5
5339 echo "$ac_t""$GSSAPI_IMPL" 1>&6
5340 if test "$GSSAPI_IMPL" = "none"
5342 cat > confcache <<\EOF
5343 # This file is a shell script that caches the results of configure
5344 # tests run on this system so they can be shared between configure
5345 # scripts and configure runs. It is not useful on other systems.
5346 # If it contains results you don't want to keep, you may remove or edit it.
5348 # By default, configure uses ./config.cache as the cache file,
5349 # creating it if it does not exist already. You can give configure
5350 # the --cache-file=FILE option to use a different cache file; that is
5351 # what configure does when it calls configure scripts in
5352 # subdirectories, so they share the cache.
5353 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5354 # config.status only pays attention to the cache file if you give it the
5355 # --recheck option to rerun configure.
5358 # The following way of writing the cache mishandles newlines in values,
5359 # but we know of no workaround that is simple, portable, and efficient.
5360 # So, don't put newlines in cache variables' values.
5361 # Ultrix sh set writes to stderr and can't be redirected directly,
5362 # and sets the high bit in the cache file unless we assign to the vars.
5364 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5366 # `set' does not quote correctly, so add quotes (double-quote substitution
5367 # turns \\\\ into \\, and sed turns \\ into \).
5369 -e "s/'/'\\\\''/g" \
5370 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5373 # `set' quotes correctly as required by POSIX, so do not add quotes.
5374 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5377 if cmp -s $cache_file confcache; then
5380 if test -w $cache_file; then
5381 echo "updating cache $cache_file"
5382 cat confcache > $cache_file
5384 echo "not updating unwritable cache $cache_file"
5389 echo "$ac_t""GSSAPI libraries not found" 1>&6
5391 if test "$GSSAPI_IMPL" = "Heimdal"
5393 cat >> confdefs.h <<\EOF
5394 #define HAVE_HEIMDAL 1
5398 CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
5399 MUTTLIBS="$MUTTLIBS $GSSAPI_LIBS"
5400 cat >> confdefs.h <<\EOF
5406 echo "configure: warning: GSS was requested but IMAP is not enabled" 1>&2
5411 if test x$need_gss = xyes; then
5420 # Check whether --with-ssl or --without-ssl was given.
5421 if test "${with_ssl+set}" = set; then
5423 if test "$with_ssl" != "no"
5425 if test "$need_socket" != "yes"; then
5426 { echo "configure: error: SSL support is only useful with POP or IMAP support" 1>&2; exit 1; }
5429 if test "$with_ssl" != "yes"
5431 LDFLAGS="$LDFLAGS -L$withval/lib"
5432 CPPFLAGS="$CPPFLAGS -I$withval/include"
5436 echo $ac_n "checking for X509_new in -lcrypto""... $ac_c" 1>&6
5437 echo "configure:5438: checking for X509_new in -lcrypto" >&5
5438 ac_lib_var=`echo crypto'_'X509_new | sed 'y%./+-%__p_%'`
5439 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5440 echo $ac_n "(cached) $ac_c" 1>&6
5442 ac_save_LIBS="$LIBS"
5443 LIBS="-lcrypto $LIBS"
5444 cat > conftest.$ac_ext <<EOF
5445 #line 5446 "configure"
5446 #include "confdefs.h"
5447 /* Override any gcc2 internal prototype to avoid an error. */
5448 /* We use char because int might match the return type of a gcc2
5449 builtin and then its argument prototype would still apply. */
5456 if { (eval echo configure:5457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5458 eval "ac_cv_lib_$ac_lib_var=yes"
5460 echo "configure: failed program was:" >&5
5461 cat conftest.$ac_ext >&5
5463 eval "ac_cv_lib_$ac_lib_var=no"
5466 LIBS="$ac_save_LIBS"
5469 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5470 echo "$ac_t""yes" 1>&6
5471 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5472 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5473 cat >> confdefs.h <<EOF
5474 #define $ac_tr_lib 1
5477 LIBS="-lcrypto $LIBS"
5480 echo "$ac_t""no" 1>&6
5481 { echo "configure: error: Unable to find SSL library" 1>&2; exit 1; }
5484 echo $ac_n "checking for SSL_new in -lssl""... $ac_c" 1>&6
5485 echo "configure:5486: checking for SSL_new in -lssl" >&5
5486 ac_lib_var=`echo ssl'_'SSL_new | sed 'y%./+-%__p_%'`
5487 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5488 echo $ac_n "(cached) $ac_c" 1>&6
5490 ac_save_LIBS="$LIBS"
5491 LIBS="-lssl -lcrypto $LIBS"
5492 cat > conftest.$ac_ext <<EOF
5493 #line 5494 "configure"
5494 #include "confdefs.h"
5495 /* Override any gcc2 internal prototype to avoid an error. */
5496 /* We use char because int might match the return type of a gcc2
5497 builtin and then its argument prototype would still apply. */
5504 if { (eval echo configure:5505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5506 eval "ac_cv_lib_$ac_lib_var=yes"
5508 echo "configure: failed program was:" >&5
5509 cat conftest.$ac_ext >&5
5511 eval "ac_cv_lib_$ac_lib_var=no"
5514 LIBS="$ac_save_LIBS"
5517 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5518 echo "$ac_t""yes" 1>&6
5519 ac_tr_lib=HAVE_LIB`echo ssl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5520 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5521 cat >> confdefs.h <<EOF
5522 #define $ac_tr_lib 1
5528 echo "$ac_t""no" 1>&6
5529 { echo "configure: error: Unable to find SSL library" 1>&2; exit 1; }
5533 for ac_func in RAND_status RAND_egd
5535 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5536 echo "configure:5537: checking for $ac_func" >&5
5537 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5538 echo $ac_n "(cached) $ac_c" 1>&6
5540 cat > conftest.$ac_ext <<EOF
5541 #line 5542 "configure"
5542 #include "confdefs.h"
5543 /* System header to define __stub macros and hopefully few prototypes,
5544 which can conflict with char $ac_func(); below. */
5546 /* Override any gcc2 internal prototype to avoid an error. */
5547 /* We use char because int might match the return type of a gcc2
5548 builtin and then its argument prototype would still apply. */
5553 /* The GNU C library defines this for functions which it implements
5554 to always fail with ENOSYS. Some functions are actually named
5555 something starting with __ and the normal name is an alias. */
5556 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5564 if { (eval echo configure:5565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5566 eval "ac_cv_func_$ac_func=yes"
5568 echo "configure: failed program was:" >&5
5569 cat conftest.$ac_ext >&5
5571 eval "ac_cv_func_$ac_func=no"
5576 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5577 echo "$ac_t""yes" 1>&6
5578 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5579 cat >> confdefs.h <<EOF
5580 #define $ac_tr_func 1
5584 echo "$ac_t""no" 1>&6
5589 cat >> confdefs.h <<\EOF
5594 MUTTLIBS="$MUTTLIBS -lssl -lcrypto"
5595 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl.o"
5604 if test x$need_ssl = xyes; then
5612 # Check whether --with-gnutls or --without-gnutls was given.
5613 if test "${with_gnutls+set}" = set; then
5614 withval="$with_gnutls"
5615 if test "$need_ssl" = "yes"
5617 { echo "configure: error: In order to compile in GNU TLS support, you must first disable SSL support" 1>&2; exit 1; }
5619 if test "$with_gnutls" != "no"
5621 if test "$need_socket" != "yes"; then
5622 { echo "configure: error: GNU TLS support is only useful with POP or IMAP support" 1>&2; exit 1; }
5624 if test "$with_gnutls" != "yes"
5626 LDFLAGS="$LDFLAGS -L$withval/lib"
5627 CPPFLAGS="$CPPFLAGS -I$withval/include"
5631 echo $ac_n "checking for gnutls_init in -lgnutls""... $ac_c" 1>&6
5632 echo "configure:5633: checking for gnutls_init in -lgnutls" >&5
5633 ac_lib_var=`echo gnutls'_'gnutls_init | sed 'y%./+-%__p_%'`
5634 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5635 echo $ac_n "(cached) $ac_c" 1>&6
5637 ac_save_LIBS="$LIBS"
5638 LIBS="-lgnutls $LIBS"
5639 cat > conftest.$ac_ext <<EOF
5640 #line 5641 "configure"
5641 #include "confdefs.h"
5642 /* Override any gcc2 internal prototype to avoid an error. */
5643 /* We use char because int might match the return type of a gcc2
5644 builtin and then its argument prototype would still apply. */
5651 if { (eval echo configure:5652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5653 eval "ac_cv_lib_$ac_lib_var=yes"
5655 echo "configure: failed program was:" >&5
5656 cat conftest.$ac_ext >&5
5658 eval "ac_cv_lib_$ac_lib_var=no"
5661 LIBS="$ac_save_LIBS"
5664 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5665 echo "$ac_t""yes" 1>&6
5666 ac_tr_lib=HAVE_LIB`echo gnutls | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5667 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5668 cat >> confdefs.h <<EOF
5669 #define $ac_tr_lib 1
5672 LIBS="-lgnutls $LIBS"
5675 echo "$ac_t""no" 1>&6
5676 { echo "configure: error: Unable to find GNU TLS library" 1>&2; exit 1; }
5680 cat >> confdefs.h <<\EOF
5681 #define USE_GNUTLS 1
5685 #MUTTLIBS="$MUTTLIBS -lgnutls"
5686 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_gnutls.o"
5694 if test x$need_gnutls = xyes; then
5696 USE_GNUTLS_FALSE='#'
5702 # Check whether --with-nss or --without-nss was given.
5703 if test "${with_nss+set}" = set; then
5705 if test "$with_nss" != no
5707 if test "$need_socket" != "yes"; then
5708 { echo "configure: error: SSL support is only useful with POP or IMAP support" 1>&2; exit 1; }
5711 if test "$with_nss" != "yes"
5713 LDFLAGS="$LDFLAGS -L$withval/lib"
5714 CPPFLAGS="$CPPFLAGS -I$withval/include -I$withval/public/security"
5717 cat >> confdefs.h <<\EOF
5721 MUTTLIBS="$MUTTLIBS -lssl -lnss -lcertdb -lcerthi -lcryptohi"
5722 MUTTLIBS="$MUTTLIBS -lpk11wrap -lsoftoken -lsecutil -ldbm -lplds4 -lplc4 -lfreebl"
5723 MUTTLIBS="$MUTTLIBS -lnspr4"
5725 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_nss.o"
5732 # Check whether --with-sasl or --without-sasl was given.
5733 if test "${with_sasl+set}" = set; then
5734 withval="$with_sasl"
5736 if test "$with_sasl" != "no" -a "$need_imap" != "yes" -a "$need_pop" != "yes"
5738 { echo "configure: error: SASL support is only useful with POP or IMAP support" 1>&2; exit 1; }
5741 if test "$with_sasl" != "no"
5743 if test "$with_sasl" != "yes"
5745 CPPFLAGS="$CPPFLAGS -I$with_sasl/include"
5746 LDFLAGS="$LDFLAGS -L$with_sasl/lib"
5751 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
5752 echo "configure:5753: checking for sasl_client_init in -lsasl" >&5
5753 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-%__p_%'`
5754 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5755 echo $ac_n "(cached) $ac_c" 1>&6
5757 ac_save_LIBS="$LIBS"
5759 cat > conftest.$ac_ext <<EOF
5760 #line 5761 "configure"
5761 #include "confdefs.h"
5762 /* Override any gcc2 internal prototype to avoid an error. */
5763 /* We use char because int might match the return type of a gcc2
5764 builtin and then its argument prototype would still apply. */
5765 char sasl_client_init();
5771 if { (eval echo configure:5772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5773 eval "ac_cv_lib_$ac_lib_var=yes"
5775 echo "configure: failed program was:" >&5
5776 cat conftest.$ac_ext >&5
5778 eval "ac_cv_lib_$ac_lib_var=no"
5781 LIBS="$ac_save_LIBS"
5784 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5785 echo "$ac_t""yes" 1>&6
5786 ac_tr_lib=HAVE_LIB`echo sasl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5787 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5788 cat >> confdefs.h <<EOF
5789 #define $ac_tr_lib 1
5795 echo "$ac_t""no" 1>&6
5796 { echo "configure: error: could not find libsasl" 1>&2; exit 1; }
5800 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
5801 MUTTLIBS="$MUTTLIBS -lsasl"
5803 cat >> confdefs.h <<\EOF
5814 if test x$need_sasl = xyes; then
5822 # Check whether --with-sasl2 or --without-sasl2 was given.
5823 if test "${with_sasl2+set}" = set; then
5824 withval="$with_sasl2"
5826 if test "$with_sasl2" != "no" -a "$need_imap" != "yes" -a "$need_pop" != "yes"
5828 { echo "configure: error: SASL2 support is only useful with POP or IMAP support" 1>&2; exit 1; }
5831 if test "$with_sasl2" != "no"
5833 if test "$with_sasl2" != "yes"
5835 CPPFLAGS="$CPPFLAGS -I$with_sasl2/include"
5836 LDFLAGS="$LDFLAGS -L$with_sasl2/lib"
5841 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
5842 echo "configure:5843: checking for sasl_client_init in -lsasl2" >&5
5843 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-%__p_%'`
5844 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5845 echo $ac_n "(cached) $ac_c" 1>&6
5847 ac_save_LIBS="$LIBS"
5848 LIBS="-lsasl2 $LIBS"
5849 cat > conftest.$ac_ext <<EOF
5850 #line 5851 "configure"
5851 #include "confdefs.h"
5852 /* Override any gcc2 internal prototype to avoid an error. */
5853 /* We use char because int might match the return type of a gcc2
5854 builtin and then its argument prototype would still apply. */
5855 char sasl_client_init();
5861 if { (eval echo configure:5862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5863 eval "ac_cv_lib_$ac_lib_var=yes"
5865 echo "configure: failed program was:" >&5
5866 cat conftest.$ac_ext >&5
5868 eval "ac_cv_lib_$ac_lib_var=no"
5871 LIBS="$ac_save_LIBS"
5874 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5875 echo "$ac_t""yes" 1>&6
5876 ac_tr_lib=HAVE_LIB`echo sasl2 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5877 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5878 cat >> confdefs.h <<EOF
5879 #define $ac_tr_lib 1
5882 LIBS="-lsasl2 $LIBS"
5885 echo "$ac_t""no" 1>&6
5886 { echo "configure: error: could not find libsasl2" 1>&2; exit 1; }
5890 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
5891 MUTTLIBS="$MUTTLIBS -lsasl2"
5893 cat >> confdefs.h <<\EOF
5897 cat >> confdefs.h <<\EOF
5908 if test x$need_sasl = xyes; then
5916 # Check whether --with-idn or --without-idn was given.
5917 if test "${with_idn+set}" = set; then
5920 if test "$with_idn" != "no" ; then
5921 if test "$with_idn" != "yes" ; then
5922 CPPFLAGS="$CPPFLAGS -I$with_idn/include"
5923 LDFLAGS="$LDFLAGS -L$with_idn/lib"
5931 if test "x$with_idn" != "xno"; then
5932 echo $ac_n "checking for stringprep_check_version in -lidn""... $ac_c" 1>&6
5933 echo "configure:5934: checking for stringprep_check_version in -lidn" >&5
5934 ac_lib_var=`echo idn'_'stringprep_check_version | sed 'y%./+-%__p_%'`
5935 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5936 echo $ac_n "(cached) $ac_c" 1>&6
5938 ac_save_LIBS="$LIBS"
5940 cat > conftest.$ac_ext <<EOF
5941 #line 5942 "configure"
5942 #include "confdefs.h"
5943 /* Override any gcc2 internal prototype to avoid an error. */
5944 /* We use char because int might match the return type of a gcc2
5945 builtin and then its argument prototype would still apply. */
5946 char stringprep_check_version();
5949 stringprep_check_version()
5952 if { (eval echo configure:5953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5954 eval "ac_cv_lib_$ac_lib_var=yes"
5956 echo "configure: failed program was:" >&5
5957 cat conftest.$ac_ext >&5
5959 eval "ac_cv_lib_$ac_lib_var=no"
5962 LIBS="$ac_save_LIBS"
5965 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5966 echo "$ac_t""yes" 1>&6
5967 ac_tr_lib=HAVE_LIB`echo idn | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5968 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5969 cat >> confdefs.h <<EOF
5970 #define $ac_tr_lib 1
5976 echo "$ac_t""no" 1>&6
5979 for ac_func in idna_to_unicode_utf8_from_utf8 idna_to_unicode_8z8z
5981 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5982 echo "configure:5983: checking for $ac_func" >&5
5983 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5984 echo $ac_n "(cached) $ac_c" 1>&6
5986 cat > conftest.$ac_ext <<EOF
5987 #line 5988 "configure"
5988 #include "confdefs.h"
5989 /* System header to define __stub macros and hopefully few prototypes,
5990 which can conflict with char $ac_func(); below. */
5992 /* Override any gcc2 internal prototype to avoid an error. */
5993 /* We use char because int might match the return type of a gcc2
5994 builtin and then its argument prototype would still apply. */
5999 /* The GNU C library defines this for functions which it implements
6000 to always fail with ENOSYS. Some functions are actually named
6001 something starting with __ and the normal name is an alias. */
6002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6010 if { (eval echo configure:6011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6012 eval "ac_cv_func_$ac_func=yes"
6014 echo "configure: failed program was:" >&5
6015 cat conftest.$ac_ext >&5
6017 eval "ac_cv_func_$ac_func=no"
6022 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6023 echo "$ac_t""yes" 1>&6
6024 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6025 cat >> confdefs.h <<EOF
6026 #define $ac_tr_func 1
6030 echo "$ac_t""no" 1>&6
6034 for ac_func in idna_to_ascii_from_utf8 idna_to_ascii_8z
6036 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6037 echo "configure:6038: checking for $ac_func" >&5
6038 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6039 echo $ac_n "(cached) $ac_c" 1>&6
6041 cat > conftest.$ac_ext <<EOF
6042 #line 6043 "configure"
6043 #include "confdefs.h"
6044 /* System header to define __stub macros and hopefully few prototypes,
6045 which can conflict with char $ac_func(); below. */
6047 /* Override any gcc2 internal prototype to avoid an error. */
6048 /* We use char because int might match the return type of a gcc2
6049 builtin and then its argument prototype would still apply. */
6054 /* The GNU C library defines this for functions which it implements
6055 to always fail with ENOSYS. Some functions are actually named
6056 something starting with __ and the normal name is an alias. */
6057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6065 if { (eval echo configure:6066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6067 eval "ac_cv_func_$ac_func=yes"
6069 echo "configure: failed program was:" >&5
6070 cat conftest.$ac_ext >&5
6072 eval "ac_cv_func_$ac_func=no"
6077 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6078 echo "$ac_t""yes" 1>&6
6079 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6080 cat >> confdefs.h <<EOF
6081 #define $ac_tr_func 1
6085 echo "$ac_t""no" 1>&6
6089 for ac_func in idna_to_ascii_lz idna_to_ascii_from_locale
6091 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6092 echo "configure:6093: checking for $ac_func" >&5
6093 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6094 echo $ac_n "(cached) $ac_c" 1>&6
6096 cat > conftest.$ac_ext <<EOF
6097 #line 6098 "configure"
6098 #include "confdefs.h"
6099 /* System header to define __stub macros and hopefully few prototypes,
6100 which can conflict with char $ac_func(); below. */
6102 /* Override any gcc2 internal prototype to avoid an error. */
6103 /* We use char because int might match the return type of a gcc2
6104 builtin and then its argument prototype would still apply. */
6109 /* The GNU C library defines this for functions which it implements
6110 to always fail with ENOSYS. Some functions are actually named
6111 something starting with __ and the normal name is an alias. */
6112 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6120 if { (eval echo configure:6121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6122 eval "ac_cv_func_$ac_func=yes"
6124 echo "configure: failed program was:" >&5
6125 cat conftest.$ac_ext >&5
6127 eval "ac_cv_func_$ac_func=no"
6132 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6133 echo "$ac_t""yes" 1>&6
6134 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6135 cat >> confdefs.h <<EOF
6136 #define $ac_tr_func 1
6140 echo "$ac_t""no" 1>&6
6147 # Check whether --enable-debug or --disable-debug was given.
6148 if test "${enable_debug+set}" = set; then
6149 enableval="$enable_debug"
6150 if test x$enableval = xyes ; then
6151 cat >> confdefs.h <<\EOF
6160 # Check whether --enable-flock or --disable-flock was given.
6161 if test "${enable_flock+set}" = set; then
6162 enableval="$enable_flock"
6163 if test $enableval = yes; then
6164 cat >> confdefs.h <<\EOF
6173 # Check whether --enable-fcntl or --disable-fcntl was given.
6174 if test "${enable_fcntl+set}" = set; then
6175 enableval="$enable_fcntl"
6176 if test $enableval = no; then mutt_cv_fcntl=no; fi
6180 if test $mutt_cv_fcntl = yes; then
6181 cat >> confdefs.h <<\EOF
6187 mutt_cv_inodesort=yes
6188 # Check whether --enable-inodesort or --disable-inodesort was given.
6189 if test "${enable_inodesort+set}" = set; then
6190 enableval="$enable_inodesort"
6191 if test $enableval = no ; then mutt_cv_inodesort=no; fi
6195 if test $mutt_cv_inodesort = yes; then
6196 cat >> confdefs.h <<\EOF
6197 #define USE_INODESORT 1
6202 mutt_cv_warnings=yes
6203 # Check whether --enable-warnings or --disable-warnings was given.
6204 if test "${enable_warnings+set}" = set; then
6205 enableval="$enable_warnings"
6206 if test $enableval = no; then
6212 if test x$GCC = xyes -a $mutt_cv_warnings = yes; then
6213 CFLAGS="-Wall -pedantic $CFLAGS"
6216 # Check whether --enable-nfs-fix or --disable-nfs-fix was given.
6217 if test "${enable_nfs_fix+set}" = set; then
6218 enableval="$enable_nfs_fix"
6219 if test x$enableval = xyes; then
6220 cat >> confdefs.h <<\EOF
6221 #define NFS_ATTRIBUTE_HACK 1
6228 # Check whether --enable-buffy-size or --disable-buffy-size was given.
6229 if test "${enable_buffy_size+set}" = set; then
6230 enableval="$enable_buffy_size"
6231 if test x$enableval = xyes; then
6232 cat >> confdefs.h <<\EOF
6233 #define BUFFY_SIZE 1
6240 # Check whether --enable-mailtool or --disable-mailtool was given.
6241 if test "${enable_mailtool+set}" = set; then
6242 enableval="$enable_mailtool"
6243 if test x$enableval = xyes; then
6244 cat >> confdefs.h <<\EOF
6245 #define SUN_ATTACHMENT 1
6252 # Check whether --enable-compressed or --disable-compressed was given.
6253 if test "${enable_compressed+set}" = set; then
6254 enableval="$enable_compressed"
6255 if test x$enableval = xyes; then
6256 cat >> confdefs.h <<\EOF
6257 #define USE_COMPRESSED 1
6264 # Check whether --enable-locales-fix or --disable-locales-fix was given.
6265 if test "${enable_locales_fix+set}" = set; then
6266 enableval="$enable_locales_fix"
6267 if test x$enableval = xyes; then
6268 cat >> confdefs.h <<\EOF
6269 #define LOCALES_HACK 1
6276 # Check whether --with-exec-shell or --without-exec-shell was given.
6277 if test "${with_exec_shell+set}" = set; then
6278 withval="$with_exec_shell"
6279 if test $withval != yes; then
6280 cat >> confdefs.h <<EOF
6281 #define EXECSHELL "$withval"
6285 cat >> confdefs.h <<EOF
6286 #define EXECSHELL "/bin/sh"
6291 cat >> confdefs.h <<EOF
6292 #define EXECSHELL "/bin/sh"
6298 # Check whether --enable-exact-address or --disable-exact-address was given.
6299 if test "${enable_exact_address+set}" = set; then
6300 enableval="$enable_exact_address"
6301 if test $enableval = yes; then
6302 cat >> confdefs.h <<\EOF
6303 #define EXACT_ADDRESS 1
6311 # Check whether --enable-hcache or --disable-hcache was given.
6312 if test "${enable_hcache+set}" = set; then
6313 enableval="$enable_hcache"
6314 if test x$enableval = xyes; then
6315 cat >> confdefs.h <<\EOF
6316 #define USE_HCACHE 1
6320 OLDCPPFLAGS="$CPPFLAGS"
6325 # Check whether --with-gdbm or --without-gdbm was given.
6326 if test "${with_gdbm+set}" = set; then
6327 withval="$with_gdbm"
6328 ac_prefer_gdbm=$withval
6331 if test x$ac_prefer_gdbm != xno; then
6332 CPPFLAGS="$OLDCPPFLAGS"
6333 LIBS="$OLDLIBS -lgdbm";
6334 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
6335 echo "configure:6336: checking for gdbm_open" >&5
6336 if eval "test \"`echo '$''{'ac_cv_gdbmopen'+set}'`\" = set"; then
6337 echo $ac_n "(cached) $ac_c" 1>&6
6341 cat > conftest.$ac_ext <<EOF
6342 #line 6343 "configure"
6343 #include "confdefs.h"
6346 gdbm_open(0,0,0,0,0);
6349 if { (eval echo configure:6350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6353 echo "configure: failed program was:" >&5
6354 cat conftest.$ac_ext >&5
6360 echo "$ac_t""$ac_cv_gdbmopen" 1>&6
6364 # Check whether --with-bdb or --without-bdb was given.
6365 if test "${with_bdb+set}" = set; then
6367 ac_bdb_prefix=$withval
6370 if test x$ac_bdb_prefix != xno -a x$ac_cv_gdbmopen != xyes; then
6371 test x$ac_bdb_prefix = xyes && ac_bdb_prefix="$mutt_cv_prefix /opt/csw/bdb4 /opt /usr/local /usr"
6372 for d in $ac_bdb_prefix; do
6374 for v in BerkeleyDB.4.3 BerkeleyDB.4.2 BerkeleyDB.4.1; do
6375 bdbpfx="$bdbpfx $d/$v"
6378 BDB_VERSIONS="db-4 db4 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db ''"
6379 echo $ac_n "checking for BerkeleyDB > 4.0""... $ac_c" 1>&6
6380 echo "configure:6381: checking for BerkeleyDB > 4.0" >&5
6381 for d in $bdbpfx; do
6384 for v in / $BDB_VERSIONS; do
6385 if test -r "$d/include/$v/db.h"; then
6386 BDB_INCLUDE_DIR="$d/include/$v"
6387 if test -d "$d/lib/$v"; then
6388 BDB_LIB_DIR="$d/lib/$v"
6389 for l in `echo $BDB_VERSIONS`; do
6390 CPPFLAGS="-I$BDB_INCLUDE_DIR $OLDCPPFLAGS"
6391 LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$l"
6392 cat > conftest.$ac_ext <<EOF
6393 #line 6394 "configure"
6394 #include "confdefs.h"
6402 db->open(db,NULL,NULL,NULL,0,0,0);
6406 if { (eval echo configure:6407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6414 echo "configure: failed program was:" >&5
6415 cat conftest.$ac_ext >&5
6419 test x$ac_dbcreate = xyes && break
6423 test x$BDB_LIB != x && break
6425 if test x$ac_cv_dbcreate = xyes; then
6426 echo "$ac_t""yes" 1>&6
6428 echo "$ac_t""no" 1>&6
6432 if test x$ac_cv_gdbmopen = xyes; then
6433 CPPFLAGS="$OLDCPPFLAGS"
6434 LIBS="$OLDLIBS -lgdbm";
6435 cat >> confdefs.h <<\EOF
6439 elif test x$ac_cv_dbcreate = xyes; then
6440 CPPFLAGS="-I$BDB_INCLUDE_DIR $OLDCPPFLAGS"
6441 LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$BDB_LIB"
6442 cat >> confdefs.h <<\EOF
6447 { echo "configure: error: You need Sleepycat DB4 or GDBM for --enable-hcache" 1>&2; exit 1; }
6459 # Check whether --enable-iconv or --disable-iconv was given.
6460 if test "${enable_iconv+set}" = set; then
6461 enableval="$enable_iconv"
6462 if test x$enableval = xno ; then
6469 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6470 echo "configure:6471: checking for off_t" >&5
6471 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6472 echo $ac_n "(cached) $ac_c" 1>&6
6474 cat > conftest.$ac_ext <<EOF
6475 #line 6476 "configure"
6476 #include "confdefs.h"
6477 #include <sys/types.h>
6483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6484 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6486 ac_cv_type_off_t=yes
6494 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6495 if test $ac_cv_type_off_t = no; then
6496 cat >> confdefs.h <<\EOF
6502 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6503 echo "configure:6504: checking for size_t" >&5
6504 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6505 echo $ac_n "(cached) $ac_c" 1>&6
6507 cat > conftest.$ac_ext <<EOF
6508 #line 6509 "configure"
6509 #include "confdefs.h"
6510 #include <sys/types.h>
6516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6517 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6519 ac_cv_type_size_t=yes
6522 ac_cv_type_size_t=no
6527 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6528 if test $ac_cv_type_size_t = no; then
6529 cat >> confdefs.h <<\EOF
6530 #define size_t unsigned
6535 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6536 # for constant arguments. Useless!
6537 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6538 echo "configure:6539: checking for working alloca.h" >&5
6539 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6540 echo $ac_n "(cached) $ac_c" 1>&6
6542 cat > conftest.$ac_ext <<EOF
6543 #line 6544 "configure"
6544 #include "confdefs.h"
6547 char *p = alloca(2 * sizeof(int));
6550 if { (eval echo configure:6551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6552 ac_cv_header_alloca_h=yes
6554 echo "configure: failed program was:" >&5
6555 cat conftest.$ac_ext >&5
6557 ac_cv_header_alloca_h=no
6562 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6563 if test $ac_cv_header_alloca_h = yes; then
6564 cat >> confdefs.h <<\EOF
6565 #define HAVE_ALLOCA_H 1
6570 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6571 echo "configure:6572: checking for alloca" >&5
6572 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6573 echo $ac_n "(cached) $ac_c" 1>&6
6575 cat > conftest.$ac_ext <<EOF
6576 #line 6577 "configure"
6577 #include "confdefs.h"
6580 # define alloca __builtin_alloca
6583 # include <malloc.h>
6584 # define alloca _alloca
6587 # include <alloca.h>
6592 # ifndef alloca /* predefined by HP cc +Olibcalls */
6601 char *p = (char *) alloca(1);
6604 if { (eval echo configure:6605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6606 ac_cv_func_alloca_works=yes
6608 echo "configure: failed program was:" >&5
6609 cat conftest.$ac_ext >&5
6611 ac_cv_func_alloca_works=no
6616 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6617 if test $ac_cv_func_alloca_works = yes; then
6618 cat >> confdefs.h <<\EOF
6619 #define HAVE_ALLOCA 1
6624 if test $ac_cv_func_alloca_works = no; then
6625 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6626 # that cause trouble. Some versions do not even contain alloca or
6627 # contain a buggy version. If you still want to use their alloca,
6628 # use ar to extract alloca.o from them instead of compiling alloca.c.
6629 ALLOCA=alloca.${ac_objext}
6630 cat >> confdefs.h <<\EOF
6635 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6636 echo "configure:6637: checking whether alloca needs Cray hooks" >&5
6637 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6638 echo $ac_n "(cached) $ac_c" 1>&6
6640 cat > conftest.$ac_ext <<EOF
6641 #line 6642 "configure"
6642 #include "confdefs.h"
6643 #if defined(CRAY) && ! defined(CRAY2)
6650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6651 egrep "webecray" >/dev/null 2>&1; then
6662 echo "$ac_t""$ac_cv_os_cray" 1>&6
6663 if test $ac_cv_os_cray = yes; then
6664 for ac_func in _getb67 GETB67 getb67; do
6665 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6666 echo "configure:6667: checking for $ac_func" >&5
6667 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6668 echo $ac_n "(cached) $ac_c" 1>&6
6670 cat > conftest.$ac_ext <<EOF
6671 #line 6672 "configure"
6672 #include "confdefs.h"
6673 /* System header to define __stub macros and hopefully few prototypes,
6674 which can conflict with char $ac_func(); below. */
6676 /* Override any gcc2 internal prototype to avoid an error. */
6677 /* We use char because int might match the return type of a gcc2
6678 builtin and then its argument prototype would still apply. */
6683 /* The GNU C library defines this for functions which it implements
6684 to always fail with ENOSYS. Some functions are actually named
6685 something starting with __ and the normal name is an alias. */
6686 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6694 if { (eval echo configure:6695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6696 eval "ac_cv_func_$ac_func=yes"
6698 echo "configure: failed program was:" >&5
6699 cat conftest.$ac_ext >&5
6701 eval "ac_cv_func_$ac_func=no"
6706 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6707 echo "$ac_t""yes" 1>&6
6708 cat >> confdefs.h <<EOF
6709 #define CRAY_STACKSEG_END $ac_func
6714 echo "$ac_t""no" 1>&6
6720 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
6721 echo "configure:6722: checking stack direction for C alloca" >&5
6722 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6723 echo $ac_n "(cached) $ac_c" 1>&6
6725 if test "$cross_compiling" = yes; then
6726 ac_cv_c_stack_direction=0
6728 cat > conftest.$ac_ext <<EOF
6729 #line 6730 "configure"
6730 #include "confdefs.h"
6731 find_stack_direction ()
6733 static char *addr = 0;
6738 return find_stack_direction ();
6741 return (&dummy > addr) ? 1 : -1;
6745 exit (find_stack_direction() < 0);
6748 if { (eval echo configure:6749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6750 ac_cv_c_stack_direction=1
6752 echo "configure: failed program was:" >&5
6753 cat conftest.$ac_ext >&5
6755 ac_cv_c_stack_direction=-1
6762 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6763 cat >> confdefs.h <<EOF
6764 #define STACK_DIRECTION $ac_cv_c_stack_direction
6769 for ac_hdr in unistd.h
6771 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6772 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6773 echo "configure:6774: checking for $ac_hdr" >&5
6774 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6775 echo $ac_n "(cached) $ac_c" 1>&6
6777 cat > conftest.$ac_ext <<EOF
6778 #line 6779 "configure"
6779 #include "confdefs.h"
6782 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6783 { (eval echo configure:6784: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6784 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6785 if test -z "$ac_err"; then
6787 eval "ac_cv_header_$ac_safe=yes"
6790 echo "configure: failed program was:" >&5
6791 cat conftest.$ac_ext >&5
6793 eval "ac_cv_header_$ac_safe=no"
6797 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6798 echo "$ac_t""yes" 1>&6
6799 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6800 cat >> confdefs.h <<EOF
6801 #define $ac_tr_hdr 1
6805 echo "$ac_t""no" 1>&6
6809 for ac_func in getpagesize
6811 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6812 echo "configure:6813: checking for $ac_func" >&5
6813 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6814 echo $ac_n "(cached) $ac_c" 1>&6
6816 cat > conftest.$ac_ext <<EOF
6817 #line 6818 "configure"
6818 #include "confdefs.h"
6819 /* System header to define __stub macros and hopefully few prototypes,
6820 which can conflict with char $ac_func(); below. */
6822 /* Override any gcc2 internal prototype to avoid an error. */
6823 /* We use char because int might match the return type of a gcc2
6824 builtin and then its argument prototype would still apply. */
6829 /* The GNU C library defines this for functions which it implements
6830 to always fail with ENOSYS. Some functions are actually named
6831 something starting with __ and the normal name is an alias. */
6832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6840 if { (eval echo configure:6841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6842 eval "ac_cv_func_$ac_func=yes"
6844 echo "configure: failed program was:" >&5
6845 cat conftest.$ac_ext >&5
6847 eval "ac_cv_func_$ac_func=no"
6852 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6853 echo "$ac_t""yes" 1>&6
6854 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6855 cat >> confdefs.h <<EOF
6856 #define $ac_tr_func 1
6860 echo "$ac_t""no" 1>&6
6864 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6865 echo "configure:6866: checking for working mmap" >&5
6866 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6867 echo $ac_n "(cached) $ac_c" 1>&6
6869 if test "$cross_compiling" = yes; then
6870 ac_cv_func_mmap_fixed_mapped=no
6872 cat > conftest.$ac_ext <<EOF
6873 #line 6874 "configure"
6874 #include "confdefs.h"
6876 /* Thanks to Mike Haertel and Jim Avera for this test.
6877 Here is a matrix of mmap possibilities:
6878 mmap private not fixed
6879 mmap private fixed at somewhere currently unmapped
6880 mmap private fixed at somewhere already mapped
6881 mmap shared not fixed
6882 mmap shared fixed at somewhere currently unmapped
6883 mmap shared fixed at somewhere already mapped
6884 For private mappings, we should verify that changes cannot be read()
6885 back from the file, nor mmap's back from the file at a different
6886 address. (There have been systems where private was not correctly
6887 implemented like the infamous i386 svr4.0, and systems where the
6888 VM page cache was not coherent with the filesystem buffer cache
6889 like early versions of FreeBSD and possibly contemporary NetBSD.)
6890 For shared mappings, we should conversely verify that changes get
6891 propogated back to all the places they're supposed to be.
6893 Grep wants private fixed already mapped.
6894 The main things grep needs to know about mmap are:
6895 * does it exist and is it safe to write into the mmap'd area
6896 * how to use it (BSD variants) */
6897 #include <sys/types.h>
6899 #include <sys/mman.h>
6901 /* This mess was copied from the GNU getpagesize.h. */
6902 #ifndef HAVE_GETPAGESIZE
6903 # ifdef HAVE_UNISTD_H
6904 # include <unistd.h>
6907 /* Assume that all systems that can run configure have sys/param.h. */
6908 # ifndef HAVE_SYS_PARAM_H
6909 # define HAVE_SYS_PARAM_H 1
6912 # ifdef _SC_PAGESIZE
6913 # define getpagesize() sysconf(_SC_PAGESIZE)
6914 # else /* no _SC_PAGESIZE */
6915 # ifdef HAVE_SYS_PARAM_H
6916 # include <sys/param.h>
6917 # ifdef EXEC_PAGESIZE
6918 # define getpagesize() EXEC_PAGESIZE
6919 # else /* no EXEC_PAGESIZE */
6921 # define getpagesize() NBPG * CLSIZE
6924 # endif /* no CLSIZE */
6925 # else /* no NBPG */
6927 # define getpagesize() NBPC
6928 # else /* no NBPC */
6930 # define getpagesize() PAGESIZE
6931 # endif /* PAGESIZE */
6932 # endif /* no NBPC */
6933 # endif /* no NBPG */
6934 # endif /* no EXEC_PAGESIZE */
6935 # else /* no HAVE_SYS_PARAM_H */
6936 # define getpagesize() 8192 /* punt totally */
6937 # endif /* no HAVE_SYS_PARAM_H */
6938 # endif /* no _SC_PAGESIZE */
6940 #endif /* no HAVE_GETPAGESIZE */
6943 extern "C" { void *malloc(unsigned); }
6951 char *data, *data2, *data3;
6955 pagesize = getpagesize();
6958 * First, make a file with some known garbage in it.
6960 data = malloc(pagesize);
6963 for (i = 0; i < pagesize; ++i)
6964 *(data + i) = rand();
6966 fd = creat("conftestmmap", 0600);
6969 if (write(fd, data, pagesize) != pagesize)
6974 * Next, try to mmap the file at a fixed address which
6975 * already has something else allocated at it. If we can,
6976 * also make sure that we see the same garbage.
6978 fd = open("conftestmmap", O_RDWR);
6981 data2 = malloc(2 * pagesize);
6984 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6985 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6986 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6988 for (i = 0; i < pagesize; ++i)
6989 if (*(data + i) != *(data2 + i))
6993 * Finally, make sure that changes to the mapped area
6994 * do not percolate back to the file as seen by read().
6995 * (This is a bug on some variants of i386 svr4.0.)
6997 for (i = 0; i < pagesize; ++i)
6998 *(data2 + i) = *(data2 + i) + 1;
6999 data3 = malloc(pagesize);
7002 if (read(fd, data3, pagesize) != pagesize)
7004 for (i = 0; i < pagesize; ++i)
7005 if (*(data + i) != *(data3 + i))
7008 unlink("conftestmmap");
7013 if { (eval echo configure:7014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7015 ac_cv_func_mmap_fixed_mapped=yes
7017 echo "configure: failed program was:" >&5
7018 cat conftest.$ac_ext >&5
7020 ac_cv_func_mmap_fixed_mapped=no
7027 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
7028 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7029 cat >> confdefs.h <<\EOF
7036 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
7037 echo "configure:7038: checking whether we are using the GNU C Library 2.1 or newer" >&5
7038 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
7039 echo $ac_n "(cached) $ac_c" 1>&6
7041 cat > conftest.$ac_ext <<EOF
7042 #line 7043 "configure"
7043 #include "confdefs.h"
7045 #include <features.h>
7046 #ifdef __GNU_LIBRARY__
7047 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7054 egrep "Lucky GNU user" >/dev/null 2>&1; then
7056 ac_cv_gnu_library_2_1=yes
7059 ac_cv_gnu_library_2_1=no
7067 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
7069 GLIBC21="$ac_cv_gnu_library_2_1"
7073 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
7074 stdlib.h string.h unistd.h sys/param.h
7076 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7077 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7078 echo "configure:7079: checking for $ac_hdr" >&5
7079 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7080 echo $ac_n "(cached) $ac_c" 1>&6
7082 cat > conftest.$ac_ext <<EOF
7083 #line 7084 "configure"
7084 #include "confdefs.h"
7087 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7088 { (eval echo configure:7089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7089 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7090 if test -z "$ac_err"; then
7092 eval "ac_cv_header_$ac_safe=yes"
7095 echo "configure: failed program was:" >&5
7096 cat conftest.$ac_ext >&5
7098 eval "ac_cv_header_$ac_safe=no"
7102 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7103 echo "$ac_t""yes" 1>&6
7104 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7105 cat >> confdefs.h <<EOF
7106 #define $ac_tr_hdr 1
7110 echo "$ac_t""no" 1>&6
7114 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
7115 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
7116 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
7118 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7119 echo "configure:7120: checking for $ac_func" >&5
7120 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7121 echo $ac_n "(cached) $ac_c" 1>&6
7123 cat > conftest.$ac_ext <<EOF
7124 #line 7125 "configure"
7125 #include "confdefs.h"
7126 /* System header to define __stub macros and hopefully few prototypes,
7127 which can conflict with char $ac_func(); below. */
7129 /* Override any gcc2 internal prototype to avoid an error. */
7130 /* We use char because int might match the return type of a gcc2
7131 builtin and then its argument prototype would still apply. */
7136 /* The GNU C library defines this for functions which it implements
7137 to always fail with ENOSYS. Some functions are actually named
7138 something starting with __ and the normal name is an alias. */
7139 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7147 if { (eval echo configure:7148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7149 eval "ac_cv_func_$ac_func=yes"
7151 echo "configure: failed program was:" >&5
7152 cat conftest.$ac_ext >&5
7154 eval "ac_cv_func_$ac_func=no"
7159 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7160 echo "$ac_t""yes" 1>&6
7161 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7162 cat >> confdefs.h <<EOF
7163 #define $ac_tr_func 1
7167 echo "$ac_t""no" 1>&6
7174 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
7175 if test "${with_libiconv_prefix+set}" = set; then
7176 withval="$with_libiconv_prefix"
7178 for dir in `echo "$withval" | tr : ' '`; do
7179 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
7180 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
7186 echo $ac_n "checking for iconv""... $ac_c" 1>&6
7187 echo "configure:7188: checking for iconv" >&5
7188 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
7189 echo $ac_n "(cached) $ac_c" 1>&6
7192 am_cv_func_iconv="no, consider installing GNU libiconv"
7194 cat > conftest.$ac_ext <<EOF
7195 #line 7196 "configure"
7196 #include "confdefs.h"
7200 iconv_t cd = iconv_open("","");
7201 iconv(cd,NULL,NULL,NULL,NULL);
7205 if { (eval echo configure:7206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7207 am_cv_func_iconv=yes
7209 echo "configure: failed program was:" >&5
7210 cat conftest.$ac_ext >&5
7213 if test "$am_cv_func_iconv" != yes; then
7214 am_save_LIBS="$LIBS"
7215 LIBS="$LIBS -liconv"
7216 cat > conftest.$ac_ext <<EOF
7217 #line 7218 "configure"
7218 #include "confdefs.h"
7222 iconv_t cd = iconv_open("","");
7223 iconv(cd,NULL,NULL,NULL,NULL);
7227 if { (eval echo configure:7228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7230 am_cv_func_iconv=yes
7232 echo "configure: failed program was:" >&5
7233 cat conftest.$ac_ext >&5
7236 LIBS="$am_save_LIBS"
7241 echo "$ac_t""$am_cv_func_iconv" 1>&6
7242 if test "$am_cv_func_iconv" = yes; then
7243 cat >> confdefs.h <<\EOF
7244 #define HAVE_ICONV 1
7247 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
7248 echo "configure:7249: checking for iconv declaration" >&5
7249 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
7250 echo $ac_n "(cached) $ac_c" 1>&6
7253 cat > conftest.$ac_ext <<EOF
7254 #line 7255 "configure"
7255 #include "confdefs.h"
7263 #if defined(__STDC__) || defined(__cplusplus)
7264 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7273 if { (eval echo configure:7274: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7275 am_cv_proto_iconv_arg1=""
7277 echo "configure: failed program was:" >&5
7278 cat conftest.$ac_ext >&5
7280 am_cv_proto_iconv_arg1="const"
7283 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);"
7286 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7287 echo "$ac_t""${ac_t:-
7288 }$am_cv_proto_iconv" 1>&6
7289 cat >> confdefs.h <<EOF
7290 #define ICONV_CONST $am_cv_proto_iconv_arg1
7295 if test "$am_cv_lib_iconv" = yes; then
7301 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
7302 echo "configure:7303: checking for nl_langinfo and CODESET" >&5
7303 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
7304 echo $ac_n "(cached) $ac_c" 1>&6
7306 cat > conftest.$ac_ext <<EOF
7307 #line 7308 "configure"
7308 #include "confdefs.h"
7309 #include <langinfo.h>
7311 char* cs = nl_langinfo(CODESET);
7314 if { (eval echo configure:7315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7316 am_cv_langinfo_codeset=yes
7318 echo "configure: failed program was:" >&5
7319 cat conftest.$ac_ext >&5
7321 am_cv_langinfo_codeset=no
7327 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
7328 if test $am_cv_langinfo_codeset = yes; then
7329 cat >> confdefs.h <<\EOF
7330 #define HAVE_LANGINFO_CODESET 1
7335 if test $ac_cv_header_locale_h = yes; then
7336 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7337 echo "configure:7338: checking for LC_MESSAGES" >&5
7338 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7339 echo $ac_n "(cached) $ac_c" 1>&6
7341 cat > conftest.$ac_ext <<EOF
7342 #line 7343 "configure"
7343 #include "confdefs.h"
7349 if { (eval echo configure:7350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7351 am_cv_val_LC_MESSAGES=yes
7353 echo "configure: failed program was:" >&5
7354 cat conftest.$ac_ext >&5
7356 am_cv_val_LC_MESSAGES=no
7361 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7362 if test $am_cv_val_LC_MESSAGES = yes; then
7363 cat >> confdefs.h <<\EOF
7364 #define HAVE_LC_MESSAGES 1
7369 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7370 echo "configure:7371: checking whether NLS is requested" >&5
7371 # Check whether --enable-nls or --disable-nls was given.
7372 if test "${enable_nls+set}" = set; then
7373 enableval="$enable_nls"
7379 echo "$ac_t""$USE_NLS" 1>&6
7382 BUILD_INCLUDED_LIBINTL=no
7383 USE_INCLUDED_LIBINTL=no
7386 if test "$USE_NLS" = "yes"; then
7387 cat >> confdefs.h <<\EOF
7388 #define ENABLE_NLS 1
7391 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7392 echo "configure:7393: checking whether included gettext is requested" >&5
7393 # Check whether --with-included-gettext or --without-included-gettext was given.
7394 if test "${with_included_gettext+set}" = set; then
7395 withval="$with_included_gettext"
7396 nls_cv_force_use_gnu_gettext=$withval
7398 nls_cv_force_use_gnu_gettext=no
7401 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7403 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7404 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7410 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7411 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7412 echo "configure:7413: checking for libintl.h" >&5
7413 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7414 echo $ac_n "(cached) $ac_c" 1>&6
7416 cat > conftest.$ac_ext <<EOF
7417 #line 7418 "configure"
7418 #include "confdefs.h"
7419 #include <libintl.h>
7421 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7422 { (eval echo configure:7423: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7423 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7424 if test -z "$ac_err"; then
7426 eval "ac_cv_header_$ac_safe=yes"
7429 echo "configure: failed program was:" >&5
7430 cat conftest.$ac_ext >&5
7432 eval "ac_cv_header_$ac_safe=no"
7436 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7437 echo "$ac_t""yes" 1>&6
7438 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
7439 echo "configure:7440: checking for GNU gettext in libc" >&5
7440 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
7441 echo $ac_n "(cached) $ac_c" 1>&6
7443 cat > conftest.$ac_ext <<EOF
7444 #line 7445 "configure"
7445 #include "confdefs.h"
7446 #include <libintl.h>
7447 extern int _nl_msg_cat_cntr;
7449 bindtextdomain ("", "");
7450 return (int) gettext ("") + _nl_msg_cat_cntr
7453 if { (eval echo configure:7454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7455 gt_cv_func_gnugettext1_libc=yes
7457 echo "configure: failed program was:" >&5
7458 cat conftest.$ac_ext >&5
7460 gt_cv_func_gnugettext1_libc=no
7465 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
7467 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
7468 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
7469 echo "configure:7470: checking for GNU gettext in libintl" >&5
7470 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
7471 echo $ac_n "(cached) $ac_c" 1>&6
7473 gt_save_LIBS="$LIBS"
7474 LIBS="$LIBS -lintl $LIBICONV"
7475 cat > conftest.$ac_ext <<EOF
7476 #line 7477 "configure"
7477 #include "confdefs.h"
7478 #include <libintl.h>
7479 extern int _nl_msg_cat_cntr;
7481 bindtextdomain ("", "");
7482 return (int) gettext ("") + _nl_msg_cat_cntr
7485 if { (eval echo configure:7486: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7487 gt_cv_func_gnugettext1_libintl=yes
7489 echo "configure: failed program was:" >&5
7490 cat conftest.$ac_ext >&5
7492 gt_cv_func_gnugettext1_libintl=no
7495 LIBS="$gt_save_LIBS"
7498 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
7501 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7502 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7503 && test "$PACKAGE" != gettext; }; then
7504 cat >> confdefs.h <<\EOF
7505 #define HAVE_GETTEXT 1
7509 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7510 INTLLIBS="-lintl $LIBICONV"
7513 gt_save_LIBS="$LIBS"
7514 LIBS="$LIBS $INTLLIBS"
7515 for ac_func in dcgettext
7517 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7518 echo "configure:7519: checking for $ac_func" >&5
7519 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7520 echo $ac_n "(cached) $ac_c" 1>&6
7522 cat > conftest.$ac_ext <<EOF
7523 #line 7524 "configure"
7524 #include "confdefs.h"
7525 /* System header to define __stub macros and hopefully few prototypes,
7526 which can conflict with char $ac_func(); below. */
7528 /* Override any gcc2 internal prototype to avoid an error. */
7529 /* We use char because int might match the return type of a gcc2
7530 builtin and then its argument prototype would still apply. */
7535 /* The GNU C library defines this for functions which it implements
7536 to always fail with ENOSYS. Some functions are actually named
7537 something starting with __ and the normal name is an alias. */
7538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7546 if { (eval echo configure:7547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7548 eval "ac_cv_func_$ac_func=yes"
7550 echo "configure: failed program was:" >&5
7551 cat conftest.$ac_ext >&5
7553 eval "ac_cv_func_$ac_func=no"
7558 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7559 echo "$ac_t""yes" 1>&6
7560 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7561 cat >> confdefs.h <<EOF
7562 #define $ac_tr_func 1
7566 echo "$ac_t""no" 1>&6
7570 LIBS="$gt_save_LIBS"
7572 # Extract the first word of "msgfmt", so it can be a program name with args.
7573 set dummy msgfmt; ac_word=$2
7574 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7575 echo "configure:7576: checking for $ac_word" >&5
7576 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7577 echo $ac_n "(cached) $ac_c" 1>&6
7581 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7584 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7585 for ac_dir in $PATH; do
7586 test -z "$ac_dir" && ac_dir=.
7587 if test -f $ac_dir/$ac_word; then
7588 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
7589 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7595 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7599 MSGFMT="$ac_cv_path_MSGFMT"
7600 if test "$MSGFMT" != ":"; then
7601 echo "$ac_t""$MSGFMT" 1>&6
7603 echo "$ac_t""no" 1>&6
7606 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7607 set dummy gmsgfmt; ac_word=$2
7608 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7609 echo "configure:7610: checking for $ac_word" >&5
7610 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7611 echo $ac_n "(cached) $ac_c" 1>&6
7615 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7618 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7621 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7623 for ac_dir in $ac_dummy; do
7624 test -z "$ac_dir" && ac_dir=.
7625 if test -f $ac_dir/$ac_word; then
7626 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7631 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7635 GMSGFMT="$ac_cv_path_GMSGFMT"
7636 if test -n "$GMSGFMT"; then
7637 echo "$ac_t""$GMSGFMT" 1>&6
7639 echo "$ac_t""no" 1>&6
7643 # Extract the first word of "xgettext", so it can be a program name with args.
7644 set dummy xgettext; ac_word=$2
7645 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7646 echo "configure:7647: checking for $ac_word" >&5
7647 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7648 echo $ac_n "(cached) $ac_c" 1>&6
7652 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7655 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7656 for ac_dir in $PATH; do
7657 test -z "$ac_dir" && ac_dir=.
7658 if test -f $ac_dir/$ac_word; then
7659 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
7660 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7666 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7670 XGETTEXT="$ac_cv_path_XGETTEXT"
7671 if test "$XGETTEXT" != ":"; then
7672 echo "$ac_t""$XGETTEXT" 1>&6
7674 echo "$ac_t""no" 1>&6
7682 echo "$ac_t""no" 1>&6
7686 if test "$CATOBJEXT" = "NONE"; then
7687 nls_cv_use_gnu_gettext=yes
7691 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7692 INTLOBJS="\$(GETTOBJS)"
7693 # Extract the first word of "msgfmt", so it can be a program name with args.
7694 set dummy msgfmt; ac_word=$2
7695 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7696 echo "configure:7697: checking for $ac_word" >&5
7697 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7698 echo $ac_n "(cached) $ac_c" 1>&6
7702 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7705 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7706 for ac_dir in $PATH; do
7707 test -z "$ac_dir" && ac_dir=.
7708 if test -f $ac_dir/$ac_word; then
7709 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
7710 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7716 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7720 MSGFMT="$ac_cv_path_MSGFMT"
7721 if test "$MSGFMT" != ":"; then
7722 echo "$ac_t""$MSGFMT" 1>&6
7724 echo "$ac_t""no" 1>&6
7727 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7728 set dummy gmsgfmt; ac_word=$2
7729 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7730 echo "configure:7731: checking for $ac_word" >&5
7731 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7732 echo $ac_n "(cached) $ac_c" 1>&6
7736 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7739 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7742 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7744 for ac_dir in $ac_dummy; do
7745 test -z "$ac_dir" && ac_dir=.
7746 if test -f $ac_dir/$ac_word; then
7747 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7752 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7756 GMSGFMT="$ac_cv_path_GMSGFMT"
7757 if test -n "$GMSGFMT"; then
7758 echo "$ac_t""$GMSGFMT" 1>&6
7760 echo "$ac_t""no" 1>&6
7763 # Extract the first word of "xgettext", so it can be a program name with args.
7764 set dummy xgettext; ac_word=$2
7765 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7766 echo "configure:7767: checking for $ac_word" >&5
7767 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7768 echo $ac_n "(cached) $ac_c" 1>&6
7772 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7775 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7776 for ac_dir in $PATH; do
7777 test -z "$ac_dir" && ac_dir=.
7778 if test -f $ac_dir/$ac_word; then
7779 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
7780 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7786 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7790 XGETTEXT="$ac_cv_path_XGETTEXT"
7791 if test "$XGETTEXT" != ":"; then
7792 echo "$ac_t""$XGETTEXT" 1>&6
7794 echo "$ac_t""no" 1>&6
7798 BUILD_INCLUDED_LIBINTL=yes
7799 USE_INCLUDED_LIBINTL=yes
7801 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
7802 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
7805 if test "$GMSGFMT" != ":"; then
7806 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
7809 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
7814 if test "$XGETTEXT" != ":"; then
7815 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
7818 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
7828 if test "$PACKAGE" = gettext; then
7829 BUILD_INCLUDED_LIBINTL=yes
7832 for ac_prog in bison
7834 # Extract the first word of "$ac_prog", so it can be a program name with args.
7835 set dummy $ac_prog; ac_word=$2
7836 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7837 echo "configure:7838: checking for $ac_word" >&5
7838 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
7839 echo $ac_n "(cached) $ac_c" 1>&6
7841 if test -n "$INTLBISON"; then
7842 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
7844 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7846 for ac_dir in $ac_dummy; do
7847 test -z "$ac_dir" && ac_dir=.
7848 if test -f $ac_dir/$ac_word; then
7849 ac_cv_prog_INTLBISON="$ac_prog"
7856 INTLBISON="$ac_cv_prog_INTLBISON"
7857 if test -n "$INTLBISON"; then
7858 echo "$ac_t""$INTLBISON" 1>&6
7860 echo "$ac_t""no" 1>&6
7863 test -n "$INTLBISON" && break
7866 if test -z "$INTLBISON"; then
7869 echo $ac_n "checking version of bison""... $ac_c" 1>&6
7870 echo "configure:7871: checking version of bison" >&5
7871 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
7872 case $ac_prog_version in
7873 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
7874 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
7875 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
7876 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
7878 echo "$ac_t""$ac_prog_version" 1>&6
7880 if test $ac_verc_fail = yes; then
7884 for lang in $ALL_LINGUAS; do
7885 GMOFILES="$GMOFILES $lang.gmo"
7886 POFILES="$POFILES $lang.po"
7900 nls_cv_header_libgt=
7912 if test "x$CATOBJEXT" != "x"; then
7913 if test "x$ALL_LINGUAS" = "x"; then
7916 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
7917 echo "configure:7918: checking for catalogs to be installed" >&5
7919 for presentlang in $ALL_LINGUAS; do
7921 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
7922 # Use the presentlang catalog if desiredlang is
7923 # a. equal to presentlang, or
7924 # b. a variant of presentlang (because in this case,
7925 # presentlang can be used as a fallback for messages
7926 # which are not translated in the desiredlang catalog).
7927 case "$desiredlang" in
7928 "$presentlang"*) useit=yes;;
7931 if test $useit = yes; then
7932 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
7935 LINGUAS=$NEW_LINGUAS
7936 echo "$ac_t""$LINGUAS" 1>&6
7939 if test -n "$LINGUAS"; then
7940 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7945 if test -n "$ac_aux_dir"; then
7946 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
7948 if test -z "$MKINSTALLDIRS"; then
7949 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7953 INTL_LIBTOOL_SUFFIX_PREFIX=
7957 if test "$am_cv_func_iconv" != "yes"
7959 echo "configure: warning: Configuring without iconv support. See INSTALL for details" 1>&2
7962 for ac_hdr in iconv.h
7964 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7965 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7966 echo "configure:7967: checking for $ac_hdr" >&5
7967 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7968 echo $ac_n "(cached) $ac_c" 1>&6
7970 cat > conftest.$ac_ext <<EOF
7971 #line 7972 "configure"
7972 #include "confdefs.h"
7975 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7976 { (eval echo configure:7977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7977 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7978 if test -z "$ac_err"; then
7980 eval "ac_cv_header_$ac_safe=yes"
7983 echo "configure: failed program was:" >&5
7984 cat conftest.$ac_ext >&5
7986 eval "ac_cv_header_$ac_safe=no"
7990 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7991 echo "$ac_t""yes" 1>&6
7992 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7993 cat >> confdefs.h <<EOF
7994 #define $ac_tr_hdr 1
7996 echo $ac_n "checking whether iconv.h defines iconv_t""... $ac_c" 1>&6
7997 echo "configure:7998: checking whether iconv.h defines iconv_t" >&5
7998 cat > conftest.$ac_ext <<EOF
7999 #line 8000 "configure"
8000 #include "confdefs.h"
8003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8004 egrep "typedef.*iconv_t" >/dev/null 2>&1; then
8006 echo "$ac_t""yes" 1>&6
8007 cat >> confdefs.h <<\EOF
8008 #define HAVE_ICONV_T_DEF 1
8013 echo "$ac_t""no" 1>&6
8018 echo "$ac_t""no" 1>&6
8023 echo $ac_n "checking whether this iconv is good enough""... $ac_c" 1>&6
8024 echo "configure:8025: checking whether this iconv is good enough" >&5
8025 if eval "test \"`echo '$''{'mutt_cv_iconv_good'+set}'`\" = set"; then
8026 echo $ac_n "(cached) $ac_c" 1>&6
8028 mutt_save_LIBS="$LIBS"
8029 LIBS="$LIBS $LIBICONV"
8030 if test "$cross_compiling" = yes; then
8031 mutt_cv_iconv_good=yes
8033 cat > conftest.$ac_ext <<EOF
8034 #line 8035 "configure"
8035 #include "confdefs.h"
8044 ob = buf, obl = sizeof(buf);
8045 return ((cd = iconv_open("UTF-8", "UTF-8")) != (iconv_t)(-1) &&
8046 (iconv(cd, 0, 0, &ob, &obl) ||
8047 !(ob == buf && obl == sizeof(buf)) ||
8052 if { (eval echo configure:8053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8054 mutt_cv_iconv_good=yes
8056 echo "configure: failed program was:" >&5
8057 cat conftest.$ac_ext >&5
8059 mutt_cv_iconv_good=no
8064 LIBS="$mutt_save_LIBS"
8067 echo "$ac_t""$mutt_cv_iconv_good" 1>&6
8068 if test "$mutt_cv_iconv_good" = no; then
8069 { echo "configure: error: Try using libiconv instead" 1>&2; exit 1; }
8072 echo $ac_n "checking whether iconv is non-transcribing""... $ac_c" 1>&6
8073 echo "configure:8074: checking whether iconv is non-transcribing" >&5
8074 if eval "test \"`echo '$''{'mutt_cv_iconv_nontrans'+set}'`\" = set"; then
8075 echo $ac_n "(cached) $ac_c" 1>&6
8077 mutt_save_LIBS="$LIBS"
8078 LIBS="$LIBS $LIBICONV"
8079 if test "$cross_compiling" = yes; then
8080 mutt_cv_iconv_nontrans=no
8082 cat > conftest.$ac_ext <<EOF
8083 #line 8084 "configure"
8084 #include "confdefs.h"
8094 const char *s = "\304\211";
8096 ib = s, ibl = 2, ob = t, obl = 3;
8097 return ((cd = iconv_open("UTF-8", "UTF-8")) == (iconv_t)(-1) ||
8098 iconv(cd, &ib, &ibl, &ob, &obl));
8102 if { (eval echo configure:8103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8104 mutt_cv_iconv_nontrans=no
8106 echo "configure: failed program was:" >&5
8107 cat conftest.$ac_ext >&5
8109 mutt_cv_iconv_nontrans=yes
8114 LIBS="$mutt_save_LIBS"
8117 echo "$ac_t""$mutt_cv_iconv_nontrans" 1>&6
8118 if test "$mutt_cv_iconv_nontrans" = yes; then
8119 cat >> confdefs.h <<\EOF
8120 #define ICONV_NONTRANS 1
8124 cat >> confdefs.h <<\EOF
8125 #define ICONV_NONTRANS 0
8130 CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/intl"
8132 if test "$BUILD_INCLUDED_LIBINTL" = "yes"; then
8133 cat >> confdefs.h <<\EOF
8134 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
8138 for ac_func in bind_textdomain_codeset
8140 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8141 echo "configure:8142: checking for $ac_func" >&5
8142 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8143 echo $ac_n "(cached) $ac_c" 1>&6
8145 cat > conftest.$ac_ext <<EOF
8146 #line 8147 "configure"
8147 #include "confdefs.h"
8148 /* System header to define __stub macros and hopefully few prototypes,
8149 which can conflict with char $ac_func(); below. */
8151 /* Override any gcc2 internal prototype to avoid an error. */
8152 /* We use char because int might match the return type of a gcc2
8153 builtin and then its argument prototype would still apply. */
8158 /* The GNU C library defines this for functions which it implements
8159 to always fail with ENOSYS. Some functions are actually named
8160 something starting with __ and the normal name is an alias. */
8161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8169 if { (eval echo configure:8170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8171 eval "ac_cv_func_$ac_func=yes"
8173 echo "configure: failed program was:" >&5
8174 cat conftest.$ac_ext >&5
8176 eval "ac_cv_func_$ac_func=no"
8181 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8182 echo "$ac_t""yes" 1>&6
8183 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8184 cat >> confdefs.h <<EOF
8185 #define $ac_tr_func 1
8189 echo "$ac_t""no" 1>&6
8198 for ac_hdr in wchar.h
8200 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8201 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8202 echo "configure:8203: checking for $ac_hdr" >&5
8203 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8204 echo $ac_n "(cached) $ac_c" 1>&6
8206 cat > conftest.$ac_ext <<EOF
8207 #line 8208 "configure"
8208 #include "confdefs.h"
8211 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8212 { (eval echo configure:8213: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8213 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8214 if test -z "$ac_err"; then
8216 eval "ac_cv_header_$ac_safe=yes"
8219 echo "configure: failed program was:" >&5
8220 cat conftest.$ac_ext >&5
8222 eval "ac_cv_header_$ac_safe=no"
8226 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8227 echo "$ac_t""yes" 1>&6
8228 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8229 cat >> confdefs.h <<EOF
8230 #define $ac_tr_hdr 1
8234 echo "$ac_t""no" 1>&6
8239 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
8240 echo "configure:8241: checking for wchar_t" >&5
8241 if eval "test \"`echo '$''{'mutt_cv_wchar_t'+set}'`\" = set"; then
8242 echo $ac_n "(cached) $ac_c" 1>&6
8244 cat > conftest.$ac_ext <<EOF
8245 #line 8246 "configure"
8246 #include "confdefs.h"
8255 wchar_t wc; return 0;
8258 if { (eval echo configure:8259: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8262 echo "configure: failed program was:" >&5
8263 cat conftest.$ac_ext >&5
8270 echo "$ac_t""$mutt_cv_wchar_t" 1>&6
8272 if test "$mutt_cv_wchar_t" = no; then
8273 cat >> confdefs.h <<\EOF
8279 echo $ac_n "checking for wint_t""... $ac_c" 1>&6
8280 echo "configure:8281: checking for wint_t" >&5
8281 if eval "test \"`echo '$''{'mutt_cv_wint_t'+set}'`\" = set"; then
8282 echo $ac_n "(cached) $ac_c" 1>&6
8284 cat > conftest.$ac_ext <<EOF
8285 #line 8286 "configure"
8286 #include "confdefs.h"
8295 wint_t wc; return 0;
8298 if { (eval echo configure:8299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8302 echo "configure: failed program was:" >&5
8303 cat conftest.$ac_ext >&5
8310 echo "$ac_t""$mutt_cv_wint_t" 1>&6
8312 if test "$mutt_cv_wint_t" = no; then
8313 cat >> confdefs.h <<\EOF
8319 for ac_hdr in wctype.h
8321 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8322 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8323 echo "configure:8324: checking for $ac_hdr" >&5
8324 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8325 echo $ac_n "(cached) $ac_c" 1>&6
8327 cat > conftest.$ac_ext <<EOF
8328 #line 8329 "configure"
8329 #include "confdefs.h"
8332 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8333 { (eval echo configure:8334: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8334 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8335 if test -z "$ac_err"; then
8337 eval "ac_cv_header_$ac_safe=yes"
8340 echo "configure: failed program was:" >&5
8341 cat conftest.$ac_ext >&5
8343 eval "ac_cv_header_$ac_safe=no"
8347 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8348 echo "$ac_t""yes" 1>&6
8349 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8350 cat >> confdefs.h <<EOF
8351 #define $ac_tr_hdr 1
8355 echo "$ac_t""no" 1>&6
8359 for ac_func in iswalnum iswalpha iswcntrl iswdigit
8361 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8362 echo "configure:8363: checking for $ac_func" >&5
8363 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8364 echo $ac_n "(cached) $ac_c" 1>&6
8366 cat > conftest.$ac_ext <<EOF
8367 #line 8368 "configure"
8368 #include "confdefs.h"
8369 /* System header to define __stub macros and hopefully few prototypes,
8370 which can conflict with char $ac_func(); below. */
8372 /* Override any gcc2 internal prototype to avoid an error. */
8373 /* We use char because int might match the return type of a gcc2
8374 builtin and then its argument prototype would still apply. */
8379 /* The GNU C library defines this for functions which it implements
8380 to always fail with ENOSYS. Some functions are actually named
8381 something starting with __ and the normal name is an alias. */
8382 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8390 if { (eval echo configure:8391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8392 eval "ac_cv_func_$ac_func=yes"
8394 echo "configure: failed program was:" >&5
8395 cat conftest.$ac_ext >&5
8397 eval "ac_cv_func_$ac_func=no"
8402 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8403 echo "$ac_t""yes" 1>&6
8404 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8405 cat >> confdefs.h <<EOF
8406 #define $ac_tr_func 1
8410 echo "$ac_t""no" 1>&6
8414 for ac_func in iswgraph iswlower iswprint iswpunct iswspace iswupper
8416 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8417 echo "configure:8418: checking for $ac_func" >&5
8418 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8419 echo $ac_n "(cached) $ac_c" 1>&6
8421 cat > conftest.$ac_ext <<EOF
8422 #line 8423 "configure"
8423 #include "confdefs.h"
8424 /* System header to define __stub macros and hopefully few prototypes,
8425 which can conflict with char $ac_func(); below. */
8427 /* Override any gcc2 internal prototype to avoid an error. */
8428 /* We use char because int might match the return type of a gcc2
8429 builtin and then its argument prototype would still apply. */
8434 /* The GNU C library defines this for functions which it implements
8435 to always fail with ENOSYS. Some functions are actually named
8436 something starting with __ and the normal name is an alias. */
8437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8445 if { (eval echo configure:8446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8447 eval "ac_cv_func_$ac_func=yes"
8449 echo "configure: failed program was:" >&5
8450 cat conftest.$ac_ext >&5
8452 eval "ac_cv_func_$ac_func=no"
8457 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8458 echo "$ac_t""yes" 1>&6
8459 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8460 cat >> confdefs.h <<EOF
8461 #define $ac_tr_func 1
8465 echo "$ac_t""no" 1>&6
8469 for ac_func in iswxdigit towupper towlower
8471 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8472 echo "configure:8473: checking for $ac_func" >&5
8473 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8474 echo $ac_n "(cached) $ac_c" 1>&6
8476 cat > conftest.$ac_ext <<EOF
8477 #line 8478 "configure"
8478 #include "confdefs.h"
8479 /* System header to define __stub macros and hopefully few prototypes,
8480 which can conflict with char $ac_func(); below. */
8482 /* Override any gcc2 internal prototype to avoid an error. */
8483 /* We use char because int might match the return type of a gcc2
8484 builtin and then its argument prototype would still apply. */
8489 /* The GNU C library defines this for functions which it implements
8490 to always fail with ENOSYS. Some functions are actually named
8491 something starting with __ and the normal name is an alias. */
8492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8500 if { (eval echo configure:8501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8502 eval "ac_cv_func_$ac_func=yes"
8504 echo "configure: failed program was:" >&5
8505 cat conftest.$ac_ext >&5
8507 eval "ac_cv_func_$ac_func=no"
8512 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8513 echo "$ac_t""yes" 1>&6
8514 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8515 cat >> confdefs.h <<EOF
8516 #define $ac_tr_func 1
8520 echo "$ac_t""no" 1>&6
8525 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8526 echo "configure:8527: checking for mbstate_t" >&5
8527 if eval "test \"`echo '$''{'mutt_cv_mbstate_t'+set}'`\" = set"; then
8528 echo $ac_n "(cached) $ac_c" 1>&6
8530 cat > conftest.$ac_ext <<EOF
8531 #line 8532 "configure"
8532 #include "confdefs.h"
8541 mbstate_t s; return 0;
8544 if { (eval echo configure:8545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8546 mutt_cv_mbstate_t=yes
8548 echo "configure: failed program was:" >&5
8549 cat conftest.$ac_ext >&5
8551 mutt_cv_mbstate_t=no
8556 echo "$ac_t""$mutt_cv_mbstate_t" 1>&6
8558 if test "$mutt_cv_mbstate_t" = no; then
8559 cat >> confdefs.h <<\EOF
8560 #define mbstate_t int
8566 # Check whether --with-wc-funcs or --without-wc-funcs was given.
8567 if test "${with_wc_funcs+set}" = set; then
8568 withval="$with_wc_funcs"
8573 if test "$wc_funcs" != yes -a "$wc_funcs" != no; then
8574 echo $ac_n "checking for wchar_t functions""... $ac_c" 1>&6
8575 echo "configure:8576: checking for wchar_t functions" >&5
8576 if eval "test \"`echo '$''{'mutt_cv_wc_funcs'+set}'`\" = set"; then
8577 echo $ac_n "(cached) $ac_c" 1>&6
8580 cat > conftest.$ac_ext <<EOF
8581 #line 8582 "configure"
8582 #include "confdefs.h"
8584 #define _XOPEN_SOURCE 1
8587 #ifdef HAVE_WCTYPE_H
8594 mbrtowc(0, 0, 0, 0); wctomb(0, 0); wcwidth(0);
8595 iswprint(0); iswspace(0); towlower(0); towupper(0); iswalnum(0)
8598 if { (eval echo configure:8599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8600 mutt_cv_wc_funcs=yes
8602 echo "configure: failed program was:" >&5
8603 cat conftest.$ac_ext >&5
8608 echo "$ac_t""$mutt_cv_wc_funcs" 1>&6
8609 wc_funcs=$mutt_cv_wc_funcs
8612 if test $wc_funcs = yes; then
8613 cat >> confdefs.h <<\EOF
8614 #define HAVE_WC_FUNCS 1
8619 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
8620 echo "configure:8621: checking for nl_langinfo and CODESET" >&5
8621 if eval "test \"`echo '$''{'mutt_cv_langinfo_codeset'+set}'`\" = set"; then
8622 echo $ac_n "(cached) $ac_c" 1>&6
8624 cat > conftest.$ac_ext <<EOF
8625 #line 8626 "configure"
8626 #include "confdefs.h"
8627 #include <langinfo.h>
8629 char* cs = nl_langinfo(CODESET);
8632 if { (eval echo configure:8633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8634 mutt_cv_langinfo_codeset=yes
8636 echo "configure: failed program was:" >&5
8637 cat conftest.$ac_ext >&5
8639 mutt_cv_langinfo_codeset=no
8644 echo "$ac_t""$mutt_cv_langinfo_codeset" 1>&6
8645 if test $mutt_cv_langinfo_codeset = yes; then
8646 cat >> confdefs.h <<\EOF
8647 #define HAVE_LANGINFO_CODESET 1
8652 echo $ac_n "checking for nl_langinfo and YESEXPR""... $ac_c" 1>&6
8653 echo "configure:8654: checking for nl_langinfo and YESEXPR" >&5
8654 if eval "test \"`echo '$''{'mutt_cv_langinfo_yesexpr'+set}'`\" = set"; then
8655 echo $ac_n "(cached) $ac_c" 1>&6
8657 cat > conftest.$ac_ext <<EOF
8658 #line 8659 "configure"
8659 #include "confdefs.h"
8660 #include <langinfo.h>
8662 char* cs = nl_langinfo(YESEXPR);
8665 if { (eval echo configure:8666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8667 mutt_cv_langinfo_yesexpr=yes
8669 echo "configure: failed program was:" >&5
8670 cat conftest.$ac_ext >&5
8672 mutt_cv_langinfo_yesexpr=no
8677 echo "$ac_t""$mutt_cv_langinfo_yesexpr" 1>&6
8678 if test $mutt_cv_langinfo_yesexpr = yes; then
8679 cat >> confdefs.h <<\EOF
8680 #define HAVE_LANGINFO_YESEXPR 1
8686 # Check whether --with-libesmtp or --without-libesmtp was given.
8687 if test "${with_libesmtp+set}" = set; then
8688 withval="$with_libesmtp"
8689 if test "$with_libesmtp" != "no"
8691 mutt_libesmtp_check_path="$PATH"
8693 if test "$with_libesmtp" != "yes"
8695 mutt_libesmtp_check_path="$tmp_path:$withval/bin"
8698 # Extract the first word of "libesmtp-config", so it can be a program name with args.
8699 set dummy libesmtp-config; ac_word=$2
8700 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8701 echo "configure:8702: checking for $ac_word" >&5
8702 if eval "test \"`echo '$''{'ac_cv_path_mutt_libesmtp_config_path'+set}'`\" = set"; then
8703 echo $ac_n "(cached) $ac_c" 1>&6
8705 case "$mutt_libesmtp_config_path" in
8707 ac_cv_path_mutt_libesmtp_config_path="$mutt_libesmtp_config_path" # Let the user override the test with a path.
8710 ac_cv_path_mutt_libesmtp_config_path="$mutt_libesmtp_config_path" # Let the user override the test with a dos path.
8713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8714 ac_dummy="$mutt_libesmtp_check_path"
8715 for ac_dir in $ac_dummy; do
8716 test -z "$ac_dir" && ac_dir=.
8717 if test -f $ac_dir/$ac_word; then
8718 ac_cv_path_mutt_libesmtp_config_path="$ac_dir/$ac_word"
8723 test -z "$ac_cv_path_mutt_libesmtp_config_path" && ac_cv_path_mutt_libesmtp_config_path="no"
8727 mutt_libesmtp_config_path="$ac_cv_path_mutt_libesmtp_config_path"
8728 if test -n "$mutt_libesmtp_config_path"; then
8729 echo "$ac_t""$mutt_libesmtp_config_path" 1>&6
8731 echo "$ac_t""no" 1>&6
8735 if test "$mutt_libesmtp_config_path" = "no"
8737 { echo "configure: error: libesmtp-config binary not found." 1>&2; exit 1; }
8740 mutt_libesmtp_cflags=`$mutt_libesmtp_config_path --cflags`
8741 mutt_libesmtp_libs=`$mutt_libesmtp_config_path --libs`
8743 temp_CFLAGS="$CFLAGS"
8744 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
8745 ac_safe=`echo "libesmtp.h" | sed 'y%./+-%__p_%'`
8746 echo $ac_n "checking for libesmtp.h""... $ac_c" 1>&6
8747 echo "configure:8748: checking for libesmtp.h" >&5
8748 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8749 echo $ac_n "(cached) $ac_c" 1>&6
8751 cat > conftest.$ac_ext <<EOF
8752 #line 8753 "configure"
8753 #include "confdefs.h"
8754 #include <libesmtp.h>
8756 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8757 { (eval echo configure:8758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8758 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8759 if test -z "$ac_err"; then
8761 eval "ac_cv_header_$ac_safe=yes"
8764 echo "configure: failed program was:" >&5
8765 cat conftest.$ac_ext >&5
8767 eval "ac_cv_header_$ac_safe=no"
8771 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8772 echo "$ac_t""yes" 1>&6
8775 echo "$ac_t""no" 1>&6
8776 { echo "configure: error: Could not find libesmtp.h" 1>&2; exit 1; }
8779 CFLAGS="$temp_CFLAGS"
8781 temp_CFLAGS="$CFLAGS"
8783 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
8784 LIBS="$LIBS $mutt_libesmtp_libs"
8785 echo $ac_n "checking for smtp_create_session in -lesmtp""... $ac_c" 1>&6
8786 echo "configure:8787: checking for smtp_create_session in -lesmtp" >&5
8787 ac_lib_var=`echo esmtp'_'smtp_create_session | sed 'y%./+-%__p_%'`
8788 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8789 echo $ac_n "(cached) $ac_c" 1>&6
8791 ac_save_LIBS="$LIBS"
8792 LIBS="-lesmtp $LIBS"
8793 cat > conftest.$ac_ext <<EOF
8794 #line 8795 "configure"
8795 #include "confdefs.h"
8796 /* Override any gcc2 internal prototype to avoid an error. */
8797 /* We use char because int might match the return type of a gcc2
8798 builtin and then its argument prototype would still apply. */
8799 char smtp_create_session();
8802 smtp_create_session()
8805 if { (eval echo configure:8806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8807 eval "ac_cv_lib_$ac_lib_var=yes"
8809 echo "configure: failed program was:" >&5
8810 cat conftest.$ac_ext >&5
8812 eval "ac_cv_lib_$ac_lib_var=no"
8815 LIBS="$ac_save_LIBS"
8818 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8819 echo "$ac_t""yes" 1>&6
8820 ac_tr_lib=HAVE_LIB`echo esmtp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8821 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8822 cat >> confdefs.h <<EOF
8823 #define $ac_tr_lib 1
8826 LIBS="-lesmtp $LIBS"
8829 echo "$ac_t""no" 1>&6
8830 { echo "configure: error: Could not find libesmtp" 1>&2; exit 1; }
8833 CFLAGS="$temp_CFLAGS"
8843 if test x$use_libesmtp = xyes; then
8844 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
8845 MUTTLIBS="$MUTTLIBS $mutt_libesmtp_libs"
8846 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_libesmtp.o"
8848 cat >> confdefs.h <<\EOF
8849 #define USE_LIBESMTP 1
8855 cat > confcache <<\EOF
8856 # This file is a shell script that caches the results of configure
8857 # tests run on this system so they can be shared between configure
8858 # scripts and configure runs. It is not useful on other systems.
8859 # If it contains results you don't want to keep, you may remove or edit it.
8861 # By default, configure uses ./config.cache as the cache file,
8862 # creating it if it does not exist already. You can give configure
8863 # the --cache-file=FILE option to use a different cache file; that is
8864 # what configure does when it calls configure scripts in
8865 # subdirectories, so they share the cache.
8866 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8867 # config.status only pays attention to the cache file if you give it the
8868 # --recheck option to rerun configure.
8871 # The following way of writing the cache mishandles newlines in values,
8872 # but we know of no workaround that is simple, portable, and efficient.
8873 # So, don't put newlines in cache variables' values.
8874 # Ultrix sh set writes to stderr and can't be redirected directly,
8875 # and sets the high bit in the cache file unless we assign to the vars.
8877 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8879 # `set' does not quote correctly, so add quotes (double-quote substitution
8880 # turns \\\\ into \\, and sed turns \\ into \).
8882 -e "s/'/'\\\\''/g" \
8883 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8886 # `set' quotes correctly as required by POSIX, so do not add quotes.
8887 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8890 if cmp -s $cache_file confcache; then
8893 if test -w $cache_file; then
8894 echo "updating cache $cache_file"
8895 cat confcache > $cache_file
8897 echo "not updating unwritable cache $cache_file"
8902 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8904 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8905 # Let make expand exec_prefix.
8906 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8908 # Any assignment to VPATH causes Sun make to only execute
8909 # the first set of double-colon rules, so remove it if not needed.
8910 # If there is a colon in the path, we need to keep it.
8911 if test "x$srcdir" = x.; then
8912 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8915 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8917 DEFS=-DHAVE_CONFIG_H
8919 # Without the "./", some shells look in PATH for config.status.
8920 : ${CONFIG_STATUS=./config.status}
8922 echo creating $CONFIG_STATUS
8923 rm -f $CONFIG_STATUS
8924 cat > $CONFIG_STATUS <<EOF
8926 # Generated automatically by configure.
8927 # Run this file to recreate the current configuration.
8928 # This directory was configured as follows,
8929 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8931 # $0 $ac_configure_args
8933 # Compiler output produced by configure, useful for debugging
8934 # configure, is in ./config.log if it exists.
8936 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8939 case "\$ac_option" in
8940 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8941 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8942 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8943 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8944 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8946 -help | --help | --hel | --he | --h)
8947 echo "\$ac_cs_usage"; exit 0 ;;
8948 *) echo "\$ac_cs_usage"; exit 1 ;;
8952 ac_given_srcdir=$srcdir
8953 ac_given_INSTALL="$INSTALL"
8955 trap 'rm -fr `echo "Makefile intl/Makefile m4/Makefile
8956 po/Makefile.in doc/Makefile contrib/Makefile
8960 doc/instdoc.sh config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8962 cat >> $CONFIG_STATUS <<EOF
8964 # Protect against being on the right side of a sed subst in config.status.
8965 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8966 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8970 s%@CFLAGS@%$CFLAGS%g
8971 s%@CPPFLAGS@%$CPPFLAGS%g
8972 s%@CXXFLAGS@%$CXXFLAGS%g
8973 s%@FFLAGS@%$FFLAGS%g
8975 s%@LDFLAGS@%$LDFLAGS%g
8977 s%@exec_prefix@%$exec_prefix%g
8978 s%@prefix@%$prefix%g
8979 s%@program_transform_name@%$program_transform_name%g
8980 s%@bindir@%$bindir%g
8981 s%@sbindir@%$sbindir%g
8982 s%@libexecdir@%$libexecdir%g
8983 s%@datadir@%$datadir%g
8984 s%@sysconfdir@%$sysconfdir%g
8985 s%@sharedstatedir@%$sharedstatedir%g
8986 s%@localstatedir@%$localstatedir%g
8987 s%@libdir@%$libdir%g
8988 s%@includedir@%$includedir%g
8989 s%@oldincludedir@%$oldincludedir%g
8990 s%@infodir@%$infodir%g
8991 s%@mandir@%$mandir%g
8992 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8993 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8994 s%@INSTALL_DATA@%$INSTALL_DATA%g
8995 s%@PACKAGE@%$PACKAGE%g
8996 s%@VERSION@%$VERSION%g
8997 s%@ACLOCAL@%$ACLOCAL%g
8998 s%@AUTOCONF@%$AUTOCONF%g
8999 s%@AUTOMAKE@%$AUTOMAKE%g
9000 s%@AUTOHEADER@%$AUTOHEADER%g
9001 s%@MAKEINFO@%$MAKEINFO%g
9002 s%@SET_MAKE@%$SET_MAKE%g
9004 s%@host_alias@%$host_alias%g
9005 s%@host_cpu@%$host_cpu%g
9006 s%@host_vendor@%$host_vendor%g
9007 s%@host_os@%$host_os%g
9011 s%@ANSI2KNR@%$ANSI2KNR%g
9012 s%@RANLIB@%$RANLIB%g
9014 s%@build_alias@%$build_alias%g
9015 s%@build_cpu@%$build_cpu%g
9016 s%@build_vendor@%$build_vendor%g
9017 s%@build_os@%$build_os%g
9022 s%@DEBUGGER@%$DEBUGGER%g
9023 s%@SENDMAIL@%$SENDMAIL%g
9025 s%@PGPAUX_TARGET@%$PGPAUX_TARGET%g
9026 s%@SMIMEAUX_TARGET@%$SMIMEAUX_TARGET%g
9027 s%@SUBVERSION@%$SUBVERSION%g
9028 s%@ISPELL@%$ISPELL%g
9029 s%@LIBOBJS@%$LIBOBJS%g
9030 s%@DOTLOCK_TARGET@%$DOTLOCK_TARGET%g
9031 s%@docdir@%$docdir%g
9032 s%@DOTLOCK_GROUP@%$DOTLOCK_GROUP%g
9033 s%@DOTLOCK_PERMISSION@%$DOTLOCK_PERMISSION%g
9034 s%@BUILD_IMAP_TRUE@%$BUILD_IMAP_TRUE%g
9035 s%@BUILD_IMAP_FALSE@%$BUILD_IMAP_FALSE%g
9036 s%@KRB5CFGPATH@%$KRB5CFGPATH%g
9037 s%@USE_GSS_TRUE@%$USE_GSS_TRUE%g
9038 s%@USE_GSS_FALSE@%$USE_GSS_FALSE%g
9039 s%@USE_SSL_TRUE@%$USE_SSL_TRUE%g
9040 s%@USE_SSL_FALSE@%$USE_SSL_FALSE%g
9041 s%@USE_GNUTLS_TRUE@%$USE_GNUTLS_TRUE%g
9042 s%@USE_GNUTLS_FALSE@%$USE_GNUTLS_FALSE%g
9043 s%@USE_SASL_TRUE@%$USE_SASL_TRUE%g
9044 s%@USE_SASL_FALSE@%$USE_SASL_FALSE%g
9045 s%@MUTTLIBS@%$MUTTLIBS%g
9046 s%@MUTT_LIB_OBJECTS@%$MUTT_LIB_OBJECTS%g
9047 s%@LIBIMAP@%$LIBIMAP%g
9048 s%@LIBIMAPDEPS@%$LIBIMAPDEPS%g
9049 s%@ALLOCA@%$ALLOCA%g
9050 s%@GLIBC21@%$GLIBC21%g
9051 s%@LIBICONV@%$LIBICONV%g
9052 s%@USE_NLS@%$USE_NLS%g
9053 s%@MSGFMT@%$MSGFMT%g
9054 s%@GMSGFMT@%$GMSGFMT%g
9055 s%@XGETTEXT@%$XGETTEXT%g
9056 s%@INTLBISON@%$INTLBISON%g
9057 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
9058 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
9059 s%@CATALOGS@%$CATALOGS%g
9060 s%@CATOBJEXT@%$CATOBJEXT%g
9061 s%@GMOFILES@%$GMOFILES%g
9062 s%@INTLLIBS@%$INTLLIBS%g
9063 s%@INTLOBJS@%$INTLOBJS%g
9064 s%@POFILES@%$POFILES%g
9066 s%@DATADIRNAME@%$DATADIRNAME%g
9067 s%@INSTOBJEXT@%$INSTOBJEXT%g
9068 s%@GENCAT@%$GENCAT%g
9069 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
9070 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
9071 s%@mutt_libesmtp_config_path@%$mutt_libesmtp_config_path%g
9076 cat >> $CONFIG_STATUS <<\EOF
9078 # Split the substitutions into bite-sized pieces for seds with
9079 # small command number limits, like on Digital OSF/1 and HP-UX.
9080 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
9081 ac_file=1 # Number of current file.
9082 ac_beg=1 # First line for current file.
9083 ac_end=$ac_max_sed_cmds # Line after last line for current file.
9086 while $ac_more_lines; do
9087 if test $ac_beg -gt 1; then
9088 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
9090 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
9092 if test ! -s conftest.s$ac_file; then
9094 rm -f conftest.s$ac_file
9096 if test -z "$ac_sed_cmds"; then
9097 ac_sed_cmds="sed -f conftest.s$ac_file"
9099 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
9101 ac_file=`expr $ac_file + 1`
9103 ac_end=`expr $ac_end + $ac_max_sed_cmds`
9106 if test -z "$ac_sed_cmds"; then
9111 cat >> $CONFIG_STATUS <<EOF
9113 CONFIG_FILES=\${CONFIG_FILES-"Makefile intl/Makefile m4/Makefile
9114 po/Makefile.in doc/Makefile contrib/Makefile
9120 cat >> $CONFIG_STATUS <<\EOF
9121 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
9122 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9124 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9125 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9126 *) ac_file_in="${ac_file}.in" ;;
9129 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
9131 # Remove last slash and all that follows it. Not all systems have dirname.
9132 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9133 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9134 # The file is in a subdirectory.
9135 test ! -d "$ac_dir" && mkdir "$ac_dir"
9136 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
9137 # A "../" for each directory in $ac_dir_suffix.
9138 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
9140 ac_dir_suffix= ac_dots=
9143 case "$ac_given_srcdir" in
9145 if test -z "$ac_dots"; then top_srcdir=.
9146 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
9147 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
9149 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
9150 top_srcdir="$ac_dots$ac_given_srcdir" ;;
9153 case "$ac_given_INSTALL" in
9154 [/$]*) INSTALL="$ac_given_INSTALL" ;;
9155 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
9158 echo creating "$ac_file"
9160 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
9162 *Makefile*) ac_comsub="1i\\
9163 # $configure_input" ;;
9167 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9169 s%@configure_input@%$configure_input%g
9170 s%@srcdir@%$srcdir%g
9171 s%@top_srcdir@%$top_srcdir%g
9172 s%@INSTALL@%$INSTALL%g
9173 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
9177 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
9178 # NAME is the cpp macro being defined and VALUE is the value it is being given.
9180 # ac_d sets the value in "#define NAME VALUE" lines.
9181 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
9182 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
9185 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
9186 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9187 ac_uB='\([ ]\)%\1#\2define\3'
9190 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
9191 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
9192 ac_eB='$%\1#\2define\3'
9196 if test "${CONFIG_HEADERS+set}" != set; then
9198 cat >> $CONFIG_STATUS <<EOF
9199 CONFIG_HEADERS="config.h"
9201 cat >> $CONFIG_STATUS <<\EOF
9203 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
9204 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9206 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
9207 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9208 *) ac_file_in="${ac_file}.in" ;;
9211 echo creating $ac_file
9213 rm -f conftest.frag conftest.in conftest.out
9214 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
9215 cat $ac_file_inputs > conftest.in
9219 # Transform confdefs.h into a sed script conftest.vals that substitutes
9220 # the proper values into config.h.in to produce config.h. And first:
9221 # Protect against being on the right side of a sed subst in config.status.
9222 # Protect against being in an unquoted here document in config.status.
9224 cat > conftest.hdr <<\EOF
9227 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
9231 sed -n -f conftest.hdr confdefs.h > conftest.vals
9234 # This sed command replaces #undef with comments. This is necessary, for
9235 # example, in the case of _POSIX_SOURCE, which is predefined and required
9236 # on some systems where configure will not decide to define it.
9237 cat >> conftest.vals <<\EOF
9238 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
9241 # Break up conftest.vals because some shells have a limit on
9242 # the size of here documents, and old seds have small limits too.
9247 ac_lines=`grep -c . conftest.vals`
9248 # grep -c gives empty output for an empty file on some AIX systems.
9249 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
9250 # Write a limited-size here document to conftest.frag.
9251 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
9252 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
9254 sed -f conftest.frag conftest.in > conftest.out
9256 mv conftest.out conftest.in
9258 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
9260 mv conftest.tail conftest.vals
9264 cat >> $CONFIG_STATUS <<\EOF
9265 rm -f conftest.frag conftest.h
9266 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
9267 cat conftest.in >> conftest.h
9269 if cmp -s $ac_file conftest.h 2>/dev/null; then
9270 echo "$ac_file is unchanged"
9273 # Remove last slash and all that follows it. Not all systems have dirname.
9274 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9275 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9276 # The file is in a subdirectory.
9277 test ! -d "$ac_dir" && mkdir "$ac_dir"
9280 mv conftest.h $ac_file
9285 cat >> $CONFIG_STATUS <<EOF
9290 cat >> $CONFIG_STATUS <<\EOF
9291 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
9292 for ac_file in $CONFIG_FILES; do
9293 # Support "outfile[:infile[:infile...]]"
9295 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9297 # PO directories have a Makefile.in generated from Makefile.in.in.
9298 case "$ac_file" in */Makefile.in)
9299 # Adjust a relative srcdir.
9300 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9301 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9302 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9303 # In autoconf-2.13 it is called $ac_given_srcdir.
9304 # In autoconf-2.50 it is called $srcdir.
9305 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9306 case "$ac_given_srcdir" in
9307 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9308 /*) top_srcdir="$ac_given_srcdir" ;;
9309 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9311 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9312 rm -f "$ac_dir/POTFILES"
9313 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9314 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9315 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9316 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9324 chmod +x $CONFIG_STATUS
9325 rm -fr confdefs* $ac_clean_files
9326 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1