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-nss[=PFX] Compile in SSL support for POP/IMAP via NSS"
49 --with-sasl[=PFX] Use Cyrus SASL library for POP/IMAP authentication"
51 --with-sasl2[=PFX] Use Cyrus SASL library version 2 for POP/IMAP authentication"
53 --with-idn=[PFX] Use GNU libidn for domain names"
55 --enable-debug Enable debugging support"
57 --enable-flock Use flock() to lock files"
59 --disable-fcntl Do NOT use fcntl() to lock files "
61 --disable-warnings Turn off compiler warnings (not recommended)"
63 --enable-nfs-fix Work around an NFS with broken attributes caching "
65 --enable-buffy-size Use file size attribute instead of access time "
67 --enable-mailtool Enable Sun mailtool attachments support "
69 --enable-locales-fix The result of isprint() is unreliable "
71 --with-exec-shell=SHELL Specify alternate shell (ONLY if /bin/sh is broken)"
73 --enable-exact-address Enable regeneration of email addresses"
75 --disable-iconv Disable iconv support"
77 --with-libiconv-prefix=DIR Search for libiconv in DIR/include and DIR/lib"
79 --disable-nls Do not use Native Language Support"
81 --with-included-gettext Use the GNU gettext library included here"
83 --without-wc-funcs Do not use the system's wchar_t functions"
85 --with-libesmtp=DIR Compile in support for libesmtp for the MTA"
87 # Initialize some variables set by options.
88 # The variables have the same names as the options, with
89 # dashes changed to underlines.
91 cache_file=./config.cache
100 program_transform_name=s,x,x,
108 bindir='${exec_prefix}/bin'
109 sbindir='${exec_prefix}/sbin'
110 libexecdir='${exec_prefix}/libexec'
111 datadir='${prefix}/share'
112 sysconfdir='${prefix}/etc'
113 sharedstatedir='${prefix}/com'
114 localstatedir='${prefix}/var'
115 libdir='${exec_prefix}/lib'
116 includedir='${prefix}/include'
117 oldincludedir='/usr/include'
118 infodir='${prefix}/info'
119 mandir='${prefix}/man'
121 # Initialize some other variables.
124 SHELL=${CONFIG_SHELL-/bin/sh}
125 # Maximum number of lines to put in a shell here document.
132 # If the previous option needs an argument, assign it.
133 if test -n "$ac_prev"; then
134 eval "$ac_prev=\$ac_option"
140 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
144 # Accept the important Cygnus configure options, so we can diagnose typos.
148 -bindir | --bindir | --bindi | --bind | --bin | --bi)
150 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
151 bindir="$ac_optarg" ;;
153 -build | --build | --buil | --bui | --bu)
155 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
156 build="$ac_optarg" ;;
158 -cache-file | --cache-file | --cache-fil | --cache-fi \
159 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
160 ac_prev=cache_file ;;
161 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
162 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
163 cache_file="$ac_optarg" ;;
165 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
167 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
169 datadir="$ac_optarg" ;;
171 -disable-* | --disable-*)
172 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
173 # Reject names that are not valid shell variable names.
174 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
175 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
177 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
178 eval "enable_${ac_feature}=no" ;;
180 -enable-* | --enable-*)
181 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
182 # Reject names that are not valid shell variable names.
183 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
184 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
186 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
191 eval "enable_${ac_feature}='$ac_optarg'" ;;
193 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
194 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
195 | --exec | --exe | --ex)
196 ac_prev=exec_prefix ;;
197 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
198 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
199 | --exec=* | --exe=* | --ex=*)
200 exec_prefix="$ac_optarg" ;;
202 -gas | --gas | --ga | --g)
203 # Obsolete; use --with-gas.
206 -help | --help | --hel | --he)
207 # Omit some internal or obsolete options to make the list less imposing.
208 # This message is too long to be a string in the A/UX 3.1 sh.
210 Usage: configure [options] [host]
211 Options: [defaults in brackets after descriptions]
213 --cache-file=FILE cache test results in FILE
214 --help print this message
215 --no-create do not create output files
216 --quiet, --silent do not print \`checking...' messages
217 --version print the version of autoconf that created configure
218 Directory and file names:
219 --prefix=PREFIX install architecture-independent files in PREFIX
221 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
223 --bindir=DIR user executables in DIR [EPREFIX/bin]
224 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
225 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
226 --datadir=DIR read-only architecture-independent data in DIR
228 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
229 --sharedstatedir=DIR modifiable architecture-independent data in DIR
231 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
232 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
233 --includedir=DIR C header files in DIR [PREFIX/include]
234 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
235 --infodir=DIR info documentation in DIR [PREFIX/info]
236 --mandir=DIR man documentation in DIR [PREFIX/man]
237 --srcdir=DIR find the sources in DIR [configure dir or ..]
238 --program-prefix=PREFIX prepend PREFIX to installed program names
239 --program-suffix=SUFFIX append SUFFIX to installed program names
240 --program-transform-name=PROGRAM
241 run sed PROGRAM on installed program names
245 --build=BUILD configure for building on BUILD [BUILD=HOST]
246 --host=HOST configure for HOST [guessed]
247 --target=TARGET configure for TARGET [TARGET=HOST]
248 Features and packages:
249 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
250 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
251 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
252 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
253 --x-includes=DIR X include files are in DIR
254 --x-libraries=DIR X library files are in DIR
256 if test -n "$ac_help"; then
257 echo "--enable and --with options recognized:$ac_help"
261 -host | --host | --hos | --ho)
263 -host=* | --host=* | --hos=* | --ho=*)
266 -includedir | --includedir | --includedi | --included | --include \
267 | --includ | --inclu | --incl | --inc)
268 ac_prev=includedir ;;
269 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
270 | --includ=* | --inclu=* | --incl=* | --inc=*)
271 includedir="$ac_optarg" ;;
273 -infodir | --infodir | --infodi | --infod | --info | --inf)
275 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
276 infodir="$ac_optarg" ;;
278 -libdir | --libdir | --libdi | --libd)
280 -libdir=* | --libdir=* | --libdi=* | --libd=*)
281 libdir="$ac_optarg" ;;
283 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
284 | --libexe | --libex | --libe)
285 ac_prev=libexecdir ;;
286 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
287 | --libexe=* | --libex=* | --libe=*)
288 libexecdir="$ac_optarg" ;;
290 -localstatedir | --localstatedir | --localstatedi | --localstated \
291 | --localstate | --localstat | --localsta | --localst \
292 | --locals | --local | --loca | --loc | --lo)
293 ac_prev=localstatedir ;;
294 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
295 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
296 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
297 localstatedir="$ac_optarg" ;;
299 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
301 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
302 mandir="$ac_optarg" ;;
305 # Obsolete; use --without-fp.
308 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
312 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
313 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
316 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
317 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
318 | --oldin | --oldi | --old | --ol | --o)
319 ac_prev=oldincludedir ;;
320 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
321 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
322 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
323 oldincludedir="$ac_optarg" ;;
325 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
327 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
328 prefix="$ac_optarg" ;;
330 -program-prefix | --program-prefix | --program-prefi | --program-pref \
331 | --program-pre | --program-pr | --program-p)
332 ac_prev=program_prefix ;;
333 -program-prefix=* | --program-prefix=* | --program-prefi=* \
334 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
335 program_prefix="$ac_optarg" ;;
337 -program-suffix | --program-suffix | --program-suffi | --program-suff \
338 | --program-suf | --program-su | --program-s)
339 ac_prev=program_suffix ;;
340 -program-suffix=* | --program-suffix=* | --program-suffi=* \
341 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
342 program_suffix="$ac_optarg" ;;
344 -program-transform-name | --program-transform-name \
345 | --program-transform-nam | --program-transform-na \
346 | --program-transform-n | --program-transform- \
347 | --program-transform | --program-transfor \
348 | --program-transfo | --program-transf \
349 | --program-trans | --program-tran \
350 | --progr-tra | --program-tr | --program-t)
351 ac_prev=program_transform_name ;;
352 -program-transform-name=* | --program-transform-name=* \
353 | --program-transform-nam=* | --program-transform-na=* \
354 | --program-transform-n=* | --program-transform-=* \
355 | --program-transform=* | --program-transfor=* \
356 | --program-transfo=* | --program-transf=* \
357 | --program-trans=* | --program-tran=* \
358 | --progr-tra=* | --program-tr=* | --program-t=*)
359 program_transform_name="$ac_optarg" ;;
361 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
362 | -silent | --silent | --silen | --sile | --sil)
365 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
367 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
369 sbindir="$ac_optarg" ;;
371 -sharedstatedir | --sharedstatedir | --sharedstatedi \
372 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
373 | --sharedst | --shareds | --shared | --share | --shar \
375 ac_prev=sharedstatedir ;;
376 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
377 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
378 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
380 sharedstatedir="$ac_optarg" ;;
382 -site | --site | --sit)
384 -site=* | --site=* | --sit=*)
387 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
389 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
390 srcdir="$ac_optarg" ;;
392 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
393 | --syscon | --sysco | --sysc | --sys | --sy)
394 ac_prev=sysconfdir ;;
395 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
396 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
397 sysconfdir="$ac_optarg" ;;
399 -target | --target | --targe | --targ | --tar | --ta | --t)
401 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
402 target="$ac_optarg" ;;
404 -v | -verbose | --verbose | --verbos | --verbo | --verb)
407 -version | --version | --versio | --versi | --vers)
408 echo "configure generated by autoconf version 2.13"
412 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
413 # Reject names that are not valid shell variable names.
414 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
415 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
417 ac_package=`echo $ac_package| sed 's/-/_/g'`
422 eval "with_${ac_package}='$ac_optarg'" ;;
424 -without-* | --without-*)
425 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
426 # Reject names that are not valid shell variable names.
427 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
428 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
430 ac_package=`echo $ac_package| sed 's/-/_/g'`
431 eval "with_${ac_package}=no" ;;
434 # Obsolete; use --with-x.
437 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
438 | --x-incl | --x-inc | --x-in | --x-i)
439 ac_prev=x_includes ;;
440 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
441 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
442 x_includes="$ac_optarg" ;;
444 -x-libraries | --x-libraries | --x-librarie | --x-librari \
445 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
446 ac_prev=x_libraries ;;
447 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
448 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
449 x_libraries="$ac_optarg" ;;
451 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
455 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
456 echo "configure: warning: $ac_option: invalid host type" 1>&2
458 if test "x$nonopt" != xNONE; then
459 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
467 if test -n "$ac_prev"; then
468 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
471 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
473 # File descriptor usage:
476 # 2 errors and warnings
477 # 3 some systems may open it to /dev/tty
478 # 4 used on the Kubota Titan
479 # 6 checking for... messages and results
480 # 5 compiler messages saved in config.log
481 if test "$silent" = yes; then
489 This file contains any messages produced by compilers while
490 running configure, to aid debugging if configure makes a mistake.
493 # Strip out --no-create and --no-recursion so they do not pile up.
494 # Also quote any args containing shell metacharacters.
499 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
500 | --no-cr | --no-c) ;;
501 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
502 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
503 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
504 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
505 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
510 # Only set these to C if already set. These must not be set unconditionally
511 # because not all systems understand e.g. LANG=C (notably SCO).
512 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
513 # Non-C LC_CTYPE values break the ctype check.
514 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
515 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
516 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
517 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
519 # confdefs.h avoids OS command line length limits that DEFS can exceed.
520 rm -rf conftest* confdefs.h
521 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
524 # A filename unique to this package, relative to the directory that
525 # configure is in, which we can look for to find out if srcdir is correct.
526 ac_unique_file=mutt.h
528 # Find the source files, if location was not specified.
529 if test -z "$srcdir"; then
530 ac_srcdir_defaulted=yes
531 # Try the directory containing this script, then its parent.
533 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
534 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
536 if test ! -r $srcdir/$ac_unique_file; then
540 ac_srcdir_defaulted=no
542 if test ! -r $srcdir/$ac_unique_file; then
543 if test "$ac_srcdir_defaulted" = yes; then
544 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
546 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
549 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
551 # Prefer explicitly selected file to automatically selected ones.
552 if test -z "$CONFIG_SITE"; then
553 if test "x$prefix" != xNONE; then
554 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
556 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
559 for ac_site_file in $CONFIG_SITE; do
560 if test -r "$ac_site_file"; then
561 echo "loading site script $ac_site_file"
566 if test -r "$cache_file"; then
567 echo "loading cache $cache_file"
570 echo "creating cache $cache_file"
575 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
576 ac_cpp='$CPP $CPPFLAGS'
577 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
578 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
579 cross_compiling=$ac_cv_prog_cc_cross
583 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
584 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
585 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
592 ac_n= ac_c='\c' ac_t=
600 mutt_cv_version=`cat $srcdir/VERSION`
604 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
605 if test -f $ac_dir/install-sh; then
607 ac_install_sh="$ac_aux_dir/install-sh -c"
609 elif test -f $ac_dir/install.sh; then
611 ac_install_sh="$ac_aux_dir/install.sh -c"
615 if test -z "$ac_aux_dir"; then
616 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
618 ac_config_guess=$ac_aux_dir/config.guess
619 ac_config_sub=$ac_aux_dir/config.sub
620 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
622 # Find a good install program. We prefer a C program (faster),
623 # so one script is as good as another. But avoid the broken or
624 # incompatible versions:
625 # SysV /etc/install, /usr/sbin/install
626 # SunOS /usr/etc/install
629 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
630 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
631 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
632 # ./install, which can be erroneously created by make from ./install.sh.
633 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
634 echo "configure:635: checking for a BSD compatible install" >&5
635 if test -z "$INSTALL"; then
636 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
637 echo $ac_n "(cached) $ac_c" 1>&6
639 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
640 for ac_dir in $PATH; do
641 # Account for people who put trailing slashes in PATH elements.
643 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
645 # OSF1 and SCO ODT 3.0 have their own names for install.
646 # Don't use installbsd from OSF since it installs stuff as root
648 for ac_prog in ginstall scoinst install; do
649 if test -f $ac_dir/$ac_prog; then
650 if test $ac_prog = install &&
651 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
652 # AIX install. It has an incompatible calling convention.
655 ac_cv_path_install="$ac_dir/$ac_prog -c"
666 if test "${ac_cv_path_install+set}" = set; then
667 INSTALL="$ac_cv_path_install"
669 # As a last resort, use the slow shell script. We don't cache a
670 # path for INSTALL within a source directory, because that will
671 # break other packages using the cache if that directory is
672 # removed, or if the path is relative.
673 INSTALL="$ac_install_sh"
676 echo "$ac_t""$INSTALL" 1>&6
678 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
679 # It thinks the first close brace ends the variable substitution.
680 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
682 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
684 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
686 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
687 echo "configure:688: checking whether build environment is sane" >&5
690 echo timestamp > conftestfile
691 # Do `set' in a subshell so we don't clobber the current shell's
692 # arguments. Must try -L first in case configure is actually a
693 # symlink; some systems play weird games with the mod time of symlinks
694 # (eg FreeBSD returns the mod time of the symlink's containing
697 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
698 if test "$*" = "X"; then
700 set X `ls -t $srcdir/configure conftestfile`
702 if test "$*" != "X $srcdir/configure conftestfile" \
703 && test "$*" != "X conftestfile $srcdir/configure"; then
705 # If neither matched, then we have a broken ls. This can happen
706 # if, for instance, CONFIG_SHELL is bash and it inherits a
707 # broken ls alias from the environment. This has actually
708 # happened. Such a system could not be considered "sane".
709 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
710 alias in your environment" 1>&2; exit 1; }
713 test "$2" = conftestfile
719 { echo "configure: error: newly created file is older than distributed files!
720 Check your system clock" 1>&2; exit 1; }
723 echo "$ac_t""yes" 1>&6
724 if test "$program_transform_name" = s,x,x,; then
725 program_transform_name=
727 # Double any \ or $. echo might interpret backslashes.
728 cat <<\EOF_SED > conftestsed
729 s,\\,\\\\,g; s,\$,$$,g
731 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
734 test "$program_prefix" != NONE &&
735 program_transform_name="s,^,${program_prefix},; $program_transform_name"
736 # Use a double $ so make ignores it.
737 test "$program_suffix" != NONE &&
738 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
740 # sed with no file args requires a program.
741 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
743 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
744 echo "configure:745: checking whether ${MAKE-make} sets \${MAKE}" >&5
745 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
746 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
747 echo $ac_n "(cached) $ac_c" 1>&6
749 cat > conftestmake <<\EOF
751 @echo 'ac_maketemp="${MAKE}"'
753 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
754 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
755 if test -n "$ac_maketemp"; then
756 eval ac_cv_prog_make_${ac_make}_set=yes
758 eval ac_cv_prog_make_${ac_make}_set=no
762 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
763 echo "$ac_t""yes" 1>&6
766 echo "$ac_t""no" 1>&6
767 SET_MAKE="MAKE=${MAKE-make}"
773 VERSION=$mutt_cv_version
775 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
776 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
778 cat >> confdefs.h <<EOF
779 #define PACKAGE "$PACKAGE"
782 cat >> confdefs.h <<EOF
783 #define VERSION "$VERSION"
788 missing_dir=`cd $ac_aux_dir && pwd`
789 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
790 echo "configure:791: checking for working aclocal" >&5
791 # Run test in a subshell; some versions of sh will print an error if
792 # an executable is not found, even if stderr is redirected.
793 # Redirect stdin to placate older versions of autoconf. Sigh.
794 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
796 echo "$ac_t""found" 1>&6
798 ACLOCAL="$missing_dir/missing aclocal"
799 echo "$ac_t""missing" 1>&6
802 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
803 echo "configure:804: checking for working autoconf" >&5
804 # Run test in a subshell; some versions of sh will print an error if
805 # an executable is not found, even if stderr is redirected.
806 # Redirect stdin to placate older versions of autoconf. Sigh.
807 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
809 echo "$ac_t""found" 1>&6
811 AUTOCONF="$missing_dir/missing autoconf"
812 echo "$ac_t""missing" 1>&6
815 echo $ac_n "checking for working automake""... $ac_c" 1>&6
816 echo "configure:817: checking for working automake" >&5
817 # Run test in a subshell; some versions of sh will print an error if
818 # an executable is not found, even if stderr is redirected.
819 # Redirect stdin to placate older versions of autoconf. Sigh.
820 if (automake --version) < /dev/null > /dev/null 2>&1; then
822 echo "$ac_t""found" 1>&6
824 AUTOMAKE="$missing_dir/missing automake"
825 echo "$ac_t""missing" 1>&6
828 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
829 echo "configure:830: checking for working autoheader" >&5
830 # Run test in a subshell; some versions of sh will print an error if
831 # an executable is not found, even if stderr is redirected.
832 # Redirect stdin to placate older versions of autoconf. Sigh.
833 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
834 AUTOHEADER=autoheader
835 echo "$ac_t""found" 1>&6
837 AUTOHEADER="$missing_dir/missing autoheader"
838 echo "$ac_t""missing" 1>&6
841 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
842 echo "configure:843: checking for working makeinfo" >&5
843 # Run test in a subshell; some versions of sh will print an error if
844 # an executable is not found, even if stderr is redirected.
845 # Redirect stdin to placate older versions of autoconf. Sigh.
846 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
848 echo "$ac_t""found" 1>&6
850 MAKEINFO="$missing_dir/missing makeinfo"
851 echo "$ac_t""missing" 1>&6
858 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"
861 # Make sure we can run config.sub.
862 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
863 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
866 echo $ac_n "checking host system type""... $ac_c" 1>&6
867 echo "configure:868: checking host system type" >&5
870 case "$host_alias" in
874 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
875 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
877 *) host_alias=$nonopt ;;
881 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
882 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
883 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
884 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
885 echo "$ac_t""$host" 1>&6
888 echo $ac_n "checking for prefix""... $ac_c" 1>&6
889 echo "configure:890: checking for prefix" >&5
890 if test x$prefix = xNONE; then
891 mutt_cv_prefix=$ac_default_prefix
893 mutt_cv_prefix=$prefix
895 echo "$ac_t""$mutt_cv_prefix" 1>&6
897 # Extract the first word of "gcc", so it can be a program name with args.
898 set dummy gcc; ac_word=$2
899 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
900 echo "configure:901: checking for $ac_word" >&5
901 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
902 echo $ac_n "(cached) $ac_c" 1>&6
904 if test -n "$CC"; then
905 ac_cv_prog_CC="$CC" # Let the user override the test.
907 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
909 for ac_dir in $ac_dummy; do
910 test -z "$ac_dir" && ac_dir=.
911 if test -f $ac_dir/$ac_word; then
920 if test -n "$CC"; then
921 echo "$ac_t""$CC" 1>&6
923 echo "$ac_t""no" 1>&6
926 if test -z "$CC"; then
927 # Extract the first word of "cc", so it can be a program name with args.
928 set dummy cc; ac_word=$2
929 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
930 echo "configure:931: checking for $ac_word" >&5
931 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
932 echo $ac_n "(cached) $ac_c" 1>&6
934 if test -n "$CC"; then
935 ac_cv_prog_CC="$CC" # Let the user override the test.
937 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
940 for ac_dir in $ac_dummy; do
941 test -z "$ac_dir" && ac_dir=.
942 if test -f $ac_dir/$ac_word; then
943 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
952 if test $ac_prog_rejected = yes; then
953 # We found a bogon in the path, so make sure we never use it.
954 set dummy $ac_cv_prog_CC
956 if test $# -gt 0; then
957 # We chose a different compiler from the bogus one.
958 # However, it has the same basename, so the bogon will be chosen
959 # first if we set CC to just the basename; use the full file name.
961 set dummy "$ac_dir/$ac_word" "$@"
969 if test -n "$CC"; then
970 echo "$ac_t""$CC" 1>&6
972 echo "$ac_t""no" 1>&6
975 if test -z "$CC"; then
978 # Extract the first word of "cl", so it can be a program name with args.
979 set dummy cl; ac_word=$2
980 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
981 echo "configure:982: checking for $ac_word" >&5
982 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
983 echo $ac_n "(cached) $ac_c" 1>&6
985 if test -n "$CC"; then
986 ac_cv_prog_CC="$CC" # Let the user override the test.
988 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
990 for ac_dir in $ac_dummy; do
991 test -z "$ac_dir" && ac_dir=.
992 if test -f $ac_dir/$ac_word; then
1001 if test -n "$CC"; then
1002 echo "$ac_t""$CC" 1>&6
1004 echo "$ac_t""no" 1>&6
1009 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1012 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1013 echo "configure:1014: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1016 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1017 ac_cpp='$CPP $CPPFLAGS'
1018 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1019 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1020 cross_compiling=$ac_cv_prog_cc_cross
1022 cat > conftest.$ac_ext << EOF
1024 #line 1025 "configure"
1025 #include "confdefs.h"
1029 if { (eval echo configure:1030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1030 ac_cv_prog_cc_works=yes
1031 # If we can't run a trivial program, we are probably using a cross compiler.
1032 if (./conftest; exit) 2>/dev/null; then
1033 ac_cv_prog_cc_cross=no
1035 ac_cv_prog_cc_cross=yes
1038 echo "configure: failed program was:" >&5
1039 cat conftest.$ac_ext >&5
1040 ac_cv_prog_cc_works=no
1044 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1045 ac_cpp='$CPP $CPPFLAGS'
1046 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1047 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1048 cross_compiling=$ac_cv_prog_cc_cross
1050 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1051 if test $ac_cv_prog_cc_works = no; then
1052 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1054 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1055 echo "configure:1056: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1056 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1057 cross_compiling=$ac_cv_prog_cc_cross
1059 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1060 echo "configure:1061: checking whether we are using GNU C" >&5
1061 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1062 echo $ac_n "(cached) $ac_c" 1>&6
1064 cat > conftest.c <<EOF
1069 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1070: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1076 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1078 if test $ac_cv_prog_gcc = yes; then
1084 ac_test_CFLAGS="${CFLAGS+set}"
1085 ac_save_CFLAGS="$CFLAGS"
1087 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1088 echo "configure:1089: checking whether ${CC-cc} accepts -g" >&5
1089 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1090 echo $ac_n "(cached) $ac_c" 1>&6
1092 echo 'void f(){}' > conftest.c
1093 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1102 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1103 if test "$ac_test_CFLAGS" = set; then
1104 CFLAGS="$ac_save_CFLAGS"
1105 elif test $ac_cv_prog_cc_g = yes; then
1106 if test "$GCC" = yes; then
1112 if test "$GCC" = yes; then
1120 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1121 echo "configure:1122: checking for strerror in -lcposix" >&5
1122 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1123 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1124 echo $ac_n "(cached) $ac_c" 1>&6
1126 ac_save_LIBS="$LIBS"
1127 LIBS="-lcposix $LIBS"
1128 cat > conftest.$ac_ext <<EOF
1129 #line 1130 "configure"
1130 #include "confdefs.h"
1131 /* Override any gcc2 internal prototype to avoid an error. */
1132 /* We use char because int might match the return type of a gcc2
1133 builtin and then its argument prototype would still apply. */
1140 if { (eval echo configure:1141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1142 eval "ac_cv_lib_$ac_lib_var=yes"
1144 echo "configure: failed program was:" >&5
1145 cat conftest.$ac_ext >&5
1147 eval "ac_cv_lib_$ac_lib_var=no"
1150 LIBS="$ac_save_LIBS"
1153 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1154 echo "$ac_t""yes" 1>&6
1155 LIBS="$LIBS -lcposix"
1157 echo "$ac_t""no" 1>&6
1165 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
1166 echo "configure:1167: checking for ${CC-cc} option to accept ANSI C" >&5
1167 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
1168 echo $ac_n "(cached) $ac_c" 1>&6
1170 am_cv_prog_cc_stdc=no
1172 # Don't try gcc -ansi; that turns off useful extensions and
1173 # breaks some systems' header files.
1174 # AIX -qlanglvl=ansi
1175 # Ultrix and OSF/1 -std1
1176 # HP-UX -Aa -D_HPUX_SOURCE
1177 # SVR4 -Xc -D__EXTENSIONS__
1178 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1180 CC="$ac_save_CC $ac_arg"
1181 cat > conftest.$ac_ext <<EOF
1182 #line 1183 "configure"
1183 #include "confdefs.h"
1186 #include <sys/types.h>
1187 #include <sys/stat.h>
1188 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1189 struct buf { int x; };
1190 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1191 static char *e (p, i)
1197 static char *f (char * (*g) (char **, int), char **p, ...)
1202 s = g (p, va_arg (v,int));
1206 int test (int i, double x);
1207 struct s1 {int (*f) (int a);};
1208 struct s2 {int (*f) (double a);};
1209 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1215 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1219 if { (eval echo configure:1220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1221 am_cv_prog_cc_stdc="$ac_arg"; break
1223 echo "configure: failed program was:" >&5
1224 cat conftest.$ac_ext >&5
1232 if test -z "$am_cv_prog_cc_stdc"; then
1233 echo "$ac_t""none needed" 1>&6
1235 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1237 case "x$am_cv_prog_cc_stdc" in
1239 *) CC="$CC $am_cv_prog_cc_stdc" ;;
1242 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1243 echo "configure:1244: checking how to run the C preprocessor" >&5
1244 # On Suns, sometimes $CPP names a directory.
1245 if test -n "$CPP" && test -d "$CPP"; then
1248 if test -z "$CPP"; then
1249 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1250 echo $ac_n "(cached) $ac_c" 1>&6
1252 # This must be in double quotes, not single quotes, because CPP may get
1253 # substituted into the Makefile and "${CC-cc}" will confuse make.
1255 # On the NeXT, cc -E runs the code through the compiler's parser,
1256 # not just through cpp.
1257 cat > conftest.$ac_ext <<EOF
1258 #line 1259 "configure"
1259 #include "confdefs.h"
1263 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1264 { (eval echo configure:1265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1265 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1266 if test -z "$ac_err"; then
1270 echo "configure: failed program was:" >&5
1271 cat conftest.$ac_ext >&5
1273 CPP="${CC-cc} -E -traditional-cpp"
1274 cat > conftest.$ac_ext <<EOF
1275 #line 1276 "configure"
1276 #include "confdefs.h"
1280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1281 { (eval echo configure:1282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1282 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1283 if test -z "$ac_err"; then
1287 echo "configure: failed program was:" >&5
1288 cat conftest.$ac_ext >&5
1290 CPP="${CC-cc} -nologo -E"
1291 cat > conftest.$ac_ext <<EOF
1292 #line 1293 "configure"
1293 #include "confdefs.h"
1297 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1298 { (eval echo configure:1299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1299 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1300 if test -z "$ac_err"; then
1304 echo "configure: failed program was:" >&5
1305 cat conftest.$ac_ext >&5
1314 ac_cv_prog_CPP="$CPP"
1316 CPP="$ac_cv_prog_CPP"
1318 ac_cv_prog_CPP="$CPP"
1320 echo "$ac_t""$CPP" 1>&6
1324 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
1325 echo "configure:1326: checking for function prototypes" >&5
1326 if test "$am_cv_prog_cc_stdc" != no; then
1327 echo "$ac_t""yes" 1>&6
1328 cat >> confdefs.h <<\EOF
1329 #define PROTOTYPES 1
1334 echo "$ac_t""no" 1>&6
1335 U=_ ANSI2KNR=./ansi2knr
1336 # Ensure some checks needed by ansi2knr itself.
1337 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1338 echo "configure:1339: checking for ANSI C header files" >&5
1339 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1340 echo $ac_n "(cached) $ac_c" 1>&6
1342 cat > conftest.$ac_ext <<EOF
1343 #line 1344 "configure"
1344 #include "confdefs.h"
1350 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1351 { (eval echo configure:1352: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1352 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1353 if test -z "$ac_err"; then
1355 ac_cv_header_stdc=yes
1358 echo "configure: failed program was:" >&5
1359 cat conftest.$ac_ext >&5
1361 ac_cv_header_stdc=no
1365 if test $ac_cv_header_stdc = yes; then
1366 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1367 cat > conftest.$ac_ext <<EOF
1368 #line 1369 "configure"
1369 #include "confdefs.h"
1372 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1373 egrep "memchr" >/dev/null 2>&1; then
1377 ac_cv_header_stdc=no
1383 if test $ac_cv_header_stdc = yes; then
1384 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1385 cat > conftest.$ac_ext <<EOF
1386 #line 1387 "configure"
1387 #include "confdefs.h"
1390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1391 egrep "free" >/dev/null 2>&1; then
1395 ac_cv_header_stdc=no
1401 if test $ac_cv_header_stdc = yes; then
1402 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1403 if test "$cross_compiling" = yes; then
1406 cat > conftest.$ac_ext <<EOF
1407 #line 1408 "configure"
1408 #include "confdefs.h"
1410 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1411 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1412 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1413 int main () { int i; for (i = 0; i < 256; i++)
1414 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1418 if { (eval echo configure:1419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1422 echo "configure: failed program was:" >&5
1423 cat conftest.$ac_ext >&5
1425 ac_cv_header_stdc=no
1433 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1434 if test $ac_cv_header_stdc = yes; then
1435 cat >> confdefs.h <<\EOF
1436 #define STDC_HEADERS 1
1441 for ac_hdr in string.h
1443 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1444 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1445 echo "configure:1446: checking for $ac_hdr" >&5
1446 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1447 echo $ac_n "(cached) $ac_c" 1>&6
1449 cat > conftest.$ac_ext <<EOF
1450 #line 1451 "configure"
1451 #include "confdefs.h"
1454 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1455 { (eval echo configure:1456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1456 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1457 if test -z "$ac_err"; then
1459 eval "ac_cv_header_$ac_safe=yes"
1462 echo "configure: failed program was:" >&5
1463 cat conftest.$ac_ext >&5
1465 eval "ac_cv_header_$ac_safe=no"
1469 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1470 echo "$ac_t""yes" 1>&6
1471 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1472 cat >> confdefs.h <<EOF
1473 #define $ac_tr_hdr 1
1477 echo "$ac_t""no" 1>&6
1483 if test "x$U" != "x"; then
1484 { echo "configure: error: Compiler not ANSI compliant" 1>&2; exit 1; }
1486 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1487 echo "configure:1488: checking how to run the C preprocessor" >&5
1488 # On Suns, sometimes $CPP names a directory.
1489 if test -n "$CPP" && test -d "$CPP"; then
1492 if test -z "$CPP"; then
1493 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1494 echo $ac_n "(cached) $ac_c" 1>&6
1496 # This must be in double quotes, not single quotes, because CPP may get
1497 # substituted into the Makefile and "${CC-cc}" will confuse make.
1499 # On the NeXT, cc -E runs the code through the compiler's parser,
1500 # not just through cpp.
1501 cat > conftest.$ac_ext <<EOF
1502 #line 1503 "configure"
1503 #include "confdefs.h"
1507 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1508 { (eval echo configure:1509: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1509 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1510 if test -z "$ac_err"; then
1514 echo "configure: failed program was:" >&5
1515 cat conftest.$ac_ext >&5
1517 CPP="${CC-cc} -E -traditional-cpp"
1518 cat > conftest.$ac_ext <<EOF
1519 #line 1520 "configure"
1520 #include "confdefs.h"
1524 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1525 { (eval echo configure:1526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1526 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1527 if test -z "$ac_err"; then
1531 echo "configure: failed program was:" >&5
1532 cat conftest.$ac_ext >&5
1534 CPP="${CC-cc} -nologo -E"
1535 cat > conftest.$ac_ext <<EOF
1536 #line 1537 "configure"
1537 #include "confdefs.h"
1541 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1542 { (eval echo configure:1543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1543 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1544 if test -z "$ac_err"; then
1548 echo "configure: failed program was:" >&5
1549 cat conftest.$ac_ext >&5
1558 ac_cv_prog_CPP="$CPP"
1560 CPP="$ac_cv_prog_CPP"
1562 ac_cv_prog_CPP="$CPP"
1564 echo "$ac_t""$CPP" 1>&6
1566 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1567 echo "configure:1568: checking whether ${MAKE-make} sets \${MAKE}" >&5
1568 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1569 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1570 echo $ac_n "(cached) $ac_c" 1>&6
1572 cat > conftestmake <<\EOF
1574 @echo 'ac_maketemp="${MAKE}"'
1576 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1577 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1578 if test -n "$ac_maketemp"; then
1579 eval ac_cv_prog_make_${ac_make}_set=yes
1581 eval ac_cv_prog_make_${ac_make}_set=no
1585 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1586 echo "$ac_t""yes" 1>&6
1589 echo "$ac_t""no" 1>&6
1590 SET_MAKE="MAKE=${MAKE-make}"
1593 # Find a good install program. We prefer a C program (faster),
1594 # so one script is as good as another. But avoid the broken or
1595 # incompatible versions:
1596 # SysV /etc/install, /usr/sbin/install
1597 # SunOS /usr/etc/install
1598 # IRIX /sbin/install
1600 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1601 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1602 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1603 # ./install, which can be erroneously created by make from ./install.sh.
1604 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1605 echo "configure:1606: checking for a BSD compatible install" >&5
1606 if test -z "$INSTALL"; then
1607 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1608 echo $ac_n "(cached) $ac_c" 1>&6
1610 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1611 for ac_dir in $PATH; do
1612 # Account for people who put trailing slashes in PATH elements.
1614 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1616 # OSF1 and SCO ODT 3.0 have their own names for install.
1617 # Don't use installbsd from OSF since it installs stuff as root
1619 for ac_prog in ginstall scoinst install; do
1620 if test -f $ac_dir/$ac_prog; then
1621 if test $ac_prog = install &&
1622 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1623 # AIX install. It has an incompatible calling convention.
1626 ac_cv_path_install="$ac_dir/$ac_prog -c"
1637 if test "${ac_cv_path_install+set}" = set; then
1638 INSTALL="$ac_cv_path_install"
1640 # As a last resort, use the slow shell script. We don't cache a
1641 # path for INSTALL within a source directory, because that will
1642 # break other packages using the cache if that directory is
1643 # removed, or if the path is relative.
1644 INSTALL="$ac_install_sh"
1647 echo "$ac_t""$INSTALL" 1>&6
1649 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1650 # It thinks the first close brace ends the variable substitution.
1651 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1653 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1655 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1657 # Extract the first word of "ranlib", so it can be a program name with args.
1658 set dummy ranlib; ac_word=$2
1659 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1660 echo "configure:1661: checking for $ac_word" >&5
1661 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1662 echo $ac_n "(cached) $ac_c" 1>&6
1664 if test -n "$RANLIB"; then
1665 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1667 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1669 for ac_dir in $ac_dummy; do
1670 test -z "$ac_dir" && ac_dir=.
1671 if test -f $ac_dir/$ac_word; then
1672 ac_cv_prog_RANLIB="ranlib"
1677 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1680 RANLIB="$ac_cv_prog_RANLIB"
1681 if test -n "$RANLIB"; then
1682 echo "$ac_t""$RANLIB" 1>&6
1684 echo "$ac_t""no" 1>&6
1687 echo $ac_n "checking build system type""... $ac_c" 1>&6
1688 echo "configure:1689: checking build system type" >&5
1691 case "$build_alias" in
1694 NONE) build_alias=$host_alias ;;
1695 *) build_alias=$nonopt ;;
1699 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1700 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1701 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1702 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1703 echo "$ac_t""$build" 1>&6
1705 if test $host != $build; then
1706 ac_tool_prefix=${host_alias}-
1711 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1712 set dummy ${ac_tool_prefix}ar; ac_word=$2
1713 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1714 echo "configure:1715: checking for $ac_word" >&5
1715 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1716 echo $ac_n "(cached) $ac_c" 1>&6
1718 if test -n "$AR"; then
1719 ac_cv_prog_AR="$AR" # Let the user override the test.
1721 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1723 for ac_dir in $ac_dummy; do
1724 test -z "$ac_dir" && ac_dir=.
1725 if test -f $ac_dir/$ac_word; then
1726 ac_cv_prog_AR="${ac_tool_prefix}ar"
1734 if test -n "$AR"; then
1735 echo "$ac_t""$AR" 1>&6
1737 echo "$ac_t""no" 1>&6
1741 if test -z "$ac_cv_prog_AR"; then
1742 if test -n "$ac_tool_prefix"; then
1743 # Extract the first word of "ar", so it can be a program name with args.
1744 set dummy ar; ac_word=$2
1745 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1746 echo "configure:1747: checking for $ac_word" >&5
1747 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1748 echo $ac_n "(cached) $ac_c" 1>&6
1750 if test -n "$AR"; then
1751 ac_cv_prog_AR="$AR" # Let the user override the test.
1753 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1755 for ac_dir in $ac_dummy; do
1756 test -z "$ac_dir" && ac_dir=.
1757 if test -f $ac_dir/$ac_word; then
1763 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1767 if test -n "$AR"; then
1768 echo "$ac_t""$AR" 1>&6
1770 echo "$ac_t""no" 1>&6
1779 echo $ac_n "checking for inline""... $ac_c" 1>&6
1780 echo "configure:1781: checking for inline" >&5
1781 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1782 echo $ac_n "(cached) $ac_c" 1>&6
1785 for ac_kw in inline __inline__ __inline; do
1786 cat > conftest.$ac_ext <<EOF
1787 #line 1788 "configure"
1788 #include "confdefs.h"
1794 if { (eval echo configure:1795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1796 ac_cv_c_inline=$ac_kw; break
1798 echo "configure: failed program was:" >&5
1799 cat conftest.$ac_ext >&5
1806 echo "$ac_t""$ac_cv_c_inline" 1>&6
1807 case "$ac_cv_c_inline" in
1809 no) cat >> confdefs.h <<\EOF
1813 *) cat >> confdefs.h <<EOF
1814 #define inline $ac_cv_c_inline
1819 echo $ac_n "checking for working const""... $ac_c" 1>&6
1820 echo "configure:1821: checking for working const" >&5
1821 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1822 echo $ac_n "(cached) $ac_c" 1>&6
1824 cat > conftest.$ac_ext <<EOF
1825 #line 1826 "configure"
1826 #include "confdefs.h"
1830 /* Ultrix mips cc rejects this. */
1831 typedef int charset[2]; const charset x;
1832 /* SunOS 4.1.1 cc rejects this. */
1833 char const *const *ccp;
1835 /* NEC SVR4.0.2 mips cc rejects this. */
1836 struct point {int x, y;};
1837 static struct point const zero = {0,0};
1838 /* AIX XL C 1.02.0.0 rejects this.
1839 It does not let you subtract one const X* pointer from another in an arm
1840 of an if-expression whose if-part is not a constant expression */
1841 const char *g = "string";
1842 ccp = &g + (g ? g-g : 0);
1843 /* HPUX 7.0 cc rejects these. */
1846 ccp = (char const *const *) p;
1847 { /* SCO 3.2v4 cc rejects this. */
1849 char const *s = 0 ? (char *) 0 : (char const *) 0;
1853 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1855 const int *foo = &x[0];
1858 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1859 typedef const int *iptr;
1863 { /* AIX XL C 1.02.0.0 rejects this saying
1864 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1865 struct s { int j; const int *ap[3]; };
1866 struct s *b; b->j = 5;
1868 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1874 if { (eval echo configure:1875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1878 echo "configure: failed program was:" >&5
1879 cat conftest.$ac_ext >&5
1886 echo "$ac_t""$ac_cv_c_const" 1>&6
1887 if test $ac_cv_c_const = no; then
1888 cat >> confdefs.h <<\EOF
1895 # Extract the first word of "dbx", so it can be a program name with args.
1896 set dummy dbx; ac_word=$2
1897 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1898 echo "configure:1899: checking for $ac_word" >&5
1899 if eval "test \"`echo '$''{'ac_cv_path_DBX'+set}'`\" = set"; then
1900 echo $ac_n "(cached) $ac_c" 1>&6
1904 ac_cv_path_DBX="$DBX" # Let the user override the test with a path.
1907 ac_cv_path_DBX="$DBX" # Let the user override the test with a dos path.
1910 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1912 for ac_dir in $ac_dummy; do
1913 test -z "$ac_dir" && ac_dir=.
1914 if test -f $ac_dir/$ac_word; then
1915 ac_cv_path_DBX="$ac_dir/$ac_word"
1920 test -z "$ac_cv_path_DBX" && ac_cv_path_DBX="no"
1924 DBX="$ac_cv_path_DBX"
1925 if test -n "$DBX"; then
1926 echo "$ac_t""$DBX" 1>&6
1928 echo "$ac_t""no" 1>&6
1931 # Extract the first word of "gdb", so it can be a program name with args.
1932 set dummy gdb; ac_word=$2
1933 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1934 echo "configure:1935: checking for $ac_word" >&5
1935 if eval "test \"`echo '$''{'ac_cv_path_GDB'+set}'`\" = set"; then
1936 echo $ac_n "(cached) $ac_c" 1>&6
1940 ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
1943 ac_cv_path_GDB="$GDB" # Let the user override the test with a dos path.
1946 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1948 for ac_dir in $ac_dummy; do
1949 test -z "$ac_dir" && ac_dir=.
1950 if test -f $ac_dir/$ac_word; then
1951 ac_cv_path_GDB="$ac_dir/$ac_word"
1956 test -z "$ac_cv_path_GDB" && ac_cv_path_GDB="no"
1960 GDB="$ac_cv_path_GDB"
1961 if test -n "$GDB"; then
1962 echo "$ac_t""$GDB" 1>&6
1964 echo "$ac_t""no" 1>&6
1967 # Extract the first word of "sdb", so it can be a program name with args.
1968 set dummy sdb; ac_word=$2
1969 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1970 echo "configure:1971: checking for $ac_word" >&5
1971 if eval "test \"`echo '$''{'ac_cv_path_SDB'+set}'`\" = set"; then
1972 echo $ac_n "(cached) $ac_c" 1>&6
1976 ac_cv_path_SDB="$SDB" # Let the user override the test with a path.
1979 ac_cv_path_SDB="$SDB" # Let the user override the test with a dos path.
1982 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1984 for ac_dir in $ac_dummy; do
1985 test -z "$ac_dir" && ac_dir=.
1986 if test -f $ac_dir/$ac_word; then
1987 ac_cv_path_SDB="$ac_dir/$ac_word"
1992 test -z "$ac_cv_path_SDB" && ac_cv_path_SDB="no"
1996 SDB="$ac_cv_path_SDB"
1997 if test -n "$SDB"; then
1998 echo "$ac_t""$SDB" 1>&6
2000 echo "$ac_t""no" 1>&6
2004 if test $GDB != no ; then
2006 elif test $DBX != no ; then
2008 elif test $SDB != no ; then
2016 # The following templates should be used with newer automakes
2017 # instead of acconfig.h
2019 #AH_TEMPLATE([sig_atomic_t],
2020 # [/* Define to `int' if <signal.h> doesn't define.])
2021 #AH_TEMPLATE([HAVE_START_COLOR],
2022 # [Define if you have start_color, as a function or macro.])
2023 #AH_TEMPLATE([HAVE_TYPEAHEAD],
2024 # [Define if you have typeahead, as a function or macro.])
2025 #AH_TEMPLATE([HAVE_BKGDSET],
2026 # [Define if you have bkgdset, as a function or macro.])
2027 #AH_TEMPLATE([HAVE_CURS_SET],
2028 # [Define if you have curs_set, as a function or macro.])
2029 #AH_TEMPLATE([HAVE_META],
2030 # [Define if you have meta, as a function or macro.])
2031 #AH_TEMPLATE([HAVE_USE_DEFAULT_COLORS],
2032 # [Define if you have use_default_colors, as a function or macro.])
2033 #AH_TEMPLATE([HAVE_RESIZETERM],
2034 # [Define if you have resizeterm, as a function or macro.])
2035 #AH_TEMPLATE([SIG_ATOMIC_VOLATILE_T],
2036 # [Some systems declare sig_atomic_t as volatile, some others -- no.
2037 # This define will have value `sig_atomic_t' or
2038 # `volatile sig_atomic_t' accordingly.])
2039 #AH_TEMPLATE([ICONV_NONTRANS],
2040 # [Define as 1 if iconv() only converts exactly and we should treat
2041 # all return values other than (size_t)(-1) as equivalent.])
2044 ac_aux_path_sendmail=/usr/sbin:/usr/lib
2045 # Extract the first word of "sendmail", so it can be a program name with args.
2046 set dummy sendmail; ac_word=$2
2047 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2048 echo "configure:2049: checking for $ac_word" >&5
2049 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2050 echo $ac_n "(cached) $ac_c" 1>&6
2054 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2057 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
2060 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2061 ac_dummy="$PATH:$ac_aux_path_sendmail"
2062 for ac_dir in $ac_dummy; do
2063 test -z "$ac_dir" && ac_dir=.
2064 if test -f $ac_dir/$ac_word; then
2065 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2070 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/sbin/sendmail"
2074 SENDMAIL="$ac_cv_path_SENDMAIL"
2075 if test -n "$SENDMAIL"; then
2076 echo "$ac_t""$SENDMAIL" 1>&6
2078 echo "$ac_t""no" 1>&6
2081 cat >> confdefs.h <<EOF
2082 #define SENDMAIL "$ac_cv_path_SENDMAIL"
2087 if test -f $srcdir/EXPORTABLE ; then
2092 # Check whether --enable-pgp or --disable-pgp was given.
2093 if test "${enable_pgp+set}" = set; then
2094 enableval="$enable_pgp"
2095 if test x$enableval = xno ; then
2102 if test x$have_pgp != xno ; then
2103 cat >> confdefs.h <<\EOF
2104 #define CRYPT_BACKEND_CLASSIC_PGP 1
2107 PGPAUX_TARGET="pgpring pgpewrap"
2108 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pgp.o pgpinvoke.o pgpkey.o pgplib.o gnupgparse.o pgpmicalg.o pgppacket.o"
2111 # Check whether --enable-smime or --disable-smime was given.
2112 if test "${enable_smime+set}" = set; then
2113 enableval="$enable_smime"
2114 if test x$enableval = xno ; then
2121 if test x$have_smime != xno ; then
2122 cat >> confdefs.h <<\EOF
2123 #define CRYPT_BACKEND_CLASSIC_SMIME 1
2126 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS smime.o "
2127 SMIMEAUX_TARGET="smime_keys"
2130 # Check whether --with-mixmaster or --without-mixmaster was given.
2131 if test "${with_mixmaster+set}" = set; then
2132 withval="$with_mixmaster"
2133 if test -x "$withval" ; then
2134 MIXMASTER="$withval"
2136 MIXMASTER="mixmaster"
2138 OPS="$OPS \$(srcdir)/OPS.MIX"
2139 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS remailer.o"
2140 cat >> confdefs.h <<EOF
2141 #define MIXMASTER "$MIXMASTER"
2149 # We now require all OPS
2150 OPS="$OPS \$(srcdir)/OPS.PGP \$(srcdir)/OPS.SMIME \$(srcdir)/OPS.CRYPT "
2157 cat >> confdefs.h <<EOF
2158 #define SUBVERSION "$SUBVERSION"
2163 # Extract the first word of "ispell", so it can be a program name with args.
2164 set dummy ispell; ac_word=$2
2165 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2166 echo "configure:2167: checking for $ac_word" >&5
2167 if eval "test \"`echo '$''{'ac_cv_path_ISPELL'+set}'`\" = set"; then
2168 echo $ac_n "(cached) $ac_c" 1>&6
2172 ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a path.
2175 ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a dos path.
2178 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2180 for ac_dir in $ac_dummy; do
2181 test -z "$ac_dir" && ac_dir=.
2182 if test -f $ac_dir/$ac_word; then
2183 ac_cv_path_ISPELL="$ac_dir/$ac_word"
2188 test -z "$ac_cv_path_ISPELL" && ac_cv_path_ISPELL="no"
2192 ISPELL="$ac_cv_path_ISPELL"
2193 if test -n "$ISPELL"; then
2194 echo "$ac_t""$ISPELL" 1>&6
2196 echo "$ac_t""no" 1>&6
2199 if test $ISPELL != no; then
2200 cat >> confdefs.h <<EOF
2201 #define ISPELL "$ISPELL"
2206 # Check whether --with-slang or --without-slang was given.
2207 if test "${with_slang+set}" = set; then
2208 withval="$with_slang"
2209 echo $ac_n "checking if this is a BSD system""... $ac_c" 1>&6
2210 echo "configure:2211: checking if this is a BSD system" >&5
2211 if eval "test \"`echo '$''{'mutt_cv_bsdish'+set}'`\" = set"; then
2212 echo $ac_n "(cached) $ac_c" 1>&6
2214 if test "$cross_compiling" = yes; then
2217 cat > conftest.$ac_ext <<EOF
2218 #line 2219 "configure"
2219 #include "confdefs.h"
2220 #include <sys/param.h>
2231 if { (eval echo configure:2232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2235 echo "configure: failed program was:" >&5
2236 cat conftest.$ac_ext >&5
2245 echo "$ac_t""$mutt_cv_bsdish" 1>&6
2247 echo $ac_n "checking for S-Lang""... $ac_c" 1>&6
2248 echo "configure:2249: checking for S-Lang" >&5
2249 if test $withval = yes; then
2250 if test -d $srcdir/../slang; then
2251 mutt_cv_slang=$srcdir/../slang/src
2252 CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
2253 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
2255 if test -d $mutt_cv_prefix/include/slang; then
2256 CPPFLAGS="$CPPFLAGS -I$mutt_cv_prefix/include/slang"
2257 elif test -d /usr/include/slang; then
2258 CPPFLAGS="$CPPFLAGS -I/usr/include/slang"
2263 if test -f $withval/src/slang.h; then
2264 mutt_cv_slang=$withval/src
2265 CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
2266 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
2268 mutt_cv_slang=$withval
2269 if test -d $withval/include/slang; then
2270 CPPFLAGS="$CPPFLAGS -I${withval}/include/slang"
2271 elif test -d $withval/include; then
2272 CPPFLAGS="$CPPFLAGS -I${withval}/include"
2274 LDFLAGS="$LDFLAGS -L${withval}/lib"
2277 echo "$ac_t""$mutt_cv_slang" 1>&6
2278 if test $mutt_cv_bsdish = yes; then
2279 echo $ac_n "checking for main in -ltermlib""... $ac_c" 1>&6
2280 echo "configure:2281: checking for main in -ltermlib" >&5
2281 ac_lib_var=`echo termlib'_'main | sed 'y%./+-%__p_%'`
2282 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2283 echo $ac_n "(cached) $ac_c" 1>&6
2285 ac_save_LIBS="$LIBS"
2286 LIBS="-ltermlib $LIBS"
2287 cat > conftest.$ac_ext <<EOF
2288 #line 2289 "configure"
2289 #include "confdefs.h"
2295 if { (eval echo configure:2296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2297 eval "ac_cv_lib_$ac_lib_var=yes"
2299 echo "configure: failed program was:" >&5
2300 cat conftest.$ac_ext >&5
2302 eval "ac_cv_lib_$ac_lib_var=no"
2305 LIBS="$ac_save_LIBS"
2308 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2309 echo "$ac_t""yes" 1>&6
2310 ac_tr_lib=HAVE_LIB`echo termlib | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2311 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2312 cat >> confdefs.h <<EOF
2313 #define $ac_tr_lib 1
2316 LIBS="-ltermlib $LIBS"
2319 echo "$ac_t""no" 1>&6
2323 cat >> confdefs.h <<\EOF
2324 #define USE_SLANG_CURSES 1
2327 cat >> confdefs.h <<\EOF
2328 #define HAVE_COLOR 1
2331 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
2334 echo $ac_n "checking for SLtt_get_terminfo in -lslang""... $ac_c" 1>&6
2335 echo "configure:2336: checking for SLtt_get_terminfo in -lslang" >&5
2336 ac_lib_var=`echo slang'_'SLtt_get_terminfo | sed 'y%./+-%__p_%'`
2337 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2338 echo $ac_n "(cached) $ac_c" 1>&6
2340 ac_save_LIBS="$LIBS"
2341 LIBS="-lslang -lm $LIBS"
2342 cat > conftest.$ac_ext <<EOF
2343 #line 2344 "configure"
2344 #include "confdefs.h"
2345 /* Override any gcc2 internal prototype to avoid an error. */
2346 /* We use char because int might match the return type of a gcc2
2347 builtin and then its argument prototype would still apply. */
2348 char SLtt_get_terminfo();
2354 if { (eval echo configure:2355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2356 eval "ac_cv_lib_$ac_lib_var=yes"
2358 echo "configure: failed program was:" >&5
2359 cat conftest.$ac_ext >&5
2361 eval "ac_cv_lib_$ac_lib_var=no"
2364 LIBS="$ac_save_LIBS"
2367 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2368 echo "$ac_t""yes" 1>&6
2369 MUTTLIBS="$MUTTLIBS -lslang -lm"
2371 echo "$ac_t""no" 1>&6
2372 { echo "configure: error: unable to compile. check config.log" 1>&2; exit 1; }
2379 # Check whether --with-curses or --without-curses was given.
2380 if test "${with_curses+set}" = set; then
2381 withval="$with_curses"
2382 if test $withval != yes; then
2383 mutt_cv_curses=$withval
2385 if test x$mutt_cv_curses != x/usr; then
2386 LDFLAGS="-L${mutt_cv_curses}/lib $LDFLAGS"
2387 CPPFLAGS="$CPPFLAGS -I${mutt_cv_curses}/include"
2392 echo $ac_n "checking for initscr""... $ac_c" 1>&6
2393 echo "configure:2394: checking for initscr" >&5
2394 if eval "test \"`echo '$''{'ac_cv_func_initscr'+set}'`\" = set"; then
2395 echo $ac_n "(cached) $ac_c" 1>&6
2397 cat > conftest.$ac_ext <<EOF
2398 #line 2399 "configure"
2399 #include "confdefs.h"
2400 /* System header to define __stub macros and hopefully few prototypes,
2401 which can conflict with char initscr(); below. */
2403 /* Override any gcc2 internal prototype to avoid an error. */
2404 /* We use char because int might match the return type of a gcc2
2405 builtin and then its argument prototype would still apply. */
2410 /* The GNU C library defines this for functions which it implements
2411 to always fail with ENOSYS. Some functions are actually named
2412 something starting with __ and the normal name is an alias. */
2413 #if defined (__stub_initscr) || defined (__stub___initscr)
2421 if { (eval echo configure:2422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2423 eval "ac_cv_func_initscr=yes"
2425 echo "configure: failed program was:" >&5
2426 cat conftest.$ac_ext >&5
2428 eval "ac_cv_func_initscr=no"
2433 if eval "test \"`echo '$ac_cv_func_'initscr`\" = yes"; then
2434 echo "$ac_t""yes" 1>&6
2437 echo "$ac_t""no" 1>&6
2439 cf_ncurses="ncurses"
2440 for lib in ncurses ncursesw
2442 echo $ac_n "checking for waddnwstr in -l$lib""... $ac_c" 1>&6
2443 echo "configure:2444: checking for waddnwstr in -l$lib" >&5
2444 ac_lib_var=`echo $lib'_'waddnwstr | sed 'y%./+-%__p_%'`
2445 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2446 echo $ac_n "(cached) $ac_c" 1>&6
2448 ac_save_LIBS="$LIBS"
2450 cat > conftest.$ac_ext <<EOF
2451 #line 2452 "configure"
2452 #include "confdefs.h"
2453 /* Override any gcc2 internal prototype to avoid an error. */
2454 /* We use char because int might match the return type of a gcc2
2455 builtin and then its argument prototype would still apply. */
2462 if { (eval echo configure:2463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2464 eval "ac_cv_lib_$ac_lib_var=yes"
2466 echo "configure: failed program was:" >&5
2467 cat conftest.$ac_ext >&5
2469 eval "ac_cv_lib_$ac_lib_var=no"
2472 LIBS="$ac_save_LIBS"
2475 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2476 echo "$ac_t""yes" 1>&6
2477 cf_ncurses="$lib"; break
2479 echo "$ac_t""no" 1>&6
2483 echo $ac_n "checking for initscr in -l$cf_ncurses""... $ac_c" 1>&6
2484 echo "configure:2485: checking for initscr in -l$cf_ncurses" >&5
2485 ac_lib_var=`echo $cf_ncurses'_'initscr | sed 'y%./+-%__p_%'`
2486 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2487 echo $ac_n "(cached) $ac_c" 1>&6
2489 ac_save_LIBS="$LIBS"
2490 LIBS="-l$cf_ncurses $LIBS"
2491 cat > conftest.$ac_ext <<EOF
2492 #line 2493 "configure"
2493 #include "confdefs.h"
2494 /* Override any gcc2 internal prototype to avoid an error. */
2495 /* We use char because int might match the return type of a gcc2
2496 builtin and then its argument prototype would still apply. */
2503 if { (eval echo configure:2504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2505 eval "ac_cv_lib_$ac_lib_var=yes"
2507 echo "configure: failed program was:" >&5
2508 cat conftest.$ac_ext >&5
2510 eval "ac_cv_lib_$ac_lib_var=no"
2513 LIBS="$ac_save_LIBS"
2516 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2517 echo "$ac_t""yes" 1>&6
2518 MUTTLIBS="$MUTTLIBS -l$cf_ncurses"
2519 if test x$mutt_cv_curses = x/usr -a -d /usr/include/ncurses; then
2520 CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
2523 if test "$cf_ncurses" = ncursesw; then
2524 for ac_hdr in ncursesw/ncurses.h
2526 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2527 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2528 echo "configure:2529: checking for $ac_hdr" >&5
2529 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2530 echo $ac_n "(cached) $ac_c" 1>&6
2532 cat > conftest.$ac_ext <<EOF
2533 #line 2534 "configure"
2534 #include "confdefs.h"
2537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2538 { (eval echo configure:2539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2540 if test -z "$ac_err"; then
2542 eval "ac_cv_header_$ac_safe=yes"
2545 echo "configure: failed program was:" >&5
2546 cat conftest.$ac_ext >&5
2548 eval "ac_cv_header_$ac_safe=no"
2552 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2553 echo "$ac_t""yes" 1>&6
2554 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2555 cat >> confdefs.h <<EOF
2556 #define $ac_tr_hdr 1
2558 cf_cv_ncurses_header="ncursesw/ncurses.h"
2560 echo "$ac_t""no" 1>&6
2565 for ac_hdr in ncurses.h
2567 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2568 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2569 echo "configure:2570: checking for $ac_hdr" >&5
2570 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2571 echo $ac_n "(cached) $ac_c" 1>&6
2573 cat > conftest.$ac_ext <<EOF
2574 #line 2575 "configure"
2575 #include "confdefs.h"
2578 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2579 { (eval echo configure:2580: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2580 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2581 if test -z "$ac_err"; then
2583 eval "ac_cv_header_$ac_safe=yes"
2586 echo "configure: failed program was:" >&5
2587 cat conftest.$ac_ext >&5
2589 eval "ac_cv_header_$ac_safe=no"
2593 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2594 echo "$ac_t""yes" 1>&6
2595 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2596 cat >> confdefs.h <<EOF
2597 #define $ac_tr_hdr 1
2599 cf_cv_ncurses_header="ncurses.h"
2601 echo "$ac_t""no" 1>&6
2607 echo "$ac_t""no" 1>&6
2609 echo $ac_n "checking for initscr""... $ac_c" 1>&6
2610 echo "configure:2611: checking for initscr" >&5
2611 if eval "test \"`echo '$''{'ac_cv_func_initscr'+set}'`\" = set"; then
2612 echo $ac_n "(cached) $ac_c" 1>&6
2614 cat > conftest.$ac_ext <<EOF
2615 #line 2616 "configure"
2616 #include "confdefs.h"
2617 /* System header to define __stub macros and hopefully few prototypes,
2618 which can conflict with char initscr(); below. */
2620 /* Override any gcc2 internal prototype to avoid an error. */
2621 /* We use char because int might match the return type of a gcc2
2622 builtin and then its argument prototype would still apply. */
2627 /* The GNU C library defines this for functions which it implements
2628 to always fail with ENOSYS. Some functions are actually named
2629 something starting with __ and the normal name is an alias. */
2630 #if defined (__stub_initscr) || defined (__stub___initscr)
2638 if { (eval echo configure:2639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2640 eval "ac_cv_func_initscr=yes"
2642 echo "configure: failed program was:" >&5
2643 cat conftest.$ac_ext >&5
2645 eval "ac_cv_func_initscr=no"
2650 if eval "test \"`echo '$ac_cv_func_'initscr`\" = yes"; then
2651 echo "$ac_t""yes" 1>&6
2654 echo "$ac_t""no" 1>&6
2656 case $host_os in #(vi
2658 echo $ac_n "checking for tgoto in -lmytinfo""... $ac_c" 1>&6
2659 echo "configure:2660: checking for tgoto in -lmytinfo" >&5
2660 ac_lib_var=`echo mytinfo'_'tgoto | sed 'y%./+-%__p_%'`
2661 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2662 echo $ac_n "(cached) $ac_c" 1>&6
2664 ac_save_LIBS="$LIBS"
2665 LIBS="-lmytinfo $LIBS"
2666 cat > conftest.$ac_ext <<EOF
2667 #line 2668 "configure"
2668 #include "confdefs.h"
2669 /* Override any gcc2 internal prototype to avoid an error. */
2670 /* We use char because int might match the return type of a gcc2
2671 builtin and then its argument prototype would still apply. */
2678 if { (eval echo configure:2679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2680 eval "ac_cv_lib_$ac_lib_var=yes"
2682 echo "configure: failed program was:" >&5
2683 cat conftest.$ac_ext >&5
2685 eval "ac_cv_lib_$ac_lib_var=no"
2688 LIBS="$ac_save_LIBS"
2691 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2692 echo "$ac_t""yes" 1>&6
2693 LIBS="-lmytinfo $LIBS"
2695 echo "$ac_t""no" 1>&6
2700 echo $ac_n "checking for initscr in -lcur_colr""... $ac_c" 1>&6
2701 echo "configure:2702: checking for initscr in -lcur_colr" >&5
2702 ac_lib_var=`echo cur_colr'_'initscr | sed 'y%./+-%__p_%'`
2703 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2704 echo $ac_n "(cached) $ac_c" 1>&6
2706 ac_save_LIBS="$LIBS"
2707 LIBS="-lcur_colr $LIBS"
2708 cat > conftest.$ac_ext <<EOF
2709 #line 2710 "configure"
2710 #include "confdefs.h"
2711 /* Override any gcc2 internal prototype to avoid an error. */
2712 /* We use char because int might match the return type of a gcc2
2713 builtin and then its argument prototype would still apply. */
2720 if { (eval echo configure:2721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2722 eval "ac_cv_lib_$ac_lib_var=yes"
2724 echo "configure: failed program was:" >&5
2725 cat conftest.$ac_ext >&5
2727 eval "ac_cv_lib_$ac_lib_var=no"
2730 LIBS="$ac_save_LIBS"
2733 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2734 echo "$ac_t""yes" 1>&6
2736 LIBS="-lcur_colr $LIBS"
2737 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
2738 ac_cv_func_initscr=yes
2741 echo "$ac_t""no" 1>&6
2743 echo $ac_n "checking for initscr in -lHcurses""... $ac_c" 1>&6
2744 echo "configure:2745: checking for initscr in -lHcurses" >&5
2745 ac_lib_var=`echo Hcurses'_'initscr | sed 'y%./+-%__p_%'`
2746 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2747 echo $ac_n "(cached) $ac_c" 1>&6
2749 ac_save_LIBS="$LIBS"
2750 LIBS="-lHcurses $LIBS"
2751 cat > conftest.$ac_ext <<EOF
2752 #line 2753 "configure"
2753 #include "confdefs.h"
2754 /* Override any gcc2 internal prototype to avoid an error. */
2755 /* We use char because int might match the return type of a gcc2
2756 builtin and then its argument prototype would still apply. */
2763 if { (eval echo configure:2764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2765 eval "ac_cv_lib_$ac_lib_var=yes"
2767 echo "configure: failed program was:" >&5
2768 cat conftest.$ac_ext >&5
2770 eval "ac_cv_lib_$ac_lib_var=no"
2773 LIBS="$ac_save_LIBS"
2776 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2777 echo "$ac_t""yes" 1>&6
2779 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
2780 LIBS="-lHcurses $LIBS"
2781 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
2782 ac_cv_func_initscr=yes
2785 echo "$ac_t""no" 1>&6
2791 linux*) # Suse Linux does not follow /usr/lib convention
2796 if test ".$With5lib" != ".no" ; then
2797 if test -d /usr/5lib ; then
2799 CPPFLAGS="$CPPFLAGS -I/usr/5include"
2800 LIBS="$LIBS -L/usr/5lib"
2804 if test ".$ac_cv_func_initscr" != .yes ; then
2805 cf_save_LIBS="$LIBS"
2809 # Check for library containing tgoto. Do this before curses library
2810 # because it may be needed to link the test-case for initscr.
2811 echo $ac_n "checking for tgoto""... $ac_c" 1>&6
2812 echo "configure:2813: checking for tgoto" >&5
2813 if eval "test \"`echo '$''{'ac_cv_func_tgoto'+set}'`\" = set"; then
2814 echo $ac_n "(cached) $ac_c" 1>&6
2816 cat > conftest.$ac_ext <<EOF
2817 #line 2818 "configure"
2818 #include "confdefs.h"
2819 /* System header to define __stub macros and hopefully few prototypes,
2820 which can conflict with char tgoto(); below. */
2822 /* Override any gcc2 internal prototype to avoid an error. */
2823 /* We use char because int might match the return type of a gcc2
2824 builtin and then its argument prototype would still apply. */
2829 /* The GNU C library defines this for functions which it implements
2830 to always fail with ENOSYS. Some functions are actually named
2831 something starting with __ and the normal name is an alias. */
2832 #if defined (__stub_tgoto) || defined (__stub___tgoto)
2840 if { (eval echo configure:2841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2842 eval "ac_cv_func_tgoto=yes"
2844 echo "configure: failed program was:" >&5
2845 cat conftest.$ac_ext >&5
2847 eval "ac_cv_func_tgoto=no"
2852 if eval "test \"`echo '$ac_cv_func_'tgoto`\" = yes"; then
2853 echo "$ac_t""yes" 1>&6
2854 cf_term_lib=predefined
2856 echo "$ac_t""no" 1>&6
2858 for cf_term_lib in termcap termlib unknown
2860 echo $ac_n "checking for tgoto in -l$cf_term_lib""... $ac_c" 1>&6
2861 echo "configure:2862: checking for tgoto in -l$cf_term_lib" >&5
2862 ac_lib_var=`echo $cf_term_lib'_'tgoto | sed 'y%./+-%__p_%'`
2863 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2864 echo $ac_n "(cached) $ac_c" 1>&6
2866 ac_save_LIBS="$LIBS"
2867 LIBS="-l$cf_term_lib $LIBS"
2868 cat > conftest.$ac_ext <<EOF
2869 #line 2870 "configure"
2870 #include "confdefs.h"
2871 /* Override any gcc2 internal prototype to avoid an error. */
2872 /* We use char because int might match the return type of a gcc2
2873 builtin and then its argument prototype would still apply. */
2880 if { (eval echo configure:2881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2882 eval "ac_cv_lib_$ac_lib_var=yes"
2884 echo "configure: failed program was:" >&5
2885 cat conftest.$ac_ext >&5
2887 eval "ac_cv_lib_$ac_lib_var=no"
2890 LIBS="$ac_save_LIBS"
2893 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2894 echo "$ac_t""yes" 1>&6
2897 echo "$ac_t""no" 1>&6
2905 # Check for library containing initscr
2906 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
2907 for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
2909 echo $ac_n "checking for initscr in -l$cf_curs_lib""... $ac_c" 1>&6
2910 echo "configure:2911: checking for initscr in -l$cf_curs_lib" >&5
2911 ac_lib_var=`echo $cf_curs_lib'_'initscr | sed 'y%./+-%__p_%'`
2912 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2913 echo $ac_n "(cached) $ac_c" 1>&6
2915 ac_save_LIBS="$LIBS"
2916 LIBS="-l$cf_curs_lib $LIBS"
2917 cat > conftest.$ac_ext <<EOF
2918 #line 2919 "configure"
2919 #include "confdefs.h"
2920 /* Override any gcc2 internal prototype to avoid an error. */
2921 /* We use char because int might match the return type of a gcc2
2922 builtin and then its argument prototype would still apply. */
2929 if { (eval echo configure:2930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2931 eval "ac_cv_lib_$ac_lib_var=yes"
2933 echo "configure: failed program was:" >&5
2934 cat conftest.$ac_ext >&5
2936 eval "ac_cv_lib_$ac_lib_var=no"
2939 LIBS="$ac_save_LIBS"
2942 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2943 echo "$ac_t""yes" 1>&6
2946 echo "$ac_t""no" 1>&6
2950 test $cf_curs_lib = unknown && { echo "configure: error: no curses library found" 1>&2; exit 1; }
2952 LIBS="-l$cf_curs_lib $cf_save_LIBS"
2953 if test "$cf_term_lib" = unknown ; then
2954 echo $ac_n "checking if we can link with $cf_curs_lib library""... $ac_c" 1>&6
2955 echo "configure:2956: checking if we can link with $cf_curs_lib library" >&5
2956 cat > conftest.$ac_ext <<EOF
2957 #line 2958 "configure"
2958 #include "confdefs.h"
2959 #include <${cf_cv_ncurses_header-curses.h}>
2964 if { (eval echo configure:2965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2968 echo "configure: failed program was:" >&5
2969 cat conftest.$ac_ext >&5
2974 echo "$ac_t""$cf_result" 1>&6
2975 test $cf_result = no && { echo "configure: error: Cannot link curses library" 1>&2; exit 1; }
2976 elif test "$cf_term_lib" != predefined ; then
2977 echo $ac_n "checking if we need both $cf_curs_lib and $cf_term_lib libraries""... $ac_c" 1>&6
2978 echo "configure:2979: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
2979 cat > conftest.$ac_ext <<EOF
2980 #line 2981 "configure"
2981 #include "confdefs.h"
2982 #include <${cf_cv_ncurses_header-curses.h}>
2984 initscr(); tgoto((char *)0, 0, 0);
2987 if { (eval echo configure:2988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2991 echo "configure: failed program was:" >&5
2992 cat conftest.$ac_ext >&5
2995 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
2996 cat > conftest.$ac_ext <<EOF
2997 #line 2998 "configure"
2998 #include "confdefs.h"
2999 #include <${cf_cv_ncurses_header-curses.h}>
3004 if { (eval echo configure:3005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3008 echo "configure: failed program was:" >&5
3009 cat conftest.$ac_ext >&5
3017 echo "$ac_t""$cf_result" 1>&6
3031 LIBS="$LIBS $MUTTLIBS"
3032 for ac_func in start_color typeahead bkgdset curs_set meta use_default_colors resizeterm
3035 echo $ac_n "checking for $ac_func declaration""... $ac_c" 1>&6
3036 echo "configure:3037: checking for $ac_func declaration" >&5
3037 if eval "test \"`echo '$''{'ac_cv_func_decl_$ac_func'+set}'`\" = set"; then
3038 echo $ac_n "(cached) $ac_c" 1>&6
3040 cat > conftest.$ac_ext <<EOF
3041 #line 3042 "configure"
3042 #include "confdefs.h"
3043 #include <${cf_cv_ncurses_header-curses.h}>
3046 extern int ${ac_func}();
3050 if { (eval echo configure:3051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3053 cat > conftest.$ac_ext <<EOF
3054 #line 3055 "configure"
3055 #include "confdefs.h"
3056 #include <${cf_cv_ncurses_header-curses.h}>
3059 int (*p)() = ${ac_func};
3063 if { (eval echo configure:3064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3066 eval "ac_cv_func_decl_$ac_func=yes"
3068 echo "configure: failed program was:" >&5
3069 cat conftest.$ac_ext >&5
3072 eval "ac_cv_func_decl_$ac_func=no"
3076 echo "configure: failed program was:" >&5
3077 cat conftest.$ac_ext >&5
3080 eval "ac_cv_func_decl_$ac_func=yes"
3085 if eval "test \"`echo '$ac_cv_func_'decl_$ac_func`\" = yes"; then
3086 echo "$ac_t""yes" 1>&6
3089 ac_tr_func=`echo HAVE_$ac_func | tr '[a-z]' '[A-Z]'`
3091 cat >> confdefs.h <<EOF
3092 #define $ac_tr_func 1
3096 echo "$ac_t""no" 1>&6
3100 if test "$ac_cv_func_decl_start_color" = yes; then
3101 cat >> confdefs.h <<\EOF
3102 #define HAVE_COLOR 1
3106 if test "$ac_cv_func_decl_resizeterm" = yes; then
3107 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
3114 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3115 echo "configure:3116: checking for ANSI C header files" >&5
3116 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3117 echo $ac_n "(cached) $ac_c" 1>&6
3119 cat > conftest.$ac_ext <<EOF
3120 #line 3121 "configure"
3121 #include "confdefs.h"
3127 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3128 { (eval echo configure:3129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3129 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3130 if test -z "$ac_err"; then
3132 ac_cv_header_stdc=yes
3135 echo "configure: failed program was:" >&5
3136 cat conftest.$ac_ext >&5
3138 ac_cv_header_stdc=no
3142 if test $ac_cv_header_stdc = yes; then
3143 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3144 cat > conftest.$ac_ext <<EOF
3145 #line 3146 "configure"
3146 #include "confdefs.h"
3149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3150 egrep "memchr" >/dev/null 2>&1; then
3154 ac_cv_header_stdc=no
3160 if test $ac_cv_header_stdc = yes; then
3161 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3162 cat > conftest.$ac_ext <<EOF
3163 #line 3164 "configure"
3164 #include "confdefs.h"
3167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3168 egrep "free" >/dev/null 2>&1; then
3172 ac_cv_header_stdc=no
3178 if test $ac_cv_header_stdc = yes; then
3179 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3180 if test "$cross_compiling" = yes; then
3183 cat > conftest.$ac_ext <<EOF
3184 #line 3185 "configure"
3185 #include "confdefs.h"
3187 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3188 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3189 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3190 int main () { int i; for (i = 0; i < 256; i++)
3191 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3195 if { (eval echo configure:3196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3199 echo "configure: failed program was:" >&5
3200 cat conftest.$ac_ext >&5
3202 ac_cv_header_stdc=no
3210 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3211 if test $ac_cv_header_stdc = yes; then
3212 cat >> confdefs.h <<\EOF
3213 #define STDC_HEADERS 1
3219 for ac_hdr in stdarg.h sys/ioctl.h ioctl.h sysexits.h
3221 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3222 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3223 echo "configure:3224: checking for $ac_hdr" >&5
3224 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3225 echo $ac_n "(cached) $ac_c" 1>&6
3227 cat > conftest.$ac_ext <<EOF
3228 #line 3229 "configure"
3229 #include "confdefs.h"
3232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3233 { (eval echo configure:3234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3235 if test -z "$ac_err"; then
3237 eval "ac_cv_header_$ac_safe=yes"
3240 echo "configure: failed program was:" >&5
3241 cat conftest.$ac_ext >&5
3243 eval "ac_cv_header_$ac_safe=no"
3247 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3248 echo "$ac_t""yes" 1>&6
3249 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3250 cat >> confdefs.h <<EOF
3251 #define $ac_tr_hdr 1
3255 echo "$ac_t""no" 1>&6
3259 for ac_hdr in sys/time.h sys/resource.h
3261 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3262 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3263 echo "configure:3264: checking for $ac_hdr" >&5
3264 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3265 echo $ac_n "(cached) $ac_c" 1>&6
3267 cat > conftest.$ac_ext <<EOF
3268 #line 3269 "configure"
3269 #include "confdefs.h"
3272 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3273 { (eval echo configure:3274: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3274 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3275 if test -z "$ac_err"; then
3277 eval "ac_cv_header_$ac_safe=yes"
3280 echo "configure: failed program was:" >&5
3281 cat conftest.$ac_ext >&5
3283 eval "ac_cv_header_$ac_safe=no"
3287 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3288 echo "$ac_t""yes" 1>&6
3289 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3290 cat >> confdefs.h <<EOF
3291 #define $ac_tr_hdr 1
3295 echo "$ac_t""no" 1>&6
3299 for ac_hdr in unix.h
3301 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3302 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3303 echo "configure:3304: checking for $ac_hdr" >&5
3304 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3305 echo $ac_n "(cached) $ac_c" 1>&6
3307 cat > conftest.$ac_ext <<EOF
3308 #line 3309 "configure"
3309 #include "confdefs.h"
3312 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3313 { (eval echo configure:3314: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3314 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3315 if test -z "$ac_err"; then
3317 eval "ac_cv_header_$ac_safe=yes"
3320 echo "configure: failed program was:" >&5
3321 cat conftest.$ac_ext >&5
3323 eval "ac_cv_header_$ac_safe=no"
3327 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3328 echo "$ac_t""yes" 1>&6
3329 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3330 cat >> confdefs.h <<EOF
3331 #define $ac_tr_hdr 1
3335 echo "$ac_t""no" 1>&6
3340 for ac_func in setrlimit getsid
3342 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3343 echo "configure:3344: checking for $ac_func" >&5
3344 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3345 echo $ac_n "(cached) $ac_c" 1>&6
3347 cat > conftest.$ac_ext <<EOF
3348 #line 3349 "configure"
3349 #include "confdefs.h"
3350 /* System header to define __stub macros and hopefully few prototypes,
3351 which can conflict with char $ac_func(); below. */
3353 /* Override any gcc2 internal prototype to avoid an error. */
3354 /* We use char because int might match the return type of a gcc2
3355 builtin and then its argument prototype would still apply. */
3360 /* The GNU C library defines this for functions which it implements
3361 to always fail with ENOSYS. Some functions are actually named
3362 something starting with __ and the normal name is an alias. */
3363 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3371 if { (eval echo configure:3372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3373 eval "ac_cv_func_$ac_func=yes"
3375 echo "configure: failed program was:" >&5
3376 cat conftest.$ac_ext >&5
3378 eval "ac_cv_func_$ac_func=no"
3383 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3384 echo "$ac_t""yes" 1>&6
3385 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3386 cat >> confdefs.h <<EOF
3387 #define $ac_tr_func 1
3391 echo "$ac_t""no" 1>&6
3396 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3397 echo "configure:3398: checking return type of signal handlers" >&5
3398 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3399 echo $ac_n "(cached) $ac_c" 1>&6
3401 cat > conftest.$ac_ext <<EOF
3402 #line 3403 "configure"
3403 #include "confdefs.h"
3404 #include <sys/types.h>
3410 extern "C" void (*signal (int, void (*)(int)))(int);
3412 void (*signal ()) ();
3419 if { (eval echo configure:3420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3421 ac_cv_type_signal=void
3423 echo "configure: failed program was:" >&5
3424 cat conftest.$ac_ext >&5
3426 ac_cv_type_signal=int
3431 echo "$ac_t""$ac_cv_type_signal" 1>&6
3432 cat >> confdefs.h <<EOF
3433 #define RETSIGTYPE $ac_cv_type_signal
3438 echo $ac_n "checking for sig_atomic_t in signal.h""... $ac_c" 1>&6
3439 echo "configure:3440: checking for sig_atomic_t in signal.h" >&5
3440 cat > conftest.$ac_ext <<EOF
3441 #line 3442 "configure"
3442 #include "confdefs.h"
3445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3446 egrep "sig_atomic_t" >/dev/null 2>&1; then
3449 ac_cv_type_sig_atomic_t=yes;
3450 cat > conftest.$ac_ext <<EOF
3451 #line 3452 "configure"
3452 #include "confdefs.h"
3455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3456 egrep "volatile.*sig_atomic_t" >/dev/null 2>&1; then
3459 is_sig_atomic_t_volatile=yes;
3460 echo "$ac_t""yes, volatile" 1>&6
3465 is_sig_atomic_t_volatile=no;
3466 echo "$ac_t""yes, non volatile" 1>&6
3475 echo "$ac_t""no" 1>&6
3476 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
3477 echo "configure:3478: checking for sig_atomic_t" >&5
3478 if eval "test \"`echo '$''{'ac_cv_type_sig_atomic_t'+set}'`\" = set"; then
3479 echo $ac_n "(cached) $ac_c" 1>&6
3481 cat > conftest.$ac_ext <<EOF
3482 #line 3483 "configure"
3483 #include "confdefs.h"
3484 #include <sys/types.h>
3490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3491 egrep "(^|[^a-zA-Z_0-9])sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3493 ac_cv_type_sig_atomic_t=yes
3496 ac_cv_type_sig_atomic_t=no
3501 echo "$ac_t""$ac_cv_type_sig_atomic_t" 1>&6
3502 if test $ac_cv_type_sig_atomic_t = no; then
3503 cat >> confdefs.h <<\EOF
3504 #define sig_atomic_t int
3509 is_sig_atomic_t_volatile=no
3514 if test $is_sig_atomic_t_volatile = 'yes'
3516 cat >> confdefs.h <<\EOF
3517 #define SIG_ATOMIC_VOLATILE_T sig_atomic_t
3521 cat >> confdefs.h <<\EOF
3522 #define SIG_ATOMIC_VOLATILE_T volatile sig_atomic_t
3527 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3528 echo "configure:3529: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3529 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
3530 echo $ac_n "(cached) $ac_c" 1>&6
3532 cat > conftest.$ac_ext <<EOF
3533 #line 3534 "configure"
3534 #include "confdefs.h"
3535 #include <sys/types.h>
3537 /* NetBSD declares sys_siglist in unistd.h. */
3538 #ifdef HAVE_UNISTD_H
3542 char *msg = *(sys_siglist + 1);
3545 if { (eval echo configure:3546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3547 ac_cv_decl_sys_siglist=yes
3549 echo "configure: failed program was:" >&5
3550 cat conftest.$ac_ext >&5
3552 ac_cv_decl_sys_siglist=no
3557 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3558 if test $ac_cv_decl_sys_siglist = yes; then
3559 cat >> confdefs.h <<\EOF
3560 #define SYS_SIGLIST_DECLARED 1
3566 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3567 echo "configure:3568: checking whether byte ordering is bigendian" >&5
3568 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3569 echo $ac_n "(cached) $ac_c" 1>&6
3571 ac_cv_c_bigendian=unknown
3572 # See if sys/param.h defines the BYTE_ORDER macro.
3573 cat > conftest.$ac_ext <<EOF
3574 #line 3575 "configure"
3575 #include "confdefs.h"
3576 #include <sys/types.h>
3577 #include <sys/param.h>
3580 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3585 if { (eval echo configure:3586: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3587 # It does; now see whether it defined to BIG_ENDIAN or not.
3588 cat > conftest.$ac_ext <<EOF
3589 #line 3590 "configure"
3590 #include "confdefs.h"
3591 #include <sys/types.h>
3592 #include <sys/param.h>
3595 #if BYTE_ORDER != BIG_ENDIAN
3600 if { (eval echo configure:3601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3602 ac_cv_c_bigendian=yes
3604 echo "configure: failed program was:" >&5
3605 cat conftest.$ac_ext >&5
3607 ac_cv_c_bigendian=no
3611 echo "configure: failed program was:" >&5
3612 cat conftest.$ac_ext >&5
3615 if test $ac_cv_c_bigendian = unknown; then
3616 if test "$cross_compiling" = yes; then
3617 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3619 cat > conftest.$ac_ext <<EOF
3620 #line 3621 "configure"
3621 #include "confdefs.h"
3623 /* Are we little or big endian? From Harbison&Steele. */
3627 char c[sizeof (long)];
3630 exit (u.c[sizeof (long) - 1] == 1);
3633 if { (eval echo configure:3634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3635 ac_cv_c_bigendian=no
3637 echo "configure: failed program was:" >&5
3638 cat conftest.$ac_ext >&5
3640 ac_cv_c_bigendian=yes
3648 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3649 if test $ac_cv_c_bigendian = yes; then
3650 cat >> confdefs.h <<\EOF
3651 #define WORDS_BIGENDIAN 1
3656 for ac_hdr in inttypes.h stdint.h
3658 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3659 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3660 echo "configure:3661: checking for $ac_hdr" >&5
3661 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3662 echo $ac_n "(cached) $ac_c" 1>&6
3664 cat > conftest.$ac_ext <<EOF
3665 #line 3666 "configure"
3666 #include "confdefs.h"
3669 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3670 { (eval echo configure:3671: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3671 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3672 if test -z "$ac_err"; then
3674 eval "ac_cv_header_$ac_safe=yes"
3677 echo "configure: failed program was:" >&5
3678 cat conftest.$ac_ext >&5
3680 eval "ac_cv_header_$ac_safe=no"
3684 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3685 echo "$ac_t""yes" 1>&6
3686 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3687 cat >> confdefs.h <<EOF
3688 #define $ac_tr_hdr 1
3692 echo "$ac_t""no" 1>&6
3696 echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
3697 echo "configure:3698: checking for uint32_t" >&5
3698 cat > conftest.$ac_ext <<EOF
3699 #line 3700 "configure"
3700 #include "confdefs.h"
3702 #include <sys/types.h>
3704 #include <inttypes.h>
3713 if (sizeof (uint32_t))
3718 if { (eval echo configure:3719: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3721 cat >> confdefs.h <<\EOF
3722 #define HAVE_UINT32_T 1
3725 echo "$ac_t""yes" 1>&6
3728 echo "configure: failed program was:" >&5
3729 cat conftest.$ac_ext >&5
3731 echo "$ac_t""no" 1>&6
3735 echo $ac_n "checking size of int""... $ac_c" 1>&6
3736 echo "configure:3737: checking size of int" >&5
3737 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3738 echo $ac_n "(cached) $ac_c" 1>&6
3740 if test "$cross_compiling" = yes; then
3741 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3743 cat > conftest.$ac_ext <<EOF
3744 #line 3745 "configure"
3745 #include "confdefs.h"
3747 #include <sys/types.h>
3750 FILE *f=fopen("conftestval", "w");
3752 fprintf(f, "%d\n", sizeof(int));
3756 if { (eval echo configure:3757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3758 ac_cv_sizeof_int=`cat conftestval`
3760 echo "configure: failed program was:" >&5
3761 cat conftest.$ac_ext >&5
3769 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3770 cat >> confdefs.h <<EOF
3771 #define SIZEOF_INT $ac_cv_sizeof_int
3775 echo $ac_n "checking size of long""... $ac_c" 1>&6
3776 echo "configure:3777: checking size of long" >&5
3777 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3778 echo $ac_n "(cached) $ac_c" 1>&6
3780 if test "$cross_compiling" = yes; then
3781 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3783 cat > conftest.$ac_ext <<EOF
3784 #line 3785 "configure"
3785 #include "confdefs.h"
3787 #include <sys/types.h>
3790 FILE *f=fopen("conftestval", "w");
3792 fprintf(f, "%d\n", sizeof(long));
3796 if { (eval echo configure:3797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3798 ac_cv_sizeof_long=`cat conftestval`
3800 echo "configure: failed program was:" >&5
3801 cat conftest.$ac_ext >&5
3809 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3810 cat >> confdefs.h <<EOF
3811 #define SIZEOF_LONG $ac_cv_sizeof_long
3816 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3817 echo "configure:3818: checking for pid_t" >&5
3818 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3819 echo $ac_n "(cached) $ac_c" 1>&6
3821 cat > conftest.$ac_ext <<EOF
3822 #line 3823 "configure"
3823 #include "confdefs.h"
3824 #include <sys/types.h>
3830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3831 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3833 ac_cv_type_pid_t=yes
3841 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3842 if test $ac_cv_type_pid_t = no; then
3843 cat >> confdefs.h <<\EOF
3850 for ac_func in fgetpos memmove setegid srand48 strerror
3852 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3853 echo "configure:3854: checking for $ac_func" >&5
3854 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3855 echo $ac_n "(cached) $ac_c" 1>&6
3857 cat > conftest.$ac_ext <<EOF
3858 #line 3859 "configure"
3859 #include "confdefs.h"
3860 /* System header to define __stub macros and hopefully few prototypes,
3861 which can conflict with char $ac_func(); below. */
3863 /* Override any gcc2 internal prototype to avoid an error. */
3864 /* We use char because int might match the return type of a gcc2
3865 builtin and then its argument prototype would still apply. */
3870 /* The GNU C library defines this for functions which it implements
3871 to always fail with ENOSYS. Some functions are actually named
3872 something starting with __ and the normal name is an alias. */
3873 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3881 if { (eval echo configure:3882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3883 eval "ac_cv_func_$ac_func=yes"
3885 echo "configure: failed program was:" >&5
3886 cat conftest.$ac_ext >&5
3888 eval "ac_cv_func_$ac_func=no"
3893 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3894 echo "$ac_t""yes" 1>&6
3895 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3896 cat >> confdefs.h <<EOF
3897 #define $ac_tr_func 1
3901 echo "$ac_t""no" 1>&6
3906 for ac_func in strcasecmp strdup
3908 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3909 echo "configure:3910: checking for $ac_func" >&5
3910 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3911 echo $ac_n "(cached) $ac_c" 1>&6
3913 cat > conftest.$ac_ext <<EOF
3914 #line 3915 "configure"
3915 #include "confdefs.h"
3916 /* System header to define __stub macros and hopefully few prototypes,
3917 which can conflict with char $ac_func(); below. */
3919 /* Override any gcc2 internal prototype to avoid an error. */
3920 /* We use char because int might match the return type of a gcc2
3921 builtin and then its argument prototype would still apply. */
3926 /* The GNU C library defines this for functions which it implements
3927 to always fail with ENOSYS. Some functions are actually named
3928 something starting with __ and the normal name is an alias. */
3929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3937 if { (eval echo configure:3938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3939 eval "ac_cv_func_$ac_func=yes"
3941 echo "configure: failed program was:" >&5
3942 cat conftest.$ac_ext >&5
3944 eval "ac_cv_func_$ac_func=no"
3949 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3950 echo "$ac_t""yes" 1>&6
3951 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3952 cat >> confdefs.h <<EOF
3953 #define $ac_tr_func 1
3957 echo "$ac_t""no" 1>&6
3958 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
3964 echo $ac_n "checking for getopt""... $ac_c" 1>&6
3965 echo "configure:3966: checking for getopt" >&5
3966 if eval "test \"`echo '$''{'ac_cv_func_getopt'+set}'`\" = set"; then
3967 echo $ac_n "(cached) $ac_c" 1>&6
3969 cat > conftest.$ac_ext <<EOF
3970 #line 3971 "configure"
3971 #include "confdefs.h"
3972 /* System header to define __stub macros and hopefully few prototypes,
3973 which can conflict with char getopt(); below. */
3975 /* Override any gcc2 internal prototype to avoid an error. */
3976 /* We use char because int might match the return type of a gcc2
3977 builtin and then its argument prototype would still apply. */
3982 /* The GNU C library defines this for functions which it implements
3983 to always fail with ENOSYS. Some functions are actually named
3984 something starting with __ and the normal name is an alias. */
3985 #if defined (__stub_getopt) || defined (__stub___getopt)
3993 if { (eval echo configure:3994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3995 eval "ac_cv_func_getopt=yes"
3997 echo "configure: failed program was:" >&5
3998 cat conftest.$ac_ext >&5
4000 eval "ac_cv_func_getopt=no"
4005 if eval "test \"`echo '$ac_cv_func_'getopt`\" = yes"; then
4006 echo "$ac_t""yes" 1>&6
4009 echo "$ac_t""no" 1>&6
4012 if test $ac_cv_func_getopt = yes; then
4013 for ac_hdr in getopt.h
4015 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4016 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4017 echo "configure:4018: checking for $ac_hdr" >&5
4018 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4019 echo $ac_n "(cached) $ac_c" 1>&6
4021 cat > conftest.$ac_ext <<EOF
4022 #line 4023 "configure"
4023 #include "confdefs.h"
4026 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4027 { (eval echo configure:4028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4028 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4029 if test -z "$ac_err"; then
4031 eval "ac_cv_header_$ac_safe=yes"
4034 echo "configure: failed program was:" >&5
4035 cat conftest.$ac_ext >&5
4037 eval "ac_cv_header_$ac_safe=no"
4041 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4042 echo "$ac_t""yes" 1>&6
4043 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4044 cat >> confdefs.h <<EOF
4045 #define $ac_tr_hdr 1
4049 echo "$ac_t""no" 1>&6
4057 for ac_func in snprintf
4059 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4060 echo "configure:4061: checking for $ac_func" >&5
4061 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4062 echo $ac_n "(cached) $ac_c" 1>&6
4064 cat > conftest.$ac_ext <<EOF
4065 #line 4066 "configure"
4066 #include "confdefs.h"
4067 /* System header to define __stub macros and hopefully few prototypes,
4068 which can conflict with char $ac_func(); below. */
4070 /* Override any gcc2 internal prototype to avoid an error. */
4071 /* We use char because int might match the return type of a gcc2
4072 builtin and then its argument prototype would still apply. */
4077 /* The GNU C library defines this for functions which it implements
4078 to always fail with ENOSYS. Some functions are actually named
4079 something starting with __ and the normal name is an alias. */
4080 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4088 if { (eval echo configure:4089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4090 eval "ac_cv_func_$ac_func=yes"
4092 echo "configure: failed program was:" >&5
4093 cat conftest.$ac_ext >&5
4095 eval "ac_cv_func_$ac_func=no"
4100 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4101 echo "$ac_t""yes" 1>&6
4102 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4103 cat >> confdefs.h <<EOF
4104 #define $ac_tr_func 1
4108 echo "$ac_t""no" 1>&6
4109 mutt_cv_snprintf=yes
4113 for ac_func in vsnprintf
4115 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4116 echo "configure:4117: checking for $ac_func" >&5
4117 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4118 echo $ac_n "(cached) $ac_c" 1>&6
4120 cat > conftest.$ac_ext <<EOF
4121 #line 4122 "configure"
4122 #include "confdefs.h"
4123 /* System header to define __stub macros and hopefully few prototypes,
4124 which can conflict with char $ac_func(); below. */
4126 /* Override any gcc2 internal prototype to avoid an error. */
4127 /* We use char because int might match the return type of a gcc2
4128 builtin and then its argument prototype would still apply. */
4133 /* The GNU C library defines this for functions which it implements
4134 to always fail with ENOSYS. Some functions are actually named
4135 something starting with __ and the normal name is an alias. */
4136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4144 if { (eval echo configure:4145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4146 eval "ac_cv_func_$ac_func=yes"
4148 echo "configure: failed program was:" >&5
4149 cat conftest.$ac_ext >&5
4151 eval "ac_cv_func_$ac_func=no"
4156 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4157 echo "$ac_t""yes" 1>&6
4158 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4159 cat >> confdefs.h <<EOF
4160 #define $ac_tr_func 1
4164 echo "$ac_t""no" 1>&6
4165 mutt_cv_snprintf=yes
4169 if test $mutt_cv_snprintf = yes; then
4170 LIBOBJS="$LIBOBJS snprintf.o"
4173 for ac_func in ftruncate
4175 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4176 echo "configure:4177: checking for $ac_func" >&5
4177 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4178 echo $ac_n "(cached) $ac_c" 1>&6
4180 cat > conftest.$ac_ext <<EOF
4181 #line 4182 "configure"
4182 #include "confdefs.h"
4183 /* System header to define __stub macros and hopefully few prototypes,
4184 which can conflict with char $ac_func(); below. */
4186 /* Override any gcc2 internal prototype to avoid an error. */
4187 /* We use char because int might match the return type of a gcc2
4188 builtin and then its argument prototype would still apply. */
4193 /* The GNU C library defines this for functions which it implements
4194 to always fail with ENOSYS. Some functions are actually named
4195 something starting with __ and the normal name is an alias. */
4196 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4204 if { (eval echo configure:4205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4206 eval "ac_cv_func_$ac_func=yes"
4208 echo "configure: failed program was:" >&5
4209 cat conftest.$ac_ext >&5
4211 eval "ac_cv_func_$ac_func=no"
4216 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4217 echo "$ac_t""yes" 1>&6
4218 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4219 cat >> confdefs.h <<EOF
4220 #define $ac_tr_func 1
4224 echo "$ac_t""no" 1>&6
4225 echo $ac_n "checking for chsize in -lx""... $ac_c" 1>&6
4226 echo "configure:4227: checking for chsize in -lx" >&5
4227 ac_lib_var=`echo x'_'chsize | sed 'y%./+-%__p_%'`
4228 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4229 echo $ac_n "(cached) $ac_c" 1>&6
4231 ac_save_LIBS="$LIBS"
4233 cat > conftest.$ac_ext <<EOF
4234 #line 4235 "configure"
4235 #include "confdefs.h"
4236 /* Override any gcc2 internal prototype to avoid an error. */
4237 /* We use char because int might match the return type of a gcc2
4238 builtin and then its argument prototype would still apply. */
4245 if { (eval echo configure:4246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4247 eval "ac_cv_lib_$ac_lib_var=yes"
4249 echo "configure: failed program was:" >&5
4250 cat conftest.$ac_ext >&5
4252 eval "ac_cv_lib_$ac_lib_var=no"
4255 LIBS="$ac_save_LIBS"
4258 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4259 echo "$ac_t""yes" 1>&6
4260 ac_tr_lib=HAVE_LIB`echo x | sed -e 's/^a-zA-Z0-9_/_/g' \
4261 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4262 cat >> confdefs.h <<EOF
4263 #define $ac_tr_lib 1
4269 echo "$ac_t""no" 1>&6
4276 for ac_func in strftime
4278 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4279 echo "configure:4280: checking for $ac_func" >&5
4280 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4281 echo $ac_n "(cached) $ac_c" 1>&6
4283 cat > conftest.$ac_ext <<EOF
4284 #line 4285 "configure"
4285 #include "confdefs.h"
4286 /* System header to define __stub macros and hopefully few prototypes,
4287 which can conflict with char $ac_func(); below. */
4289 /* Override any gcc2 internal prototype to avoid an error. */
4290 /* We use char because int might match the return type of a gcc2
4291 builtin and then its argument prototype would still apply. */
4296 /* The GNU C library defines this for functions which it implements
4297 to always fail with ENOSYS. Some functions are actually named
4298 something starting with __ and the normal name is an alias. */
4299 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4307 if { (eval echo configure:4308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4309 eval "ac_cv_func_$ac_func=yes"
4311 echo "configure: failed program was:" >&5
4312 cat conftest.$ac_ext >&5
4314 eval "ac_cv_func_$ac_func=no"
4319 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4320 echo "$ac_t""yes" 1>&6
4321 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4322 cat >> confdefs.h <<EOF
4323 #define $ac_tr_func 1
4327 echo "$ac_t""no" 1>&6
4328 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
4329 echo "configure:4330: checking for strftime in -lintl" >&5
4330 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
4331 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4332 echo $ac_n "(cached) $ac_c" 1>&6
4334 ac_save_LIBS="$LIBS"
4336 cat > conftest.$ac_ext <<EOF
4337 #line 4338 "configure"
4338 #include "confdefs.h"
4339 /* Override any gcc2 internal prototype to avoid an error. */
4340 /* We use char because int might match the return type of a gcc2
4341 builtin and then its argument prototype would still apply. */
4348 if { (eval echo configure:4349: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4350 eval "ac_cv_lib_$ac_lib_var=yes"
4352 echo "configure: failed program was:" >&5
4353 cat conftest.$ac_ext >&5
4355 eval "ac_cv_lib_$ac_lib_var=no"
4358 LIBS="$ac_save_LIBS"
4361 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4362 echo "$ac_t""yes" 1>&6
4363 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/^a-zA-Z0-9_/_/g' \
4364 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4365 cat >> confdefs.h <<EOF
4366 #define $ac_tr_lib 1
4372 echo "$ac_t""no" 1>&6
4379 for ac_func in fchdir
4381 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4382 echo "configure:4383: checking for $ac_func" >&5
4383 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4384 echo $ac_n "(cached) $ac_c" 1>&6
4386 cat > conftest.$ac_ext <<EOF
4387 #line 4388 "configure"
4388 #include "confdefs.h"
4389 /* System header to define __stub macros and hopefully few prototypes,
4390 which can conflict with char $ac_func(); below. */
4392 /* Override any gcc2 internal prototype to avoid an error. */
4393 /* We use char because int might match the return type of a gcc2
4394 builtin and then its argument prototype would still apply. */
4399 /* The GNU C library defines this for functions which it implements
4400 to always fail with ENOSYS. Some functions are actually named
4401 something starting with __ and the normal name is an alias. */
4402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4410 if { (eval echo configure:4411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4412 eval "ac_cv_func_$ac_func=yes"
4414 echo "configure: failed program was:" >&5
4415 cat conftest.$ac_ext >&5
4417 eval "ac_cv_func_$ac_func=no"
4422 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4423 echo "$ac_t""yes" 1>&6
4424 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4425 cat >> confdefs.h <<EOF
4426 #define $ac_tr_func 1
4430 echo "$ac_t""no" 1>&6
4436 # Check whether --with-regex or --without-regex was given.
4437 if test "${with_regex+set}" = set; then
4438 withval="$with_regex"
4441 for ac_func in regcomp
4443 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4444 echo "configure:4445: checking for $ac_func" >&5
4445 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4446 echo $ac_n "(cached) $ac_c" 1>&6
4448 cat > conftest.$ac_ext <<EOF
4449 #line 4450 "configure"
4450 #include "confdefs.h"
4451 /* System header to define __stub macros and hopefully few prototypes,
4452 which can conflict with char $ac_func(); below. */
4454 /* Override any gcc2 internal prototype to avoid an error. */
4455 /* We use char because int might match the return type of a gcc2
4456 builtin and then its argument prototype would still apply. */
4461 /* The GNU C library defines this for functions which it implements
4462 to always fail with ENOSYS. Some functions are actually named
4463 something starting with __ and the normal name is an alias. */
4464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4472 if { (eval echo configure:4473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4474 eval "ac_cv_func_$ac_func=yes"
4476 echo "configure: failed program was:" >&5
4477 cat conftest.$ac_ext >&5
4479 eval "ac_cv_func_$ac_func=no"
4484 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4485 echo "$ac_t""yes" 1>&6
4486 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4487 cat >> confdefs.h <<EOF
4488 #define $ac_tr_func 1
4492 echo "$ac_t""no" 1>&6
4500 if test $mutt_cv_regex = no ; then
4501 echo $ac_n "checking whether your system's regexp library is completely broken""... $ac_c" 1>&6
4502 echo "configure:4503: checking whether your system's regexp library is completely broken" >&5
4503 if eval "test \"`echo '$''{'mutt_cv_regex_broken'+set}'`\" = set"; then
4504 echo $ac_n "(cached) $ac_c" 1>&6
4506 if test "$cross_compiling" = yes; then
4507 mutt_cv_regex_broken=yes
4509 cat > conftest.$ac_ext <<EOF
4510 #line 4511 "configure"
4511 #include "confdefs.h"
4515 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); }
4517 if { (eval echo configure:4518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4519 mutt_cv_regex_broken=no
4521 echo "configure: failed program was:" >&5
4522 cat conftest.$ac_ext >&5
4524 mutt_cv_regex_broken=yes
4531 echo "$ac_t""$mutt_cv_regex_broken" 1>&6
4532 if test $mutt_cv_regex_broken = yes ; then
4533 echo "Using the included GNU regex instead." >&6
4538 if test $mutt_cv_regex = yes; then
4539 cat >> confdefs.h <<\EOF
4540 #define USE_GNU_REGEX 1
4543 LIBOBJS="$LIBOBJS regex.o"
4547 # Check whether --with-homespool or --without-homespool was given.
4548 if test "${with_homespool+set}" = set; then
4549 withval="$with_homespool"
4550 with_homespool=${withval}
4553 if test x$with_homespool != x; then
4554 if test $with_homespool = yes; then
4555 with_homespool=mailbox
4557 cat >> confdefs.h <<EOF
4558 #define MAILPATH "$with_homespool"
4561 cat >> confdefs.h <<\EOF
4565 cat >> confdefs.h <<\EOF
4566 #define USE_DOTLOCK 1
4571 # Check whether --with-mailpath or --without-mailpath was given.
4572 if test "${with_mailpath+set}" = set; then
4573 withval="$with_mailpath"
4574 mutt_cv_mailpath=$withval
4576 echo $ac_n "checking where new mail is stored""... $ac_c" 1>&6
4577 echo "configure:4578: checking where new mail is stored" >&5
4578 if eval "test \"`echo '$''{'mutt_cv_mailpath'+set}'`\" = set"; then
4579 echo $ac_n "(cached) $ac_c" 1>&6
4582 if test -d /var/mail; then
4583 mutt_cv_mailpath=/var/mail
4584 elif test -d /var/spool/mail; then
4585 mutt_cv_mailpath=/var/spool/mail
4586 elif test -d /usr/spool/mail; then
4587 mutt_cv_mailpath=/usr/spool/mail
4588 elif test -d /usr/mail; then
4589 mutt_cv_mailpath=/usr/mail
4593 echo "$ac_t""$mutt_cv_mailpath" 1>&6
4597 if test "$mutt_cv_mailpath" = no; then
4598 { echo "configure: error: "Could not determine where new mail is stored."" 1>&2; exit 1; }
4600 cat >> confdefs.h <<EOF
4601 #define MAILPATH "$mutt_cv_mailpath"
4605 echo $ac_n "checking if $mutt_cv_mailpath is world writable""... $ac_c" 1>&6
4606 echo "configure:4607: checking if $mutt_cv_mailpath is world writable" >&5
4607 if eval "test \"`echo '$''{'mutt_cv_worldwrite'+set}'`\" = set"; then
4608 echo $ac_n "(cached) $ac_c" 1>&6
4610 if test "$cross_compiling" = yes; then
4611 mutt_cv_worldwrite=no
4613 cat > conftest.$ac_ext <<EOF
4614 #line 4615 "configure"
4615 #include "confdefs.h"
4616 #include <sys/types.h>
4617 #include <sys/stat.h>
4619 int main (int argc, char **argv)
4623 stat ("$mutt_cv_mailpath", &s);
4624 if (s.st_mode & S_IWOTH) exit (0);
4628 if { (eval echo configure:4629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4630 mutt_cv_worldwrite=yes
4632 echo "configure: failed program was:" >&5
4633 cat conftest.$ac_ext >&5
4635 mutt_cv_worldwrite=no
4642 echo "$ac_t""$mutt_cv_worldwrite" 1>&6
4645 if test $mutt_cv_worldwrite = yes; then
4646 cat >> confdefs.h <<\EOF
4647 #define USE_DOTLOCK 1
4652 echo $ac_n "checking if $mutt_cv_mailpath is group writable""... $ac_c" 1>&6
4653 echo "configure:4654: checking if $mutt_cv_mailpath is group writable" >&5
4654 if eval "test \"`echo '$''{'mutt_cv_groupwrite'+set}'`\" = set"; then
4655 echo $ac_n "(cached) $ac_c" 1>&6
4657 if test "$cross_compiling" = yes; then
4658 mutt_cv_groupwrite=no
4660 cat > conftest.$ac_ext <<EOF
4661 #line 4662 "configure"
4662 #include "confdefs.h"
4663 #include <sys/types.h>
4664 #include <sys/stat.h>
4666 int main (int argc, char **argv)
4670 stat ("$mutt_cv_mailpath", &s);
4671 if (s.st_mode & S_IWGRP) exit (0);
4675 if { (eval echo configure:4676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4677 mutt_cv_groupwrite=yes
4679 echo "configure: failed program was:" >&5
4680 cat conftest.$ac_ext >&5
4682 mutt_cv_groupwrite=no
4689 echo "$ac_t""$mutt_cv_groupwrite" 1>&6
4691 if test $mutt_cv_groupwrite = yes; then
4692 cat >> confdefs.h <<\EOF
4693 #define USE_DOTLOCK 1
4696 cat >> confdefs.h <<\EOF
4697 #define USE_SETGID 1
4705 # Check whether --enable-external_dotlock or --disable-external_dotlock was given.
4706 if test "${enable_external_dotlock+set}" = set; then
4707 enableval="$enable_external_dotlock"
4708 mutt_cv_external_dotlock="$enableval"
4712 if test "x$mutt_cv_setgid" = "xyes" || test "x$mutt_cv_fchdir" = "xno" \
4713 || test "x$mutt_cv_external_dotlock" = "xyes"
4715 cat >> confdefs.h <<\EOF
4716 #define DL_STANDALONE 1
4719 DOTLOCK_TARGET="mutt_dotlock"
4721 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS dotlock.o"
4727 echo $ac_n "checking where to put the documentation""... $ac_c" 1>&6
4728 echo "configure:4729: checking where to put the documentation" >&5
4729 # Check whether --with-docdir or --without-docdir was given.
4730 if test "${with_docdir+set}" = set; then
4731 withval="$with_docdir"
4732 mutt_cv_docdir=$withval
4734 mutt_cv_docdir="$mutt_cv_prefix/doc/mutt"
4737 echo "$ac_t""$mutt_cv_docdir" 1>&6
4739 docdir=$mutt_cv_docdir
4742 if test x$mutt_cv_setgid = xyes; then
4743 DOTLOCK_GROUP='mail'
4744 DOTLOCK_PERMISSION=2755
4747 DOTLOCK_PERMISSION=755
4752 # Check whether --with-domain or --without-domain was given.
4753 if test "${with_domain+set}" = set; then
4754 withval="$with_domain"
4755 if test $withval != yes; then
4756 cat >> confdefs.h <<EOF
4757 #define DOMAIN "$withval"
4767 # Check whether --enable-pop or --disable-pop was given.
4768 if test "${enable_pop+set}" = set; then
4769 enableval="$enable_pop"
4770 if test x$enableval = xyes ; then
4771 cat >> confdefs.h <<\EOF
4775 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pop.o pop_lib.o pop_auth.o"
4783 # Check whether --enable-imap or --disable-imap was given.
4784 if test "${enable_imap+set}" = set; then
4785 enableval="$enable_imap"
4786 if test x$enableval = xyes ; then
4787 cat >> confdefs.h <<\EOF
4791 LIBIMAP="-Limap -limap"
4792 LIBIMAPDEPS="\$(top_srcdir)/imap/imap.h imap/libimap.a"
4802 if test x$need_imap = xyes; then
4804 BUILD_IMAP_FALSE='#'
4810 # Check whether --enable-nntp or --disable-nntp was given.
4811 if test "${enable_nntp+set}" = set; then
4812 enableval="$enable_nntp"
4813 if test x$enableval = xyes ; then
4814 cat >> confdefs.h <<\EOF
4818 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS nntp.o newsrc.o"
4826 if test "$need_socket" = "yes"
4828 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
4829 echo "configure:4830: checking for socklen_t" >&5
4830 cat > conftest.$ac_ext <<EOF
4831 #line 4832 "configure"
4832 #include "confdefs.h"
4833 #include <sys/socket.h>
4835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4836 egrep "socklen_t" >/dev/null 2>&1; then
4838 echo "$ac_t""yes" 1>&6
4841 echo "$ac_t""no" 1>&6
4842 cat >> confdefs.h <<\EOF
4843 #define socklen_t int
4849 echo $ac_n "checking for gethostent""... $ac_c" 1>&6
4850 echo "configure:4851: checking for gethostent" >&5
4851 if eval "test \"`echo '$''{'ac_cv_func_gethostent'+set}'`\" = set"; then
4852 echo $ac_n "(cached) $ac_c" 1>&6
4854 cat > conftest.$ac_ext <<EOF
4855 #line 4856 "configure"
4856 #include "confdefs.h"
4857 /* System header to define __stub macros and hopefully few prototypes,
4858 which can conflict with char gethostent(); below. */
4860 /* Override any gcc2 internal prototype to avoid an error. */
4861 /* We use char because int might match the return type of a gcc2
4862 builtin and then its argument prototype would still apply. */
4867 /* The GNU C library defines this for functions which it implements
4868 to always fail with ENOSYS. Some functions are actually named
4869 something starting with __ and the normal name is an alias. */
4870 #if defined (__stub_gethostent) || defined (__stub___gethostent)
4878 if { (eval echo configure:4879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4880 eval "ac_cv_func_gethostent=yes"
4882 echo "configure: failed program was:" >&5
4883 cat conftest.$ac_ext >&5
4885 eval "ac_cv_func_gethostent=no"
4890 if eval "test \"`echo '$ac_cv_func_'gethostent`\" = yes"; then
4891 echo "$ac_t""yes" 1>&6
4894 echo "$ac_t""no" 1>&6
4895 echo $ac_n "checking for gethostent in -lnsl""... $ac_c" 1>&6
4896 echo "configure:4897: checking for gethostent in -lnsl" >&5
4897 ac_lib_var=`echo nsl'_'gethostent | sed 'y%./+-%__p_%'`
4898 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4899 echo $ac_n "(cached) $ac_c" 1>&6
4901 ac_save_LIBS="$LIBS"
4903 cat > conftest.$ac_ext <<EOF
4904 #line 4905 "configure"
4905 #include "confdefs.h"
4906 /* Override any gcc2 internal prototype to avoid an error. */
4907 /* We use char because int might match the return type of a gcc2
4908 builtin and then its argument prototype would still apply. */
4915 if { (eval echo configure:4916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4917 eval "ac_cv_lib_$ac_lib_var=yes"
4919 echo "configure: failed program was:" >&5
4920 cat conftest.$ac_ext >&5
4922 eval "ac_cv_lib_$ac_lib_var=no"
4925 LIBS="$ac_save_LIBS"
4928 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4929 echo "$ac_t""yes" 1>&6
4930 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
4931 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4932 cat >> confdefs.h <<EOF
4933 #define $ac_tr_lib 1
4939 echo "$ac_t""no" 1>&6
4944 echo $ac_n "checking for setsockopt""... $ac_c" 1>&6
4945 echo "configure:4946: checking for setsockopt" >&5
4946 if eval "test \"`echo '$''{'ac_cv_func_setsockopt'+set}'`\" = set"; then
4947 echo $ac_n "(cached) $ac_c" 1>&6
4949 cat > conftest.$ac_ext <<EOF
4950 #line 4951 "configure"
4951 #include "confdefs.h"
4952 /* System header to define __stub macros and hopefully few prototypes,
4953 which can conflict with char setsockopt(); below. */
4955 /* Override any gcc2 internal prototype to avoid an error. */
4956 /* We use char because int might match the return type of a gcc2
4957 builtin and then its argument prototype would still apply. */
4962 /* The GNU C library defines this for functions which it implements
4963 to always fail with ENOSYS. Some functions are actually named
4964 something starting with __ and the normal name is an alias. */
4965 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
4973 if { (eval echo configure:4974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4975 eval "ac_cv_func_setsockopt=yes"
4977 echo "configure: failed program was:" >&5
4978 cat conftest.$ac_ext >&5
4980 eval "ac_cv_func_setsockopt=no"
4985 if eval "test \"`echo '$ac_cv_func_'setsockopt`\" = yes"; then
4986 echo "$ac_t""yes" 1>&6
4989 echo "$ac_t""no" 1>&6
4990 echo $ac_n "checking for setsockopt in -lsocket""... $ac_c" 1>&6
4991 echo "configure:4992: checking for setsockopt in -lsocket" >&5
4992 ac_lib_var=`echo socket'_'setsockopt | sed 'y%./+-%__p_%'`
4993 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4994 echo $ac_n "(cached) $ac_c" 1>&6
4996 ac_save_LIBS="$LIBS"
4997 LIBS="-lsocket $LIBS"
4998 cat > conftest.$ac_ext <<EOF
4999 #line 5000 "configure"
5000 #include "confdefs.h"
5001 /* Override any gcc2 internal prototype to avoid an error. */
5002 /* We use char because int might match the return type of a gcc2
5003 builtin and then its argument prototype would still apply. */
5010 if { (eval echo configure:5011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5012 eval "ac_cv_lib_$ac_lib_var=yes"
5014 echo "configure: failed program was:" >&5
5015 cat conftest.$ac_ext >&5
5017 eval "ac_cv_lib_$ac_lib_var=no"
5020 LIBS="$ac_save_LIBS"
5023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5024 echo "$ac_t""yes" 1>&6
5025 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
5026 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5027 cat >> confdefs.h <<EOF
5028 #define $ac_tr_lib 1
5031 LIBS="-lsocket $LIBS"
5034 echo "$ac_t""no" 1>&6
5039 for ac_func in getaddrinfo
5041 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5042 echo "configure:5043: checking for $ac_func" >&5
5043 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5044 echo $ac_n "(cached) $ac_c" 1>&6
5046 cat > conftest.$ac_ext <<EOF
5047 #line 5048 "configure"
5048 #include "confdefs.h"
5049 /* System header to define __stub macros and hopefully few prototypes,
5050 which can conflict with char $ac_func(); below. */
5052 /* Override any gcc2 internal prototype to avoid an error. */
5053 /* We use char because int might match the return type of a gcc2
5054 builtin and then its argument prototype would still apply. */
5059 /* The GNU C library defines this for functions which it implements
5060 to always fail with ENOSYS. Some functions are actually named
5061 something starting with __ and the normal name is an alias. */
5062 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5070 if { (eval echo configure:5071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5072 eval "ac_cv_func_$ac_func=yes"
5074 echo "configure: failed program was:" >&5
5075 cat conftest.$ac_ext >&5
5077 eval "ac_cv_func_$ac_func=no"
5082 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5083 echo "$ac_t""yes" 1>&6
5084 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5085 cat >> confdefs.h <<EOF
5086 #define $ac_tr_func 1
5090 echo "$ac_t""no" 1>&6
5094 cat >> confdefs.h <<\EOF
5095 #define USE_SOCKET 1
5098 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS account.o mutt_socket.o mutt_tunnel.o"
5102 # Check whether --with-gss or --without-gss was given.
5103 if test "${with_gss+set}" = set; then
5105 gss_prefix="$withval"
5110 if test "$gss_prefix" != "no"
5112 if test "$need_imap" = "yes"
5115 GSSAPI_PREFIX=$gss_prefix
5117 saved_CPPFLAGS="$CPPFLAGS"
5118 saved_LDFLAGS="$LDFLAGS"
5120 if test "$GSSAPI_PREFIX" != "yes"
5122 krb5_path="$GSSAPI_PREFIX/bin"
5126 # Extract the first word of "krb5-config", so it can be a program name with args.
5127 set dummy krb5-config; ac_word=$2
5128 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5129 echo "configure:5130: checking for $ac_word" >&5
5130 if eval "test \"`echo '$''{'ac_cv_path_KRB5CFGPATH'+set}'`\" = set"; then
5131 echo $ac_n "(cached) $ac_c" 1>&6
5133 case "$KRB5CFGPATH" in
5135 ac_cv_path_KRB5CFGPATH="$KRB5CFGPATH" # Let the user override the test with a path.
5138 ac_cv_path_KRB5CFGPATH="$KRB5CFGPATH" # Let the user override the test with a dos path.
5141 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5142 ac_dummy="$krb5_path"
5143 for ac_dir in $ac_dummy; do
5144 test -z "$ac_dir" && ac_dir=.
5145 if test -f $ac_dir/$ac_word; then
5146 ac_cv_path_KRB5CFGPATH="$ac_dir/$ac_word"
5151 test -z "$ac_cv_path_KRB5CFGPATH" && ac_cv_path_KRB5CFGPATH="none"
5155 KRB5CFGPATH="$ac_cv_path_KRB5CFGPATH"
5156 if test -n "$KRB5CFGPATH"; then
5157 echo "$ac_t""$KRB5CFGPATH" 1>&6
5159 echo "$ac_t""no" 1>&6
5162 if test "$KRB5CFGPATH" != "none"
5164 GSSAPI_CFLAGS="$CPPFLAGS `$KRB5CFGPATH --cflags gssapi`"
5165 GSSAPI_LIBS="$MUTTLIBS `$KRB5CFGPATH --libs gssapi`"
5166 case "`$KRB5CFGPATH --version`" in
5167 "Kerberos 5 "*) GSSAPI_IMPL="MIT";;
5168 ?eimdal*) GSSAPI_IMPL="Heimdal";;
5169 *) GSSAPI_IMPL="Unknown";;
5172 if test "$GSSAPI_PREFIX" != "yes"
5174 GSSAPI_CFLAGS="-I$GSSAPI_PREFIX/include"
5175 GSSAPI_LDFLAGS="-L$GSSAPI_PREFIX/lib"
5176 CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
5177 LDFLAGS="$LDFLAGS $GSSAPI_LDFLAGS"
5180 echo $ac_n "checking for gss_init_sec_context in -lgssapi_krb5""... $ac_c" 1>&6
5181 echo "configure:5182: checking for gss_init_sec_context in -lgssapi_krb5" >&5
5182 ac_lib_var=`echo gssapi_krb5'_'gss_init_sec_context | sed 'y%./+-%__p_%'`
5183 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5184 echo $ac_n "(cached) $ac_c" 1>&6
5186 ac_save_LIBS="$LIBS"
5187 LIBS="-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err $LIBS"
5188 cat > conftest.$ac_ext <<EOF
5189 #line 5190 "configure"
5190 #include "confdefs.h"
5191 /* Override any gcc2 internal prototype to avoid an error. */
5192 /* We use char because int might match the return type of a gcc2
5193 builtin and then its argument prototype would still apply. */
5194 char gss_init_sec_context();
5197 gss_init_sec_context()
5200 if { (eval echo configure:5201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5202 eval "ac_cv_lib_$ac_lib_var=yes"
5204 echo "configure: failed program was:" >&5
5205 cat conftest.$ac_ext >&5
5207 eval "ac_cv_lib_$ac_lib_var=no"
5210 LIBS="$ac_save_LIBS"
5213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5214 echo "$ac_t""yes" 1>&6
5217 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err"
5220 echo "$ac_t""no" 1>&6
5224 if test "$GSSAPI_IMPL" = "none"
5226 echo $ac_n "checking for gss_init_sec_context in -lgssapi""... $ac_c" 1>&6
5227 echo "configure:5228: checking for gss_init_sec_context in -lgssapi" >&5
5228 ac_lib_var=`echo gssapi'_'gss_init_sec_context | sed 'y%./+-%__p_%'`
5229 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5230 echo $ac_n "(cached) $ac_c" 1>&6
5232 ac_save_LIBS="$LIBS"
5233 LIBS="-lgssapi -lkrb5 -ldes -lasn1 -lroken -lcrypt -lcom_err $LIBS"
5234 cat > conftest.$ac_ext <<EOF
5235 #line 5236 "configure"
5236 #include "confdefs.h"
5237 /* Override any gcc2 internal prototype to avoid an error. */
5238 /* We use char because int might match the return type of a gcc2
5239 builtin and then its argument prototype would still apply. */
5240 char gss_init_sec_context();
5243 gss_init_sec_context()
5246 if { (eval echo configure:5247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5248 eval "ac_cv_lib_$ac_lib_var=yes"
5250 echo "configure: failed program was:" >&5
5251 cat conftest.$ac_ext >&5
5253 eval "ac_cv_lib_$ac_lib_var=no"
5256 LIBS="$ac_save_LIBS"
5259 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5260 echo "$ac_t""yes" 1>&6
5262 GSSAPI_IMPL="Heimdal"
5263 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi -lkrb5 -ldes -lasn1 -lroken"
5264 GSSAPI_LIBS="$GSSAPI_LIBS -lcrypt -lcom_err"
5267 echo "$ac_t""no" 1>&6
5272 if test "$GSSAPI_IMPL" = "none"
5274 echo $ac_n "checking for g_order_init in -lgssapi_krb5""... $ac_c" 1>&6
5275 echo "configure:5276: checking for g_order_init in -lgssapi_krb5" >&5
5276 ac_lib_var=`echo gssapi_krb5'_'g_order_init | sed 'y%./+-%__p_%'`
5277 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5278 echo $ac_n "(cached) $ac_c" 1>&6
5280 ac_save_LIBS="$LIBS"
5281 LIBS="-lgssapi_krb5 -lkrb5 -lcrypto -lcom_err $LIBS"
5282 cat > conftest.$ac_ext <<EOF
5283 #line 5284 "configure"
5284 #include "confdefs.h"
5285 /* Override any gcc2 internal prototype to avoid an error. */
5286 /* We use char because int might match the return type of a gcc2
5287 builtin and then its argument prototype would still apply. */
5288 char g_order_init();
5294 if { (eval echo configure:5295: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5296 eval "ac_cv_lib_$ac_lib_var=yes"
5298 echo "configure: failed program was:" >&5
5299 cat conftest.$ac_ext >&5
5301 eval "ac_cv_lib_$ac_lib_var=no"
5304 LIBS="$ac_save_LIBS"
5307 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5308 echo "$ac_t""yes" 1>&6
5310 GSSAPI_IMPL="OldMIT",
5311 GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err"
5314 echo "$ac_t""no" 1>&6
5320 CPPFLAGS="$saved_CPPFLAGS"
5321 LDFLAGS="$saved_LDFLAGS"
5324 echo $ac_n "checking GSSAPI implementation""... $ac_c" 1>&6
5325 echo "configure:5326: checking GSSAPI implementation" >&5
5326 echo "$ac_t""$GSSAPI_IMPL" 1>&6
5327 if test "$GSSAPI_IMPL" = "none"
5329 cat > confcache <<\EOF
5330 # This file is a shell script that caches the results of configure
5331 # tests run on this system so they can be shared between configure
5332 # scripts and configure runs. It is not useful on other systems.
5333 # If it contains results you don't want to keep, you may remove or edit it.
5335 # By default, configure uses ./config.cache as the cache file,
5336 # creating it if it does not exist already. You can give configure
5337 # the --cache-file=FILE option to use a different cache file; that is
5338 # what configure does when it calls configure scripts in
5339 # subdirectories, so they share the cache.
5340 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5341 # config.status only pays attention to the cache file if you give it the
5342 # --recheck option to rerun configure.
5345 # The following way of writing the cache mishandles newlines in values,
5346 # but we know of no workaround that is simple, portable, and efficient.
5347 # So, don't put newlines in cache variables' values.
5348 # Ultrix sh set writes to stderr and can't be redirected directly,
5349 # and sets the high bit in the cache file unless we assign to the vars.
5351 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5353 # `set' does not quote correctly, so add quotes (double-quote substitution
5354 # turns \\\\ into \\, and sed turns \\ into \).
5356 -e "s/'/'\\\\''/g" \
5357 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5360 # `set' quotes correctly as required by POSIX, so do not add quotes.
5361 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5364 if cmp -s $cache_file confcache; then
5367 if test -w $cache_file; then
5368 echo "updating cache $cache_file"
5369 cat confcache > $cache_file
5371 echo "not updating unwritable cache $cache_file"
5376 echo "$ac_t""GSSAPI libraries not found" 1>&6
5378 if test "$GSSAPI_IMPL" = "Heimdal"
5380 cat >> confdefs.h <<\EOF
5381 #define HAVE_HEIMDAL 1
5385 CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
5386 MUTTLIBS="$MUTTLIBS $GSSAPI_LIBS"
5387 cat >> confdefs.h <<\EOF
5393 echo "configure: warning: GSS was requested but IMAP is not enabled" 1>&2
5398 if test x$need_gss = xyes; then
5407 # Check whether --with-ssl or --without-ssl was given.
5408 if test "${with_ssl+set}" = set; then
5410 if test "$with_ssl" != "no"
5412 if test "$need_socket" != "yes"; then
5413 { echo "configure: error: SSL support is only useful with POP or IMAP support" 1>&2; exit 1; }
5416 if test "$with_ssl" != "yes"
5418 LDFLAGS="$LDFLAGS -L$withval/lib"
5419 CPPFLAGS="$CPPFLAGS -I$withval/include"
5423 echo $ac_n "checking for X509_new in -lcrypto""... $ac_c" 1>&6
5424 echo "configure:5425: checking for X509_new in -lcrypto" >&5
5425 ac_lib_var=`echo crypto'_'X509_new | sed 'y%./+-%__p_%'`
5426 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5427 echo $ac_n "(cached) $ac_c" 1>&6
5429 ac_save_LIBS="$LIBS"
5430 LIBS="-lcrypto $LIBS"
5431 cat > conftest.$ac_ext <<EOF
5432 #line 5433 "configure"
5433 #include "confdefs.h"
5434 /* Override any gcc2 internal prototype to avoid an error. */
5435 /* We use char because int might match the return type of a gcc2
5436 builtin and then its argument prototype would still apply. */
5443 if { (eval echo configure:5444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5445 eval "ac_cv_lib_$ac_lib_var=yes"
5447 echo "configure: failed program was:" >&5
5448 cat conftest.$ac_ext >&5
5450 eval "ac_cv_lib_$ac_lib_var=no"
5453 LIBS="$ac_save_LIBS"
5456 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5457 echo "$ac_t""yes" 1>&6
5458 ac_tr_lib=HAVE_LIB`echo crypto | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5459 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5460 cat >> confdefs.h <<EOF
5461 #define $ac_tr_lib 1
5464 LIBS="-lcrypto $LIBS"
5467 echo "$ac_t""no" 1>&6
5468 { echo "configure: error: Unable to find SSL library" 1>&2; exit 1; }
5471 echo $ac_n "checking for SSL_new in -lssl""... $ac_c" 1>&6
5472 echo "configure:5473: checking for SSL_new in -lssl" >&5
5473 ac_lib_var=`echo ssl'_'SSL_new | sed 'y%./+-%__p_%'`
5474 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5475 echo $ac_n "(cached) $ac_c" 1>&6
5477 ac_save_LIBS="$LIBS"
5478 LIBS="-lssl -lcrypto $LIBS"
5479 cat > conftest.$ac_ext <<EOF
5480 #line 5481 "configure"
5481 #include "confdefs.h"
5482 /* Override any gcc2 internal prototype to avoid an error. */
5483 /* We use char because int might match the return type of a gcc2
5484 builtin and then its argument prototype would still apply. */
5491 if { (eval echo configure:5492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5493 eval "ac_cv_lib_$ac_lib_var=yes"
5495 echo "configure: failed program was:" >&5
5496 cat conftest.$ac_ext >&5
5498 eval "ac_cv_lib_$ac_lib_var=no"
5501 LIBS="$ac_save_LIBS"
5504 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5505 echo "$ac_t""yes" 1>&6
5506 ac_tr_lib=HAVE_LIB`echo ssl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5507 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5508 cat >> confdefs.h <<EOF
5509 #define $ac_tr_lib 1
5515 echo "$ac_t""no" 1>&6
5516 { echo "configure: error: Unable to find SSL library" 1>&2; exit 1; }
5520 for ac_func in RAND_status RAND_egd
5522 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5523 echo "configure:5524: checking for $ac_func" >&5
5524 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5525 echo $ac_n "(cached) $ac_c" 1>&6
5527 cat > conftest.$ac_ext <<EOF
5528 #line 5529 "configure"
5529 #include "confdefs.h"
5530 /* System header to define __stub macros and hopefully few prototypes,
5531 which can conflict with char $ac_func(); below. */
5533 /* Override any gcc2 internal prototype to avoid an error. */
5534 /* We use char because int might match the return type of a gcc2
5535 builtin and then its argument prototype would still apply. */
5540 /* The GNU C library defines this for functions which it implements
5541 to always fail with ENOSYS. Some functions are actually named
5542 something starting with __ and the normal name is an alias. */
5543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5551 if { (eval echo configure:5552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5553 eval "ac_cv_func_$ac_func=yes"
5555 echo "configure: failed program was:" >&5
5556 cat conftest.$ac_ext >&5
5558 eval "ac_cv_func_$ac_func=no"
5563 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5564 echo "$ac_t""yes" 1>&6
5565 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5566 cat >> confdefs.h <<EOF
5567 #define $ac_tr_func 1
5571 echo "$ac_t""no" 1>&6
5576 cat >> confdefs.h <<\EOF
5581 MUTTLIBS="$MUTTLIBS -lssl -lcrypto"
5582 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl.o"
5591 if test x$need_ssl = xyes; then
5599 # Check whether --with-nss or --without-nss was given.
5600 if test "${with_nss+set}" = set; then
5602 if test "$with_nss" != no
5604 if test "$need_socket" != "yes"; then
5605 { echo "configure: error: SSL support is only useful with POP or IMAP support" 1>&2; exit 1; }
5608 if test "$with_nss" != "yes"
5610 LDFLAGS="$LDFLAGS -L$withval/lib"
5611 CPPFLAGS="$CPPFLAGS -I$withval/include -I$withval/public/security"
5614 cat >> confdefs.h <<\EOF
5618 MUTTLIBS="$MUTTLIBS -lssl -lnss -lcertdb -lcerthi -lcryptohi"
5619 MUTTLIBS="$MUTTLIBS -lpk11wrap -lsoftoken -lsecutil -ldbm -lplds4 -lplc4 -lfreebl"
5620 MUTTLIBS="$MUTTLIBS -lnspr4"
5622 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_nss.o"
5629 # Check whether --with-sasl or --without-sasl was given.
5630 if test "${with_sasl+set}" = set; then
5631 withval="$with_sasl"
5633 if test "$need_socket" != "yes"
5635 { echo "configure: error: SASL support is only useful with POP or IMAP support" 1>&2; exit 1; }
5638 if test "$with_sasl" != "no"
5640 if test "$with_sasl" != "yes"
5642 CPPFLAGS="$CPPFLAGS -I$with_sasl/include"
5643 LDFLAGS="$LDFLAGS -L$with_sasl/lib"
5648 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
5649 echo "configure:5650: checking for sasl_client_init in -lsasl" >&5
5650 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-%__p_%'`
5651 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5652 echo $ac_n "(cached) $ac_c" 1>&6
5654 ac_save_LIBS="$LIBS"
5656 cat > conftest.$ac_ext <<EOF
5657 #line 5658 "configure"
5658 #include "confdefs.h"
5659 /* Override any gcc2 internal prototype to avoid an error. */
5660 /* We use char because int might match the return type of a gcc2
5661 builtin and then its argument prototype would still apply. */
5662 char sasl_client_init();
5668 if { (eval echo configure:5669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5670 eval "ac_cv_lib_$ac_lib_var=yes"
5672 echo "configure: failed program was:" >&5
5673 cat conftest.$ac_ext >&5
5675 eval "ac_cv_lib_$ac_lib_var=no"
5678 LIBS="$ac_save_LIBS"
5681 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5682 echo "$ac_t""yes" 1>&6
5683 ac_tr_lib=HAVE_LIB`echo sasl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5684 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5685 cat >> confdefs.h <<EOF
5686 #define $ac_tr_lib 1
5692 echo "$ac_t""no" 1>&6
5693 { echo "configure: error: could not find libsasl" 1>&2; exit 1; }
5697 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
5698 MUTTLIBS="$MUTTLIBS -lsasl"
5700 cat >> confdefs.h <<\EOF
5711 if test x$need_sasl = xyes; then
5719 # Check whether --with-sasl2 or --without-sasl2 was given.
5720 if test "${with_sasl2+set}" = set; then
5721 withval="$with_sasl2"
5723 if test "$need_socket" != "yes"
5725 { echo "configure: error: SASL support is only useful with POP or IMAP support" 1>&2; exit 1; }
5728 if test "$with_sasl2" != "no"
5730 if test "$with_sasl2" != "yes"
5732 CPPFLAGS="$CPPFLAGS -I$with_sasl2/include"
5733 LDFLAGS="$LDFLAGS -L$with_sasl2/lib"
5738 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
5739 echo "configure:5740: checking for sasl_client_init in -lsasl2" >&5
5740 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-%__p_%'`
5741 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5742 echo $ac_n "(cached) $ac_c" 1>&6
5744 ac_save_LIBS="$LIBS"
5745 LIBS="-lsasl2 $LIBS"
5746 cat > conftest.$ac_ext <<EOF
5747 #line 5748 "configure"
5748 #include "confdefs.h"
5749 /* Override any gcc2 internal prototype to avoid an error. */
5750 /* We use char because int might match the return type of a gcc2
5751 builtin and then its argument prototype would still apply. */
5752 char sasl_client_init();
5758 if { (eval echo configure:5759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5760 eval "ac_cv_lib_$ac_lib_var=yes"
5762 echo "configure: failed program was:" >&5
5763 cat conftest.$ac_ext >&5
5765 eval "ac_cv_lib_$ac_lib_var=no"
5768 LIBS="$ac_save_LIBS"
5771 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5772 echo "$ac_t""yes" 1>&6
5773 ac_tr_lib=HAVE_LIB`echo sasl2 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5774 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5775 cat >> confdefs.h <<EOF
5776 #define $ac_tr_lib 1
5779 LIBS="-lsasl2 $LIBS"
5782 echo "$ac_t""no" 1>&6
5783 { echo "configure: error: could not find libsasl" 1>&2; exit 1; }
5787 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
5788 MUTTLIBS="$MUTTLIBS -lsasl2"
5790 cat >> confdefs.h <<\EOF
5794 cat >> confdefs.h <<\EOF
5805 if test x$need_sasl = xyes; then
5813 # Check whether --with-idn or --without-idn was given.
5814 if test "${with_idn+set}" = set; then
5817 if test "$with_idn" != "no" ; then
5818 if test "$with_idn" != "yes" ; then
5819 CPPFLAGS="$CPPFLAGS -I$with_idn/include"
5820 LDFLAGS="$LDFLAGS -L$with_idn/lib"
5828 if test "x$with_idn" != "xno"; then
5829 echo $ac_n "checking for stringprep_check_version in -lidn""... $ac_c" 1>&6
5830 echo "configure:5831: checking for stringprep_check_version in -lidn" >&5
5831 ac_lib_var=`echo idn'_'stringprep_check_version | sed 'y%./+-%__p_%'`
5832 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5833 echo $ac_n "(cached) $ac_c" 1>&6
5835 ac_save_LIBS="$LIBS"
5837 cat > conftest.$ac_ext <<EOF
5838 #line 5839 "configure"
5839 #include "confdefs.h"
5840 /* Override any gcc2 internal prototype to avoid an error. */
5841 /* We use char because int might match the return type of a gcc2
5842 builtin and then its argument prototype would still apply. */
5843 char stringprep_check_version();
5846 stringprep_check_version()
5849 if { (eval echo configure:5850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5851 eval "ac_cv_lib_$ac_lib_var=yes"
5853 echo "configure: failed program was:" >&5
5854 cat conftest.$ac_ext >&5
5856 eval "ac_cv_lib_$ac_lib_var=no"
5859 LIBS="$ac_save_LIBS"
5862 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5863 echo "$ac_t""yes" 1>&6
5864 ac_tr_lib=HAVE_LIB`echo idn | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5865 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5866 cat >> confdefs.h <<EOF
5867 #define $ac_tr_lib 1
5873 echo "$ac_t""no" 1>&6
5876 for ac_func in idna_to_unicode_utf8_from_utf8 idna_to_unicode_8z8z
5878 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5879 echo "configure:5880: checking for $ac_func" >&5
5880 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5881 echo $ac_n "(cached) $ac_c" 1>&6
5883 cat > conftest.$ac_ext <<EOF
5884 #line 5885 "configure"
5885 #include "confdefs.h"
5886 /* System header to define __stub macros and hopefully few prototypes,
5887 which can conflict with char $ac_func(); below. */
5889 /* Override any gcc2 internal prototype to avoid an error. */
5890 /* We use char because int might match the return type of a gcc2
5891 builtin and then its argument prototype would still apply. */
5896 /* The GNU C library defines this for functions which it implements
5897 to always fail with ENOSYS. Some functions are actually named
5898 something starting with __ and the normal name is an alias. */
5899 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5907 if { (eval echo configure:5908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5909 eval "ac_cv_func_$ac_func=yes"
5911 echo "configure: failed program was:" >&5
5912 cat conftest.$ac_ext >&5
5914 eval "ac_cv_func_$ac_func=no"
5919 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5920 echo "$ac_t""yes" 1>&6
5921 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5922 cat >> confdefs.h <<EOF
5923 #define $ac_tr_func 1
5927 echo "$ac_t""no" 1>&6
5931 for ac_func in idna_to_ascii_from_utf8 idna_to_ascii_8z
5933 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5934 echo "configure:5935: checking for $ac_func" >&5
5935 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5936 echo $ac_n "(cached) $ac_c" 1>&6
5938 cat > conftest.$ac_ext <<EOF
5939 #line 5940 "configure"
5940 #include "confdefs.h"
5941 /* System header to define __stub macros and hopefully few prototypes,
5942 which can conflict with char $ac_func(); below. */
5944 /* Override any gcc2 internal prototype to avoid an error. */
5945 /* We use char because int might match the return type of a gcc2
5946 builtin and then its argument prototype would still apply. */
5951 /* The GNU C library defines this for functions which it implements
5952 to always fail with ENOSYS. Some functions are actually named
5953 something starting with __ and the normal name is an alias. */
5954 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5962 if { (eval echo configure:5963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5964 eval "ac_cv_func_$ac_func=yes"
5966 echo "configure: failed program was:" >&5
5967 cat conftest.$ac_ext >&5
5969 eval "ac_cv_func_$ac_func=no"
5974 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5975 echo "$ac_t""yes" 1>&6
5976 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5977 cat >> confdefs.h <<EOF
5978 #define $ac_tr_func 1
5982 echo "$ac_t""no" 1>&6
5986 for ac_func in idna_to_ascii_lz idna_to_ascii_from_locale
5988 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5989 echo "configure:5990: checking for $ac_func" >&5
5990 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5991 echo $ac_n "(cached) $ac_c" 1>&6
5993 cat > conftest.$ac_ext <<EOF
5994 #line 5995 "configure"
5995 #include "confdefs.h"
5996 /* System header to define __stub macros and hopefully few prototypes,
5997 which can conflict with char $ac_func(); below. */
5999 /* Override any gcc2 internal prototype to avoid an error. */
6000 /* We use char because int might match the return type of a gcc2
6001 builtin and then its argument prototype would still apply. */
6006 /* The GNU C library defines this for functions which it implements
6007 to always fail with ENOSYS. Some functions are actually named
6008 something starting with __ and the normal name is an alias. */
6009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6017 if { (eval echo configure:6018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6019 eval "ac_cv_func_$ac_func=yes"
6021 echo "configure: failed program was:" >&5
6022 cat conftest.$ac_ext >&5
6024 eval "ac_cv_func_$ac_func=no"
6029 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6030 echo "$ac_t""yes" 1>&6
6031 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6032 cat >> confdefs.h <<EOF
6033 #define $ac_tr_func 1
6037 echo "$ac_t""no" 1>&6
6043 if test "$need_md5" = "yes"
6045 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS md5c.o"
6049 # Check whether --enable-debug or --disable-debug was given.
6050 if test "${enable_debug+set}" = set; then
6051 enableval="$enable_debug"
6052 if test x$enableval = xyes ; then
6053 cat >> confdefs.h <<\EOF
6062 # Check whether --enable-flock or --disable-flock was given.
6063 if test "${enable_flock+set}" = set; then
6064 enableval="$enable_flock"
6065 if test $enableval = yes; then
6066 cat >> confdefs.h <<\EOF
6075 # Check whether --enable-fcntl or --disable-fcntl was given.
6076 if test "${enable_fcntl+set}" = set; then
6077 enableval="$enable_fcntl"
6078 if test $enableval = no; then mutt_cv_fcntl=no; fi
6082 if test $mutt_cv_fcntl = yes; then
6083 cat >> confdefs.h <<\EOF
6089 mutt_cv_warnings=yes
6090 # Check whether --enable-warnings or --disable-warnings was given.
6091 if test "${enable_warnings+set}" = set; then
6092 enableval="$enable_warnings"
6093 if test $enableval = no; then
6099 if test x$GCC = xyes -a $mutt_cv_warnings = yes; then
6100 CFLAGS="-Wall -pedantic $CFLAGS"
6103 # Check whether --enable-nfs-fix or --disable-nfs-fix was given.
6104 if test "${enable_nfs_fix+set}" = set; then
6105 enableval="$enable_nfs_fix"
6106 if test x$enableval = xyes; then
6107 cat >> confdefs.h <<\EOF
6108 #define NFS_ATTRIBUTE_HACK 1
6115 # Check whether --enable-buffy-size or --disable-buffy-size was given.
6116 if test "${enable_buffy_size+set}" = set; then
6117 enableval="$enable_buffy_size"
6118 if test x$enableval = xyes; then
6119 cat >> confdefs.h <<\EOF
6120 #define BUFFY_SIZE 1
6127 # Check whether --enable-mailtool or --disable-mailtool was given.
6128 if test "${enable_mailtool+set}" = set; then
6129 enableval="$enable_mailtool"
6130 if test x$enableval = xyes; then
6131 cat >> confdefs.h <<\EOF
6132 #define SUN_ATTACHMENT 1
6139 # Check whether --enable-locales-fix or --disable-locales-fix was given.
6140 if test "${enable_locales_fix+set}" = set; then
6141 enableval="$enable_locales_fix"
6142 if test x$enableval = xyes; then
6143 cat >> confdefs.h <<\EOF
6144 #define LOCALES_HACK 1
6151 # Check whether --with-exec-shell or --without-exec-shell was given.
6152 if test "${with_exec_shell+set}" = set; then
6153 withval="$with_exec_shell"
6154 if test $withval != yes; then
6155 cat >> confdefs.h <<EOF
6156 #define EXECSHELL "$withval"
6160 cat >> confdefs.h <<EOF
6161 #define EXECSHELL "/bin/sh"
6166 cat >> confdefs.h <<EOF
6167 #define EXECSHELL "/bin/sh"
6173 # Check whether --enable-exact-address or --disable-exact-address was given.
6174 if test "${enable_exact_address+set}" = set; then
6175 enableval="$enable_exact_address"
6176 if test $enableval = yes; then
6177 cat >> confdefs.h <<\EOF
6178 #define EXACT_ADDRESS 1
6192 # Check whether --enable-iconv or --disable-iconv was given.
6193 if test "${enable_iconv+set}" = set; then
6194 enableval="$enable_iconv"
6195 if test x$enableval = xno ; then
6202 echo $ac_n "checking for off_t""... $ac_c" 1>&6
6203 echo "configure:6204: checking for off_t" >&5
6204 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
6205 echo $ac_n "(cached) $ac_c" 1>&6
6207 cat > conftest.$ac_ext <<EOF
6208 #line 6209 "configure"
6209 #include "confdefs.h"
6210 #include <sys/types.h>
6216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6217 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6219 ac_cv_type_off_t=yes
6227 echo "$ac_t""$ac_cv_type_off_t" 1>&6
6228 if test $ac_cv_type_off_t = no; then
6229 cat >> confdefs.h <<\EOF
6235 echo $ac_n "checking for size_t""... $ac_c" 1>&6
6236 echo "configure:6237: checking for size_t" >&5
6237 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6238 echo $ac_n "(cached) $ac_c" 1>&6
6240 cat > conftest.$ac_ext <<EOF
6241 #line 6242 "configure"
6242 #include "confdefs.h"
6243 #include <sys/types.h>
6249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6250 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6252 ac_cv_type_size_t=yes
6255 ac_cv_type_size_t=no
6260 echo "$ac_t""$ac_cv_type_size_t" 1>&6
6261 if test $ac_cv_type_size_t = no; then
6262 cat >> confdefs.h <<\EOF
6263 #define size_t unsigned
6268 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6269 # for constant arguments. Useless!
6270 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
6271 echo "configure:6272: checking for working alloca.h" >&5
6272 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
6273 echo $ac_n "(cached) $ac_c" 1>&6
6275 cat > conftest.$ac_ext <<EOF
6276 #line 6277 "configure"
6277 #include "confdefs.h"
6280 char *p = alloca(2 * sizeof(int));
6283 if { (eval echo configure:6284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6285 ac_cv_header_alloca_h=yes
6287 echo "configure: failed program was:" >&5
6288 cat conftest.$ac_ext >&5
6290 ac_cv_header_alloca_h=no
6295 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
6296 if test $ac_cv_header_alloca_h = yes; then
6297 cat >> confdefs.h <<\EOF
6298 #define HAVE_ALLOCA_H 1
6303 echo $ac_n "checking for alloca""... $ac_c" 1>&6
6304 echo "configure:6305: checking for alloca" >&5
6305 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
6306 echo $ac_n "(cached) $ac_c" 1>&6
6308 cat > conftest.$ac_ext <<EOF
6309 #line 6310 "configure"
6310 #include "confdefs.h"
6313 # define alloca __builtin_alloca
6316 # include <malloc.h>
6317 # define alloca _alloca
6320 # include <alloca.h>
6325 # ifndef alloca /* predefined by HP cc +Olibcalls */
6334 char *p = (char *) alloca(1);
6337 if { (eval echo configure:6338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6339 ac_cv_func_alloca_works=yes
6341 echo "configure: failed program was:" >&5
6342 cat conftest.$ac_ext >&5
6344 ac_cv_func_alloca_works=no
6349 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
6350 if test $ac_cv_func_alloca_works = yes; then
6351 cat >> confdefs.h <<\EOF
6352 #define HAVE_ALLOCA 1
6357 if test $ac_cv_func_alloca_works = no; then
6358 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6359 # that cause trouble. Some versions do not even contain alloca or
6360 # contain a buggy version. If you still want to use their alloca,
6361 # use ar to extract alloca.o from them instead of compiling alloca.c.
6362 ALLOCA=alloca.${ac_objext}
6363 cat >> confdefs.h <<\EOF
6368 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
6369 echo "configure:6370: checking whether alloca needs Cray hooks" >&5
6370 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
6371 echo $ac_n "(cached) $ac_c" 1>&6
6373 cat > conftest.$ac_ext <<EOF
6374 #line 6375 "configure"
6375 #include "confdefs.h"
6376 #if defined(CRAY) && ! defined(CRAY2)
6383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6384 egrep "webecray" >/dev/null 2>&1; then
6395 echo "$ac_t""$ac_cv_os_cray" 1>&6
6396 if test $ac_cv_os_cray = yes; then
6397 for ac_func in _getb67 GETB67 getb67; do
6398 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6399 echo "configure:6400: checking for $ac_func" >&5
6400 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6401 echo $ac_n "(cached) $ac_c" 1>&6
6403 cat > conftest.$ac_ext <<EOF
6404 #line 6405 "configure"
6405 #include "confdefs.h"
6406 /* System header to define __stub macros and hopefully few prototypes,
6407 which can conflict with char $ac_func(); below. */
6409 /* Override any gcc2 internal prototype to avoid an error. */
6410 /* We use char because int might match the return type of a gcc2
6411 builtin and then its argument prototype would still apply. */
6416 /* The GNU C library defines this for functions which it implements
6417 to always fail with ENOSYS. Some functions are actually named
6418 something starting with __ and the normal name is an alias. */
6419 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6427 if { (eval echo configure:6428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6429 eval "ac_cv_func_$ac_func=yes"
6431 echo "configure: failed program was:" >&5
6432 cat conftest.$ac_ext >&5
6434 eval "ac_cv_func_$ac_func=no"
6439 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6440 echo "$ac_t""yes" 1>&6
6441 cat >> confdefs.h <<EOF
6442 #define CRAY_STACKSEG_END $ac_func
6447 echo "$ac_t""no" 1>&6
6453 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
6454 echo "configure:6455: checking stack direction for C alloca" >&5
6455 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
6456 echo $ac_n "(cached) $ac_c" 1>&6
6458 if test "$cross_compiling" = yes; then
6459 ac_cv_c_stack_direction=0
6461 cat > conftest.$ac_ext <<EOF
6462 #line 6463 "configure"
6463 #include "confdefs.h"
6464 find_stack_direction ()
6466 static char *addr = 0;
6471 return find_stack_direction ();
6474 return (&dummy > addr) ? 1 : -1;
6478 exit (find_stack_direction() < 0);
6481 if { (eval echo configure:6482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6483 ac_cv_c_stack_direction=1
6485 echo "configure: failed program was:" >&5
6486 cat conftest.$ac_ext >&5
6488 ac_cv_c_stack_direction=-1
6495 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
6496 cat >> confdefs.h <<EOF
6497 #define STACK_DIRECTION $ac_cv_c_stack_direction
6502 for ac_hdr in unistd.h
6504 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6505 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6506 echo "configure:6507: checking for $ac_hdr" >&5
6507 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6508 echo $ac_n "(cached) $ac_c" 1>&6
6510 cat > conftest.$ac_ext <<EOF
6511 #line 6512 "configure"
6512 #include "confdefs.h"
6515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6516 { (eval echo configure:6517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6517 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6518 if test -z "$ac_err"; then
6520 eval "ac_cv_header_$ac_safe=yes"
6523 echo "configure: failed program was:" >&5
6524 cat conftest.$ac_ext >&5
6526 eval "ac_cv_header_$ac_safe=no"
6530 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6531 echo "$ac_t""yes" 1>&6
6532 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6533 cat >> confdefs.h <<EOF
6534 #define $ac_tr_hdr 1
6538 echo "$ac_t""no" 1>&6
6542 for ac_func in getpagesize
6544 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6545 echo "configure:6546: checking for $ac_func" >&5
6546 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6547 echo $ac_n "(cached) $ac_c" 1>&6
6549 cat > conftest.$ac_ext <<EOF
6550 #line 6551 "configure"
6551 #include "confdefs.h"
6552 /* System header to define __stub macros and hopefully few prototypes,
6553 which can conflict with char $ac_func(); below. */
6555 /* Override any gcc2 internal prototype to avoid an error. */
6556 /* We use char because int might match the return type of a gcc2
6557 builtin and then its argument prototype would still apply. */
6562 /* The GNU C library defines this for functions which it implements
6563 to always fail with ENOSYS. Some functions are actually named
6564 something starting with __ and the normal name is an alias. */
6565 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6573 if { (eval echo configure:6574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6575 eval "ac_cv_func_$ac_func=yes"
6577 echo "configure: failed program was:" >&5
6578 cat conftest.$ac_ext >&5
6580 eval "ac_cv_func_$ac_func=no"
6585 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6586 echo "$ac_t""yes" 1>&6
6587 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6588 cat >> confdefs.h <<EOF
6589 #define $ac_tr_func 1
6593 echo "$ac_t""no" 1>&6
6597 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
6598 echo "configure:6599: checking for working mmap" >&5
6599 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
6600 echo $ac_n "(cached) $ac_c" 1>&6
6602 if test "$cross_compiling" = yes; then
6603 ac_cv_func_mmap_fixed_mapped=no
6605 cat > conftest.$ac_ext <<EOF
6606 #line 6607 "configure"
6607 #include "confdefs.h"
6609 /* Thanks to Mike Haertel and Jim Avera for this test.
6610 Here is a matrix of mmap possibilities:
6611 mmap private not fixed
6612 mmap private fixed at somewhere currently unmapped
6613 mmap private fixed at somewhere already mapped
6614 mmap shared not fixed
6615 mmap shared fixed at somewhere currently unmapped
6616 mmap shared fixed at somewhere already mapped
6617 For private mappings, we should verify that changes cannot be read()
6618 back from the file, nor mmap's back from the file at a different
6619 address. (There have been systems where private was not correctly
6620 implemented like the infamous i386 svr4.0, and systems where the
6621 VM page cache was not coherent with the filesystem buffer cache
6622 like early versions of FreeBSD and possibly contemporary NetBSD.)
6623 For shared mappings, we should conversely verify that changes get
6624 propogated back to all the places they're supposed to be.
6626 Grep wants private fixed already mapped.
6627 The main things grep needs to know about mmap are:
6628 * does it exist and is it safe to write into the mmap'd area
6629 * how to use it (BSD variants) */
6630 #include <sys/types.h>
6632 #include <sys/mman.h>
6634 /* This mess was copied from the GNU getpagesize.h. */
6635 #ifndef HAVE_GETPAGESIZE
6636 # ifdef HAVE_UNISTD_H
6637 # include <unistd.h>
6640 /* Assume that all systems that can run configure have sys/param.h. */
6641 # ifndef HAVE_SYS_PARAM_H
6642 # define HAVE_SYS_PARAM_H 1
6645 # ifdef _SC_PAGESIZE
6646 # define getpagesize() sysconf(_SC_PAGESIZE)
6647 # else /* no _SC_PAGESIZE */
6648 # ifdef HAVE_SYS_PARAM_H
6649 # include <sys/param.h>
6650 # ifdef EXEC_PAGESIZE
6651 # define getpagesize() EXEC_PAGESIZE
6652 # else /* no EXEC_PAGESIZE */
6654 # define getpagesize() NBPG * CLSIZE
6657 # endif /* no CLSIZE */
6658 # else /* no NBPG */
6660 # define getpagesize() NBPC
6661 # else /* no NBPC */
6663 # define getpagesize() PAGESIZE
6664 # endif /* PAGESIZE */
6665 # endif /* no NBPC */
6666 # endif /* no NBPG */
6667 # endif /* no EXEC_PAGESIZE */
6668 # else /* no HAVE_SYS_PARAM_H */
6669 # define getpagesize() 8192 /* punt totally */
6670 # endif /* no HAVE_SYS_PARAM_H */
6671 # endif /* no _SC_PAGESIZE */
6673 #endif /* no HAVE_GETPAGESIZE */
6676 extern "C" { void *malloc(unsigned); }
6684 char *data, *data2, *data3;
6688 pagesize = getpagesize();
6691 * First, make a file with some known garbage in it.
6693 data = malloc(pagesize);
6696 for (i = 0; i < pagesize; ++i)
6697 *(data + i) = rand();
6699 fd = creat("conftestmmap", 0600);
6702 if (write(fd, data, pagesize) != pagesize)
6707 * Next, try to mmap the file at a fixed address which
6708 * already has something else allocated at it. If we can,
6709 * also make sure that we see the same garbage.
6711 fd = open("conftestmmap", O_RDWR);
6714 data2 = malloc(2 * pagesize);
6717 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
6718 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
6719 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6721 for (i = 0; i < pagesize; ++i)
6722 if (*(data + i) != *(data2 + i))
6726 * Finally, make sure that changes to the mapped area
6727 * do not percolate back to the file as seen by read().
6728 * (This is a bug on some variants of i386 svr4.0.)
6730 for (i = 0; i < pagesize; ++i)
6731 *(data2 + i) = *(data2 + i) + 1;
6732 data3 = malloc(pagesize);
6735 if (read(fd, data3, pagesize) != pagesize)
6737 for (i = 0; i < pagesize; ++i)
6738 if (*(data + i) != *(data3 + i))
6741 unlink("conftestmmap");
6746 if { (eval echo configure:6747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6748 ac_cv_func_mmap_fixed_mapped=yes
6750 echo "configure: failed program was:" >&5
6751 cat conftest.$ac_ext >&5
6753 ac_cv_func_mmap_fixed_mapped=no
6760 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
6761 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6762 cat >> confdefs.h <<\EOF
6769 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
6770 echo "configure:6771: checking whether we are using the GNU C Library 2.1 or newer" >&5
6771 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
6772 echo $ac_n "(cached) $ac_c" 1>&6
6774 cat > conftest.$ac_ext <<EOF
6775 #line 6776 "configure"
6776 #include "confdefs.h"
6778 #include <features.h>
6779 #ifdef __GNU_LIBRARY__
6780 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6787 egrep "Lucky GNU user" >/dev/null 2>&1; then
6789 ac_cv_gnu_library_2_1=yes
6792 ac_cv_gnu_library_2_1=no
6800 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
6802 GLIBC21="$ac_cv_gnu_library_2_1"
6806 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
6807 stdlib.h string.h unistd.h sys/param.h
6809 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
6810 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
6811 echo "configure:6812: checking for $ac_hdr" >&5
6812 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
6813 echo $ac_n "(cached) $ac_c" 1>&6
6815 cat > conftest.$ac_ext <<EOF
6816 #line 6817 "configure"
6817 #include "confdefs.h"
6820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
6821 { (eval echo configure:6822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
6822 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
6823 if test -z "$ac_err"; then
6825 eval "ac_cv_header_$ac_safe=yes"
6828 echo "configure: failed program was:" >&5
6829 cat conftest.$ac_ext >&5
6831 eval "ac_cv_header_$ac_safe=no"
6835 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
6836 echo "$ac_t""yes" 1>&6
6837 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
6838 cat >> confdefs.h <<EOF
6839 #define $ac_tr_hdr 1
6843 echo "$ac_t""no" 1>&6
6847 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
6848 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
6849 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
6851 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6852 echo "configure:6853: checking for $ac_func" >&5
6853 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6854 echo $ac_n "(cached) $ac_c" 1>&6
6856 cat > conftest.$ac_ext <<EOF
6857 #line 6858 "configure"
6858 #include "confdefs.h"
6859 /* System header to define __stub macros and hopefully few prototypes,
6860 which can conflict with char $ac_func(); below. */
6862 /* Override any gcc2 internal prototype to avoid an error. */
6863 /* We use char because int might match the return type of a gcc2
6864 builtin and then its argument prototype would still apply. */
6869 /* The GNU C library defines this for functions which it implements
6870 to always fail with ENOSYS. Some functions are actually named
6871 something starting with __ and the normal name is an alias. */
6872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6880 if { (eval echo configure:6881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6882 eval "ac_cv_func_$ac_func=yes"
6884 echo "configure: failed program was:" >&5
6885 cat conftest.$ac_ext >&5
6887 eval "ac_cv_func_$ac_func=no"
6892 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6893 echo "$ac_t""yes" 1>&6
6894 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6895 cat >> confdefs.h <<EOF
6896 #define $ac_tr_func 1
6900 echo "$ac_t""no" 1>&6
6907 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
6908 if test "${with_libiconv_prefix+set}" = set; then
6909 withval="$with_libiconv_prefix"
6911 for dir in `echo "$withval" | tr : ' '`; do
6912 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
6913 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
6919 echo $ac_n "checking for iconv""... $ac_c" 1>&6
6920 echo "configure:6921: checking for iconv" >&5
6921 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
6922 echo $ac_n "(cached) $ac_c" 1>&6
6925 am_cv_func_iconv="no, consider installing GNU libiconv"
6927 cat > conftest.$ac_ext <<EOF
6928 #line 6929 "configure"
6929 #include "confdefs.h"
6933 iconv_t cd = iconv_open("","");
6934 iconv(cd,NULL,NULL,NULL,NULL);
6938 if { (eval echo configure:6939: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6940 am_cv_func_iconv=yes
6942 echo "configure: failed program was:" >&5
6943 cat conftest.$ac_ext >&5
6946 if test "$am_cv_func_iconv" != yes; then
6947 am_save_LIBS="$LIBS"
6948 LIBS="$LIBS -liconv"
6949 cat > conftest.$ac_ext <<EOF
6950 #line 6951 "configure"
6951 #include "confdefs.h"
6955 iconv_t cd = iconv_open("","");
6956 iconv(cd,NULL,NULL,NULL,NULL);
6960 if { (eval echo configure:6961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6963 am_cv_func_iconv=yes
6965 echo "configure: failed program was:" >&5
6966 cat conftest.$ac_ext >&5
6969 LIBS="$am_save_LIBS"
6974 echo "$ac_t""$am_cv_func_iconv" 1>&6
6975 if test "$am_cv_func_iconv" = yes; then
6976 cat >> confdefs.h <<\EOF
6977 #define HAVE_ICONV 1
6980 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
6981 echo "configure:6982: checking for iconv declaration" >&5
6982 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
6983 echo $ac_n "(cached) $ac_c" 1>&6
6986 cat > conftest.$ac_ext <<EOF
6987 #line 6988 "configure"
6988 #include "confdefs.h"
6996 #if defined(__STDC__) || defined(__cplusplus)
6997 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7006 if { (eval echo configure:7007: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7008 am_cv_proto_iconv_arg1=""
7010 echo "configure: failed program was:" >&5
7011 cat conftest.$ac_ext >&5
7013 am_cv_proto_iconv_arg1="const"
7016 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);"
7019 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
7020 echo "$ac_t""${ac_t:-
7021 }$am_cv_proto_iconv" 1>&6
7022 cat >> confdefs.h <<EOF
7023 #define ICONV_CONST $am_cv_proto_iconv_arg1
7028 if test "$am_cv_lib_iconv" = yes; then
7034 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
7035 echo "configure:7036: checking for nl_langinfo and CODESET" >&5
7036 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
7037 echo $ac_n "(cached) $ac_c" 1>&6
7039 cat > conftest.$ac_ext <<EOF
7040 #line 7041 "configure"
7041 #include "confdefs.h"
7042 #include <langinfo.h>
7044 char* cs = nl_langinfo(CODESET);
7047 if { (eval echo configure:7048: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7049 am_cv_langinfo_codeset=yes
7051 echo "configure: failed program was:" >&5
7052 cat conftest.$ac_ext >&5
7054 am_cv_langinfo_codeset=no
7060 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
7061 if test $am_cv_langinfo_codeset = yes; then
7062 cat >> confdefs.h <<\EOF
7063 #define HAVE_LANGINFO_CODESET 1
7068 if test $ac_cv_header_locale_h = yes; then
7069 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
7070 echo "configure:7071: checking for LC_MESSAGES" >&5
7071 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
7072 echo $ac_n "(cached) $ac_c" 1>&6
7074 cat > conftest.$ac_ext <<EOF
7075 #line 7076 "configure"
7076 #include "confdefs.h"
7082 if { (eval echo configure:7083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7084 am_cv_val_LC_MESSAGES=yes
7086 echo "configure: failed program was:" >&5
7087 cat conftest.$ac_ext >&5
7089 am_cv_val_LC_MESSAGES=no
7094 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
7095 if test $am_cv_val_LC_MESSAGES = yes; then
7096 cat >> confdefs.h <<\EOF
7097 #define HAVE_LC_MESSAGES 1
7102 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
7103 echo "configure:7104: checking whether NLS is requested" >&5
7104 # Check whether --enable-nls or --disable-nls was given.
7105 if test "${enable_nls+set}" = set; then
7106 enableval="$enable_nls"
7112 echo "$ac_t""$USE_NLS" 1>&6
7115 BUILD_INCLUDED_LIBINTL=no
7116 USE_INCLUDED_LIBINTL=no
7119 if test "$USE_NLS" = "yes"; then
7120 cat >> confdefs.h <<\EOF
7121 #define ENABLE_NLS 1
7124 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
7125 echo "configure:7126: checking whether included gettext is requested" >&5
7126 # Check whether --with-included-gettext or --without-included-gettext was given.
7127 if test "${with_included_gettext+set}" = set; then
7128 withval="$with_included_gettext"
7129 nls_cv_force_use_gnu_gettext=$withval
7131 nls_cv_force_use_gnu_gettext=no
7134 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
7136 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
7137 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
7143 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
7144 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
7145 echo "configure:7146: checking for libintl.h" >&5
7146 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7147 echo $ac_n "(cached) $ac_c" 1>&6
7149 cat > conftest.$ac_ext <<EOF
7150 #line 7151 "configure"
7151 #include "confdefs.h"
7152 #include <libintl.h>
7154 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7155 { (eval echo configure:7156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7156 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7157 if test -z "$ac_err"; then
7159 eval "ac_cv_header_$ac_safe=yes"
7162 echo "configure: failed program was:" >&5
7163 cat conftest.$ac_ext >&5
7165 eval "ac_cv_header_$ac_safe=no"
7169 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7170 echo "$ac_t""yes" 1>&6
7171 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
7172 echo "configure:7173: checking for GNU gettext in libc" >&5
7173 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
7174 echo $ac_n "(cached) $ac_c" 1>&6
7176 cat > conftest.$ac_ext <<EOF
7177 #line 7178 "configure"
7178 #include "confdefs.h"
7179 #include <libintl.h>
7180 extern int _nl_msg_cat_cntr;
7182 bindtextdomain ("", "");
7183 return (int) gettext ("") + _nl_msg_cat_cntr
7186 if { (eval echo configure:7187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7188 gt_cv_func_gnugettext1_libc=yes
7190 echo "configure: failed program was:" >&5
7191 cat conftest.$ac_ext >&5
7193 gt_cv_func_gnugettext1_libc=no
7198 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
7200 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
7201 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
7202 echo "configure:7203: checking for GNU gettext in libintl" >&5
7203 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
7204 echo $ac_n "(cached) $ac_c" 1>&6
7206 gt_save_LIBS="$LIBS"
7207 LIBS="$LIBS -lintl $LIBICONV"
7208 cat > conftest.$ac_ext <<EOF
7209 #line 7210 "configure"
7210 #include "confdefs.h"
7211 #include <libintl.h>
7212 extern int _nl_msg_cat_cntr;
7214 bindtextdomain ("", "");
7215 return (int) gettext ("") + _nl_msg_cat_cntr
7218 if { (eval echo configure:7219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7220 gt_cv_func_gnugettext1_libintl=yes
7222 echo "configure: failed program was:" >&5
7223 cat conftest.$ac_ext >&5
7225 gt_cv_func_gnugettext1_libintl=no
7228 LIBS="$gt_save_LIBS"
7231 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
7234 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7235 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7236 && test "$PACKAGE" != gettext; }; then
7237 cat >> confdefs.h <<\EOF
7238 #define HAVE_GETTEXT 1
7242 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7243 INTLLIBS="-lintl $LIBICONV"
7246 gt_save_LIBS="$LIBS"
7247 LIBS="$LIBS $INTLLIBS"
7248 for ac_func in dcgettext
7250 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7251 echo "configure:7252: checking for $ac_func" >&5
7252 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7253 echo $ac_n "(cached) $ac_c" 1>&6
7255 cat > conftest.$ac_ext <<EOF
7256 #line 7257 "configure"
7257 #include "confdefs.h"
7258 /* System header to define __stub macros and hopefully few prototypes,
7259 which can conflict with char $ac_func(); below. */
7261 /* Override any gcc2 internal prototype to avoid an error. */
7262 /* We use char because int might match the return type of a gcc2
7263 builtin and then its argument prototype would still apply. */
7268 /* The GNU C library defines this for functions which it implements
7269 to always fail with ENOSYS. Some functions are actually named
7270 something starting with __ and the normal name is an alias. */
7271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7279 if { (eval echo configure:7280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7281 eval "ac_cv_func_$ac_func=yes"
7283 echo "configure: failed program was:" >&5
7284 cat conftest.$ac_ext >&5
7286 eval "ac_cv_func_$ac_func=no"
7291 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7292 echo "$ac_t""yes" 1>&6
7293 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7294 cat >> confdefs.h <<EOF
7295 #define $ac_tr_func 1
7299 echo "$ac_t""no" 1>&6
7303 LIBS="$gt_save_LIBS"
7305 # Extract the first word of "msgfmt", so it can be a program name with args.
7306 set dummy msgfmt; ac_word=$2
7307 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7308 echo "configure:7309: checking for $ac_word" >&5
7309 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7310 echo $ac_n "(cached) $ac_c" 1>&6
7314 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7317 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7318 for ac_dir in $PATH; do
7319 test -z "$ac_dir" && ac_dir=.
7320 if test -f $ac_dir/$ac_word; then
7321 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
7322 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7328 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7332 MSGFMT="$ac_cv_path_MSGFMT"
7333 if test "$MSGFMT" != ":"; then
7334 echo "$ac_t""$MSGFMT" 1>&6
7336 echo "$ac_t""no" 1>&6
7339 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7340 set dummy gmsgfmt; ac_word=$2
7341 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7342 echo "configure:7343: checking for $ac_word" >&5
7343 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7344 echo $ac_n "(cached) $ac_c" 1>&6
7348 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7351 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7354 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7356 for ac_dir in $ac_dummy; do
7357 test -z "$ac_dir" && ac_dir=.
7358 if test -f $ac_dir/$ac_word; then
7359 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7364 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7368 GMSGFMT="$ac_cv_path_GMSGFMT"
7369 if test -n "$GMSGFMT"; then
7370 echo "$ac_t""$GMSGFMT" 1>&6
7372 echo "$ac_t""no" 1>&6
7376 # Extract the first word of "xgettext", so it can be a program name with args.
7377 set dummy xgettext; ac_word=$2
7378 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7379 echo "configure:7380: checking for $ac_word" >&5
7380 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7381 echo $ac_n "(cached) $ac_c" 1>&6
7385 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7388 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7389 for ac_dir in $PATH; do
7390 test -z "$ac_dir" && ac_dir=.
7391 if test -f $ac_dir/$ac_word; then
7392 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
7393 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7399 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7403 XGETTEXT="$ac_cv_path_XGETTEXT"
7404 if test "$XGETTEXT" != ":"; then
7405 echo "$ac_t""$XGETTEXT" 1>&6
7407 echo "$ac_t""no" 1>&6
7415 echo "$ac_t""no" 1>&6
7419 if test "$CATOBJEXT" = "NONE"; then
7420 nls_cv_use_gnu_gettext=yes
7424 if test "$nls_cv_use_gnu_gettext" = "yes"; then
7425 INTLOBJS="\$(GETTOBJS)"
7426 # Extract the first word of "msgfmt", so it can be a program name with args.
7427 set dummy msgfmt; ac_word=$2
7428 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7429 echo "configure:7430: checking for $ac_word" >&5
7430 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
7431 echo $ac_n "(cached) $ac_c" 1>&6
7435 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7438 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7439 for ac_dir in $PATH; do
7440 test -z "$ac_dir" && ac_dir=.
7441 if test -f $ac_dir/$ac_word; then
7442 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
7443 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
7449 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7453 MSGFMT="$ac_cv_path_MSGFMT"
7454 if test "$MSGFMT" != ":"; then
7455 echo "$ac_t""$MSGFMT" 1>&6
7457 echo "$ac_t""no" 1>&6
7460 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7461 set dummy gmsgfmt; ac_word=$2
7462 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7463 echo "configure:7464: checking for $ac_word" >&5
7464 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
7465 echo $ac_n "(cached) $ac_c" 1>&6
7469 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7472 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
7475 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7477 for ac_dir in $ac_dummy; do
7478 test -z "$ac_dir" && ac_dir=.
7479 if test -f $ac_dir/$ac_word; then
7480 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
7485 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7489 GMSGFMT="$ac_cv_path_GMSGFMT"
7490 if test -n "$GMSGFMT"; then
7491 echo "$ac_t""$GMSGFMT" 1>&6
7493 echo "$ac_t""no" 1>&6
7496 # Extract the first word of "xgettext", so it can be a program name with args.
7497 set dummy xgettext; ac_word=$2
7498 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7499 echo "configure:7500: checking for $ac_word" >&5
7500 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
7501 echo $ac_n "(cached) $ac_c" 1>&6
7505 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7508 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7509 for ac_dir in $PATH; do
7510 test -z "$ac_dir" && ac_dir=.
7511 if test -f $ac_dir/$ac_word; then
7512 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
7513 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
7519 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7523 XGETTEXT="$ac_cv_path_XGETTEXT"
7524 if test "$XGETTEXT" != ":"; then
7525 echo "$ac_t""$XGETTEXT" 1>&6
7527 echo "$ac_t""no" 1>&6
7531 BUILD_INCLUDED_LIBINTL=yes
7532 USE_INCLUDED_LIBINTL=yes
7534 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
7535 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
7538 if test "$GMSGFMT" != ":"; then
7539 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
7542 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
7547 if test "$XGETTEXT" != ":"; then
7548 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
7551 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
7561 if test "$PACKAGE" = gettext; then
7562 BUILD_INCLUDED_LIBINTL=yes
7565 for ac_prog in bison
7567 # Extract the first word of "$ac_prog", so it can be a program name with args.
7568 set dummy $ac_prog; ac_word=$2
7569 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7570 echo "configure:7571: checking for $ac_word" >&5
7571 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
7572 echo $ac_n "(cached) $ac_c" 1>&6
7574 if test -n "$INTLBISON"; then
7575 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
7577 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7579 for ac_dir in $ac_dummy; do
7580 test -z "$ac_dir" && ac_dir=.
7581 if test -f $ac_dir/$ac_word; then
7582 ac_cv_prog_INTLBISON="$ac_prog"
7589 INTLBISON="$ac_cv_prog_INTLBISON"
7590 if test -n "$INTLBISON"; then
7591 echo "$ac_t""$INTLBISON" 1>&6
7593 echo "$ac_t""no" 1>&6
7596 test -n "$INTLBISON" && break
7599 if test -z "$INTLBISON"; then
7602 echo $ac_n "checking version of bison""... $ac_c" 1>&6
7603 echo "configure:7604: checking version of bison" >&5
7604 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
7605 case $ac_prog_version in
7606 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
7607 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
7608 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
7609 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
7611 echo "$ac_t""$ac_prog_version" 1>&6
7613 if test $ac_verc_fail = yes; then
7617 for lang in $ALL_LINGUAS; do
7618 GMOFILES="$GMOFILES $lang.gmo"
7619 POFILES="$POFILES $lang.po"
7633 nls_cv_header_libgt=
7645 if test "x$CATOBJEXT" != "x"; then
7646 if test "x$ALL_LINGUAS" = "x"; then
7649 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
7650 echo "configure:7651: checking for catalogs to be installed" >&5
7652 for presentlang in $ALL_LINGUAS; do
7654 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
7655 # Use the presentlang catalog if desiredlang is
7656 # a. equal to presentlang, or
7657 # b. a variant of presentlang (because in this case,
7658 # presentlang can be used as a fallback for messages
7659 # which are not translated in the desiredlang catalog).
7660 case "$desiredlang" in
7661 "$presentlang"*) useit=yes;;
7664 if test $useit = yes; then
7665 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
7668 LINGUAS=$NEW_LINGUAS
7669 echo "$ac_t""$LINGUAS" 1>&6
7672 if test -n "$LINGUAS"; then
7673 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
7678 if test -n "$ac_aux_dir"; then
7679 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
7681 if test -z "$MKINSTALLDIRS"; then
7682 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
7686 INTL_LIBTOOL_SUFFIX_PREFIX=
7690 if test "$am_cv_func_iconv" != "yes"
7692 echo "configure: warning: Configuring without iconv support. See INSTALL for details" 1>&2
7695 for ac_hdr in iconv.h
7697 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7698 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7699 echo "configure:7700: checking for $ac_hdr" >&5
7700 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7701 echo $ac_n "(cached) $ac_c" 1>&6
7703 cat > conftest.$ac_ext <<EOF
7704 #line 7705 "configure"
7705 #include "confdefs.h"
7708 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7709 { (eval echo configure:7710: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7710 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7711 if test -z "$ac_err"; then
7713 eval "ac_cv_header_$ac_safe=yes"
7716 echo "configure: failed program was:" >&5
7717 cat conftest.$ac_ext >&5
7719 eval "ac_cv_header_$ac_safe=no"
7723 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7724 echo "$ac_t""yes" 1>&6
7725 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7726 cat >> confdefs.h <<EOF
7727 #define $ac_tr_hdr 1
7729 echo $ac_n "checking whether iconv.h defines iconv_t""... $ac_c" 1>&6
7730 echo "configure:7731: checking whether iconv.h defines iconv_t" >&5
7731 cat > conftest.$ac_ext <<EOF
7732 #line 7733 "configure"
7733 #include "confdefs.h"
7736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7737 egrep "typedef.*iconv_t" >/dev/null 2>&1; then
7739 echo "$ac_t""yes" 1>&6
7740 cat >> confdefs.h <<\EOF
7741 #define HAVE_ICONV_T_DEF 1
7746 echo "$ac_t""no" 1>&6
7751 echo "$ac_t""no" 1>&6
7756 echo $ac_n "checking whether this iconv is good enough""... $ac_c" 1>&6
7757 echo "configure:7758: checking whether this iconv is good enough" >&5
7758 if eval "test \"`echo '$''{'mutt_cv_iconv_good'+set}'`\" = set"; then
7759 echo $ac_n "(cached) $ac_c" 1>&6
7761 mutt_save_LIBS="$LIBS"
7762 LIBS="$LIBS $LIBICONV"
7763 if test "$cross_compiling" = yes; then
7764 mutt_cv_iconv_good=yes
7766 cat > conftest.$ac_ext <<EOF
7767 #line 7768 "configure"
7768 #include "confdefs.h"
7777 ob = buf, obl = sizeof(buf);
7778 return ((cd = iconv_open("UTF-8", "UTF-8")) != (iconv_t)(-1) &&
7779 (iconv(cd, 0, 0, &ob, &obl) ||
7780 !(ob == buf && obl == sizeof(buf)) ||
7785 if { (eval echo configure:7786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7787 mutt_cv_iconv_good=yes
7789 echo "configure: failed program was:" >&5
7790 cat conftest.$ac_ext >&5
7792 mutt_cv_iconv_good=no
7797 LIBS="$mutt_save_LIBS"
7800 echo "$ac_t""$mutt_cv_iconv_good" 1>&6
7801 if test "$mutt_cv_iconv_good" = no; then
7802 { echo "configure: error: Try using libiconv instead" 1>&2; exit 1; }
7805 echo $ac_n "checking whether iconv is non-transcribing""... $ac_c" 1>&6
7806 echo "configure:7807: checking whether iconv is non-transcribing" >&5
7807 if eval "test \"`echo '$''{'mutt_cv_iconv_nontrans'+set}'`\" = set"; then
7808 echo $ac_n "(cached) $ac_c" 1>&6
7810 mutt_save_LIBS="$LIBS"
7811 LIBS="$LIBS $LIBICONV"
7812 if test "$cross_compiling" = yes; then
7813 mutt_cv_iconv_nontrans=no
7815 cat > conftest.$ac_ext <<EOF
7816 #line 7817 "configure"
7817 #include "confdefs.h"
7827 const char *s = "\304\211";
7829 ib = s, ibl = 2, ob = t, obl = 3;
7830 return ((cd = iconv_open("UTF-8", "UTF-8")) == (iconv_t)(-1) ||
7831 iconv(cd, &ib, &ibl, &ob, &obl));
7835 if { (eval echo configure:7836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
7837 mutt_cv_iconv_nontrans=no
7839 echo "configure: failed program was:" >&5
7840 cat conftest.$ac_ext >&5
7842 mutt_cv_iconv_nontrans=yes
7847 LIBS="$mutt_save_LIBS"
7850 echo "$ac_t""$mutt_cv_iconv_nontrans" 1>&6
7851 if test "$mutt_cv_iconv_nontrans" = yes; then
7852 cat >> confdefs.h <<\EOF
7853 #define ICONV_NONTRANS 1
7857 cat >> confdefs.h <<\EOF
7858 #define ICONV_NONTRANS 0
7863 CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/intl"
7865 if test "$BUILD_INCLUDED_LIBINTL" = "yes"; then
7866 cat >> confdefs.h <<\EOF
7867 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
7871 for ac_func in bind_textdomain_codeset
7873 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7874 echo "configure:7875: checking for $ac_func" >&5
7875 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7876 echo $ac_n "(cached) $ac_c" 1>&6
7878 cat > conftest.$ac_ext <<EOF
7879 #line 7880 "configure"
7880 #include "confdefs.h"
7881 /* System header to define __stub macros and hopefully few prototypes,
7882 which can conflict with char $ac_func(); below. */
7884 /* Override any gcc2 internal prototype to avoid an error. */
7885 /* We use char because int might match the return type of a gcc2
7886 builtin and then its argument prototype would still apply. */
7891 /* The GNU C library defines this for functions which it implements
7892 to always fail with ENOSYS. Some functions are actually named
7893 something starting with __ and the normal name is an alias. */
7894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7902 if { (eval echo configure:7903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7904 eval "ac_cv_func_$ac_func=yes"
7906 echo "configure: failed program was:" >&5
7907 cat conftest.$ac_ext >&5
7909 eval "ac_cv_func_$ac_func=no"
7914 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7915 echo "$ac_t""yes" 1>&6
7916 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7917 cat >> confdefs.h <<EOF
7918 #define $ac_tr_func 1
7922 echo "$ac_t""no" 1>&6
7931 for ac_hdr in wchar.h
7933 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7934 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7935 echo "configure:7936: checking for $ac_hdr" >&5
7936 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7937 echo $ac_n "(cached) $ac_c" 1>&6
7939 cat > conftest.$ac_ext <<EOF
7940 #line 7941 "configure"
7941 #include "confdefs.h"
7944 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7945 { (eval echo configure:7946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7946 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7947 if test -z "$ac_err"; then
7949 eval "ac_cv_header_$ac_safe=yes"
7952 echo "configure: failed program was:" >&5
7953 cat conftest.$ac_ext >&5
7955 eval "ac_cv_header_$ac_safe=no"
7959 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7960 echo "$ac_t""yes" 1>&6
7961 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7962 cat >> confdefs.h <<EOF
7963 #define $ac_tr_hdr 1
7967 echo "$ac_t""no" 1>&6
7972 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
7973 echo "configure:7974: checking for wchar_t" >&5
7974 if eval "test \"`echo '$''{'mutt_cv_wchar_t'+set}'`\" = set"; then
7975 echo $ac_n "(cached) $ac_c" 1>&6
7977 cat > conftest.$ac_ext <<EOF
7978 #line 7979 "configure"
7979 #include "confdefs.h"
7988 wchar_t wc; return 0;
7991 if { (eval echo configure:7992: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7995 echo "configure: failed program was:" >&5
7996 cat conftest.$ac_ext >&5
8003 echo "$ac_t""$mutt_cv_wchar_t" 1>&6
8005 if test "$mutt_cv_wchar_t" = no; then
8006 cat >> confdefs.h <<\EOF
8012 echo $ac_n "checking for wint_t""... $ac_c" 1>&6
8013 echo "configure:8014: checking for wint_t" >&5
8014 if eval "test \"`echo '$''{'mutt_cv_wint_t'+set}'`\" = set"; then
8015 echo $ac_n "(cached) $ac_c" 1>&6
8017 cat > conftest.$ac_ext <<EOF
8018 #line 8019 "configure"
8019 #include "confdefs.h"
8028 wint_t wc; return 0;
8031 if { (eval echo configure:8032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8035 echo "configure: failed program was:" >&5
8036 cat conftest.$ac_ext >&5
8043 echo "$ac_t""$mutt_cv_wint_t" 1>&6
8045 if test "$mutt_cv_wint_t" = no; then
8046 cat >> confdefs.h <<\EOF
8052 for ac_hdr in wctype.h
8054 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8055 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8056 echo "configure:8057: checking for $ac_hdr" >&5
8057 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8058 echo $ac_n "(cached) $ac_c" 1>&6
8060 cat > conftest.$ac_ext <<EOF
8061 #line 8062 "configure"
8062 #include "confdefs.h"
8065 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8066 { (eval echo configure:8067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8067 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8068 if test -z "$ac_err"; then
8070 eval "ac_cv_header_$ac_safe=yes"
8073 echo "configure: failed program was:" >&5
8074 cat conftest.$ac_ext >&5
8076 eval "ac_cv_header_$ac_safe=no"
8080 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8081 echo "$ac_t""yes" 1>&6
8082 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8083 cat >> confdefs.h <<EOF
8084 #define $ac_tr_hdr 1
8088 echo "$ac_t""no" 1>&6
8092 for ac_func in iswalnum iswalpha iswcntrl iswdigit
8094 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8095 echo "configure:8096: checking for $ac_func" >&5
8096 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8097 echo $ac_n "(cached) $ac_c" 1>&6
8099 cat > conftest.$ac_ext <<EOF
8100 #line 8101 "configure"
8101 #include "confdefs.h"
8102 /* System header to define __stub macros and hopefully few prototypes,
8103 which can conflict with char $ac_func(); below. */
8105 /* Override any gcc2 internal prototype to avoid an error. */
8106 /* We use char because int might match the return type of a gcc2
8107 builtin and then its argument prototype would still apply. */
8112 /* The GNU C library defines this for functions which it implements
8113 to always fail with ENOSYS. Some functions are actually named
8114 something starting with __ and the normal name is an alias. */
8115 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8123 if { (eval echo configure:8124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8125 eval "ac_cv_func_$ac_func=yes"
8127 echo "configure: failed program was:" >&5
8128 cat conftest.$ac_ext >&5
8130 eval "ac_cv_func_$ac_func=no"
8135 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8136 echo "$ac_t""yes" 1>&6
8137 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8138 cat >> confdefs.h <<EOF
8139 #define $ac_tr_func 1
8143 echo "$ac_t""no" 1>&6
8147 for ac_func in iswgraph iswlower iswprint iswpunct iswspace iswupper
8149 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8150 echo "configure:8151: checking for $ac_func" >&5
8151 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8152 echo $ac_n "(cached) $ac_c" 1>&6
8154 cat > conftest.$ac_ext <<EOF
8155 #line 8156 "configure"
8156 #include "confdefs.h"
8157 /* System header to define __stub macros and hopefully few prototypes,
8158 which can conflict with char $ac_func(); below. */
8160 /* Override any gcc2 internal prototype to avoid an error. */
8161 /* We use char because int might match the return type of a gcc2
8162 builtin and then its argument prototype would still apply. */
8167 /* The GNU C library defines this for functions which it implements
8168 to always fail with ENOSYS. Some functions are actually named
8169 something starting with __ and the normal name is an alias. */
8170 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8178 if { (eval echo configure:8179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8180 eval "ac_cv_func_$ac_func=yes"
8182 echo "configure: failed program was:" >&5
8183 cat conftest.$ac_ext >&5
8185 eval "ac_cv_func_$ac_func=no"
8190 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8191 echo "$ac_t""yes" 1>&6
8192 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8193 cat >> confdefs.h <<EOF
8194 #define $ac_tr_func 1
8198 echo "$ac_t""no" 1>&6
8202 for ac_func in iswxdigit towupper towlower
8204 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8205 echo "configure:8206: checking for $ac_func" >&5
8206 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8207 echo $ac_n "(cached) $ac_c" 1>&6
8209 cat > conftest.$ac_ext <<EOF
8210 #line 8211 "configure"
8211 #include "confdefs.h"
8212 /* System header to define __stub macros and hopefully few prototypes,
8213 which can conflict with char $ac_func(); below. */
8215 /* Override any gcc2 internal prototype to avoid an error. */
8216 /* We use char because int might match the return type of a gcc2
8217 builtin and then its argument prototype would still apply. */
8222 /* The GNU C library defines this for functions which it implements
8223 to always fail with ENOSYS. Some functions are actually named
8224 something starting with __ and the normal name is an alias. */
8225 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8233 if { (eval echo configure:8234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8235 eval "ac_cv_func_$ac_func=yes"
8237 echo "configure: failed program was:" >&5
8238 cat conftest.$ac_ext >&5
8240 eval "ac_cv_func_$ac_func=no"
8245 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8246 echo "$ac_t""yes" 1>&6
8247 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8248 cat >> confdefs.h <<EOF
8249 #define $ac_tr_func 1
8253 echo "$ac_t""no" 1>&6
8258 echo $ac_n "checking for mbstate_t""... $ac_c" 1>&6
8259 echo "configure:8260: checking for mbstate_t" >&5
8260 if eval "test \"`echo '$''{'mutt_cv_mbstate_t'+set}'`\" = set"; then
8261 echo $ac_n "(cached) $ac_c" 1>&6
8263 cat > conftest.$ac_ext <<EOF
8264 #line 8265 "configure"
8265 #include "confdefs.h"
8274 mbstate_t s; return 0;
8277 if { (eval echo configure:8278: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8279 mutt_cv_mbstate_t=yes
8281 echo "configure: failed program was:" >&5
8282 cat conftest.$ac_ext >&5
8284 mutt_cv_mbstate_t=no
8289 echo "$ac_t""$mutt_cv_mbstate_t" 1>&6
8291 if test "$mutt_cv_mbstate_t" = no; then
8292 cat >> confdefs.h <<\EOF
8293 #define mbstate_t int
8299 # Check whether --with-wc-funcs or --without-wc-funcs was given.
8300 if test "${with_wc_funcs+set}" = set; then
8301 withval="$with_wc_funcs"
8306 if test "$wc_funcs" != yes -a "$wc_funcs" != no; then
8307 echo $ac_n "checking for wchar_t functions""... $ac_c" 1>&6
8308 echo "configure:8309: checking for wchar_t functions" >&5
8309 if eval "test \"`echo '$''{'mutt_cv_wc_funcs'+set}'`\" = set"; then
8310 echo $ac_n "(cached) $ac_c" 1>&6
8313 cat > conftest.$ac_ext <<EOF
8314 #line 8315 "configure"
8315 #include "confdefs.h"
8317 #define _XOPEN_SOURCE 1
8320 #ifdef HAVE_WCTYPE_H
8327 mbrtowc(0, 0, 0, 0); wctomb(0, 0); wcwidth(0);
8328 iswprint(0); iswspace(0); towlower(0); towupper(0); iswalnum(0)
8331 if { (eval echo configure:8332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8333 mutt_cv_wc_funcs=yes
8335 echo "configure: failed program was:" >&5
8336 cat conftest.$ac_ext >&5
8341 echo "$ac_t""$mutt_cv_wc_funcs" 1>&6
8342 wc_funcs=$mutt_cv_wc_funcs
8345 if test $wc_funcs = yes; then
8346 cat >> confdefs.h <<\EOF
8347 #define HAVE_WC_FUNCS 1
8352 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
8353 echo "configure:8354: checking for nl_langinfo and CODESET" >&5
8354 if eval "test \"`echo '$''{'mutt_cv_langinfo_codeset'+set}'`\" = set"; then
8355 echo $ac_n "(cached) $ac_c" 1>&6
8357 cat > conftest.$ac_ext <<EOF
8358 #line 8359 "configure"
8359 #include "confdefs.h"
8360 #include <langinfo.h>
8362 char* cs = nl_langinfo(CODESET);
8365 if { (eval echo configure:8366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8367 mutt_cv_langinfo_codeset=yes
8369 echo "configure: failed program was:" >&5
8370 cat conftest.$ac_ext >&5
8372 mutt_cv_langinfo_codeset=no
8377 echo "$ac_t""$mutt_cv_langinfo_codeset" 1>&6
8378 if test $mutt_cv_langinfo_codeset = yes; then
8379 cat >> confdefs.h <<\EOF
8380 #define HAVE_LANGINFO_CODESET 1
8385 echo $ac_n "checking for nl_langinfo and YESEXPR""... $ac_c" 1>&6
8386 echo "configure:8387: checking for nl_langinfo and YESEXPR" >&5
8387 if eval "test \"`echo '$''{'mutt_cv_langinfo_yesexpr'+set}'`\" = set"; then
8388 echo $ac_n "(cached) $ac_c" 1>&6
8390 cat > conftest.$ac_ext <<EOF
8391 #line 8392 "configure"
8392 #include "confdefs.h"
8393 #include <langinfo.h>
8395 char* cs = nl_langinfo(YESEXPR);
8398 if { (eval echo configure:8399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8400 mutt_cv_langinfo_yesexpr=yes
8402 echo "configure: failed program was:" >&5
8403 cat conftest.$ac_ext >&5
8405 mutt_cv_langinfo_yesexpr=no
8410 echo "$ac_t""$mutt_cv_langinfo_yesexpr" 1>&6
8411 if test $mutt_cv_langinfo_yesexpr = yes; then
8412 cat >> confdefs.h <<\EOF
8413 #define HAVE_LANGINFO_YESEXPR 1
8419 # Check whether --with-libesmtp or --without-libesmtp was given.
8420 if test "${with_libesmtp+set}" = set; then
8421 withval="$with_libesmtp"
8422 if test "$with_libesmtp" != "no"
8424 mutt_libesmtp_check_path="$PATH"
8426 if test "$with_libesmtp" != "yes"
8428 mutt_libesmtp_check_path="$tmp_path:$withval/bin"
8431 # Extract the first word of "libesmtp-config", so it can be a program name with args.
8432 set dummy libesmtp-config; ac_word=$2
8433 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8434 echo "configure:8435: checking for $ac_word" >&5
8435 if eval "test \"`echo '$''{'ac_cv_path_mutt_libesmtp_config_path'+set}'`\" = set"; then
8436 echo $ac_n "(cached) $ac_c" 1>&6
8438 case "$mutt_libesmtp_config_path" in
8440 ac_cv_path_mutt_libesmtp_config_path="$mutt_libesmtp_config_path" # Let the user override the test with a path.
8443 ac_cv_path_mutt_libesmtp_config_path="$mutt_libesmtp_config_path" # Let the user override the test with a dos path.
8446 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8447 ac_dummy="$mutt_libesmtp_check_path"
8448 for ac_dir in $ac_dummy; do
8449 test -z "$ac_dir" && ac_dir=.
8450 if test -f $ac_dir/$ac_word; then
8451 ac_cv_path_mutt_libesmtp_config_path="$ac_dir/$ac_word"
8456 test -z "$ac_cv_path_mutt_libesmtp_config_path" && ac_cv_path_mutt_libesmtp_config_path="no"
8460 mutt_libesmtp_config_path="$ac_cv_path_mutt_libesmtp_config_path"
8461 if test -n "$mutt_libesmtp_config_path"; then
8462 echo "$ac_t""$mutt_libesmtp_config_path" 1>&6
8464 echo "$ac_t""no" 1>&6
8468 if test "$mutt_libesmtp_config_path" = "no"
8470 { echo "configure: error: libesmtp-config binary not found." 1>&2; exit 1; }
8473 mutt_libesmtp_cflags=`$mutt_libesmtp_config_path --cflags`
8474 mutt_libesmtp_libs=`$mutt_libesmtp_config_path --libs`
8476 temp_CFLAGS="$CFLAGS"
8477 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
8478 ac_safe=`echo "libesmtp.h" | sed 'y%./+-%__p_%'`
8479 echo $ac_n "checking for libesmtp.h""... $ac_c" 1>&6
8480 echo "configure:8481: checking for libesmtp.h" >&5
8481 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8482 echo $ac_n "(cached) $ac_c" 1>&6
8484 cat > conftest.$ac_ext <<EOF
8485 #line 8486 "configure"
8486 #include "confdefs.h"
8487 #include <libesmtp.h>
8489 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8490 { (eval echo configure:8491: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8491 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8492 if test -z "$ac_err"; then
8494 eval "ac_cv_header_$ac_safe=yes"
8497 echo "configure: failed program was:" >&5
8498 cat conftest.$ac_ext >&5
8500 eval "ac_cv_header_$ac_safe=no"
8504 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8505 echo "$ac_t""yes" 1>&6
8508 echo "$ac_t""no" 1>&6
8509 { echo "configure: error: Could not find libesmtp.h" 1>&2; exit 1; }
8512 CFLAGS="$temp_CFLAGS"
8514 temp_CFLAGS="$CFLAGS"
8516 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
8517 LIBS="$LIBS $mutt_libesmtp_libs"
8518 echo $ac_n "checking for smtp_create_session in -lesmtp""... $ac_c" 1>&6
8519 echo "configure:8520: checking for smtp_create_session in -lesmtp" >&5
8520 ac_lib_var=`echo esmtp'_'smtp_create_session | sed 'y%./+-%__p_%'`
8521 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8522 echo $ac_n "(cached) $ac_c" 1>&6
8524 ac_save_LIBS="$LIBS"
8525 LIBS="-lesmtp $LIBS"
8526 cat > conftest.$ac_ext <<EOF
8527 #line 8528 "configure"
8528 #include "confdefs.h"
8529 /* Override any gcc2 internal prototype to avoid an error. */
8530 /* We use char because int might match the return type of a gcc2
8531 builtin and then its argument prototype would still apply. */
8532 char smtp_create_session();
8535 smtp_create_session()
8538 if { (eval echo configure:8539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8540 eval "ac_cv_lib_$ac_lib_var=yes"
8542 echo "configure: failed program was:" >&5
8543 cat conftest.$ac_ext >&5
8545 eval "ac_cv_lib_$ac_lib_var=no"
8548 LIBS="$ac_save_LIBS"
8551 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8552 echo "$ac_t""yes" 1>&6
8553 ac_tr_lib=HAVE_LIB`echo esmtp | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8554 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8555 cat >> confdefs.h <<EOF
8556 #define $ac_tr_lib 1
8559 LIBS="-lesmtp $LIBS"
8562 echo "$ac_t""no" 1>&6
8563 { echo "configure: error: Could not find libesmtp" 1>&2; exit 1; }
8566 CFLAGS="$temp_CFLAGS"
8576 if test x$use_libesmtp = xyes; then
8577 CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
8578 MUTTLIBS="$MUTTLIBS $mutt_libesmtp_libs"
8579 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_libesmtp.o"
8581 cat >> confdefs.h <<\EOF
8582 #define USE_LIBESMTP 1
8588 cat > confcache <<\EOF
8589 # This file is a shell script that caches the results of configure
8590 # tests run on this system so they can be shared between configure
8591 # scripts and configure runs. It is not useful on other systems.
8592 # If it contains results you don't want to keep, you may remove or edit it.
8594 # By default, configure uses ./config.cache as the cache file,
8595 # creating it if it does not exist already. You can give configure
8596 # the --cache-file=FILE option to use a different cache file; that is
8597 # what configure does when it calls configure scripts in
8598 # subdirectories, so they share the cache.
8599 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8600 # config.status only pays attention to the cache file if you give it the
8601 # --recheck option to rerun configure.
8604 # The following way of writing the cache mishandles newlines in values,
8605 # but we know of no workaround that is simple, portable, and efficient.
8606 # So, don't put newlines in cache variables' values.
8607 # Ultrix sh set writes to stderr and can't be redirected directly,
8608 # and sets the high bit in the cache file unless we assign to the vars.
8610 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8612 # `set' does not quote correctly, so add quotes (double-quote substitution
8613 # turns \\\\ into \\, and sed turns \\ into \).
8615 -e "s/'/'\\\\''/g" \
8616 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8619 # `set' quotes correctly as required by POSIX, so do not add quotes.
8620 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8623 if cmp -s $cache_file confcache; then
8626 if test -w $cache_file; then
8627 echo "updating cache $cache_file"
8628 cat confcache > $cache_file
8630 echo "not updating unwritable cache $cache_file"
8635 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8637 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8638 # Let make expand exec_prefix.
8639 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8641 # Any assignment to VPATH causes Sun make to only execute
8642 # the first set of double-colon rules, so remove it if not needed.
8643 # If there is a colon in the path, we need to keep it.
8644 if test "x$srcdir" = x.; then
8645 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
8648 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8650 DEFS=-DHAVE_CONFIG_H
8652 # Without the "./", some shells look in PATH for config.status.
8653 : ${CONFIG_STATUS=./config.status}
8655 echo creating $CONFIG_STATUS
8656 rm -f $CONFIG_STATUS
8657 cat > $CONFIG_STATUS <<EOF
8659 # Generated automatically by configure.
8660 # Run this file to recreate the current configuration.
8661 # This directory was configured as follows,
8662 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8664 # $0 $ac_configure_args
8666 # Compiler output produced by configure, useful for debugging
8667 # configure, is in ./config.log if it exists.
8669 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8672 case "\$ac_option" in
8673 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8674 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8675 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8676 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8677 echo "$CONFIG_STATUS generated by autoconf version 2.13"
8679 -help | --help | --hel | --he | --h)
8680 echo "\$ac_cs_usage"; exit 0 ;;
8681 *) echo "\$ac_cs_usage"; exit 1 ;;
8685 ac_given_srcdir=$srcdir
8686 ac_given_INSTALL="$INSTALL"
8688 trap 'rm -fr `echo "Makefile intl/Makefile m4/Makefile
8689 po/Makefile.in doc/Makefile contrib/Makefile
8693 doc/instdoc.sh config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8695 cat >> $CONFIG_STATUS <<EOF
8697 # Protect against being on the right side of a sed subst in config.status.
8698 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8699 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8703 s%@CFLAGS@%$CFLAGS%g
8704 s%@CPPFLAGS@%$CPPFLAGS%g
8705 s%@CXXFLAGS@%$CXXFLAGS%g
8706 s%@FFLAGS@%$FFLAGS%g
8708 s%@LDFLAGS@%$LDFLAGS%g
8710 s%@exec_prefix@%$exec_prefix%g
8711 s%@prefix@%$prefix%g
8712 s%@program_transform_name@%$program_transform_name%g
8713 s%@bindir@%$bindir%g
8714 s%@sbindir@%$sbindir%g
8715 s%@libexecdir@%$libexecdir%g
8716 s%@datadir@%$datadir%g
8717 s%@sysconfdir@%$sysconfdir%g
8718 s%@sharedstatedir@%$sharedstatedir%g
8719 s%@localstatedir@%$localstatedir%g
8720 s%@libdir@%$libdir%g
8721 s%@includedir@%$includedir%g
8722 s%@oldincludedir@%$oldincludedir%g
8723 s%@infodir@%$infodir%g
8724 s%@mandir@%$mandir%g
8725 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8726 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8727 s%@INSTALL_DATA@%$INSTALL_DATA%g
8728 s%@PACKAGE@%$PACKAGE%g
8729 s%@VERSION@%$VERSION%g
8730 s%@ACLOCAL@%$ACLOCAL%g
8731 s%@AUTOCONF@%$AUTOCONF%g
8732 s%@AUTOMAKE@%$AUTOMAKE%g
8733 s%@AUTOHEADER@%$AUTOHEADER%g
8734 s%@MAKEINFO@%$MAKEINFO%g
8735 s%@SET_MAKE@%$SET_MAKE%g
8737 s%@host_alias@%$host_alias%g
8738 s%@host_cpu@%$host_cpu%g
8739 s%@host_vendor@%$host_vendor%g
8740 s%@host_os@%$host_os%g
8744 s%@ANSI2KNR@%$ANSI2KNR%g
8745 s%@RANLIB@%$RANLIB%g
8747 s%@build_alias@%$build_alias%g
8748 s%@build_cpu@%$build_cpu%g
8749 s%@build_vendor@%$build_vendor%g
8750 s%@build_os@%$build_os%g
8755 s%@DEBUGGER@%$DEBUGGER%g
8756 s%@SENDMAIL@%$SENDMAIL%g
8758 s%@PGPAUX_TARGET@%$PGPAUX_TARGET%g
8759 s%@SMIMEAUX_TARGET@%$SMIMEAUX_TARGET%g
8760 s%@SUBVERSION@%$SUBVERSION%g
8761 s%@ISPELL@%$ISPELL%g
8762 s%@LIBOBJS@%$LIBOBJS%g
8763 s%@DOTLOCK_TARGET@%$DOTLOCK_TARGET%g
8764 s%@docdir@%$docdir%g
8765 s%@DOTLOCK_GROUP@%$DOTLOCK_GROUP%g
8766 s%@DOTLOCK_PERMISSION@%$DOTLOCK_PERMISSION%g
8767 s%@BUILD_IMAP_TRUE@%$BUILD_IMAP_TRUE%g
8768 s%@BUILD_IMAP_FALSE@%$BUILD_IMAP_FALSE%g
8769 s%@KRB5CFGPATH@%$KRB5CFGPATH%g
8770 s%@USE_GSS_TRUE@%$USE_GSS_TRUE%g
8771 s%@USE_GSS_FALSE@%$USE_GSS_FALSE%g
8772 s%@USE_SSL_TRUE@%$USE_SSL_TRUE%g
8773 s%@USE_SSL_FALSE@%$USE_SSL_FALSE%g
8774 s%@USE_SASL_TRUE@%$USE_SASL_TRUE%g
8775 s%@USE_SASL_FALSE@%$USE_SASL_FALSE%g
8776 s%@MUTTLIBS@%$MUTTLIBS%g
8777 s%@MUTT_LIB_OBJECTS@%$MUTT_LIB_OBJECTS%g
8778 s%@LIBIMAP@%$LIBIMAP%g
8779 s%@LIBIMAPDEPS@%$LIBIMAPDEPS%g
8780 s%@ALLOCA@%$ALLOCA%g
8781 s%@GLIBC21@%$GLIBC21%g
8782 s%@LIBICONV@%$LIBICONV%g
8783 s%@USE_NLS@%$USE_NLS%g
8784 s%@MSGFMT@%$MSGFMT%g
8785 s%@GMSGFMT@%$GMSGFMT%g
8786 s%@XGETTEXT@%$XGETTEXT%g
8787 s%@INTLBISON@%$INTLBISON%g
8788 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
8789 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
8790 s%@CATALOGS@%$CATALOGS%g
8791 s%@CATOBJEXT@%$CATOBJEXT%g
8792 s%@GMOFILES@%$GMOFILES%g
8793 s%@INTLLIBS@%$INTLLIBS%g
8794 s%@INTLOBJS@%$INTLOBJS%g
8795 s%@POFILES@%$POFILES%g
8797 s%@DATADIRNAME@%$DATADIRNAME%g
8798 s%@INSTOBJEXT@%$INSTOBJEXT%g
8799 s%@GENCAT@%$GENCAT%g
8800 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
8801 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
8802 s%@mutt_libesmtp_config_path@%$mutt_libesmtp_config_path%g
8807 cat >> $CONFIG_STATUS <<\EOF
8809 # Split the substitutions into bite-sized pieces for seds with
8810 # small command number limits, like on Digital OSF/1 and HP-UX.
8811 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
8812 ac_file=1 # Number of current file.
8813 ac_beg=1 # First line for current file.
8814 ac_end=$ac_max_sed_cmds # Line after last line for current file.
8817 while $ac_more_lines; do
8818 if test $ac_beg -gt 1; then
8819 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
8821 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
8823 if test ! -s conftest.s$ac_file; then
8825 rm -f conftest.s$ac_file
8827 if test -z "$ac_sed_cmds"; then
8828 ac_sed_cmds="sed -f conftest.s$ac_file"
8830 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
8832 ac_file=`expr $ac_file + 1`
8834 ac_end=`expr $ac_end + $ac_max_sed_cmds`
8837 if test -z "$ac_sed_cmds"; then
8842 cat >> $CONFIG_STATUS <<EOF
8844 CONFIG_FILES=\${CONFIG_FILES-"Makefile intl/Makefile m4/Makefile
8845 po/Makefile.in doc/Makefile contrib/Makefile
8851 cat >> $CONFIG_STATUS <<\EOF
8852 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
8853 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8855 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8856 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8857 *) ac_file_in="${ac_file}.in" ;;
8860 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8862 # Remove last slash and all that follows it. Not all systems have dirname.
8863 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8864 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8865 # The file is in a subdirectory.
8866 test ! -d "$ac_dir" && mkdir "$ac_dir"
8867 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
8868 # A "../" for each directory in $ac_dir_suffix.
8869 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8871 ac_dir_suffix= ac_dots=
8874 case "$ac_given_srcdir" in
8876 if test -z "$ac_dots"; then top_srcdir=.
8877 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8878 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
8880 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8881 top_srcdir="$ac_dots$ac_given_srcdir" ;;
8884 case "$ac_given_INSTALL" in
8885 [/$]*) INSTALL="$ac_given_INSTALL" ;;
8886 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
8889 echo creating "$ac_file"
8891 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8893 *Makefile*) ac_comsub="1i\\
8894 # $configure_input" ;;
8898 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8900 s%@configure_input@%$configure_input%g
8901 s%@srcdir@%$srcdir%g
8902 s%@top_srcdir@%$top_srcdir%g
8903 s%@INSTALL@%$INSTALL%g
8904 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8908 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8909 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8911 # ac_d sets the value in "#define NAME VALUE" lines.
8912 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8913 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
8916 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8917 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8918 ac_uB='\([ ]\)%\1#\2define\3'
8921 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8922 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8923 ac_eB='$%\1#\2define\3'
8927 if test "${CONFIG_HEADERS+set}" != set; then
8929 cat >> $CONFIG_STATUS <<EOF
8930 CONFIG_HEADERS="config.h"
8932 cat >> $CONFIG_STATUS <<\EOF
8934 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
8935 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8937 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
8938 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
8939 *) ac_file_in="${ac_file}.in" ;;
8942 echo creating $ac_file
8944 rm -f conftest.frag conftest.in conftest.out
8945 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8946 cat $ac_file_inputs > conftest.in
8950 # Transform confdefs.h into a sed script conftest.vals that substitutes
8951 # the proper values into config.h.in to produce config.h. And first:
8952 # Protect against being on the right side of a sed subst in config.status.
8953 # Protect against being in an unquoted here document in config.status.
8955 cat > conftest.hdr <<\EOF
8958 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8962 sed -n -f conftest.hdr confdefs.h > conftest.vals
8965 # This sed command replaces #undef with comments. This is necessary, for
8966 # example, in the case of _POSIX_SOURCE, which is predefined and required
8967 # on some systems where configure will not decide to define it.
8968 cat >> conftest.vals <<\EOF
8969 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8972 # Break up conftest.vals because some shells have a limit on
8973 # the size of here documents, and old seds have small limits too.
8978 ac_lines=`grep -c . conftest.vals`
8979 # grep -c gives empty output for an empty file on some AIX systems.
8980 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8981 # Write a limited-size here document to conftest.frag.
8982 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8983 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8985 sed -f conftest.frag conftest.in > conftest.out
8987 mv conftest.out conftest.in
8989 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8991 mv conftest.tail conftest.vals
8995 cat >> $CONFIG_STATUS <<\EOF
8996 rm -f conftest.frag conftest.h
8997 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8998 cat conftest.in >> conftest.h
9000 if cmp -s $ac_file conftest.h 2>/dev/null; then
9001 echo "$ac_file is unchanged"
9004 # Remove last slash and all that follows it. Not all systems have dirname.
9005 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
9006 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9007 # The file is in a subdirectory.
9008 test ! -d "$ac_dir" && mkdir "$ac_dir"
9011 mv conftest.h $ac_file
9016 cat >> $CONFIG_STATUS <<EOF
9021 cat >> $CONFIG_STATUS <<\EOF
9022 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
9023 for ac_file in $CONFIG_FILES; do
9024 # Support "outfile[:infile[:infile...]]"
9026 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9028 # PO directories have a Makefile.in generated from Makefile.in.in.
9029 case "$ac_file" in */Makefile.in)
9030 # Adjust a relative srcdir.
9031 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9032 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9033 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9034 # In autoconf-2.13 it is called $ac_given_srcdir.
9035 # In autoconf-2.50 it is called $srcdir.
9036 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9037 case "$ac_given_srcdir" in
9038 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9039 /*) top_srcdir="$ac_given_srcdir" ;;
9040 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9042 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9043 rm -f "$ac_dir/POTFILES"
9044 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9045 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
9046 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9047 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
9055 chmod +x $CONFIG_STATUS
9056 rm -fr confdefs* $ac_clean_files
9057 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1