3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --disable-pgp Disable PGP support"
17 --disable-smime Disable SMIME support"
19 --with-mixmaster[=PATH] Include Mixmaster support"
21 --with-slang[=DIR] Use S-Lang instead of ncurses"
23 --with-curses=DIR Where ncurses is installed "
25 --with-regex Use the GNU regex library "
27 --with-homespool[=FILE] File in user's directory where new mail is spooled"
29 --with-mailpath=DIR Directory where spool mailboxes are located"
31 --enable-external-dotlock Force use of an external dotlock program"
33 --with-docdir=PATH Specify where to put the documentation"
35 --with-domain=DOMAIN Specify your DNS domain name"
37 --enable-pop Enable POP3 support"
39 --enable-imap Enable IMAP support"
41 --enable-nntp Enable NNTP support"
43 --with-gss[=PFX] Compile in GSSAPI authentication for IMAP"
45 --with-ssl[=PFX] Compile in SSL support for POP/IMAP"
47 --with-gnutls[=PFX] Compile in GNU TLS support for POP/IMAP"
49 --with-nss[=PFX] Compile in SSL support for POP/IMAP via NSS"
51 --with-sasl[=PFX] Use Cyrus SASL library for POP/IMAP authentication"
53 --with-sasl2[=PFX] Use Cyrus SASL library version 2 for POP/IMAP authentication"
55 --with-idn=[PFX] Use GNU libidn for domain names"
57 --enable-debug Enable debugging support"
59 --enable-flock Use flock() to lock files"
61 --disable-fcntl Do NOT use fcntl() to lock files "
63 --disable-warnings Turn off compiler warnings (not recommended)"
65 --enable-nfs-fix Work around an NFS with broken attributes caching "
67 --enable-buffy-size Use file size attribute instead of access time "
69 --enable-mailtool Enable Sun mailtool attachments support "
71 --enable-compressed Enable compressed folders support "
73 --enable-locales-fix The result of isprint() is unreliable "
75 --with-exec-shell=SHELL Specify alternate shell (ONLY if /bin/sh is broken)"
77 --enable-exact-address Enable regeneration of email addresses"
79 --disable-iconv Disable iconv support"
81 --with-libiconv-prefix=DIR Search for libiconv in DIR/include and DIR/lib"
83 --disable-nls Do not use Native Language Support"
85 --with-included-gettext Use the GNU gettext library included here"
87 --without-wc-funcs Do not use the system's wchar_t functions"
89 --with-libesmtp=DIR Compile in support for libesmtp for the MTA"
91 # Initialize some variables set by options.
92 # The variables have the same names as the options, with
93 # dashes changed to underlines.
95 cache_file=./config.cache
104 program_transform_name=s,x,x,
112 bindir='${exec_prefix}/bin'
113 sbindir='${exec_prefix}/sbin'
114 libexecdir='${exec_prefix}/libexec'
115 datadir='${prefix}/share'
116 sysconfdir='${prefix}/etc'
117 sharedstatedir='${prefix}/com'
118 localstatedir='${prefix}/var'
119 libdir='${exec_prefix}/lib'
120 includedir='${prefix}/include'
121 oldincludedir='/usr/include'
122 infodir='${prefix}/info'
123 mandir='${prefix}/man'
125 # Initialize some other variables.
128 SHELL=${CONFIG_SHELL-/bin/sh}
129 # Maximum number of lines to put in a shell here document.
136 # If the previous option needs an argument, assign it.
137 if test -n "$ac_prev"; then
138 eval "$ac_prev=\$ac_option"
144 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
148 # Accept the important Cygnus configure options, so we can diagnose typos.
152 -bindir | --bindir | --bindi | --bind | --bin | --bi)
154 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
155 bindir="$ac_optarg" ;;
157 -build | --build | --buil | --bui | --bu)
159 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
160 build="$ac_optarg" ;;
162 -cache-file | --cache-file | --cache-fil | --cache-fi \
163 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
164 ac_prev=cache_file ;;
165 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
166 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
167 cache_file="$ac_optarg" ;;
169 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
171 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
173 datadir="$ac_optarg" ;;
175 -disable-* | --disable-*)
176 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
177 # Reject names that are not valid shell variable names.
178 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
179 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
181 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
182 eval "enable_${ac_feature}=no" ;;
184 -enable-* | --enable-*)
185 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
186 # Reject names that are not valid shell variable names.
187 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
188 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
190 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
195 eval "enable_${ac_feature}='$ac_optarg'" ;;
197 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
198 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
199 | --exec | --exe | --ex)
200 ac_prev=exec_prefix ;;
201 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
202 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
203 | --exec=* | --exe=* | --ex=*)
204 exec_prefix="$ac_optarg" ;;
206 -gas | --gas | --ga | --g)
207 # Obsolete; use --with-gas.
210 -help | --help | --hel | --he)
211 # Omit some internal or obsolete options to make the list less imposing.
212 # This message is too long to be a string in the A/UX 3.1 sh.
214 Usage: configure [options] [host]
215 Options: [defaults in brackets after descriptions]
217 --cache-file=FILE cache test results in FILE
218 --help print this message
219 --no-create do not create output files
220 --quiet, --silent do not print \`checking...' messages
221 --version print the version of autoconf that created configure
222 Directory and file names:
223 --prefix=PREFIX install architecture-independent files in PREFIX
225 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
227 --bindir=DIR user executables in DIR [EPREFIX/bin]
228 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
229 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
230 --datadir=DIR read-only architecture-independent data in DIR
232 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
233 --sharedstatedir=DIR modifiable architecture-independent data in DIR
235 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
236 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
237 --includedir=DIR C header files in DIR [PREFIX/include]
238 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
239 --infodir=DIR info documentation in DIR [PREFIX/info]
240 --mandir=DIR man documentation in DIR [PREFIX/man]
241 --srcdir=DIR find the sources in DIR [configure dir or ..]
242 --program-prefix=PREFIX prepend PREFIX to installed program names
243 --program-suffix=SUFFIX append SUFFIX to installed program names
244 --program-transform-name=PROGRAM
245 run sed PROGRAM on installed program names
249 --build=BUILD configure for building on BUILD [BUILD=HOST]
250 --host=HOST configure for HOST [guessed]
251 --target=TARGET configure for TARGET [TARGET=HOST]
252 Features and packages:
253 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
254 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
255 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
256 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
257 --x-includes=DIR X include files are in DIR
258 --x-libraries=DIR X library files are in DIR
260 if test -n "$ac_help"; then
261 echo "--enable and --with options recognized:$ac_help"
265 -host | --host | --hos | --ho)
267 -host=* | --host=* | --hos=* | --ho=*)
270 -includedir | --includedir | --includedi | --included | --include \
271 | --includ | --inclu | --incl | --inc)
272 ac_prev=includedir ;;
273 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
274 | --includ=* | --inclu=* | --incl=* | --inc=*)
275 includedir="$ac_optarg" ;;
277 -infodir | --infodir | --infodi | --infod | --info | --inf)
279 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
280 infodir="$ac_optarg" ;;
282 -libdir | --libdir | --libdi | --libd)
284 -libdir=* | --libdir=* | --libdi=* | --libd=*)
285 libdir="$ac_optarg" ;;
287 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
288 | --libexe | --libex | --libe)
289 ac_prev=libexecdir ;;
290 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
291 | --libexe=* | --libex=* | --libe=*)
292 libexecdir="$ac_optarg" ;;
294 -localstatedir | --localstatedir | --localstatedi | --localstated \
295 | --localstate | --localstat | --localsta | --localst \
296 | --locals | --local | --loca | --loc | --lo)
297 ac_prev=localstatedir ;;
298 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
299 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
300 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
301 localstatedir="$ac_optarg" ;;
303 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
305 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
306 mandir="$ac_optarg" ;;
309 # Obsolete; use --without-fp.
312 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
316 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
317 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
320 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
321 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
322 | --oldin | --oldi | --old | --ol | --o)
323 ac_prev=oldincludedir ;;
324 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
325 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
326 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
327 oldincludedir="$ac_optarg" ;;
329 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
331 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
332 prefix="$ac_optarg" ;;
334 -program-prefix | --program-prefix | --program-prefi | --program-pref \
335 | --program-pre | --program-pr | --program-p)
336 ac_prev=program_prefix ;;
337 -program-prefix=* | --program-prefix=* | --program-prefi=* \
338 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
339 program_prefix="$ac_optarg" ;;
341 -program-suffix | --program-suffix | --program-suffi | --program-suff \
342 | --program-suf | --program-su | --program-s)
343 ac_prev=program_suffix ;;
344 -program-suffix=* | --program-suffix=* | --program-suffi=* \
345 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
346 program_suffix="$ac_optarg" ;;
348 -program-transform-name | --program-transform-name \
349 | --program-transform-nam | --program-transform-na \
350 | --program-transform-n | --program-transform- \
351 | --program-transform | --program-transfor \
352 | --program-transfo | --program-transf \
353 | --program-trans | --program-tran \
354 | --progr-tra | --program-tr | --program-t)
355 ac_prev=program_transform_name ;;
356 -program-transform-name=* | --program-transform-name=* \
357 | --program-transform-nam=* | --program-transform-na=* \
358 | --program-transform-n=* | --program-transform-=* \
359 | --program-transform=* | --program-transfor=* \
360 | --program-transfo=* | --program-transf=* \
361 | --program-trans=* | --program-tran=* \
362 | --progr-tra=* | --program-tr=* | --program-t=*)
363 program_transform_name="$ac_optarg" ;;
365 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
366 | -silent | --silent | --silen | --sile | --sil)
369 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
371 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
373 sbindir="$ac_optarg" ;;
375 -sharedstatedir | --sharedstatedir | --sharedstatedi \
376 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
377 | --sharedst | --shareds | --shared | --share | --shar \
379 ac_prev=sharedstatedir ;;
380 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
381 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
382 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
384 sharedstatedir="$ac_optarg" ;;
386 -site | --site | --sit)
388 -site=* | --site=* | --sit=*)
391 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
393 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
394 srcdir="$ac_optarg" ;;
396 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
397 | --syscon | --sysco | --sysc | --sys | --sy)
398 ac_prev=sysconfdir ;;
399 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
400 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
401 sysconfdir="$ac_optarg" ;;
403 -target | --target | --targe | --targ | --tar | --ta | --t)
405 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
406 target="$ac_optarg" ;;
408 -v | -verbose | --verbose | --verbos | --verbo | --verb)
411 -version | --version | --versio | --versi | --vers)
412 echo "configure generated by autoconf version 2.13"
416 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
417 # Reject names that are not valid shell variable names.
418 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
419 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
421 ac_package=`echo $ac_package| sed 's/-/_/g'`
426 eval "with_${ac_package}='$ac_optarg'" ;;
428 -without-* | --without-*)
429 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
430 # Reject names that are not valid shell variable names.
431 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
432 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
434 ac_package=`echo $ac_package| sed 's/-/_/g'`
435 eval "with_${ac_package}=no" ;;
438 # Obsolete; use --with-x.
441 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
442 | --x-incl | --x-inc | --x-in | --x-i)
443 ac_prev=x_includes ;;
444 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
445 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
446 x_includes="$ac_optarg" ;;
448 -x-libraries | --x-libraries | --x-librarie | --x-librari \
449 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
450 ac_prev=x_libraries ;;
451 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
452 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
453 x_libraries="$ac_optarg" ;;
455 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
459 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
460 echo "configure: warning: $ac_option: invalid host type" 1>&2
462 if test "x$nonopt" != xNONE; then
463 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
471 if test -n "$ac_prev"; then
472 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
475 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
477 # File descriptor usage:
480 # 2 errors and warnings
481 # 3 some systems may open it to /dev/tty
482 # 4 used on the Kubota Titan
483 # 6 checking for... messages and results
484 # 5 compiler messages saved in config.log
485 if test "$silent" = yes; then
493 This file contains any messages produced by compilers while
494 running configure, to aid debugging if configure makes a mistake.
497 # Strip out --no-create and --no-recursion so they do not pile up.
498 # Also quote any args containing shell metacharacters.
503 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
504 | --no-cr | --no-c) ;;
505 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
506 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
507 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
508 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
509 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
514 # Only set these to C if already set. These must not be set unconditionally
515 # because not all systems understand e.g. LANG=C (notably SCO).
516 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
517 # Non-C LC_CTYPE values break the ctype check.
518 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
519 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
520 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
521 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
523 # confdefs.h avoids OS command line length limits that DEFS can exceed.
524 rm -rf conftest* confdefs.h
525 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
528 # A filename unique to this package, relative to the directory that
529 # configure is in, which we can look for to find out if srcdir is correct.
530 ac_unique_file=mutt.h
532 # Find the source files, if location was not specified.
533 if test -z "$srcdir"; then
534 ac_srcdir_defaulted=yes
535 # Try the directory containing this script, then its parent.
537 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
538 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
540 if test ! -r $srcdir/$ac_unique_file; then
544 ac_srcdir_defaulted=no
546 if test ! -r $srcdir/$ac_unique_file; then
547 if test "$ac_srcdir_defaulted" = yes; then
548 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
550 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
553 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
555 # Prefer explicitly selected file to automatically selected ones.
556 if test -z "$CONFIG_SITE"; then
557 if test "x$prefix" != xNONE; then
558 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
560 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
563 for ac_site_file in $CONFIG_SITE; do
564 if test -r "$ac_site_file"; then
565 echo "loading site script $ac_site_file"
570 if test -r "$cache_file"; then
571 echo "loading cache $cache_file"
574 echo "creating cache $cache_file"
579 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
580 ac_cpp='$CPP $CPPFLAGS'
581 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
582 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
583 cross_compiling=$ac_cv_prog_cc_cross
587 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
588 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
589 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
596 ac_n= ac_c='\c' ac_t=
604 mutt_cv_version=`cat $srcdir/VERSION`
608 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
609 if test -f $ac_dir/install-sh; then
611 ac_install_sh="$ac_aux_dir/install-sh -c"
613 elif test -f $ac_dir/install.sh; then
615 ac_install_sh="$ac_aux_dir/install.sh -c"
619 if test -z "$ac_aux_dir"; then
620 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
622 ac_config_guess=$ac_aux_dir/config.guess
623 ac_config_sub=$ac_aux_dir/config.sub
624 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
626 # Find a good install program. We prefer a C program (faster),
627 # so one script is as good as another. But avoid the broken or
628 # incompatible versions:
629 # SysV /etc/install, /usr/sbin/install
630 # SunOS /usr/etc/install
633 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
634 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
635 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
636 # ./install, which can be erroneously created by make from ./install.sh.
637 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
638 echo "configure:639: checking for a BSD compatible install" >&5
639 if test -z "$INSTALL"; then
640 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
641 echo $ac_n "(cached) $ac_c" 1>&6
643 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
644 for ac_dir in $PATH; do
645 # Account for people who put trailing slashes in PATH elements.
647 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
649 # OSF1 and SCO ODT 3.0 have their own names for install.
650 # Don't use installbsd from OSF since it installs stuff as root
652 for ac_prog in ginstall scoinst install; do
653 if test -f $ac_dir/$ac_prog; then
654 if test $ac_prog = install &&
655 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
656 # AIX install. It has an incompatible calling convention.
659 ac_cv_path_install="$ac_dir/$ac_prog -c"
670 if test "${ac_cv_path_install+set}" = set; then
671 INSTALL="$ac_cv_path_install"
673 # As a last resort, use the slow shell script. We don't cache a
674 # path for INSTALL within a source directory, because that will
675 # break other packages using the cache if that directory is
676 # removed, or if the path is relative.
677 INSTALL="$ac_install_sh"
680 echo "$ac_t""$INSTALL" 1>&6
682 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
683 # It thinks the first close brace ends the variable substitution.
684 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
686 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
688 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
690 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
691 echo "configure:692: checking whether build environment is sane" >&5
694 echo timestamp > conftestfile
695 # Do `set' in a subshell so we don't clobber the current shell's
696 # arguments. Must try -L first in case configure is actually a
697 # symlink; some systems play weird games with the mod time of symlinks
698 # (eg FreeBSD returns the mod time of the symlink's containing
701 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
702 if test "$*" = "X"; then
704 set X `ls -t $srcdir/configure conftestfile`
706 if test "$*" != "X $srcdir/configure conftestfile" \
707 && test "$*" != "X conftestfile $srcdir/configure"; then
709 # If neither matched, then we have a broken ls. This can happen
710 # if, for instance, CONFIG_SHELL is bash and it inherits a
711 # broken ls alias from the environment. This has actually
712 # happened. Such a system could not be considered "sane".
713 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
714 alias in your environment" 1>&2; exit 1; }
717 test "$2" = conftestfile
723 { echo "configure: error: newly created file is older than distributed files!
724 Check your system clock" 1>&2; exit 1; }
727 echo "$ac_t""yes" 1>&6
728 if test "$program_transform_name" = s,x,x,; then
729 program_transform_name=
731 # Double any \ or $. echo might interpret backslashes.
732 cat <<\EOF_SED > conftestsed
733 s,\\,\\\\,g; s,\$,$$,g
735 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
738 test "$program_prefix" != NONE &&
739 program_transform_name="s,^,${program_prefix},; $program_transform_name"
740 # Use a double $ so make ignores it.
741 test "$program_suffix" != NONE &&
742 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
744 # sed with no file args requires a program.
745 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
747 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
748 echo "configure:749: checking whether ${MAKE-make} sets \${MAKE}" >&5
749 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
750 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
751 echo $ac_n "(cached) $ac_c" 1>&6
753 cat > conftestmake <<\EOF
755 @echo 'ac_maketemp="${MAKE}"'
757 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
758 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
759 if test -n "$ac_maketemp"; then
760 eval ac_cv_prog_make_${ac_make}_set=yes
762 eval ac_cv_prog_make_${ac_make}_set=no
766 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
767 echo "$ac_t""yes" 1>&6
770 echo "$ac_t""no" 1>&6
771 SET_MAKE="MAKE=${MAKE-make}"
777 VERSION=$mutt_cv_version
779 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
780 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
782 cat >> confdefs.h <<EOF
783 #define PACKAGE "$PACKAGE"
786 cat >> confdefs.h <<EOF
787 #define VERSION "$VERSION"
792 missing_dir=`cd $ac_aux_dir && pwd`
793 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
794 echo "configure:795: checking for working aclocal" >&5
795 # Run test in a subshell; some versions of sh will print an error if
796 # an executable is not found, even if stderr is redirected.
797 # Redirect stdin to placate older versions of autoconf. Sigh.
798 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
800 echo "$ac_t""found" 1>&6
802 ACLOCAL="$missing_dir/missing aclocal"
803 echo "$ac_t""missing" 1>&6
806 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
807 echo "configure:808: checking for working autoconf" >&5
808 # Run test in a subshell; some versions of sh will print an error if
809 # an executable is not found, even if stderr is redirected.
810 # Redirect stdin to placate older versions of autoconf. Sigh.
811 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
813 echo "$ac_t""found" 1>&6
815 AUTOCONF="$missing_dir/missing autoconf"
816 echo "$ac_t""missing" 1>&6
819 echo $ac_n "checking for working automake""... $ac_c" 1>&6
820 echo "configure:821: checking for working automake" >&5
821 # Run test in a subshell; some versions of sh will print an error if
822 # an executable is not found, even if stderr is redirected.
823 # Redirect stdin to placate older versions of autoconf. Sigh.
824 if (automake --version) < /dev/null > /dev/null 2>&1; then
826 echo "$ac_t""found" 1>&6
828 AUTOMAKE="$missing_dir/missing automake"
829 echo "$ac_t""missing" 1>&6
832 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
833 echo "configure:834: checking for working autoheader" >&5
834 # Run test in a subshell; some versions of sh will print an error if
835 # an executable is not found, even if stderr is redirected.
836 # Redirect stdin to placate older versions of autoconf. Sigh.
837 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
838 AUTOHEADER=autoheader
839 echo "$ac_t""found" 1>&6
841 AUTOHEADER="$missing_dir/missing autoheader"
842 echo "$ac_t""missing" 1>&6
845 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
846 echo "configure:847: checking for working makeinfo" >&5
847 # Run test in a subshell; some versions of sh will print an error if
848 # an executable is not found, even if stderr is redirected.
849 # Redirect stdin to placate older versions of autoconf. Sigh.
850 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
852 echo "$ac_t""found" 1>&6
854 MAKEINFO="$missing_dir/missing makeinfo"
855 echo "$ac_t""missing" 1>&6
862 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"
865 # Make sure we can run config.sub.
866 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
867 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
870 echo $ac_n "checking host system type""... $ac_c" 1>&6
871 echo "configure:872: checking host system type" >&5
874 case "$host_alias" in
878 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
879 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
881 *) host_alias=$nonopt ;;
885 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
886 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
887 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
888 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
889 echo "$ac_t""$host" 1>&6
892 echo $ac_n "checking for prefix""... $ac_c" 1>&6
893 echo "configure:894: checking for prefix" >&5
894 if test x$prefix = xNONE; then
895 mutt_cv_prefix=$ac_default_prefix
897 mutt_cv_prefix=$prefix
899 echo "$ac_t""$mutt_cv_prefix" 1>&6
901 # Extract the first word of "gcc", so it can be a program name with args.
902 set dummy gcc; ac_word=$2
903 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
904 echo "configure:905: checking for $ac_word" >&5
905 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
906 echo $ac_n "(cached) $ac_c" 1>&6
908 if test -n "$CC"; then
909 ac_cv_prog_CC="$CC" # Let the user override the test.
911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
913 for ac_dir in $ac_dummy; do
914 test -z "$ac_dir" && ac_dir=.
915 if test -f $ac_dir/$ac_word; then
924 if test -n "$CC"; then
925 echo "$ac_t""$CC" 1>&6
927 echo "$ac_t""no" 1>&6
930 if test -z "$CC"; then
931 # Extract the first word of "cc", so it can be a program name with args.
932 set dummy cc; ac_word=$2
933 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
934 echo "configure:935: checking for $ac_word" >&5
935 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
936 echo $ac_n "(cached) $ac_c" 1>&6
938 if test -n "$CC"; then
939 ac_cv_prog_CC="$CC" # Let the user override the test.
941 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
944 for ac_dir in $ac_dummy; do
945 test -z "$ac_dir" && ac_dir=.
946 if test -f $ac_dir/$ac_word; then
947 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
956 if test $ac_prog_rejected = yes; then
957 # We found a bogon in the path, so make sure we never use it.
958 set dummy $ac_cv_prog_CC
960 if test $# -gt 0; then
961 # We chose a different compiler from the bogus one.
962 # However, it has the same basename, so the bogon will be chosen
963 # first if we set CC to just the basename; use the full file name.
965 set dummy "$ac_dir/$ac_word" "$@"
973 if test -n "$CC"; then
974 echo "$ac_t""$CC" 1>&6
976 echo "$ac_t""no" 1>&6
979 if test -z "$CC"; then
982 # Extract the first word of "cl", so it can be a program name with args.
983 set dummy cl; ac_word=$2
984 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
985 echo "configure:986: checking for $ac_word" >&5
986 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
987 echo $ac_n "(cached) $ac_c" 1>&6
989 if test -n "$CC"; then
990 ac_cv_prog_CC="$CC" # Let the user override the test.
992 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
994 for ac_dir in $ac_dummy; do
995 test -z "$ac_dir" && ac_dir=.
996 if test -f $ac_dir/$ac_word; then
1005 if test -n "$CC"; then
1006 echo "$ac_t""$CC" 1>&6
1008 echo "$ac_t""no" 1>&6
1013 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1016 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1017 echo "configure:1018: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1020 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1021 ac_cpp='$CPP $CPPFLAGS'
1022 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1023 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1024 cross_compiling=$ac_cv_prog_cc_cross
1026 cat > conftest.$ac_ext << EOF
1028 #line 1029 "configure"
1029 #include "confdefs.h"
1033 if { (eval echo configure:1034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1034 ac_cv_prog_cc_works=yes
1035 # If we can't run a trivial program, we are probably using a cross compiler.
1036 if (./conftest; exit) 2>/dev/null; then
1037 ac_cv_prog_cc_cross=no
1039 ac_cv_prog_cc_cross=yes
1042 echo "configure: failed program was:" >&5
1043 cat conftest.$ac_ext >&5
1044 ac_cv_prog_cc_works=no
1048 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1049 ac_cpp='$CPP $CPPFLAGS'
1050 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1051 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1052 cross_compiling=$ac_cv_prog_cc_cross
1054 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1055 if test $ac_cv_prog_cc_works = no; then
1056 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1058 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1059 echo "configure:1060: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1060 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1061 cross_compiling=$ac_cv_prog_cc_cross
1063 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1064 echo "configure:1065: checking whether we are using GNU C" >&5
1065 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1066 echo $ac_n "(cached) $ac_c" 1>&6
1068 cat > conftest.c <<EOF
1073 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1080 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1082 if test $ac_cv_prog_gcc = yes; then
1088 ac_test_CFLAGS="${CFLAGS+set}"
1089 ac_save_CFLAGS="$CFLAGS"
1091 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1092 echo "configure:1093: checking whether ${CC-cc} accepts -g" >&5
1093 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1094 echo $ac_n "(cached) $ac_c" 1>&6
1096 echo 'void f(){}' > conftest.c
1097 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1106 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1107 if test "$ac_test_CFLAGS" = set; then
1108 CFLAGS="$ac_save_CFLAGS"
1109 elif test $ac_cv_prog_cc_g = yes; then
1110 if test "$GCC" = yes; then
1116 if test "$GCC" = yes; then
1124 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1125 echo "configure:1126: checking for strerror in -lcposix" >&5
1126 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1127 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1128 echo $ac_n "(cached) $ac_c" 1>&6
1130 ac_save_LIBS="$LIBS"
1131 LIBS="-lcposix $LIBS"
1132 cat > conftest.$ac_ext <<EOF
1133 #line 1134 "configure"
1134 #include "confdefs.h"
1135 /* Override any gcc2 internal prototype to avoid an error. */
1136 /* We use char because int might match the return type of a gcc2
1137 builtin and then its argument prototype would still apply. */
1144 if { (eval echo configure:1145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1146 eval "ac_cv_lib_$ac_lib_var=yes"
1148 echo "configure: failed program was:" >&5
1149 cat conftest.$ac_ext >&5
1151 eval "ac_cv_lib_$ac_lib_var=no"
1154 LIBS="$ac_save_LIBS"
1157 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1158 echo "$ac_t""yes" 1>&6
1159 LIBS="$LIBS -lcposix"
1161 echo "$ac_t""no" 1>&6
1169 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
1170 echo "configure:1171: checking for ${CC-cc} option to accept ANSI C" >&5
1171 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
1172 echo $ac_n "(cached) $ac_c" 1>&6
1174 am_cv_prog_cc_stdc=no
1176 # Don't try gcc -ansi; that turns off useful extensions and
1177 # breaks some systems' header files.
1178 # AIX -qlanglvl=ansi
1179 # Ultrix and OSF/1 -std1
1180 # HP-UX -Aa -D_HPUX_SOURCE
1181 # SVR4 -Xc -D__EXTENSIONS__
1182 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1184 CC="$ac_save_CC $ac_arg"
1185 cat > conftest.$ac_ext <<EOF
1186 #line 1187 "configure"
1187 #include "confdefs.h"
1190 #include <sys/types.h>
1191 #include <sys/stat.h>
1192 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1193 struct buf { int x; };
1194 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1195 static char *e (p, i)
1201 static char *f (char * (*g) (char **, int), char **p, ...)
1206 s = g (p, va_arg (v,int));
1210 int test (int i, double x);
1211 struct s1 {int (*f) (int a);};
1212 struct s2 {int (*f) (double a);};
1213 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1219 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1223 if { (eval echo configure:1224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1225 am_cv_prog_cc_stdc="$ac_arg"; break
1227 echo "configure: failed program was:" >&5
1228 cat conftest.$ac_ext >&5
1236 if test -z "$am_cv_prog_cc_stdc"; then
1237 echo "$ac_t""none needed" 1>&6
1239 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1241 case "x$am_cv_prog_cc_stdc" in
1243 *) CC="$CC $am_cv_prog_cc_stdc" ;;
1246 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1247 echo "configure:1248: checking how to run the C preprocessor" >&5
1248 # On Suns, sometimes $CPP names a directory.
1249 if test -n "$CPP" && test -d "$CPP"; then
1252 if test -z "$CPP"; then
1253 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1254 echo $ac_n "(cached) $ac_c" 1>&6
1256 # This must be in double quotes, not single quotes, because CPP may get
1257 # substituted into the Makefile and "${CC-cc}" will confuse make.
1259 # On the NeXT, cc -E runs the code through the compiler's parser,
1260 # not just through cpp.
1261 cat > conftest.$ac_ext <<EOF
1262 #line 1263 "configure"
1263 #include "confdefs.h"
1267 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1268 { (eval echo configure:1269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1269 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1270 if test -z "$ac_err"; then
1274 echo "configure: failed program was:" >&5
1275 cat conftest.$ac_ext >&5
1277 CPP="${CC-cc} -E -traditional-cpp"
1278 cat > conftest.$ac_ext <<EOF
1279 #line 1280 "configure"
1280 #include "confdefs.h"
1284 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1285 { (eval echo configure:1286: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1286 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1287 if test -z "$ac_err"; then
1291 echo "configure: failed program was:" >&5
1292 cat conftest.$ac_ext >&5
1294 CPP="${CC-cc} -nologo -E"
1295 cat > conftest.$ac_ext <<EOF
1296 #line 1297 "configure"
1297 #include "confdefs.h"
1301 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1302 { (eval echo configure:1303: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1303 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1304 if test -z "$ac_err"; then
1308 echo "configure: failed program was:" >&5
1309 cat conftest.$ac_ext >&5
1318 ac_cv_prog_CPP="$CPP"
1320 CPP="$ac_cv_prog_CPP"
1322 ac_cv_prog_CPP="$CPP"
1324 echo "$ac_t""$CPP" 1>&6
1328 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
1329 echo "configure:1330: checking for function prototypes" >&5
1330 if test "$am_cv_prog_cc_stdc" != no; then
1331 echo "$ac_t""yes" 1>&6
1332 cat >> confdefs.h <<\EOF
1333 #define PROTOTYPES 1
1338 echo "$ac_t""no" 1>&6
1339 U=_ ANSI2KNR=./ansi2knr
1340 # Ensure some checks needed by ansi2knr itself.
1341 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1342 echo "configure:1343: checking for ANSI C header files" >&5
1343 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1344 echo $ac_n "(cached) $ac_c" 1>&6
1346 cat > conftest.$ac_ext <<EOF
1347 #line 1348 "configure"
1348 #include "confdefs.h"
1354 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1355 { (eval echo configure:1356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1356 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1357 if test -z "$ac_err"; then
1359 ac_cv_header_stdc=yes
1362 echo "configure: failed program was:" >&5
1363 cat conftest.$ac_ext >&5
1365 ac_cv_header_stdc=no
1369 if test $ac_cv_header_stdc = yes; then
1370 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1371 cat > conftest.$ac_ext <<EOF
1372 #line 1373 "configure"
1373 #include "confdefs.h"
1376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1377 egrep "memchr" >/dev/null 2>&1; then
1381 ac_cv_header_stdc=no
1387 if test $ac_cv_header_stdc = yes; then
1388 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1389 cat > conftest.$ac_ext <<EOF
1390 #line 1391 "configure"
1391 #include "confdefs.h"
1394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1395 egrep "free" >/dev/null 2>&1; then
1399 ac_cv_header_stdc=no
1405 if test $ac_cv_header_stdc = yes; then
1406 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1407 if test "$cross_compiling" = yes; then
1410 cat > conftest.$ac_ext <<EOF
1411 #line 1412 "configure"
1412 #include "confdefs.h"
1414 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1415 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1416 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1417 int main () { int i; for (i = 0; i < 256; i++)
1418 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1422 if { (eval echo configure:1423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1426 echo "configure: failed program was:" >&5
1427 cat conftest.$ac_ext >&5
1429 ac_cv_header_stdc=no
1437 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1438 if test $ac_cv_header_stdc = yes; then
1439 cat >> confdefs.h <<\EOF
1440 #define STDC_HEADERS 1
1445 for ac_hdr in string.h
1447 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1448 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1449 echo "configure:1450: checking for $ac_hdr" >&5
1450 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1451 echo $ac_n "(cached) $ac_c" 1>&6
1453 cat > conftest.$ac_ext <<EOF
1454 #line 1455 "configure"
1455 #include "confdefs.h"
1458 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1459 { (eval echo configure:1460: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1460 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1461 if test -z "$ac_err"; then
1463 eval "ac_cv_header_$ac_safe=yes"
1466 echo "configure: failed program was:" >&5
1467 cat conftest.$ac_ext >&5
1469 eval "ac_cv_header_$ac_safe=no"
1473 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1474 echo "$ac_t""yes" 1>&6
1475 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1476 cat >> confdefs.h <<EOF
1477 #define $ac_tr_hdr 1
1481 echo "$ac_t""no" 1>&6
1487 if test "x$U" != "x"; then
1488 { echo "configure: error: Compiler not ANSI compliant" 1>&2; exit 1; }
1490 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1491 echo "configure:1492: checking how to run the C preprocessor" >&5
1492 # On Suns, sometimes $CPP names a directory.
1493 if test -n "$CPP" && test -d "$CPP"; then
1496 if test -z "$CPP"; then
1497 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1498 echo $ac_n "(cached) $ac_c" 1>&6
1500 # This must be in double quotes, not single quotes, because CPP may get
1501 # substituted into the Makefile and "${CC-cc}" will confuse make.
1503 # On the NeXT, cc -E runs the code through the compiler's parser,
1504 # not just through cpp.
1505 cat > conftest.$ac_ext <<EOF
1506 #line 1507 "configure"
1507 #include "confdefs.h"
1511 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1512 { (eval echo configure:1513: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1513 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1514 if test -z "$ac_err"; then
1518 echo "configure: failed program was:" >&5
1519 cat conftest.$ac_ext >&5
1521 CPP="${CC-cc} -E -traditional-cpp"
1522 cat > conftest.$ac_ext <<EOF
1523 #line 1524 "configure"
1524 #include "confdefs.h"
1528 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1529 { (eval echo configure:1530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1530 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1531 if test -z "$ac_err"; then
1535 echo "configure: failed program was:" >&5
1536 cat conftest.$ac_ext >&5
1538 CPP="${CC-cc} -nologo -E"
1539 cat > conftest.$ac_ext <<EOF
1540 #line 1541 "configure"
1541 #include "confdefs.h"
1545 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1546 { (eval echo configure:1547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1547 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1548 if test -z "$ac_err"; then
1552 echo "configure: failed program was:" >&5
1553 cat conftest.$ac_ext >&5
1562 ac_cv_prog_CPP="$CPP"
1564 CPP="$ac_cv_prog_CPP"
1566 ac_cv_prog_CPP="$CPP"
1568 echo "$ac_t""$CPP" 1>&6
1570 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1571 echo "configure:1572: checking whether ${MAKE-make} sets \${MAKE}" >&5
1572 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1573 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1574 echo $ac_n "(cached) $ac_c" 1>&6
1576 cat > conftestmake <<\EOF
1578 @echo 'ac_maketemp="${MAKE}"'
1580 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1581 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1582 if test -n "$ac_maketemp"; then
1583 eval ac_cv_prog_make_${ac_make}_set=yes
1585 eval ac_cv_prog_make_${ac_make}_set=no
1589 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1590 echo "$ac_t""yes" 1>&6
1593 echo "$ac_t""no" 1>&6
1594 SET_MAKE="MAKE=${MAKE-make}"
1597 # Find a good install program. We prefer a C program (faster),
1598 # so one script is as good as another. But avoid the broken or
1599 # incompatible versions:
1600 # SysV /etc/install, /usr/sbin/install
1601 # SunOS /usr/etc/install
1602 # IRIX /sbin/install
1604 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1605 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1606 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1607 # ./install, which can be erroneously created by make from ./install.sh.
1608 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1609 echo "configure:1610: checking for a BSD compatible install" >&5
1610 if test -z "$INSTALL"; then
1611 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1612 echo $ac_n "(cached) $ac_c" 1>&6
1614 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1615 for ac_dir in $PATH; do
1616 # Account for people who put trailing slashes in PATH elements.
1618 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1620 # OSF1 and SCO ODT 3.0 have their own names for install.
1621 # Don't use installbsd from OSF since it installs stuff as root
1623 for ac_prog in ginstall scoinst install; do
1624 if test -f $ac_dir/$ac_prog; then
1625 if test $ac_prog = install &&
1626 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1627 # AIX install. It has an incompatible calling convention.
1630 ac_cv_path_install="$ac_dir/$ac_prog -c"
1641 if test "${ac_cv_path_install+set}" = set; then
1642 INSTALL="$ac_cv_path_install"
1644 # As a last resort, use the slow shell script. We don't cache a
1645 # path for INSTALL within a source directory, because that will
1646 # break other packages using the cache if that directory is
1647 # removed, or if the path is relative.
1648 INSTALL="$ac_install_sh"
1651 echo "$ac_t""$INSTALL" 1>&6
1653 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1654 # It thinks the first close brace ends the variable substitution.
1655 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1657 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1659 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1661 # Extract the first word of "ranlib", so it can be a program name with args.
1662 set dummy ranlib; ac_word=$2
1663 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1664 echo "configure:1665: checking for $ac_word" >&5
1665 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1666 echo $ac_n "(cached) $ac_c" 1>&6
1668 if test -n "$RANLIB"; then
1669 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1671 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1673 for ac_dir in $ac_dummy; do
1674 test -z "$ac_dir" && ac_dir=.
1675 if test -f $ac_dir/$ac_word; then
1676 ac_cv_prog_RANLIB="ranlib"
1681 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1684 RANLIB="$ac_cv_prog_RANLIB"
1685 if test -n "$RANLIB"; then
1686 echo "$ac_t""$RANLIB" 1>&6
1688 echo "$ac_t""no" 1>&6
1691 echo $ac_n "checking build system type""... $ac_c" 1>&6
1692 echo "configure:1693: checking build system type" >&5
1695 case "$build_alias" in
1698 NONE) build_alias=$host_alias ;;
1699 *) build_alias=$nonopt ;;
1703 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1704 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1705 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1706 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1707 echo "$ac_t""$build" 1>&6
1709 if test $host != $build; then
1710 ac_tool_prefix=${host_alias}-
1715 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1716 set dummy ${ac_tool_prefix}ar; ac_word=$2
1717 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1718 echo "configure:1719: checking for $ac_word" >&5
1719 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1720 echo $ac_n "(cached) $ac_c" 1>&6
1722 if test -n "$AR"; then
1723 ac_cv_prog_AR="$AR" # Let the user override the test.
1725 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1727 for ac_dir in $ac_dummy; do
1728 test -z "$ac_dir" && ac_dir=.
1729 if test -f $ac_dir/$ac_word; then
1730 ac_cv_prog_AR="${ac_tool_prefix}ar"
1738 if test -n "$AR"; then
1739 echo "$ac_t""$AR" 1>&6
1741 echo "$ac_t""no" 1>&6
1745 if test -z "$ac_cv_prog_AR"; then
1746 if test -n "$ac_tool_prefix"; then
1747 # Extract the first word of "ar", so it can be a program name with args.
1748 set dummy ar; ac_word=$2
1749 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1750 echo "configure:1751: checking for $ac_word" >&5
1751 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1752 echo $ac_n "(cached) $ac_c" 1>&6
1754 if test -n "$AR"; then
1755 ac_cv_prog_AR="$AR" # Let the user override the test.
1757 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1759 for ac_dir in $ac_dummy; do
1760 test -z "$ac_dir" && ac_dir=.
1761 if test -f $ac_dir/$ac_word; then
1767 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1771 if test -n "$AR"; then
1772 echo "$ac_t""$AR" 1>&6
1774 echo "$ac_t""no" 1>&6
1783 echo $ac_n "checking for inline""... $ac_c" 1>&6
1784 echo "configure:1785: checking for inline" >&5
1785 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1786 echo $ac_n "(cached) $ac_c" 1>&6
1789 for ac_kw in inline __inline__ __inline; do
1790 cat > conftest.$ac_ext <<EOF
1791 #line 1792 "configure"
1792 #include "confdefs.h"
1798 if { (eval echo configure:1799: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1800 ac_cv_c_inline=$ac_kw; break
1802 echo "configure: failed program was:" >&5
1803 cat conftest.$ac_ext >&5
1810 echo "$ac_t""$ac_cv_c_inline" 1>&6
1811 case "$ac_cv_c_inline" in
1813 no) cat >> confdefs.h <<\EOF
1817 *) cat >> confdefs.h <<EOF
1818 #define inline $ac_cv_c_inline
1823 echo $ac_n "checking for working const""... $ac_c" 1>&6
1824 echo "configure:1825: checking for working const" >&5
1825 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1826 echo $ac_n "(cached) $ac_c" 1>&6
1828 cat > conftest.$ac_ext <<EOF
1829 #line 1830 "configure"
1830 #include "confdefs.h"
1834 /* Ultrix mips cc rejects this. */
1835 typedef int charset[2]; const charset x;
1836 /* SunOS 4.1.1 cc rejects this. */
1837 char const *const *ccp;
1839 /* NEC SVR4.0.2 mips cc rejects this. */
1840 struct point {int x, y;};
1841 static struct point const zero = {0,0};
1842 /* AIX XL C 1.02.0.0 rejects this.
1843 It does not let you subtract one const X* pointer from another in an arm
1844 of an if-expression whose if-part is not a constant expression */
1845 const char *g = "string";
1846 ccp = &g + (g ? g-g : 0);
1847 /* HPUX 7.0 cc rejects these. */
1850 ccp = (char const *const *) p;
1851 { /* SCO 3.2v4 cc rejects this. */
1853 char const *s = 0 ? (char *) 0 : (char const *) 0;
1857 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1859 const int *foo = &x[0];
1862 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1863 typedef const int *iptr;
1867 { /* AIX XL C 1.02.0.0 rejects this saying
1868 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1869 struct s { int j; const int *ap[3]; };
1870 struct s *b; b->j = 5;
1872 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1878 if { (eval echo configure:1879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1882 echo "configure: failed program was:" >&5
1883 cat conftest.$ac_ext >&5
1890 echo "$ac_t""$ac_cv_c_const" 1>&6
1891 if test $ac_cv_c_const = no; then
1892 cat >> confdefs.h <<\EOF
1899 # Extract the first word of "dbx", so it can be a program name with args.
1900 set dummy dbx; ac_word=$2
1901 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1902 echo "configure:1903: checking for $ac_word" >&5
1903 if eval "test \"`echo '$''{'ac_cv_path_DBX'+set}'`\" = set"; then
1904 echo $ac_n "(cached) $ac_c" 1>&6
1908 ac_cv_path_DBX="$DBX" # Let the user override the test with a path.
1911 ac_cv_path_DBX="$DBX" # Let the user override the test with a dos path.
1914 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1916 for ac_dir in $ac_dummy; do
1917 test -z "$ac_dir" && ac_dir=.
1918 if test -f $ac_dir/$ac_word; then
1919 ac_cv_path_DBX="$ac_dir/$ac_word"
1924 test -z "$ac_cv_path_DBX" && ac_cv_path_DBX="no"
1928 DBX="$ac_cv_path_DBX"
1929 if test -n "$DBX"; then
1930 echo "$ac_t""$DBX" 1>&6
1932 echo "$ac_t""no" 1>&6
1935 # Extract the first word of "gdb", so it can be a program name with args.
1936 set dummy gdb; ac_word=$2
1937 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1938 echo "configure:1939: checking for $ac_word" >&5
1939 if eval "test \"`echo '$''{'ac_cv_path_GDB'+set}'`\" = set"; then
1940 echo $ac_n "(cached) $ac_c" 1>&6
1944 ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
1947 ac_cv_path_GDB="$GDB" # Let the user override the test with a dos path.
1950 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1952 for ac_dir in $ac_dummy; do
1953 test -z "$ac_dir" && ac_dir=.
1954 if test -f $ac_dir/$ac_word; then
1955 ac_cv_path_GDB="$ac_dir/$ac_word"
1960 test -z "$ac_cv_path_GDB" && ac_cv_path_GDB="no"
1964 GDB="$ac_cv_path_GDB"
1965 if test -n "$GDB"; then
1966 echo "$ac_t""$GDB" 1>&6
1968 echo "$ac_t""no" 1>&6
1971 # Extract the first word of "sdb", so it can be a program name with args.
1972 set dummy sdb; ac_word=$2
1973 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1974 echo "configure:1975: checking for $ac_word" >&5
1975 if eval "test \"`echo '$''{'ac_cv_path_SDB'+set}'`\" = set"; then
1976 echo $ac_n "(cached) $ac_c" 1>&6
1980 ac_cv_path_SDB="$SDB" # Let the user override the test with a path.
1983 ac_cv_path_SDB="$SDB" # Let the user override the test with a dos path.
1986 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1988 for ac_dir in $ac_dummy; do
1989 test -z "$ac_dir" && ac_dir=.
1990 if test -f $ac_dir/$ac_word; then
1991 ac_cv_path_SDB="$ac_dir/$ac_word"
1996 test -z "$ac_cv_path_SDB" && ac_cv_path_SDB="no"
2000 SDB="$ac_cv_path_SDB"
2001 if test -n "$SDB"; then
2002 echo "$ac_t""$SDB" 1>&6
2004 echo "$ac_t""no" 1>&6
2008 if test $GDB != no ; then
2010 elif test $DBX != no ; then
2012 elif test $SDB != no ; then
2020 # The following templates should be used with newer automakes
2021 # instead of acconfig.h
2023 #AH_TEMPLATE([sig_atomic_t],
2024 # [/* Define to `int' if <signal.h> doesn't define.])
2025 #AH_TEMPLATE([HAVE_START_COLOR],
2026 # [Define if you have start_color, as a function or macro.])
2027 #AH_TEMPLATE([HAVE_TYPEAHEAD],
2028 # [Define if you have typeahead, as a function or macro.])
2029 #AH_TEMPLATE([HAVE_BKGDSET],
2030 # [Define if you have bkgdset, as a function or macro.])
2031 #AH_TEMPLATE([HAVE_CURS_SET],
2032 # [Define if you have curs_set, as a function or macro.])
2033 #AH_TEMPLATE([HAVE_META],
2034 # [Define if you have meta, as a function or macro.])
2035 #AH_TEMPLATE([HAVE_USE_DEFAULT_COLORS],
2036 # [Define if you have use_default_colors, as a function or macro.])
2037 #AH_TEMPLATE([HAVE_RESIZETERM],
2038 # [Define if you have resizeterm, as a function or macro.])
2039 #AH_TEMPLATE([SIG_ATOMIC_VOLATILE_T],
2040 # [Some systems declare sig_atomic_t as volatile, some others -- no.
2041 # This define will have value `sig_atomic_t' or
2042 # `volatile sig_atomic_t' accordingly.])
2043 #AH_TEMPLATE([ICONV_NONTRANS],
2044 # [Define as 1 if iconv() only converts exactly and we should treat
2045 # all return values other than (size_t)(-1) as equivalent.])
2048 ac_aux_path_sendmail=/usr/sbin:/usr/lib
2049 # Extract the first word of "sendmail", so it can be a program name with args.
2050 set dummy sendmail; ac_word=$2
2051 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2052 echo "configure:2053: checking for $ac_word" >&5
2053 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2054 echo $ac_n "(cached) $ac_c" 1>&6
2058 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2061 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
2064 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2065 ac_dummy="$PATH:$ac_aux_path_sendmail"
2066 for ac_dir in $ac_dummy; do
2067 test -z "$ac_dir" && ac_dir=.
2068 if test -f $ac_dir/$ac_word; then
2069 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2074 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/sbin/sendmail"
2078 SENDMAIL="$ac_cv_path_SENDMAIL"
2079 if test -n "$SENDMAIL"; then
2080 echo "$ac_t""$SENDMAIL" 1>&6
2082 echo "$ac_t""no" 1>&6
2085 cat >> confdefs.h <<EOF
2086 #define SENDMAIL "$ac_cv_path_SENDMAIL"
2091 if test -f $srcdir/EXPORTABLE ; then
2096 # Check whether --enable-pgp or --disable-pgp was given.
2097 if test "${enable_pgp+set}" = set; then
2098 enableval="$enable_pgp"
2099 if test x$enableval = xno ; then
2106 if test x$have_pgp != xno ; then
2107 cat >> confdefs.h <<\EOF
2108 #define CRYPT_BACKEND_CLASSIC_PGP 1
2111 PGPAUX_TARGET="pgpring pgpewrap"
2112 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pgp.o pgpinvoke.o pgpkey.o pgplib.o gnupgparse.o pgpmicalg.o pgppacket.o"
2115 # Check whether --enable-smime or --disable-smime was given.
2116 if test "${enable_smime+set}" = set; then
2117 enableval="$enable_smime"
2118 if test x$enableval = xno ; then
2125 if test x$have_smime != xno ; then
2126 cat >> confdefs.h <<\EOF
2127 #define CRYPT_BACKEND_CLASSIC_SMIME 1
2130 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS smime.o "
2131 SMIMEAUX_TARGET="smime_keys"
2134 # Check whether --with-mixmaster or --without-mixmaster was given.
2135 if test "${with_mixmaster+set}" = set; then
2136 withval="$with_mixmaster"
2137 if test -x "$withval" ; then
2138 MIXMASTER="$withval"
2140 MIXMASTER="mixmaster"
2142 OPS="$OPS \$(srcdir)/OPS.MIX"
2143 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS remailer.o"
2144 cat >> confdefs.h <<EOF
2145 #define MIXMASTER "$MIXMASTER"
2153 # We now require all OPS
2154 OPS="$OPS \$(srcdir)/OPS.PGP \$(srcdir)/OPS.SMIME \$(srcdir)/OPS.CRYPT "
2161 cat >> confdefs.h <<EOF
2162 #define SUBVERSION "$SUBVERSION"
2167 # Extract the first word of "ispell", so it can be a program name with args.
2168 set dummy ispell; ac_word=$2
2169 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2170 echo "configure:2171: checking for $ac_word" >&5
2171 if eval "test \"`echo '$''{'ac_cv_path_ISPELL'+set}'`\" = set"; then
2172 echo $ac_n "(cached) $ac_c" 1>&6
2176 ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a path.
2179 ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a dos path.
2182 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2184 for ac_dir in $ac_dummy; do
2185 test -z "$ac_dir" && ac_dir=.
2186 if test -f $ac_dir/$ac_word; then
2187 ac_cv_path_ISPELL="$ac_dir/$ac_word"
2192 test -z "$ac_cv_path_ISPELL" && ac_cv_path_ISPELL="no"
2196 ISPELL="$ac_cv_path_ISPELL"
2197 if test -n "$ISPELL"; then
2198 echo "$ac_t""$ISPELL" 1>&6
2200 echo "$ac_t""no" 1>&6
2203 if test $ISPELL != no; then
2204 cat >> confdefs.h <<EOF
2205 #define ISPELL "$ISPELL"
2210 # Check whether --with-slang or --without-slang was given.
2211 if test "${with_slang+set}" = set; then
2212 withval="$with_slang"
2213 echo $ac_n "checking if this is a BSD system""... $ac_c" 1>&6
2214 echo "configure:2215: checking if this is a BSD system" >&5
2215 if eval "test \"`echo '$''{'mutt_cv_bsdish'+set}'`\" = set"; then
2216 echo $ac_n "(cached) $ac_c" 1>&6
2218 if test "$cross_compiling" = yes; then
2221 cat > conftest.$ac_ext <<EOF
2222 #line 2223 "configure"
2223 #include "confdefs.h"
2224 #include <sys/param.h>
2235 if { (eval echo configure:2236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2239 echo "configure: failed program was:" >&5
2240 cat conftest.$ac_ext >&5
2249 echo "$ac_t""$mutt_cv_bsdish" 1>&6
2251 echo $ac_n "checking for S-Lang""... $ac_c" 1>&6
2252 echo "configure:2253: checking for S-Lang" >&5
2253 if test $withval = yes; then
2254 if test -d $srcdir/../slang; then
2255 mutt_cv_slang=$srcdir/../slang/src
2256 CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
2257 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
2259 if test -d $mutt_cv_prefix/include/slang; then
2260 CPPFLAGS="$CPPFLAGS -I$mutt_cv_prefix/include/slang"
2261 elif test -d /usr/include/slang; then
2262 CPPFLAGS="$CPPFLAGS -I/usr/include/slang"
2267 if test -f $withval/src/slang.h; then
2268 mutt_cv_slang=$withval/src
2269 CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
2270 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
2272 mutt_cv_slang=$withval
2273 if test -d $withval/include/slang; then
2274 CPPFLAGS="$CPPFLAGS -I${withval}/include/slang"
2275 elif test -d $withval/include; then
2276 CPPFLAGS="$CPPFLAGS -I${withval}/include"
2278 LDFLAGS="$LDFLAGS -L${withval}/lib"
2281 echo "$ac_t""$mutt_cv_slang" 1>&6
2282 if test $mutt_cv_bsdish = yes; then
2283 echo $ac_n "checking for main in -ltermlib""... $ac_c" 1>&6
2284 echo "configure:2285: checking for main in -ltermlib" >&5
2285 ac_lib_var=`echo termlib'_'main | sed 'y%./+-%__p_%'`
2286 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2287 echo $ac_n "(cached) $ac_c" 1>&6
2289 ac_save_LIBS="$LIBS"
2290 LIBS="-ltermlib $LIBS"
2291 cat > conftest.$ac_ext <<EOF
2292 #line 2293 "configure"
2293 #include "confdefs.h"
2299 if { (eval echo configure:2300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2301 eval "ac_cv_lib_$ac_lib_var=yes"
2303 echo "configure: failed program was:" >&5
2304 cat conftest.$ac_ext >&5
2306 eval "ac_cv_lib_$ac_lib_var=no"
2309 LIBS="$ac_save_LIBS"
2312 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2313 echo "$ac_t""yes" 1>&6
2314 ac_tr_lib=HAVE_LIB`echo termlib | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2315 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2316 cat >> confdefs.h <<EOF
2317 #define $ac_tr_lib 1
2320 LIBS="-ltermlib $LIBS"
2323 echo "$ac_t""no" 1>&6
2327 cat >> confdefs.h <<\EOF
2328 #define USE_SLANG_CURSES 1
2331 cat >> confdefs.h <<\EOF
2332 #define HAVE_COLOR 1
2335 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
2338 echo $ac_n "checking for SLtt_get_terminfo in -lslang""... $ac_c" 1>&6
2339 echo "configure:2340: checking for SLtt_get_terminfo in -lslang" >&5
2340 ac_lib_var=`echo slang'_'SLtt_get_terminfo | sed 'y%./+-%__p_%'`
2341 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2342 echo $ac_n "(cached) $ac_c" 1>&6
2344 ac_save_LIBS="$LIBS"
2345 LIBS="-lslang -lm $LIBS"
2346 cat > conftest.$ac_ext <<EOF
2347 #line 2348 "configure"
2348 #include "confdefs.h"
2349 /* Override any gcc2 internal prototype to avoid an error. */
2350 /* We use char because int might match the return type of a gcc2
2351 builtin and then its argument prototype would still apply. */
2352 char SLtt_get_terminfo();
2358 if { (eval echo configure:2359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2360 eval "ac_cv_lib_$ac_lib_var=yes"
2362 echo "configure: failed program was:" >&5
2363 cat conftest.$ac_ext >&5
2365 eval "ac_cv_lib_$ac_lib_var=no"
2368 LIBS="$ac_save_LIBS"
2371 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2372 echo "$ac_t""yes" 1>&6
2373 MUTTLIBS="$MUTTLIBS -lslang -lm"
2375 echo "$ac_t""no" 1>&6
2376 { echo "configure: error: unable to compile. check config.log" 1>&2; exit 1; }
2383 # Check whether --with-curses or --without-curses was given.
2384 if test "${with_curses+set}" = set; then
2385 withval="$with_curses"
2386 if test $withval != yes; then
2387 mutt_cv_curses=$withval
2389 if test x$mutt_cv_curses != x/usr; then
2390 LDFLAGS="-L${mutt_cv_curses}/lib $LDFLAGS"
2391 CPPFLAGS="$CPPFLAGS -I${mutt_cv_curses}/include"
2396 echo $ac_n "checking for initscr""... $ac_c" 1>&6
2397 echo "configure:2398: checking for initscr" >&5
2398 if eval "test \"`echo '$''{'ac_cv_func_initscr'+set}'`\" = set"; then
2399 echo $ac_n "(cached) $ac_c" 1>&6
2401 cat > conftest.$ac_ext <<EOF
2402 #line 2403 "configure"
2403 #include "confdefs.h"
2404 /* System header to define __stub macros and hopefully few prototypes,
2405 which can conflict with char initscr(); below. */
2407 /* Override any gcc2 internal prototype to avoid an error. */
2408 /* We use char because int might match the return type of a gcc2
2409 builtin and then its argument prototype would still apply. */
2414 /* The GNU C library defines this for functions which it implements
2415 to always fail with ENOSYS. Some functions are actually named
2416 something starting with __ and the normal name is an alias. */
2417 #if defined (__stub_initscr) || defined (__stub___initscr)
2425 if { (eval echo configure:2426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2427 eval "ac_cv_func_initscr=yes"
2429 echo "configure: failed program was:" >&5
2430 cat conftest.$ac_ext >&5
2432 eval "ac_cv_func_initscr=no"
2437 if eval "test \"`echo '$ac_cv_func_'initscr`\" = yes"; then
2438 echo "$ac_t""yes" 1>&6
2441 echo "$ac_t""no" 1>&6
2443 cf_ncurses="ncurses"
2444 for lib in ncurses ncursesw
2446 echo $ac_n "checking for waddnwstr in -l$lib""... $ac_c" 1>&6
2447 echo "configure:2448: checking for waddnwstr in -l$lib" >&5
2448 ac_lib_var=`echo $lib'_'waddnwstr | sed 'y%./+-%__p_%'`
2449 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2450 echo $ac_n "(cached) $ac_c" 1>&6
2452 ac_save_LIBS="$LIBS"
2454 cat > conftest.$ac_ext <<EOF
2455 #line 2456 "configure"
2456 #include "confdefs.h"
2457 /* Override any gcc2 internal prototype to avoid an error. */
2458 /* We use char because int might match the return type of a gcc2
2459 builtin and then its argument prototype would still apply. */
2466 if { (eval echo configure:2467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2468 eval "ac_cv_lib_$ac_lib_var=yes"
2470 echo "configure: failed program was:" >&5
2471 cat conftest.$ac_ext >&5
2473 eval "ac_cv_lib_$ac_lib_var=no"
2476 LIBS="$ac_save_LIBS"
2479 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2480 echo "$ac_t""yes" 1>&6
2481 cf_ncurses="$lib"; break
2483 echo "$ac_t""no" 1>&6
2487 echo $ac_n "checking for initscr in -l$cf_ncurses""... $ac_c" 1>&6
2488 echo "configure:2489: checking for initscr in -l$cf_ncurses" >&5
2489 ac_lib_var=`echo $cf_ncurses'_'initscr | sed 'y%./+-%__p_%'`
2490 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2491 echo $ac_n "(cached) $ac_c" 1>&6
2493 ac_save_LIBS="$LIBS"
2494 LIBS="-l$cf_ncurses $LIBS"
2495 cat > conftest.$ac_ext <<EOF
2496 #line 2497 "configure"
2497 #include "confdefs.h"
2498 /* Override any gcc2 internal prototype to avoid an error. */
2499 /* We use char because int might match the return type of a gcc2
2500 builtin and then its argument prototype would still apply. */
2507 if { (eval echo configure:2508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2509 eval "ac_cv_lib_$ac_lib_var=yes"
2511 echo "configure: failed program was:" >&5
2512 cat conftest.$ac_ext >&5
2514 eval "ac_cv_lib_$ac_lib_var=no"
2517 LIBS="$ac_save_LIBS"
2520 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2521 echo "$ac_t""yes" 1>&6
2522 MUTTLIBS="$MUTTLIBS -l$cf_ncurses"
2523 if test x$mutt_cv_curses = x/usr -a -d /usr/include/ncurses; then
2524 CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
2527 if test "$cf_ncurses" = ncursesw; then
2528 for ac_hdr in ncursesw/ncurses.h
2530 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2531 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2532 echo "configure:2533: checking for $ac_hdr" >&5
2533 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2534 echo $ac_n "(cached) $ac_c" 1>&6
2536 cat > conftest.$ac_ext <<EOF
2537 #line 2538 "configure"
2538 #include "confdefs.h"
2541 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2542 { (eval echo configure:2543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2543 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2544 if test -z "$ac_err"; then
2546 eval "ac_cv_header_$ac_safe=yes"
2549 echo "configure: failed program was:" >&5
2550 cat conftest.$ac_ext >&5
2552 eval "ac_cv_header_$ac_safe=no"
2556 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2557 echo "$ac_t""yes" 1>&6
2558 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2559 cat >> confdefs.h <<EOF
2560 #define $ac_tr_hdr 1
2562 cf_cv_ncurses_header="ncursesw/ncurses.h"
2564 echo "$ac_t""no" 1>&6
2569 for ac_hdr in ncurses.h
2571 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2572 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2573 echo "configure:2574: checking for $ac_hdr" >&5
2574 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2575 echo $ac_n "(cached) $ac_c" 1>&6
2577 cat > conftest.$ac_ext <<EOF
2578 #line 2579 "configure"
2579 #include "confdefs.h"
2582 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2583 { (eval echo configure:2584: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2584 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2585 if test -z "$ac_err"; then
2587 eval "ac_cv_header_$ac_safe=yes"
2590 echo "configure: failed program was:" >&5
2591 cat conftest.$ac_ext >&5
2593 eval "ac_cv_header_$ac_safe=no"
2597 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2598 echo "$ac_t""yes" 1>&6
2599 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2600 cat >> confdefs.h <<EOF
2601 #define $ac_tr_hdr 1
2603 cf_cv_ncurses_header="ncurses.h"
2605 echo "$ac_t""no" 1>&6
2611 echo "$ac_t""no" 1>&6
2613 echo $ac_n "checking for initscr""... $ac_c" 1>&6
2614 echo "configure:2615: checking for initscr" >&5
2615 if eval "test \"`echo '$''{'ac_cv_func_initscr'+set}'`\" = set"; then
2616 echo $ac_n "(cached) $ac_c" 1>&6
2618 cat > conftest.$ac_ext <<EOF
2619 #line 2620 "configure"
2620 #include "confdefs.h"
2621 /* System header to define __stub macros and hopefully few prototypes,
2622 which can conflict with char initscr(); below. */
2624 /* Override any gcc2 internal prototype to avoid an error. */
2625 /* We use char because int might match the return type of a gcc2
2626 builtin and then its argument prototype would still apply. */
2631 /* The GNU C library defines this for functions which it implements
2632 to always fail with ENOSYS. Some functions are actually named
2633 something starting with __ and the normal name is an alias. */
2634 #if defined (__stub_initscr) || defined (__stub___initscr)
2642 if { (eval echo configure:2643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2644 eval "ac_cv_func_initscr=yes"
2646 echo "configure: failed program was:" >&5
2647 cat conftest.$ac_ext >&5
2649 eval "ac_cv_func_initscr=no"
2654 if eval "test \"`echo '$ac_cv_func_'initscr`\" = yes"; then
2655 echo "$ac_t""yes" 1>&6
2658 echo "$ac_t""no" 1>&6
2660 case $host_os in #(vi
2662 echo $ac_n "checking for tgoto in -lmytinfo""... $ac_c" 1>&6
2663 echo "configure:2664: checking for tgoto in -lmytinfo" >&5
2664 ac_lib_var=`echo mytinfo'_'tgoto | sed 'y%./+-%__p_%'`
2665 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2666 echo $ac_n "(cached) $ac_c" 1>&6
2668 ac_save_LIBS="$LIBS"
2669 LIBS="-lmytinfo $LIBS"
2670 cat > conftest.$ac_ext <<EOF
2671 #line 2672 "configure"
2672 #include "confdefs.h"
2673 /* Override any gcc2 internal prototype to avoid an error. */
2674 /* We use char because int might match the return type of a gcc2
2675 builtin and then its argument prototype would still apply. */
2682 if { (eval echo configure:2683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2684 eval "ac_cv_lib_$ac_lib_var=yes"
2686 echo "configure: failed program was:" >&5
2687 cat conftest.$ac_ext >&5
2689 eval "ac_cv_lib_$ac_lib_var=no"
2692 LIBS="$ac_save_LIBS"
2695 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2696 echo "$ac_t""yes" 1>&6
2697 LIBS="-lmytinfo $LIBS"
2699 echo "$ac_t""no" 1>&6
2704 echo $ac_n "checking for initscr in -lcur_colr""... $ac_c" 1>&6
2705 echo "configure:2706: checking for initscr in -lcur_colr" >&5
2706 ac_lib_var=`echo cur_colr'_'initscr | sed 'y%./+-%__p_%'`
2707 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2708 echo $ac_n "(cached) $ac_c" 1>&6
2710 ac_save_LIBS="$LIBS"
2711 LIBS="-lcur_colr $LIBS"
2712 cat > conftest.$ac_ext <<EOF
2713 #line 2714 "configure"
2714 #include "confdefs.h"
2715 /* Override any gcc2 internal prototype to avoid an error. */
2716 /* We use char because int might match the return type of a gcc2
2717 builtin and then its argument prototype would still apply. */
2724 if { (eval echo configure:2725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2726 eval "ac_cv_lib_$ac_lib_var=yes"
2728 echo "configure: failed program was:" >&5
2729 cat conftest.$ac_ext >&5
2731 eval "ac_cv_lib_$ac_lib_var=no"
2734 LIBS="$ac_save_LIBS"
2737 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2738 echo "$ac_t""yes" 1>&6
2740 LIBS="-lcur_colr $LIBS"
2741 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
2742 ac_cv_func_initscr=yes
2745 echo "$ac_t""no" 1>&6
2747 echo $ac_n "checking for initscr in -lHcurses""... $ac_c" 1>&6
2748 echo "configure:2749: checking for initscr in -lHcurses" >&5
2749 ac_lib_var=`echo Hcurses'_'initscr | sed 'y%./+-%__p_%'`
2750 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2751 echo $ac_n "(cached) $ac_c" 1>&6
2753 ac_save_LIBS="$LIBS"
2754 LIBS="-lHcurses $LIBS"
2755 cat > conftest.$ac_ext <<EOF
2756 #line 2757 "configure"
2757 #include "confdefs.h"
2758 /* Override any gcc2 internal prototype to avoid an error. */
2759 /* We use char because int might match the return type of a gcc2
2760 builtin and then its argument prototype would still apply. */
2767 if { (eval echo configure:2768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2769 eval "ac_cv_lib_$ac_lib_var=yes"
2771 echo "configure: failed program was:" >&5
2772 cat conftest.$ac_ext >&5
2774 eval "ac_cv_lib_$ac_lib_var=no"
2777 LIBS="$ac_save_LIBS"
2780 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2781 echo "$ac_t""yes" 1>&6
2783 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
2784 LIBS="-lHcurses $LIBS"
2785 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
2786 ac_cv_func_initscr=yes
2789 echo "$ac_t""no" 1>&6
2795 linux*) # Suse Linux does not follow /usr/lib convention
2800 if test ".$With5lib" != ".no" ; then
2801 if test -d /usr/5lib ; then
2803 CPPFLAGS="$CPPFLAGS -I/usr/5include"
2804 LIBS="$LIBS -L/usr/5lib"
2808 if test ".$ac_cv_func_initscr" != .yes ; then
2809 cf_save_LIBS="$LIBS"
2813 # Check for library containing tgoto. Do this before curses library
2814 # because it may be needed to link the test-case for initscr.
2815 echo $ac_n "checking for tgoto""... $ac_c" 1>&6
2816 echo "configure:2817: checking for tgoto" >&5
2817 if eval "test \"`echo '$''{'ac_cv_func_tgoto'+set}'`\" = set"; then
2818 echo $ac_n "(cached) $ac_c" 1>&6
2820 cat > conftest.$ac_ext <<EOF
2821 #line 2822 "configure"
2822 #include "confdefs.h"
2823 /* System header to define __stub macros and hopefully few prototypes,
2824 which can conflict with char tgoto(); below. */
2826 /* Override any gcc2 internal prototype to avoid an error. */
2827 /* We use char because int might match the return type of a gcc2
2828 builtin and then its argument prototype would still apply. */
2833 /* The GNU C library defines this for functions which it implements
2834 to always fail with ENOSYS. Some functions are actually named
2835 something starting with __ and the normal name is an alias. */
2836 #if defined (__stub_tgoto) || defined (__stub___tgoto)
2844 if { (eval echo configure:2845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2846 eval "ac_cv_func_tgoto=yes"
2848 echo "configure: failed program was:" >&5
2849 cat conftest.$ac_ext >&5
2851 eval "ac_cv_func_tgoto=no"
2856 if eval "test \"`echo '$ac_cv_func_'tgoto`\" = yes"; then
2857 echo "$ac_t""yes" 1>&6
2858 cf_term_lib=predefined
2860 echo "$ac_t""no" 1>&6
2862 for cf_term_lib in termcap termlib unknown
2864 echo $ac_n "checking for tgoto in -l$cf_term_lib""... $ac_c" 1>&6
2865 echo "configure:2866: checking for tgoto in -l$cf_term_lib" >&5
2866 ac_lib_var=`echo $cf_term_lib'_'tgoto | sed 'y%./+-%__p_%'`
2867 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2868 echo $ac_n "(cached) $ac_c" 1>&6
2870 ac_save_LIBS="$LIBS"
2871 LIBS="-l$cf_term_lib $LIBS"
2872 cat > conftest.$ac_ext <<EOF
2873 #line 2874 "configure"
2874 #include "confdefs.h"
2875 /* Override any gcc2 internal prototype to avoid an error. */
2876 /* We use char because int might match the return type of a gcc2
2877 builtin and then its argument prototype would still apply. */
2884 if { (eval echo configure:2885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2886 eval "ac_cv_lib_$ac_lib_var=yes"
2888 echo "configure: failed program was:" >&5
2889 cat conftest.$ac_ext >&5
2891 eval "ac_cv_lib_$ac_lib_var=no"
2894 LIBS="$ac_save_LIBS"
2897 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2898 echo "$ac_t""yes" 1>&6
2901 echo "$ac_t""no" 1>&6
2909 # Check for library containing initscr
2910 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
2911 for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
2913 echo $ac_n "checking for initscr in -l$cf_curs_lib""... $ac_c" 1>&6
2914 echo "configure:2915: checking for initscr in -l$cf_curs_lib" >&5
2915 ac_lib_var=`echo $cf_curs_lib'_'initscr | sed 'y%./+-%__p_%'`
2916 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2917 echo $ac_n "(cached) $ac_c" 1>&6
2919 ac_save_LIBS="$LIBS"
2920 LIBS="-l$cf_curs_lib $LIBS"
2921 cat > conftest.$ac_ext <<EOF
2922 #line 2923 "configure"
2923 #include "confdefs.h"
2924 /* Override any gcc2 internal prototype to avoid an error. */
2925 /* We use char because int might match the return type of a gcc2
2926 builtin and then its argument prototype would still apply. */
2933 if { (eval echo configure:2934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2935 eval "ac_cv_lib_$ac_lib_var=yes"
2937 echo "configure: failed program was:" >&5
2938 cat conftest.$ac_ext >&5
2940 eval "ac_cv_lib_$ac_lib_var=no"
2943 LIBS="$ac_save_LIBS"
2946 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2947 echo "$ac_t""yes" 1>&6
2950 echo "$ac_t""no" 1>&6
2954 test $cf_curs_lib = unknown && { echo "configure: error: no curses library found" 1>&2; exit 1; }
2956 LIBS="-l$cf_curs_lib $cf_save_LIBS"
2957 if test "$cf_term_lib" = unknown ; then
2958 echo $ac_n "checking if we can link with $cf_curs_lib library""... $ac_c" 1>&6
2959 echo "configure:2960: checking if we can link with $cf_curs_lib library" >&5
2960 cat > conftest.$ac_ext <<EOF
2961 #line 2962 "configure"
2962 #include "confdefs.h"
2963 #include <${cf_cv_ncurses_header-curses.h}>
2968 if { (eval echo configure:2969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2972 echo "configure: failed program was:" >&5
2973 cat conftest.$ac_ext >&5
2978 echo "$ac_t""$cf_result" 1>&6
2979 test $cf_result = no && { echo "configure: error: Cannot link curses library" 1>&2; exit 1; }
2980 elif test "$cf_term_lib" != predefined ; then
2981 echo $ac_n "checking if we need both $cf_curs_lib and $cf_term_lib libraries""... $ac_c" 1>&6
2982 echo "configure:2983: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
2983 cat > conftest.$ac_ext <<EOF
2984 #line 2985 "configure"
2985 #include "confdefs.h"
2986 #include <${cf_cv_ncurses_header-curses.h}>
2988 initscr(); tgoto((char *)0, 0, 0);
2991 if { (eval echo configure:2992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2995 echo "configure: failed program was:" >&5
2996 cat conftest.$ac_ext >&5
2999 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
3000 cat > conftest.$ac_ext <<EOF
3001 #line 3002 "configure"
3002 #include "confdefs.h"
3003 #include <${cf_cv_ncurses_header-curses.h}>
3008 if { (eval echo configure:3009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3012 echo "configure: failed program was:" >&5
3013 cat conftest.$ac_ext >&5
3021 echo "$ac_t""$cf_result" 1>&6
3035 LIBS="$LIBS $MUTTLIBS"
3036 for ac_func in start_color typeahead bkgdset curs_set meta use_default_colors resizeterm
3039 echo $ac_n "checking for $ac_func declaration""... $ac_c" 1>&6
3040 echo "configure:3041: checking for $ac_func declaration" >&5
3041 if eval "test \"`echo '$''{'ac_cv_func_decl_$ac_func'+set}'`\" = set"; then
3042 echo $ac_n "(cached) $ac_c" 1>&6
3044 cat > conftest.$ac_ext <<EOF
3045 #line 3046 "configure"
3046 #include "confdefs.h"
3047 #include <${cf_cv_ncurses_header-curses.h}>
3050 extern int ${ac_func}();
3054 if { (eval echo configure:3055: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3057 cat > conftest.$ac_ext <<EOF
3058 #line 3059 "configure"
3059 #include "confdefs.h"
3060 #include <${cf_cv_ncurses_header-curses.h}>
3063 int (*p)() = ${ac_func};
3067 if { (eval echo configure:3068: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3070 eval "ac_cv_func_decl_$ac_func=yes"
3072 echo "configure: failed program was:" >&5
3073 cat conftest.$ac_ext >&5
3076 eval "ac_cv_func_decl_$ac_func=no"
3080 echo "configure: failed program was:" >&5
3081 cat conftest.$ac_ext >&5
3084 eval "ac_cv_func_decl_$ac_func=yes"
3089 if eval "test \"`echo '$ac_cv_func_'decl_$ac_func`\" = yes"; then
3090 echo "$ac_t""yes" 1>&6
3093 ac_tr_func=`echo HAVE_$ac_func | tr '[a-z]' '[A-Z]'`
3095 cat >> confdefs.h <<EOF
3096 #define $ac_tr_func 1
3100 echo "$ac_t""no" 1>&6
3104 if test "$ac_cv_func_decl_start_color" = yes; then
3105 cat >> confdefs.h <<\EOF
3106 #define HAVE_COLOR 1
3110 if test "$ac_cv_func_decl_resizeterm" = yes; then
3111 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
3118 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3119 echo "configure:3120: checking for ANSI C header files" >&5
3120 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3121 echo $ac_n "(cached) $ac_c" 1>&6
3123 cat > conftest.$ac_ext <<EOF
3124 #line 3125 "configure"
3125 #include "confdefs.h"
3131 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3132 { (eval echo configure:3133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3133 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3134 if test -z "$ac_err"; then
3136 ac_cv_header_stdc=yes
3139 echo "configure: failed program was:" >&5
3140 cat conftest.$ac_ext >&5
3142 ac_cv_header_stdc=no
3146 if test $ac_cv_header_stdc = yes; then
3147 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3148 cat > conftest.$ac_ext <<EOF
3149 #line 3150 "configure"
3150 #include "confdefs.h"
3153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3154 egrep "memchr" >/dev/null 2>&1; then
3158 ac_cv_header_stdc=no
3164 if test $ac_cv_header_stdc = yes; then
3165 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3166 cat > conftest.$ac_ext <<EOF
3167 #line 3168 "configure"
3168 #include "confdefs.h"
3171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3172 egrep "free" >/dev/null 2>&1; then
3176 ac_cv_header_stdc=no
3182 if test $ac_cv_header_stdc = yes; then
3183 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3184 if test "$cross_compiling" = yes; then
3187 cat > conftest.$ac_ext <<EOF
3188 #line 3189 "configure"
3189 #include "confdefs.h"
3191 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3192 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3193 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3194 int main () { int i; for (i = 0; i < 256; i++)
3195 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3199 if { (eval echo configure:3200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3203 echo "configure: failed program was:" >&5
3204 cat conftest.$ac_ext >&5
3206 ac_cv_header_stdc=no
3214 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3215 if test $ac_cv_header_stdc = yes; then
3216 cat >> confdefs.h <<\EOF
3217 #define STDC_HEADERS 1
3223 for ac_hdr in stdarg.h sys/ioctl.h ioctl.h sysexits.h
3225 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3226 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3227 echo "configure:3228: checking for $ac_hdr" >&5
3228 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3229 echo $ac_n "(cached) $ac_c" 1>&6
3231 cat > conftest.$ac_ext <<EOF
3232 #line 3233 "configure"
3233 #include "confdefs.h"
3236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3237 { (eval echo configure:3238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3238 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3239 if test -z "$ac_err"; then
3241 eval "ac_cv_header_$ac_safe=yes"
3244 echo "configure: failed program was:" >&5
3245 cat conftest.$ac_ext >&5
3247 eval "ac_cv_header_$ac_safe=no"
3251 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3252 echo "$ac_t""yes" 1>&6
3253 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3254 cat >> confdefs.h <<EOF
3255 #define $ac_tr_hdr 1
3259 echo "$ac_t""no" 1>&6
3263 for ac_hdr in sys/time.h sys/resource.h
3265 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3266 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3267 echo "configure:3268: checking for $ac_hdr" >&5
3268 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3269 echo $ac_n "(cached) $ac_c" 1>&6
3271 cat > conftest.$ac_ext <<EOF
3272 #line 3273 "configure"
3273 #include "confdefs.h"
3276 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3277 { (eval echo configure:3278: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3278 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3279 if test -z "$ac_err"; then
3281 eval "ac_cv_header_$ac_safe=yes"
3284 echo "configure: failed program was:" >&5
3285 cat conftest.$ac_ext >&5
3287 eval "ac_cv_header_$ac_safe=no"
3291 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3292 echo "$ac_t""yes" 1>&6
3293 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3294 cat >> confdefs.h <<EOF
3295 #define $ac_tr_hdr 1
3299 echo "$ac_t""no" 1>&6
3303 for ac_hdr in unix.h
3305 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3306 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3307 echo "configure:3308: checking for $ac_hdr" >&5
3308 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3309 echo $ac_n "(cached) $ac_c" 1>&6
3311 cat > conftest.$ac_ext <<EOF
3312 #line 3313 "configure"
3313 #include "confdefs.h"
3316 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3317 { (eval echo configure:3318: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3318 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3319 if test -z "$ac_err"; then
3321 eval "ac_cv_header_$ac_safe=yes"
3324 echo "configure: failed program was:" >&5
3325 cat conftest.$ac_ext >&5
3327 eval "ac_cv_header_$ac_safe=no"
3331 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3332 echo "$ac_t""yes" 1>&6
3333 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3334 cat >> confdefs.h <<EOF
3335 #define $ac_tr_hdr 1
3339 echo "$ac_t""no" 1>&6
3344 for ac_func in setrlimit getsid isctype
3346 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3347 echo "configure:3348: checking for $ac_func" >&5
3348 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3349 echo $ac_n "(cached) $ac_c" 1>&6
3351 cat > conftest.$ac_ext <<EOF
3352 #line 3353 "configure"
3353 #include "confdefs.h"
3354 /* System header to define __stub macros and hopefully few prototypes,
3355 which can conflict with char $ac_func(); below. */
3357 /* Override any gcc2 internal prototype to avoid an error. */
3358 /* We use char because int might match the return type of a gcc2
3359 builtin and then its argument prototype would still apply. */
3364 /* The GNU C library defines this for functions which it implements
3365 to always fail with ENOSYS. Some functions are actually named
3366 something starting with __ and the normal name is an alias. */
3367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3375 if { (eval echo configure:3376: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3377 eval "ac_cv_func_$ac_func=yes"
3379 echo "configure: failed program was:" >&5
3380 cat conftest.$ac_ext >&5
3382 eval "ac_cv_func_$ac_func=no"
3387 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3388 echo "$ac_t""yes" 1>&6
3389 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3390 cat >> confdefs.h <<EOF
3391 #define $ac_tr_func 1
3395 echo "$ac_t""no" 1>&6
3400 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3401 echo "configure:3402: checking return type of signal handlers" >&5
3402 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3403 echo $ac_n "(cached) $ac_c" 1>&6
3405 cat > conftest.$ac_ext <<EOF
3406 #line 3407 "configure"
3407 #include "confdefs.h"
3408 #include <sys/types.h>
3414 extern "C" void (*signal (int, void (*)(int)))(int);
3416 void (*signal ()) ();
3423 if { (eval echo configure:3424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3425 ac_cv_type_signal=void
3427 echo "configure: failed program was:" >&5
3428 cat conftest.$ac_ext >&5
3430 ac_cv_type_signal=int
3435 echo "$ac_t""$ac_cv_type_signal" 1>&6
3436 cat >> confdefs.h <<EOF
3437 #define RETSIGTYPE $ac_cv_type_signal
3442 echo $ac_n "checking for sig_atomic_t in signal.h""... $ac_c" 1>&6
3443 echo "configure:3444: checking for sig_atomic_t in signal.h" >&5
3444 cat > conftest.$ac_ext <<EOF
3445 #line 3446 "configure"
3446 #include "confdefs.h"
3449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3450 egrep "sig_atomic_t" >/dev/null 2>&1; then
3453 ac_cv_type_sig_atomic_t=yes;
3454 cat > conftest.$ac_ext <<EOF
3455 #line 3456 "configure"
3456 #include "confdefs.h"
3459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3460 egrep "volatile.*sig_atomic_t" >/dev/null 2>&1; then
3463 is_sig_atomic_t_volatile=yes;
3464 echo "$ac_t""yes, volatile" 1>&6
3469 is_sig_atomic_t_volatile=no;
3470 echo "$ac_t""yes, non volatile" 1>&6
3479 echo "$ac_t""no" 1>&6
3480 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
3481 echo "configure:3482: checking for sig_atomic_t" >&5
3482 if eval "test \"`echo '$''{'ac_cv_type_sig_atomic_t'+set}'`\" = set"; then
3483 echo $ac_n "(cached) $ac_c" 1>&6
3485 cat > conftest.$ac_ext <<EOF
3486 #line 3487 "configure"
3487 #include "confdefs.h"
3488 #include <sys/types.h>
3494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3495 egrep "(^|[^a-zA-Z_0-9])sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3497 ac_cv_type_sig_atomic_t=yes
3500 ac_cv_type_sig_atomic_t=no
3505 echo "$ac_t""$ac_cv_type_sig_atomic_t" 1>&6
3506 if test $ac_cv_type_sig_atomic_t = no; then
3507 cat >> confdefs.h <<\EOF
3508 #define sig_atomic_t int
3513 is_sig_atomic_t_volatile=no
3518 if test $is_sig_atomic_t_volatile = 'yes'
3520 cat >> confdefs.h <<\EOF
3521 #define SIG_ATOMIC_VOLATILE_T sig_atomic_t
3525 cat >> confdefs.h <<\EOF
3526 #define SIG_ATOMIC_VOLATILE_T volatile sig_atomic_t
3531 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3532 echo "configure:3533: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3533 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
3534 echo $ac_n "(cached) $ac_c" 1>&6
3536 cat > conftest.$ac_ext <<EOF
3537 #line 3538 "configure"
3538 #include "confdefs.h"
3539 #include <sys/types.h>
3541 /* NetBSD declares sys_siglist in unistd.h. */
3542 #ifdef HAVE_UNISTD_H
3546 char *msg = *(sys_siglist + 1);
3549 if { (eval echo configure:3550: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3551 ac_cv_decl_sys_siglist=yes
3553 echo "configure: failed program was:" >&5
3554 cat conftest.$ac_ext >&5
3556 ac_cv_decl_sys_siglist=no
3561 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3562 if test $ac_cv_decl_sys_siglist = yes; then
3563 cat >> confdefs.h <<\EOF
3564 #define SYS_SIGLIST_DECLARED 1
3570 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3571 echo "configure:3572: checking whether byte ordering is bigendian" >&5
3572 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3573 echo $ac_n "(cached) $ac_c" 1>&6
3575 ac_cv_c_bigendian=unknown
3576 # See if sys/param.h defines the BYTE_ORDER macro.
3577 cat > conftest.$ac_ext <<EOF
3578 #line 3579 "configure"
3579 #include "confdefs.h"
3580 #include <sys/types.h>
3581 #include <sys/param.h>
3584 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3589 if { (eval echo configure:3590: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3591 # It does; now see whether it defined to BIG_ENDIAN or not.
3592 cat > conftest.$ac_ext <<EOF
3593 #line 3594 "configure"
3594 #include "confdefs.h"
3595 #include <sys/types.h>
3596 #include <sys/param.h>
3599 #if BYTE_ORDER != BIG_ENDIAN
3604 if { (eval echo configure:3605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3606 ac_cv_c_bigendian=yes
3608 echo "configure: failed program was:" >&5
3609 cat conftest.$ac_ext >&5
3611 ac_cv_c_bigendian=no
3615 echo "configure: failed program was:" >&5
3616 cat conftest.$ac_ext >&5
3619 if test $ac_cv_c_bigendian = unknown; then
3620 if test "$cross_compiling" = yes; then
3621 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3623 cat > conftest.$ac_ext <<EOF
3624 #line 3625 "configure"
3625 #include "confdefs.h"
3627 /* Are we little or big endian? From Harbison&Steele. */
3631 char c[sizeof (long)];
3634 exit (u.c[sizeof (long) - 1] == 1);
3637 if { (eval echo configure:3638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3639 ac_cv_c_bigendian=no
3641 echo "configure: failed program was:" >&5
3642 cat conftest.$ac_ext >&5
3644 ac_cv_c_bigendian=yes
3652 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3653 if test $ac_cv_c_bigendian = yes; then
3654 cat >> confdefs.h <<\EOF
3655 #define WORDS_BIGENDIAN 1
3660 for ac_hdr in inttypes.h stdint.h
3662 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3663 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3664 echo "configure:3665: checking for $ac_hdr" >&5
3665 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3666 echo $ac_n "(cached) $ac_c" 1>&6
3668 cat > conftest.$ac_ext <<EOF
3669 #line 3670 "configure"
3670 #include "confdefs.h"
3673 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3674 { (eval echo configure:3675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3675 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3676 if test -z "$ac_err"; then
3678 eval "ac_cv_header_$ac_safe=yes"
3681 echo "configure: failed program was:" >&5
3682 cat conftest.$ac_ext >&5
3684 eval "ac_cv_header_$ac_safe=no"
3688 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3689 echo "$ac_t""yes" 1>&6
3690 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3691 cat >> confdefs.h <<EOF
3692 #define $ac_tr_hdr 1
3696 echo "$ac_t""no" 1>&6
3700 echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
3701 echo "configure:3702: checking for uint32_t" >&5
3702 cat > conftest.$ac_ext <<EOF
3703 #line 3704 "configure"
3704 #include "confdefs.h"
3706 #include <sys/types.h>
3708 #include <inttypes.h>
3717 if (sizeof (uint32_t))
3722 if { (eval echo configure:3723: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3725 cat >> confdefs.h <<\EOF
3726 #define HAVE_UINT32_T 1
3729 echo "$ac_t""yes" 1>&6
3732 echo "configure: failed program was:" >&5
3733 cat conftest.$ac_ext >&5
3735 echo "$ac_t""no" 1>&6
3739 echo $ac_n "checking size of int""... $ac_c" 1>&6
3740 echo "configure:3741: checking size of int" >&5
3741 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3742 echo $ac_n "(cached) $ac_c" 1>&6
3744 if test "$cross_compiling" = yes; then
3745 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3747 cat > conftest.$ac_ext <<EOF
3748 #line 3749 "configure"
3749 #include "confdefs.h"
3751 #include <sys/types.h>
3754 FILE *f=fopen("conftestval", "w");
3756 fprintf(f, "%d\n", sizeof(int));
3760 if { (eval echo configure:3761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3762 ac_cv_sizeof_int=`cat conftestval`
3764 echo "configure: failed program was:" >&5
3765 cat conftest.$ac_ext >&5
3773 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3774 cat >> confdefs.h <<EOF
3775 #define SIZEOF_INT $ac_cv_sizeof_int
3779 echo $ac_n "checking size of long""... $ac_c" 1>&6
3780 echo "configure:3781: checking size of long" >&5
3781 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3782 echo $ac_n "(cached) $ac_c" 1>&6
3784 if test "$cross_compiling" = yes; then
3785 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3787 cat > conftest.$ac_ext <<EOF
3788 #line 3789 "configure"
3789 #include "confdefs.h"
3791 #include <sys/types.h>
3794 FILE *f=fopen("conftestval", "w");
3796 fprintf(f, "%d\n", sizeof(long));
3800 if { (eval echo configure:3801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3802 ac_cv_sizeof_long=`cat conftestval`
3804 echo "configure: failed program was:" >&5
3805 cat conftest.$ac_ext >&5
3813 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3814 cat >> confdefs.h <<EOF
3815 #define SIZEOF_LONG $ac_cv_sizeof_long
3820 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3821 echo "configure:3822: checking for pid_t" >&5
3822 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3823 echo $ac_n "(cached) $ac_c" 1>&6
3825 cat > conftest.$ac_ext <<EOF
3826 #line 3827 "configure"
3827 #include "confdefs.h"
3828 #include <sys/types.h>
3834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3835 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3837 ac_cv_type_pid_t=yes
3845 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3846 if test $ac_cv_type_pid_t = no; then
3847 cat >> confdefs.h <<\EOF
3854 for ac_func in fgetpos memmove setegid srand48 strerror
3856 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3857 echo "configure:3858: checking for $ac_func" >&5
3858 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3859 echo $ac_n "(cached) $ac_c" 1>&6
3861 cat > conftest.$ac_ext <<EOF
3862 #line 3863 "configure"
3863 #include "confdefs.h"
3864 /* System header to define __stub macros and hopefully few prototypes,
3865 which can conflict with char $ac_func(); below. */
3867 /* Override any gcc2 internal prototype to avoid an error. */
3868 /* We use char because int might match the return type of a gcc2
3869 builtin and then its argument prototype would still apply. */
3874 /* The GNU C library defines this for functions which it implements
3875 to always fail with ENOSYS. Some functions are actually named
3876 something starting with __ and the normal name is an alias. */
3877 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3885 if { (eval echo configure:3886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3887 eval "ac_cv_func_$ac_func=yes"
3889 echo "configure: failed program was:" >&5
3890 cat conftest.$ac_ext >&5
3892 eval "ac_cv_func_$ac_func=no"
3897 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3898 echo "$ac_t""yes" 1>&6
3899 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3900 cat >> confdefs.h <<EOF
3901 #define $ac_tr_func 1
3905 echo "$ac_t""no" 1>&6
3910 for ac_func in strcasecmp strdup
3912 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3913 echo "configure:3914: checking for $ac_func" >&5
3914 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3915 echo $ac_n "(cached) $ac_c" 1>&6
3917 cat > conftest.$ac_ext <<EOF
3918 #line 3919 "configure"
3919 #include "confdefs.h"
3920 /* System header to define __stub macros and hopefully few prototypes,
3921 which can conflict with char $ac_func(); below. */
3923 /* Override any gcc2 internal prototype to avoid an error. */
3924 /* We use char because int might match the return type of a gcc2
3925 builtin and then its argument prototype would still apply. */
3930 /* The GNU C library defines this for functions which it implements
3931 to always fail with ENOSYS. Some functions are actually named
3932 something starting with __ and the normal name is an alias. */
3933 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3941 if { (eval echo configure:3942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3943 eval "ac_cv_func_$ac_func=yes"
3945 echo "configure: failed program was:" >&5
3946 cat conftest.$ac_ext >&5
3948 eval "ac_cv_func_$ac_func=no"
3953 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3954 echo "$ac_t""yes" 1>&6
3955 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3956 cat >> confdefs.h <<EOF
3957 #define $ac_tr_func 1
3961 echo "$ac_t""no" 1>&6
3962 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
3968 echo $ac_n "checking for getopt""... $ac_c" 1>&6
3969 echo "configure:3970: checking for getopt" >&5
3970 if eval "test \"`echo '$''{'ac_cv_func_getopt'+set}'`\" = set"; then
3971 echo $ac_n "(cached) $ac_c" 1>&6
3973 cat > conftest.$ac_ext <<EOF
3974 #line 3975 "configure"
3975 #include "confdefs.h"
3976 /* System header to define __stub macros and hopefully few prototypes,
3977 which can conflict with char getopt(); below. */
3979 /* Override any gcc2 internal prototype to avoid an error. */
3980 /* We use char because int might match the return type of a gcc2
3981 builtin and then its argument prototype would still apply. */
3986 /* The GNU C library defines this for functions which it implements
3987 to always fail with ENOSYS. Some functions are actually named
3988 something starting with __ and the normal name is an alias. */
3989 #if defined (__stub_getopt) || defined (__stub___getopt)
3997 if { (eval echo configure:3998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3999 eval "ac_cv_func_getopt=yes"
4001 echo "configure: failed program was:" >&5
4002 cat conftest.$ac_ext >&5
4004 eval "ac_cv_func_getopt=no"
4009 if eval "test \"`echo '$ac_cv_func_'getopt`\" = yes"; then
4010 echo "$ac_t""yes" 1>&6
4013 echo "$ac_t""no" 1>&6
4016 if test $ac_cv_func_getopt = yes; then
4017 for ac_hdr in getopt.h
4019 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4020 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4021 echo "configure:4022: checking for $ac_hdr" >&5
4022 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4023 echo $ac_n "(cached) $ac_c" 1>&6
4025 cat > conftest.$ac_ext <<EOF
4026 #line 4027 "configure"
4027 #include "confdefs.h"
4030 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4031 { (eval echo configure:4032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4032 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4033 if test -z "$ac_err"; then
4035 eval "ac_cv_header_$ac_safe=yes"
4038 echo "configure: failed program was:" >&5
4039 cat conftest.$ac_ext >&5
4041 eval "ac_cv_header_$ac_safe=no"
4045 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4046 echo "$ac_t""yes" 1>&6
4047 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4048 cat >> confdefs.h <<EOF
4049 #define $ac_tr_hdr 1
4053 echo "$ac_t""no" 1>&6
4061 for ac_func in snprintf
4063 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4064 echo "configure:4065: checking for $ac_func" >&5
4065 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4066 echo $ac_n "(cached) $ac_c" 1>&6
4068 cat > conftest.$ac_ext <<EOF
4069 #line 4070 "configure"
4070 #include "confdefs.h"
4071 /* System header to define __stub macros and hopefully few prototypes,
4072 which can conflict with char $ac_func(); below. */
4074 /* Override any gcc2 internal prototype to avoid an error. */
4075 /* We use char because int might match the return type of a gcc2
4076 builtin and then its argument prototype would still apply. */
4081 /* The GNU C library defines this for functions which it implements
4082 to always fail with ENOSYS. Some functions are actually named
4083 something starting with __ and the normal name is an alias. */
4084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4092 if { (eval echo configure:4093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4094 eval "ac_cv_func_$ac_func=yes"
4096 echo "configure: failed program was:" >&5
4097 cat conftest.$ac_ext >&5
4099 eval "ac_cv_func_$ac_func=no"
4104 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4105 echo "$ac_t""yes" 1>&6
4106 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4107 cat >> confdefs.h <<EOF
4108 #define $ac_tr_func 1
4112 echo "$ac_t""no" 1>&6
4113 mutt_cv_snprintf=yes
4117 for ac_func in vsnprintf
4119 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4120 echo "configure:4121: checking for $ac_func" >&5
4121 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4122 echo $ac_n "(cached) $ac_c" 1>&6
4124 cat > conftest.$ac_ext <<EOF
4125 #line 4126 "configure"
4126 #include "confdefs.h"
4127 /* System header to define __stub macros and hopefully few prototypes,
4128 which can conflict with char $ac_func(); below. */
4130 /* Override any gcc2 internal prototype to avoid an error. */
4131 /* We use char because int might match the return type of a gcc2
4132 builtin and then its argument prototype would still apply. */
4137 /* The GNU C library defines this for functions which it implements
4138 to always fail with ENOSYS. Some functions are actually named
4139 something starting with __ and the normal name is an alias. */
4140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4148 if { (eval echo configure:4149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4150 eval "ac_cv_func_$ac_func=yes"
4152 echo "configure: failed program was:" >&5
4153 cat conftest.$ac_ext >&5
4155 eval "ac_cv_func_$ac_func=no"
4160 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4161 echo "$ac_t""yes" 1>&6
4162 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4163 cat >> confdefs.h <<EOF
4164 #define $ac_tr_func 1
4168 echo "$ac_t""no" 1>&6
4169 mutt_cv_snprintf=yes
4173 if test $mutt_cv_snprintf = yes; then
4174 LIBOBJS="$LIBOBJS snprintf.o"
4177 for ac_func in ftruncate
4179 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4180 echo "configure:4181: checking for $ac_func" >&5
4181 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4182 echo $ac_n "(cached) $ac_c" 1>&6
4184 cat > conftest.$ac_ext <<EOF
4185 #line 4186 "configure"
4186 #include "confdefs.h"
4187 /* System header to define __stub macros and hopefully few prototypes,
4188 which can conflict with char $ac_func(); below. */
4190 /* Override any gcc2 internal prototype to avoid an error. */
4191 /* We use char because int might match the return type of a gcc2
4192 builtin and then its argument prototype would still apply. */
4197 /* The GNU C library defines this for functions which it implements
4198 to always fail with ENOSYS. Some functions are actually named
4199 something starting with __ and the normal name is an alias. */
4200 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4208 if { (eval echo configure:4209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4210 eval "ac_cv_func_$ac_func=yes"
4212 echo "configure: failed program was:" >&5
4213 cat conftest.$ac_ext >&5
4215 eval "ac_cv_func_$ac_func=no"
4220 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4221 echo "$ac_t""yes" 1>&6
4222 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4223 cat >> confdefs.h <<EOF
4224 #define $ac_tr_func 1
4228 echo "$ac_t""no" 1>&6
4229 echo $ac_n "checking for chsize in -lx""... $ac_c" 1>&6
4230 echo "configure:4231: checking for chsize in -lx" >&5
4231 ac_lib_var=`echo x'_'chsize | sed 'y%./+-%__p_%'`
4232 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4233 echo $ac_n "(cached) $ac_c" 1>&6
4235 ac_save_LIBS="$LIBS"
4237 cat > conftest.$ac_ext <<EOF
4238 #line 4239 "configure"
4239 #include "confdefs.h"
4240 /* Override any gcc2 internal prototype to avoid an error. */
4241 /* We use char because int might match the return type of a gcc2
4242 builtin and then its argument prototype would still apply. */
4249 if { (eval echo configure:4250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4251 eval "ac_cv_lib_$ac_lib_var=yes"
4253 echo "configure: failed program was:" >&5
4254 cat conftest.$ac_ext >&5
4256 eval "ac_cv_lib_$ac_lib_var=no"
4259 LIBS="$ac_save_LIBS"
4262 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4263 echo "$ac_t""yes" 1>&6
4264 ac_tr_lib=HAVE_LIB`echo x | sed -e 's/^a-zA-Z0-9_/_/g' \
4265 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4266 cat >> confdefs.h <<EOF
4267 #define $ac_tr_lib 1
4273 echo "$ac_t""no" 1>&6
4280 for ac_func in strftime
4282 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4283 echo "configure:4284: checking for $ac_func" >&5
4284 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4285 echo $ac_n "(cached) $ac_c" 1>&6
4287 cat > conftest.$ac_ext <<EOF
4288 #line 4289 "configure"
4289 #include "confdefs.h"
4290 /* System header to define __stub macros and hopefully few prototypes,
4291 which can conflict with char $ac_func(); below. */
4293 /* Override any gcc2 internal prototype to avoid an error. */
4294 /* We use char because int might match the return type of a gcc2
4295 builtin and then its argument prototype would still apply. */
4300 /* The GNU C library defines this for functions which it implements
4301 to always fail with ENOSYS. Some functions are actually named
4302 something starting with __ and the normal name is an alias. */
4303 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4311 if { (eval echo configure:4312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4313 eval "ac_cv_func_$ac_func=yes"
4315 echo "configure: failed program was:" >&5
4316 cat conftest.$ac_ext >&5
4318 eval "ac_cv_func_$ac_func=no"
4323 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4324 echo "$ac_t""yes" 1>&6
4325 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4326 cat >> confdefs.h <<EOF
4327 #define $ac_tr_func 1
4331 echo "$ac_t""no" 1>&6
4332 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
4333 echo "configure:4334: checking for strftime in -lintl" >&5
4334 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
4335 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4336 echo $ac_n "(cached) $ac_c" 1>&6
4338 ac_save_LIBS="$LIBS"
4340 cat > conftest.$ac_ext <<EOF
4341 #line 4342 "configure"
4342 #include "confdefs.h"
4343 /* Override any gcc2 internal prototype to avoid an error. */
4344 /* We use char because int might match the return type of a gcc2
4345 builtin and then its argument prototype would still apply. */
4352 if { (eval echo configure:4353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4354 eval "ac_cv_lib_$ac_lib_var=yes"
4356 echo "configure: failed program was:" >&5
4357 cat conftest.$ac_ext >&5
4359 eval "ac_cv_lib_$ac_lib_var=no"
4362 LIBS="$ac_save_LIBS"
4365 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4366 echo "$ac_t""yes" 1>&6
4367 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/^a-zA-Z0-9_/_/g' \
4368 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4369 cat >> confdefs.h <<EOF
4370 #define $ac_tr_lib 1
4376 echo "$ac_t""no" 1>&6
4383 for ac_func in fchdir
4385 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4386 echo "configure:4387: checking for $ac_func" >&5
4387 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4388 echo $ac_n "(cached) $ac_c" 1>&6
4390 cat > conftest.$ac_ext <<EOF
4391 #line 4392 "configure"
4392 #include "confdefs.h"
4393 /* System header to define __stub macros and hopefully few prototypes,
4394 which can conflict with char $ac_func(); below. */
4396 /* Override any gcc2 internal prototype to avoid an error. */
4397 /* We use char because int might match the return type of a gcc2
4398 builtin and then its argument prototype would still apply. */
4403 /* The GNU C library defines this for functions which it implements
4404 to always fail with ENOSYS. Some functions are actually named
4405 something starting with __ and the normal name is an alias. */
4406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4414 if { (eval echo configure:4415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4416 eval "ac_cv_func_$ac_func=yes"
4418 echo "configure: failed program was:" >&5
4419 cat conftest.$ac_ext >&5
4421 eval "ac_cv_func_$ac_func=no"
4426 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4427 echo "$ac_t""yes" 1>&6
4428 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4429 cat >> confdefs.h <<EOF
4430 #define $ac_tr_func 1
4434 echo "$ac_t""no" 1>&6
4440 # Check whether --with-regex or --without-regex was given.
4441 if test "${with_regex+set}" = set; then
4442 withval="$with_regex"
4445 for ac_func in regcomp
4447 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4448 echo "configure:4449: checking for $ac_func" >&5
4449 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4450 echo $ac_n "(cached) $ac_c" 1>&6
4452 cat > conftest.$ac_ext <<EOF
4453 #line 4454 "configure"
4454 #include "confdefs.h"
4455 /* System header to define __stub macros and hopefully few prototypes,
4456 which can conflict with char $ac_func(); below. */
4458 /* Override any gcc2 internal prototype to avoid an error. */
4459 /* We use char because int might match the return type of a gcc2
4460 builtin and then its argument prototype would still apply. */
4465 /* The GNU C library defines this for functions which it implements
4466 to always fail with ENOSYS. Some functions are actually named
4467 something starting with __ and the normal name is an alias. */
4468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4476 if { (eval echo configure:4477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4478 eval "ac_cv_func_$ac_func=yes"
4480 echo "configure: failed program was:" >&5
4481 cat conftest.$ac_ext >&5
4483 eval "ac_cv_func_$ac_func=no"
4488 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4489 echo "$ac_t""yes" 1>&6
4490 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4491 cat >> confdefs.h <<EOF
4492 #define $ac_tr_func 1
4496 echo "$ac_t""no" 1>&6
4504 if test $mutt_cv_regex = no ; then
4505 echo $ac_n "checking whether your system's regexp library is completely broken""... $ac_c" 1>&6
4506 echo "configure:4507: checking whether your system's regexp library is completely broken" >&5
4507 if eval "test \"`echo '$''{'mutt_cv_regex_broken'+set}'`\" = set"; then
4508 echo $ac_n "(cached) $ac_c" 1>&6
4510 if test "$cross_compiling" = yes; then
4511 mutt_cv_regex_broken=yes
4513 cat > conftest.$ac_ext <<EOF
4514 #line 4515 "configure"
4515 #include "confdefs.h"
4519 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); }
4521 if { (eval echo configure:4522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4523 mutt_cv_regex_broken=no
4525 echo "configure: failed program was:" >&5
4526 cat conftest.$ac_ext >&5
4528 mutt_cv_regex_broken=yes
4535 echo "$ac_t""$mutt_cv_regex_broken" 1>&6
4536 if test $mutt_cv_regex_broken = yes ; then
4537 echo "Using the included GNU regex instead." >&6
4542 if test $mutt_cv_regex = yes; then
4543 cat >> confdefs.h <<\EOF
4544 #define USE_GNU_REGEX 1
4547 LIBOBJS="$LIBOBJS regex.o"
4551 # Check whether --with-homespool or --without-homespool was given.
4552 if test "${with_homespool+set}" = set; then
4553 withval="$with_homespool"
4554 with_homespool=${withval}
4557 if test x$with_homespool != x; then
4558 if test $with_homespool = yes; then
4559 with_homespool=mailbox
4561 cat >> confdefs.h <<EOF
4562 #define MAILPATH "$with_homespool"
4565 cat >> confdefs.h <<\EOF
4569 cat >> confdefs.h <<\EOF
4570 #define USE_DOTLOCK 1
4575 # Check whether --with-mailpath or --without-mailpath was given.
4576 if test "${with_mailpath+set}" = set; then
4577 withval="$with_mailpath"
4578 mutt_cv_mailpath=$withval
4580 echo $ac_n "checking where new mail is stored""... $ac_c" 1>&6
4581 echo "configure:4582: checking where new mail is stored" >&5
4582 if eval "test \"`echo '$''{'mutt_cv_mailpath'+set}'`\" = set"; then
4583 echo $ac_n "(cached) $ac_c" 1>&6
4586 if test -d /var/mail; then
4587 mutt_cv_mailpath=/var/mail
4588 elif test -d /var/spool/mail; then
4589 mutt_cv_mailpath=/var/spool/mail
4590 elif test -d /usr/spool/mail; then
4591 mutt_cv_mailpath=/usr/spool/mail
4592 elif test -d /usr/mail; then
4593 mutt_cv_mailpath=/usr/mail
4597 echo "$ac_t""$mutt_cv_mailpath" 1>&6
4601 if test "$mutt_cv_mailpath" = no; then
4602 { echo "configure: error: "Could not determine where new mail is stored."" 1>&2; exit 1; }
4604 cat >> confdefs.h <<EOF
4605 #define MAILPATH "$mutt_cv_mailpath"
4609 echo $ac_n "checking if $mutt_cv_mailpath is world writable""... $ac_c" 1>&6
4610 echo "configure:4611: checking if $mutt_cv_mailpath is world writable" >&5
4611 if eval "test \"`echo '$''{'mutt_cv_worldwrite'+set}'`\" = set"; then
4612 echo $ac_n "(cached) $ac_c" 1>&6
4614 if test "$cross_compiling" = yes; then
4615 mutt_cv_worldwrite=no
4617 cat > conftest.$ac_ext <<EOF
4618 #line 4619 "configure"
4619 #include "confdefs.h"
4620 #include <sys/types.h>
4621 #include <sys/stat.h>
4623 int main (int argc, char **argv)
4627 stat ("$mutt_cv_mailpath", &s);
4628 if (s.st_mode & S_IWOTH) exit (0);
4632 if { (eval echo configure:4633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4634 mutt_cv_worldwrite=yes
4636 echo "configure: failed program was:" >&5
4637 cat conftest.$ac_ext >&5
4639 mutt_cv_worldwrite=no
4646 echo "$ac_t""$mutt_cv_worldwrite" 1>&6
4649 if test $mutt_cv_worldwrite = yes; then
4650 cat >> confdefs.h <<\EOF
4651 #define USE_DOTLOCK 1
4656 echo $ac_n "checking if $mutt_cv_mailpath is group writable""... $ac_c" 1>&6
4657 echo "configure:4658: checking if $mutt_cv_mailpath is group writable" >&5
4658 if eval "test \"`echo '$''{'mutt_cv_groupwrite'+set}'`\" = set"; then
4659 echo $ac_n "(cached) $ac_c" 1>&6
4661 if test "$cross_compiling" = yes; then
4662 mutt_cv_groupwrite=no
4664 cat > conftest.$ac_ext <<EOF
4665 #line 4666 "configure"
4666 #include "confdefs.h"
4667 #include <sys/types.h>
4668 #include <sys/stat.h>
4670 int main (int argc, char **argv)
4674 stat ("$mutt_cv_mailpath", &s);
4675 if (s.st_mode & S_IWGRP) exit (0);
4679 if { (eval echo configure:4680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4681 mutt_cv_groupwrite=yes
4683 echo "configure: failed program was:" >&5
4684 cat conftest.$ac_ext >&5
4686 mutt_cv_groupwrite=no
4693 echo "$ac_t""$mutt_cv_groupwrite" 1>&6
4695 if test $mutt_cv_groupwrite = yes; then
4696 cat >> confdefs.h <<\EOF
4697 #define USE_DOTLOCK 1
4700 cat >> confdefs.h <<\EOF
4701 #define USE_SETGID 1
4709 # Check whether --enable-external_dotlock or --disable-external_dotlock was given.
4710 if test "${enable_external_dotlock+set}" = set; then
4711 enableval="$enable_external_dotlock"
4712 mutt_cv_external_dotlock="$enableval"
4716 if test "x$mutt_cv_setgid" = "xyes" || test "x$mutt_cv_fchdir" = "xno" \
4717 || test "x$mutt_cv_external_dotlock" = "xyes"
4719 cat >> confdefs.h <<\EOF
4720 #define DL_STANDALONE 1
4723 DOTLOCK_TARGET="mutt_dotlock"
4725 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS dotlock.o"
4731 echo $ac_n "checking where to put the documentation""... $ac_c" 1>&6
4732 echo "configure:4733: checking where to put the documentation" >&5
4733 # Check whether --with-docdir or --without-docdir was given.
4734 if test "${with_docdir+set}" = set; then
4735 withval="$with_docdir"
4736 mutt_cv_docdir=$withval
4738 mutt_cv_docdir="$mutt_cv_prefix/doc/mutt"
4741 echo "$ac_t""$mutt_cv_docdir" 1>&6
4743 docdir=$mutt_cv_docdir
4746 if test x$mutt_cv_setgid = xyes; then
4747 DOTLOCK_GROUP='mail'
4748 DOTLOCK_PERMISSION=2755
4751 DOTLOCK_PERMISSION=755
4756 # Check whether --with-domain or --without-domain was given.
4757 if test "${with_domain+set}" = set; then
4758 withval="$with_domain"
4759 if test $withval != yes; then
4760 cat >> confdefs.h <<EOF
4761 #define DOMAIN "$withval"
4771 # Check whether --enable-pop or --disable-pop was given.
4772 if test "${enable_pop+set}" = set; then
4773 enableval="$enable_pop"
4774 if test x$enableval = xyes ; then
4775 cat >> confdefs.h <<\EOF
4779 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pop.o pop_lib.o pop_auth.o"
4787 # Check whether --enable-imap or --disable-imap was given.
4788 if test "${enable_imap+set}" = set; then
4789 enableval="$enable_imap"
4790 if test x$enableval = xyes ; then
4791 cat >> confdefs.h <<\EOF
4795 LIBIMAP="-Limap -limap"
4796 LIBIMAPDEPS="\$(top_srcdir)/imap/imap.h imap/libimap.a"
4806 if test x$need_imap = xyes; then
4808 BUILD_IMAP_FALSE='#'
4814 # Check whether --enable-nntp or --disable-nntp was given.
4815 if test "${enable_nntp+set}" = set; then
4816 enableval="$enable_nntp"
4817 if test x$enableval = xyes ; then
4818 cat >> confdefs.h <<\EOF
4822 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS nntp.o newsrc.o"
4830 if test "$need_socket" = "yes"
4832 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
4833 echo "configure:4834: checking for socklen_t" >&5
4834 cat > conftest.$ac_ext <<EOF
4835 #line 4836 "configure"
4836 #include "confdefs.h"
4837 #include <sys/socket.h>