3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
15 --disable-pgp Disable PGP support"
17 --disable-smime Disable SMIME support"
19 --with-mixmaster[=PATH] Include Mixmaster support"
21 --with-slang[=DIR] Use S-Lang instead of ncurses"
23 --with-curses=DIR Where ncurses is installed "
25 --with-regex Use the GNU regex library "
27 --with-homespool[=FILE] File in user's directory where new mail is spooled"
29 --with-mailpath=DIR Directory where spool mailboxes are located"
31 --enable-external-dotlock Force use of an external dotlock program"
33 --with-docdir=PATH Specify where to put the documentation"
35 --with-domain=DOMAIN Specify your DNS domain name"
37 --enable-pop Enable POP3 support"
39 --enable-imap Enable IMAP support"
41 --enable-nntp Enable NNTP support"
43 --with-gss[=PFX] Compile in GSSAPI authentication for IMAP"
45 --with-ssl[=PFX] Compile in SSL support for POP/IMAP"
47 --with-nss[=PFX] Compile in SSL support for POP/IMAP via NSS"
49 --with-sasl[=PFX] Use Cyrus SASL library for POP/IMAP authentication"
51 --with-sasl2[=PFX] Use Cyrus SASL library version 2 for POP/IMAP authentication"
53 --with-idn=[PFX] Use GNU libidn for domain names"
55 --enable-debug Enable debugging support"
57 --enable-flock Use flock() to lock files"
59 --disable-fcntl Do NOT use fcntl() to lock files "
61 --disable-warnings Turn off compiler warnings (not recommended)"
63 --enable-nfs-fix Work around an NFS with broken attributes caching "
65 --enable-buffy-size Use file size attribute instead of access time "
67 --enable-mailtool Enable Sun mailtool attachments support "
69 --enable-compressed Enable compressed folders support "
71 --enable-locales-fix The result of isprint() is unreliable "
73 --with-exec-shell=SHELL Specify alternate shell (ONLY if /bin/sh is broken)"
75 --enable-exact-address Enable regeneration of email addresses"
77 --disable-iconv Disable iconv support"
79 --with-libiconv-prefix=DIR Search for libiconv in DIR/include and DIR/lib"
81 --disable-nls Do not use Native Language Support"
83 --with-included-gettext Use the GNU gettext library included here"
85 --without-wc-funcs Do not use the system's wchar_t functions"
87 --with-libesmtp=DIR Compile in support for libesmtp for the MTA"
89 # Initialize some variables set by options.
90 # The variables have the same names as the options, with
91 # dashes changed to underlines.
93 cache_file=./config.cache
102 program_transform_name=s,x,x,
110 bindir='${exec_prefix}/bin'
111 sbindir='${exec_prefix}/sbin'
112 libexecdir='${exec_prefix}/libexec'
113 datadir='${prefix}/share'
114 sysconfdir='${prefix}/etc'
115 sharedstatedir='${prefix}/com'
116 localstatedir='${prefix}/var'
117 libdir='${exec_prefix}/lib'
118 includedir='${prefix}/include'
119 oldincludedir='/usr/include'
120 infodir='${prefix}/info'
121 mandir='${prefix}/man'
123 # Initialize some other variables.
126 SHELL=${CONFIG_SHELL-/bin/sh}
127 # Maximum number of lines to put in a shell here document.
134 # If the previous option needs an argument, assign it.
135 if test -n "$ac_prev"; then
136 eval "$ac_prev=\$ac_option"
142 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
146 # Accept the important Cygnus configure options, so we can diagnose typos.
150 -bindir | --bindir | --bindi | --bind | --bin | --bi)
152 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
153 bindir="$ac_optarg" ;;
155 -build | --build | --buil | --bui | --bu)
157 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
158 build="$ac_optarg" ;;
160 -cache-file | --cache-file | --cache-fil | --cache-fi \
161 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
162 ac_prev=cache_file ;;
163 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
164 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
165 cache_file="$ac_optarg" ;;
167 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
169 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
171 datadir="$ac_optarg" ;;
173 -disable-* | --disable-*)
174 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
175 # Reject names that are not valid shell variable names.
176 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
177 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
179 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
180 eval "enable_${ac_feature}=no" ;;
182 -enable-* | --enable-*)
183 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
184 # Reject names that are not valid shell variable names.
185 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
186 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
188 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
193 eval "enable_${ac_feature}='$ac_optarg'" ;;
195 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
196 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
197 | --exec | --exe | --ex)
198 ac_prev=exec_prefix ;;
199 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
200 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
201 | --exec=* | --exe=* | --ex=*)
202 exec_prefix="$ac_optarg" ;;
204 -gas | --gas | --ga | --g)
205 # Obsolete; use --with-gas.
208 -help | --help | --hel | --he)
209 # Omit some internal or obsolete options to make the list less imposing.
210 # This message is too long to be a string in the A/UX 3.1 sh.
212 Usage: configure [options] [host]
213 Options: [defaults in brackets after descriptions]
215 --cache-file=FILE cache test results in FILE
216 --help print this message
217 --no-create do not create output files
218 --quiet, --silent do not print \`checking...' messages
219 --version print the version of autoconf that created configure
220 Directory and file names:
221 --prefix=PREFIX install architecture-independent files in PREFIX
223 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
225 --bindir=DIR user executables in DIR [EPREFIX/bin]
226 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
227 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
228 --datadir=DIR read-only architecture-independent data in DIR
230 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
231 --sharedstatedir=DIR modifiable architecture-independent data in DIR
233 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
234 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
235 --includedir=DIR C header files in DIR [PREFIX/include]
236 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
237 --infodir=DIR info documentation in DIR [PREFIX/info]
238 --mandir=DIR man documentation in DIR [PREFIX/man]
239 --srcdir=DIR find the sources in DIR [configure dir or ..]
240 --program-prefix=PREFIX prepend PREFIX to installed program names
241 --program-suffix=SUFFIX append SUFFIX to installed program names
242 --program-transform-name=PROGRAM
243 run sed PROGRAM on installed program names
247 --build=BUILD configure for building on BUILD [BUILD=HOST]
248 --host=HOST configure for HOST [guessed]
249 --target=TARGET configure for TARGET [TARGET=HOST]
250 Features and packages:
251 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
252 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
253 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
254 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
255 --x-includes=DIR X include files are in DIR
256 --x-libraries=DIR X library files are in DIR
258 if test -n "$ac_help"; then
259 echo "--enable and --with options recognized:$ac_help"
263 -host | --host | --hos | --ho)
265 -host=* | --host=* | --hos=* | --ho=*)
268 -includedir | --includedir | --includedi | --included | --include \
269 | --includ | --inclu | --incl | --inc)
270 ac_prev=includedir ;;
271 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
272 | --includ=* | --inclu=* | --incl=* | --inc=*)
273 includedir="$ac_optarg" ;;
275 -infodir | --infodir | --infodi | --infod | --info | --inf)
277 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
278 infodir="$ac_optarg" ;;
280 -libdir | --libdir | --libdi | --libd)
282 -libdir=* | --libdir=* | --libdi=* | --libd=*)
283 libdir="$ac_optarg" ;;
285 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
286 | --libexe | --libex | --libe)
287 ac_prev=libexecdir ;;
288 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
289 | --libexe=* | --libex=* | --libe=*)
290 libexecdir="$ac_optarg" ;;
292 -localstatedir | --localstatedir | --localstatedi | --localstated \
293 | --localstate | --localstat | --localsta | --localst \
294 | --locals | --local | --loca | --loc | --lo)
295 ac_prev=localstatedir ;;
296 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
297 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
298 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
299 localstatedir="$ac_optarg" ;;
301 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
303 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
304 mandir="$ac_optarg" ;;
307 # Obsolete; use --without-fp.
310 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
314 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
315 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
318 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
319 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
320 | --oldin | --oldi | --old | --ol | --o)
321 ac_prev=oldincludedir ;;
322 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
323 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
324 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
325 oldincludedir="$ac_optarg" ;;
327 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
329 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
330 prefix="$ac_optarg" ;;
332 -program-prefix | --program-prefix | --program-prefi | --program-pref \
333 | --program-pre | --program-pr | --program-p)
334 ac_prev=program_prefix ;;
335 -program-prefix=* | --program-prefix=* | --program-prefi=* \
336 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
337 program_prefix="$ac_optarg" ;;
339 -program-suffix | --program-suffix | --program-suffi | --program-suff \
340 | --program-suf | --program-su | --program-s)
341 ac_prev=program_suffix ;;
342 -program-suffix=* | --program-suffix=* | --program-suffi=* \
343 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
344 program_suffix="$ac_optarg" ;;
346 -program-transform-name | --program-transform-name \
347 | --program-transform-nam | --program-transform-na \
348 | --program-transform-n | --program-transform- \
349 | --program-transform | --program-transfor \
350 | --program-transfo | --program-transf \
351 | --program-trans | --program-tran \
352 | --progr-tra | --program-tr | --program-t)
353 ac_prev=program_transform_name ;;
354 -program-transform-name=* | --program-transform-name=* \
355 | --program-transform-nam=* | --program-transform-na=* \
356 | --program-transform-n=* | --program-transform-=* \
357 | --program-transform=* | --program-transfor=* \
358 | --program-transfo=* | --program-transf=* \
359 | --program-trans=* | --program-tran=* \
360 | --progr-tra=* | --program-tr=* | --program-t=*)
361 program_transform_name="$ac_optarg" ;;
363 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
364 | -silent | --silent | --silen | --sile | --sil)
367 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
369 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
371 sbindir="$ac_optarg" ;;
373 -sharedstatedir | --sharedstatedir | --sharedstatedi \
374 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
375 | --sharedst | --shareds | --shared | --share | --shar \
377 ac_prev=sharedstatedir ;;
378 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
379 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
380 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
382 sharedstatedir="$ac_optarg" ;;
384 -site | --site | --sit)
386 -site=* | --site=* | --sit=*)
389 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
391 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
392 srcdir="$ac_optarg" ;;
394 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
395 | --syscon | --sysco | --sysc | --sys | --sy)
396 ac_prev=sysconfdir ;;
397 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
398 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
399 sysconfdir="$ac_optarg" ;;
401 -target | --target | --targe | --targ | --tar | --ta | --t)
403 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
404 target="$ac_optarg" ;;
406 -v | -verbose | --verbose | --verbos | --verbo | --verb)
409 -version | --version | --versio | --versi | --vers)
410 echo "configure generated by autoconf version 2.13"
414 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
415 # Reject names that are not valid shell variable names.
416 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
417 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
419 ac_package=`echo $ac_package| sed 's/-/_/g'`
424 eval "with_${ac_package}='$ac_optarg'" ;;
426 -without-* | --without-*)
427 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
428 # Reject names that are not valid shell variable names.
429 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
430 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
432 ac_package=`echo $ac_package| sed 's/-/_/g'`
433 eval "with_${ac_package}=no" ;;
436 # Obsolete; use --with-x.
439 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
440 | --x-incl | --x-inc | --x-in | --x-i)
441 ac_prev=x_includes ;;
442 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
443 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
444 x_includes="$ac_optarg" ;;
446 -x-libraries | --x-libraries | --x-librarie | --x-librari \
447 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
448 ac_prev=x_libraries ;;
449 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
450 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
451 x_libraries="$ac_optarg" ;;
453 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
457 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
458 echo "configure: warning: $ac_option: invalid host type" 1>&2
460 if test "x$nonopt" != xNONE; then
461 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
469 if test -n "$ac_prev"; then
470 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
473 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
475 # File descriptor usage:
478 # 2 errors and warnings
479 # 3 some systems may open it to /dev/tty
480 # 4 used on the Kubota Titan
481 # 6 checking for... messages and results
482 # 5 compiler messages saved in config.log
483 if test "$silent" = yes; then
491 This file contains any messages produced by compilers while
492 running configure, to aid debugging if configure makes a mistake.
495 # Strip out --no-create and --no-recursion so they do not pile up.
496 # Also quote any args containing shell metacharacters.
501 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
502 | --no-cr | --no-c) ;;
503 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
504 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
505 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
506 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
507 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
512 # Only set these to C if already set. These must not be set unconditionally
513 # because not all systems understand e.g. LANG=C (notably SCO).
514 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
515 # Non-C LC_CTYPE values break the ctype check.
516 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
517 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
518 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
519 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
521 # confdefs.h avoids OS command line length limits that DEFS can exceed.
522 rm -rf conftest* confdefs.h
523 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
526 # A filename unique to this package, relative to the directory that
527 # configure is in, which we can look for to find out if srcdir is correct.
528 ac_unique_file=mutt.h
530 # Find the source files, if location was not specified.
531 if test -z "$srcdir"; then
532 ac_srcdir_defaulted=yes
533 # Try the directory containing this script, then its parent.
535 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
536 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
538 if test ! -r $srcdir/$ac_unique_file; then
542 ac_srcdir_defaulted=no
544 if test ! -r $srcdir/$ac_unique_file; then
545 if test "$ac_srcdir_defaulted" = yes; then
546 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
548 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
551 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
553 # Prefer explicitly selected file to automatically selected ones.
554 if test -z "$CONFIG_SITE"; then
555 if test "x$prefix" != xNONE; then
556 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
558 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
561 for ac_site_file in $CONFIG_SITE; do
562 if test -r "$ac_site_file"; then
563 echo "loading site script $ac_site_file"
568 if test -r "$cache_file"; then
569 echo "loading cache $cache_file"
572 echo "creating cache $cache_file"
577 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
578 ac_cpp='$CPP $CPPFLAGS'
579 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
580 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
581 cross_compiling=$ac_cv_prog_cc_cross
585 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
586 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
587 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
594 ac_n= ac_c='\c' ac_t=
602 mutt_cv_version=`cat $srcdir/VERSION`
606 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
607 if test -f $ac_dir/install-sh; then
609 ac_install_sh="$ac_aux_dir/install-sh -c"
611 elif test -f $ac_dir/install.sh; then
613 ac_install_sh="$ac_aux_dir/install.sh -c"
617 if test -z "$ac_aux_dir"; then
618 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
620 ac_config_guess=$ac_aux_dir/config.guess
621 ac_config_sub=$ac_aux_dir/config.sub
622 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
624 # Find a good install program. We prefer a C program (faster),
625 # so one script is as good as another. But avoid the broken or
626 # incompatible versions:
627 # SysV /etc/install, /usr/sbin/install
628 # SunOS /usr/etc/install
631 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
632 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
633 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
634 # ./install, which can be erroneously created by make from ./install.sh.
635 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
636 echo "configure:637: checking for a BSD compatible install" >&5
637 if test -z "$INSTALL"; then
638 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
639 echo $ac_n "(cached) $ac_c" 1>&6
641 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
642 for ac_dir in $PATH; do
643 # Account for people who put trailing slashes in PATH elements.
645 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
647 # OSF1 and SCO ODT 3.0 have their own names for install.
648 # Don't use installbsd from OSF since it installs stuff as root
650 for ac_prog in ginstall scoinst install; do
651 if test -f $ac_dir/$ac_prog; then
652 if test $ac_prog = install &&
653 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
654 # AIX install. It has an incompatible calling convention.
657 ac_cv_path_install="$ac_dir/$ac_prog -c"
668 if test "${ac_cv_path_install+set}" = set; then
669 INSTALL="$ac_cv_path_install"
671 # As a last resort, use the slow shell script. We don't cache a
672 # path for INSTALL within a source directory, because that will
673 # break other packages using the cache if that directory is
674 # removed, or if the path is relative.
675 INSTALL="$ac_install_sh"
678 echo "$ac_t""$INSTALL" 1>&6
680 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
681 # It thinks the first close brace ends the variable substitution.
682 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
684 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
686 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
688 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
689 echo "configure:690: checking whether build environment is sane" >&5
692 echo timestamp > conftestfile
693 # Do `set' in a subshell so we don't clobber the current shell's
694 # arguments. Must try -L first in case configure is actually a
695 # symlink; some systems play weird games with the mod time of symlinks
696 # (eg FreeBSD returns the mod time of the symlink's containing
699 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
700 if test "$*" = "X"; then
702 set X `ls -t $srcdir/configure conftestfile`
704 if test "$*" != "X $srcdir/configure conftestfile" \
705 && test "$*" != "X conftestfile $srcdir/configure"; then
707 # If neither matched, then we have a broken ls. This can happen
708 # if, for instance, CONFIG_SHELL is bash and it inherits a
709 # broken ls alias from the environment. This has actually
710 # happened. Such a system could not be considered "sane".
711 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
712 alias in your environment" 1>&2; exit 1; }
715 test "$2" = conftestfile
721 { echo "configure: error: newly created file is older than distributed files!
722 Check your system clock" 1>&2; exit 1; }
725 echo "$ac_t""yes" 1>&6
726 if test "$program_transform_name" = s,x,x,; then
727 program_transform_name=
729 # Double any \ or $. echo might interpret backslashes.
730 cat <<\EOF_SED > conftestsed
731 s,\\,\\\\,g; s,\$,$$,g
733 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
736 test "$program_prefix" != NONE &&
737 program_transform_name="s,^,${program_prefix},; $program_transform_name"
738 # Use a double $ so make ignores it.
739 test "$program_suffix" != NONE &&
740 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
742 # sed with no file args requires a program.
743 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
745 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
746 echo "configure:747: checking whether ${MAKE-make} sets \${MAKE}" >&5
747 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
748 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
749 echo $ac_n "(cached) $ac_c" 1>&6
751 cat > conftestmake <<\EOF
753 @echo 'ac_maketemp="${MAKE}"'
755 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
756 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
757 if test -n "$ac_maketemp"; then
758 eval ac_cv_prog_make_${ac_make}_set=yes
760 eval ac_cv_prog_make_${ac_make}_set=no
764 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
765 echo "$ac_t""yes" 1>&6
768 echo "$ac_t""no" 1>&6
769 SET_MAKE="MAKE=${MAKE-make}"
775 VERSION=$mutt_cv_version
777 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
778 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
780 cat >> confdefs.h <<EOF
781 #define PACKAGE "$PACKAGE"
784 cat >> confdefs.h <<EOF
785 #define VERSION "$VERSION"
790 missing_dir=`cd $ac_aux_dir && pwd`
791 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
792 echo "configure:793: checking for working aclocal" >&5
793 # Run test in a subshell; some versions of sh will print an error if
794 # an executable is not found, even if stderr is redirected.
795 # Redirect stdin to placate older versions of autoconf. Sigh.
796 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
798 echo "$ac_t""found" 1>&6
800 ACLOCAL="$missing_dir/missing aclocal"
801 echo "$ac_t""missing" 1>&6
804 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
805 echo "configure:806: checking for working autoconf" >&5
806 # Run test in a subshell; some versions of sh will print an error if
807 # an executable is not found, even if stderr is redirected.
808 # Redirect stdin to placate older versions of autoconf. Sigh.
809 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
811 echo "$ac_t""found" 1>&6
813 AUTOCONF="$missing_dir/missing autoconf"
814 echo "$ac_t""missing" 1>&6
817 echo $ac_n "checking for working automake""... $ac_c" 1>&6
818 echo "configure:819: checking for working automake" >&5
819 # Run test in a subshell; some versions of sh will print an error if
820 # an executable is not found, even if stderr is redirected.
821 # Redirect stdin to placate older versions of autoconf. Sigh.
822 if (automake --version) < /dev/null > /dev/null 2>&1; then
824 echo "$ac_t""found" 1>&6
826 AUTOMAKE="$missing_dir/missing automake"
827 echo "$ac_t""missing" 1>&6
830 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
831 echo "configure:832: checking for working autoheader" >&5
832 # Run test in a subshell; some versions of sh will print an error if
833 # an executable is not found, even if stderr is redirected.
834 # Redirect stdin to placate older versions of autoconf. Sigh.
835 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
836 AUTOHEADER=autoheader
837 echo "$ac_t""found" 1>&6
839 AUTOHEADER="$missing_dir/missing autoheader"
840 echo "$ac_t""missing" 1>&6
843 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
844 echo "configure:845: checking for working makeinfo" >&5
845 # Run test in a subshell; some versions of sh will print an error if
846 # an executable is not found, even if stderr is redirected.
847 # Redirect stdin to placate older versions of autoconf. Sigh.
848 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
850 echo "$ac_t""found" 1>&6
852 MAKEINFO="$missing_dir/missing makeinfo"
853 echo "$ac_t""missing" 1>&6
860 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"
863 # Make sure we can run config.sub.
864 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
865 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
868 echo $ac_n "checking host system type""... $ac_c" 1>&6
869 echo "configure:870: checking host system type" >&5
872 case "$host_alias" in
876 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
877 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
879 *) host_alias=$nonopt ;;
883 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
884 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
885 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
886 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
887 echo "$ac_t""$host" 1>&6
890 echo $ac_n "checking for prefix""... $ac_c" 1>&6
891 echo "configure:892: checking for prefix" >&5
892 if test x$prefix = xNONE; then
893 mutt_cv_prefix=$ac_default_prefix
895 mutt_cv_prefix=$prefix
897 echo "$ac_t""$mutt_cv_prefix" 1>&6
899 # Extract the first word of "gcc", so it can be a program name with args.
900 set dummy gcc; ac_word=$2
901 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
902 echo "configure:903: checking for $ac_word" >&5
903 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
904 echo $ac_n "(cached) $ac_c" 1>&6
906 if test -n "$CC"; then
907 ac_cv_prog_CC="$CC" # Let the user override the test.
909 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
911 for ac_dir in $ac_dummy; do
912 test -z "$ac_dir" && ac_dir=.
913 if test -f $ac_dir/$ac_word; then
922 if test -n "$CC"; then
923 echo "$ac_t""$CC" 1>&6
925 echo "$ac_t""no" 1>&6
928 if test -z "$CC"; then
929 # Extract the first word of "cc", so it can be a program name with args.
930 set dummy cc; ac_word=$2
931 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
932 echo "configure:933: checking for $ac_word" >&5
933 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
934 echo $ac_n "(cached) $ac_c" 1>&6
936 if test -n "$CC"; then
937 ac_cv_prog_CC="$CC" # Let the user override the test.
939 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
942 for ac_dir in $ac_dummy; do
943 test -z "$ac_dir" && ac_dir=.
944 if test -f $ac_dir/$ac_word; then
945 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
954 if test $ac_prog_rejected = yes; then
955 # We found a bogon in the path, so make sure we never use it.
956 set dummy $ac_cv_prog_CC
958 if test $# -gt 0; then
959 # We chose a different compiler from the bogus one.
960 # However, it has the same basename, so the bogon will be chosen
961 # first if we set CC to just the basename; use the full file name.
963 set dummy "$ac_dir/$ac_word" "$@"
971 if test -n "$CC"; then
972 echo "$ac_t""$CC" 1>&6
974 echo "$ac_t""no" 1>&6
977 if test -z "$CC"; then
980 # Extract the first word of "cl", so it can be a program name with args.
981 set dummy cl; ac_word=$2
982 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
983 echo "configure:984: checking for $ac_word" >&5
984 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
985 echo $ac_n "(cached) $ac_c" 1>&6
987 if test -n "$CC"; then
988 ac_cv_prog_CC="$CC" # Let the user override the test.
990 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
992 for ac_dir in $ac_dummy; do
993 test -z "$ac_dir" && ac_dir=.
994 if test -f $ac_dir/$ac_word; then
1003 if test -n "$CC"; then
1004 echo "$ac_t""$CC" 1>&6
1006 echo "$ac_t""no" 1>&6
1011 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1014 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1015 echo "configure:1016: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1018 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1019 ac_cpp='$CPP $CPPFLAGS'
1020 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1021 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1022 cross_compiling=$ac_cv_prog_cc_cross
1024 cat > conftest.$ac_ext << EOF
1026 #line 1027 "configure"
1027 #include "confdefs.h"
1031 if { (eval echo configure:1032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1032 ac_cv_prog_cc_works=yes
1033 # If we can't run a trivial program, we are probably using a cross compiler.
1034 if (./conftest; exit) 2>/dev/null; then
1035 ac_cv_prog_cc_cross=no
1037 ac_cv_prog_cc_cross=yes
1040 echo "configure: failed program was:" >&5
1041 cat conftest.$ac_ext >&5
1042 ac_cv_prog_cc_works=no
1046 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1047 ac_cpp='$CPP $CPPFLAGS'
1048 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1049 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1050 cross_compiling=$ac_cv_prog_cc_cross
1052 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1053 if test $ac_cv_prog_cc_works = no; then
1054 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1056 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1057 echo "configure:1058: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1058 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1059 cross_compiling=$ac_cv_prog_cc_cross
1061 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1062 echo "configure:1063: checking whether we are using GNU C" >&5
1063 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1064 echo $ac_n "(cached) $ac_c" 1>&6
1066 cat > conftest.c <<EOF
1071 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1072: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1078 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1080 if test $ac_cv_prog_gcc = yes; then
1086 ac_test_CFLAGS="${CFLAGS+set}"
1087 ac_save_CFLAGS="$CFLAGS"
1089 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1090 echo "configure:1091: checking whether ${CC-cc} accepts -g" >&5
1091 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1092 echo $ac_n "(cached) $ac_c" 1>&6
1094 echo 'void f(){}' > conftest.c
1095 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1104 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1105 if test "$ac_test_CFLAGS" = set; then
1106 CFLAGS="$ac_save_CFLAGS"
1107 elif test $ac_cv_prog_cc_g = yes; then
1108 if test "$GCC" = yes; then
1114 if test "$GCC" = yes; then
1122 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1123 echo "configure:1124: checking for strerror in -lcposix" >&5
1124 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1125 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1126 echo $ac_n "(cached) $ac_c" 1>&6
1128 ac_save_LIBS="$LIBS"
1129 LIBS="-lcposix $LIBS"
1130 cat > conftest.$ac_ext <<EOF
1131 #line 1132 "configure"
1132 #include "confdefs.h"
1133 /* Override any gcc2 internal prototype to avoid an error. */
1134 /* We use char because int might match the return type of a gcc2
1135 builtin and then its argument prototype would still apply. */
1142 if { (eval echo configure:1143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1144 eval "ac_cv_lib_$ac_lib_var=yes"
1146 echo "configure: failed program was:" >&5
1147 cat conftest.$ac_ext >&5
1149 eval "ac_cv_lib_$ac_lib_var=no"
1152 LIBS="$ac_save_LIBS"
1155 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1156 echo "$ac_t""yes" 1>&6
1157 LIBS="$LIBS -lcposix"
1159 echo "$ac_t""no" 1>&6
1167 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
1168 echo "configure:1169: checking for ${CC-cc} option to accept ANSI C" >&5
1169 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
1170 echo $ac_n "(cached) $ac_c" 1>&6
1172 am_cv_prog_cc_stdc=no
1174 # Don't try gcc -ansi; that turns off useful extensions and
1175 # breaks some systems' header files.
1176 # AIX -qlanglvl=ansi
1177 # Ultrix and OSF/1 -std1
1178 # HP-UX -Aa -D_HPUX_SOURCE
1179 # SVR4 -Xc -D__EXTENSIONS__
1180 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1182 CC="$ac_save_CC $ac_arg"
1183 cat > conftest.$ac_ext <<EOF
1184 #line 1185 "configure"
1185 #include "confdefs.h"
1188 #include <sys/types.h>
1189 #include <sys/stat.h>
1190 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1191 struct buf { int x; };
1192 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1193 static char *e (p, i)
1199 static char *f (char * (*g) (char **, int), char **p, ...)
1204 s = g (p, va_arg (v,int));
1208 int test (int i, double x);
1209 struct s1 {int (*f) (int a);};
1210 struct s2 {int (*f) (double a);};
1211 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1217 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1221 if { (eval echo configure:1222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1223 am_cv_prog_cc_stdc="$ac_arg"; break
1225 echo "configure: failed program was:" >&5
1226 cat conftest.$ac_ext >&5
1234 if test -z "$am_cv_prog_cc_stdc"; then
1235 echo "$ac_t""none needed" 1>&6
1237 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1239 case "x$am_cv_prog_cc_stdc" in
1241 *) CC="$CC $am_cv_prog_cc_stdc" ;;
1244 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1245 echo "configure:1246: checking how to run the C preprocessor" >&5
1246 # On Suns, sometimes $CPP names a directory.
1247 if test -n "$CPP" && test -d "$CPP"; then
1250 if test -z "$CPP"; then
1251 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1252 echo $ac_n "(cached) $ac_c" 1>&6
1254 # This must be in double quotes, not single quotes, because CPP may get
1255 # substituted into the Makefile and "${CC-cc}" will confuse make.
1257 # On the NeXT, cc -E runs the code through the compiler's parser,
1258 # not just through cpp.
1259 cat > conftest.$ac_ext <<EOF
1260 #line 1261 "configure"
1261 #include "confdefs.h"
1265 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1266 { (eval echo configure:1267: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1267 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1268 if test -z "$ac_err"; then
1272 echo "configure: failed program was:" >&5
1273 cat conftest.$ac_ext >&5
1275 CPP="${CC-cc} -E -traditional-cpp"
1276 cat > conftest.$ac_ext <<EOF
1277 #line 1278 "configure"
1278 #include "confdefs.h"
1282 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1283 { (eval echo configure:1284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1284 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1285 if test -z "$ac_err"; then
1289 echo "configure: failed program was:" >&5
1290 cat conftest.$ac_ext >&5
1292 CPP="${CC-cc} -nologo -E"
1293 cat > conftest.$ac_ext <<EOF
1294 #line 1295 "configure"
1295 #include "confdefs.h"
1299 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1300 { (eval echo configure:1301: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1301 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1302 if test -z "$ac_err"; then
1306 echo "configure: failed program was:" >&5
1307 cat conftest.$ac_ext >&5
1316 ac_cv_prog_CPP="$CPP"
1318 CPP="$ac_cv_prog_CPP"
1320 ac_cv_prog_CPP="$CPP"
1322 echo "$ac_t""$CPP" 1>&6
1326 echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
1327 echo "configure:1328: checking for function prototypes" >&5
1328 if test "$am_cv_prog_cc_stdc" != no; then
1329 echo "$ac_t""yes" 1>&6
1330 cat >> confdefs.h <<\EOF
1331 #define PROTOTYPES 1
1336 echo "$ac_t""no" 1>&6
1337 U=_ ANSI2KNR=./ansi2knr
1338 # Ensure some checks needed by ansi2knr itself.
1339 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1340 echo "configure:1341: checking for ANSI C header files" >&5
1341 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1342 echo $ac_n "(cached) $ac_c" 1>&6
1344 cat > conftest.$ac_ext <<EOF
1345 #line 1346 "configure"
1346 #include "confdefs.h"
1352 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1353 { (eval echo configure:1354: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1354 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1355 if test -z "$ac_err"; then
1357 ac_cv_header_stdc=yes
1360 echo "configure: failed program was:" >&5
1361 cat conftest.$ac_ext >&5
1363 ac_cv_header_stdc=no
1367 if test $ac_cv_header_stdc = yes; then
1368 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1369 cat > conftest.$ac_ext <<EOF
1370 #line 1371 "configure"
1371 #include "confdefs.h"
1374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1375 egrep "memchr" >/dev/null 2>&1; then
1379 ac_cv_header_stdc=no
1385 if test $ac_cv_header_stdc = yes; then
1386 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1387 cat > conftest.$ac_ext <<EOF
1388 #line 1389 "configure"
1389 #include "confdefs.h"
1392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1393 egrep "free" >/dev/null 2>&1; then
1397 ac_cv_header_stdc=no
1403 if test $ac_cv_header_stdc = yes; then
1404 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1405 if test "$cross_compiling" = yes; then
1408 cat > conftest.$ac_ext <<EOF
1409 #line 1410 "configure"
1410 #include "confdefs.h"
1412 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1413 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1414 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1415 int main () { int i; for (i = 0; i < 256; i++)
1416 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1420 if { (eval echo configure:1421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1424 echo "configure: failed program was:" >&5
1425 cat conftest.$ac_ext >&5
1427 ac_cv_header_stdc=no
1435 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1436 if test $ac_cv_header_stdc = yes; then
1437 cat >> confdefs.h <<\EOF
1438 #define STDC_HEADERS 1
1443 for ac_hdr in string.h
1445 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1446 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1447 echo "configure:1448: checking for $ac_hdr" >&5
1448 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1449 echo $ac_n "(cached) $ac_c" 1>&6
1451 cat > conftest.$ac_ext <<EOF
1452 #line 1453 "configure"
1453 #include "confdefs.h"
1456 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1457 { (eval echo configure:1458: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1458 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1459 if test -z "$ac_err"; then
1461 eval "ac_cv_header_$ac_safe=yes"
1464 echo "configure: failed program was:" >&5
1465 cat conftest.$ac_ext >&5
1467 eval "ac_cv_header_$ac_safe=no"
1471 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1472 echo "$ac_t""yes" 1>&6
1473 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1474 cat >> confdefs.h <<EOF
1475 #define $ac_tr_hdr 1
1479 echo "$ac_t""no" 1>&6
1485 if test "x$U" != "x"; then
1486 { echo "configure: error: Compiler not ANSI compliant" 1>&2; exit 1; }
1488 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1489 echo "configure:1490: checking how to run the C preprocessor" >&5
1490 # On Suns, sometimes $CPP names a directory.
1491 if test -n "$CPP" && test -d "$CPP"; then
1494 if test -z "$CPP"; then
1495 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1496 echo $ac_n "(cached) $ac_c" 1>&6
1498 # This must be in double quotes, not single quotes, because CPP may get
1499 # substituted into the Makefile and "${CC-cc}" will confuse make.
1501 # On the NeXT, cc -E runs the code through the compiler's parser,
1502 # not just through cpp.
1503 cat > conftest.$ac_ext <<EOF
1504 #line 1505 "configure"
1505 #include "confdefs.h"
1509 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1510 { (eval echo configure:1511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1511 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1512 if test -z "$ac_err"; then
1516 echo "configure: failed program was:" >&5
1517 cat conftest.$ac_ext >&5
1519 CPP="${CC-cc} -E -traditional-cpp"
1520 cat > conftest.$ac_ext <<EOF
1521 #line 1522 "configure"
1522 #include "confdefs.h"
1526 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1527 { (eval echo configure:1528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1528 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1529 if test -z "$ac_err"; then
1533 echo "configure: failed program was:" >&5
1534 cat conftest.$ac_ext >&5
1536 CPP="${CC-cc} -nologo -E"
1537 cat > conftest.$ac_ext <<EOF
1538 #line 1539 "configure"
1539 #include "confdefs.h"
1543 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1544 { (eval echo configure:1545: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1545 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1546 if test -z "$ac_err"; then
1550 echo "configure: failed program was:" >&5
1551 cat conftest.$ac_ext >&5
1560 ac_cv_prog_CPP="$CPP"
1562 CPP="$ac_cv_prog_CPP"
1564 ac_cv_prog_CPP="$CPP"
1566 echo "$ac_t""$CPP" 1>&6
1568 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1569 echo "configure:1570: checking whether ${MAKE-make} sets \${MAKE}" >&5
1570 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1571 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1572 echo $ac_n "(cached) $ac_c" 1>&6
1574 cat > conftestmake <<\EOF
1576 @echo 'ac_maketemp="${MAKE}"'
1578 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1579 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1580 if test -n "$ac_maketemp"; then
1581 eval ac_cv_prog_make_${ac_make}_set=yes
1583 eval ac_cv_prog_make_${ac_make}_set=no
1587 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1588 echo "$ac_t""yes" 1>&6
1591 echo "$ac_t""no" 1>&6
1592 SET_MAKE="MAKE=${MAKE-make}"
1595 # Find a good install program. We prefer a C program (faster),
1596 # so one script is as good as another. But avoid the broken or
1597 # incompatible versions:
1598 # SysV /etc/install, /usr/sbin/install
1599 # SunOS /usr/etc/install
1600 # IRIX /sbin/install
1602 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1603 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1604 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1605 # ./install, which can be erroneously created by make from ./install.sh.
1606 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1607 echo "configure:1608: checking for a BSD compatible install" >&5
1608 if test -z "$INSTALL"; then
1609 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1610 echo $ac_n "(cached) $ac_c" 1>&6
1612 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1613 for ac_dir in $PATH; do
1614 # Account for people who put trailing slashes in PATH elements.
1616 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1618 # OSF1 and SCO ODT 3.0 have their own names for install.
1619 # Don't use installbsd from OSF since it installs stuff as root
1621 for ac_prog in ginstall scoinst install; do
1622 if test -f $ac_dir/$ac_prog; then
1623 if test $ac_prog = install &&
1624 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1625 # AIX install. It has an incompatible calling convention.
1628 ac_cv_path_install="$ac_dir/$ac_prog -c"
1639 if test "${ac_cv_path_install+set}" = set; then
1640 INSTALL="$ac_cv_path_install"
1642 # As a last resort, use the slow shell script. We don't cache a
1643 # path for INSTALL within a source directory, because that will
1644 # break other packages using the cache if that directory is
1645 # removed, or if the path is relative.
1646 INSTALL="$ac_install_sh"
1649 echo "$ac_t""$INSTALL" 1>&6
1651 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1652 # It thinks the first close brace ends the variable substitution.
1653 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1655 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1657 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1659 # Extract the first word of "ranlib", so it can be a program name with args.
1660 set dummy ranlib; ac_word=$2
1661 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1662 echo "configure:1663: checking for $ac_word" >&5
1663 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1664 echo $ac_n "(cached) $ac_c" 1>&6
1666 if test -n "$RANLIB"; then
1667 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1671 for ac_dir in $ac_dummy; do
1672 test -z "$ac_dir" && ac_dir=.
1673 if test -f $ac_dir/$ac_word; then
1674 ac_cv_prog_RANLIB="ranlib"
1679 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1682 RANLIB="$ac_cv_prog_RANLIB"
1683 if test -n "$RANLIB"; then
1684 echo "$ac_t""$RANLIB" 1>&6
1686 echo "$ac_t""no" 1>&6
1689 echo $ac_n "checking build system type""... $ac_c" 1>&6
1690 echo "configure:1691: checking build system type" >&5
1693 case "$build_alias" in
1696 NONE) build_alias=$host_alias ;;
1697 *) build_alias=$nonopt ;;
1701 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1702 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1703 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1704 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1705 echo "$ac_t""$build" 1>&6
1707 if test $host != $build; then
1708 ac_tool_prefix=${host_alias}-
1713 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
1714 set dummy ${ac_tool_prefix}ar; ac_word=$2
1715 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1716 echo "configure:1717: checking for $ac_word" >&5
1717 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1718 echo $ac_n "(cached) $ac_c" 1>&6
1720 if test -n "$AR"; then
1721 ac_cv_prog_AR="$AR" # Let the user override the test.
1723 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1725 for ac_dir in $ac_dummy; do
1726 test -z "$ac_dir" && ac_dir=.
1727 if test -f $ac_dir/$ac_word; then
1728 ac_cv_prog_AR="${ac_tool_prefix}ar"
1736 if test -n "$AR"; then
1737 echo "$ac_t""$AR" 1>&6
1739 echo "$ac_t""no" 1>&6
1743 if test -z "$ac_cv_prog_AR"; then
1744 if test -n "$ac_tool_prefix"; then
1745 # Extract the first word of "ar", so it can be a program name with args.
1746 set dummy ar; ac_word=$2
1747 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1748 echo "configure:1749: checking for $ac_word" >&5
1749 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1750 echo $ac_n "(cached) $ac_c" 1>&6
1752 if test -n "$AR"; then
1753 ac_cv_prog_AR="$AR" # Let the user override the test.
1755 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1757 for ac_dir in $ac_dummy; do
1758 test -z "$ac_dir" && ac_dir=.
1759 if test -f $ac_dir/$ac_word; then
1765 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1769 if test -n "$AR"; then
1770 echo "$ac_t""$AR" 1>&6
1772 echo "$ac_t""no" 1>&6
1781 echo $ac_n "checking for inline""... $ac_c" 1>&6
1782 echo "configure:1783: checking for inline" >&5
1783 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1784 echo $ac_n "(cached) $ac_c" 1>&6
1787 for ac_kw in inline __inline__ __inline; do
1788 cat > conftest.$ac_ext <<EOF
1789 #line 1790 "configure"
1790 #include "confdefs.h"
1796 if { (eval echo configure:1797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1798 ac_cv_c_inline=$ac_kw; break
1800 echo "configure: failed program was:" >&5
1801 cat conftest.$ac_ext >&5
1808 echo "$ac_t""$ac_cv_c_inline" 1>&6
1809 case "$ac_cv_c_inline" in
1811 no) cat >> confdefs.h <<\EOF
1815 *) cat >> confdefs.h <<EOF
1816 #define inline $ac_cv_c_inline
1821 echo $ac_n "checking for working const""... $ac_c" 1>&6
1822 echo "configure:1823: checking for working const" >&5
1823 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1824 echo $ac_n "(cached) $ac_c" 1>&6
1826 cat > conftest.$ac_ext <<EOF
1827 #line 1828 "configure"
1828 #include "confdefs.h"
1832 /* Ultrix mips cc rejects this. */
1833 typedef int charset[2]; const charset x;
1834 /* SunOS 4.1.1 cc rejects this. */
1835 char const *const *ccp;
1837 /* NEC SVR4.0.2 mips cc rejects this. */
1838 struct point {int x, y;};
1839 static struct point const zero = {0,0};
1840 /* AIX XL C 1.02.0.0 rejects this.
1841 It does not let you subtract one const X* pointer from another in an arm
1842 of an if-expression whose if-part is not a constant expression */
1843 const char *g = "string";
1844 ccp = &g + (g ? g-g : 0);
1845 /* HPUX 7.0 cc rejects these. */
1848 ccp = (char const *const *) p;
1849 { /* SCO 3.2v4 cc rejects this. */
1851 char const *s = 0 ? (char *) 0 : (char const *) 0;
1855 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1857 const int *foo = &x[0];
1860 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1861 typedef const int *iptr;
1865 { /* AIX XL C 1.02.0.0 rejects this saying
1866 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1867 struct s { int j; const int *ap[3]; };
1868 struct s *b; b->j = 5;
1870 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1876 if { (eval echo configure:1877: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1880 echo "configure: failed program was:" >&5
1881 cat conftest.$ac_ext >&5
1888 echo "$ac_t""$ac_cv_c_const" 1>&6
1889 if test $ac_cv_c_const = no; then
1890 cat >> confdefs.h <<\EOF
1897 # Extract the first word of "dbx", so it can be a program name with args.
1898 set dummy dbx; ac_word=$2
1899 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1900 echo "configure:1901: checking for $ac_word" >&5
1901 if eval "test \"`echo '$''{'ac_cv_path_DBX'+set}'`\" = set"; then
1902 echo $ac_n "(cached) $ac_c" 1>&6
1906 ac_cv_path_DBX="$DBX" # Let the user override the test with a path.
1909 ac_cv_path_DBX="$DBX" # Let the user override the test with a dos path.
1912 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1914 for ac_dir in $ac_dummy; do
1915 test -z "$ac_dir" && ac_dir=.
1916 if test -f $ac_dir/$ac_word; then
1917 ac_cv_path_DBX="$ac_dir/$ac_word"
1922 test -z "$ac_cv_path_DBX" && ac_cv_path_DBX="no"
1926 DBX="$ac_cv_path_DBX"
1927 if test -n "$DBX"; then
1928 echo "$ac_t""$DBX" 1>&6
1930 echo "$ac_t""no" 1>&6
1933 # Extract the first word of "gdb", so it can be a program name with args.
1934 set dummy gdb; ac_word=$2
1935 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1936 echo "configure:1937: checking for $ac_word" >&5
1937 if eval "test \"`echo '$''{'ac_cv_path_GDB'+set}'`\" = set"; then
1938 echo $ac_n "(cached) $ac_c" 1>&6
1942 ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
1945 ac_cv_path_GDB="$GDB" # Let the user override the test with a dos path.
1948 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1950 for ac_dir in $ac_dummy; do
1951 test -z "$ac_dir" && ac_dir=.
1952 if test -f $ac_dir/$ac_word; then
1953 ac_cv_path_GDB="$ac_dir/$ac_word"
1958 test -z "$ac_cv_path_GDB" && ac_cv_path_GDB="no"
1962 GDB="$ac_cv_path_GDB"
1963 if test -n "$GDB"; then
1964 echo "$ac_t""$GDB" 1>&6
1966 echo "$ac_t""no" 1>&6
1969 # Extract the first word of "sdb", so it can be a program name with args.
1970 set dummy sdb; ac_word=$2
1971 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1972 echo "configure:1973: checking for $ac_word" >&5
1973 if eval "test \"`echo '$''{'ac_cv_path_SDB'+set}'`\" = set"; then
1974 echo $ac_n "(cached) $ac_c" 1>&6
1978 ac_cv_path_SDB="$SDB" # Let the user override the test with a path.
1981 ac_cv_path_SDB="$SDB" # Let the user override the test with a dos path.
1984 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1986 for ac_dir in $ac_dummy; do
1987 test -z "$ac_dir" && ac_dir=.
1988 if test -f $ac_dir/$ac_word; then
1989 ac_cv_path_SDB="$ac_dir/$ac_word"
1994 test -z "$ac_cv_path_SDB" && ac_cv_path_SDB="no"
1998 SDB="$ac_cv_path_SDB"
1999 if test -n "$SDB"; then
2000 echo "$ac_t""$SDB" 1>&6
2002 echo "$ac_t""no" 1>&6
2006 if test $GDB != no ; then
2008 elif test $DBX != no ; then
2010 elif test $SDB != no ; then
2018 # The following templates should be used with newer automakes
2019 # instead of acconfig.h
2021 #AH_TEMPLATE([sig_atomic_t],
2022 # [/* Define to `int' if <signal.h> doesn't define.])
2023 #AH_TEMPLATE([HAVE_START_COLOR],
2024 # [Define if you have start_color, as a function or macro.])
2025 #AH_TEMPLATE([HAVE_TYPEAHEAD],
2026 # [Define if you have typeahead, as a function or macro.])
2027 #AH_TEMPLATE([HAVE_BKGDSET],
2028 # [Define if you have bkgdset, as a function or macro.])
2029 #AH_TEMPLATE([HAVE_CURS_SET],
2030 # [Define if you have curs_set, as a function or macro.])
2031 #AH_TEMPLATE([HAVE_META],
2032 # [Define if you have meta, as a function or macro.])
2033 #AH_TEMPLATE([HAVE_USE_DEFAULT_COLORS],
2034 # [Define if you have use_default_colors, as a function or macro.])
2035 #AH_TEMPLATE([HAVE_RESIZETERM],
2036 # [Define if you have resizeterm, as a function or macro.])
2037 #AH_TEMPLATE([SIG_ATOMIC_VOLATILE_T],
2038 # [Some systems declare sig_atomic_t as volatile, some others -- no.
2039 # This define will have value `sig_atomic_t' or
2040 # `volatile sig_atomic_t' accordingly.])
2041 #AH_TEMPLATE([ICONV_NONTRANS],
2042 # [Define as 1 if iconv() only converts exactly and we should treat
2043 # all return values other than (size_t)(-1) as equivalent.])
2046 ac_aux_path_sendmail=/usr/sbin:/usr/lib
2047 # Extract the first word of "sendmail", so it can be a program name with args.
2048 set dummy sendmail; ac_word=$2
2049 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2050 echo "configure:2051: checking for $ac_word" >&5
2051 if eval "test \"`echo '$''{'ac_cv_path_SENDMAIL'+set}'`\" = set"; then
2052 echo $ac_n "(cached) $ac_c" 1>&6
2056 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
2059 ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a dos path.
2062 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2063 ac_dummy="$PATH:$ac_aux_path_sendmail"
2064 for ac_dir in $ac_dummy; do
2065 test -z "$ac_dir" && ac_dir=.
2066 if test -f $ac_dir/$ac_word; then
2067 ac_cv_path_SENDMAIL="$ac_dir/$ac_word"
2072 test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/sbin/sendmail"
2076 SENDMAIL="$ac_cv_path_SENDMAIL"
2077 if test -n "$SENDMAIL"; then
2078 echo "$ac_t""$SENDMAIL" 1>&6
2080 echo "$ac_t""no" 1>&6
2083 cat >> confdefs.h <<EOF
2084 #define SENDMAIL "$ac_cv_path_SENDMAIL"
2089 if test -f $srcdir/EXPORTABLE ; then
2094 # Check whether --enable-pgp or --disable-pgp was given.
2095 if test "${enable_pgp+set}" = set; then
2096 enableval="$enable_pgp"
2097 if test x$enableval = xno ; then
2104 if test x$have_pgp != xno ; then
2105 cat >> confdefs.h <<\EOF
2106 #define CRYPT_BACKEND_CLASSIC_PGP 1
2109 PGPAUX_TARGET="pgpring pgpewrap"
2110 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pgp.o pgpinvoke.o pgpkey.o pgplib.o gnupgparse.o pgpmicalg.o pgppacket.o"
2113 # Check whether --enable-smime or --disable-smime was given.
2114 if test "${enable_smime+set}" = set; then
2115 enableval="$enable_smime"
2116 if test x$enableval = xno ; then
2123 if test x$have_smime != xno ; then
2124 cat >> confdefs.h <<\EOF
2125 #define CRYPT_BACKEND_CLASSIC_SMIME 1
2128 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS smime.o "
2129 SMIMEAUX_TARGET="smime_keys"
2132 # Check whether --with-mixmaster or --without-mixmaster was given.
2133 if test "${with_mixmaster+set}" = set; then
2134 withval="$with_mixmaster"
2135 if test -x "$withval" ; then
2136 MIXMASTER="$withval"
2138 MIXMASTER="mixmaster"
2140 OPS="$OPS \$(srcdir)/OPS.MIX"
2141 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS remailer.o"
2142 cat >> confdefs.h <<EOF
2143 #define MIXMASTER "$MIXMASTER"
2151 # We now require all OPS
2152 OPS="$OPS \$(srcdir)/OPS.PGP \$(srcdir)/OPS.SMIME \$(srcdir)/OPS.CRYPT "
2159 cat >> confdefs.h <<EOF
2160 #define SUBVERSION "$SUBVERSION"
2165 # Extract the first word of "ispell", so it can be a program name with args.
2166 set dummy ispell; ac_word=$2
2167 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2168 echo "configure:2169: checking for $ac_word" >&5
2169 if eval "test \"`echo '$''{'ac_cv_path_ISPELL'+set}'`\" = set"; then
2170 echo $ac_n "(cached) $ac_c" 1>&6
2174 ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a path.
2177 ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a dos path.
2180 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2182 for ac_dir in $ac_dummy; do
2183 test -z "$ac_dir" && ac_dir=.
2184 if test -f $ac_dir/$ac_word; then
2185 ac_cv_path_ISPELL="$ac_dir/$ac_word"
2190 test -z "$ac_cv_path_ISPELL" && ac_cv_path_ISPELL="no"
2194 ISPELL="$ac_cv_path_ISPELL"
2195 if test -n "$ISPELL"; then
2196 echo "$ac_t""$ISPELL" 1>&6
2198 echo "$ac_t""no" 1>&6
2201 if test $ISPELL != no; then
2202 cat >> confdefs.h <<EOF
2203 #define ISPELL "$ISPELL"
2208 # Check whether --with-slang or --without-slang was given.
2209 if test "${with_slang+set}" = set; then
2210 withval="$with_slang"
2211 echo $ac_n "checking if this is a BSD system""... $ac_c" 1>&6
2212 echo "configure:2213: checking if this is a BSD system" >&5
2213 if eval "test \"`echo '$''{'mutt_cv_bsdish'+set}'`\" = set"; then
2214 echo $ac_n "(cached) $ac_c" 1>&6
2216 if test "$cross_compiling" = yes; then
2219 cat > conftest.$ac_ext <<EOF
2220 #line 2221 "configure"
2221 #include "confdefs.h"
2222 #include <sys/param.h>
2233 if { (eval echo configure:2234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2237 echo "configure: failed program was:" >&5
2238 cat conftest.$ac_ext >&5
2247 echo "$ac_t""$mutt_cv_bsdish" 1>&6
2249 echo $ac_n "checking for S-Lang""... $ac_c" 1>&6
2250 echo "configure:2251: checking for S-Lang" >&5
2251 if test $withval = yes; then
2252 if test -d $srcdir/../slang; then
2253 mutt_cv_slang=$srcdir/../slang/src
2254 CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
2255 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
2257 if test -d $mutt_cv_prefix/include/slang; then
2258 CPPFLAGS="$CPPFLAGS -I$mutt_cv_prefix/include/slang"
2259 elif test -d /usr/include/slang; then
2260 CPPFLAGS="$CPPFLAGS -I/usr/include/slang"
2265 if test -f $withval/src/slang.h; then
2266 mutt_cv_slang=$withval/src
2267 CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
2268 LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
2270 mutt_cv_slang=$withval
2271 if test -d $withval/include/slang; then
2272 CPPFLAGS="$CPPFLAGS -I${withval}/include/slang"
2273 elif test -d $withval/include; then
2274 CPPFLAGS="$CPPFLAGS -I${withval}/include"
2276 LDFLAGS="$LDFLAGS -L${withval}/lib"
2279 echo "$ac_t""$mutt_cv_slang" 1>&6
2280 if test $mutt_cv_bsdish = yes; then
2281 echo $ac_n "checking for main in -ltermlib""... $ac_c" 1>&6
2282 echo "configure:2283: checking for main in -ltermlib" >&5
2283 ac_lib_var=`echo termlib'_'main | sed 'y%./+-%__p_%'`
2284 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2285 echo $ac_n "(cached) $ac_c" 1>&6
2287 ac_save_LIBS="$LIBS"
2288 LIBS="-ltermlib $LIBS"
2289 cat > conftest.$ac_ext <<EOF
2290 #line 2291 "configure"
2291 #include "confdefs.h"
2297 if { (eval echo configure:2298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2299 eval "ac_cv_lib_$ac_lib_var=yes"
2301 echo "configure: failed program was:" >&5
2302 cat conftest.$ac_ext >&5
2304 eval "ac_cv_lib_$ac_lib_var=no"
2307 LIBS="$ac_save_LIBS"
2310 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2311 echo "$ac_t""yes" 1>&6
2312 ac_tr_lib=HAVE_LIB`echo termlib | sed -e 's/[^a-zA-Z0-9_]/_/g' \
2313 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
2314 cat >> confdefs.h <<EOF
2315 #define $ac_tr_lib 1
2318 LIBS="-ltermlib $LIBS"
2321 echo "$ac_t""no" 1>&6
2325 cat >> confdefs.h <<\EOF
2326 #define USE_SLANG_CURSES 1
2329 cat >> confdefs.h <<\EOF
2330 #define HAVE_COLOR 1
2333 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
2336 echo $ac_n "checking for SLtt_get_terminfo in -lslang""... $ac_c" 1>&6
2337 echo "configure:2338: checking for SLtt_get_terminfo in -lslang" >&5
2338 ac_lib_var=`echo slang'_'SLtt_get_terminfo | sed 'y%./+-%__p_%'`
2339 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2340 echo $ac_n "(cached) $ac_c" 1>&6
2342 ac_save_LIBS="$LIBS"
2343 LIBS="-lslang -lm $LIBS"
2344 cat > conftest.$ac_ext <<EOF
2345 #line 2346 "configure"
2346 #include "confdefs.h"
2347 /* Override any gcc2 internal prototype to avoid an error. */
2348 /* We use char because int might match the return type of a gcc2
2349 builtin and then its argument prototype would still apply. */
2350 char SLtt_get_terminfo();
2356 if { (eval echo configure:2357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2358 eval "ac_cv_lib_$ac_lib_var=yes"
2360 echo "configure: failed program was:" >&5
2361 cat conftest.$ac_ext >&5
2363 eval "ac_cv_lib_$ac_lib_var=no"
2366 LIBS="$ac_save_LIBS"
2369 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2370 echo "$ac_t""yes" 1>&6
2371 MUTTLIBS="$MUTTLIBS -lslang -lm"
2373 echo "$ac_t""no" 1>&6
2374 { echo "configure: error: unable to compile. check config.log" 1>&2; exit 1; }
2381 # Check whether --with-curses or --without-curses was given.
2382 if test "${with_curses+set}" = set; then
2383 withval="$with_curses"
2384 if test $withval != yes; then
2385 mutt_cv_curses=$withval
2387 if test x$mutt_cv_curses != x/usr; then
2388 LDFLAGS="-L${mutt_cv_curses}/lib $LDFLAGS"
2389 CPPFLAGS="$CPPFLAGS -I${mutt_cv_curses}/include"
2394 echo $ac_n "checking for initscr""... $ac_c" 1>&6
2395 echo "configure:2396: checking for initscr" >&5
2396 if eval "test \"`echo '$''{'ac_cv_func_initscr'+set}'`\" = set"; then
2397 echo $ac_n "(cached) $ac_c" 1>&6
2399 cat > conftest.$ac_ext <<EOF
2400 #line 2401 "configure"
2401 #include "confdefs.h"
2402 /* System header to define __stub macros and hopefully few prototypes,
2403 which can conflict with char initscr(); below. */
2405 /* Override any gcc2 internal prototype to avoid an error. */
2406 /* We use char because int might match the return type of a gcc2
2407 builtin and then its argument prototype would still apply. */
2412 /* The GNU C library defines this for functions which it implements
2413 to always fail with ENOSYS. Some functions are actually named
2414 something starting with __ and the normal name is an alias. */
2415 #if defined (__stub_initscr) || defined (__stub___initscr)
2423 if { (eval echo configure:2424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2425 eval "ac_cv_func_initscr=yes"
2427 echo "configure: failed program was:" >&5
2428 cat conftest.$ac_ext >&5
2430 eval "ac_cv_func_initscr=no"
2435 if eval "test \"`echo '$ac_cv_func_'initscr`\" = yes"; then
2436 echo "$ac_t""yes" 1>&6
2439 echo "$ac_t""no" 1>&6
2441 cf_ncurses="ncurses"
2442 for lib in ncurses ncursesw
2444 echo $ac_n "checking for waddnwstr in -l$lib""... $ac_c" 1>&6
2445 echo "configure:2446: checking for waddnwstr in -l$lib" >&5
2446 ac_lib_var=`echo $lib'_'waddnwstr | sed 'y%./+-%__p_%'`
2447 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2448 echo $ac_n "(cached) $ac_c" 1>&6
2450 ac_save_LIBS="$LIBS"
2452 cat > conftest.$ac_ext <<EOF
2453 #line 2454 "configure"
2454 #include "confdefs.h"
2455 /* Override any gcc2 internal prototype to avoid an error. */
2456 /* We use char because int might match the return type of a gcc2
2457 builtin and then its argument prototype would still apply. */
2464 if { (eval echo configure:2465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2466 eval "ac_cv_lib_$ac_lib_var=yes"
2468 echo "configure: failed program was:" >&5
2469 cat conftest.$ac_ext >&5
2471 eval "ac_cv_lib_$ac_lib_var=no"
2474 LIBS="$ac_save_LIBS"
2477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2478 echo "$ac_t""yes" 1>&6
2479 cf_ncurses="$lib"; break
2481 echo "$ac_t""no" 1>&6
2485 echo $ac_n "checking for initscr in -l$cf_ncurses""... $ac_c" 1>&6
2486 echo "configure:2487: checking for initscr in -l$cf_ncurses" >&5
2487 ac_lib_var=`echo $cf_ncurses'_'initscr | sed 'y%./+-%__p_%'`
2488 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2489 echo $ac_n "(cached) $ac_c" 1>&6
2491 ac_save_LIBS="$LIBS"
2492 LIBS="-l$cf_ncurses $LIBS"
2493 cat > conftest.$ac_ext <<EOF
2494 #line 2495 "configure"
2495 #include "confdefs.h"
2496 /* Override any gcc2 internal prototype to avoid an error. */
2497 /* We use char because int might match the return type of a gcc2
2498 builtin and then its argument prototype would still apply. */
2505 if { (eval echo configure:2506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2507 eval "ac_cv_lib_$ac_lib_var=yes"
2509 echo "configure: failed program was:" >&5
2510 cat conftest.$ac_ext >&5
2512 eval "ac_cv_lib_$ac_lib_var=no"
2515 LIBS="$ac_save_LIBS"
2518 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2519 echo "$ac_t""yes" 1>&6
2520 MUTTLIBS="$MUTTLIBS -l$cf_ncurses"
2521 if test x$mutt_cv_curses = x/usr -a -d /usr/include/ncurses; then
2522 CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
2525 if test "$cf_ncurses" = ncursesw; then
2526 for ac_hdr in ncursesw/ncurses.h
2528 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2529 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2530 echo "configure:2531: checking for $ac_hdr" >&5
2531 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2532 echo $ac_n "(cached) $ac_c" 1>&6
2534 cat > conftest.$ac_ext <<EOF
2535 #line 2536 "configure"
2536 #include "confdefs.h"
2539 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2540 { (eval echo configure:2541: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2541 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2542 if test -z "$ac_err"; then
2544 eval "ac_cv_header_$ac_safe=yes"
2547 echo "configure: failed program was:" >&5
2548 cat conftest.$ac_ext >&5
2550 eval "ac_cv_header_$ac_safe=no"
2554 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2555 echo "$ac_t""yes" 1>&6
2556 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2557 cat >> confdefs.h <<EOF
2558 #define $ac_tr_hdr 1
2560 cf_cv_ncurses_header="ncursesw/ncurses.h"
2562 echo "$ac_t""no" 1>&6
2567 for ac_hdr in ncurses.h
2569 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2570 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2571 echo "configure:2572: checking for $ac_hdr" >&5
2572 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2573 echo $ac_n "(cached) $ac_c" 1>&6
2575 cat > conftest.$ac_ext <<EOF
2576 #line 2577 "configure"
2577 #include "confdefs.h"
2580 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2581 { (eval echo configure:2582: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2582 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2583 if test -z "$ac_err"; then
2585 eval "ac_cv_header_$ac_safe=yes"
2588 echo "configure: failed program was:" >&5
2589 cat conftest.$ac_ext >&5
2591 eval "ac_cv_header_$ac_safe=no"
2595 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2596 echo "$ac_t""yes" 1>&6
2597 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2598 cat >> confdefs.h <<EOF
2599 #define $ac_tr_hdr 1
2601 cf_cv_ncurses_header="ncurses.h"
2603 echo "$ac_t""no" 1>&6
2609 echo "$ac_t""no" 1>&6
2611 echo $ac_n "checking for initscr""... $ac_c" 1>&6
2612 echo "configure:2613: checking for initscr" >&5
2613 if eval "test \"`echo '$''{'ac_cv_func_initscr'+set}'`\" = set"; then
2614 echo $ac_n "(cached) $ac_c" 1>&6
2616 cat > conftest.$ac_ext <<EOF
2617 #line 2618 "configure"
2618 #include "confdefs.h"
2619 /* System header to define __stub macros and hopefully few prototypes,
2620 which can conflict with char initscr(); below. */
2622 /* Override any gcc2 internal prototype to avoid an error. */
2623 /* We use char because int might match the return type of a gcc2
2624 builtin and then its argument prototype would still apply. */
2629 /* The GNU C library defines this for functions which it implements
2630 to always fail with ENOSYS. Some functions are actually named
2631 something starting with __ and the normal name is an alias. */
2632 #if defined (__stub_initscr) || defined (__stub___initscr)
2640 if { (eval echo configure:2641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2642 eval "ac_cv_func_initscr=yes"
2644 echo "configure: failed program was:" >&5
2645 cat conftest.$ac_ext >&5
2647 eval "ac_cv_func_initscr=no"
2652 if eval "test \"`echo '$ac_cv_func_'initscr`\" = yes"; then
2653 echo "$ac_t""yes" 1>&6
2656 echo "$ac_t""no" 1>&6
2658 case $host_os in #(vi
2660 echo $ac_n "checking for tgoto in -lmytinfo""... $ac_c" 1>&6
2661 echo "configure:2662: checking for tgoto in -lmytinfo" >&5
2662 ac_lib_var=`echo mytinfo'_'tgoto | sed 'y%./+-%__p_%'`
2663 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2664 echo $ac_n "(cached) $ac_c" 1>&6
2666 ac_save_LIBS="$LIBS"
2667 LIBS="-lmytinfo $LIBS"
2668 cat > conftest.$ac_ext <<EOF
2669 #line 2670 "configure"
2670 #include "confdefs.h"
2671 /* Override any gcc2 internal prototype to avoid an error. */
2672 /* We use char because int might match the return type of a gcc2
2673 builtin and then its argument prototype would still apply. */
2680 if { (eval echo configure:2681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2682 eval "ac_cv_lib_$ac_lib_var=yes"
2684 echo "configure: failed program was:" >&5
2685 cat conftest.$ac_ext >&5
2687 eval "ac_cv_lib_$ac_lib_var=no"
2690 LIBS="$ac_save_LIBS"
2693 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2694 echo "$ac_t""yes" 1>&6
2695 LIBS="-lmytinfo $LIBS"
2697 echo "$ac_t""no" 1>&6
2702 echo $ac_n "checking for initscr in -lcur_colr""... $ac_c" 1>&6
2703 echo "configure:2704: checking for initscr in -lcur_colr" >&5
2704 ac_lib_var=`echo cur_colr'_'initscr | sed 'y%./+-%__p_%'`
2705 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2706 echo $ac_n "(cached) $ac_c" 1>&6
2708 ac_save_LIBS="$LIBS"
2709 LIBS="-lcur_colr $LIBS"
2710 cat > conftest.$ac_ext <<EOF
2711 #line 2712 "configure"
2712 #include "confdefs.h"
2713 /* Override any gcc2 internal prototype to avoid an error. */
2714 /* We use char because int might match the return type of a gcc2
2715 builtin and then its argument prototype would still apply. */
2722 if { (eval echo configure:2723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2724 eval "ac_cv_lib_$ac_lib_var=yes"
2726 echo "configure: failed program was:" >&5
2727 cat conftest.$ac_ext >&5
2729 eval "ac_cv_lib_$ac_lib_var=no"
2732 LIBS="$ac_save_LIBS"
2735 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2736 echo "$ac_t""yes" 1>&6
2738 LIBS="-lcur_colr $LIBS"
2739 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
2740 ac_cv_func_initscr=yes
2743 echo "$ac_t""no" 1>&6
2745 echo $ac_n "checking for initscr in -lHcurses""... $ac_c" 1>&6
2746 echo "configure:2747: checking for initscr in -lHcurses" >&5
2747 ac_lib_var=`echo Hcurses'_'initscr | sed 'y%./+-%__p_%'`
2748 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2749 echo $ac_n "(cached) $ac_c" 1>&6
2751 ac_save_LIBS="$LIBS"
2752 LIBS="-lHcurses $LIBS"
2753 cat > conftest.$ac_ext <<EOF
2754 #line 2755 "configure"
2755 #include "confdefs.h"
2756 /* Override any gcc2 internal prototype to avoid an error. */
2757 /* We use char because int might match the return type of a gcc2
2758 builtin and then its argument prototype would still apply. */
2765 if { (eval echo configure:2766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2767 eval "ac_cv_lib_$ac_lib_var=yes"
2769 echo "configure: failed program was:" >&5
2770 cat conftest.$ac_ext >&5
2772 eval "ac_cv_lib_$ac_lib_var=no"
2775 LIBS="$ac_save_LIBS"
2778 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2779 echo "$ac_t""yes" 1>&6
2781 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
2782 LIBS="-lHcurses $LIBS"
2783 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
2784 ac_cv_func_initscr=yes
2787 echo "$ac_t""no" 1>&6
2793 linux*) # Suse Linux does not follow /usr/lib convention
2798 if test ".$With5lib" != ".no" ; then
2799 if test -d /usr/5lib ; then
2801 CPPFLAGS="$CPPFLAGS -I/usr/5include"
2802 LIBS="$LIBS -L/usr/5lib"
2806 if test ".$ac_cv_func_initscr" != .yes ; then
2807 cf_save_LIBS="$LIBS"
2811 # Check for library containing tgoto. Do this before curses library
2812 # because it may be needed to link the test-case for initscr.
2813 echo $ac_n "checking for tgoto""... $ac_c" 1>&6
2814 echo "configure:2815: checking for tgoto" >&5
2815 if eval "test \"`echo '$''{'ac_cv_func_tgoto'+set}'`\" = set"; then
2816 echo $ac_n "(cached) $ac_c" 1>&6
2818 cat > conftest.$ac_ext <<EOF
2819 #line 2820 "configure"
2820 #include "confdefs.h"
2821 /* System header to define __stub macros and hopefully few prototypes,
2822 which can conflict with char tgoto(); below. */
2824 /* Override any gcc2 internal prototype to avoid an error. */
2825 /* We use char because int might match the return type of a gcc2
2826 builtin and then its argument prototype would still apply. */
2831 /* The GNU C library defines this for functions which it implements
2832 to always fail with ENOSYS. Some functions are actually named
2833 something starting with __ and the normal name is an alias. */
2834 #if defined (__stub_tgoto) || defined (__stub___tgoto)
2842 if { (eval echo configure:2843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2844 eval "ac_cv_func_tgoto=yes"
2846 echo "configure: failed program was:" >&5
2847 cat conftest.$ac_ext >&5
2849 eval "ac_cv_func_tgoto=no"
2854 if eval "test \"`echo '$ac_cv_func_'tgoto`\" = yes"; then
2855 echo "$ac_t""yes" 1>&6
2856 cf_term_lib=predefined
2858 echo "$ac_t""no" 1>&6
2860 for cf_term_lib in termcap termlib unknown
2862 echo $ac_n "checking for tgoto in -l$cf_term_lib""... $ac_c" 1>&6
2863 echo "configure:2864: checking for tgoto in -l$cf_term_lib" >&5
2864 ac_lib_var=`echo $cf_term_lib'_'tgoto | sed 'y%./+-%__p_%'`
2865 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2866 echo $ac_n "(cached) $ac_c" 1>&6
2868 ac_save_LIBS="$LIBS"
2869 LIBS="-l$cf_term_lib $LIBS"
2870 cat > conftest.$ac_ext <<EOF
2871 #line 2872 "configure"
2872 #include "confdefs.h"
2873 /* Override any gcc2 internal prototype to avoid an error. */
2874 /* We use char because int might match the return type of a gcc2
2875 builtin and then its argument prototype would still apply. */
2882 if { (eval echo configure:2883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2884 eval "ac_cv_lib_$ac_lib_var=yes"
2886 echo "configure: failed program was:" >&5
2887 cat conftest.$ac_ext >&5
2889 eval "ac_cv_lib_$ac_lib_var=no"
2892 LIBS="$ac_save_LIBS"
2895 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2896 echo "$ac_t""yes" 1>&6
2899 echo "$ac_t""no" 1>&6
2907 # Check for library containing initscr
2908 test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
2909 for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
2911 echo $ac_n "checking for initscr in -l$cf_curs_lib""... $ac_c" 1>&6
2912 echo "configure:2913: checking for initscr in -l$cf_curs_lib" >&5
2913 ac_lib_var=`echo $cf_curs_lib'_'initscr | sed 'y%./+-%__p_%'`
2914 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2915 echo $ac_n "(cached) $ac_c" 1>&6
2917 ac_save_LIBS="$LIBS"
2918 LIBS="-l$cf_curs_lib $LIBS"
2919 cat > conftest.$ac_ext <<EOF
2920 #line 2921 "configure"
2921 #include "confdefs.h"
2922 /* Override any gcc2 internal prototype to avoid an error. */
2923 /* We use char because int might match the return type of a gcc2
2924 builtin and then its argument prototype would still apply. */
2931 if { (eval echo configure:2932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2933 eval "ac_cv_lib_$ac_lib_var=yes"
2935 echo "configure: failed program was:" >&5
2936 cat conftest.$ac_ext >&5
2938 eval "ac_cv_lib_$ac_lib_var=no"
2941 LIBS="$ac_save_LIBS"
2944 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2945 echo "$ac_t""yes" 1>&6
2948 echo "$ac_t""no" 1>&6
2952 test $cf_curs_lib = unknown && { echo "configure: error: no curses library found" 1>&2; exit 1; }
2954 LIBS="-l$cf_curs_lib $cf_save_LIBS"
2955 if test "$cf_term_lib" = unknown ; then
2956 echo $ac_n "checking if we can link with $cf_curs_lib library""... $ac_c" 1>&6
2957 echo "configure:2958: checking if we can link with $cf_curs_lib library" >&5
2958 cat > conftest.$ac_ext <<EOF
2959 #line 2960 "configure"
2960 #include "confdefs.h"
2961 #include <${cf_cv_ncurses_header-curses.h}>
2966 if { (eval echo configure:2967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2970 echo "configure: failed program was:" >&5
2971 cat conftest.$ac_ext >&5
2976 echo "$ac_t""$cf_result" 1>&6
2977 test $cf_result = no && { echo "configure: error: Cannot link curses library" 1>&2; exit 1; }
2978 elif test "$cf_term_lib" != predefined ; then
2979 echo $ac_n "checking if we need both $cf_curs_lib and $cf_term_lib libraries""... $ac_c" 1>&6
2980 echo "configure:2981: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
2981 cat > conftest.$ac_ext <<EOF
2982 #line 2983 "configure"
2983 #include "confdefs.h"
2984 #include <${cf_cv_ncurses_header-curses.h}>
2986 initscr(); tgoto((char *)0, 0, 0);
2989 if { (eval echo configure:2990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2993 echo "configure: failed program was:" >&5
2994 cat conftest.$ac_ext >&5
2997 LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
2998 cat > conftest.$ac_ext <<EOF
2999 #line 3000 "configure"
3000 #include "confdefs.h"
3001 #include <${cf_cv_ncurses_header-curses.h}>
3006 if { (eval echo configure:3007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3010 echo "configure: failed program was:" >&5
3011 cat conftest.$ac_ext >&5
3019 echo "$ac_t""$cf_result" 1>&6
3033 LIBS="$LIBS $MUTTLIBS"
3034 for ac_func in start_color typeahead bkgdset curs_set meta use_default_colors resizeterm
3037 echo $ac_n "checking for $ac_func declaration""... $ac_c" 1>&6
3038 echo "configure:3039: checking for $ac_func declaration" >&5
3039 if eval "test \"`echo '$''{'ac_cv_func_decl_$ac_func'+set}'`\" = set"; then
3040 echo $ac_n "(cached) $ac_c" 1>&6
3042 cat > conftest.$ac_ext <<EOF
3043 #line 3044 "configure"
3044 #include "confdefs.h"
3045 #include <${cf_cv_ncurses_header-curses.h}>
3048 extern int ${ac_func}();
3052 if { (eval echo configure:3053: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3055 cat > conftest.$ac_ext <<EOF
3056 #line 3057 "configure"
3057 #include "confdefs.h"
3058 #include <${cf_cv_ncurses_header-curses.h}>
3061 int (*p)() = ${ac_func};
3065 if { (eval echo configure:3066: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3068 eval "ac_cv_func_decl_$ac_func=yes"
3070 echo "configure: failed program was:" >&5
3071 cat conftest.$ac_ext >&5
3074 eval "ac_cv_func_decl_$ac_func=no"
3078 echo "configure: failed program was:" >&5
3079 cat conftest.$ac_ext >&5
3082 eval "ac_cv_func_decl_$ac_func=yes"
3087 if eval "test \"`echo '$ac_cv_func_'decl_$ac_func`\" = yes"; then
3088 echo "$ac_t""yes" 1>&6
3091 ac_tr_func=`echo HAVE_$ac_func | tr '[a-z]' '[A-Z]'`
3093 cat >> confdefs.h <<EOF
3094 #define $ac_tr_func 1
3098 echo "$ac_t""no" 1>&6
3102 if test "$ac_cv_func_decl_start_color" = yes; then
3103 cat >> confdefs.h <<\EOF
3104 #define HAVE_COLOR 1
3108 if test "$ac_cv_func_decl_resizeterm" = yes; then
3109 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
3116 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
3117 echo "configure:3118: checking for ANSI C header files" >&5
3118 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
3119 echo $ac_n "(cached) $ac_c" 1>&6
3121 cat > conftest.$ac_ext <<EOF
3122 #line 3123 "configure"
3123 #include "confdefs.h"
3129 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3130 { (eval echo configure:3131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3131 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3132 if test -z "$ac_err"; then
3134 ac_cv_header_stdc=yes
3137 echo "configure: failed program was:" >&5
3138 cat conftest.$ac_ext >&5
3140 ac_cv_header_stdc=no
3144 if test $ac_cv_header_stdc = yes; then
3145 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3146 cat > conftest.$ac_ext <<EOF
3147 #line 3148 "configure"
3148 #include "confdefs.h"
3151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3152 egrep "memchr" >/dev/null 2>&1; then
3156 ac_cv_header_stdc=no
3162 if test $ac_cv_header_stdc = yes; then
3163 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3164 cat > conftest.$ac_ext <<EOF
3165 #line 3166 "configure"
3166 #include "confdefs.h"
3169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3170 egrep "free" >/dev/null 2>&1; then
3174 ac_cv_header_stdc=no
3180 if test $ac_cv_header_stdc = yes; then
3181 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3182 if test "$cross_compiling" = yes; then
3185 cat > conftest.$ac_ext <<EOF
3186 #line 3187 "configure"
3187 #include "confdefs.h"
3189 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3190 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3191 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3192 int main () { int i; for (i = 0; i < 256; i++)
3193 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
3197 if { (eval echo configure:3198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3201 echo "configure: failed program was:" >&5
3202 cat conftest.$ac_ext >&5
3204 ac_cv_header_stdc=no
3212 echo "$ac_t""$ac_cv_header_stdc" 1>&6
3213 if test $ac_cv_header_stdc = yes; then
3214 cat >> confdefs.h <<\EOF
3215 #define STDC_HEADERS 1
3221 for ac_hdr in stdarg.h sys/ioctl.h ioctl.h sysexits.h
3223 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3224 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3225 echo "configure:3226: checking for $ac_hdr" >&5
3226 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3227 echo $ac_n "(cached) $ac_c" 1>&6
3229 cat > conftest.$ac_ext <<EOF
3230 #line 3231 "configure"
3231 #include "confdefs.h"
3234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3235 { (eval echo configure:3236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3236 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3237 if test -z "$ac_err"; then
3239 eval "ac_cv_header_$ac_safe=yes"
3242 echo "configure: failed program was:" >&5
3243 cat conftest.$ac_ext >&5
3245 eval "ac_cv_header_$ac_safe=no"
3249 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3250 echo "$ac_t""yes" 1>&6
3251 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3252 cat >> confdefs.h <<EOF
3253 #define $ac_tr_hdr 1
3257 echo "$ac_t""no" 1>&6
3261 for ac_hdr in sys/time.h sys/resource.h
3263 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3264 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3265 echo "configure:3266: checking for $ac_hdr" >&5
3266 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3267 echo $ac_n "(cached) $ac_c" 1>&6
3269 cat > conftest.$ac_ext <<EOF
3270 #line 3271 "configure"
3271 #include "confdefs.h"
3274 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3275 { (eval echo configure:3276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3276 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3277 if test -z "$ac_err"; then
3279 eval "ac_cv_header_$ac_safe=yes"
3282 echo "configure: failed program was:" >&5
3283 cat conftest.$ac_ext >&5
3285 eval "ac_cv_header_$ac_safe=no"
3289 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3290 echo "$ac_t""yes" 1>&6
3291 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3292 cat >> confdefs.h <<EOF
3293 #define $ac_tr_hdr 1
3297 echo "$ac_t""no" 1>&6
3301 for ac_hdr in unix.h
3303 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3304 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3305 echo "configure:3306: checking for $ac_hdr" >&5
3306 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3307 echo $ac_n "(cached) $ac_c" 1>&6
3309 cat > conftest.$ac_ext <<EOF
3310 #line 3311 "configure"
3311 #include "confdefs.h"
3314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3315 { (eval echo configure:3316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3317 if test -z "$ac_err"; then
3319 eval "ac_cv_header_$ac_safe=yes"
3322 echo "configure: failed program was:" >&5
3323 cat conftest.$ac_ext >&5
3325 eval "ac_cv_header_$ac_safe=no"
3329 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3330 echo "$ac_t""yes" 1>&6
3331 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3332 cat >> confdefs.h <<EOF
3333 #define $ac_tr_hdr 1
3337 echo "$ac_t""no" 1>&6
3342 for ac_func in setrlimit getsid isctype
3344 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3345 echo "configure:3346: checking for $ac_func" >&5
3346 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3347 echo $ac_n "(cached) $ac_c" 1>&6
3349 cat > conftest.$ac_ext <<EOF
3350 #line 3351 "configure"
3351 #include "confdefs.h"
3352 /* System header to define __stub macros and hopefully few prototypes,
3353 which can conflict with char $ac_func(); below. */
3355 /* Override any gcc2 internal prototype to avoid an error. */
3356 /* We use char because int might match the return type of a gcc2
3357 builtin and then its argument prototype would still apply. */
3362 /* The GNU C library defines this for functions which it implements
3363 to always fail with ENOSYS. Some functions are actually named
3364 something starting with __ and the normal name is an alias. */
3365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3373 if { (eval echo configure:3374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3375 eval "ac_cv_func_$ac_func=yes"
3377 echo "configure: failed program was:" >&5
3378 cat conftest.$ac_ext >&5
3380 eval "ac_cv_func_$ac_func=no"
3385 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3386 echo "$ac_t""yes" 1>&6
3387 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3388 cat >> confdefs.h <<EOF
3389 #define $ac_tr_func 1
3393 echo "$ac_t""no" 1>&6
3398 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3399 echo "configure:3400: checking return type of signal handlers" >&5
3400 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3401 echo $ac_n "(cached) $ac_c" 1>&6
3403 cat > conftest.$ac_ext <<EOF
3404 #line 3405 "configure"
3405 #include "confdefs.h"
3406 #include <sys/types.h>
3412 extern "C" void (*signal (int, void (*)(int)))(int);
3414 void (*signal ()) ();
3421 if { (eval echo configure:3422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3423 ac_cv_type_signal=void
3425 echo "configure: failed program was:" >&5
3426 cat conftest.$ac_ext >&5
3428 ac_cv_type_signal=int
3433 echo "$ac_t""$ac_cv_type_signal" 1>&6
3434 cat >> confdefs.h <<EOF
3435 #define RETSIGTYPE $ac_cv_type_signal
3440 echo $ac_n "checking for sig_atomic_t in signal.h""... $ac_c" 1>&6
3441 echo "configure:3442: checking for sig_atomic_t in signal.h" >&5
3442 cat > conftest.$ac_ext <<EOF
3443 #line 3444 "configure"
3444 #include "confdefs.h"
3447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3448 egrep "sig_atomic_t" >/dev/null 2>&1; then
3451 ac_cv_type_sig_atomic_t=yes;
3452 cat > conftest.$ac_ext <<EOF
3453 #line 3454 "configure"
3454 #include "confdefs.h"
3457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3458 egrep "volatile.*sig_atomic_t" >/dev/null 2>&1; then
3461 is_sig_atomic_t_volatile=yes;
3462 echo "$ac_t""yes, volatile" 1>&6
3467 is_sig_atomic_t_volatile=no;
3468 echo "$ac_t""yes, non volatile" 1>&6
3477 echo "$ac_t""no" 1>&6
3478 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
3479 echo "configure:3480: checking for sig_atomic_t" >&5
3480 if eval "test \"`echo '$''{'ac_cv_type_sig_atomic_t'+set}'`\" = set"; then
3481 echo $ac_n "(cached) $ac_c" 1>&6
3483 cat > conftest.$ac_ext <<EOF
3484 #line 3485 "configure"
3485 #include "confdefs.h"
3486 #include <sys/types.h>
3492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3493 egrep "(^|[^a-zA-Z_0-9])sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3495 ac_cv_type_sig_atomic_t=yes
3498 ac_cv_type_sig_atomic_t=no
3503 echo "$ac_t""$ac_cv_type_sig_atomic_t" 1>&6
3504 if test $ac_cv_type_sig_atomic_t = no; then
3505 cat >> confdefs.h <<\EOF
3506 #define sig_atomic_t int
3511 is_sig_atomic_t_volatile=no
3516 if test $is_sig_atomic_t_volatile = 'yes'
3518 cat >> confdefs.h <<\EOF
3519 #define SIG_ATOMIC_VOLATILE_T sig_atomic_t
3523 cat >> confdefs.h <<\EOF
3524 #define SIG_ATOMIC_VOLATILE_T volatile sig_atomic_t
3529 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
3530 echo "configure:3531: checking for sys_siglist declaration in signal.h or unistd.h" >&5
3531 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
3532 echo $ac_n "(cached) $ac_c" 1>&6
3534 cat > conftest.$ac_ext <<EOF
3535 #line 3536 "configure"
3536 #include "confdefs.h"
3537 #include <sys/types.h>
3539 /* NetBSD declares sys_siglist in unistd.h. */
3540 #ifdef HAVE_UNISTD_H
3544 char *msg = *(sys_siglist + 1);
3547 if { (eval echo configure:3548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3549 ac_cv_decl_sys_siglist=yes
3551 echo "configure: failed program was:" >&5
3552 cat conftest.$ac_ext >&5
3554 ac_cv_decl_sys_siglist=no
3559 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
3560 if test $ac_cv_decl_sys_siglist = yes; then
3561 cat >> confdefs.h <<\EOF
3562 #define SYS_SIGLIST_DECLARED 1
3568 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3569 echo "configure:3570: checking whether byte ordering is bigendian" >&5
3570 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3571 echo $ac_n "(cached) $ac_c" 1>&6
3573 ac_cv_c_bigendian=unknown
3574 # See if sys/param.h defines the BYTE_ORDER macro.
3575 cat > conftest.$ac_ext <<EOF
3576 #line 3577 "configure"
3577 #include "confdefs.h"
3578 #include <sys/types.h>
3579 #include <sys/param.h>
3582 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3587 if { (eval echo configure:3588: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3589 # It does; now see whether it defined to BIG_ENDIAN or not.
3590 cat > conftest.$ac_ext <<EOF
3591 #line 3592 "configure"
3592 #include "confdefs.h"
3593 #include <sys/types.h>
3594 #include <sys/param.h>
3597 #if BYTE_ORDER != BIG_ENDIAN
3602 if { (eval echo configure:3603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3604 ac_cv_c_bigendian=yes
3606 echo "configure: failed program was:" >&5
3607 cat conftest.$ac_ext >&5
3609 ac_cv_c_bigendian=no
3613 echo "configure: failed program was:" >&5
3614 cat conftest.$ac_ext >&5
3617 if test $ac_cv_c_bigendian = unknown; then
3618 if test "$cross_compiling" = yes; then
3619 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3621 cat > conftest.$ac_ext <<EOF
3622 #line 3623 "configure"
3623 #include "confdefs.h"
3625 /* Are we little or big endian? From Harbison&Steele. */
3629 char c[sizeof (long)];
3632 exit (u.c[sizeof (long) - 1] == 1);
3635 if { (eval echo configure:3636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3637 ac_cv_c_bigendian=no
3639 echo "configure: failed program was:" >&5
3640 cat conftest.$ac_ext >&5
3642 ac_cv_c_bigendian=yes
3650 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3651 if test $ac_cv_c_bigendian = yes; then
3652 cat >> confdefs.h <<\EOF
3653 #define WORDS_BIGENDIAN 1
3658 for ac_hdr in inttypes.h stdint.h
3660 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3661 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3662 echo "configure:3663: checking for $ac_hdr" >&5
3663 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3664 echo $ac_n "(cached) $ac_c" 1>&6
3666 cat > conftest.$ac_ext <<EOF
3667 #line 3668 "configure"
3668 #include "confdefs.h"
3671 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3672 { (eval echo configure:3673: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3673 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3674 if test -z "$ac_err"; then
3676 eval "ac_cv_header_$ac_safe=yes"
3679 echo "configure: failed program was:" >&5
3680 cat conftest.$ac_ext >&5
3682 eval "ac_cv_header_$ac_safe=no"
3686 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3687 echo "$ac_t""yes" 1>&6
3688 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3689 cat >> confdefs.h <<EOF
3690 #define $ac_tr_hdr 1
3694 echo "$ac_t""no" 1>&6
3698 echo $ac_n "checking for uint32_t""... $ac_c" 1>&6
3699 echo "configure:3700: checking for uint32_t" >&5
3700 cat > conftest.$ac_ext <<EOF
3701 #line 3702 "configure"
3702 #include "confdefs.h"
3704 #include <sys/types.h>
3706 #include <inttypes.h>
3715 if (sizeof (uint32_t))
3720 if { (eval echo configure:3721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3723 cat >> confdefs.h <<\EOF
3724 #define HAVE_UINT32_T 1
3727 echo "$ac_t""yes" 1>&6
3730 echo "configure: failed program was:" >&5
3731 cat conftest.$ac_ext >&5
3733 echo "$ac_t""no" 1>&6
3737 echo $ac_n "checking size of int""... $ac_c" 1>&6
3738 echo "configure:3739: checking size of int" >&5
3739 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
3740 echo $ac_n "(cached) $ac_c" 1>&6
3742 if test "$cross_compiling" = yes; then
3743 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3745 cat > conftest.$ac_ext <<EOF
3746 #line 3747 "configure"
3747 #include "confdefs.h"
3749 #include <sys/types.h>
3752 FILE *f=fopen("conftestval", "w");
3754 fprintf(f, "%d\n", sizeof(int));
3758 if { (eval echo configure:3759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3760 ac_cv_sizeof_int=`cat conftestval`
3762 echo "configure: failed program was:" >&5
3763 cat conftest.$ac_ext >&5
3771 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
3772 cat >> confdefs.h <<EOF
3773 #define SIZEOF_INT $ac_cv_sizeof_int
3777 echo $ac_n "checking size of long""... $ac_c" 1>&6
3778 echo "configure:3779: checking size of long" >&5
3779 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
3780 echo $ac_n "(cached) $ac_c" 1>&6
3782 if test "$cross_compiling" = yes; then
3783 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
3785 cat > conftest.$ac_ext <<EOF
3786 #line 3787 "configure"
3787 #include "confdefs.h"
3789 #include <sys/types.h>
3792 FILE *f=fopen("conftestval", "w");
3794 fprintf(f, "%d\n", sizeof(long));
3798 if { (eval echo configure:3799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3800 ac_cv_sizeof_long=`cat conftestval`
3802 echo "configure: failed program was:" >&5
3803 cat conftest.$ac_ext >&5
3811 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
3812 cat >> confdefs.h <<EOF
3813 #define SIZEOF_LONG $ac_cv_sizeof_long
3818 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3819 echo "configure:3820: checking for pid_t" >&5
3820 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3821 echo $ac_n "(cached) $ac_c" 1>&6
3823 cat > conftest.$ac_ext <<EOF
3824 #line 3825 "configure"
3825 #include "confdefs.h"
3826 #include <sys/types.h>
3832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3833 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
3835 ac_cv_type_pid_t=yes
3843 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3844 if test $ac_cv_type_pid_t = no; then
3845 cat >> confdefs.h <<\EOF
3852 for ac_func in fgetpos memmove setegid srand48 strerror
3854 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3855 echo "configure:3856: checking for $ac_func" >&5
3856 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3857 echo $ac_n "(cached) $ac_c" 1>&6
3859 cat > conftest.$ac_ext <<EOF
3860 #line 3861 "configure"
3861 #include "confdefs.h"
3862 /* System header to define __stub macros and hopefully few prototypes,
3863 which can conflict with char $ac_func(); below. */
3865 /* Override any gcc2 internal prototype to avoid an error. */
3866 /* We use char because int might match the return type of a gcc2
3867 builtin and then its argument prototype would still apply. */
3872 /* The GNU C library defines this for functions which it implements
3873 to always fail with ENOSYS. Some functions are actually named
3874 something starting with __ and the normal name is an alias. */
3875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3883 if { (eval echo configure:3884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3885 eval "ac_cv_func_$ac_func=yes"
3887 echo "configure: failed program was:" >&5
3888 cat conftest.$ac_ext >&5
3890 eval "ac_cv_func_$ac_func=no"
3895 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3896 echo "$ac_t""yes" 1>&6
3897 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3898 cat >> confdefs.h <<EOF
3899 #define $ac_tr_func 1
3903 echo "$ac_t""no" 1>&6
3908 for ac_func in strcasecmp strdup
3910 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3911 echo "configure:3912: checking for $ac_func" >&5
3912 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3913 echo $ac_n "(cached) $ac_c" 1>&6
3915 cat > conftest.$ac_ext <<EOF
3916 #line 3917 "configure"
3917 #include "confdefs.h"
3918 /* System header to define __stub macros and hopefully few prototypes,
3919 which can conflict with char $ac_func(); below. */
3921 /* Override any gcc2 internal prototype to avoid an error. */
3922 /* We use char because int might match the return type of a gcc2
3923 builtin and then its argument prototype would still apply. */
3928 /* The GNU C library defines this for functions which it implements
3929 to always fail with ENOSYS. Some functions are actually named
3930 something starting with __ and the normal name is an alias. */
3931 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3939 if { (eval echo configure:3940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3941 eval "ac_cv_func_$ac_func=yes"
3943 echo "configure: failed program was:" >&5
3944 cat conftest.$ac_ext >&5
3946 eval "ac_cv_func_$ac_func=no"
3951 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3952 echo "$ac_t""yes" 1>&6
3953 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3954 cat >> confdefs.h <<EOF
3955 #define $ac_tr_func 1
3959 echo "$ac_t""no" 1>&6
3960 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
3966 echo $ac_n "checking for getopt""... $ac_c" 1>&6
3967 echo "configure:3968: checking for getopt" >&5
3968 if eval "test \"`echo '$''{'ac_cv_func_getopt'+set}'`\" = set"; then
3969 echo $ac_n "(cached) $ac_c" 1>&6
3971 cat > conftest.$ac_ext <<EOF
3972 #line 3973 "configure"
3973 #include "confdefs.h"
3974 /* System header to define __stub macros and hopefully few prototypes,
3975 which can conflict with char getopt(); below. */
3977 /* Override any gcc2 internal prototype to avoid an error. */
3978 /* We use char because int might match the return type of a gcc2
3979 builtin and then its argument prototype would still apply. */
3984 /* The GNU C library defines this for functions which it implements
3985 to always fail with ENOSYS. Some functions are actually named
3986 something starting with __ and the normal name is an alias. */
3987 #if defined (__stub_getopt) || defined (__stub___getopt)
3995 if { (eval echo configure:3996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3997 eval "ac_cv_func_getopt=yes"
3999 echo "configure: failed program was:" >&5
4000 cat conftest.$ac_ext >&5
4002 eval "ac_cv_func_getopt=no"
4007 if eval "test \"`echo '$ac_cv_func_'getopt`\" = yes"; then
4008 echo "$ac_t""yes" 1>&6
4011 echo "$ac_t""no" 1>&6
4014 if test $ac_cv_func_getopt = yes; then
4015 for ac_hdr in getopt.h
4017 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4018 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4019 echo "configure:4020: checking for $ac_hdr" >&5
4020 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4021 echo $ac_n "(cached) $ac_c" 1>&6
4023 cat > conftest.$ac_ext <<EOF
4024 #line 4025 "configure"
4025 #include "confdefs.h"
4028 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4029 { (eval echo configure:4030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4030 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4031 if test -z "$ac_err"; then
4033 eval "ac_cv_header_$ac_safe=yes"
4036 echo "configure: failed program was:" >&5
4037 cat conftest.$ac_ext >&5
4039 eval "ac_cv_header_$ac_safe=no"
4043 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4044 echo "$ac_t""yes" 1>&6
4045 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4046 cat >> confdefs.h <<EOF
4047 #define $ac_tr_hdr 1
4051 echo "$ac_t""no" 1>&6
4059 for ac_func in snprintf
4061 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4062 echo "configure:4063: checking for $ac_func" >&5
4063 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4064 echo $ac_n "(cached) $ac_c" 1>&6
4066 cat > conftest.$ac_ext <<EOF
4067 #line 4068 "configure"
4068 #include "confdefs.h"
4069 /* System header to define __stub macros and hopefully few prototypes,
4070 which can conflict with char $ac_func(); below. */
4072 /* Override any gcc2 internal prototype to avoid an error. */
4073 /* We use char because int might match the return type of a gcc2
4074 builtin and then its argument prototype would still apply. */
4079 /* The GNU C library defines this for functions which it implements
4080 to always fail with ENOSYS. Some functions are actually named
4081 something starting with __ and the normal name is an alias. */
4082 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4090 if { (eval echo configure:4091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4092 eval "ac_cv_func_$ac_func=yes"
4094 echo "configure: failed program was:" >&5
4095 cat conftest.$ac_ext >&5
4097 eval "ac_cv_func_$ac_func=no"
4102 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4103 echo "$ac_t""yes" 1>&6
4104 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4105 cat >> confdefs.h <<EOF
4106 #define $ac_tr_func 1
4110 echo "$ac_t""no" 1>&6
4111 mutt_cv_snprintf=yes
4115 for ac_func in vsnprintf
4117 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4118 echo "configure:4119: checking for $ac_func" >&5
4119 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4120 echo $ac_n "(cached) $ac_c" 1>&6
4122 cat > conftest.$ac_ext <<EOF
4123 #line 4124 "configure"
4124 #include "confdefs.h"
4125 /* System header to define __stub macros and hopefully few prototypes,
4126 which can conflict with char $ac_func(); below. */
4128 /* Override any gcc2 internal prototype to avoid an error. */
4129 /* We use char because int might match the return type of a gcc2
4130 builtin and then its argument prototype would still apply. */
4135 /* The GNU C library defines this for functions which it implements
4136 to always fail with ENOSYS. Some functions are actually named
4137 something starting with __ and the normal name is an alias. */
4138 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4146 if { (eval echo configure:4147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4148 eval "ac_cv_func_$ac_func=yes"
4150 echo "configure: failed program was:" >&5
4151 cat conftest.$ac_ext >&5
4153 eval "ac_cv_func_$ac_func=no"
4158 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4159 echo "$ac_t""yes" 1>&6
4160 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4161 cat >> confdefs.h <<EOF
4162 #define $ac_tr_func 1
4166 echo "$ac_t""no" 1>&6
4167 mutt_cv_snprintf=yes
4171 if test $mutt_cv_snprintf = yes; then
4172 LIBOBJS="$LIBOBJS snprintf.o"
4175 for ac_func in ftruncate
4177 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4178 echo "configure:4179: checking for $ac_func" >&5
4179 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4180 echo $ac_n "(cached) $ac_c" 1>&6
4182 cat > conftest.$ac_ext <<EOF
4183 #line 4184 "configure"
4184 #include "confdefs.h"
4185 /* System header to define __stub macros and hopefully few prototypes,
4186 which can conflict with char $ac_func(); below. */
4188 /* Override any gcc2 internal prototype to avoid an error. */
4189 /* We use char because int might match the return type of a gcc2
4190 builtin and then its argument prototype would still apply. */
4195 /* The GNU C library defines this for functions which it implements
4196 to always fail with ENOSYS. Some functions are actually named
4197 something starting with __ and the normal name is an alias. */
4198 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4206 if { (eval echo configure:4207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4208 eval "ac_cv_func_$ac_func=yes"
4210 echo "configure: failed program was:" >&5
4211 cat conftest.$ac_ext >&5
4213 eval "ac_cv_func_$ac_func=no"
4218 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4219 echo "$ac_t""yes" 1>&6
4220 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4221 cat >> confdefs.h <<EOF
4222 #define $ac_tr_func 1
4226 echo "$ac_t""no" 1>&6
4227 echo $ac_n "checking for chsize in -lx""... $ac_c" 1>&6
4228 echo "configure:4229: checking for chsize in -lx" >&5
4229 ac_lib_var=`echo x'_'chsize | sed 'y%./+-%__p_%'`
4230 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4231 echo $ac_n "(cached) $ac_c" 1>&6
4233 ac_save_LIBS="$LIBS"
4235 cat > conftest.$ac_ext <<EOF
4236 #line 4237 "configure"
4237 #include "confdefs.h"
4238 /* Override any gcc2 internal prototype to avoid an error. */
4239 /* We use char because int might match the return type of a gcc2
4240 builtin and then its argument prototype would still apply. */
4247 if { (eval echo configure:4248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4249 eval "ac_cv_lib_$ac_lib_var=yes"
4251 echo "configure: failed program was:" >&5
4252 cat conftest.$ac_ext >&5
4254 eval "ac_cv_lib_$ac_lib_var=no"
4257 LIBS="$ac_save_LIBS"
4260 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4261 echo "$ac_t""yes" 1>&6
4262 ac_tr_lib=HAVE_LIB`echo x | sed -e 's/^a-zA-Z0-9_/_/g' \
4263 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4264 cat >> confdefs.h <<EOF
4265 #define $ac_tr_lib 1
4271 echo "$ac_t""no" 1>&6
4278 for ac_func in strftime
4280 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4281 echo "configure:4282: checking for $ac_func" >&5
4282 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4283 echo $ac_n "(cached) $ac_c" 1>&6
4285 cat > conftest.$ac_ext <<EOF
4286 #line 4287 "configure"
4287 #include "confdefs.h"
4288 /* System header to define __stub macros and hopefully few prototypes,
4289 which can conflict with char $ac_func(); below. */
4291 /* Override any gcc2 internal prototype to avoid an error. */
4292 /* We use char because int might match the return type of a gcc2
4293 builtin and then its argument prototype would still apply. */
4298 /* The GNU C library defines this for functions which it implements
4299 to always fail with ENOSYS. Some functions are actually named
4300 something starting with __ and the normal name is an alias. */
4301 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4309 if { (eval echo configure:4310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4311 eval "ac_cv_func_$ac_func=yes"
4313 echo "configure: failed program was:" >&5
4314 cat conftest.$ac_ext >&5
4316 eval "ac_cv_func_$ac_func=no"
4321 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4322 echo "$ac_t""yes" 1>&6
4323 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4324 cat >> confdefs.h <<EOF
4325 #define $ac_tr_func 1
4329 echo "$ac_t""no" 1>&6
4330 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
4331 echo "configure:4332: checking for strftime in -lintl" >&5
4332 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-%__p_%'`
4333 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4334 echo $ac_n "(cached) $ac_c" 1>&6
4336 ac_save_LIBS="$LIBS"
4338 cat > conftest.$ac_ext <<EOF
4339 #line 4340 "configure"
4340 #include "confdefs.h"
4341 /* Override any gcc2 internal prototype to avoid an error. */
4342 /* We use char because int might match the return type of a gcc2
4343 builtin and then its argument prototype would still apply. */
4350 if { (eval echo configure:4351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4352 eval "ac_cv_lib_$ac_lib_var=yes"
4354 echo "configure: failed program was:" >&5
4355 cat conftest.$ac_ext >&5
4357 eval "ac_cv_lib_$ac_lib_var=no"
4360 LIBS="$ac_save_LIBS"
4363 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4364 echo "$ac_t""yes" 1>&6
4365 ac_tr_lib=HAVE_LIB`echo intl | sed -e 's/^a-zA-Z0-9_/_/g' \
4366 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4367 cat >> confdefs.h <<EOF
4368 #define $ac_tr_lib 1
4374 echo "$ac_t""no" 1>&6
4381 for ac_func in fchdir
4383 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4384 echo "configure:4385: checking for $ac_func" >&5
4385 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4386 echo $ac_n "(cached) $ac_c" 1>&6
4388 cat > conftest.$ac_ext <<EOF
4389 #line 4390 "configure"
4390 #include "confdefs.h"
4391 /* System header to define __stub macros and hopefully few prototypes,
4392 which can conflict with char $ac_func(); below. */
4394 /* Override any gcc2 internal prototype to avoid an error. */
4395 /* We use char because int might match the return type of a gcc2
4396 builtin and then its argument prototype would still apply. */
4401 /* The GNU C library defines this for functions which it implements
4402 to always fail with ENOSYS. Some functions are actually named
4403 something starting with __ and the normal name is an alias. */
4404 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4412 if { (eval echo configure:4413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4414 eval "ac_cv_func_$ac_func=yes"
4416 echo "configure: failed program was:" >&5
4417 cat conftest.$ac_ext >&5
4419 eval "ac_cv_func_$ac_func=no"
4424 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4425 echo "$ac_t""yes" 1>&6
4426 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4427 cat >> confdefs.h <<EOF
4428 #define $ac_tr_func 1
4432 echo "$ac_t""no" 1>&6
4438 # Check whether --with-regex or --without-regex was given.
4439 if test "${with_regex+set}" = set; then
4440 withval="$with_regex"
4443 for ac_func in regcomp
4445 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4446 echo "configure:4447: checking for $ac_func" >&5
4447 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4448 echo $ac_n "(cached) $ac_c" 1>&6
4450 cat > conftest.$ac_ext <<EOF
4451 #line 4452 "configure"
4452 #include "confdefs.h"
4453 /* System header to define __stub macros and hopefully few prototypes,
4454 which can conflict with char $ac_func(); below. */
4456 /* Override any gcc2 internal prototype to avoid an error. */
4457 /* We use char because int might match the return type of a gcc2
4458 builtin and then its argument prototype would still apply. */
4463 /* The GNU C library defines this for functions which it implements
4464 to always fail with ENOSYS. Some functions are actually named
4465 something starting with __ and the normal name is an alias. */
4466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4474 if { (eval echo configure:4475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4476 eval "ac_cv_func_$ac_func=yes"
4478 echo "configure: failed program was:" >&5
4479 cat conftest.$ac_ext >&5
4481 eval "ac_cv_func_$ac_func=no"
4486 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4487 echo "$ac_t""yes" 1>&6
4488 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4489 cat >> confdefs.h <<EOF
4490 #define $ac_tr_func 1
4494 echo "$ac_t""no" 1>&6
4502 if test $mutt_cv_regex = no ; then
4503 echo $ac_n "checking whether your system's regexp library is completely broken""... $ac_c" 1>&6
4504 echo "configure:4505: checking whether your system's regexp library is completely broken" >&5
4505 if eval "test \"`echo '$''{'mutt_cv_regex_broken'+set}'`\" = set"; then
4506 echo $ac_n "(cached) $ac_c" 1>&6
4508 if test "$cross_compiling" = yes; then
4509 mutt_cv_regex_broken=yes
4511 cat > conftest.$ac_ext <<EOF
4512 #line 4513 "configure"
4513 #include "confdefs.h"
4517 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); }
4519 if { (eval echo configure:4520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4521 mutt_cv_regex_broken=no
4523 echo "configure: failed program was:" >&5
4524 cat conftest.$ac_ext >&5
4526 mutt_cv_regex_broken=yes
4533 echo "$ac_t""$mutt_cv_regex_broken" 1>&6
4534 if test $mutt_cv_regex_broken = yes ; then
4535 echo "Using the included GNU regex instead." >&6
4540 if test $mutt_cv_regex = yes; then
4541 cat >> confdefs.h <<\EOF
4542 #define USE_GNU_REGEX 1
4545 LIBOBJS="$LIBOBJS regex.o"
4549 # Check whether --with-homespool or --without-homespool was given.
4550 if test "${with_homespool+set}" = set; then
4551 withval="$with_homespool"
4552 with_homespool=${withval}
4555 if test x$with_homespool != x; then
4556 if test $with_homespool = yes; then
4557 with_homespool=mailbox
4559 cat >> confdefs.h <<EOF
4560 #define MAILPATH "$with_homespool"
4563 cat >> confdefs.h <<\EOF
4567 cat >> confdefs.h <<\EOF
4568 #define USE_DOTLOCK 1
4573 # Check whether --with-mailpath or --without-mailpath was given.
4574 if test "${with_mailpath+set}" = set; then
4575 withval="$with_mailpath"
4576 mutt_cv_mailpath=$withval
4578 echo $ac_n "checking where new mail is stored""... $ac_c" 1>&6
4579 echo "configure:4580: checking where new mail is stored" >&5
4580 if eval "test \"`echo '$''{'mutt_cv_mailpath'+set}'`\" = set"; then
4581 echo $ac_n "(cached) $ac_c" 1>&6
4584 if test -d /var/mail; then
4585 mutt_cv_mailpath=/var/mail
4586 elif test -d /var/spool/mail; then
4587 mutt_cv_mailpath=/var/spool/mail
4588 elif test -d /usr/spool/mail; then
4589 mutt_cv_mailpath=/usr/spool/mail
4590 elif test -d /usr/mail; then
4591 mutt_cv_mailpath=/usr/mail
4595 echo "$ac_t""$mutt_cv_mailpath" 1>&6
4599 if test "$mutt_cv_mailpath" = no; then
4600 { echo "configure: error: "Could not determine where new mail is stored."" 1>&2; exit 1; }
4602 cat >> confdefs.h <<EOF
4603 #define MAILPATH "$mutt_cv_mailpath"
4607 echo $ac_n "checking if $mutt_cv_mailpath is world writable""... $ac_c" 1>&6
4608 echo "configure:4609: checking if $mutt_cv_mailpath is world writable" >&5
4609 if eval "test \"`echo '$''{'mutt_cv_worldwrite'+set}'`\" = set"; then
4610 echo $ac_n "(cached) $ac_c" 1>&6
4612 if test "$cross_compiling" = yes; then
4613 mutt_cv_worldwrite=no
4615 cat > conftest.$ac_ext <<EOF
4616 #line 4617 "configure"
4617 #include "confdefs.h"
4618 #include <sys/types.h>
4619 #include <sys/stat.h>
4621 int main (int argc, char **argv)
4625 stat ("$mutt_cv_mailpath", &s);
4626 if (s.st_mode & S_IWOTH) exit (0);
4630 if { (eval echo configure:4631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4632 mutt_cv_worldwrite=yes
4634 echo "configure: failed program was:" >&5
4635 cat conftest.$ac_ext >&5
4637 mutt_cv_worldwrite=no
4644 echo "$ac_t""$mutt_cv_worldwrite" 1>&6
4647 if test $mutt_cv_worldwrite = yes; then
4648 cat >> confdefs.h <<\EOF
4649 #define USE_DOTLOCK 1
4654 echo $ac_n "checking if $mutt_cv_mailpath is group writable""... $ac_c" 1>&6
4655 echo "configure:4656: checking if $mutt_cv_mailpath is group writable" >&5
4656 if eval "test \"`echo '$''{'mutt_cv_groupwrite'+set}'`\" = set"; then
4657 echo $ac_n "(cached) $ac_c" 1>&6
4659 if test "$cross_compiling" = yes; then
4660 mutt_cv_groupwrite=no
4662 cat > conftest.$ac_ext <<EOF
4663 #line 4664 "configure"
4664 #include "confdefs.h"
4665 #include <sys/types.h>
4666 #include <sys/stat.h>
4668 int main (int argc, char **argv)
4672 stat ("$mutt_cv_mailpath", &s);
4673 if (s.st_mode & S_IWGRP) exit (0);
4677 if { (eval echo configure:4678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
4679 mutt_cv_groupwrite=yes
4681 echo "configure: failed program was:" >&5
4682 cat conftest.$ac_ext >&5
4684 mutt_cv_groupwrite=no
4691 echo "$ac_t""$mutt_cv_groupwrite" 1>&6
4693 if test $mutt_cv_groupwrite = yes; then
4694 cat >> confdefs.h <<\EOF
4695 #define USE_DOTLOCK 1
4698 cat >> confdefs.h <<\EOF
4699 #define USE_SETGID 1
4707 # Check whether --enable-external_dotlock or --disable-external_dotlock was given.
4708 if test "${enable_external_dotlock+set}" = set; then
4709 enableval="$enable_external_dotlock"
4710 mutt_cv_external_dotlock="$enableval"
4714 if test "x$mutt_cv_setgid" = "xyes" || test "x$mutt_cv_fchdir" = "xno" \
4715 || test "x$mutt_cv_external_dotlock" = "xyes"
4717 cat >> confdefs.h <<\EOF
4718 #define DL_STANDALONE 1
4721 DOTLOCK_TARGET="mutt_dotlock"
4723 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS dotlock.o"
4729 echo $ac_n "checking where to put the documentation""... $ac_c" 1>&6
4730 echo "configure:4731: checking where to put the documentation" >&5
4731 # Check whether --with-docdir or --without-docdir was given.
4732 if test "${with_docdir+set}" = set; then
4733 withval="$with_docdir"
4734 mutt_cv_docdir=$withval
4736 mutt_cv_docdir="$mutt_cv_prefix/doc/mutt"
4739 echo "$ac_t""$mutt_cv_docdir" 1>&6
4741 docdir=$mutt_cv_docdir
4744 if test x$mutt_cv_setgid = xyes; then
4745 DOTLOCK_GROUP='mail'
4746 DOTLOCK_PERMISSION=2755
4749 DOTLOCK_PERMISSION=755
4754 # Check whether --with-domain or --without-domain was given.
4755 if test "${with_domain+set}" = set; then
4756 withval="$with_domain"
4757 if test $withval != yes; then
4758 cat >> confdefs.h <<EOF
4759 #define DOMAIN "$withval"
4769 # Check whether --enable-pop or --disable-pop was given.
4770 if test "${enable_pop+set}" = set; then
4771 enableval="$enable_pop"
4772 if test x$enableval = xyes ; then
4773 cat >> confdefs.h <<\EOF
4777 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pop.o pop_lib.o pop_auth.o"
4785 # Check whether --enable-imap or --disable-imap was given.
4786 if test "${enable_imap+set}" = set; then
4787 enableval="$enable_imap"
4788 if test x$enableval = xyes ; then
4789 cat >> confdefs.h <<\EOF
4793 LIBIMAP="-Limap -limap"
4794 LIBIMAPDEPS="\$(top_srcdir)/imap/imap.h imap/libimap.a"
4804 if test x$need_imap = xyes; then
4806 BUILD_IMAP_FALSE='#'
4812 # Check whether --enable-nntp or --disable-nntp was given.
4813 if test "${enable_nntp+set}" = set; then
4814 enableval="$enable_nntp"
4815 if test x$enableval = xyes ; then
4816 cat >> confdefs.h <<\EOF
4820 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS nntp.o newsrc.o"
4828 if test "$need_socket" = "yes"
4830 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
4831 echo "configure:4832: checking for socklen_t" >&5
4832 cat > conftest.$ac_ext <<EOF
4833 #line 4834 "configure"
4834 #include "confdefs.h"
4835 #include <sys/socket.h>
4837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4838 egrep "socklen_t" >/dev/null 2>&1; then
4840 echo "$ac_t""yes" 1>&6
4843 echo "$ac_t""no" 1>&6
4844 cat >> confdefs.h <<\EOF
4845 #define socklen_t int
4851 echo $ac_n "checking for gethostent""... $ac_c" 1>&6
4852 echo "configure:4853: checking for gethostent" >&5
4853 if eval "test \"`echo '$''{'ac_cv_func_gethostent'+set}'`\" = set"; then
4854 echo $ac_n "(cached) $ac_c" 1>&6
4856 cat > conftest.$ac_ext <<EOF
4857 #line 4858 "configure"
4858 #include "confdefs.h"
4859 /* System header to define __stub macros and hopefully few prototypes,
4860 which can conflict with char gethostent(); below. */
4862 /* Override any gcc2 internal prototype to avoid an error. */
4863 /* We use char because int might match the return type of a gcc2
4864 builtin and then its argument prototype would still apply. */