Nico Golde:
[apps/madmutt.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # 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.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Name of the host.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248 exec 6>&1
249
250 #
251 # Initializations.
252 #
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
255 cross_compiling=no
256 subdirs=
257 MFLAGS=
258 MAKEFLAGS=
259 SHELL=${CONFIG_SHELL-/bin/sh}
260
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete.  It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
265
266 # Identity of this package.
267 PACKAGE_NAME=
268 PACKAGE_TARNAME=
269 PACKAGE_VERSION=
270 PACKAGE_STRING=
271 PACKAGE_BUGREPORT=
272
273 ac_unique_file="mutt.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
276 #include <stdio.h>
277 #if HAVE_SYS_TYPES_H
278 # include <sys/types.h>
279 #endif
280 #if HAVE_SYS_STAT_H
281 # include <sys/stat.h>
282 #endif
283 #if STDC_HEADERS
284 # include <stdlib.h>
285 # include <stddef.h>
286 #else
287 # if HAVE_STDLIB_H
288 #  include <stdlib.h>
289 # endif
290 #endif
291 #if HAVE_STRING_H
292 # if !STDC_HEADERS && HAVE_MEMORY_H
293 #  include <memory.h>
294 # endif
295 # include <string.h>
296 #endif
297 #if HAVE_STRINGS_H
298 # include <strings.h>
299 #endif
300 #if HAVE_INTTYPES_H
301 # include <inttypes.h>
302 #else
303 # if HAVE_STDINT_H
304 #  include <stdint.h>
305 # endif
306 #endif
307 #if HAVE_UNISTD_H
308 # include <unistd.h>
309 #endif"
310
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP U ANSI2KNR RANLIB ac_ct_RANLIB AR ac_ct_AR DBX GDB SDB DEBUGGER SENDMAIL GPGME_CONFIG LIBGPGME_CFLAGS LIBGPGME_LIBS OPS PGPAUX_TARGET SMIMEAUX_TARGET SUBVERSION ISPELL LIBOBJS DOTLOCK_TARGET docdir DOTLOCK_GROUP DOTLOCK_PERMISSION BUILD_IMAP_TRUE BUILD_IMAP_FALSE KRB5CFGPATH USE_GSS_TRUE USE_GSS_FALSE USE_SSL_TRUE USE_SSL_FALSE LIBGNUTLS_CONFIG LIBGNUTLS_CFLAGS LIBGNUTLS_LIBS USE_SASL_TRUE USE_SASL_FALSE MUTTLIBS MUTT_LIB_OBJECTS LIBIMAP LIBIMAPDEPS ALLOCA GLIBC21 LIBICONV USE_NLS MSGFMT GMSGFMT XGETTEXT INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT GMOFILES INTLLIBS INTLOBJS POFILES POSUB DATADIRNAME INSTOBJEXT GENCAT MKINSTALLDIRS INTL_LIBTOOL_SUFFIX_PREFIX mutt_libesmtp_config_path LTLIBOBJS'
312 ac_subst_files=''
313
314 # Initialize some variables set by options.
315 ac_init_help=
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
319 cache_file=/dev/null
320 exec_prefix=NONE
321 no_create=
322 no_recursion=
323 prefix=NONE
324 program_prefix=NONE
325 program_suffix=NONE
326 program_transform_name=s,x,x,
327 silent=
328 site=
329 srcdir=
330 verbose=
331 x_includes=NONE
332 x_libraries=NONE
333
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
351
352 ac_prev=
353 for ac_option
354 do
355   # If the previous option needs an argument, assign it.
356   if test -n "$ac_prev"; then
357     eval "$ac_prev=\$ac_option"
358     ac_prev=
359     continue
360   fi
361
362   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364   # Accept the important Cygnus configure options, so we can diagnose typos.
365
366   case $ac_option in
367
368   -bindir | --bindir | --bindi | --bind | --bin | --bi)
369     ac_prev=bindir ;;
370   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371     bindir=$ac_optarg ;;
372
373   -build | --build | --buil | --bui | --bu)
374     ac_prev=build_alias ;;
375   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376     build_alias=$ac_optarg ;;
377
378   -cache-file | --cache-file | --cache-fil | --cache-fi \
379   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380     ac_prev=cache_file ;;
381   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383     cache_file=$ac_optarg ;;
384
385   --config-cache | -C)
386     cache_file=config.cache ;;
387
388   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389     ac_prev=datadir ;;
390   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391   | --da=*)
392     datadir=$ac_optarg ;;
393
394   -disable-* | --disable-*)
395     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396     # Reject names that are not valid shell variable names.
397     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399    { (exit 1); exit 1; }; }
400     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401     eval "enable_$ac_feature=no" ;;
402
403   -enable-* | --enable-*)
404     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405     # Reject names that are not valid shell variable names.
406     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408    { (exit 1); exit 1; }; }
409     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410     case $ac_option in
411       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412       *) ac_optarg=yes ;;
413     esac
414     eval "enable_$ac_feature='$ac_optarg'" ;;
415
416   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418   | --exec | --exe | --ex)
419     ac_prev=exec_prefix ;;
420   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422   | --exec=* | --exe=* | --ex=*)
423     exec_prefix=$ac_optarg ;;
424
425   -gas | --gas | --ga | --g)
426     # Obsolete; use --with-gas.
427     with_gas=yes ;;
428
429   -help | --help | --hel | --he | -h)
430     ac_init_help=long ;;
431   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432     ac_init_help=recursive ;;
433   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434     ac_init_help=short ;;
435
436   -host | --host | --hos | --ho)
437     ac_prev=host_alias ;;
438   -host=* | --host=* | --hos=* | --ho=*)
439     host_alias=$ac_optarg ;;
440
441   -includedir | --includedir | --includedi | --included | --include \
442   | --includ | --inclu | --incl | --inc)
443     ac_prev=includedir ;;
444   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445   | --includ=* | --inclu=* | --incl=* | --inc=*)
446     includedir=$ac_optarg ;;
447
448   -infodir | --infodir | --infodi | --infod | --info | --inf)
449     ac_prev=infodir ;;
450   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451     infodir=$ac_optarg ;;
452
453   -libdir | --libdir | --libdi | --libd)
454     ac_prev=libdir ;;
455   -libdir=* | --libdir=* | --libdi=* | --libd=*)
456     libdir=$ac_optarg ;;
457
458   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459   | --libexe | --libex | --libe)
460     ac_prev=libexecdir ;;
461   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462   | --libexe=* | --libex=* | --libe=*)
463     libexecdir=$ac_optarg ;;
464
465   -localstatedir | --localstatedir | --localstatedi | --localstated \
466   | --localstate | --localstat | --localsta | --localst \
467   | --locals | --local | --loca | --loc | --lo)
468     ac_prev=localstatedir ;;
469   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472     localstatedir=$ac_optarg ;;
473
474   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475     ac_prev=mandir ;;
476   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477     mandir=$ac_optarg ;;
478
479   -nfp | --nfp | --nf)
480     # Obsolete; use --without-fp.
481     with_fp=no ;;
482
483   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484   | --no-cr | --no-c | -n)
485     no_create=yes ;;
486
487   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489     no_recursion=yes ;;
490
491   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493   | --oldin | --oldi | --old | --ol | --o)
494     ac_prev=oldincludedir ;;
495   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498     oldincludedir=$ac_optarg ;;
499
500   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501     ac_prev=prefix ;;
502   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503     prefix=$ac_optarg ;;
504
505   -program-prefix | --program-prefix | --program-prefi | --program-pref \
506   | --program-pre | --program-pr | --program-p)
507     ac_prev=program_prefix ;;
508   -program-prefix=* | --program-prefix=* | --program-prefi=* \
509   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510     program_prefix=$ac_optarg ;;
511
512   -program-suffix | --program-suffix | --program-suffi | --program-suff \
513   | --program-suf | --program-su | --program-s)
514     ac_prev=program_suffix ;;
515   -program-suffix=* | --program-suffix=* | --program-suffi=* \
516   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517     program_suffix=$ac_optarg ;;
518
519   -program-transform-name | --program-transform-name \
520   | --program-transform-nam | --program-transform-na \
521   | --program-transform-n | --program-transform- \
522   | --program-transform | --program-transfor \
523   | --program-transfo | --program-transf \
524   | --program-trans | --program-tran \
525   | --progr-tra | --program-tr | --program-t)
526     ac_prev=program_transform_name ;;
527   -program-transform-name=* | --program-transform-name=* \
528   | --program-transform-nam=* | --program-transform-na=* \
529   | --program-transform-n=* | --program-transform-=* \
530   | --program-transform=* | --program-transfor=* \
531   | --program-transfo=* | --program-transf=* \
532   | --program-trans=* | --program-tran=* \
533   | --progr-tra=* | --program-tr=* | --program-t=*)
534     program_transform_name=$ac_optarg ;;
535
536   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537   | -silent | --silent | --silen | --sile | --sil)
538     silent=yes ;;
539
540   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541     ac_prev=sbindir ;;
542   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543   | --sbi=* | --sb=*)
544     sbindir=$ac_optarg ;;
545
546   -sharedstatedir | --sharedstatedir | --sharedstatedi \
547   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548   | --sharedst | --shareds | --shared | --share | --shar \
549   | --sha | --sh)
550     ac_prev=sharedstatedir ;;
551   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554   | --sha=* | --sh=*)
555     sharedstatedir=$ac_optarg ;;
556
557   -site | --site | --sit)
558     ac_prev=site ;;
559   -site=* | --site=* | --sit=*)
560     site=$ac_optarg ;;
561
562   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563     ac_prev=srcdir ;;
564   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565     srcdir=$ac_optarg ;;
566
567   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568   | --syscon | --sysco | --sysc | --sys | --sy)
569     ac_prev=sysconfdir ;;
570   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572     sysconfdir=$ac_optarg ;;
573
574   -target | --target | --targe | --targ | --tar | --ta | --t)
575     ac_prev=target_alias ;;
576   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577     target_alias=$ac_optarg ;;
578
579   -v | -verbose | --verbose | --verbos | --verbo | --verb)
580     verbose=yes ;;
581
582   -version | --version | --versio | --versi | --vers | -V)
583     ac_init_version=: ;;
584
585   -with-* | --with-*)
586     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587     # Reject names that are not valid shell variable names.
588     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589       { echo "$as_me: error: invalid package name: $ac_package" >&2
590    { (exit 1); exit 1; }; }
591     ac_package=`echo $ac_package| sed 's/-/_/g'`
592     case $ac_option in
593       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594       *) ac_optarg=yes ;;
595     esac
596     eval "with_$ac_package='$ac_optarg'" ;;
597
598   -without-* | --without-*)
599     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600     # Reject names that are not valid shell variable names.
601     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602       { echo "$as_me: error: invalid package name: $ac_package" >&2
603    { (exit 1); exit 1; }; }
604     ac_package=`echo $ac_package | sed 's/-/_/g'`
605     eval "with_$ac_package=no" ;;
606
607   --x)
608     # Obsolete; use --with-x.
609     with_x=yes ;;
610
611   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612   | --x-incl | --x-inc | --x-in | --x-i)
613     ac_prev=x_includes ;;
614   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616     x_includes=$ac_optarg ;;
617
618   -x-libraries | --x-libraries | --x-librarie | --x-librari \
619   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620     ac_prev=x_libraries ;;
621   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623     x_libraries=$ac_optarg ;;
624
625   -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627    { (exit 1); exit 1; }; }
628     ;;
629
630   *=*)
631     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632     # Reject names that are not valid shell variable names.
633     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635    { (exit 1); exit 1; }; }
636     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637     eval "$ac_envvar='$ac_optarg'"
638     export $ac_envvar ;;
639
640   *)
641     # FIXME: should be removed in autoconf 3.0.
642     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646     ;;
647
648   esac
649 done
650
651 if test -n "$ac_prev"; then
652   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653   { echo "$as_me: error: missing argument to $ac_option" >&2
654    { (exit 1); exit 1; }; }
655 fi
656
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
659 do
660   eval ac_val=$`echo $ac_var`
661   case $ac_val in
662     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664    { (exit 1); exit 1; }; };;
665   esac
666 done
667
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670               localstatedir libdir includedir oldincludedir infodir mandir
671 do
672   eval ac_val=$`echo $ac_var`
673   case $ac_val in
674     [\\/$]* | ?:[\\/]* ) ;;
675     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676    { (exit 1); exit 1; }; };;
677   esac
678 done
679
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
683 build=$build_alias
684 host=$host_alias
685 target=$target_alias
686
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689   if test "x$build_alias" = x; then
690     cross_compiling=maybe
691     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692     If a cross compiler is detected then cross compile mode will be used." >&2
693   elif test "x$build_alias" != "x$host_alias"; then
694     cross_compiling=yes
695   fi
696 fi
697
698 ac_tool_prefix=
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701 test "$silent" = yes && exec 6>/dev/null
702
703
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706   ac_srcdir_defaulted=yes
707   # Try the directory containing this script, then its parent.
708   ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710          X"$0" : 'X\(//\)[^/]' \| \
711          X"$0" : 'X\(//\)$' \| \
712          X"$0" : 'X\(/\)' \| \
713          .     : '\(.\)' 2>/dev/null ||
714 echo X"$0" |
715     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717           /^X\(\/\/\)$/{ s//\1/; q; }
718           /^X\(\/\).*/{ s//\1/; q; }
719           s/.*/./; q'`
720   srcdir=$ac_confdir
721   if test ! -r $srcdir/$ac_unique_file; then
722     srcdir=..
723   fi
724 else
725   ac_srcdir_defaulted=no
726 fi
727 if test ! -r $srcdir/$ac_unique_file; then
728   if test "$ac_srcdir_defaulted" = yes; then
729     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730    { (exit 1); exit 1; }; }
731   else
732     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733    { (exit 1); exit 1; }; }
734   fi
735 fi
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738    { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
753 ac_env_CC_value=$CC
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CPP_set=${CPP+set}
769 ac_env_CPP_value=$CPP
770 ac_cv_env_CPP_set=${CPP+set}
771 ac_cv_env_CPP_value=$CPP
772
773 #
774 # Report the --help message.
775 #
776 if test "$ac_init_help" = "long"; then
777   # Omit some internal or obsolete options to make the list less imposing.
778   # This message is too long to be a string in the A/UX 3.1 sh.
779   cat <<_ACEOF
780 \`configure' configures this package to adapt to many kinds of systems.
781
782 Usage: $0 [OPTION]... [VAR=VALUE]...
783
784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
785 VAR=VALUE.  See below for descriptions of some of the useful variables.
786
787 Defaults for the options are specified in brackets.
788
789 Configuration:
790   -h, --help              display this help and exit
791       --help=short        display options specific to this package
792       --help=recursive    display the short help of all the included packages
793   -V, --version           display version information and exit
794   -q, --quiet, --silent   do not print \`checking...' messages
795       --cache-file=FILE   cache test results in FILE [disabled]
796   -C, --config-cache      alias for \`--cache-file=config.cache'
797   -n, --no-create         do not create output files
798       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
799
800 _ACEOF
801
802   cat <<_ACEOF
803 Installation directories:
804   --prefix=PREFIX         install architecture-independent files in PREFIX
805                           [$ac_default_prefix]
806   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
807                           [PREFIX]
808
809 By default, \`make install' will install all the files in
810 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
811 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812 for instance \`--prefix=\$HOME'.
813
814 For better control, use the options below.
815
816 Fine tuning of the installation directories:
817   --bindir=DIR           user executables [EPREFIX/bin]
818   --sbindir=DIR          system admin executables [EPREFIX/sbin]
819   --libexecdir=DIR       program executables [EPREFIX/libexec]
820   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
821   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
822   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
823   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
824   --libdir=DIR           object code libraries [EPREFIX/lib]
825   --includedir=DIR       C header files [PREFIX/include]
826   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
827   --infodir=DIR          info documentation [PREFIX/info]
828   --mandir=DIR           man documentation [PREFIX/man]
829 _ACEOF
830
831   cat <<\_ACEOF
832
833 Program names:
834   --program-prefix=PREFIX            prepend PREFIX to installed program names
835   --program-suffix=SUFFIX            append SUFFIX to installed program names
836   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
837
838 System types:
839   --build=BUILD     configure for building on BUILD [guessed]
840   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
841 _ACEOF
842 fi
843
844 if test -n "$ac_init_help"; then
845
846   cat <<\_ACEOF
847
848 Optional Features:
849   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
850   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
851   --disable-dependency-tracking Speeds up one-time builds
852   --enable-dependency-tracking  Do not reject slow dependency extractors
853   --disable-largefile     omit support for large files
854   --enable-gpgme          Enable GPGME support
855   --disable-pgp           Disable PGP support
856   --disable-smime         Disable SMIME support
857   --enable-external-dotlock
858                           Force use of an external dotlock program
859   --enable-pop            Enable POP3 support
860   --enable-imap           Enable IMAP support
861   --enable-nntp              Enable NNTP support
862   --enable-debug          Enable debugging support
863   --enable-flock          Use flock() to lock files
864   --disable-fcntl         Do NOT use fcntl() to lock files
865   --enable-inodesort      Read files in maildir folders sorted by inode.
866   --disable-warnings      Turn off compiler warnings (not recommended)
867   --enable-nfs-fix        Work around an NFS with broken attributes caching
868   --enable-buffy-size     Use file size attribute instead of access time
869   --enable-mailtool       Enable Sun mailtool attachments support
870   --enable-compressed        Enable compressed folders support
871   --enable-locales-fix    The result of isprint() is unreliable
872   --enable-exact-address  Enable regeneration of email addresses
873   --enable-hcache         Enable header caching
874   --disable-iconv         Disable iconv support
875   --disable-nls           Do not use Native Language Support
876
877 Optional Packages:
878   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
879   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
880   --with-gpgme-prefix=PFX prefix where GPGME is installed (optional)
881   --with-mixmaster=PATH Include Mixmaster support
882   --with-slang=DIR      Use S-Lang instead of ncurses
883   --with-curses=DIR       Where ncurses is installed
884   --with-regex            Use the GNU regex library
885   --with-homespool=FILE File in user's directory where new mail is spooled
886   --with-mailpath=DIR     Directory where spool mailboxes are located
887   --with-docdir=PATH      Specify where to put the documentation
888   --with-domain=DOMAIN    Specify your DNS domain name
889   --with-gss=PFX        Compile in GSSAPI authentication for IMAP
890   --with-ssl=PFX        Compile in SSL support for POP/IMAP
891   --with-nss=PFX        Compile in SSL support for POP/IMAP via NSS
892   --with-gnutls=PFX     Enable SSL support using gnutls
893   --with-sasl=PFX       Use Cyrus SASL library for POP/IMAP authentication
894   --with-sasl2=PFX      Use Cyrus SASL library version 2 for POP/IMAP
895                           authentication
896   --with-idn=PFX        Use GNU libidn for domain names
897   --with-exec-shell=SHELL Specify alternate shell (ONLY if /bin/sh is broken)
898   --without-gdbm          Don't use gdbm even if it is available
899   --with-bdb=DIR        Use BerkeleyDB4 if gdbm is not available
900   --with-libiconv-prefix=DIR
901                           Search for libiconv in DIR/include and DIR/lib
902   --with-included-gettext Use the GNU gettext library included here
903   --without-wc-funcs      Do not use the system's wchar_t functions
904   --with-libesmtp=DIR      Compile in support for libesmtp for the MTA
905
906 Some influential environment variables:
907   CC          C compiler command
908   CFLAGS      C compiler flags
909   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
910               nonstandard directory <lib dir>
911   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
912               headers in a nonstandard directory <include dir>
913   CPP         C preprocessor
914
915 Use these variables to override the choices made by `configure' or to help
916 it to find libraries and programs with nonstandard names/locations.
917
918 _ACEOF
919 fi
920
921 if test "$ac_init_help" = "recursive"; then
922   # If there are subdirs, report their specific --help.
923   ac_popdir=`pwd`
924   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
925     test -d $ac_dir || continue
926     ac_builddir=.
927
928 if test "$ac_dir" != .; then
929   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
930   # A "../" for each directory in $ac_dir_suffix.
931   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
932 else
933   ac_dir_suffix= ac_top_builddir=
934 fi
935
936 case $srcdir in
937   .)  # No --srcdir option.  We are building in place.
938     ac_srcdir=.
939     if test -z "$ac_top_builddir"; then
940        ac_top_srcdir=.
941     else
942        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
943     fi ;;
944   [\\/]* | ?:[\\/]* )  # Absolute path.
945     ac_srcdir=$srcdir$ac_dir_suffix;
946     ac_top_srcdir=$srcdir ;;
947   *) # Relative path.
948     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
949     ac_top_srcdir=$ac_top_builddir$srcdir ;;
950 esac
951 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
952 # absolute.
953 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
954 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
955 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
956 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
957
958     cd $ac_dir
959     # Check for guested configure; otherwise get Cygnus style configure.
960     if test -f $ac_srcdir/configure.gnu; then
961       echo
962       $SHELL $ac_srcdir/configure.gnu  --help=recursive
963     elif test -f $ac_srcdir/configure; then
964       echo
965       $SHELL $ac_srcdir/configure  --help=recursive
966     elif test -f $ac_srcdir/configure.ac ||
967            test -f $ac_srcdir/configure.in; then
968       echo
969       $ac_configure --help
970     else
971       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
972     fi
973     cd $ac_popdir
974   done
975 fi
976
977 test -n "$ac_init_help" && exit 0
978 if $ac_init_version; then
979   cat <<\_ACEOF
980
981 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
982 Free Software Foundation, Inc.
983 This configure script is free software; the Free Software Foundation
984 gives unlimited permission to copy, distribute and modify it.
985 _ACEOF
986   exit 0
987 fi
988 exec 5>config.log
989 cat >&5 <<_ACEOF
990 This file contains any messages produced by compilers while
991 running configure, to aid debugging if configure makes a mistake.
992
993 It was created by $as_me, which was
994 generated by GNU Autoconf 2.57.  Invocation command line was
995
996   $ $0 $@
997
998 _ACEOF
999 {
1000 cat <<_ASUNAME
1001 ## --------- ##
1002 ## Platform. ##
1003 ## --------- ##
1004
1005 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1006 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1007 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1008 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1009 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1010
1011 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1012 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1013
1014 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1015 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1016 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1017 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1018 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1019 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1020 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1021
1022 _ASUNAME
1023
1024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1025 for as_dir in $PATH
1026 do
1027   IFS=$as_save_IFS
1028   test -z "$as_dir" && as_dir=.
1029   echo "PATH: $as_dir"
1030 done
1031
1032 } >&5
1033
1034 cat >&5 <<_ACEOF
1035
1036
1037 ## ----------- ##
1038 ## Core tests. ##
1039 ## ----------- ##
1040
1041 _ACEOF
1042
1043
1044 # Keep a trace of the command line.
1045 # Strip out --no-create and --no-recursion so they do not pile up.
1046 # Strip out --silent because we don't want to record it for future runs.
1047 # Also quote any args containing shell meta-characters.
1048 # Make two passes to allow for proper duplicate-argument suppression.
1049 ac_configure_args=
1050 ac_configure_args0=
1051 ac_configure_args1=
1052 ac_sep=
1053 ac_must_keep_next=false
1054 for ac_pass in 1 2
1055 do
1056   for ac_arg
1057   do
1058     case $ac_arg in
1059     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1060     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1061     | -silent | --silent | --silen | --sile | --sil)
1062       continue ;;
1063     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1064       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1065     esac
1066     case $ac_pass in
1067     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1068     2)
1069       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1070       if test $ac_must_keep_next = true; then
1071         ac_must_keep_next=false # Got value, back to normal.
1072       else
1073         case $ac_arg in
1074           *=* | --config-cache | -C | -disable-* | --disable-* \
1075           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1076           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1077           | -with-* | --with-* | -without-* | --without-* | --x)
1078             case "$ac_configure_args0 " in
1079               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1080             esac
1081             ;;
1082           -* ) ac_must_keep_next=true ;;
1083         esac
1084       fi
1085       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1086       # Get rid of the leading space.
1087       ac_sep=" "
1088       ;;
1089     esac
1090   done
1091 done
1092 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1093 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1094
1095 # When interrupted or exit'd, cleanup temporary files, and complete
1096 # config.log.  We remove comments because anyway the quotes in there
1097 # would cause problems or look ugly.
1098 # WARNING: Be sure not to use single quotes in there, as some shells,
1099 # such as our DU 5.0 friend, will then `close' the trap.
1100 trap 'exit_status=$?
1101   # Save into config.log some information that might help in debugging.
1102   {
1103     echo
1104
1105     cat <<\_ASBOX
1106 ## ---------------- ##
1107 ## Cache variables. ##
1108 ## ---------------- ##
1109 _ASBOX
1110     echo
1111     # The following way of writing the cache mishandles newlines in values,
1112 {
1113   (set) 2>&1 |
1114     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1115     *ac_space=\ *)
1116       sed -n \
1117         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1118           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1119       ;;
1120     *)
1121       sed -n \
1122         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1123       ;;
1124     esac;
1125 }
1126     echo
1127
1128     cat <<\_ASBOX
1129 ## ----------------- ##
1130 ## Output variables. ##
1131 ## ----------------- ##
1132 _ASBOX
1133     echo
1134     for ac_var in $ac_subst_vars
1135     do
1136       eval ac_val=$`echo $ac_var`
1137       echo "$ac_var='"'"'$ac_val'"'"'"
1138     done | sort
1139     echo
1140
1141     if test -n "$ac_subst_files"; then
1142       cat <<\_ASBOX
1143 ## ------------- ##
1144 ## Output files. ##
1145 ## ------------- ##
1146 _ASBOX
1147       echo
1148       for ac_var in $ac_subst_files
1149       do
1150         eval ac_val=$`echo $ac_var`
1151         echo "$ac_var='"'"'$ac_val'"'"'"
1152       done | sort
1153       echo
1154     fi
1155
1156     if test -s confdefs.h; then
1157       cat <<\_ASBOX
1158 ## ----------- ##
1159 ## confdefs.h. ##
1160 ## ----------- ##
1161 _ASBOX
1162       echo
1163       sed "/^$/d" confdefs.h | sort
1164       echo
1165     fi
1166     test "$ac_signal" != 0 &&
1167       echo "$as_me: caught signal $ac_signal"
1168     echo "$as_me: exit $exit_status"
1169   } >&5
1170   rm -f core core.* *.core &&
1171   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1172     exit $exit_status
1173      ' 0
1174 for ac_signal in 1 2 13 15; do
1175   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1176 done
1177 ac_signal=0
1178
1179 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1180 rm -rf conftest* confdefs.h
1181 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1182 echo >confdefs.h
1183
1184 # Predefined preprocessor variables.
1185
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_NAME "$PACKAGE_NAME"
1188 _ACEOF
1189
1190
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1193 _ACEOF
1194
1195
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1198 _ACEOF
1199
1200
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_STRING "$PACKAGE_STRING"
1203 _ACEOF
1204
1205
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1208 _ACEOF
1209
1210
1211 # Let the site file select an alternate cache file if it wants to.
1212 # Prefer explicitly selected file to automatically selected ones.
1213 if test -z "$CONFIG_SITE"; then
1214   if test "x$prefix" != xNONE; then
1215     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1216   else
1217     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1218   fi
1219 fi
1220 for ac_site_file in $CONFIG_SITE; do
1221   if test -r "$ac_site_file"; then
1222     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1223 echo "$as_me: loading site script $ac_site_file" >&6;}
1224     sed 's/^/| /' "$ac_site_file" >&5
1225     . "$ac_site_file"
1226   fi
1227 done
1228
1229 if test -r "$cache_file"; then
1230   # Some versions of bash will fail to source /dev/null (special
1231   # files actually), so we avoid doing that.
1232   if test -f "$cache_file"; then
1233     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1234 echo "$as_me: loading cache $cache_file" >&6;}
1235     case $cache_file in
1236       [\\/]* | ?:[\\/]* ) . $cache_file;;
1237       *)                      . ./$cache_file;;
1238     esac
1239   fi
1240 else
1241   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1242 echo "$as_me: creating cache $cache_file" >&6;}
1243   >$cache_file
1244 fi
1245
1246 # Check that the precious variables saved in the cache have kept the same
1247 # value.
1248 ac_cache_corrupted=false
1249 for ac_var in `(set) 2>&1 |
1250                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1251   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1252   eval ac_new_set=\$ac_env_${ac_var}_set
1253   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1254   eval ac_new_val="\$ac_env_${ac_var}_value"
1255   case $ac_old_set,$ac_new_set in
1256     set,)
1257       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1258 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1259       ac_cache_corrupted=: ;;
1260     ,set)
1261       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1262 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1263       ac_cache_corrupted=: ;;
1264     ,);;
1265     *)
1266       if test "x$ac_old_val" != "x$ac_new_val"; then
1267         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1268 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1269         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1270 echo "$as_me:   former value:  $ac_old_val" >&2;}
1271         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1272 echo "$as_me:   current value: $ac_new_val" >&2;}
1273         ac_cache_corrupted=:
1274       fi;;
1275   esac
1276   # Pass precious variables to config.status.
1277   if test "$ac_new_set" = set; then
1278     case $ac_new_val in
1279     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1280       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1281     *) ac_arg=$ac_var=$ac_new_val ;;
1282     esac
1283     case " $ac_configure_args " in
1284       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1285       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1286     esac
1287   fi
1288 done
1289 if $ac_cache_corrupted; then
1290   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1291 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1292   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1293 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1294    { (exit 1); exit 1; }; }
1295 fi
1296
1297 ac_ext=c
1298 ac_cpp='$CPP $CPPFLAGS'
1299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321           ac_config_headers="$ac_config_headers config.h"
1322
1323
1324 mutt_cv_version=`cat $srcdir/VERSION`
1325
1326 am__api_version="1.7"
1327 ac_aux_dir=
1328 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1329   if test -f $ac_dir/install-sh; then
1330     ac_aux_dir=$ac_dir
1331     ac_install_sh="$ac_aux_dir/install-sh -c"
1332     break
1333   elif test -f $ac_dir/install.sh; then
1334     ac_aux_dir=$ac_dir
1335     ac_install_sh="$ac_aux_dir/install.sh -c"
1336     break
1337   elif test -f $ac_dir/shtool; then
1338     ac_aux_dir=$ac_dir
1339     ac_install_sh="$ac_aux_dir/shtool install -c"
1340     break
1341   fi
1342 done
1343 if test -z "$ac_aux_dir"; then
1344   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1345 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1346    { (exit 1); exit 1; }; }
1347 fi
1348 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1349 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1350 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1351
1352 # Find a good install program.  We prefer a C program (faster),
1353 # so one script is as good as another.  But avoid the broken or
1354 # incompatible versions:
1355 # SysV /etc/install, /usr/sbin/install
1356 # SunOS /usr/etc/install
1357 # IRIX /sbin/install
1358 # AIX /bin/install
1359 # AmigaOS /C/install, which installs bootblocks on floppy discs
1360 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1361 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1362 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1363 # ./install, which can be erroneously created by make from ./install.sh.
1364 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1365 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1366 if test -z "$INSTALL"; then
1367 if test "${ac_cv_path_install+set}" = set; then
1368   echo $ECHO_N "(cached) $ECHO_C" >&6
1369 else
1370   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1371 for as_dir in $PATH
1372 do
1373   IFS=$as_save_IFS
1374   test -z "$as_dir" && as_dir=.
1375   # Account for people who put trailing slashes in PATH elements.
1376 case $as_dir/ in
1377   ./ | .// | /cC/* | \
1378   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1379   /usr/ucb/* ) ;;
1380   *)
1381     # OSF1 and SCO ODT 3.0 have their own names for install.
1382     # Don't use installbsd from OSF since it installs stuff as root
1383     # by default.
1384     for ac_prog in ginstall scoinst install; do
1385       for ac_exec_ext in '' $ac_executable_extensions; do
1386         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1387           if test $ac_prog = install &&
1388             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1389             # AIX install.  It has an incompatible calling convention.
1390             :
1391           elif test $ac_prog = install &&
1392             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1393             # program-specific install script used by HP pwplus--don't use.
1394             :
1395           else
1396             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1397             break 3
1398           fi
1399         fi
1400       done
1401     done
1402     ;;
1403 esac
1404 done
1405
1406
1407 fi
1408   if test "${ac_cv_path_install+set}" = set; then
1409     INSTALL=$ac_cv_path_install
1410   else
1411     # As a last resort, use the slow shell script.  We don't cache a
1412     # path for INSTALL within a source directory, because that will
1413     # break other packages using the cache if that directory is
1414     # removed, or if the path is relative.
1415     INSTALL=$ac_install_sh
1416   fi
1417 fi
1418 echo "$as_me:$LINENO: result: $INSTALL" >&5
1419 echo "${ECHO_T}$INSTALL" >&6
1420
1421 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1422 # It thinks the first close brace ends the variable substitution.
1423 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1424
1425 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1426
1427 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1428
1429 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1430 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1431 # Just in case
1432 sleep 1
1433 echo timestamp > conftest.file
1434 # Do `set' in a subshell so we don't clobber the current shell's
1435 # arguments.  Must try -L first in case configure is actually a
1436 # symlink; some systems play weird games with the mod time of symlinks
1437 # (eg FreeBSD returns the mod time of the symlink's containing
1438 # directory).
1439 if (
1440    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1441    if test "$*" = "X"; then
1442       # -L didn't work.
1443       set X `ls -t $srcdir/configure conftest.file`
1444    fi
1445    rm -f conftest.file
1446    if test "$*" != "X $srcdir/configure conftest.file" \
1447       && test "$*" != "X conftest.file $srcdir/configure"; then
1448
1449       # If neither matched, then we have a broken ls.  This can happen
1450       # if, for instance, CONFIG_SHELL is bash and it inherits a
1451       # broken ls alias from the environment.  This has actually
1452       # happened.  Such a system could not be considered "sane".
1453       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1454 alias in your environment" >&5
1455 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1456 alias in your environment" >&2;}
1457    { (exit 1); exit 1; }; }
1458    fi
1459
1460    test "$2" = conftest.file
1461    )
1462 then
1463    # Ok.
1464    :
1465 else
1466    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1467 Check your system clock" >&5
1468 echo "$as_me: error: newly created file is older than distributed files!
1469 Check your system clock" >&2;}
1470    { (exit 1); exit 1; }; }
1471 fi
1472 echo "$as_me:$LINENO: result: yes" >&5
1473 echo "${ECHO_T}yes" >&6
1474 test "$program_prefix" != NONE &&
1475   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1476 # Use a double $ so make ignores it.
1477 test "$program_suffix" != NONE &&
1478   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1479 # Double any \ or $.  echo might interpret backslashes.
1480 # By default was `s,x,x', remove it if useless.
1481 cat <<\_ACEOF >conftest.sed
1482 s/[\\$]/&&/g;s/;s,x,x,$//
1483 _ACEOF
1484 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1485 rm conftest.sed
1486
1487
1488 # expand $ac_aux_dir to an absolute path
1489 am_aux_dir=`cd $ac_aux_dir && pwd`
1490
1491 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1492 # Use eval to expand $SHELL
1493 if eval "$MISSING --run true"; then
1494   am_missing_run="$MISSING --run "
1495 else
1496   am_missing_run=
1497   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1498 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1499 fi
1500
1501 for ac_prog in gawk mawk nawk awk
1502 do
1503   # Extract the first word of "$ac_prog", so it can be a program name with args.
1504 set dummy $ac_prog; ac_word=$2
1505 echo "$as_me:$LINENO: checking for $ac_word" >&5
1506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1507 if test "${ac_cv_prog_AWK+set}" = set; then
1508   echo $ECHO_N "(cached) $ECHO_C" >&6
1509 else
1510   if test -n "$AWK"; then
1511   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1512 else
1513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1514 for as_dir in $PATH
1515 do
1516   IFS=$as_save_IFS
1517   test -z "$as_dir" && as_dir=.
1518   for ac_exec_ext in '' $ac_executable_extensions; do
1519   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1520     ac_cv_prog_AWK="$ac_prog"
1521     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1522     break 2
1523   fi
1524 done
1525 done
1526
1527 fi
1528 fi
1529 AWK=$ac_cv_prog_AWK
1530 if test -n "$AWK"; then
1531   echo "$as_me:$LINENO: result: $AWK" >&5
1532 echo "${ECHO_T}$AWK" >&6
1533 else
1534   echo "$as_me:$LINENO: result: no" >&5
1535 echo "${ECHO_T}no" >&6
1536 fi
1537
1538   test -n "$AWK" && break
1539 done
1540
1541 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1542 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1543 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1544 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1545   echo $ECHO_N "(cached) $ECHO_C" >&6
1546 else
1547   cat >conftest.make <<\_ACEOF
1548 all:
1549         @echo 'ac_maketemp="$(MAKE)"'
1550 _ACEOF
1551 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1552 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1553 if test -n "$ac_maketemp"; then
1554   eval ac_cv_prog_make_${ac_make}_set=yes
1555 else
1556   eval ac_cv_prog_make_${ac_make}_set=no
1557 fi
1558 rm -f conftest.make
1559 fi
1560 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1561   echo "$as_me:$LINENO: result: yes" >&5
1562 echo "${ECHO_T}yes" >&6
1563   SET_MAKE=
1564 else
1565   echo "$as_me:$LINENO: result: no" >&5
1566 echo "${ECHO_T}no" >&6
1567   SET_MAKE="MAKE=${MAKE-make}"
1568 fi
1569
1570 rm -rf .tst 2>/dev/null
1571 mkdir .tst 2>/dev/null
1572 if test -d .tst; then
1573   am__leading_dot=.
1574 else
1575   am__leading_dot=_
1576 fi
1577 rmdir .tst 2>/dev/null
1578
1579  # test to see if srcdir already configured
1580 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1581    test -f $srcdir/config.status; then
1582   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1583 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1584    { (exit 1); exit 1; }; }
1585 fi
1586
1587 # test whether we have cygpath
1588 if test -z "$CYGPATH_W"; then
1589   if (cygpath --version) >/dev/null 2>/dev/null; then
1590     CYGPATH_W='cygpath -w'
1591   else
1592     CYGPATH_W=echo
1593   fi
1594 fi
1595
1596
1597 # Define the identity of the package.
1598  PACKAGE=muttng
1599  VERSION=$mutt_cv_version
1600
1601
1602 cat >>confdefs.h <<_ACEOF
1603 #define PACKAGE "$PACKAGE"
1604 _ACEOF
1605
1606
1607 cat >>confdefs.h <<_ACEOF
1608 #define VERSION "$VERSION"
1609 _ACEOF
1610
1611 # Some tools Automake needs.
1612
1613 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1614
1615
1616 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1617
1618
1619 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1620
1621
1622 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1623
1624
1625 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1626
1627
1628 AMTAR=${AMTAR-"${am_missing_run}tar"}
1629
1630 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1631
1632 # Installed binaries are usually stripped using `strip' when the user
1633 # run `make install-strip'.  However `strip' might not be the right
1634 # tool to use in cross-compilation environments, therefore Automake
1635 # will honor the `STRIP' environment variable to overrule this program.
1636 if test "$cross_compiling" != no; then
1637   if test -n "$ac_tool_prefix"; then
1638   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1639 set dummy ${ac_tool_prefix}strip; ac_word=$2
1640 echo "$as_me:$LINENO: checking for $ac_word" >&5
1641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1642 if test "${ac_cv_prog_STRIP+set}" = set; then
1643   echo $ECHO_N "(cached) $ECHO_C" >&6
1644 else
1645   if test -n "$STRIP"; then
1646   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1647 else
1648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649 for as_dir in $PATH
1650 do
1651   IFS=$as_save_IFS
1652   test -z "$as_dir" && as_dir=.
1653   for ac_exec_ext in '' $ac_executable_extensions; do
1654   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1655     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1656     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1657     break 2
1658   fi
1659 done
1660 done
1661
1662 fi
1663 fi
1664 STRIP=$ac_cv_prog_STRIP
1665 if test -n "$STRIP"; then
1666   echo "$as_me:$LINENO: result: $STRIP" >&5
1667 echo "${ECHO_T}$STRIP" >&6
1668 else
1669   echo "$as_me:$LINENO: result: no" >&5
1670 echo "${ECHO_T}no" >&6
1671 fi
1672
1673 fi
1674 if test -z "$ac_cv_prog_STRIP"; then
1675   ac_ct_STRIP=$STRIP
1676   # Extract the first word of "strip", so it can be a program name with args.
1677 set dummy strip; ac_word=$2
1678 echo "$as_me:$LINENO: checking for $ac_word" >&5
1679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1680 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1681   echo $ECHO_N "(cached) $ECHO_C" >&6
1682 else
1683   if test -n "$ac_ct_STRIP"; then
1684   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1685 else
1686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1687 for as_dir in $PATH
1688 do
1689   IFS=$as_save_IFS
1690   test -z "$as_dir" && as_dir=.
1691   for ac_exec_ext in '' $ac_executable_extensions; do
1692   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1693     ac_cv_prog_ac_ct_STRIP="strip"
1694     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1695     break 2
1696   fi
1697 done
1698 done
1699
1700   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1701 fi
1702 fi
1703 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1704 if test -n "$ac_ct_STRIP"; then
1705   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1706 echo "${ECHO_T}$ac_ct_STRIP" >&6
1707 else
1708   echo "$as_me:$LINENO: result: no" >&5
1709 echo "${ECHO_T}no" >&6
1710 fi
1711
1712   STRIP=$ac_ct_STRIP
1713 else
1714   STRIP="$ac_cv_prog_STRIP"
1715 fi
1716
1717 fi
1718 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1719
1720 # We need awk for the "check" target.  The system "awk" is bad on
1721 # some platforms.
1722
1723
1724
1725
1726
1727
1728 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"
1729
1730 # Make sure we can run config.sub.
1731 $ac_config_sub sun4 >/dev/null 2>&1 ||
1732   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1733 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1734    { (exit 1); exit 1; }; }
1735
1736 echo "$as_me:$LINENO: checking build system type" >&5
1737 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1738 if test "${ac_cv_build+set}" = set; then
1739   echo $ECHO_N "(cached) $ECHO_C" >&6
1740 else
1741   ac_cv_build_alias=$build_alias
1742 test -z "$ac_cv_build_alias" &&
1743   ac_cv_build_alias=`$ac_config_guess`
1744 test -z "$ac_cv_build_alias" &&
1745   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1746 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1747    { (exit 1); exit 1; }; }
1748 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1749   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1750 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1751    { (exit 1); exit 1; }; }
1752
1753 fi
1754 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1755 echo "${ECHO_T}$ac_cv_build" >&6
1756 build=$ac_cv_build
1757 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1758 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1759 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1760
1761
1762 echo "$as_me:$LINENO: checking host system type" >&5
1763 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1764 if test "${ac_cv_host+set}" = set; then
1765   echo $ECHO_N "(cached) $ECHO_C" >&6
1766 else
1767   ac_cv_host_alias=$host_alias
1768 test -z "$ac_cv_host_alias" &&
1769   ac_cv_host_alias=$ac_cv_build_alias
1770 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1771   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1772 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1773    { (exit 1); exit 1; }; }
1774
1775 fi
1776 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1777 echo "${ECHO_T}$ac_cv_host" >&6
1778 host=$ac_cv_host
1779 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1780 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1781 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1782
1783
1784
1785 echo "$as_me:$LINENO: checking for prefix" >&5
1786 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1787 if test x$prefix = xNONE; then
1788         mutt_cv_prefix=$ac_default_prefix
1789 else
1790         mutt_cv_prefix=$prefix
1791 fi
1792 echo "$as_me:$LINENO: result: $mutt_cv_prefix" >&5
1793 echo "${ECHO_T}$mutt_cv_prefix" >&6
1794
1795 ac_ext=c
1796 ac_cpp='$CPP $CPPFLAGS'
1797 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1798 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1799 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1800 if test -n "$ac_tool_prefix"; then
1801   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1802 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1803 echo "$as_me:$LINENO: checking for $ac_word" >&5
1804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1805 if test "${ac_cv_prog_CC+set}" = set; then
1806   echo $ECHO_N "(cached) $ECHO_C" >&6
1807 else
1808   if test -n "$CC"; then
1809   ac_cv_prog_CC="$CC" # Let the user override the test.
1810 else
1811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1812 for as_dir in $PATH
1813 do
1814   IFS=$as_save_IFS
1815   test -z "$as_dir" && as_dir=.
1816   for ac_exec_ext in '' $ac_executable_extensions; do
1817   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1818     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1819     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1820     break 2
1821   fi
1822 done
1823 done
1824
1825 fi
1826 fi
1827 CC=$ac_cv_prog_CC
1828 if test -n "$CC"; then
1829   echo "$as_me:$LINENO: result: $CC" >&5
1830 echo "${ECHO_T}$CC" >&6
1831 else
1832   echo "$as_me:$LINENO: result: no" >&5
1833 echo "${ECHO_T}no" >&6
1834 fi
1835
1836 fi
1837 if test -z "$ac_cv_prog_CC"; then
1838   ac_ct_CC=$CC
1839   # Extract the first word of "gcc", so it can be a program name with args.
1840 set dummy gcc; ac_word=$2
1841 echo "$as_me:$LINENO: checking for $ac_word" >&5
1842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1843 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1844   echo $ECHO_N "(cached) $ECHO_C" >&6
1845 else
1846   if test -n "$ac_ct_CC"; then
1847   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1848 else
1849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1850 for as_dir in $PATH
1851 do
1852   IFS=$as_save_IFS
1853   test -z "$as_dir" && as_dir=.
1854   for ac_exec_ext in '' $ac_executable_extensions; do
1855   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1856     ac_cv_prog_ac_ct_CC="gcc"
1857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1858     break 2
1859   fi
1860 done
1861 done
1862
1863 fi
1864 fi
1865 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1866 if test -n "$ac_ct_CC"; then
1867   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1868 echo "${ECHO_T}$ac_ct_CC" >&6
1869 else
1870   echo "$as_me:$LINENO: result: no" >&5
1871 echo "${ECHO_T}no" >&6
1872 fi
1873
1874   CC=$ac_ct_CC
1875 else
1876   CC="$ac_cv_prog_CC"
1877 fi
1878
1879 if test -z "$CC"; then
1880   if test -n "$ac_tool_prefix"; then
1881   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1882 set dummy ${ac_tool_prefix}cc; ac_word=$2
1883 echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885 if test "${ac_cv_prog_CC+set}" = set; then
1886   echo $ECHO_N "(cached) $ECHO_C" >&6
1887 else
1888   if test -n "$CC"; then
1889   ac_cv_prog_CC="$CC" # Let the user override the test.
1890 else
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 for as_dir in $PATH
1893 do
1894   IFS=$as_save_IFS
1895   test -z "$as_dir" && as_dir=.
1896   for ac_exec_ext in '' $ac_executable_extensions; do
1897   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898     ac_cv_prog_CC="${ac_tool_prefix}cc"
1899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900     break 2
1901   fi
1902 done
1903 done
1904
1905 fi
1906 fi
1907 CC=$ac_cv_prog_CC
1908 if test -n "$CC"; then
1909   echo "$as_me:$LINENO: result: $CC" >&5
1910 echo "${ECHO_T}$CC" >&6
1911 else
1912   echo "$as_me:$LINENO: result: no" >&5
1913 echo "${ECHO_T}no" >&6
1914 fi
1915
1916 fi
1917 if test -z "$ac_cv_prog_CC"; then
1918   ac_ct_CC=$CC
1919   # Extract the first word of "cc", so it can be a program name with args.
1920 set dummy cc; ac_word=$2
1921 echo "$as_me:$LINENO: checking for $ac_word" >&5
1922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1923 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1924   echo $ECHO_N "(cached) $ECHO_C" >&6
1925 else
1926   if test -n "$ac_ct_CC"; then
1927   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1928 else
1929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930 for as_dir in $PATH
1931 do
1932   IFS=$as_save_IFS
1933   test -z "$as_dir" && as_dir=.
1934   for ac_exec_ext in '' $ac_executable_extensions; do
1935   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1936     ac_cv_prog_ac_ct_CC="cc"
1937     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1938     break 2
1939   fi
1940 done
1941 done
1942
1943 fi
1944 fi
1945 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1946 if test -n "$ac_ct_CC"; then
1947   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1948 echo "${ECHO_T}$ac_ct_CC" >&6
1949 else
1950   echo "$as_me:$LINENO: result: no" >&5
1951 echo "${ECHO_T}no" >&6
1952 fi
1953
1954   CC=$ac_ct_CC
1955 else
1956   CC="$ac_cv_prog_CC"
1957 fi
1958
1959 fi
1960 if test -z "$CC"; then
1961   # Extract the first word of "cc", so it can be a program name with args.
1962 set dummy cc; ac_word=$2
1963 echo "$as_me:$LINENO: checking for $ac_word" >&5
1964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1965 if test "${ac_cv_prog_CC+set}" = set; then
1966   echo $ECHO_N "(cached) $ECHO_C" >&6
1967 else
1968   if test -n "$CC"; then
1969   ac_cv_prog_CC="$CC" # Let the user override the test.
1970 else
1971   ac_prog_rejected=no
1972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1973 for as_dir in $PATH
1974 do
1975   IFS=$as_save_IFS
1976   test -z "$as_dir" && as_dir=.
1977   for ac_exec_ext in '' $ac_executable_extensions; do
1978   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1979     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1980        ac_prog_rejected=yes
1981        continue
1982      fi
1983     ac_cv_prog_CC="cc"
1984     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1985     break 2
1986   fi
1987 done
1988 done
1989
1990 if test $ac_prog_rejected = yes; then
1991   # We found a bogon in the path, so make sure we never use it.
1992   set dummy $ac_cv_prog_CC
1993   shift
1994   if test $# != 0; then
1995     # We chose a different compiler from the bogus one.
1996     # However, it has the same basename, so the bogon will be chosen
1997     # first if we set CC to just the basename; use the full file name.
1998     shift
1999     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2000   fi
2001 fi
2002 fi
2003 fi
2004 CC=$ac_cv_prog_CC
2005 if test -n "$CC"; then
2006   echo "$as_me:$LINENO: result: $CC" >&5
2007 echo "${ECHO_T}$CC" >&6
2008 else
2009   echo "$as_me:$LINENO: result: no" >&5
2010 echo "${ECHO_T}no" >&6
2011 fi
2012
2013 fi
2014 if test -z "$CC"; then
2015   if test -n "$ac_tool_prefix"; then
2016   for ac_prog in cl
2017   do
2018     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2019 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2020 echo "$as_me:$LINENO: checking for $ac_word" >&5
2021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2022 if test "${ac_cv_prog_CC+set}" = set; then
2023   echo $ECHO_N "(cached) $ECHO_C" >&6
2024 else
2025   if test -n "$CC"; then
2026   ac_cv_prog_CC="$CC" # Let the user override the test.
2027 else
2028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029 for as_dir in $PATH
2030 do
2031   IFS=$as_save_IFS
2032   test -z "$as_dir" && as_dir=.
2033   for ac_exec_ext in '' $ac_executable_extensions; do
2034   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2035     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2036     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2037     break 2
2038   fi
2039 done
2040 done
2041
2042 fi
2043 fi
2044 CC=$ac_cv_prog_CC
2045 if test -n "$CC"; then
2046   echo "$as_me:$LINENO: result: $CC" >&5
2047 echo "${ECHO_T}$CC" >&6
2048 else
2049   echo "$as_me:$LINENO: result: no" >&5
2050 echo "${ECHO_T}no" >&6
2051 fi
2052
2053     test -n "$CC" && break
2054   done
2055 fi
2056 if test -z "$CC"; then
2057   ac_ct_CC=$CC
2058   for ac_prog in cl
2059 do
2060   # Extract the first word of "$ac_prog", so it can be a program name with args.
2061 set dummy $ac_prog; ac_word=$2
2062 echo "$as_me:$LINENO: checking for $ac_word" >&5
2063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2064 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2065   echo $ECHO_N "(cached) $ECHO_C" >&6
2066 else
2067   if test -n "$ac_ct_CC"; then
2068   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2069 else
2070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2071 for as_dir in $PATH
2072 do
2073   IFS=$as_save_IFS
2074   test -z "$as_dir" && as_dir=.
2075   for ac_exec_ext in '' $ac_executable_extensions; do
2076   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2077     ac_cv_prog_ac_ct_CC="$ac_prog"
2078     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2079     break 2
2080   fi
2081 done
2082 done
2083
2084 fi
2085 fi
2086 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2087 if test -n "$ac_ct_CC"; then
2088   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2089 echo "${ECHO_T}$ac_ct_CC" >&6
2090 else
2091   echo "$as_me:$LINENO: result: no" >&5
2092 echo "${ECHO_T}no" >&6
2093 fi
2094
2095   test -n "$ac_ct_CC" && break
2096 done
2097
2098   CC=$ac_ct_CC
2099 fi
2100
2101 fi
2102
2103
2104 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2105 See \`config.log' for more details." >&5
2106 echo "$as_me: error: no acceptable C compiler found in \$PATH
2107 See \`config.log' for more details." >&2;}
2108    { (exit 1); exit 1; }; }
2109
2110 # Provide some information about the compiler.
2111 echo "$as_me:$LINENO:" \
2112      "checking for C compiler version" >&5
2113 ac_compiler=`set X $ac_compile; echo $2`
2114 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2115   (eval $ac_compiler --version </dev/null >&5) 2>&5
2116   ac_status=$?
2117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118   (exit $ac_status); }
2119 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2120   (eval $ac_compiler -v </dev/null >&5) 2>&5
2121   ac_status=$?
2122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2123   (exit $ac_status); }
2124 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2125   (eval $ac_compiler -V </dev/null >&5) 2>&5
2126   ac_status=$?
2127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128   (exit $ac_status); }
2129
2130 cat >conftest.$ac_ext <<_ACEOF
2131 #line $LINENO "configure"
2132 /* confdefs.h.  */
2133 _ACEOF
2134 cat confdefs.h >>conftest.$ac_ext
2135 cat >>conftest.$ac_ext <<_ACEOF
2136 /* end confdefs.h.  */
2137
2138 int
2139 main ()
2140 {
2141
2142   ;
2143   return 0;
2144 }
2145 _ACEOF
2146 ac_clean_files_save=$ac_clean_files
2147 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2148 # Try to create an executable without -o first, disregard a.out.
2149 # It will help us diagnose broken compilers, and finding out an intuition
2150 # of exeext.
2151 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2152 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2153 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2154 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2155   (eval $ac_link_default) 2>&5
2156   ac_status=$?
2157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158   (exit $ac_status); }; then
2159   # Find the output, starting from the most likely.  This scheme is
2160 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2161 # resort.
2162
2163 # Be careful to initialize this variable, since it used to be cached.
2164 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2165 ac_cv_exeext=
2166 # b.out is created by i960 compilers.
2167 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2168 do
2169   test -f "$ac_file" || continue
2170   case $ac_file in
2171     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2172         ;;
2173     conftest.$ac_ext )
2174         # This is the source file.
2175         ;;
2176     [ab].out )
2177         # We found the default executable, but exeext='' is most
2178         # certainly right.
2179         break;;
2180     *.* )
2181         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2182         # FIXME: I believe we export ac_cv_exeext for Libtool,
2183         # but it would be cool to find out if it's true.  Does anybody
2184         # maintain Libtool? --akim.
2185         export ac_cv_exeext
2186         break;;
2187     * )
2188         break;;
2189   esac
2190 done
2191 else
2192   echo "$as_me: failed program was:" >&5
2193 sed 's/^/| /' conftest.$ac_ext >&5
2194
2195 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2196 See \`config.log' for more details." >&5
2197 echo "$as_me: error: C compiler cannot create executables
2198 See \`config.log' for more details." >&2;}
2199    { (exit 77); exit 77; }; }
2200 fi
2201
2202 ac_exeext=$ac_cv_exeext
2203 echo "$as_me:$LINENO: result: $ac_file" >&5
2204 echo "${ECHO_T}$ac_file" >&6
2205
2206 # Check the compiler produces executables we can run.  If not, either
2207 # the compiler is broken, or we cross compile.
2208 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2209 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2210 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2211 # If not cross compiling, check that we can run a simple program.
2212 if test "$cross_compiling" != yes; then
2213   if { ac_try='./$ac_file'
2214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2215   (eval $ac_try) 2>&5
2216   ac_status=$?
2217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218   (exit $ac_status); }; }; then
2219     cross_compiling=no
2220   else
2221     if test "$cross_compiling" = maybe; then
2222         cross_compiling=yes
2223     else
2224         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2225 If you meant to cross compile, use \`--host'.
2226 See \`config.log' for more details." >&5
2227 echo "$as_me: error: cannot run C compiled programs.
2228 If you meant to cross compile, use \`--host'.
2229 See \`config.log' for more details." >&2;}
2230    { (exit 1); exit 1; }; }
2231     fi
2232   fi
2233 fi
2234 echo "$as_me:$LINENO: result: yes" >&5
2235 echo "${ECHO_T}yes" >&6
2236
2237 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2238 ac_clean_files=$ac_clean_files_save
2239 # Check the compiler produces executables we can run.  If not, either
2240 # the compiler is broken, or we cross compile.
2241 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2242 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2243 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2244 echo "${ECHO_T}$cross_compiling" >&6
2245
2246 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2247 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2249   (eval $ac_link) 2>&5
2250   ac_status=$?
2251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252   (exit $ac_status); }; then
2253   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2254 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2255 # work properly (i.e., refer to `conftest.exe'), while it won't with
2256 # `rm'.
2257 for ac_file in conftest.exe conftest conftest.*; do
2258   test -f "$ac_file" || continue
2259   case $ac_file in
2260     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2261     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2262           export ac_cv_exeext
2263           break;;
2264     * ) break;;
2265   esac
2266 done
2267 else
2268   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2269 See \`config.log' for more details." >&5
2270 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2271 See \`config.log' for more details." >&2;}
2272    { (exit 1); exit 1; }; }
2273 fi
2274
2275 rm -f conftest$ac_cv_exeext
2276 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2277 echo "${ECHO_T}$ac_cv_exeext" >&6
2278
2279 rm -f conftest.$ac_ext
2280 EXEEXT=$ac_cv_exeext
2281 ac_exeext=$EXEEXT
2282 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2283 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2284 if test "${ac_cv_objext+set}" = set; then
2285   echo $ECHO_N "(cached) $ECHO_C" >&6
2286 else
2287   cat >conftest.$ac_ext <<_ACEOF
2288 #line $LINENO "configure"
2289 /* confdefs.h.  */
2290 _ACEOF
2291 cat confdefs.h >>conftest.$ac_ext
2292 cat >>conftest.$ac_ext <<_ACEOF
2293 /* end confdefs.h.  */
2294
2295 int
2296 main ()
2297 {
2298
2299   ;
2300   return 0;
2301 }
2302 _ACEOF
2303 rm -f conftest.o conftest.obj
2304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2305   (eval $ac_compile) 2>&5
2306   ac_status=$?
2307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308   (exit $ac_status); }; then
2309   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2310   case $ac_file in
2311     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2312     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2313        break;;
2314   esac
2315 done
2316 else
2317   echo "$as_me: failed program was:" >&5
2318 sed 's/^/| /' conftest.$ac_ext >&5
2319
2320 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2321 See \`config.log' for more details." >&5
2322 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2323 See \`config.log' for more details." >&2;}
2324    { (exit 1); exit 1; }; }
2325 fi
2326
2327 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2328 fi
2329 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2330 echo "${ECHO_T}$ac_cv_objext" >&6
2331 OBJEXT=$ac_cv_objext
2332 ac_objext=$OBJEXT
2333 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2334 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2335 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2336   echo $ECHO_N "(cached) $ECHO_C" >&6
2337 else
2338   cat >conftest.$ac_ext <<_ACEOF
2339 #line $LINENO "configure"
2340 /* confdefs.h.  */
2341 _ACEOF
2342 cat confdefs.h >>conftest.$ac_ext
2343 cat >>conftest.$ac_ext <<_ACEOF
2344 /* end confdefs.h.  */
2345
2346 int
2347 main ()
2348 {
2349 #ifndef __GNUC__
2350        choke me
2351 #endif
2352
2353   ;
2354   return 0;
2355 }
2356 _ACEOF
2357 rm -f conftest.$ac_objext
2358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2359   (eval $ac_compile) 2>&5
2360   ac_status=$?
2361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362   (exit $ac_status); } &&
2363          { ac_try='test -s conftest.$ac_objext'
2364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2365   (eval $ac_try) 2>&5
2366   ac_status=$?
2367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2368   (exit $ac_status); }; }; then
2369   ac_compiler_gnu=yes
2370 else
2371   echo "$as_me: failed program was:" >&5
2372 sed 's/^/| /' conftest.$ac_ext >&5
2373
2374 ac_compiler_gnu=no
2375 fi
2376 rm -f conftest.$ac_objext conftest.$ac_ext
2377 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2378
2379 fi
2380 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2381 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2382 GCC=`test $ac_compiler_gnu = yes && echo yes`
2383 ac_test_CFLAGS=${CFLAGS+set}
2384 ac_save_CFLAGS=$CFLAGS
2385 CFLAGS="-g"
2386 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2387 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2388 if test "${ac_cv_prog_cc_g+set}" = set; then
2389   echo $ECHO_N "(cached) $ECHO_C" >&6
2390 else
2391   cat >conftest.$ac_ext <<_ACEOF
2392 #line $LINENO "configure"
2393 /* confdefs.h.  */
2394 _ACEOF
2395 cat confdefs.h >>conftest.$ac_ext
2396 cat >>conftest.$ac_ext <<_ACEOF
2397 /* end confdefs.h.  */
2398
2399 int
2400 main ()
2401 {
2402
2403   ;
2404   return 0;
2405 }
2406 _ACEOF
2407 rm -f conftest.$ac_objext
2408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2409   (eval $ac_compile) 2>&5
2410   ac_status=$?
2411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412   (exit $ac_status); } &&
2413          { ac_try='test -s conftest.$ac_objext'
2414   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2415   (eval $ac_try) 2>&5
2416   ac_status=$?
2417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418   (exit $ac_status); }; }; then
2419   ac_cv_prog_cc_g=yes
2420 else
2421   echo "$as_me: failed program was:" >&5
2422 sed 's/^/| /' conftest.$ac_ext >&5
2423
2424 ac_cv_prog_cc_g=no
2425 fi
2426 rm -f conftest.$ac_objext conftest.$ac_ext
2427 fi
2428 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2429 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2430 if test "$ac_test_CFLAGS" = set; then
2431   CFLAGS=$ac_save_CFLAGS
2432 elif test $ac_cv_prog_cc_g = yes; then
2433   if test "$GCC" = yes; then
2434     CFLAGS="-g -O2"
2435   else
2436     CFLAGS="-g"
2437   fi
2438 else
2439   if test "$GCC" = yes; then
2440     CFLAGS="-O2"
2441   else
2442     CFLAGS=
2443   fi
2444 fi
2445 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2446 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2447 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2448   echo $ECHO_N "(cached) $ECHO_C" >&6
2449 else
2450   ac_cv_prog_cc_stdc=no
2451 ac_save_CC=$CC
2452 cat >conftest.$ac_ext <<_ACEOF
2453 #line $LINENO "configure"
2454 /* confdefs.h.  */
2455 _ACEOF
2456 cat confdefs.h >>conftest.$ac_ext
2457 cat >>conftest.$ac_ext <<_ACEOF
2458 /* end confdefs.h.  */
2459 #include <stdarg.h>
2460 #include <stdio.h>
2461 #include <sys/types.h>
2462 #include <sys/stat.h>
2463 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2464 struct buf { int x; };
2465 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2466 static char *e (p, i)
2467      char **p;
2468      int i;
2469 {
2470   return p[i];
2471 }
2472 static char *f (char * (*g) (char **, int), char **p, ...)
2473 {
2474   char *s;
2475   va_list v;
2476   va_start (v,p);
2477   s = g (p, va_arg (v,int));
2478   va_end (v);
2479   return s;
2480 }
2481 int test (int i, double x);
2482 struct s1 {int (*f) (int a);};
2483 struct s2 {int (*f) (double a);};
2484 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2485 int argc;
2486 char **argv;
2487 int
2488 main ()
2489 {
2490 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2491   ;
2492   return 0;
2493 }
2494 _ACEOF
2495 # Don't try gcc -ansi; that turns off useful extensions and
2496 # breaks some systems' header files.
2497 # AIX                   -qlanglvl=ansi
2498 # Ultrix and OSF/1      -std1
2499 # HP-UX 10.20 and later -Ae
2500 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2501 # SVR4                  -Xc -D__EXTENSIONS__
2502 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2503 do
2504   CC="$ac_save_CC $ac_arg"
2505   rm -f conftest.$ac_objext
2506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2507   (eval $ac_compile) 2>&5
2508   ac_status=$?
2509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510   (exit $ac_status); } &&
2511          { ac_try='test -s conftest.$ac_objext'
2512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513   (eval $ac_try) 2>&5
2514   ac_status=$?
2515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516   (exit $ac_status); }; }; then
2517   ac_cv_prog_cc_stdc=$ac_arg
2518 break
2519 else
2520   echo "$as_me: failed program was:" >&5
2521 sed 's/^/| /' conftest.$ac_ext >&5
2522
2523 fi
2524 rm -f conftest.$ac_objext
2525 done
2526 rm -f conftest.$ac_ext conftest.$ac_objext
2527 CC=$ac_save_CC
2528
2529 fi
2530
2531 case "x$ac_cv_prog_cc_stdc" in
2532   x|xno)
2533     echo "$as_me:$LINENO: result: none needed" >&5
2534 echo "${ECHO_T}none needed" >&6 ;;
2535   *)
2536     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2537 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2538     CC="$CC $ac_cv_prog_cc_stdc" ;;
2539 esac
2540
2541 # Some people use a C++ compiler to compile C.  Since we use `exit',
2542 # in C++ we need to declare it.  In case someone uses the same compiler
2543 # for both compiling C and C++ we need to have the C++ compiler decide
2544 # the declaration of exit, since it's the most demanding environment.
2545 cat >conftest.$ac_ext <<_ACEOF
2546 #ifndef __cplusplus
2547   choke me
2548 #endif
2549 _ACEOF
2550 rm -f conftest.$ac_objext
2551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2552   (eval $ac_compile) 2>&5
2553   ac_status=$?
2554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555   (exit $ac_status); } &&
2556          { ac_try='test -s conftest.$ac_objext'
2557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558   (eval $ac_try) 2>&5
2559   ac_status=$?
2560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561   (exit $ac_status); }; }; then
2562   for ac_declaration in \
2563    ''\
2564    '#include <stdlib.h>' \
2565    'extern "C" void std::exit (int) throw (); using std::exit;' \
2566    'extern "C" void std::exit (int); using std::exit;' \
2567    'extern "C" void exit (int) throw ();' \
2568    'extern "C" void exit (int);' \
2569    'void exit (int);'
2570 do
2571   cat >conftest.$ac_ext <<_ACEOF
2572 #line $LINENO "configure"
2573 /* confdefs.h.  */
2574 _ACEOF
2575 cat confdefs.h >>conftest.$ac_ext
2576 cat >>conftest.$ac_ext <<_ACEOF
2577 /* end confdefs.h.  */
2578 #include <stdlib.h>
2579 $ac_declaration
2580 int
2581 main ()
2582 {
2583 exit (42);
2584   ;
2585   return 0;
2586 }
2587 _ACEOF
2588 rm -f conftest.$ac_objext
2589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2590   (eval $ac_compile) 2>&5
2591   ac_status=$?
2592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593   (exit $ac_status); } &&
2594          { ac_try='test -s conftest.$ac_objext'
2595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596   (eval $ac_try) 2>&5
2597   ac_status=$?
2598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599   (exit $ac_status); }; }; then
2600   :
2601 else
2602   echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2604
2605 continue
2606 fi
2607 rm -f conftest.$ac_objext conftest.$ac_ext
2608   cat >conftest.$ac_ext <<_ACEOF
2609 #line $LINENO "configure"
2610 /* confdefs.h.  */
2611 _ACEOF
2612 cat confdefs.h >>conftest.$ac_ext
2613 cat >>conftest.$ac_ext <<_ACEOF
2614 /* end confdefs.h.  */
2615 $ac_declaration
2616 int
2617 main ()
2618 {
2619 exit (42);
2620   ;
2621   return 0;
2622 }
2623 _ACEOF
2624 rm -f conftest.$ac_objext
2625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2626   (eval $ac_compile) 2>&5
2627   ac_status=$?
2628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629   (exit $ac_status); } &&
2630          { ac_try='test -s conftest.$ac_objext'
2631   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2632   (eval $ac_try) 2>&5
2633   ac_status=$?
2634   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635   (exit $ac_status); }; }; then
2636   break
2637 else
2638   echo "$as_me: failed program was:" >&5
2639 sed 's/^/| /' conftest.$ac_ext >&5
2640
2641 fi
2642 rm -f conftest.$ac_objext conftest.$ac_ext
2643 done
2644 rm -f conftest*
2645 if test -n "$ac_declaration"; then
2646   echo '#ifdef __cplusplus' >>confdefs.h
2647   echo $ac_declaration      >>confdefs.h
2648   echo '#endif'             >>confdefs.h
2649 fi
2650
2651 else
2652   echo "$as_me: failed program was:" >&5
2653 sed 's/^/| /' conftest.$ac_ext >&5
2654
2655 fi
2656 rm -f conftest.$ac_objext conftest.$ac_ext
2657 ac_ext=c
2658 ac_cpp='$CPP $CPPFLAGS'
2659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2662 DEPDIR="${am__leading_dot}deps"
2663
2664           ac_config_commands="$ac_config_commands depfiles"
2665
2666
2667 am_make=${MAKE-make}
2668 cat > confinc << 'END'
2669 am__doit:
2670         @echo done
2671 .PHONY: am__doit
2672 END
2673 # If we don't find an include directive, just comment out the code.
2674 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2675 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2676 am__include="#"
2677 am__quote=
2678 _am_result=none
2679 # First try GNU make style include.
2680 echo "include confinc" > confmf
2681 # We grep out `Entering directory' and `Leaving directory'
2682 # messages which can occur if `w' ends up in MAKEFLAGS.
2683 # In particular we don't look at `^make:' because GNU make might
2684 # be invoked under some other name (usually "gmake"), in which
2685 # case it prints its new name instead of `make'.
2686 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2687    am__include=include
2688    am__quote=
2689    _am_result=GNU
2690 fi
2691 # Now try BSD make style include.
2692 if test "$am__include" = "#"; then
2693    echo '.include "confinc"' > confmf
2694    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2695       am__include=.include
2696       am__quote="\""
2697       _am_result=BSD
2698    fi
2699 fi
2700
2701
2702 echo "$as_me:$LINENO: result: $_am_result" >&5
2703 echo "${ECHO_T}$_am_result" >&6
2704 rm -f confinc confmf
2705
2706 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2707 if test "${enable_dependency_tracking+set}" = set; then
2708   enableval="$enable_dependency_tracking"
2709
2710 fi;
2711 if test "x$enable_dependency_tracking" != xno; then
2712   am_depcomp="$ac_aux_dir/depcomp"
2713   AMDEPBACKSLASH='\'
2714 fi
2715
2716
2717 if test "x$enable_dependency_tracking" != xno; then
2718   AMDEP_TRUE=
2719   AMDEP_FALSE='#'
2720 else
2721   AMDEP_TRUE='#'
2722   AMDEP_FALSE=
2723 fi
2724
2725
2726
2727
2728 depcc="$CC"   am_compiler_list=
2729
2730 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2731 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2732 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2733   echo $ECHO_N "(cached) $ECHO_C" >&6
2734 else
2735   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2736   # We make a subdir and do the tests there.  Otherwise we can end up
2737   # making bogus files that we don't know about and never remove.  For
2738   # instance it was reported that on HP-UX the gcc test will end up
2739   # making a dummy file named `D' -- because `-MD' means `put the output
2740   # in D'.
2741   mkdir conftest.dir
2742   # Copy depcomp to subdir because otherwise we won't find it if we're
2743   # using a relative directory.
2744   cp "$am_depcomp" conftest.dir
2745   cd conftest.dir
2746   # We will build objects and dependencies in a subdirectory because
2747   # it helps to detect inapplicable dependency modes.  For instance
2748   # both Tru64's cc and ICC support -MD to output dependencies as a
2749   # side effect of compilation, but ICC will put the dependencies in
2750   # the current directory while Tru64 will put them in the object
2751   # directory.
2752   mkdir sub
2753
2754   am_cv_CC_dependencies_compiler_type=none
2755   if test "$am_compiler_list" = ""; then
2756      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2757   fi
2758   for depmode in $am_compiler_list; do
2759     # Setup a source with many dependencies, because some compilers
2760     # like to wrap large dependency lists on column 80 (with \), and
2761     # we should not choose a depcomp mode which is confused by this.
2762     #
2763     # We need to recreate these files for each test, as the compiler may
2764     # overwrite some of them when testing with obscure command lines.
2765     # This happens at least with the AIX C compiler.
2766     : > sub/conftest.c
2767     for i in 1 2 3 4 5 6; do
2768       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2769       : > sub/conftst$i.h
2770     done
2771     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2772
2773     case $depmode in
2774     nosideeffect)
2775       # after this tag, mechanisms are not by side-effect, so they'll
2776       # only be used when explicitly requested
2777       if test "x$enable_dependency_tracking" = xyes; then
2778         continue
2779       else
2780         break
2781       fi
2782       ;;
2783     none) break ;;
2784     esac
2785     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2786     # mode.  It turns out that the SunPro C++ compiler does not properly
2787     # handle `-M -o', and we need to detect this.
2788     if depmode=$depmode \
2789        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2790        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2791        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2792          >/dev/null 2>conftest.err &&
2793        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2794        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2795        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2796       # icc doesn't choke on unknown options, it will just issue warnings
2797       # (even with -Werror).  So we grep stderr for any message
2798       # that says an option was ignored.
2799       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2800         am_cv_CC_dependencies_compiler_type=$depmode
2801         break
2802       fi
2803     fi
2804   done
2805
2806   cd ..
2807   rm -rf conftest.dir
2808 else
2809   am_cv_CC_dependencies_compiler_type=none
2810 fi
2811
2812 fi
2813 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2814 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2815 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2816
2817
2818
2819 if
2820   test "x$enable_dependency_tracking" != xno \
2821   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2822   am__fastdepCC_TRUE=
2823   am__fastdepCC_FALSE='#'
2824 else
2825   am__fastdepCC_TRUE='#'
2826   am__fastdepCC_FALSE=
2827 fi
2828
2829
2830
2831
2832         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2833 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2834 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2835   echo $ECHO_N "(cached) $ECHO_C" >&6
2836 else
2837   ac_check_lib_save_LIBS=$LIBS
2838 LIBS="-lcposix  $LIBS"
2839 cat >conftest.$ac_ext <<_ACEOF
2840 #line $LINENO "configure"
2841 /* confdefs.h.  */
2842 _ACEOF
2843 cat confdefs.h >>conftest.$ac_ext
2844 cat >>conftest.$ac_ext <<_ACEOF
2845 /* end confdefs.h.  */
2846
2847 /* Override any gcc2 internal prototype to avoid an error.  */
2848 #ifdef __cplusplus
2849 extern "C"
2850 #endif
2851 /* We use char because int might match the return type of a gcc2
2852    builtin and then its argument prototype would still apply.  */
2853 char strerror ();
2854 int
2855 main ()
2856 {
2857 strerror ();
2858   ;
2859   return 0;
2860 }
2861 _ACEOF
2862 rm -f conftest.$ac_objext conftest$ac_exeext
2863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2864   (eval $ac_link) 2>&5
2865   ac_status=$?
2866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867   (exit $ac_status); } &&
2868          { ac_try='test -s conftest$ac_exeext'
2869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870   (eval $ac_try) 2>&5
2871   ac_status=$?
2872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873   (exit $ac_status); }; }; then
2874   ac_cv_lib_cposix_strerror=yes
2875 else
2876   echo "$as_me: failed program was:" >&5
2877 sed 's/^/| /' conftest.$ac_ext >&5
2878
2879 ac_cv_lib_cposix_strerror=no
2880 fi
2881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2882 LIBS=$ac_check_lib_save_LIBS
2883 fi
2884 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2885 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2886 if test $ac_cv_lib_cposix_strerror = yes; then
2887   LIBS="$LIBS -lcposix"
2888 fi
2889
2890
2891
2892
2893
2894
2895 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2896 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2897 if test "${am_cv_prog_cc_stdc+set}" = set; then
2898   echo $ECHO_N "(cached) $ECHO_C" >&6
2899 else
2900   am_cv_prog_cc_stdc=no
2901 ac_save_CC="$CC"
2902 # Don't try gcc -ansi; that turns off useful extensions and
2903 # breaks some systems' header files.
2904 # AIX                   -qlanglvl=ansi
2905 # Ultrix and OSF/1      -std1
2906 # HP-UX 10.20 and later -Ae
2907 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2908 # SVR4                  -Xc -D__EXTENSIONS__
2909 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2910 do
2911   CC="$ac_save_CC $ac_arg"
2912   cat >conftest.$ac_ext <<_ACEOF
2913 #line $LINENO "configure"
2914 /* confdefs.h.  */
2915 _ACEOF
2916 cat confdefs.h >>conftest.$ac_ext
2917 cat >>conftest.$ac_ext <<_ACEOF
2918 /* end confdefs.h.  */
2919 #include <stdarg.h>
2920 #include <stdio.h>
2921 #include <sys/types.h>
2922 #include <sys/stat.h>
2923 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2924 struct buf { int x; };
2925 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2926 static char *e (p, i)
2927      char **p;
2928      int i;
2929 {
2930   return p[i];
2931 }
2932 static char *f (char * (*g) (char **, int), char **p, ...)
2933 {
2934   char *s;
2935   va_list v;
2936   va_start (v,p);
2937   s = g (p, va_arg (v,int));
2938   va_end (v);
2939   return s;
2940 }
2941 int test (int i, double x);
2942 struct s1 {int (*f) (int a);};
2943 struct s2 {int (*f) (double a);};
2944 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2945 int argc;
2946 char **argv;
2947
2948 int
2949 main ()
2950 {
2951
2952 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2953
2954   ;
2955   return 0;
2956 }
2957 _ACEOF
2958 rm -f conftest.$ac_objext
2959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2960   (eval $ac_compile) 2>&5
2961   ac_status=$?
2962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963   (exit $ac_status); } &&
2964          { ac_try='test -s conftest.$ac_objext'
2965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2966   (eval $ac_try) 2>&5
2967   ac_status=$?
2968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969   (exit $ac_status); }; }; then
2970   am_cv_prog_cc_stdc="$ac_arg"; break
2971 else
2972   echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.$ac_ext >&5
2974
2975 fi
2976 rm -f conftest.$ac_objext conftest.$ac_ext
2977 done
2978 CC="$ac_save_CC"
2979
2980 fi
2981
2982 if test -z "$am_cv_prog_cc_stdc"; then
2983   echo "$as_me:$LINENO: result: none needed" >&5
2984 echo "${ECHO_T}none needed" >&6
2985 else
2986   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2987 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2988 fi
2989 case "x$am_cv_prog_cc_stdc" in
2990   x|xno) ;;
2991   *) CC="$CC $am_cv_prog_cc_stdc" ;;
2992 esac
2993
2994 ac_ext=c
2995 ac_cpp='$CPP $CPPFLAGS'
2996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2999 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3000 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3001 # On Suns, sometimes $CPP names a directory.
3002 if test -n "$CPP" && test -d "$CPP"; then
3003   CPP=
3004 fi
3005 if test -z "$CPP"; then
3006   if test "${ac_cv_prog_CPP+set}" = set; then
3007   echo $ECHO_N "(cached) $ECHO_C" >&6
3008 else
3009       # Double quotes because CPP needs to be expanded
3010     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3011     do
3012       ac_preproc_ok=false
3013 for ac_c_preproc_warn_flag in '' yes
3014 do
3015   # Use a header file that comes with gcc, so configuring glibc
3016   # with a fresh cross-compiler works.
3017   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3018   # <limits.h> exists even on freestanding compilers.
3019   # On the NeXT, cc -E runs the code through the compiler's parser,
3020   # not just through cpp. "Syntax error" is here to catch this case.
3021   cat >conftest.$ac_ext <<_ACEOF
3022 #line $LINENO "configure"
3023 /* confdefs.h.  */
3024 _ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h.  */
3028 #ifdef __STDC__
3029 # include <limits.h>
3030 #else
3031 # include <assert.h>
3032 #endif
3033                      Syntax error
3034 _ACEOF
3035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3036   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3037   ac_status=$?
3038   grep -v '^ *+' conftest.er1 >conftest.err
3039   rm -f conftest.er1
3040   cat conftest.err >&5
3041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042   (exit $ac_status); } >/dev/null; then
3043   if test -s conftest.err; then
3044     ac_cpp_err=$ac_c_preproc_warn_flag
3045   else
3046     ac_cpp_err=
3047   fi
3048 else
3049   ac_cpp_err=yes
3050 fi
3051 if test -z "$ac_cpp_err"; then
3052   :
3053 else
3054   echo "$as_me: failed program was:" >&5
3055 sed 's/^/| /' conftest.$ac_ext >&5
3056
3057   # Broken: fails on valid input.
3058 continue
3059 fi
3060 rm -f conftest.err conftest.$ac_ext
3061
3062   # OK, works on sane cases.  Now check whether non-existent headers
3063   # can be detected and how.
3064   cat >conftest.$ac_ext <<_ACEOF
3065 #line $LINENO "configure"
3066 /* confdefs.h.  */
3067 _ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h.  */
3071 #include <ac_nonexistent.h>
3072 _ACEOF
3073 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3074   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3075   ac_status=$?
3076   grep -v '^ *+' conftest.er1 >conftest.err
3077   rm -f conftest.er1
3078   cat conftest.err >&5
3079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080   (exit $ac_status); } >/dev/null; then
3081   if test -s conftest.err; then
3082     ac_cpp_err=$ac_c_preproc_warn_flag
3083   else
3084     ac_cpp_err=
3085   fi
3086 else
3087   ac_cpp_err=yes
3088 fi
3089 if test -z "$ac_cpp_err"; then
3090   # Broken: success on invalid input.
3091 continue
3092 else
3093   echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3095
3096   # Passes both tests.
3097 ac_preproc_ok=:
3098 break
3099 fi
3100 rm -f conftest.err conftest.$ac_ext
3101
3102 done
3103 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3104 rm -f conftest.err conftest.$ac_ext
3105 if $ac_preproc_ok; then
3106   break
3107 fi
3108
3109     done
3110     ac_cv_prog_CPP=$CPP
3111
3112 fi
3113   CPP=$ac_cv_prog_CPP
3114 else
3115   ac_cv_prog_CPP=$CPP
3116 fi
3117 echo "$as_me:$LINENO: result: $CPP" >&5
3118 echo "${ECHO_T}$CPP" >&6
3119 ac_preproc_ok=false
3120 for ac_c_preproc_warn_flag in '' yes
3121 do
3122   # Use a header file that comes with gcc, so configuring glibc
3123   # with a fresh cross-compiler works.
3124   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3125   # <limits.h> exists even on freestanding compilers.
3126   # On the NeXT, cc -E runs the code through the compiler's parser,
3127   # not just through cpp. "Syntax error" is here to catch this case.
3128   cat >conftest.$ac_ext <<_ACEOF
3129 #line $LINENO "configure"
3130 /* confdefs.h.  */
3131 _ACEOF
3132 cat confdefs.h >>conftest.$ac_ext
3133 cat >>conftest.$ac_ext <<_ACEOF
3134 /* end confdefs.h.  */
3135 #ifdef __STDC__
3136 # include <limits.h>
3137 #else
3138 # include <assert.h>
3139 #endif
3140                      Syntax error
3141 _ACEOF
3142 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3143   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3144   ac_status=$?
3145   grep -v '^ *+' conftest.er1 >conftest.err
3146   rm -f conftest.er1
3147   cat conftest.err >&5
3148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149   (exit $ac_status); } >/dev/null; then
3150   if test -s conftest.err; then
3151     ac_cpp_err=$ac_c_preproc_warn_flag
3152   else
3153     ac_cpp_err=
3154   fi
3155 else
3156   ac_cpp_err=yes
3157 fi
3158 if test -z "$ac_cpp_err"; then
3159   :
3160 else
3161   echo "$as_me: failed program was:" >&5
3162 sed 's/^/| /' conftest.$ac_ext >&5
3163
3164   # Broken: fails on valid input.
3165 continue
3166 fi
3167 rm -f conftest.err conftest.$ac_ext
3168
3169   # OK, works on sane cases.  Now check whether non-existent headers
3170   # can be detected and how.
3171   cat >conftest.$ac_ext <<_ACEOF
3172 #line $LINENO "configure"
3173 /* confdefs.h.  */
3174 _ACEOF
3175 cat confdefs.h >>conftest.$ac_ext
3176 cat >>conftest.$ac_ext <<_ACEOF
3177 /* end confdefs.h.  */
3178 #include <ac_nonexistent.h>
3179 _ACEOF
3180 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3181   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3182   ac_status=$?
3183   grep -v '^ *+' conftest.er1 >conftest.err
3184   rm -f conftest.er1
3185   cat conftest.err >&5
3186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187   (exit $ac_status); } >/dev/null; then
3188   if test -s conftest.err; then
3189     ac_cpp_err=$ac_c_preproc_warn_flag
3190   else
3191     ac_cpp_err=
3192   fi
3193 else
3194   ac_cpp_err=yes
3195 fi
3196 if test -z "$ac_cpp_err"; then
3197   # Broken: success on invalid input.
3198 continue
3199 else
3200   echo "$as_me: failed program was:" >&5
3201 sed 's/^/| /' conftest.$ac_ext >&5
3202
3203   # Passes both tests.
3204 ac_preproc_ok=:
3205 break
3206 fi
3207 rm -f conftest.err conftest.$ac_ext
3208
3209 done
3210 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3211 rm -f conftest.err conftest.$ac_ext
3212 if $ac_preproc_ok; then
3213   :
3214 else
3215   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3216 See \`config.log' for more details." >&5
3217 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3218 See \`config.log' for more details." >&2;}
3219    { (exit 1); exit 1; }; }
3220 fi
3221
3222 ac_ext=c
3223 ac_cpp='$CPP $CPPFLAGS'
3224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3227
3228
3229 echo "$as_me:$LINENO: checking for egrep" >&5
3230 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3231 if test "${ac_cv_prog_egrep+set}" = set; then
3232   echo $ECHO_N "(cached) $ECHO_C" >&6
3233 else
3234   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3235     then ac_cv_prog_egrep='grep -E'
3236     else ac_cv_prog_egrep='egrep'
3237     fi
3238 fi
3239 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3240 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3241  EGREP=$ac_cv_prog_egrep
3242
3243
3244 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3255                   inttypes.h stdint.h unistd.h
3256 do
3257 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3258 echo "$as_me:$LINENO: checking for $ac_header" >&5
3259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3261   echo $ECHO_N "(cached) $ECHO_C" >&6
3262 else
3263   cat >conftest.$ac_ext <<_ACEOF
3264 #line $LINENO "configure"
3265 /* confdefs.h.  */
3266 _ACEOF
3267 cat confdefs.h >>conftest.$ac_ext
3268 cat >>conftest.$ac_ext <<_ACEOF
3269 /* end confdefs.h.  */
3270 $ac_includes_default
3271
3272 #include <$ac_header>
3273 _ACEOF
3274 rm -f conftest.$ac_objext
3275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3276   (eval $ac_compile) 2>&5
3277   ac_status=$?
3278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279   (exit $ac_status); } &&
3280          { ac_try='test -s conftest.$ac_objext'
3281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3282   (eval $ac_try) 2>&5
3283   ac_status=$?
3284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285   (exit $ac_status); }; }; then
3286   eval "$as_ac_Header=yes"
3287 else
3288   echo "$as_me: failed program was:" >&5
3289 sed 's/^/| /' conftest.$ac_ext >&5
3290
3291 eval "$as_ac_Header=no"
3292 fi
3293 rm -f conftest.$ac_objext conftest.$ac_ext
3294 fi
3295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3296 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3297 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3298   cat >>confdefs.h <<_ACEOF
3299 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3300 _ACEOF
3301
3302 fi
3303
3304 done
3305
3306
3307
3308
3309 echo "$as_me:$LINENO: checking for function prototypes" >&5
3310 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3311 if test "$am_cv_prog_cc_stdc" != no; then
3312   echo "$as_me:$LINENO: result: yes" >&5
3313 echo "${ECHO_T}yes" >&6
3314
3315 cat >>confdefs.h <<\_ACEOF
3316 #define PROTOTYPES 1
3317 _ACEOF
3318
3319   U= ANSI2KNR=
3320 else
3321   echo "$as_me:$LINENO: result: no" >&5
3322 echo "${ECHO_T}no" >&6
3323   U=_ ANSI2KNR=./ansi2knr
3324 fi
3325 # Ensure some checks needed by ansi2knr itself.
3326 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3327 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3328 if test "${ac_cv_header_stdc+set}" = set; then
3329   echo $ECHO_N "(cached) $ECHO_C" >&6
3330 else
3331   cat >conftest.$ac_ext <<_ACEOF
3332 #line $LINENO "configure"
3333 /* confdefs.h.  */
3334 _ACEOF
3335 cat confdefs.h >>conftest.$ac_ext
3336 cat >>conftest.$ac_ext <<_ACEOF
3337 /* end confdefs.h.  */
3338 #include <stdlib.h>
3339 #include <stdarg.h>
3340 #include <string.h>
3341 #include <float.h>
3342
3343 int
3344 main ()
3345 {
3346
3347   ;
3348   return 0;
3349 }
3350 _ACEOF
3351 rm -f conftest.$ac_objext
3352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3353   (eval $ac_compile) 2>&5
3354   ac_status=$?
3355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356   (exit $ac_status); } &&
3357          { ac_try='test -s conftest.$ac_objext'
3358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3359   (eval $ac_try) 2>&5
3360   ac_status=$?
3361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362   (exit $ac_status); }; }; then
3363   ac_cv_header_stdc=yes
3364 else
3365   echo "$as_me: failed program was:" >&5
3366 sed 's/^/| /' conftest.$ac_ext >&5
3367
3368 ac_cv_header_stdc=no
3369 fi
3370 rm -f conftest.$ac_objext conftest.$ac_ext
3371
3372 if test $ac_cv_header_stdc = yes; then
3373   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3374   cat >conftest.$ac_ext <<_ACEOF
3375 #line $LINENO "configure"
3376 /* confdefs.h.  */
3377 _ACEOF
3378 cat confdefs.h >>conftest.$ac_ext
3379 cat >>conftest.$ac_ext <<_ACEOF
3380 /* end confdefs.h.  */
3381 #include <string.h>
3382
3383 _ACEOF
3384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3385   $EGREP "memchr" >/dev/null 2>&1; then
3386   :
3387 else
3388   ac_cv_header_stdc=no
3389 fi
3390 rm -f conftest*
3391
3392 fi
3393
3394 if test $ac_cv_header_stdc = yes; then
3395   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3396   cat >conftest.$ac_ext <<_ACEOF
3397 #line $LINENO "configure"
3398 /* confdefs.h.  */
3399 _ACEOF
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h.  */
3403 #include <stdlib.h>
3404
3405 _ACEOF
3406 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3407   $EGREP "free" >/dev/null 2>&1; then
3408   :
3409 else
3410   ac_cv_header_stdc=no
3411 fi
3412 rm -f conftest*
3413
3414 fi
3415
3416 if test $ac_cv_header_stdc = yes; then
3417   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3418   if test "$cross_compiling" = yes; then
3419   :
3420 else
3421   cat >conftest.$ac_ext <<_ACEOF
3422 #line $LINENO "configure"
3423 /* confdefs.h.  */
3424 _ACEOF
3425 cat confdefs.h >>conftest.$ac_ext
3426 cat >>conftest.$ac_ext <<_ACEOF
3427 /* end confdefs.h.  */
3428 #include <ctype.h>
3429 #if ((' ' & 0x0FF) == 0x020)
3430 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3431 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3432 #else
3433 # define ISLOWER(c) \
3434                    (('a' <= (c) && (c) <= 'i') \
3435                      || ('j' <= (c) && (c) <= 'r') \
3436                      || ('s' <= (c) && (c) <= 'z'))
3437 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3438 #endif
3439
3440 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3441 int
3442 main ()
3443 {
3444   int i;
3445   for (i = 0; i < 256; i++)
3446     if (XOR (islower (i), ISLOWER (i))
3447         || toupper (i) != TOUPPER (i))
3448       exit(2);
3449   exit (0);
3450 }
3451 _ACEOF
3452 rm -f conftest$ac_exeext
3453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3454   (eval $ac_link) 2>&5
3455   ac_status=$?
3456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3459   (eval $ac_try) 2>&5
3460   ac_status=$?
3461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462   (exit $ac_status); }; }; then
3463   :
3464 else
3465   echo "$as_me: program exited with status $ac_status" >&5
3466 echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3468
3469 ( exit $ac_status )
3470 ac_cv_header_stdc=no
3471 fi
3472 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3473 fi
3474 fi
3475 fi
3476 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3477 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3478 if test $ac_cv_header_stdc = yes; then
3479
3480 cat >>confdefs.h <<\_ACEOF
3481 #define STDC_HEADERS 1
3482 _ACEOF
3483
3484 fi
3485
3486
3487 for ac_header in string.h
3488 do
3489 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3490 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3491   echo "$as_me:$LINENO: checking for $ac_header" >&5
3492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3494   echo $ECHO_N "(cached) $ECHO_C" >&6
3495 fi
3496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3498 else
3499   # Is the header compilable?
3500 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3501 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3502 cat >conftest.$ac_ext <<_ACEOF
3503 #line $LINENO "configure"
3504 /* confdefs.h.  */
3505 _ACEOF
3506 cat confdefs.h >>conftest.$ac_ext
3507 cat >>conftest.$ac_ext <<_ACEOF
3508 /* end confdefs.h.  */
3509 $ac_includes_default
3510 #include <$ac_header>
3511 _ACEOF
3512 rm -f conftest.$ac_objext
3513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3514   (eval $ac_compile) 2>&5
3515   ac_status=$?
3516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517   (exit $ac_status); } &&
3518          { ac_try='test -s conftest.$ac_objext'
3519   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3520   (eval $ac_try) 2>&5
3521   ac_status=$?
3522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523   (exit $ac_status); }; }; then
3524   ac_header_compiler=yes
3525 else
3526   echo "$as_me: failed program was:" >&5
3527 sed 's/^/| /' conftest.$ac_ext >&5
3528
3529 ac_header_compiler=no
3530 fi
3531 rm -f conftest.$ac_objext conftest.$ac_ext
3532 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3533 echo "${ECHO_T}$ac_header_compiler" >&6
3534
3535 # Is the header present?
3536 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3537 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3538 cat >conftest.$ac_ext <<_ACEOF
3539 #line $LINENO "configure"
3540 /* confdefs.h.  */
3541 _ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h.  */
3545 #include <$ac_header>
3546 _ACEOF
3547 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3548   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3549   ac_status=$?
3550   grep -v '^ *+' conftest.er1 >conftest.err
3551   rm -f conftest.er1
3552   cat conftest.err >&5
3553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554   (exit $ac_status); } >/dev/null; then
3555   if test -s conftest.err; then
3556     ac_cpp_err=$ac_c_preproc_warn_flag
3557   else
3558     ac_cpp_err=
3559   fi
3560 else
3561   ac_cpp_err=yes
3562 fi
3563 if test -z "$ac_cpp_err"; then
3564   ac_header_preproc=yes
3565 else
3566   echo "$as_me: failed program was:" >&5
3567 sed 's/^/| /' conftest.$ac_ext >&5
3568
3569   ac_header_preproc=no
3570 fi
3571 rm -f conftest.err conftest.$ac_ext
3572 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3573 echo "${ECHO_T}$ac_header_preproc" >&6
3574
3575 # So?  What about this header?
3576 case $ac_header_compiler:$ac_header_preproc in
3577   yes:no )
3578     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3579 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3580     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3581 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3582     (
3583       cat <<\_ASBOX
3584 ## ------------------------------------ ##
3585 ## Report this to bug-autoconf@gnu.org. ##
3586 ## ------------------------------------ ##
3587 _ASBOX
3588     ) |
3589       sed "s/^/$as_me: WARNING:     /" >&2
3590     ;;
3591   no:yes )
3592     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3594     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3596     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3597 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3598     (
3599       cat <<\_ASBOX
3600 ## ------------------------------------ ##
3601 ## Report this to bug-autoconf@gnu.org. ##
3602 ## ------------------------------------ ##
3603 _ASBOX
3604     ) |
3605       sed "s/^/$as_me: WARNING:     /" >&2
3606     ;;
3607 esac
3608 echo "$as_me:$LINENO: checking for $ac_header" >&5
3609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3611   echo $ECHO_N "(cached) $ECHO_C" >&6
3612 else
3613   eval "$as_ac_Header=$ac_header_preproc"
3614 fi
3615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3616 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3617
3618 fi
3619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3620   cat >>confdefs.h <<_ACEOF
3621 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3622 _ACEOF
3623
3624 fi
3625
3626 done
3627
3628
3629 if test "x$U" != "x"; then
3630   { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
3631 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
3632    { (exit 1); exit 1; }; }
3633 fi
3634 ac_ext=c
3635 ac_cpp='$CPP $CPPFLAGS'
3636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3639 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3640 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3641 # On Suns, sometimes $CPP names a directory.
3642 if test -n "$CPP" && test -d "$CPP"; then
3643   CPP=
3644 fi
3645 if test -z "$CPP"; then
3646   if test "${ac_cv_prog_CPP+set}" = set; then
3647   echo $ECHO_N "(cached) $ECHO_C" >&6
3648 else
3649       # Double quotes because CPP needs to be expanded
3650     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3651     do
3652       ac_preproc_ok=false
3653 for ac_c_preproc_warn_flag in '' yes
3654 do
3655   # Use a header file that comes with gcc, so configuring glibc
3656   # with a fresh cross-compiler works.
3657   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3658   # <limits.h> exists even on freestanding compilers.
3659   # On the NeXT, cc -E runs the code through the compiler's parser,
3660   # not just through cpp. "Syntax error" is here to catch this case.
3661   cat >conftest.$ac_ext <<_ACEOF
3662 #line $LINENO "configure"
3663 /* confdefs.h.  */
3664 _ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h.  */
3668 #ifdef __STDC__
3669 # include <limits.h>
3670 #else
3671 # include <assert.h>
3672 #endif
3673                      Syntax error
3674 _ACEOF
3675 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3676   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3677   ac_status=$?
3678   grep -v '^ *+' conftest.er1 >conftest.err
3679   rm -f conftest.er1
3680   cat conftest.err >&5
3681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682   (exit $ac_status); } >/dev/null; then
3683   if test -s conftest.err; then
3684     ac_cpp_err=$ac_c_preproc_warn_flag
3685   else
3686     ac_cpp_err=
3687   fi
3688 else
3689   ac_cpp_err=yes
3690 fi
3691 if test -z "$ac_cpp_err"; then
3692   :
3693 else
3694   echo "$as_me: failed program was:" >&5
3695 sed 's/^/| /' conftest.$ac_ext >&5
3696
3697   # Broken: fails on valid input.
3698 continue
3699 fi
3700 rm -f conftest.err conftest.$ac_ext
3701
3702   # OK, works on sane cases.  Now check whether non-existent headers
3703   # can be detected and how.
3704   cat >conftest.$ac_ext <<_ACEOF
3705 #line $LINENO "configure"
3706 /* confdefs.h.  */
3707 _ACEOF
3708 cat confdefs.h >>conftest.$ac_ext
3709 cat >>conftest.$ac_ext <<_ACEOF
3710 /* end confdefs.h.  */
3711 #include <ac_nonexistent.h>
3712 _ACEOF
3713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3714   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3715   ac_status=$?
3716   grep -v '^ *+' conftest.er1 >conftest.err
3717   rm -f conftest.er1
3718   cat conftest.err >&5
3719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720   (exit $ac_status); } >/dev/null; then
3721   if test -s conftest.err; then
3722     ac_cpp_err=$ac_c_preproc_warn_flag
3723   else
3724     ac_cpp_err=
3725   fi
3726 else
3727   ac_cpp_err=yes
3728 fi
3729 if test -z "$ac_cpp_err"; then
3730   # Broken: success on invalid input.
3731 continue
3732 else
3733   echo "$as_me: failed program was:" >&5
3734 sed 's/^/| /' conftest.$ac_ext >&5
3735
3736   # Passes both tests.
3737 ac_preproc_ok=:
3738 break
3739 fi
3740 rm -f conftest.err conftest.$ac_ext
3741
3742 done
3743 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3744 rm -f conftest.err conftest.$ac_ext
3745 if $ac_preproc_ok; then
3746   break
3747 fi
3748
3749     done
3750     ac_cv_prog_CPP=$CPP
3751
3752 fi
3753   CPP=$ac_cv_prog_CPP
3754 else
3755   ac_cv_prog_CPP=$CPP
3756 fi
3757 echo "$as_me:$LINENO: result: $CPP" >&5
3758 echo "${ECHO_T}$CPP" >&6
3759 ac_preproc_ok=false
3760 for ac_c_preproc_warn_flag in '' yes
3761 do
3762   # Use a header file that comes with gcc, so configuring glibc
3763   # with a fresh cross-compiler works.
3764   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3765   # <limits.h> exists even on freestanding compilers.
3766   # On the NeXT, cc -E runs the code through the compiler's parser,
3767   # not just through cpp. "Syntax error" is here to catch this case.
3768   cat >conftest.$ac_ext <<_ACEOF
3769 #line $LINENO "configure"
3770 /* confdefs.h.  */
3771 _ACEOF
3772 cat confdefs.h >>conftest.$ac_ext
3773 cat >>conftest.$ac_ext <<_ACEOF
3774 /* end confdefs.h.  */
3775 #ifdef __STDC__
3776 # include <limits.h>
3777 #else
3778 # include <assert.h>
3779 #endif
3780                      Syntax error
3781 _ACEOF
3782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3783   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3784   ac_status=$?
3785   grep -v '^ *+' conftest.er1 >conftest.err
3786   rm -f conftest.er1
3787   cat conftest.err >&5
3788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789   (exit $ac_status); } >/dev/null; then
3790   if test -s conftest.err; then
3791     ac_cpp_err=$ac_c_preproc_warn_flag
3792   else
3793     ac_cpp_err=
3794   fi
3795 else
3796   ac_cpp_err=yes
3797 fi
3798 if test -z "$ac_cpp_err"; then
3799   :
3800 else
3801   echo "$as_me: failed program was:" >&5
3802 sed 's/^/| /' conftest.$ac_ext >&5
3803
3804   # Broken: fails on valid input.
3805 continue
3806 fi
3807 rm -f conftest.err conftest.$ac_ext
3808
3809   # OK, works on sane cases.  Now check whether non-existent headers
3810   # can be detected and how.
3811   cat >conftest.$ac_ext <<_ACEOF
3812 #line $LINENO "configure"
3813 /* confdefs.h.  */
3814 _ACEOF
3815 cat confdefs.h >>conftest.$ac_ext
3816 cat >>conftest.$ac_ext <<_ACEOF
3817 /* end confdefs.h.  */
3818 #include <ac_nonexistent.h>
3819 _ACEOF
3820 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3821   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3822   ac_status=$?
3823   grep -v '^ *+' conftest.er1 >conftest.err
3824   rm -f conftest.er1
3825   cat conftest.err >&5
3826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3827   (exit $ac_status); } >/dev/null; then
3828   if test -s conftest.err; then
3829     ac_cpp_err=$ac_c_preproc_warn_flag
3830   else
3831     ac_cpp_err=
3832   fi
3833 else
3834   ac_cpp_err=yes
3835 fi
3836 if test -z "$ac_cpp_err"; then
3837   # Broken: success on invalid input.
3838 continue
3839 else
3840   echo "$as_me: failed program was:" >&5
3841 sed 's/^/| /' conftest.$ac_ext >&5
3842
3843   # Passes both tests.
3844 ac_preproc_ok=:
3845 break
3846 fi
3847 rm -f conftest.err conftest.$ac_ext
3848
3849 done
3850 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3851 rm -f conftest.err conftest.$ac_ext
3852 if $ac_preproc_ok; then
3853   :
3854 else
3855   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3856 See \`config.log' for more details." >&5
3857 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3858 See \`config.log' for more details." >&2;}
3859    { (exit 1); exit 1; }; }
3860 fi
3861
3862 ac_ext=c
3863 ac_cpp='$CPP $CPPFLAGS'
3864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3867
3868 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3869 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3870 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3871 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3872   echo $ECHO_N "(cached) $ECHO_C" >&6
3873 else
3874   cat >conftest.make <<\_ACEOF
3875 all:
3876         @echo 'ac_maketemp="$(MAKE)"'
3877 _ACEOF
3878 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3879 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3880 if test -n "$ac_maketemp"; then
3881   eval ac_cv_prog_make_${ac_make}_set=yes
3882 else
3883   eval ac_cv_prog_make_${ac_make}_set=no
3884 fi
3885 rm -f conftest.make
3886 fi
3887 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3888   echo "$as_me:$LINENO: result: yes" >&5
3889 echo "${ECHO_T}yes" >&6
3890   SET_MAKE=
3891 else
3892   echo "$as_me:$LINENO: result: no" >&5
3893 echo "${ECHO_T}no" >&6
3894   SET_MAKE="MAKE=${MAKE-make}"
3895 fi
3896
3897 # Find a good install program.  We prefer a C program (faster),
3898 # so one script is as good as another.  But avoid the broken or
3899 # incompatible versions:
3900 # SysV /etc/install, /usr/sbin/install
3901 # SunOS /usr/etc/install
3902 # IRIX /sbin/install
3903 # AIX /bin/install
3904 # AmigaOS /C/install, which installs bootblocks on floppy discs
3905 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3906 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3907 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3908 # ./install, which can be erroneously created by make from ./install.sh.
3909 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3910 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3911 if test -z "$INSTALL"; then
3912 if test "${ac_cv_path_install+set}" = set; then
3913   echo $ECHO_N "(cached) $ECHO_C" >&6
3914 else
3915   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916 for as_dir in $PATH
3917 do
3918   IFS=$as_save_IFS
3919   test -z "$as_dir" && as_dir=.
3920   # Account for people who put trailing slashes in PATH elements.
3921 case $as_dir/ in
3922   ./ | .// | /cC/* | \
3923   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3924   /usr/ucb/* ) ;;
3925   *)
3926     # OSF1 and SCO ODT 3.0 have their own names for install.
3927     # Don't use installbsd from OSF since it installs stuff as root
3928     # by default.
3929     for ac_prog in ginstall scoinst install; do
3930       for ac_exec_ext in '' $ac_executable_extensions; do
3931         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3932           if test $ac_prog = install &&
3933             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3934             # AIX install.  It has an incompatible calling convention.
3935             :
3936           elif test $ac_prog = install &&
3937             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3938             # program-specific install script used by HP pwplus--don't use.
3939             :
3940           else
3941             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3942             break 3
3943           fi
3944         fi
3945       done
3946     done
3947     ;;
3948 esac
3949 done
3950
3951
3952 fi
3953   if test "${ac_cv_path_install+set}" = set; then
3954     INSTALL=$ac_cv_path_install
3955   else
3956     # As a last resort, use the slow shell script.  We don't cache a
3957     # path for INSTALL within a source directory, because that will
3958     # break other packages using the cache if that directory is
3959     # removed, or if the path is relative.
3960     INSTALL=$ac_install_sh
3961   fi
3962 fi
3963 echo "$as_me:$LINENO: result: $INSTALL" >&5
3964 echo "${ECHO_T}$INSTALL" >&6
3965
3966 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3967 # It thinks the first close brace ends the variable substitution.
3968 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3969
3970 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3971
3972 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3973
3974 if test -n "$ac_tool_prefix"; then
3975   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3976 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3977 echo "$as_me:$LINENO: checking for $ac_word" >&5
3978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3979 if test "${ac_cv_prog_RANLIB+set}" = set; then
3980   echo $ECHO_N "(cached) $ECHO_C" >&6
3981 else
3982   if test -n "$RANLIB"; then
3983   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3984 else
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 for as_dir in $PATH
3987 do
3988   IFS=$as_save_IFS
3989   test -z "$as_dir" && as_dir=.
3990   for ac_exec_ext in '' $ac_executable_extensions; do
3991   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3992     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3994     break 2
3995   fi
3996 done
3997 done
3998
3999 fi
4000 fi
4001 RANLIB=$ac_cv_prog_RANLIB
4002 if test -n "$RANLIB"; then
4003   echo "$as_me:$LINENO: result: $RANLIB" >&5
4004 echo "${ECHO_T}$RANLIB" >&6
4005 else
4006   echo "$as_me:$LINENO: result: no" >&5
4007 echo "${ECHO_T}no" >&6
4008 fi
4009
4010 fi
4011 if test -z "$ac_cv_prog_RANLIB"; then
4012   ac_ct_RANLIB=$RANLIB
4013   # Extract the first word of "ranlib", so it can be a program name with args.
4014 set dummy ranlib; ac_word=$2
4015 echo "$as_me:$LINENO: checking for $ac_word" >&5
4016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4017 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4018   echo $ECHO_N "(cached) $ECHO_C" >&6
4019 else
4020   if test -n "$ac_ct_RANLIB"; then
4021   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4022 else
4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024 for as_dir in $PATH
4025 do
4026   IFS=$as_save_IFS
4027   test -z "$as_dir" && as_dir=.
4028   for ac_exec_ext in '' $ac_executable_extensions; do
4029   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4030     ac_cv_prog_ac_ct_RANLIB="ranlib"
4031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4032     break 2
4033   fi
4034 done
4035 done
4036
4037   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4038 fi
4039 fi
4040 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4041 if test -n "$ac_ct_RANLIB"; then
4042   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4043 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4044 else
4045   echo "$as_me:$LINENO: result: no" >&5
4046 echo "${ECHO_T}no" >&6
4047 fi
4048
4049   RANLIB=$ac_ct_RANLIB
4050 else
4051   RANLIB="$ac_cv_prog_RANLIB"
4052 fi
4053
4054 if test -n "$ac_tool_prefix"; then
4055   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4056 set dummy ${ac_tool_prefix}ar; ac_word=$2
4057 echo "$as_me:$LINENO: checking for $ac_word" >&5
4058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4059 if test "${ac_cv_prog_AR+set}" = set; then
4060   echo $ECHO_N "(cached) $ECHO_C" >&6
4061 else
4062   if test -n "$AR"; then
4063   ac_cv_prog_AR="$AR" # Let the user override the test.
4064 else
4065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066 for as_dir in $PATH
4067 do
4068   IFS=$as_save_IFS
4069   test -z "$as_dir" && as_dir=.
4070   for ac_exec_ext in '' $ac_executable_extensions; do
4071   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4072     ac_cv_prog_AR="${ac_tool_prefix}ar"
4073     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4074     break 2
4075   fi
4076 done
4077 done
4078
4079 fi
4080 fi
4081 AR=$ac_cv_prog_AR
4082 if test -n "$AR"; then
4083   echo "$as_me:$LINENO: result: $AR" >&5
4084 echo "${ECHO_T}$AR" >&6
4085 else
4086   echo "$as_me:$LINENO: result: no" >&5
4087 echo "${ECHO_T}no" >&6
4088 fi
4089
4090 fi
4091 if test -z "$ac_cv_prog_AR"; then
4092   ac_ct_AR=$AR
4093   # Extract the first word of "ar", so it can be a program name with args.
4094 set dummy ar; ac_word=$2
4095 echo "$as_me:$LINENO: checking for $ac_word" >&5
4096 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4097 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4098   echo $ECHO_N "(cached) $ECHO_C" >&6
4099 else
4100   if test -n "$ac_ct_AR"; then
4101   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4102 else
4103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4104 for as_dir in $PATH
4105 do
4106   IFS=$as_save_IFS
4107   test -z "$as_dir" && as_dir=.
4108   for ac_exec_ext in '' $ac_executable_extensions; do
4109   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4110     ac_cv_prog_ac_ct_AR="ar"
4111     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4112     break 2
4113   fi
4114 done
4115 done
4116
4117   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4118 fi
4119 fi
4120 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4121 if test -n "$ac_ct_AR"; then
4122   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4123 echo "${ECHO_T}$ac_ct_AR" >&6
4124 else
4125   echo "$as_me:$LINENO: result: no" >&5
4126 echo "${ECHO_T}no" >&6
4127 fi
4128
4129   AR=$ac_ct_AR
4130 else
4131   AR="$ac_cv_prog_AR"
4132 fi
4133
4134
4135 echo "$as_me:$LINENO: checking for inline" >&5
4136 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4137 if test "${ac_cv_c_inline+set}" = set; then
4138   echo $ECHO_N "(cached) $ECHO_C" >&6
4139 else
4140   ac_cv_c_inline=no
4141 for ac_kw in inline __inline__ __inline; do
4142   cat >conftest.$ac_ext <<_ACEOF
4143 #line $LINENO "configure"
4144 /* confdefs.h.  */
4145 _ACEOF
4146 cat confdefs.h >>conftest.$ac_ext
4147 cat >>conftest.$ac_ext <<_ACEOF
4148 /* end confdefs.h.  */
4149 #ifndef __cplusplus
4150 typedef int foo_t;
4151 static $ac_kw foo_t static_foo () {return 0; }
4152 $ac_kw foo_t foo () {return 0; }
4153 #endif
4154
4155 _ACEOF
4156 rm -f conftest.$ac_objext
4157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4158   (eval $ac_compile) 2>&5
4159   ac_status=$?
4160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161   (exit $ac_status); } &&
4162          { ac_try='test -s conftest.$ac_objext'
4163   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4164   (eval $ac_try) 2>&5
4165   ac_status=$?
4166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167   (exit $ac_status); }; }; then
4168   ac_cv_c_inline=$ac_kw; break
4169 else
4170   echo "$as_me: failed program was:" >&5
4171 sed 's/^/| /' conftest.$ac_ext >&5
4172
4173 fi
4174 rm -f conftest.$ac_objext conftest.$ac_ext
4175 done
4176
4177 fi
4178 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4179 echo "${ECHO_T}$ac_cv_c_inline" >&6
4180 case $ac_cv_c_inline in
4181   inline | yes) ;;
4182   no)
4183 cat >>confdefs.h <<\_ACEOF
4184 #define inline
4185 _ACEOF
4186  ;;
4187   *)  cat >>confdefs.h <<_ACEOF
4188 #define inline $ac_cv_c_inline
4189 _ACEOF
4190  ;;
4191 esac
4192
4193 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4194 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4195 if test "${ac_cv_c_const+set}" = set; then
4196   echo $ECHO_N "(cached) $ECHO_C" >&6
4197 else
4198   cat >conftest.$ac_ext <<_ACEOF
4199 #line $LINENO "configure"
4200 /* confdefs.h.  */
4201 _ACEOF
4202 cat confdefs.h >>conftest.$ac_ext
4203 cat >>conftest.$ac_ext <<_ACEOF
4204 /* end confdefs.h.  */
4205
4206 int
4207 main ()
4208 {
4209 /* FIXME: Include the comments suggested by Paul. */
4210 #ifndef __cplusplus
4211   /* Ultrix mips cc rejects this.  */
4212   typedef int charset[2];
4213   const charset x;
4214   /* SunOS 4.1.1 cc rejects this.  */
4215   char const *const *ccp;
4216   char **p;
4217   /* NEC SVR4.0.2 mips cc rejects this.  */
4218   struct point {int x, y;};
4219   static struct point const zero = {0,0};
4220   /* AIX XL C 1.02.0.0 rejects this.
4221      It does not let you subtract one const X* pointer from another in
4222      an arm of an if-expression whose if-part is not a constant
4223      expression */
4224   const char *g = "string";
4225   ccp = &g + (g ? g-g : 0);
4226   /* HPUX 7.0 cc rejects these. */
4227   ++ccp;
4228   p = (char**) ccp;
4229   ccp = (char const *const *) p;
4230   { /* SCO 3.2v4 cc rejects this.  */
4231     char *t;
4232     char const *s = 0 ? (char *) 0 : (char const *) 0;
4233
4234     *t++ = 0;
4235   }
4236   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4237     int x[] = {25, 17};
4238     const int *foo = &x[0];
4239     ++foo;
4240   }
4241   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4242     typedef const int *iptr;
4243     iptr p = 0;
4244     ++p;
4245   }
4246   { /* AIX XL C 1.02.0.0 rejects this saying
4247        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4248     struct s { int j; const int *ap[3]; };
4249     struct s *b; b->j = 5;
4250   }
4251   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4252     const int foo = 10;
4253   }
4254 #endif
4255
4256   ;
4257   return 0;
4258 }
4259 _ACEOF
4260 rm -f conftest.$ac_objext
4261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4262   (eval $ac_compile) 2>&5
4263   ac_status=$?
4264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265   (exit $ac_status); } &&
4266          { ac_try='test -s conftest.$ac_objext'
4267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268   (eval $ac_try) 2>&5
4269   ac_status=$?
4270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271   (exit $ac_status); }; }; then
4272   ac_cv_c_const=yes
4273 else
4274   echo "$as_me: failed program was:" >&5
4275 sed 's/^/| /' conftest.$ac_ext >&5
4276
4277 ac_cv_c_const=no
4278 fi
4279 rm -f conftest.$ac_objext conftest.$ac_ext
4280 fi
4281 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4282 echo "${ECHO_T}$ac_cv_c_const" >&6
4283 if test $ac_cv_c_const = no; then
4284
4285 cat >>confdefs.h <<\_ACEOF
4286 #define const
4287 _ACEOF
4288
4289 fi
4290
4291
4292 # Check whether --enable-largefile or --disable-largefile was given.
4293 if test "${enable_largefile+set}" = set; then
4294   enableval="$enable_largefile"
4295
4296 fi;
4297 if test "$enable_largefile" != no; then
4298
4299   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4300 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4301 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4302   echo $ECHO_N "(cached) $ECHO_C" >&6
4303 else
4304   ac_cv_sys_largefile_CC=no
4305      if test "$GCC" != yes; then
4306        ac_save_CC=$CC
4307        while :; do
4308          # IRIX 6.2 and later do not support large files by default,
4309          # so use the C compiler's -n32 option if that helps.
4310          cat >conftest.$ac_ext <<_ACEOF
4311 #line $LINENO "configure"
4312 /* confdefs.h.  */
4313 _ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h.  */
4317 #include <sys/types.h>
4318  /* Check that off_t can represent 2**63 - 1 correctly.
4319     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4320     since some C++ compilers masquerading as C compilers
4321     incorrectly reject 9223372036854775807.  */
4322 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4323   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4324                        && LARGE_OFF_T % 2147483647 == 1)
4325                       ? 1 : -1];
4326 int
4327 main ()
4328 {
4329
4330   ;
4331   return 0;
4332 }
4333 _ACEOF
4334          rm -f conftest.$ac_objext
4335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4336   (eval $ac_compile) 2>&5
4337   ac_status=$?
4338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339   (exit $ac_status); } &&
4340          { ac_try='test -s conftest.$ac_objext'
4341   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4342   (eval $ac_try) 2>&5
4343   ac_status=$?
4344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4345   (exit $ac_status); }; }; then
4346   break
4347 else
4348   echo "$as_me: failed program was:" >&5
4349 sed 's/^/| /' conftest.$ac_ext >&5
4350
4351 fi
4352 rm -f conftest.$ac_objext
4353          CC="$CC -n32"
4354          rm -f conftest.$ac_objext
4355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4356   (eval $ac_compile) 2>&5
4357   ac_status=$?
4358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359   (exit $ac_status); } &&
4360          { ac_try='test -s conftest.$ac_objext'
4361   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4362   (eval $ac_try) 2>&5
4363   ac_status=$?
4364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365   (exit $ac_status); }; }; then
4366   ac_cv_sys_largefile_CC=' -n32'; break
4367 else
4368   echo "$as_me: failed program was:" >&5
4369 sed 's/^/| /' conftest.$ac_ext >&5
4370
4371 fi
4372 rm -f conftest.$ac_objext
4373          break
4374        done
4375        CC=$ac_save_CC
4376        rm -f conftest.$ac_ext
4377     fi
4378 fi
4379 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4380 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4381   if test "$ac_cv_sys_largefile_CC" != no; then
4382     CC=$CC$ac_cv_sys_largefile_CC
4383   fi
4384
4385   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4386 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4387 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4388   echo $ECHO_N "(cached) $ECHO_C" >&6
4389 else
4390   while :; do
4391   ac_cv_sys_file_offset_bits=no
4392   cat >conftest.$ac_ext <<_ACEOF
4393 #line $LINENO "configure"
4394 /* confdefs.h.  */
4395 _ACEOF
4396 cat confdefs.h >>conftest.$ac_ext
4397 cat >>conftest.$ac_ext <<_ACEOF
4398 /* end confdefs.h.  */
4399 #include <sys/types.h>
4400  /* Check that off_t can represent 2**63 - 1 correctly.
4401     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4402     since some C++ compilers masquerading as C compilers
4403     incorrectly reject 9223372036854775807.  */
4404 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4405   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4406                        && LARGE_OFF_T % 2147483647 == 1)
4407                       ? 1 : -1];
4408 int
4409 main ()
4410 {
4411
4412   ;
4413   return 0;
4414 }
4415 _ACEOF
4416 rm -f conftest.$ac_objext
4417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4418   (eval $ac_compile) 2>&5
4419   ac_status=$?
4420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421   (exit $ac_status); } &&
4422          { ac_try='test -s conftest.$ac_objext'
4423   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4424   (eval $ac_try) 2>&5
4425   ac_status=$?
4426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427   (exit $ac_status); }; }; then
4428   break
4429 else
4430   echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4432
4433 fi
4434 rm -f conftest.$ac_objext conftest.$ac_ext
4435   cat >conftest.$ac_ext <<_ACEOF
4436 #line $LINENO "configure"
4437 /* confdefs.h.  */
4438 _ACEOF
4439 cat confdefs.h >>conftest.$ac_ext
4440 cat >>conftest.$ac_ext <<_ACEOF
4441 /* end confdefs.h.  */
4442 #define _FILE_OFFSET_BITS 64
4443 #include <sys/types.h>
4444  /* Check that off_t can represent 2**63 - 1 correctly.
4445     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4446     since some C++ compilers masquerading as C compilers
4447     incorrectly reject 9223372036854775807.  */
4448 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4449   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4450                        && LARGE_OFF_T % 2147483647 == 1)
4451                       ? 1 : -1];
4452 int
4453 main ()
4454 {
4455
4456   ;
4457   return 0;
4458 }
4459 _ACEOF
4460 rm -f conftest.$ac_objext
4461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4462   (eval $ac_compile) 2>&5
4463   ac_status=$?
4464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465   (exit $ac_status); } &&
4466          { ac_try='test -s conftest.$ac_objext'
4467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468   (eval $ac_try) 2>&5
4469   ac_status=$?
4470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471   (exit $ac_status); }; }; then
4472   ac_cv_sys_file_offset_bits=64; break
4473 else
4474   echo "$as_me: failed program was:" >&5
4475 sed 's/^/| /' conftest.$ac_ext >&5
4476
4477 fi
4478 rm -f conftest.$ac_objext conftest.$ac_ext
4479   break
4480 done
4481 fi
4482 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4483 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4484 if test "$ac_cv_sys_file_offset_bits" != no; then
4485
4486 cat >>confdefs.h <<_ACEOF
4487 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4488 _ACEOF
4489
4490 fi
4491 rm -f conftest*
4492   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4493 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4494 if test "${ac_cv_sys_large_files+set}" = set; then
4495   echo $ECHO_N "(cached) $ECHO_C" >&6
4496 else
4497   while :; do
4498   ac_cv_sys_large_files=no
4499   cat >conftest.$ac_ext <<_ACEOF
4500 #line $LINENO "configure"
4501 /* confdefs.h.  */
4502 _ACEOF
4503 cat confdefs.h >>conftest.$ac_ext
4504 cat >>conftest.$ac_ext <<_ACEOF
4505 /* end confdefs.h.  */
4506 #include <sys/types.h>
4507  /* Check that off_t can represent 2**63 - 1 correctly.
4508     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4509     since some C++ compilers masquerading as C compilers
4510     incorrectly reject 9223372036854775807.  */
4511 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4512   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4513                        && LARGE_OFF_T % 2147483647 == 1)
4514                       ? 1 : -1];
4515 int
4516 main ()
4517 {
4518
4519   ;
4520   return 0;
4521 }
4522 _ACEOF
4523 rm -f conftest.$ac_objext
4524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4525   (eval $ac_compile) 2>&5
4526   ac_status=$?
4527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528   (exit $ac_status); } &&
4529          { ac_try='test -s conftest.$ac_objext'
4530   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531   (eval $ac_try) 2>&5
4532   ac_status=$?
4533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534   (exit $ac_status); }; }; then
4535   break
4536 else
4537   echo "$as_me: failed program was:" >&5
4538 sed 's/^/| /' conftest.$ac_ext >&5
4539
4540 fi
4541 rm -f conftest.$ac_objext conftest.$ac_ext
4542   cat >conftest.$ac_ext <<_ACEOF
4543 #line $LINENO "configure"
4544 /* confdefs.h.  */
4545 _ACEOF
4546 cat confdefs.h >>conftest.$ac_ext
4547 cat >>conftest.$ac_ext <<_ACEOF
4548 /* end confdefs.h.  */
4549 #define _LARGE_FILES 1
4550 #include <sys/types.h>
4551  /* Check that off_t can represent 2**63 - 1 correctly.
4552     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4553     since some C++ compilers masquerading as C compilers
4554     incorrectly reject 9223372036854775807.  */
4555 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4556   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4557                        && LARGE_OFF_T % 2147483647 == 1)
4558                       ? 1 : -1];
4559 int
4560 main ()
4561 {
4562
4563   ;
4564   return 0;
4565 }
4566 _ACEOF
4567 rm -f conftest.$ac_objext
4568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4569   (eval $ac_compile) 2>&5
4570   ac_status=$?
4571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4572   (exit $ac_status); } &&
4573          { ac_try='test -s conftest.$ac_objext'
4574   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4575   (eval $ac_try) 2>&5
4576   ac_status=$?
4577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578   (exit $ac_status); }; }; then
4579   ac_cv_sys_large_files=1; break
4580 else
4581   echo "$as_me: failed program was:" >&5
4582 sed 's/^/| /' conftest.$ac_ext >&5
4583
4584 fi
4585 rm -f conftest.$ac_objext conftest.$ac_ext
4586   break
4587 done
4588 fi
4589 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4590 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4591 if test "$ac_cv_sys_large_files" != no; then
4592
4593 cat >>confdefs.h <<_ACEOF
4594 #define _LARGE_FILES $ac_cv_sys_large_files
4595 _ACEOF
4596
4597 fi
4598 rm -f conftest*
4599 fi
4600
4601
4602 # Extract the first word of "dbx", so it can be a program name with args.
4603 set dummy dbx; ac_word=$2
4604 echo "$as_me:$LINENO: checking for $ac_word" >&5
4605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4606 if test "${ac_cv_path_DBX+set}" = set; then
4607   echo $ECHO_N "(cached) $ECHO_C" >&6
4608 else
4609   case $DBX in
4610   [\\/]* | ?:[\\/]*)
4611   ac_cv_path_DBX="$DBX" # Let the user override the test with a path.
4612   ;;
4613   *)
4614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH
4616 do
4617   IFS=$as_save_IFS
4618   test -z "$as_dir" && as_dir=.
4619   for ac_exec_ext in '' $ac_executable_extensions; do
4620   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4621     ac_cv_path_DBX="$as_dir/$ac_word$ac_exec_ext"
4622     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4623     break 2
4624   fi
4625 done
4626 done
4627
4628   test -z "$ac_cv_path_DBX" && ac_cv_path_DBX="no"
4629   ;;
4630 esac
4631 fi
4632 DBX=$ac_cv_path_DBX
4633
4634 if test -n "$DBX"; then
4635   echo "$as_me:$LINENO: result: $DBX" >&5
4636 echo "${ECHO_T}$DBX" >&6
4637 else
4638   echo "$as_me:$LINENO: result: no" >&5
4639 echo "${ECHO_T}no" >&6
4640 fi
4641
4642 # Extract the first word of "gdb", so it can be a program name with args.
4643 set dummy gdb; ac_word=$2
4644 echo "$as_me:$LINENO: checking for $ac_word" >&5
4645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4646 if test "${ac_cv_path_GDB+set}" = set; then
4647   echo $ECHO_N "(cached) $ECHO_C" >&6
4648 else
4649   case $GDB in
4650   [\\/]* | ?:[\\/]*)
4651   ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
4652   ;;
4653   *)
4654   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 for as_dir in $PATH
4656 do
4657   IFS=$as_save_IFS
4658   test -z "$as_dir" && as_dir=.
4659   for ac_exec_ext in '' $ac_executable_extensions; do
4660   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4661     ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
4662     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4663     break 2
4664   fi
4665 done
4666 done
4667
4668   test -z "$ac_cv_path_GDB" && ac_cv_path_GDB="no"
4669   ;;
4670 esac
4671 fi
4672 GDB=$ac_cv_path_GDB
4673
4674 if test -n "$GDB"; then
4675   echo "$as_me:$LINENO: result: $GDB" >&5
4676 echo "${ECHO_T}$GDB" >&6
4677 else
4678   echo "$as_me:$LINENO: result: no" >&5
4679 echo "${ECHO_T}no" >&6
4680 fi
4681
4682 # Extract the first word of "sdb", so it can be a program name with args.
4683 set dummy sdb; ac_word=$2
4684 echo "$as_me:$LINENO: checking for $ac_word" >&5
4685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4686 if test "${ac_cv_path_SDB+set}" = set; then
4687   echo $ECHO_N "(cached) $ECHO_C" >&6
4688 else
4689   case $SDB in
4690   [\\/]* | ?:[\\/]*)
4691   ac_cv_path_SDB="$SDB" # Let the user override the test with a path.
4692   ;;
4693   *)
4694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4696 do
4697   IFS=$as_save_IFS
4698   test -z "$as_dir" && as_dir=.
4699   for ac_exec_ext in '' $ac_executable_extensions; do
4700   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4701     ac_cv_path_SDB="$as_dir/$ac_word$ac_exec_ext"
4702     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4703     break 2
4704   fi
4705 done
4706 done
4707
4708   test -z "$ac_cv_path_SDB" && ac_cv_path_SDB="no"
4709   ;;
4710 esac
4711 fi
4712 SDB=$ac_cv_path_SDB
4713
4714 if test -n "$SDB"; then
4715   echo "$as_me:$LINENO: result: $SDB" >&5
4716 echo "${ECHO_T}$SDB" >&6
4717 else
4718   echo "$as_me:$LINENO: result: no" >&5
4719 echo "${ECHO_T}no" >&6
4720 fi
4721
4722
4723 if test $GDB != no ; then
4724         DEBUGGER=$GDB
4725 elif test $DBX != no ; then
4726         DEBUGGER=$DBX
4727 elif test $SDB != no ; then
4728         DEBUGGER=$SDB
4729 else
4730         DEBUGGER=no
4731 fi
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757 for ac_header in inttypes.h
4758 do
4759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4761   echo "$as_me:$LINENO: checking for $ac_header" >&5
4762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4763 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4764   echo $ECHO_N "(cached) $ECHO_C" >&6
4765 fi
4766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4767 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4768 else
4769   # Is the header compilable?
4770 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4772 cat >conftest.$ac_ext <<_ACEOF
4773 #line $LINENO "configure"
4774 /* confdefs.h.  */
4775 _ACEOF
4776 cat confdefs.h >>conftest.$ac_ext
4777 cat >>conftest.$ac_ext <<_ACEOF
4778 /* end confdefs.h.  */
4779 $ac_includes_default
4780 #include <$ac_header>
4781 _ACEOF
4782 rm -f conftest.$ac_objext
4783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4784   (eval $ac_compile) 2>&5
4785   ac_status=$?
4786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787   (exit $ac_status); } &&
4788          { ac_try='test -s conftest.$ac_objext'
4789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790   (eval $ac_try) 2>&5
4791   ac_status=$?
4792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793   (exit $ac_status); }; }; then
4794   ac_header_compiler=yes
4795 else
4796   echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4798
4799 ac_header_compiler=no
4800 fi
4801 rm -f conftest.$ac_objext conftest.$ac_ext
4802 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4803 echo "${ECHO_T}$ac_header_compiler" >&6
4804
4805 # Is the header present?
4806 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4807 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4808 cat >conftest.$ac_ext <<_ACEOF
4809 #line $LINENO "configure"
4810 /* confdefs.h.  */
4811 _ACEOF
4812 cat confdefs.h >>conftest.$ac_ext
4813 cat >>conftest.$ac_ext <<_ACEOF
4814 /* end confdefs.h.  */
4815 #include <$ac_header>
4816 _ACEOF
4817 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4818   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4819   ac_status=$?
4820   grep -v '^ *+' conftest.er1 >conftest.err
4821   rm -f conftest.er1
4822   cat conftest.err >&5
4823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824   (exit $ac_status); } >/dev/null; then
4825   if test -s conftest.err; then
4826     ac_cpp_err=$ac_c_preproc_warn_flag
4827   else
4828     ac_cpp_err=
4829   fi
4830 else
4831   ac_cpp_err=yes
4832 fi
4833 if test -z "$ac_cpp_err"; then
4834   ac_header_preproc=yes
4835 else
4836   echo "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.$ac_ext >&5
4838
4839   ac_header_preproc=no
4840 fi
4841 rm -f conftest.err conftest.$ac_ext
4842 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4843 echo "${ECHO_T}$ac_header_preproc" >&6
4844
4845 # So?  What about this header?
4846 case $ac_header_compiler:$ac_header_preproc in
4847   yes:no )
4848     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4850     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4852     (
4853       cat <<\_ASBOX
4854 ## ------------------------------------ ##
4855 ## Report this to bug-autoconf@gnu.org. ##
4856 ## ------------------------------------ ##
4857 _ASBOX
4858     ) |
4859       sed "s/^/$as_me: WARNING:     /" >&2
4860     ;;
4861   no:yes )
4862     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4863 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4864     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4865 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4866     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4868     (
4869       cat <<\_ASBOX
4870 ## ------------------------------------ ##
4871 ## Report this to bug-autoconf@gnu.org. ##
4872 ## ------------------------------------ ##
4873 _ASBOX
4874     ) |
4875       sed "s/^/$as_me: WARNING:     /" >&2
4876     ;;
4877 esac
4878 echo "$as_me:$LINENO: checking for $ac_header" >&5
4879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4880 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4881   echo $ECHO_N "(cached) $ECHO_C" >&6
4882 else
4883   eval "$as_ac_Header=$ac_header_preproc"
4884 fi
4885 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4886 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4887
4888 fi
4889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4890   cat >>confdefs.h <<_ACEOF
4891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4892 _ACEOF
4893
4894 fi
4895
4896 done
4897
4898 echo "$as_me:$LINENO: checking for uint32_t" >&5
4899 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
4900 if test "${ac_cv_type_uint32_t+set}" = set; then
4901   echo $ECHO_N "(cached) $ECHO_C" >&6
4902 else
4903   cat >conftest.$ac_ext <<_ACEOF
4904 #line $LINENO "configure"
4905 /* confdefs.h.  */
4906 _ACEOF
4907 cat confdefs.h >>conftest.$ac_ext
4908 cat >>conftest.$ac_ext <<_ACEOF
4909 /* end confdefs.h.  */
4910 $ac_includes_default
4911 int
4912 main ()
4913 {
4914 if ((uint32_t *) 0)
4915   return 0;
4916 if (sizeof (uint32_t))
4917   return 0;
4918   ;
4919   return 0;
4920 }
4921 _ACEOF
4922 rm -f conftest.$ac_objext
4923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4924   (eval $ac_compile) 2>&5
4925   ac_status=$?
4926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4927   (exit $ac_status); } &&
4928          { ac_try='test -s conftest.$ac_objext'
4929   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4930   (eval $ac_try) 2>&5
4931   ac_status=$?
4932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933   (exit $ac_status); }; }; then
4934   ac_cv_type_uint32_t=yes
4935 else
4936   echo "$as_me: failed program was:" >&5
4937 sed 's/^/| /' conftest.$ac_ext >&5
4938
4939 ac_cv_type_uint32_t=no
4940 fi
4941 rm -f conftest.$ac_objext conftest.$ac_ext
4942 fi
4943 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
4944 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
4945 if test $ac_cv_type_uint32_t = yes; then
4946
4947 cat >>confdefs.h <<\_ACEOF
4948 #define HAVE_C99_INTTYPES 1
4949 _ACEOF
4950
4951 else
4952   echo "$as_me:$LINENO: checking for short" >&5
4953 echo $ECHO_N "checking for short... $ECHO_C" >&6
4954 if test "${ac_cv_type_short+set}" = set; then
4955   echo $ECHO_N "(cached) $ECHO_C" >&6
4956 else
4957   cat >conftest.$ac_ext <<_ACEOF
4958 #line $LINENO "configure"
4959 /* confdefs.h.  */
4960 _ACEOF
4961 cat confdefs.h >>conftest.$ac_ext
4962 cat >>conftest.$ac_ext <<_ACEOF
4963 /* end confdefs.h.  */
4964 $ac_includes_default
4965 int
4966 main ()
4967 {
4968 if ((short *) 0)
4969   return 0;
4970 if (sizeof (short))
4971   return 0;
4972   ;
4973   return 0;
4974 }
4975 _ACEOF
4976 rm -f conftest.$ac_objext
4977 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4978   (eval $ac_compile) 2>&5
4979   ac_status=$?
4980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981   (exit $ac_status); } &&
4982          { ac_try='test -s conftest.$ac_objext'
4983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984   (eval $ac_try) 2>&5
4985   ac_status=$?
4986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987   (exit $ac_status); }; }; then
4988   ac_cv_type_short=yes
4989 else
4990   echo "$as_me: failed program was:" >&5
4991 sed 's/^/| /' conftest.$ac_ext >&5
4992
4993 ac_cv_type_short=no
4994 fi
4995 rm -f conftest.$ac_objext conftest.$ac_ext
4996 fi
4997 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4998 echo "${ECHO_T}$ac_cv_type_short" >&6
4999
5000 echo "$as_me:$LINENO: checking size of short" >&5
5001 echo $ECHO_N "checking size of short... $ECHO_C" >&6
5002 if test "${ac_cv_sizeof_short+set}" = set; then
5003   echo $ECHO_N "(cached) $ECHO_C" >&6
5004 else
5005   if test "$ac_cv_type_short" = yes; then
5006   # The cast to unsigned long works around a bug in the HP C Compiler
5007   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5008   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5009   # This bug is HP SR number 8606223364.
5010   if test "$cross_compiling" = yes; then
5011   # Depending upon the size, compute the lo and hi bounds.
5012 cat >conftest.$ac_ext <<_ACEOF
5013 #line $LINENO "configure"
5014 /* confdefs.h.  */
5015 _ACEOF
5016 cat confdefs.h >>conftest.$ac_ext
5017 cat >>conftest.$ac_ext <<_ACEOF
5018 /* end confdefs.h.  */
5019 $ac_includes_default
5020 int
5021 main ()
5022 {
5023 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
5024 test_array [0] = 0
5025
5026   ;
5027   return 0;
5028 }
5029 _ACEOF
5030 rm -f conftest.$ac_objext
5031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5032   (eval $ac_compile) 2>&5
5033   ac_status=$?
5034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035   (exit $ac_status); } &&
5036          { ac_try='test -s conftest.$ac_objext'
5037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5038   (eval $ac_try) 2>&5
5039   ac_status=$?
5040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5041   (exit $ac_status); }; }; then
5042   ac_lo=0 ac_mid=0
5043   while :; do
5044     cat >conftest.$ac_ext <<_ACEOF
5045 #line $LINENO "configure"
5046 /* confdefs.h.  */
5047 _ACEOF
5048 cat confdefs.h >>conftest.$ac_ext
5049 cat >>conftest.$ac_ext <<_ACEOF
5050 /* end confdefs.h.  */
5051 $ac_includes_default
5052 int
5053 main ()
5054 {
5055 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5056 test_array [0] = 0
5057
5058   ;
5059   return 0;
5060 }
5061 _ACEOF
5062 rm -f conftest.$ac_objext
5063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5064   (eval $ac_compile) 2>&5
5065   ac_status=$?
5066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067   (exit $ac_status); } &&
5068          { ac_try='test -s conftest.$ac_objext'
5069   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5070   (eval $ac_try) 2>&5
5071   ac_status=$?
5072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073   (exit $ac_status); }; }; then
5074   ac_hi=$ac_mid; break
5075 else
5076   echo "$as_me: failed program was:" >&5
5077 sed 's/^/| /' conftest.$ac_ext >&5
5078
5079 ac_lo=`expr $ac_mid + 1`
5080                     if test $ac_lo -le $ac_mid; then
5081                       ac_lo= ac_hi=
5082                       break
5083                     fi
5084                     ac_mid=`expr 2 '*' $ac_mid + 1`
5085 fi
5086 rm -f conftest.$ac_objext conftest.$ac_ext
5087   done
5088 else
5089   echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5091
5092 cat >conftest.$ac_ext <<_ACEOF
5093 #line $LINENO "configure"
5094 /* confdefs.h.  */
5095 _ACEOF
5096 cat confdefs.h >>conftest.$ac_ext
5097 cat >>conftest.$ac_ext <<_ACEOF
5098 /* end confdefs.h.  */
5099 $ac_includes_default
5100 int
5101 main ()
5102 {
5103 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5104 test_array [0] = 0
5105
5106   ;
5107   return 0;
5108 }
5109 _ACEOF
5110 rm -f conftest.$ac_objext
5111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5112   (eval $ac_compile) 2>&5
5113   ac_status=$?
5114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115   (exit $ac_status); } &&
5116          { ac_try='test -s conftest.$ac_objext'
5117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5118   (eval $ac_try) 2>&5
5119   ac_status=$?
5120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121   (exit $ac_status); }; }; then
5122   ac_hi=-1 ac_mid=-1
5123   while :; do
5124     cat >conftest.$ac_ext <<_ACEOF
5125 #line $LINENO "configure"
5126 /* confdefs.h.  */
5127 _ACEOF
5128 cat confdefs.h >>conftest.$ac_ext
5129 cat >>conftest.$ac_ext <<_ACEOF
5130 /* end confdefs.h.  */
5131 $ac_includes_default
5132 int
5133 main ()
5134 {
5135 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5136 test_array [0] = 0
5137
5138   ;
5139   return 0;
5140 }
5141 _ACEOF
5142 rm -f conftest.$ac_objext
5143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5144   (eval $ac_compile) 2>&5
5145   ac_status=$?
5146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147   (exit $ac_status); } &&
5148          { ac_try='test -s conftest.$ac_objext'
5149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5150   (eval $ac_try) 2>&5
5151   ac_status=$?
5152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153   (exit $ac_status); }; }; then
5154   ac_lo=$ac_mid; break
5155 else
5156   echo "$as_me: failed program was:" >&5
5157 sed 's/^/| /' conftest.$ac_ext >&5
5158
5159 ac_hi=`expr '(' $ac_mid ')' - 1`
5160                        if test $ac_mid -le $ac_hi; then
5161                          ac_lo= ac_hi=
5162                          break
5163                        fi
5164                        ac_mid=`expr 2 '*' $ac_mid`
5165 fi
5166 rm -f conftest.$ac_objext conftest.$ac_ext
5167   done
5168 else
5169   echo "$as_me: failed program was:" >&5
5170 sed 's/^/| /' conftest.$ac_ext >&5
5171
5172 ac_lo= ac_hi=
5173 fi
5174 rm -f conftest.$ac_objext conftest.$ac_ext
5175 fi
5176 rm -f conftest.$ac_objext conftest.$ac_ext
5177 # Binary search between lo and hi bounds.
5178 while test "x$ac_lo" != "x$ac_hi"; do
5179   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5180   cat >conftest.$ac_ext <<_ACEOF
5181 #line $LINENO "configure"
5182 /* confdefs.h.  */
5183 _ACEOF
5184 cat confdefs.h >>conftest.$ac_ext
5185 cat >>conftest.$ac_ext <<_ACEOF
5186 /* end confdefs.h.  */
5187 $ac_includes_default
5188 int
5189 main ()
5190 {
5191 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5192 test_array [0] = 0
5193
5194   ;
5195   return 0;
5196 }
5197 _ACEOF
5198 rm -f conftest.$ac_objext
5199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5200   (eval $ac_compile) 2>&5
5201   ac_status=$?
5202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203   (exit $ac_status); } &&
5204          { ac_try='test -s conftest.$ac_objext'
5205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5206   (eval $ac_try) 2>&5
5207   ac_status=$?
5208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209   (exit $ac_status); }; }; then
5210   ac_hi=$ac_mid
5211 else
5212   echo "$as_me: failed program was:" >&5
5213 sed 's/^/| /' conftest.$ac_ext >&5
5214
5215 ac_lo=`expr '(' $ac_mid ')' + 1`
5216 fi
5217 rm -f conftest.$ac_objext conftest.$ac_ext
5218 done
5219 case $ac_lo in
5220 ?*) ac_cv_sizeof_short=$ac_lo;;
5221 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5222 See \`config.log' for more details." >&5
5223 echo "$as_me: error: cannot compute sizeof (short), 77
5224 See \`config.log' for more details." >&2;}
5225    { (exit 1); exit 1; }; } ;;
5226 esac
5227 else
5228   if test "$cross_compiling" = yes; then
5229   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5230 See \`config.log' for more details." >&5
5231 echo "$as_me: error: cannot run test program while cross compiling
5232 See \`config.log' for more details." >&2;}
5233    { (exit 1); exit 1; }; }
5234 else
5235   cat >conftest.$ac_ext <<_ACEOF
5236 #line $LINENO "configure"
5237 /* confdefs.h.  */
5238 _ACEOF
5239 cat confdefs.h >>conftest.$ac_ext
5240 cat >>conftest.$ac_ext <<_ACEOF
5241 /* end confdefs.h.  */
5242 $ac_includes_default
5243 long longval () { return (long) (sizeof (short)); }
5244 unsigned long ulongval () { return (long) (sizeof (short)); }
5245 #include <stdio.h>
5246 #include <stdlib.h>
5247 int
5248 main ()
5249 {
5250
5251   FILE *f = fopen ("conftest.val", "w");
5252   if (! f)
5253     exit (1);
5254   if (((long) (sizeof (short))) < 0)
5255     {
5256       long i = longval ();
5257       if (i != ((long) (sizeof (short))))
5258         exit (1);
5259       fprintf (f, "%ld\n", i);
5260     }
5261   else
5262     {
5263       unsigned long i = ulongval ();
5264       if (i != ((long) (sizeof (short))))
5265         exit (1);
5266       fprintf (f, "%lu\n", i);
5267     }
5268   exit (ferror (f) || fclose (f) != 0);
5269
5270   ;
5271   return 0;
5272 }
5273 _ACEOF
5274 rm -f conftest$ac_exeext
5275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5276   (eval $ac_link) 2>&5
5277   ac_status=$?
5278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5280   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5281   (eval $ac_try) 2>&5
5282   ac_status=$?
5283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284   (exit $ac_status); }; }; then
5285   ac_cv_sizeof_short=`cat conftest.val`
5286 else
5287   echo "$as_me: program exited with status $ac_status" >&5
5288 echo "$as_me: failed program was:" >&5
5289 sed 's/^/| /' conftest.$ac_ext >&5
5290
5291 ( exit $ac_status )
5292 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5293 See \`config.log' for more details." >&5
5294 echo "$as_me: error: cannot compute sizeof (short), 77
5295 See \`config.log' for more details." >&2;}
5296    { (exit 1); exit 1; }; }
5297 fi
5298 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5299 fi
5300 fi
5301 rm -f conftest.val
5302 else
5303   ac_cv_sizeof_short=0
5304 fi
5305 fi
5306 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5307 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5308 cat >>confdefs.h <<_ACEOF
5309 #define SIZEOF_SHORT $ac_cv_sizeof_short
5310 _ACEOF
5311
5312
5313    echo "$as_me:$LINENO: checking for int" >&5
5314 echo $ECHO_N "checking for int... $ECHO_C" >&6
5315 if test "${ac_cv_type_int+set}" = set; then
5316   echo $ECHO_N "(cached) $ECHO_C" >&6
5317 else
5318   cat >conftest.$ac_ext <<_ACEOF
5319 #line $LINENO "configure"
5320 /* confdefs.h.  */
5321 _ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h.  */
5325 $ac_includes_default
5326 int
5327 main ()
5328 {
5329 if ((int *) 0)
5330   return 0;
5331 if (sizeof (int))
5332   return 0;
5333   ;
5334   return 0;
5335 }
5336 _ACEOF
5337 rm -f conftest.$ac_objext
5338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5339   (eval $ac_compile) 2>&5
5340   ac_status=$?
5341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342   (exit $ac_status); } &&
5343          { ac_try='test -s conftest.$ac_objext'
5344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345   (eval $ac_try) 2>&5
5346   ac_status=$?
5347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348   (exit $ac_status); }; }; then
5349   ac_cv_type_int=yes
5350 else
5351   echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5353
5354 ac_cv_type_int=no
5355 fi
5356 rm -f conftest.$ac_objext conftest.$ac_ext
5357 fi
5358 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5359 echo "${ECHO_T}$ac_cv_type_int" >&6
5360
5361 echo "$as_me:$LINENO: checking size of int" >&5
5362 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5363 if test "${ac_cv_sizeof_int+set}" = set; then
5364   echo $ECHO_N "(cached) $ECHO_C" >&6
5365 else
5366   if test "$ac_cv_type_int" = yes; then
5367   # The cast to unsigned long works around a bug in the HP C Compiler
5368   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5369   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5370   # This bug is HP SR number 8606223364.
5371   if test "$cross_compiling" = yes; then
5372   # Depending upon the size, compute the lo and hi bounds.
5373 cat >conftest.$ac_ext <<_ACEOF
5374 #line $LINENO "configure"
5375 /* confdefs.h.  */
5376 _ACEOF
5377 cat confdefs.h >>conftest.$ac_ext
5378 cat >>conftest.$ac_ext <<_ACEOF
5379 /* end confdefs.h.  */
5380 $ac_includes_default
5381 int
5382 main ()
5383 {
5384 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5385 test_array [0] = 0
5386
5387   ;
5388   return 0;
5389 }
5390 _ACEOF
5391 rm -f conftest.$ac_objext
5392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5393   (eval $ac_compile) 2>&5
5394   ac_status=$?
5395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396   (exit $ac_status); } &&
5397          { ac_try='test -s conftest.$ac_objext'
5398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5399   (eval $ac_try) 2>&5
5400   ac_status=$?
5401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402   (exit $ac_status); }; }; then
5403   ac_lo=0 ac_mid=0
5404   while :; do
5405     cat >conftest.$ac_ext <<_ACEOF
5406 #line $LINENO "configure"
5407 /* confdefs.h.  */
5408 _ACEOF
5409 cat confdefs.h >>conftest.$ac_ext
5410 cat >>conftest.$ac_ext <<_ACEOF
5411 /* end confdefs.h.  */
5412 $ac_includes_default
5413 int
5414 main ()
5415 {
5416 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5417 test_array [0] = 0
5418
5419   ;
5420   return 0;
5421 }
5422 _ACEOF
5423 rm -f conftest.$ac_objext
5424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5425   (eval $ac_compile) 2>&5
5426   ac_status=$?
5427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428   (exit $ac_status); } &&
5429          { ac_try='test -s conftest.$ac_objext'
5430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5431   (eval $ac_try) 2>&5
5432   ac_status=$?
5433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434   (exit $ac_status); }; }; then
5435   ac_hi=$ac_mid; break
5436 else
5437   echo "$as_me: failed program was:" >&5
5438 sed 's/^/| /' conftest.$ac_ext >&5
5439
5440 ac_lo=`expr $ac_mid + 1`
5441                     if test $ac_lo -le $ac_mid; then
5442                       ac_lo= ac_hi=
5443                       break
5444                     fi
5445                     ac_mid=`expr 2 '*' $ac_mid + 1`
5446 fi
5447 rm -f conftest.$ac_objext conftest.$ac_ext
5448   done
5449 else
5450   echo "$as_me: failed program was:" >&5
5451 sed 's/^/| /' conftest.$ac_ext >&5
5452
5453 cat >conftest.$ac_ext <<_ACEOF
5454 #line $LINENO "configure"
5455 /* confdefs.h.  */
5456 _ACEOF
5457 cat confdefs.h >>conftest.$ac_ext
5458 cat >>conftest.$ac_ext <<_ACEOF
5459 /* end confdefs.h.  */
5460 $ac_includes_default
5461 int
5462 main ()
5463 {
5464 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5465 test_array [0] = 0
5466
5467   ;
5468   return 0;
5469 }
5470 _ACEOF
5471 rm -f conftest.$ac_objext
5472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5473   (eval $ac_compile) 2>&5
5474   ac_status=$?
5475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476   (exit $ac_status); } &&
5477          { ac_try='test -s conftest.$ac_objext'
5478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5479   (eval $ac_try) 2>&5
5480   ac_status=$?
5481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482   (exit $ac_status); }; }; then
5483   ac_hi=-1 ac_mid=-1
5484   while :; do
5485     cat >conftest.$ac_ext <<_ACEOF
5486 #line $LINENO "configure"
5487 /* confdefs.h.  */
5488 _ACEOF
5489 cat confdefs.h >>conftest.$ac_ext
5490 cat >>conftest.$ac_ext <<_ACEOF
5491 /* end confdefs.h.  */
5492 $ac_includes_default
5493 int
5494 main ()
5495 {
5496 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5497 test_array [0] = 0
5498
5499   ;
5500   return 0;
5501 }
5502 _ACEOF
5503 rm -f conftest.$ac_objext
5504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5505   (eval $ac_compile) 2>&5
5506   ac_status=$?
5507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508   (exit $ac_status); } &&
5509          { ac_try='test -s conftest.$ac_objext'
5510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5511   (eval $ac_try) 2>&5
5512   ac_status=$?
5513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5514   (exit $ac_status); }; }; then
5515   ac_lo=$ac_mid; break
5516 else
5517   echo "$as_me: failed program was:" >&5
5518 sed 's/^/| /' conftest.$ac_ext >&5
5519
5520 ac_hi=`expr '(' $ac_mid ')' - 1`
5521                        if test $ac_mid -le $ac_hi; then
5522                          ac_lo= ac_hi=
5523                          break
5524                        fi
5525                        ac_mid=`expr 2 '*' $ac_mid`
5526 fi
5527 rm -f conftest.$ac_objext conftest.$ac_ext
5528   done
5529 else
5530   echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.$ac_ext >&5
5532
5533 ac_lo= ac_hi=
5534 fi
5535 rm -f conftest.$ac_objext conftest.$ac_ext
5536 fi
5537 rm -f conftest.$ac_objext conftest.$ac_ext
5538 # Binary search between lo and hi bounds.
5539 while test "x$ac_lo" != "x$ac_hi"; do
5540   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5541   cat >conftest.$ac_ext <<_ACEOF
5542 #line $LINENO "configure"
5543 /* confdefs.h.  */
5544 _ACEOF
5545 cat confdefs.h >>conftest.$ac_ext
5546 cat >>conftest.$ac_ext <<_ACEOF
5547 /* end confdefs.h.  */
5548 $ac_includes_default
5549 int
5550 main ()
5551 {
5552 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5553 test_array [0] = 0
5554
5555   ;
5556   return 0;
5557 }
5558 _ACEOF
5559 rm -f conftest.$ac_objext
5560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5561   (eval $ac_compile) 2>&5
5562   ac_status=$?
5563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5564   (exit $ac_status); } &&
5565          { ac_try='test -s conftest.$ac_objext'
5566   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5567   (eval $ac_try) 2>&5
5568   ac_status=$?
5569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570   (exit $ac_status); }; }; then
5571   ac_hi=$ac_mid
5572 else
5573   echo "$as_me: failed program was:" >&5
5574 sed 's/^/| /' conftest.$ac_ext >&5
5575
5576 ac_lo=`expr '(' $ac_mid ')' + 1`
5577 fi
5578 rm -f conftest.$ac_objext conftest.$ac_ext
5579 done
5580 case $ac_lo in
5581 ?*) ac_cv_sizeof_int=$ac_lo;;
5582 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5583 See \`config.log' for more details." >&5
5584 echo "$as_me: error: cannot compute sizeof (int), 77
5585 See \`config.log' for more details." >&2;}
5586    { (exit 1); exit 1; }; } ;;
5587 esac
5588 else
5589   if test "$cross_compiling" = yes; then
5590   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5591 See \`config.log' for more details." >&5
5592 echo "$as_me: error: cannot run test program while cross compiling
5593 See \`config.log' for more details." >&2;}
5594    { (exit 1); exit 1; }; }
5595 else
5596   cat >conftest.$ac_ext <<_ACEOF
5597 #line $LINENO "configure"
5598 /* confdefs.h.  */
5599 _ACEOF
5600 cat confdefs.h >>conftest.$ac_ext
5601 cat >>conftest.$ac_ext <<_ACEOF
5602 /* end confdefs.h.  */
5603 $ac_includes_default
5604 long longval () { return (long) (sizeof (int)); }
5605 unsigned long ulongval () { return (long) (sizeof (int)); }
5606 #include <stdio.h>
5607 #include <stdlib.h>
5608 int
5609 main ()
5610 {
5611
5612   FILE *f = fopen ("conftest.val", "w");
5613   if (! f)
5614     exit (1);
5615   if (((long) (sizeof (int))) < 0)
5616     {
5617       long i = longval ();
5618       if (i != ((long) (sizeof (int))))
5619         exit (1);
5620       fprintf (f, "%ld\n", i);
5621     }
5622   else
5623     {
5624       unsigned long i = ulongval ();
5625       if (i != ((long) (sizeof (int))))
5626         exit (1);
5627       fprintf (f, "%lu\n", i);
5628     }
5629   exit (ferror (f) || fclose (f) != 0);
5630
5631   ;
5632   return 0;
5633 }
5634 _ACEOF
5635 rm -f conftest$ac_exeext
5636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5637   (eval $ac_link) 2>&5
5638   ac_status=$?
5639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5641   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642   (eval $ac_try) 2>&5
5643   ac_status=$?
5644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645   (exit $ac_status); }; }; then
5646   ac_cv_sizeof_int=`cat conftest.val`
5647 else
5648   echo "$as_me: program exited with status $ac_status" >&5
5649 echo "$as_me: failed program was:" >&5
5650 sed 's/^/| /' conftest.$ac_ext >&5
5651
5652 ( exit $ac_status )
5653 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5654 See \`config.log' for more details." >&5
5655 echo "$as_me: error: cannot compute sizeof (int), 77
5656 See \`config.log' for more details." >&2;}
5657    { (exit 1); exit 1; }; }
5658 fi
5659 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5660 fi
5661 fi
5662 rm -f conftest.val
5663 else
5664   ac_cv_sizeof_int=0
5665 fi
5666 fi
5667 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5668 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5669 cat >>confdefs.h <<_ACEOF
5670 #define SIZEOF_INT $ac_cv_sizeof_int
5671 _ACEOF
5672
5673
5674    echo "$as_me:$LINENO: checking for long" >&5
5675 echo $ECHO_N "checking for long... $ECHO_C" >&6
5676 if test "${ac_cv_type_long+set}" = set; then
5677   echo $ECHO_N "(cached) $ECHO_C" >&6
5678 else
5679   cat >conftest.$ac_ext <<_ACEOF
5680 #line $LINENO "configure"
5681 /* confdefs.h.  */
5682 _ACEOF
5683 cat confdefs.h >>conftest.$ac_ext
5684 cat >>conftest.$ac_ext <<_ACEOF
5685 /* end confdefs.h.  */
5686 $ac_includes_default
5687 int
5688 main ()
5689 {
5690 if ((long *) 0)
5691   return 0;
5692 if (sizeof (long))
5693   return 0;
5694   ;
5695   return 0;
5696 }
5697 _ACEOF
5698 rm -f conftest.$ac_objext
5699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5700   (eval $ac_compile) 2>&5
5701   ac_status=$?
5702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703   (exit $ac_status); } &&
5704          { ac_try='test -s conftest.$ac_objext'
5705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5706   (eval $ac_try) 2>&5
5707   ac_status=$?
5708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709   (exit $ac_status); }; }; then
5710   ac_cv_type_long=yes
5711 else
5712   echo "$as_me: failed program was:" >&5
5713 sed 's/^/| /' conftest.$ac_ext >&5
5714
5715 ac_cv_type_long=no
5716 fi
5717 rm -f conftest.$ac_objext conftest.$ac_ext
5718 fi
5719 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5720 echo "${ECHO_T}$ac_cv_type_long" >&6
5721
5722 echo "$as_me:$LINENO: checking size of long" >&5
5723 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5724 if test "${ac_cv_sizeof_long+set}" = set; then
5725   echo $ECHO_N "(cached) $ECHO_C" >&6
5726 else
5727   if test "$ac_cv_type_long" = yes; then
5728   # The cast to unsigned long works around a bug in the HP C Compiler
5729   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5730   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5731   # This bug is HP SR number 8606223364.
5732   if test "$cross_compiling" = yes; then
5733   # Depending upon the size, compute the lo and hi bounds.
5734 cat >conftest.$ac_ext <<_ACEOF
5735 #line $LINENO "configure"
5736 /* confdefs.h.  */
5737 _ACEOF
5738 cat confdefs.h >>conftest.$ac_ext
5739 cat >>conftest.$ac_ext <<_ACEOF
5740 /* end confdefs.h.  */
5741 $ac_includes_default
5742 int
5743 main ()
5744 {
5745 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5746 test_array [0] = 0
5747
5748   ;
5749   return 0;
5750 }
5751 _ACEOF
5752 rm -f conftest.$ac_objext
5753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5754   (eval $ac_compile) 2>&5
5755   ac_status=$?
5756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757   (exit $ac_status); } &&
5758          { ac_try='test -s conftest.$ac_objext'
5759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5760   (eval $ac_try) 2>&5
5761   ac_status=$?
5762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763   (exit $ac_status); }; }; then
5764   ac_lo=0 ac_mid=0
5765   while :; do
5766     cat >conftest.$ac_ext <<_ACEOF
5767 #line $LINENO "configure"
5768 /* confdefs.h.  */
5769 _ACEOF
5770 cat confdefs.h >>conftest.$ac_ext
5771 cat >>conftest.$ac_ext <<_ACEOF
5772 /* end confdefs.h.  */
5773 $ac_includes_default
5774 int
5775 main ()
5776 {
5777 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5778 test_array [0] = 0
5779
5780   ;
5781   return 0;
5782 }
5783 _ACEOF
5784 rm -f conftest.$ac_objext
5785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5786   (eval $ac_compile) 2>&5
5787   ac_status=$?
5788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789   (exit $ac_status); } &&
5790          { ac_try='test -s conftest.$ac_objext'
5791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5792   (eval $ac_try) 2>&5
5793   ac_status=$?
5794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795   (exit $ac_status); }; }; then
5796   ac_hi=$ac_mid; break
5797 else
5798   echo "$as_me: failed program was:" >&5
5799 sed 's/^/| /' conftest.$ac_ext >&5
5800
5801 ac_lo=`expr $ac_mid + 1`
5802                     if test $ac_lo -le $ac_mid; then
5803                       ac_lo= ac_hi=
5804                       break
5805                     fi
5806                     ac_mid=`expr 2 '*' $ac_mid + 1`
5807 fi
5808 rm -f conftest.$ac_objext conftest.$ac_ext
5809   done
5810 else
5811   echo "$as_me: failed program was:" >&5
5812 sed 's/^/| /' conftest.$ac_ext >&5
5813
5814 cat >conftest.$ac_ext <<_ACEOF
5815 #line $LINENO "configure"
5816 /* confdefs.h.  */
5817 _ACEOF
5818 cat confdefs.h >>conftest.$ac_ext
5819 cat >>conftest.$ac_ext <<_ACEOF
5820 /* end confdefs.h.  */
5821 $ac_includes_default
5822 int
5823 main ()
5824 {
5825 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5826 test_array [0] = 0
5827
5828   ;
5829   return 0;
5830 }
5831 _ACEOF
5832 rm -f conftest.$ac_objext
5833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5834   (eval $ac_compile) 2>&5
5835   ac_status=$?
5836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837   (exit $ac_status); } &&
5838          { ac_try='test -s conftest.$ac_objext'
5839   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5840   (eval $ac_try) 2>&5
5841   ac_status=$?
5842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5843   (exit $ac_status); }; }; then
5844   ac_hi=-1 ac_mid=-1
5845   while :; do
5846     cat >conftest.$ac_ext <<_ACEOF
5847 #line $LINENO "configure"
5848 /* confdefs.h.  */
5849 _ACEOF
5850 cat confdefs.h >>conftest.$ac_ext
5851 cat >>conftest.$ac_ext <<_ACEOF
5852 /* end confdefs.h.  */
5853 $ac_includes_default
5854 int
5855 main ()
5856 {
5857 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5858 test_array [0] = 0
5859
5860   ;
5861   return 0;
5862 }
5863 _ACEOF
5864 rm -f conftest.$ac_objext
5865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5866   (eval $ac_compile) 2>&5
5867   ac_status=$?
5868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869   (exit $ac_status); } &&
5870          { ac_try='test -s conftest.$ac_objext'
5871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5872   (eval $ac_try) 2>&5
5873   ac_status=$?
5874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875   (exit $ac_status); }; }; then
5876   ac_lo=$ac_mid; break
5877 else
5878   echo "$as_me: failed program was:" >&5
5879 sed 's/^/| /' conftest.$ac_ext >&5
5880
5881 ac_hi=`expr '(' $ac_mid ')' - 1`
5882                        if test $ac_mid -le $ac_hi; then
5883                          ac_lo= ac_hi=
5884                          break
5885                        fi
5886                        ac_mid=`expr 2 '*' $ac_mid`
5887 fi
5888 rm -f conftest.$ac_objext conftest.$ac_ext
5889   done
5890 else
5891   echo "$as_me: failed program was:" >&5
5892 sed 's/^/| /' conftest.$ac_ext >&5
5893
5894 ac_lo= ac_hi=
5895 fi
5896 rm -f conftest.$ac_objext conftest.$ac_ext
5897 fi
5898 rm -f conftest.$ac_objext conftest.$ac_ext
5899 # Binary search between lo and hi bounds.
5900 while test "x$ac_lo" != "x$ac_hi"; do
5901   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5902   cat >conftest.$ac_ext <<_ACEOF
5903 #line $LINENO "configure"
5904 /* confdefs.h.  */
5905 _ACEOF
5906 cat confdefs.h >>conftest.$ac_ext
5907 cat >>conftest.$ac_ext <<_ACEOF
5908 /* end confdefs.h.  */
5909 $ac_includes_default
5910 int
5911 main ()
5912 {
5913 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5914 test_array [0] = 0
5915
5916   ;
5917   return 0;
5918 }
5919 _ACEOF
5920 rm -f conftest.$ac_objext
5921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5922   (eval $ac_compile) 2>&5
5923   ac_status=$?
5924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925   (exit $ac_status); } &&
5926          { ac_try='test -s conftest.$ac_objext'
5927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5928   (eval $ac_try) 2>&5
5929   ac_status=$?
5930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931   (exit $ac_status); }; }; then
5932   ac_hi=$ac_mid
5933 else
5934   echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.$ac_ext >&5
5936
5937 ac_lo=`expr '(' $ac_mid ')' + 1`
5938 fi
5939 rm -f conftest.$ac_objext conftest.$ac_ext
5940 done
5941 case $ac_lo in
5942 ?*) ac_cv_sizeof_long=$ac_lo;;
5943 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
5944 See \`config.log' for more details." >&5
5945 echo "$as_me: error: cannot compute sizeof (long), 77
5946 See \`config.log' for more details." >&2;}
5947    { (exit 1); exit 1; }; } ;;
5948 esac
5949 else
5950   if test "$cross_compiling" = yes; then
5951   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
5952 See \`config.log' for more details." >&5
5953 echo "$as_me: error: cannot run test program while cross compiling
5954 See \`config.log' for more details." >&2;}
5955    { (exit 1); exit 1; }; }
5956 else
5957   cat >conftest.$ac_ext <<_ACEOF
5958 #line $LINENO "configure"
5959 /* confdefs.h.  */
5960 _ACEOF
5961 cat confdefs.h >>conftest.$ac_ext
5962 cat >>conftest.$ac_ext <<_ACEOF
5963 /* end confdefs.h.  */
5964 $ac_includes_default
5965 long longval () { return (long) (sizeof (long)); }
5966 unsigned long ulongval () { return (long) (sizeof (long)); }
5967 #include <stdio.h>
5968 #include <stdlib.h>
5969 int
5970 main ()
5971 {
5972
5973   FILE *f = fopen ("conftest.val", "w");
5974   if (! f)
5975     exit (1);
5976   if (((long) (sizeof (long))) < 0)
5977     {
5978       long i = longval ();
5979       if (i != ((long) (sizeof (long))))
5980         exit (1);
5981       fprintf (f, "%ld\n", i);
5982     }
5983   else
5984     {
5985       unsigned long i = ulongval ();
5986       if (i != ((long) (sizeof (long))))
5987         exit (1);
5988       fprintf (f, "%lu\n", i);
5989     }
5990   exit (ferror (f) || fclose (f) != 0);
5991
5992   ;
5993   return 0;
5994 }
5995 _ACEOF
5996 rm -f conftest$ac_exeext
5997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5998   (eval $ac_link) 2>&5
5999   ac_status=$?
6000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6003   (eval $ac_try) 2>&5
6004   ac_status=$?
6005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006   (exit $ac_status); }; }; then
6007   ac_cv_sizeof_long=`cat conftest.val`
6008 else
6009   echo "$as_me: program exited with status $ac_status" >&5
6010 echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6012
6013 ( exit $ac_status )
6014 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6015 See \`config.log' for more details." >&5
6016 echo "$as_me: error: cannot compute sizeof (long), 77
6017 See \`config.log' for more details." >&2;}
6018    { (exit 1); exit 1; }; }
6019 fi
6020 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6021 fi
6022 fi
6023 rm -f conftest.val
6024 else
6025   ac_cv_sizeof_long=0
6026 fi
6027 fi
6028 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6029 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6030 cat >>confdefs.h <<_ACEOF
6031 #define SIZEOF_LONG $ac_cv_sizeof_long
6032 _ACEOF
6033
6034
6035    echo "$as_me:$LINENO: checking for long long" >&5
6036 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6037 if test "${ac_cv_type_long_long+set}" = set; then
6038   echo $ECHO_N "(cached) $ECHO_C" >&6
6039 else
6040   cat >conftest.$ac_ext <<_ACEOF
6041 #line $LINENO "configure"
6042 /* confdefs.h.  */
6043 _ACEOF
6044 cat confdefs.h >>conftest.$ac_ext
6045 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h.  */
6047 $ac_includes_default
6048 int
6049 main ()
6050 {
6051 if ((long long *) 0)
6052   return 0;
6053 if (sizeof (long long))
6054   return 0;
6055   ;
6056   return 0;
6057 }
6058 _ACEOF
6059 rm -f conftest.$ac_objext
6060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6061   (eval $ac_compile) 2>&5
6062   ac_status=$?
6063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064   (exit $ac_status); } &&
6065          { ac_try='test -s conftest.$ac_objext'
6066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6067   (eval $ac_try) 2>&5
6068   ac_status=$?
6069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070   (exit $ac_status); }; }; then
6071   ac_cv_type_long_long=yes
6072 else
6073   echo "$as_me: failed program was:" >&5
6074 sed 's/^/| /' conftest.$ac_ext >&5
6075
6076 ac_cv_type_long_long=no
6077 fi
6078 rm -f conftest.$ac_objext conftest.$ac_ext
6079 fi
6080 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6081 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6082
6083 echo "$as_me:$LINENO: checking size of long long" >&5
6084 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6085 if test "${ac_cv_sizeof_long_long+set}" = set; then
6086   echo $ECHO_N "(cached) $ECHO_C" >&6
6087 else
6088   if test "$ac_cv_type_long_long" = yes; then
6089   # The cast to unsigned long works around a bug in the HP C Compiler
6090   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6091   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6092   # This bug is HP SR number 8606223364.
6093   if test "$cross_compiling" = yes; then
6094   # Depending upon the size, compute the lo and hi bounds.
6095 cat >conftest.$ac_ext <<_ACEOF
6096 #line $LINENO "configure"
6097 /* confdefs.h.  */
6098 _ACEOF
6099 cat confdefs.h >>conftest.$ac_ext
6100 cat >>conftest.$ac_ext <<_ACEOF
6101 /* end confdefs.h.  */
6102 $ac_includes_default
6103 int
6104 main ()
6105 {
6106 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6107 test_array [0] = 0
6108
6109   ;
6110   return 0;
6111 }
6112 _ACEOF
6113 rm -f conftest.$ac_objext
6114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6115   (eval $ac_compile) 2>&5
6116   ac_status=$?
6117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118   (exit $ac_status); } &&
6119          { ac_try='test -s conftest.$ac_objext'
6120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6121   (eval $ac_try) 2>&5
6122   ac_status=$?
6123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124   (exit $ac_status); }; }; then
6125   ac_lo=0 ac_mid=0
6126   while :; do
6127     cat >conftest.$ac_ext <<_ACEOF
6128 #line $LINENO "configure"
6129 /* confdefs.h.  */
6130 _ACEOF
6131 cat confdefs.h >>conftest.$ac_ext
6132 cat >>conftest.$ac_ext <<_ACEOF
6133 /* end confdefs.h.  */
6134 $ac_includes_default
6135 int
6136 main ()
6137 {
6138 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6139 test_array [0] = 0
6140
6141   ;
6142   return 0;
6143 }
6144 _ACEOF
6145 rm -f conftest.$ac_objext
6146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6147   (eval $ac_compile) 2>&5
6148   ac_status=$?
6149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150   (exit $ac_status); } &&
6151          { ac_try='test -s conftest.$ac_objext'
6152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6153   (eval $ac_try) 2>&5
6154   ac_status=$?
6155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156   (exit $ac_status); }; }; then
6157   ac_hi=$ac_mid; break
6158 else
6159   echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.$ac_ext >&5
6161
6162 ac_lo=`expr $ac_mid + 1`
6163                     if test $ac_lo -le $ac_mid; then
6164                       ac_lo= ac_hi=
6165                       break
6166                     fi
6167                     ac_mid=`expr 2 '*' $ac_mid + 1`
6168 fi
6169 rm -f conftest.$ac_objext conftest.$ac_ext
6170   done
6171 else
6172   echo "$as_me: failed program was:" >&5
6173 sed 's/^/| /' conftest.$ac_ext >&5
6174
6175 cat >conftest.$ac_ext <<_ACEOF
6176 #line $LINENO "configure"
6177 /* confdefs.h.  */
6178 _ACEOF
6179 cat confdefs.h >>conftest.$ac_ext
6180 cat >>conftest.$ac_ext <<_ACEOF
6181 /* end confdefs.h.  */
6182 $ac_includes_default
6183 int
6184 main ()
6185 {
6186 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6187 test_array [0] = 0
6188
6189   ;
6190   return 0;
6191 }
6192 _ACEOF
6193 rm -f conftest.$ac_objext
6194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6195   (eval $ac_compile) 2>&5
6196   ac_status=$?
6197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198   (exit $ac_status); } &&
6199          { ac_try='test -s conftest.$ac_objext'
6200   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201   (eval $ac_try) 2>&5
6202   ac_status=$?
6203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204   (exit $ac_status); }; }; then
6205   ac_hi=-1 ac_mid=-1
6206   while :; do
6207     cat >conftest.$ac_ext <<_ACEOF
6208 #line $LINENO "configure"
6209 /* confdefs.h.  */
6210 _ACEOF
6211 cat confdefs.h >>conftest.$ac_ext
6212 cat >>conftest.$ac_ext <<_ACEOF
6213 /* end confdefs.h.  */
6214 $ac_includes_default
6215 int
6216 main ()
6217 {
6218 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6219 test_array [0] = 0
6220
6221   ;
6222   return 0;
6223 }
6224 _ACEOF
6225 rm -f conftest.$ac_objext
6226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6227   (eval $ac_compile) 2>&5
6228   ac_status=$?
6229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6230   (exit $ac_status); } &&
6231          { ac_try='test -s conftest.$ac_objext'
6232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233   (eval $ac_try) 2>&5
6234   ac_status=$?
6235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236   (exit $ac_status); }; }; then
6237   ac_lo=$ac_mid; break
6238 else
6239   echo "$as_me: failed program was:" >&5
6240 sed 's/^/| /' conftest.$ac_ext >&5
6241
6242 ac_hi=`expr '(' $ac_mid ')' - 1`
6243                        if test $ac_mid -le $ac_hi; then
6244                          ac_lo= ac_hi=
6245                          break
6246                        fi
6247                        ac_mid=`expr 2 '*' $ac_mid`
6248 fi
6249 rm -f conftest.$ac_objext conftest.$ac_ext
6250   done
6251 else
6252   echo "$as_me: failed program was:" >&5
6253 sed 's/^/| /' conftest.$ac_ext >&5
6254
6255 ac_lo= ac_hi=
6256 fi
6257 rm -f conftest.$ac_objext conftest.$ac_ext
6258 fi
6259 rm -f conftest.$ac_objext conftest.$ac_ext
6260 # Binary search between lo and hi bounds.
6261 while test "x$ac_lo" != "x$ac_hi"; do
6262   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6263   cat >conftest.$ac_ext <<_ACEOF
6264 #line $LINENO "configure"
6265 /* confdefs.h.  */
6266 _ACEOF
6267 cat confdefs.h >>conftest.$ac_ext
6268 cat >>conftest.$ac_ext <<_ACEOF
6269 /* end confdefs.h.  */
6270 $ac_includes_default
6271 int
6272 main ()
6273 {
6274 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6275 test_array [0] = 0
6276
6277   ;
6278   return 0;
6279 }
6280 _ACEOF
6281 rm -f conftest.$ac_objext
6282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6283   (eval $ac_compile) 2>&5
6284   ac_status=$?
6285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286   (exit $ac_status); } &&
6287          { ac_try='test -s conftest.$ac_objext'
6288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6289   (eval $ac_try) 2>&5
6290   ac_status=$?
6291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292   (exit $ac_status); }; }; then
6293   ac_hi=$ac_mid
6294 else
6295   echo "$as_me: failed program was:" >&5
6296 sed 's/^/| /' conftest.$ac_ext >&5
6297
6298 ac_lo=`expr '(' $ac_mid ')' + 1`
6299 fi
6300 rm -f conftest.$ac_objext conftest.$ac_ext
6301 done
6302 case $ac_lo in
6303 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6304 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6305 See \`config.log' for more details." >&5
6306 echo "$as_me: error: cannot compute sizeof (long long), 77
6307 See \`config.log' for more details." >&2;}
6308    { (exit 1); exit 1; }; } ;;
6309 esac
6310 else
6311   if test "$cross_compiling" = yes; then
6312   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
6313 See \`config.log' for more details." >&5
6314 echo "$as_me: error: cannot run test program while cross compiling
6315 See \`config.log' for more details." >&2;}
6316    { (exit 1); exit 1; }; }
6317 else
6318   cat >conftest.$ac_ext <<_ACEOF
6319 #line $LINENO "configure"
6320 /* confdefs.h.  */
6321 _ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h.  */
6325 $ac_includes_default
6326 long longval () { return (long) (sizeof (long long)); }
6327 unsigned long ulongval () { return (long) (sizeof (long long)); }
6328 #include <stdio.h>
6329 #include <stdlib.h>
6330 int
6331 main ()
6332 {
6333
6334   FILE *f = fopen ("conftest.val", "w");
6335   if (! f)
6336     exit (1);
6337   if (((long) (sizeof (long long))) < 0)
6338     {
6339       long i = longval ();
6340       if (i != ((long) (sizeof (long long))))
6341         exit (1);
6342       fprintf (f, "%ld\n", i);
6343     }
6344   else
6345     {
6346       unsigned long i = ulongval ();
6347       if (i != ((long) (sizeof (long long))))
6348         exit (1);
6349       fprintf (f, "%lu\n", i);
6350     }
6351   exit (ferror (f) || fclose (f) != 0);
6352
6353   ;
6354   return 0;
6355 }
6356 _ACEOF
6357 rm -f conftest$ac_exeext
6358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6359   (eval $ac_link) 2>&5
6360   ac_status=$?
6361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6364   (eval $ac_try) 2>&5
6365   ac_status=$?
6366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367   (exit $ac_status); }; }; then
6368   ac_cv_sizeof_long_long=`cat conftest.val`
6369 else
6370   echo "$as_me: program exited with status $ac_status" >&5
6371 echo "$as_me: failed program was:" >&5
6372 sed 's/^/| /' conftest.$ac_ext >&5
6373
6374 ( exit $ac_status )
6375 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6376 See \`config.log' for more details." >&5
6377 echo "$as_me: error: cannot compute sizeof (long long), 77
6378 See \`config.log' for more details." >&2;}
6379    { (exit 1); exit 1; }; }
6380 fi
6381 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6382 fi
6383 fi
6384 rm -f conftest.val
6385 else
6386   ac_cv_sizeof_long_long=0
6387 fi
6388 fi
6389 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6390 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6391 cat >>confdefs.h <<_ACEOF
6392 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6393 _ACEOF
6394
6395
6396 fi
6397
6398
6399
6400
6401
6402 ac_aux_path_sendmail=/usr/sbin:/usr/lib
6403 # Extract the first word of "sendmail", so it can be a program name with args.
6404 set dummy sendmail; ac_word=$2
6405 echo "$as_me:$LINENO: checking for $ac_word" >&5
6406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6407 if test "${ac_cv_path_SENDMAIL+set}" = set; then
6408   echo $ECHO_N "(cached) $ECHO_C" >&6
6409 else
6410   case $SENDMAIL in
6411   [\\/]* | ?:[\\/]*)
6412   ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
6413   ;;
6414   *)
6415   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6416 as_dummy="$PATH:$ac_aux_path_sendmail"
6417 for as_dir in $as_dummy
6418 do
6419   IFS=$as_save_IFS
6420   test -z "$as_dir" && as_dir=.
6421   for ac_exec_ext in '' $ac_executable_extensions; do
6422   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6423     ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
6424     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6425     break 2
6426   fi
6427 done
6428 done
6429
6430   test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/sbin/sendmail"
6431   ;;
6432 esac
6433 fi
6434 SENDMAIL=$ac_cv_path_SENDMAIL
6435
6436 if test -n "$SENDMAIL"; then
6437   echo "$as_me:$LINENO: result: $SENDMAIL" >&5
6438 echo "${ECHO_T}$SENDMAIL" >&6
6439 else
6440   echo "$as_me:$LINENO: result: no" >&5
6441 echo "${ECHO_T}no" >&6
6442 fi
6443
6444
6445 cat >>confdefs.h <<_ACEOF
6446 #define SENDMAIL "$ac_cv_path_SENDMAIL"
6447 _ACEOF
6448
6449
6450 OPS='$(srcdir)/OPS'
6451 if test -f $srcdir/EXPORTABLE ; then
6452         SUBVERSION="us"
6453 else
6454         SUBVERSION="i"
6455
6456         # Check whether --enable-gpgme or --disable-gpgme was given.
6457 if test "${enable_gpgme+set}" = set; then
6458   enableval="$enable_gpgme"
6459          if test x$enableval = xyes; then
6460                         have_gpgme=yes
6461                 fi
6462
6463 fi;
6464
6465 # Check whether --with-gpgme-prefix or --without-gpgme-prefix was given.
6466 if test "${with_gpgme_prefix+set}" = set; then
6467   withval="$with_gpgme_prefix"
6468   gpgme_config_prefix="$withval"
6469 else
6470   gpgme_config_prefix=""
6471 fi;
6472
6473         if test x$have_gpgme = xyes; then
6474                 if test x$gpgme_config_prefix != x; then
6475                         GPGME_CONFIG="$gpgme_config_prefix/bin/gpgme-config"
6476                 else
6477                         # Extract the first word of "gpgme-config", so it can be a program name with args.
6478 set dummy gpgme-config; ac_word=$2
6479 echo "$as_me:$LINENO: checking for $ac_word" >&5
6480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6481 if test "${ac_cv_path_GPGME_CONFIG+set}" = set; then
6482   echo $ECHO_N "(cached) $ECHO_C" >&6
6483 else
6484   case $GPGME_CONFIG in
6485   [\\/]* | ?:[\\/]*)
6486   ac_cv_path_GPGME_CONFIG="$GPGME_CONFIG" # Let the user override the test with a path.
6487   ;;
6488   *)
6489   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490 for as_dir in $PATH
6491 do
6492   IFS=$as_save_IFS
6493   test -z "$as_dir" && as_dir=.
6494   for ac_exec_ext in '' $ac_executable_extensions; do
6495   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6496     ac_cv_path_GPGME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6497     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6498     break 2
6499   fi
6500 done
6501 done
6502
6503   test -z "$ac_cv_path_GPGME_CONFIG" && ac_cv_path_GPGME_CONFIG="no"
6504   ;;
6505 esac
6506 fi
6507 GPGME_CONFIG=$ac_cv_path_GPGME_CONFIG
6508
6509 if test -n "$GPGME_CONFIG"; then
6510   echo "$as_me:$LINENO: result: $GPGME_CONFIG" >&5
6511 echo "${ECHO_T}$GPGME_CONFIG" >&6
6512 else
6513   echo "$as_me:$LINENO: result: no" >&5
6514 echo "${ECHO_T}no" >&6
6515 fi
6516
6517                 fi
6518                 if test "x$GPGME_CONFIG" = "xno"; then
6519                         { { echo "$as_me:$LINENO: error: GPGME not found" >&5
6520 echo "$as_me: error: GPGME not found" >&2;}
6521    { (exit 1); exit 1; }; }
6522                 else
6523                         LIBGPGME_CFLAGS=`$GPGME_CONFIG --cflags`
6524                         LIBGPGME_LIBS=`$GPGME_CONFIG --libs`
6525                         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS crypt-gpgme.o crypt-mod-pgp-gpgme.o crypt-mod-smime-gpgme.o"
6526
6527 cat >>confdefs.h <<\_ACEOF
6528 #define CRYPT_BACKEND_GPGME 1
6529 _ACEOF
6530
6531                 fi
6532         fi
6533
6534
6535
6536         # Check whether --enable-pgp or --disable-pgp was given.
6537 if test "${enable_pgp+set}" = set; then
6538   enableval="$enable_pgp"
6539          if test x$enableval = xno ; then
6540                         have_pgp=no
6541                 fi
6542
6543 fi;
6544
6545         if test x$have_pgp != xno ; then
6546
6547 cat >>confdefs.h <<\_ACEOF
6548 #define CRYPT_BACKEND_CLASSIC_PGP 1
6549 _ACEOF
6550
6551                 PGPAUX_TARGET="pgpringng pgpewrapng"
6552                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pgp.o pgpinvoke.o pgpkey.o pgplib.o gnupgparse.o pgpmicalg.o pgppacket.o crypt-mod-pgp-classic.o"
6553         fi
6554
6555         # Check whether --enable-smime or --disable-smime was given.
6556 if test "${enable_smime+set}" = set; then
6557   enableval="$enable_smime"
6558         if test x$enableval = xno ; then
6559                         have_smime=no
6560                 fi
6561
6562 fi;
6563
6564         if test x$have_smime != xno ; then
6565
6566 cat >>confdefs.h <<\_ACEOF
6567 #define CRYPT_BACKEND_CLASSIC_SMIME 1
6568 _ACEOF
6569
6570                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS smime.o crypt-mod-smime-classic.o"
6571                 SMIMEAUX_TARGET="smime_keysng"
6572         fi
6573
6574
6575 # Check whether --with-mixmaster or --without-mixmaster was given.
6576 if test "${with_mixmaster+set}" = set; then
6577   withval="$with_mixmaster"
6578   if test -x "$withval" ; then
6579                         MIXMASTER="$withval"
6580                  else
6581                         MIXMASTER="mixmaster"
6582                  fi
6583                  OPS="$OPS \$(srcdir)/OPS.MIX"
6584                  MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS remailer.o"
6585
6586 cat >>confdefs.h <<_ACEOF
6587 #define MIXMASTER "$MIXMASTER"
6588 _ACEOF
6589
6590
6591 fi;
6592
6593 fi
6594 # We now require all OPS
6595 OPS="$OPS \$(srcdir)/OPS.PGP \$(srcdir)/OPS.SMIME \$(srcdir)/OPS.CRYPT "
6596
6597
6598
6599
6600
6601
6602
6603 cat >>confdefs.h <<_ACEOF
6604 #define SUBVERSION "$SUBVERSION"
6605 _ACEOF
6606
6607
6608
6609 # Extract the first word of "ispell", so it can be a program name with args.
6610 set dummy ispell; ac_word=$2
6611 echo "$as_me:$LINENO: checking for $ac_word" >&5
6612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6613 if test "${ac_cv_path_ISPELL+set}" = set; then
6614   echo $ECHO_N "(cached) $ECHO_C" >&6
6615 else
6616   case $ISPELL in
6617   [\\/]* | ?:[\\/]*)
6618   ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a path.
6619   ;;
6620   *)
6621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 for as_dir in $PATH
6623 do
6624   IFS=$as_save_IFS
6625   test -z "$as_dir" && as_dir=.
6626   for ac_exec_ext in '' $ac_executable_extensions; do
6627   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6628     ac_cv_path_ISPELL="$as_dir/$ac_word$ac_exec_ext"
6629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6630     break 2
6631   fi
6632 done
6633 done
6634
6635   test -z "$ac_cv_path_ISPELL" && ac_cv_path_ISPELL="no"
6636   ;;
6637 esac
6638 fi
6639 ISPELL=$ac_cv_path_ISPELL
6640
6641 if test -n "$ISPELL"; then
6642   echo "$as_me:$LINENO: result: $ISPELL" >&5
6643 echo "${ECHO_T}$ISPELL" >&6
6644 else
6645   echo "$as_me:$LINENO: result: no" >&5
6646 echo "${ECHO_T}no" >&6
6647 fi
6648
6649 if test $ISPELL != no; then
6650
6651 cat >>confdefs.h <<_ACEOF
6652 #define ISPELL "$ISPELL"
6653 _ACEOF
6654
6655 fi
6656
6657
6658 # Check whether --with-slang or --without-slang was given.
6659 if test "${with_slang+set}" = set; then
6660   withval="$with_slang"
6661   echo "$as_me:$LINENO: checking if this is a BSD system" >&5
6662 echo $ECHO_N "checking if this is a BSD system... $ECHO_C" >&6
6663 if test "${mutt_cv_bsdish+set}" = set; then
6664   echo $ECHO_N "(cached) $ECHO_C" >&6
6665 else
6666   if test "$cross_compiling" = yes; then
6667   mutt_cv_bsdish=no
6668 else
6669   cat >conftest.$ac_ext <<_ACEOF
6670 #line $LINENO "configure"
6671 /* confdefs.h.  */
6672 _ACEOF
6673 cat confdefs.h >>conftest.$ac_ext
6674 cat >>conftest.$ac_ext <<_ACEOF
6675 /* end confdefs.h.  */
6676 #include <sys/param.h>
6677
6678 main ()
6679 {
6680 #ifdef BSD
6681         exit (0);
6682 #else
6683         exit (1);
6684 #endif
6685 }
6686 _ACEOF
6687 rm -f conftest$ac_exeext
6688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6689   (eval $ac_link) 2>&5
6690   ac_status=$?
6691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6692   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6693   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6694   (eval $ac_try) 2>&5
6695   ac_status=$?
6696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697   (exit $ac_status); }; }; then
6698   mutt_cv_bsdish=yes
6699 else
6700   echo "$as_me: program exited with status $ac_status" >&5
6701 echo "$as_me: failed program was:" >&5
6702 sed 's/^/| /' conftest.$ac_ext >&5
6703
6704 ( exit $ac_status )
6705 mutt_cv_bsdish=no
6706 fi
6707 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6708 fi
6709 fi
6710 echo "$as_me:$LINENO: result: $mutt_cv_bsdish" >&5
6711 echo "${ECHO_T}$mutt_cv_bsdish" >&6
6712
6713         echo "$as_me:$LINENO: checking for S-Lang" >&5
6714 echo $ECHO_N "checking for S-Lang... $ECHO_C" >&6
6715         if test $withval = yes; then
6716                 if test -d $srcdir/../slang; then
6717                         mutt_cv_slang=$srcdir/../slang/src
6718                         CFLAGS="$CFLAGS -I${mutt_cv_slang}"
6719                         LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
6720                 else
6721                         if test -d $mutt_cv_prefix/include/slang; then
6722                                 CFLAGS="$CFLAGS -I$mutt_cv_prefix/include/slang"
6723                         elif test -d /usr/include/slang; then
6724                                 CFLAGS="$CFLAGS -I/usr/include/slang"
6725                         fi
6726                         mutt_cv_slang=yes
6727                 fi
6728         else
6729                                 if test -f $withval/src/slang.h; then
6730                         mutt_cv_slang=$withval/src
6731                         CFLAGS="$CFLAGS -I${mutt_cv_slang}"
6732                         LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
6733                 else
6734                                                 mutt_cv_slang=$withval
6735                         if test -d $withval/include/slang; then
6736                                 CFLAGS="$CFLAGS -I${withval}/include/slang"
6737                         elif test -d $withval/include; then
6738                                 CFLAGS="$CFLAGS -I${withval}/include"
6739                         fi
6740                         LDFLAGS="$LDFLAGS -L${withval}/lib"
6741                 fi
6742         fi
6743         echo "$as_me:$LINENO: result: $mutt_cv_slang" >&5
6744 echo "${ECHO_T}$mutt_cv_slang" >&6
6745         if test $mutt_cv_bsdish = yes; then
6746
6747 echo "$as_me:$LINENO: checking for main in -ltermlib" >&5
6748 echo $ECHO_N "checking for main in -ltermlib... $ECHO_C" >&6
6749 if test "${ac_cv_lib_termlib_main+set}" = set; then
6750   echo $ECHO_N "(cached) $ECHO_C" >&6
6751 else
6752   ac_check_lib_save_LIBS=$LIBS
6753 LIBS="-ltermlib  $LIBS"
6754 cat >conftest.$ac_ext <<_ACEOF
6755 #line $LINENO "configure"
6756 /* confdefs.h.  */
6757 _ACEOF
6758 cat confdefs.h >>conftest.$ac_ext
6759 cat >>conftest.$ac_ext <<_ACEOF
6760 /* end confdefs.h.  */
6761
6762
6763 int
6764 main ()
6765 {
6766 main ();
6767   ;
6768   return 0;
6769 }
6770 _ACEOF
6771 rm -f conftest.$ac_objext conftest$ac_exeext
6772 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6773   (eval $ac_link) 2>&5
6774   ac_status=$?
6775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776   (exit $ac_status); } &&
6777          { ac_try='test -s conftest$ac_exeext'
6778   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779   (eval $ac_try) 2>&5
6780   ac_status=$?
6781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782   (exit $ac_status); }; }; then
6783   ac_cv_lib_termlib_main=yes
6784 else
6785   echo "$as_me: failed program was:" >&5
6786 sed 's/^/| /' conftest.$ac_ext >&5
6787
6788 ac_cv_lib_termlib_main=no
6789 fi
6790 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6791 LIBS=$ac_check_lib_save_LIBS
6792 fi
6793 echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_main" >&5
6794 echo "${ECHO_T}$ac_cv_lib_termlib_main" >&6
6795 if test $ac_cv_lib_termlib_main = yes; then
6796   cat >>confdefs.h <<_ACEOF
6797 #define HAVE_LIBTERMLIB 1
6798 _ACEOF
6799
6800   LIBS="-ltermlib $LIBS"
6801
6802 fi
6803
6804         fi
6805
6806 cat >>confdefs.h <<\_ACEOF
6807 #define USE_SLANG_CURSES 1
6808 _ACEOF
6809
6810
6811 cat >>confdefs.h <<\_ACEOF
6812 #define HAVE_COLOR 1
6813 _ACEOF
6814
6815         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
6816
6817
6818         echo "$as_me:$LINENO: checking for SLtt_get_terminfo in -lslang" >&5
6819 echo $ECHO_N "checking for SLtt_get_terminfo in -lslang... $ECHO_C" >&6
6820 if test "${ac_cv_lib_slang_SLtt_get_terminfo+set}" = set; then
6821   echo $ECHO_N "(cached) $ECHO_C" >&6
6822 else
6823   ac_check_lib_save_LIBS=$LIBS
6824 LIBS="-lslang -lm $LIBS"
6825 cat >conftest.$ac_ext <<_ACEOF
6826 #line $LINENO "configure"
6827 /* confdefs.h.  */
6828 _ACEOF
6829 cat confdefs.h >>conftest.$ac_ext
6830 cat >>conftest.$ac_ext <<_ACEOF
6831 /* end confdefs.h.  */
6832
6833 /* Override any gcc2 internal prototype to avoid an error.  */
6834 #ifdef __cplusplus
6835 extern "C"
6836 #endif
6837 /* We use char because int might match the return type of a gcc2
6838    builtin and then its argument prototype would still apply.  */
6839 char SLtt_get_terminfo ();
6840 int
6841 main ()
6842 {
6843 SLtt_get_terminfo ();
6844   ;
6845   return 0;
6846 }
6847 _ACEOF
6848 rm -f conftest.$ac_objext conftest$ac_exeext
6849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6850   (eval $ac_link) 2>&5
6851   ac_status=$?
6852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6853   (exit $ac_status); } &&
6854          { ac_try='test -s conftest$ac_exeext'
6855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6856   (eval $ac_try) 2>&5
6857   ac_status=$?
6858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859   (exit $ac_status); }; }; then
6860   ac_cv_lib_slang_SLtt_get_terminfo=yes
6861 else
6862   echo "$as_me: failed program was:" >&5
6863 sed 's/^/| /' conftest.$ac_ext >&5
6864
6865 ac_cv_lib_slang_SLtt_get_terminfo=no
6866 fi
6867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6868 LIBS=$ac_check_lib_save_LIBS
6869 fi
6870 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLtt_get_terminfo" >&5
6871 echo "${ECHO_T}$ac_cv_lib_slang_SLtt_get_terminfo" >&6
6872 if test $ac_cv_lib_slang_SLtt_get_terminfo = yes; then
6873   MUTTLIBS="$MUTTLIBS -lslang -lm"
6874 else
6875   { { echo "$as_me:$LINENO: error: unable to compile.  check config.log" >&5
6876 echo "$as_me: error: unable to compile.  check config.log" >&2;}
6877    { (exit 1); exit 1; }; }
6878 fi
6879
6880
6881
6882 else
6883   mutt_cv_curses=/usr
6884
6885 # Check whether --with-curses or --without-curses was given.
6886 if test "${with_curses+set}" = set; then
6887   withval="$with_curses"
6888   if test $withval != yes; then
6889                         mutt_cv_curses=$withval
6890                 fi
6891                 if test x$mutt_cv_curses != x/usr; then
6892                         LDFLAGS="-L${mutt_cv_curses}/lib $LDFLAGS"
6893                         CPPFLAGS="$CPPFLAGS -I${mutt_cv_curses}/include"
6894                 fi
6895 fi;
6896
6897         echo "$as_me:$LINENO: checking for initscr" >&5
6898 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
6899 if test "${ac_cv_func_initscr+set}" = set; then
6900   echo $ECHO_N "(cached) $ECHO_C" >&6
6901 else
6902   cat >conftest.$ac_ext <<_ACEOF
6903 #line $LINENO "configure"
6904 /* confdefs.h.  */
6905 _ACEOF
6906 cat confdefs.h >>conftest.$ac_ext
6907 cat >>conftest.$ac_ext <<_ACEOF
6908 /* end confdefs.h.  */
6909 /* System header to define __stub macros and hopefully few prototypes,
6910     which can conflict with char initscr (); below.
6911     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6912     <limits.h> exists even on freestanding compilers.  */
6913 #ifdef __STDC__
6914 # include <limits.h>
6915 #else
6916 # include <assert.h>
6917 #endif
6918 /* Override any gcc2 internal prototype to avoid an error.  */
6919 #ifdef __cplusplus
6920 extern "C"
6921 {
6922 #endif
6923 /* We use char because int might match the return type of a gcc2
6924    builtin and then its argument prototype would still apply.  */
6925 char initscr ();
6926 /* The GNU C library defines this for functions which it implements
6927     to always fail with ENOSYS.  Some functions are actually named
6928     something starting with __ and the normal name is an alias.  */
6929 #if defined (__stub_initscr) || defined (__stub___initscr)
6930 choke me
6931 #else
6932 char (*f) () = initscr;
6933 #endif
6934 #ifdef __cplusplus
6935 }
6936 #endif
6937
6938 int
6939 main ()
6940 {
6941 return f != initscr;
6942   ;
6943   return 0;
6944 }
6945 _ACEOF
6946 rm -f conftest.$ac_objext conftest$ac_exeext
6947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6948   (eval $ac_link) 2>&5
6949   ac_status=$?
6950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951   (exit $ac_status); } &&
6952          { ac_try='test -s conftest$ac_exeext'
6953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6954   (eval $ac_try) 2>&5
6955   ac_status=$?
6956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957   (exit $ac_status); }; }; then
6958   ac_cv_func_initscr=yes
6959 else
6960   echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6962
6963 ac_cv_func_initscr=no
6964 fi
6965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6966 fi
6967 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
6968 echo "${ECHO_T}$ac_cv_func_initscr" >&6
6969 if test $ac_cv_func_initscr = yes; then
6970   :
6971 else
6972
6973         cf_ncurses="ncurses"
6974         for lib in ncurses ncursesw
6975         do
6976                 as_ac_Lib=`echo "ac_cv_lib_$lib''_waddnwstr" | $as_tr_sh`
6977 echo "$as_me:$LINENO: checking for waddnwstr in -l$lib" >&5
6978 echo $ECHO_N "checking for waddnwstr in -l$lib... $ECHO_C" >&6
6979 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
6980   echo $ECHO_N "(cached) $ECHO_C" >&6
6981 else
6982   ac_check_lib_save_LIBS=$LIBS
6983 LIBS="-l$lib  $LIBS"
6984 cat >conftest.$ac_ext <<_ACEOF
6985 #line $LINENO "configure"
6986 /* confdefs.h.  */
6987 _ACEOF
6988 cat confdefs.h >>conftest.$ac_ext
6989 cat >>conftest.$ac_ext <<_ACEOF
6990 /* end confdefs.h.  */
6991
6992 /* Override any gcc2 internal prototype to avoid an error.  */
6993 #ifdef __cplusplus
6994 extern "C"
6995 #endif
6996 /* We use char because int might match the return type of a gcc2
6997    builtin and then its argument prototype would still apply.  */
6998 char waddnwstr ();
6999 int
7000 main ()
7001 {
7002 waddnwstr ();
7003   ;
7004   return 0;
7005 }
7006 _ACEOF
7007 rm -f conftest.$ac_objext conftest$ac_exeext
7008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7009   (eval $ac_link) 2>&5
7010   ac_status=$?
7011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012   (exit $ac_status); } &&
7013          { ac_try='test -s conftest$ac_exeext'
7014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015   (eval $ac_try) 2>&5
7016   ac_status=$?
7017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018   (exit $ac_status); }; }; then
7019   eval "$as_ac_Lib=yes"
7020 else
7021   echo "$as_me: failed program was:" >&5
7022 sed 's/^/| /' conftest.$ac_ext >&5
7023
7024 eval "$as_ac_Lib=no"
7025 fi
7026 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7027 LIBS=$ac_check_lib_save_LIBS
7028 fi
7029 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7030 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7031 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7032   cf_ncurses="$lib"; break
7033 fi
7034
7035         done
7036         as_ac_Lib=`echo "ac_cv_lib_$cf_ncurses''_initscr" | $as_tr_sh`
7037 echo "$as_me:$LINENO: checking for initscr in -l$cf_ncurses" >&5
7038 echo $ECHO_N "checking for initscr in -l$cf_ncurses... $ECHO_C" >&6
7039 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7040   echo $ECHO_N "(cached) $ECHO_C" >&6
7041 else
7042   ac_check_lib_save_LIBS=$LIBS
7043 LIBS="-l$cf_ncurses  $LIBS"
7044 cat >conftest.$ac_ext <<_ACEOF
7045 #line $LINENO "configure"
7046 /* confdefs.h.  */
7047 _ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h.  */
7051
7052 /* Override any gcc2 internal prototype to avoid an error.  */
7053 #ifdef __cplusplus
7054 extern "C"
7055 #endif
7056 /* We use char because int might match the return type of a gcc2
7057    builtin and then its argument prototype would still apply.  */
7058 char initscr ();
7059 int
7060 main ()
7061 {
7062 initscr ();
7063   ;
7064   return 0;
7065 }
7066 _ACEOF
7067 rm -f conftest.$ac_objext conftest$ac_exeext
7068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7069   (eval $ac_link) 2>&5
7070   ac_status=$?
7071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072   (exit $ac_status); } &&
7073          { ac_try='test -s conftest$ac_exeext'
7074   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7075   (eval $ac_try) 2>&5
7076   ac_status=$?
7077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078   (exit $ac_status); }; }; then
7079   eval "$as_ac_Lib=yes"
7080 else
7081   echo "$as_me: failed program was:" >&5
7082 sed 's/^/| /' conftest.$ac_ext >&5
7083
7084 eval "$as_ac_Lib=no"
7085 fi
7086 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7087 LIBS=$ac_check_lib_save_LIBS
7088 fi
7089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7090 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7091 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7092   MUTTLIBS="$MUTTLIBS -l$cf_ncurses"
7093                 if test x$mutt_cv_curses = x/usr -a -d /usr/include/ncurses; then
7094                         CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
7095                 fi
7096
7097                 if test "$cf_ncurses" = ncursesw; then
7098
7099 for ac_header in ncursesw/ncurses.h
7100 do
7101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7102 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7103   echo "$as_me:$LINENO: checking for $ac_header" >&5
7104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7105 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7106   echo $ECHO_N "(cached) $ECHO_C" >&6
7107 fi
7108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7110 else
7111   # Is the header compilable?
7112 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7113 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7114 cat >conftest.$ac_ext <<_ACEOF
7115 #line $LINENO "configure"
7116 /* confdefs.h.  */
7117 _ACEOF
7118 cat confdefs.h >>conftest.$ac_ext
7119 cat >>conftest.$ac_ext <<_ACEOF
7120 /* end confdefs.h.  */
7121 $ac_includes_default
7122 #include <$ac_header>
7123 _ACEOF
7124 rm -f conftest.$ac_objext
7125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7126   (eval $ac_compile) 2>&5
7127   ac_status=$?
7128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7129   (exit $ac_status); } &&
7130          { ac_try='test -s conftest.$ac_objext'
7131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7132   (eval $ac_try) 2>&5
7133   ac_status=$?
7134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135   (exit $ac_status); }; }; then
7136   ac_header_compiler=yes
7137 else
7138   echo "$as_me: failed program was:" >&5
7139 sed 's/^/| /' conftest.$ac_ext >&5
7140
7141 ac_header_compiler=no
7142 fi
7143 rm -f conftest.$ac_objext conftest.$ac_ext
7144 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7145 echo "${ECHO_T}$ac_header_compiler" >&6
7146
7147 # Is the header present?
7148 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7149 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7150 cat >conftest.$ac_ext <<_ACEOF
7151 #line $LINENO "configure"
7152 /* confdefs.h.  */
7153 _ACEOF
7154 cat confdefs.h >>conftest.$ac_ext
7155 cat >>conftest.$ac_ext <<_ACEOF
7156 /* end confdefs.h.  */
7157 #include <$ac_header>
7158 _ACEOF
7159 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7160   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7161   ac_status=$?
7162   grep -v '^ *+' conftest.er1 >conftest.err
7163   rm -f conftest.er1
7164   cat conftest.err >&5
7165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166   (exit $ac_status); } >/dev/null; then
7167   if test -s conftest.err; then
7168     ac_cpp_err=$ac_c_preproc_warn_flag
7169   else
7170     ac_cpp_err=
7171   fi
7172 else
7173   ac_cpp_err=yes
7174 fi
7175 if test -z "$ac_cpp_err"; then
7176   ac_header_preproc=yes
7177 else
7178   echo "$as_me: failed program was:" >&5
7179 sed 's/^/| /' conftest.$ac_ext >&5
7180
7181   ac_header_preproc=no
7182 fi
7183 rm -f conftest.err conftest.$ac_ext
7184 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7185 echo "${ECHO_T}$ac_header_preproc" >&6
7186
7187 # So?  What about this header?
7188 case $ac_header_compiler:$ac_header_preproc in
7189   yes:no )
7190     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7191 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7192     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7194     (
7195       cat <<\_ASBOX
7196 ## ------------------------------------ ##
7197 ## Report this to bug-autoconf@gnu.org. ##
7198 ## ------------------------------------ ##
7199 _ASBOX
7200     ) |
7201       sed "s/^/$as_me: WARNING:     /" >&2
7202     ;;
7203   no:yes )
7204     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7205 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7206     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7207 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7208     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7209 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7210     (
7211       cat <<\_ASBOX
7212 ## ------------------------------------ ##
7213 ## Report this to bug-autoconf@gnu.org. ##
7214 ## ------------------------------------ ##
7215 _ASBOX
7216     ) |
7217       sed "s/^/$as_me: WARNING:     /" >&2
7218     ;;
7219 esac
7220 echo "$as_me:$LINENO: checking for $ac_header" >&5
7221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7222 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7223   echo $ECHO_N "(cached) $ECHO_C" >&6
7224 else
7225   eval "$as_ac_Header=$ac_header_preproc"
7226 fi
7227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7229
7230 fi
7231 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7232   cat >>confdefs.h <<_ACEOF
7233 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7234 _ACEOF
7235  cf_cv_ncurses_header="ncursesw/ncurses.h"
7236 fi
7237
7238 done
7239
7240                 else
7241
7242 for ac_header in ncurses.h
7243 do
7244 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7246   echo "$as_me:$LINENO: checking for $ac_header" >&5
7247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7249   echo $ECHO_N "(cached) $ECHO_C" >&6
7250 fi
7251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7253 else
7254   # Is the header compilable?
7255 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7257 cat >conftest.$ac_ext <<_ACEOF
7258 #line $LINENO "configure"
7259 /* confdefs.h.  */
7260 _ACEOF
7261 cat confdefs.h >>conftest.$ac_ext
7262 cat >>conftest.$ac_ext <<_ACEOF
7263 /* end confdefs.h.  */
7264 $ac_includes_default
7265 #include <$ac_header>
7266 _ACEOF
7267 rm -f conftest.$ac_objext
7268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7269   (eval $ac_compile) 2>&5
7270   ac_status=$?
7271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272   (exit $ac_status); } &&
7273          { ac_try='test -s conftest.$ac_objext'
7274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7275   (eval $ac_try) 2>&5
7276   ac_status=$?
7277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278   (exit $ac_status); }; }; then
7279   ac_header_compiler=yes
7280 else
7281   echo "$as_me: failed program was:" >&5
7282 sed 's/^/| /' conftest.$ac_ext >&5
7283
7284 ac_header_compiler=no
7285 fi
7286 rm -f conftest.$ac_objext conftest.$ac_ext
7287 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7288 echo "${ECHO_T}$ac_header_compiler" >&6
7289
7290 # Is the header present?
7291 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7292 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7293 cat >conftest.$ac_ext <<_ACEOF
7294 #line $LINENO "configure"
7295 /* confdefs.h.  */
7296 _ACEOF
7297 cat confdefs.h >>conftest.$ac_ext
7298 cat >>conftest.$ac_ext <<_ACEOF
7299 /* end confdefs.h.  */
7300 #include <$ac_header>
7301 _ACEOF
7302 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7303   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7304   ac_status=$?
7305   grep -v '^ *+' conftest.er1 >conftest.err
7306   rm -f conftest.er1
7307   cat conftest.err >&5
7308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309   (exit $ac_status); } >/dev/null; then
7310   if test -s conftest.err; then
7311     ac_cpp_err=$ac_c_preproc_warn_flag
7312   else
7313     ac_cpp_err=
7314   fi
7315 else
7316   ac_cpp_err=yes
7317 fi
7318 if test -z "$ac_cpp_err"; then
7319   ac_header_preproc=yes
7320 else
7321   echo "$as_me: failed program was:" >&5
7322 sed 's/^/| /' conftest.$ac_ext >&5
7323
7324   ac_header_preproc=no
7325 fi
7326 rm -f conftest.err conftest.$ac_ext
7327 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7328 echo "${ECHO_T}$ac_header_preproc" >&6
7329
7330 # So?  What about this header?
7331 case $ac_header_compiler:$ac_header_preproc in
7332   yes:no )
7333     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7335     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7337     (
7338       cat <<\_ASBOX
7339 ## ------------------------------------ ##
7340 ## Report this to bug-autoconf@gnu.org. ##
7341 ## ------------------------------------ ##
7342 _ASBOX
7343     ) |
7344       sed "s/^/$as_me: WARNING:     /" >&2
7345     ;;
7346   no:yes )
7347     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7349     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7350 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7351     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7353     (
7354       cat <<\_ASBOX
7355 ## ------------------------------------ ##
7356 ## Report this to bug-autoconf@gnu.org. ##
7357 ## ------------------------------------ ##
7358 _ASBOX
7359     ) |
7360       sed "s/^/$as_me: WARNING:     /" >&2
7361     ;;
7362 esac
7363 echo "$as_me:$LINENO: checking for $ac_header" >&5
7364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7366   echo $ECHO_N "(cached) $ECHO_C" >&6
7367 else
7368   eval "$as_ac_Header=$ac_header_preproc"
7369 fi
7370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7372
7373 fi
7374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7375   cat >>confdefs.h <<_ACEOF
7376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7377 _ACEOF
7378  cf_cv_ncurses_header="ncurses.h"
7379 fi
7380
7381 done
7382
7383                 fi
7384 else
7385
7386 echo "$as_me:$LINENO: checking for initscr" >&5
7387 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
7388 if test "${ac_cv_func_initscr+set}" = set; then
7389   echo $ECHO_N "(cached) $ECHO_C" >&6
7390 else
7391   cat >conftest.$ac_ext <<_ACEOF
7392 #line $LINENO "configure"
7393 /* confdefs.h.  */
7394 _ACEOF
7395 cat confdefs.h >>conftest.$ac_ext
7396 cat >>conftest.$ac_ext <<_ACEOF
7397 /* end confdefs.h.  */
7398 /* System header to define __stub macros and hopefully few prototypes,
7399     which can conflict with char initscr (); below.
7400     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7401     <limits.h> exists even on freestanding compilers.  */
7402 #ifdef __STDC__
7403 # include <limits.h>
7404 #else
7405 # include <assert.h>
7406 #endif
7407 /* Override any gcc2 internal prototype to avoid an error.  */
7408 #ifdef __cplusplus
7409 extern "C"
7410 {
7411 #endif
7412 /* We use char because int might match the return type of a gcc2
7413    builtin and then its argument prototype would still apply.  */
7414 char initscr ();
7415 /* The GNU C library defines this for functions which it implements
7416     to always fail with ENOSYS.  Some functions are actually named
7417     something starting with __ and the normal name is an alias.  */
7418 #if defined (__stub_initscr) || defined (__stub___initscr)
7419 choke me
7420 #else
7421 char (*f) () = initscr;
7422 #endif
7423 #ifdef __cplusplus
7424 }
7425 #endif
7426
7427 int
7428 main ()
7429 {
7430 return f != initscr;
7431   ;
7432   return 0;
7433 }
7434 _ACEOF
7435 rm -f conftest.$ac_objext conftest$ac_exeext
7436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7437   (eval $ac_link) 2>&5
7438   ac_status=$?
7439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440   (exit $ac_status); } &&
7441          { ac_try='test -s conftest$ac_exeext'
7442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7443   (eval $ac_try) 2>&5
7444   ac_status=$?
7445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446   (exit $ac_status); }; }; then
7447   ac_cv_func_initscr=yes
7448 else
7449   echo "$as_me: failed program was:" >&5
7450 sed 's/^/| /' conftest.$ac_ext >&5
7451
7452 ac_cv_func_initscr=no
7453 fi
7454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7455 fi
7456 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
7457 echo "${ECHO_T}$ac_cv_func_initscr" >&6
7458 if test $ac_cv_func_initscr = yes; then
7459   :
7460 else
7461
7462 case $host_os in #(vi
7463 freebsd*) #(vi
7464         echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5
7465 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
7466 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
7467   echo $ECHO_N "(cached) $ECHO_C" >&6
7468 else
7469   ac_check_lib_save_LIBS=$LIBS
7470 LIBS="-lmytinfo  $LIBS"
7471 cat >conftest.$ac_ext <<_ACEOF
7472 #line $LINENO "configure"
7473 /* confdefs.h.  */
7474 _ACEOF
7475 cat confdefs.h >>conftest.$ac_ext
7476 cat >>conftest.$ac_ext <<_ACEOF
7477 /* end confdefs.h.  */
7478
7479 /* Override any gcc2 internal prototype to avoid an error.  */
7480 #ifdef __cplusplus
7481 extern "C"
7482 #endif
7483 /* We use char because int might match the return type of a gcc2
7484    builtin and then its argument prototype would still apply.  */
7485 char tgoto ();
7486 int
7487 main ()
7488 {
7489 tgoto ();
7490   ;
7491   return 0;
7492 }
7493 _ACEOF
7494 rm -f conftest.$ac_objext conftest$ac_exeext
7495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7496   (eval $ac_link) 2>&5
7497   ac_status=$?
7498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499   (exit $ac_status); } &&
7500          { ac_try='test -s conftest$ac_exeext'
7501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7502   (eval $ac_try) 2>&5
7503   ac_status=$?
7504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505   (exit $ac_status); }; }; then
7506   ac_cv_lib_mytinfo_tgoto=yes
7507 else
7508   echo "$as_me: failed program was:" >&5
7509 sed 's/^/| /' conftest.$ac_ext >&5
7510
7511 ac_cv_lib_mytinfo_tgoto=no
7512 fi
7513 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7514 LIBS=$ac_check_lib_save_LIBS
7515 fi
7516 echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5
7517 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
7518 if test $ac_cv_lib_mytinfo_tgoto = yes; then
7519   LIBS="-lmytinfo $LIBS"
7520 fi
7521
7522         ;;
7523 hpux10.*|hpux11.*)
7524         echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5
7525 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
7526 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
7527   echo $ECHO_N "(cached) $ECHO_C" >&6
7528 else
7529   ac_check_lib_save_LIBS=$LIBS
7530 LIBS="-lcur_colr  $LIBS"
7531 cat >conftest.$ac_ext <<_ACEOF
7532 #line $LINENO "configure"
7533 /* confdefs.h.  */
7534 _ACEOF
7535 cat confdefs.h >>conftest.$ac_ext
7536 cat >>conftest.$ac_ext <<_ACEOF
7537 /* end confdefs.h.  */
7538
7539 /* Override any gcc2 internal prototype to avoid an error.  */
7540 #ifdef __cplusplus
7541 extern "C"
7542 #endif
7543 /* We use char because int might match the return type of a gcc2
7544    builtin and then its argument prototype would still apply.  */
7545 char initscr ();
7546 int
7547 main ()
7548 {
7549 initscr ();
7550   ;
7551   return 0;
7552 }
7553 _ACEOF
7554 rm -f conftest.$ac_objext conftest$ac_exeext
7555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7556   (eval $ac_link) 2>&5
7557   ac_status=$?
7558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7559   (exit $ac_status); } &&
7560          { ac_try='test -s conftest$ac_exeext'
7561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7562   (eval $ac_try) 2>&5
7563   ac_status=$?
7564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565   (exit $ac_status); }; }; then
7566   ac_cv_lib_cur_colr_initscr=yes
7567 else
7568   echo "$as_me: failed program was:" >&5
7569 sed 's/^/| /' conftest.$ac_ext >&5
7570
7571 ac_cv_lib_cur_colr_initscr=no
7572 fi
7573 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7574 LIBS=$ac_check_lib_save_LIBS
7575 fi
7576 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5
7577 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
7578 if test $ac_cv_lib_cur_colr_initscr = yes; then
7579
7580                 LIBS="-lcur_colr $LIBS"
7581                 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
7582                 ac_cv_func_initscr=yes
7583
7584 else
7585
7586         echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5
7587 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
7588 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
7589   echo $ECHO_N "(cached) $ECHO_C" >&6
7590 else
7591   ac_check_lib_save_LIBS=$LIBS
7592 LIBS="-lHcurses  $LIBS"
7593 cat >conftest.$ac_ext <<_ACEOF
7594 #line $LINENO "configure"
7595 /* confdefs.h.  */
7596 _ACEOF
7597 cat confdefs.h >>conftest.$ac_ext
7598 cat >>conftest.$ac_ext <<_ACEOF
7599 /* end confdefs.h.  */
7600
7601 /* Override any gcc2 internal prototype to avoid an error.  */
7602 #ifdef __cplusplus
7603 extern "C"
7604 #endif
7605 /* We use char because int might match the return type of a gcc2
7606    builtin and then its argument prototype would still apply.  */
7607 char initscr ();
7608 int
7609 main ()
7610 {
7611 initscr ();
7612   ;
7613   return 0;
7614 }
7615 _ACEOF
7616 rm -f conftest.$ac_objext conftest$ac_exeext
7617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7618   (eval $ac_link) 2>&5
7619   ac_status=$?
7620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621   (exit $ac_status); } &&
7622          { ac_try='test -s conftest$ac_exeext'
7623   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7624   (eval $ac_try) 2>&5
7625   ac_status=$?
7626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627   (exit $ac_status); }; }; then
7628   ac_cv_lib_Hcurses_initscr=yes
7629 else
7630   echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.$ac_ext >&5
7632
7633 ac_cv_lib_Hcurses_initscr=no
7634 fi
7635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7636 LIBS=$ac_check_lib_save_LIBS
7637 fi
7638 echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5
7639 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
7640 if test $ac_cv_lib_Hcurses_initscr = yes; then
7641
7642                 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
7643                 LIBS="-lHcurses $LIBS"
7644                 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
7645                 ac_cv_func_initscr=yes
7646
7647 fi
7648
7649 fi
7650
7651         ;;
7652 linux*) # Suse Linux does not follow /usr/lib convention
7653         LIBS="$LIBS -L/lib"
7654         ;;
7655 esac
7656
7657 if test ".$With5lib" != ".no" ; then
7658 if test -d /usr/5lib ; then
7659         # SunOS 3.x or 4.x
7660         CPPFLAGS="$CPPFLAGS -I/usr/5include"
7661         LIBS="$LIBS -L/usr/5lib"
7662 fi
7663 fi
7664
7665 if test ".$ac_cv_func_initscr" != .yes ; then
7666         cf_save_LIBS="$LIBS"
7667         cf_term_lib=""
7668         cf_curs_lib=""
7669
7670         # Check for library containing tgoto.  Do this before curses library
7671         # because it may be needed to link the test-case for initscr.
7672         echo "$as_me:$LINENO: checking for tgoto" >&5
7673 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
7674 if test "${ac_cv_func_tgoto+set}" = set; then
7675   echo $ECHO_N "(cached) $ECHO_C" >&6
7676 else
7677   cat >conftest.$ac_ext <<_ACEOF
7678 #line $LINENO "configure"
7679 /* confdefs.h.  */
7680 _ACEOF
7681 cat confdefs.h >>conftest.$ac_ext
7682 cat >>conftest.$ac_ext <<_ACEOF
7683 /* end confdefs.h.  */
7684 /* System header to define __stub macros and hopefully few prototypes,
7685     which can conflict with char tgoto (); below.
7686     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7687     <limits.h> exists even on freestanding compilers.  */
7688 #ifdef __STDC__
7689 # include <limits.h>
7690 #else
7691 # include <assert.h>
7692 #endif
7693 /* Override any gcc2 internal prototype to avoid an error.  */
7694 #ifdef __cplusplus
7695 extern "C"
7696 {
7697 #endif
7698 /* We use char because int might match the return type of a gcc2
7699    builtin and then its argument prototype would still apply.  */
7700 char tgoto ();
7701 /* The GNU C library defines this for functions which it implements
7702     to always fail with ENOSYS.  Some functions are actually named
7703     something starting with __ and the normal name is an alias.  */
7704 #if defined (__stub_tgoto) || defined (__stub___tgoto)
7705 choke me
7706 #else
7707 char (*f) () = tgoto;
7708 #endif
7709 #ifdef __cplusplus
7710 }
7711 #endif
7712
7713 int
7714 main ()
7715 {
7716 return f != tgoto;
7717   ;
7718   return 0;
7719 }
7720 _ACEOF
7721 rm -f conftest.$ac_objext conftest$ac_exeext
7722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7723   (eval $ac_link) 2>&5
7724   ac_status=$?
7725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726   (exit $ac_status); } &&
7727          { ac_try='test -s conftest$ac_exeext'
7728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7729   (eval $ac_try) 2>&5
7730   ac_status=$?
7731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732   (exit $ac_status); }; }; then
7733   ac_cv_func_tgoto=yes
7734 else
7735   echo "$as_me: failed program was:" >&5
7736 sed 's/^/| /' conftest.$ac_ext >&5
7737
7738 ac_cv_func_tgoto=no
7739 fi
7740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7741 fi
7742 echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5
7743 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
7744 if test $ac_cv_func_tgoto = yes; then
7745   cf_term_lib=predefined
7746 else
7747
7748                 for cf_term_lib in termcap termlib unknown
7749                 do
7750                         as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
7751 echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5
7752 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
7753 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7754   echo $ECHO_N "(cached) $ECHO_C" >&6
7755 else
7756   ac_check_lib_save_LIBS=$LIBS
7757 LIBS="-l$cf_term_lib  $LIBS"
7758 cat >conftest.$ac_ext <<_ACEOF
7759 #line $LINENO "configure"
7760 /* confdefs.h.  */
7761 _ACEOF
7762 cat confdefs.h >>conftest.$ac_ext
7763 cat >>conftest.$ac_ext <<_ACEOF
7764 /* end confdefs.h.  */
7765
7766 /* Override any gcc2 internal prototype to avoid an error.  */
7767 #ifdef __cplusplus
7768 extern "C"
7769 #endif
7770 /* We use char because int might match the return type of a gcc2
7771    builtin and then its argument prototype would still apply.  */
7772 char tgoto ();
7773 int
7774 main ()
7775 {
7776 tgoto ();
7777   ;
7778   return 0;
7779 }
7780 _ACEOF
7781 rm -f conftest.$ac_objext conftest$ac_exeext
7782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7783   (eval $ac_link) 2>&5
7784   ac_status=$?
7785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7786   (exit $ac_status); } &&
7787          { ac_try='test -s conftest$ac_exeext'
7788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7789   (eval $ac_try) 2>&5
7790   ac_status=$?
7791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7792   (exit $ac_status); }; }; then
7793   eval "$as_ac_Lib=yes"
7794 else
7795   echo "$as_me: failed program was:" >&5
7796 sed 's/^/| /' conftest.$ac_ext >&5
7797
7798 eval "$as_ac_Lib=no"
7799 fi
7800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7801 LIBS=$ac_check_lib_save_LIBS
7802 fi
7803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7804 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7805 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7806   break
7807 fi
7808
7809                 done
7810
7811 fi
7812
7813
7814         # Check for library containing initscr
7815         test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
7816         for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
7817         do
7818                 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
7819 echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5
7820 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
7821 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7822   echo $ECHO_N "(cached) $ECHO_C" >&6
7823 else
7824   ac_check_lib_save_LIBS=$LIBS
7825 LIBS="-l$cf_curs_lib  $LIBS"
7826 cat >conftest.$ac_ext <<_ACEOF
7827 #line $LINENO "configure"
7828 /* confdefs.h.  */
7829 _ACEOF
7830 cat confdefs.h >>conftest.$ac_ext
7831 cat >>conftest.$ac_ext <<_ACEOF
7832 /* end confdefs.h.  */
7833
7834 /* Override any gcc2 internal prototype to avoid an error.  */
7835 #ifdef __cplusplus
7836 extern "C"
7837 #endif
7838 /* We use char because int might match the return type of a gcc2
7839    builtin and then its argument prototype would still apply.  */
7840 char initscr ();
7841 int
7842 main ()
7843 {
7844 initscr ();
7845   ;
7846   return 0;
7847 }
7848 _ACEOF
7849 rm -f conftest.$ac_objext conftest$ac_exeext
7850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7851   (eval $ac_link) 2>&5
7852   ac_status=$?
7853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854   (exit $ac_status); } &&
7855          { ac_try='test -s conftest$ac_exeext'
7856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7857   (eval $ac_try) 2>&5
7858   ac_status=$?
7859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860   (exit $ac_status); }; }; then
7861   eval "$as_ac_Lib=yes"
7862 else
7863   echo "$as_me: failed program was:" >&5
7864 sed 's/^/| /' conftest.$ac_ext >&5
7865
7866 eval "$as_ac_Lib=no"
7867 fi
7868 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7869 LIBS=$ac_check_lib_save_LIBS
7870 fi
7871 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7872 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7873 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7874   break
7875 fi
7876
7877         done
7878         test $cf_curs_lib = unknown && { { echo "$as_me:$LINENO: error: no curses library found" >&5
7879 echo "$as_me: error: no curses library found" >&2;}
7880    { (exit 1); exit 1; }; }
7881
7882         LIBS="-l$cf_curs_lib $cf_save_LIBS"
7883         if test "$cf_term_lib" = unknown ; then
7884                 echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5
7885 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
7886                 cat >conftest.$ac_ext <<_ACEOF
7887 #line $LINENO "configure"
7888 /* confdefs.h.  */
7889 _ACEOF
7890 cat confdefs.h >>conftest.$ac_ext
7891 cat >>conftest.$ac_ext <<_ACEOF
7892 /* end confdefs.h.  */
7893 #include <${cf_cv_ncurses_header-curses.h}>
7894 int
7895 main ()
7896 {
7897 initscr()
7898   ;
7899   return 0;
7900 }
7901 _ACEOF
7902 rm -f conftest.$ac_objext conftest$ac_exeext
7903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7904   (eval $ac_link) 2>&5
7905   ac_status=$?
7906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907   (exit $ac_status); } &&
7908          { ac_try='test -s conftest$ac_exeext'
7909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910   (eval $ac_try) 2>&5
7911   ac_status=$?
7912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913   (exit $ac_status); }; }; then
7914   cf_result=yes
7915 else
7916   echo "$as_me: failed program was:" >&5
7917 sed 's/^/| /' conftest.$ac_ext >&5
7918
7919 cf_result=no
7920 fi
7921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7922                 echo "$as_me:$LINENO: result: $cf_result" >&5
7923 echo "${ECHO_T}$cf_result" >&6
7924                 test $cf_result = no && { { echo "$as_me:$LINENO: error: Cannot link curses library" >&5
7925 echo "$as_me: error: Cannot link curses library" >&2;}
7926    { (exit 1); exit 1; }; }
7927         elif test "$cf_term_lib" != predefined ; then
7928                 echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
7929 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
7930                 cat >conftest.$ac_ext <<_ACEOF
7931 #line $LINENO "configure"
7932 /* confdefs.h.  */
7933 _ACEOF
7934 cat confdefs.h >>conftest.$ac_ext
7935 cat >>conftest.$ac_ext <<_ACEOF
7936 /* end confdefs.h.  */
7937 #include <${cf_cv_ncurses_header-curses.h}>
7938 int
7939 main ()
7940 {
7941 initscr(); tgoto((char *)0, 0, 0);
7942   ;
7943   return 0;
7944 }
7945 _ACEOF
7946 rm -f conftest.$ac_objext conftest$ac_exeext
7947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7948   (eval $ac_link) 2>&5
7949   ac_status=$?
7950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951   (exit $ac_status); } &&
7952          { ac_try='test -s conftest$ac_exeext'
7953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7954   (eval $ac_try) 2>&5
7955   ac_status=$?
7956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957   (exit $ac_status); }; }; then
7958   cf_result=no
7959 else
7960   echo "$as_me: failed program was:" >&5
7961 sed 's/^/| /' conftest.$ac_ext >&5
7962
7963
7964                         LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
7965                         cat >conftest.$ac_ext <<_ACEOF
7966 #line $LINENO "configure"
7967 /* confdefs.h.  */
7968 _ACEOF
7969 cat confdefs.h >>conftest.$ac_ext
7970 cat >>conftest.$ac_ext <<_ACEOF
7971 /* end confdefs.h.  */
7972 #include <${cf_cv_ncurses_header-curses.h}>
7973 int
7974 main ()
7975 {
7976 initscr()
7977   ;
7978   return 0;
7979 }
7980 _ACEOF
7981 rm -f conftest.$ac_objext conftest$ac_exeext
7982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7983   (eval $ac_link) 2>&5
7984   ac_status=$?
7985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986   (exit $ac_status); } &&
7987          { ac_try='test -s conftest$ac_exeext'
7988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7989   (eval $ac_try) 2>&5
7990   ac_status=$?
7991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992   (exit $ac_status); }; }; then
7993   cf_result=yes
7994 else
7995   echo "$as_me: failed program was:" >&5
7996 sed 's/^/| /' conftest.$ac_ext >&5
7997
7998 cf_result=error
7999 fi
8000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8001
8002 fi
8003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8004                 echo "$as_me:$LINENO: result: $cf_result" >&5
8005 echo "${ECHO_T}$cf_result" >&6
8006         fi
8007 fi
8008
8009
8010 fi
8011
8012 fi
8013
8014
8015 fi
8016
8017
8018         old_LIBS="$LIBS"
8019         LIBS="$LIBS $MUTTLIBS"
8020         for ac_func in start_color typeahead bkgdset curs_set meta use_default_colors resizeterm
8021 do
8022
8023 echo "$as_me:$LINENO: checking for $ac_func declaration" >&5
8024 echo $ECHO_N "checking for $ac_func declaration... $ECHO_C" >&6
8025 if eval "test \"\${ac_cv_func_decl_$ac_func+set}\" = set"; then
8026   echo $ECHO_N "(cached) $ECHO_C" >&6
8027 else
8028   cat >conftest.$ac_ext <<_ACEOF
8029 #line $LINENO "configure"
8030 /* confdefs.h.  */
8031 _ACEOF
8032 cat confdefs.h >>conftest.$ac_ext
8033 cat >>conftest.$ac_ext <<_ACEOF
8034 /* end confdefs.h.  */
8035 #include <${cf_cv_ncurses_header-curses.h}>
8036 int
8037 main ()
8038 {
8039 #ifndef ${ac_func}
8040 extern  int     ${ac_func}();
8041 #endif
8042   ;
8043   return 0;
8044 }
8045 _ACEOF
8046 rm -f conftest.$ac_objext
8047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8048   (eval $ac_compile) 2>&5
8049   ac_status=$?
8050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051   (exit $ac_status); } &&
8052          { ac_try='test -s conftest.$ac_objext'
8053   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8054   (eval $ac_try) 2>&5
8055   ac_status=$?
8056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057   (exit $ac_status); }; }; then
8058
8059 cat >conftest.$ac_ext <<_ACEOF
8060 #line $LINENO "configure"
8061 /* confdefs.h.  */
8062 _ACEOF
8063 cat confdefs.h >>conftest.$ac_ext
8064 cat >>conftest.$ac_ext <<_ACEOF
8065 /* end confdefs.h.  */
8066 #include <${cf_cv_ncurses_header-curses.h}>
8067 int
8068 main ()
8069 {
8070 #ifndef ${ac_func}
8071 int     (*p)() = ${ac_func};
8072 #endif
8073   ;
8074   return 0;
8075 }
8076 _ACEOF
8077 rm -f conftest.$ac_objext
8078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8079   (eval $ac_compile) 2>&5
8080   ac_status=$?
8081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082   (exit $ac_status); } &&
8083          { ac_try='test -s conftest.$ac_objext'
8084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8085   (eval $ac_try) 2>&5
8086   ac_status=$?
8087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088   (exit $ac_status); }; }; then
8089
8090 eval "ac_cv_func_decl_$ac_func=yes"
8091 else
8092   echo "$as_me: failed program was:" >&5
8093 sed 's/^/| /' conftest.$ac_ext >&5
8094
8095
8096 eval "ac_cv_func_decl_$ac_func=no"
8097 fi
8098 rm -f conftest.$ac_objext conftest.$ac_ext
8099 else
8100   echo "$as_me: failed program was:" >&5
8101 sed 's/^/| /' conftest.$ac_ext >&5
8102
8103
8104 eval "ac_cv_func_decl_$ac_func=yes"
8105 fi
8106 rm -f conftest.$ac_objext conftest.$ac_ext
8107 fi
8108
8109 if eval "test \"`echo '$ac_cv_func_'decl_$ac_func`\" = yes"; then
8110   echo "$as_me:$LINENO: result: yes" >&5
8111 echo "${ECHO_T}yes" >&6
8112
8113
8114 ac_tr_func=`echo HAVE_$ac_func | tr '[a-z]' '[A-Z]'`
8115
8116   cat >>confdefs.h <<_ACEOF
8117 #define $ac_tr_func 1
8118 _ACEOF
8119
8120 else
8121   echo "$as_me:$LINENO: result: no" >&5
8122 echo "${ECHO_T}no" >&6
8123 fi
8124 done
8125
8126         if test "$ac_cv_func_decl_start_color" = yes; then
8127
8128 cat >>confdefs.h <<\_ACEOF
8129 #define HAVE_COLOR 1
8130 _ACEOF
8131
8132         fi
8133         if test "$ac_cv_func_decl_resizeterm" = yes; then
8134                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
8135         fi
8136         LIBS="$old_LIBS"
8137
8138 fi;
8139
8140 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8141 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8142 if test "${ac_cv_header_stdc+set}" = set; then
8143   echo $ECHO_N "(cached) $ECHO_C" >&6
8144 else
8145   cat >conftest.$ac_ext <<_ACEOF
8146 #line $LINENO "configure"
8147 /* confdefs.h.  */
8148 _ACEOF
8149 cat confdefs.h >>conftest.$ac_ext
8150 cat >>conftest.$ac_ext <<_ACEOF
8151 /* end confdefs.h.  */
8152 #include <stdlib.h>
8153 #include <stdarg.h>
8154 #include <string.h>
8155 #include <float.h>
8156
8157 int
8158 main ()
8159 {
8160
8161   ;
8162   return 0;
8163 }
8164 _ACEOF
8165 rm -f conftest.$ac_objext
8166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8167   (eval $ac_compile) 2>&5
8168   ac_status=$?
8169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170   (exit $ac_status); } &&
8171          { ac_try='test -s conftest.$ac_objext'
8172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8173   (eval $ac_try) 2>&5
8174   ac_status=$?
8175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176   (exit $ac_status); }; }; then
8177   ac_cv_header_stdc=yes
8178 else
8179   echo "$as_me: failed program was:" >&5
8180 sed 's/^/| /' conftest.$ac_ext >&5
8181
8182 ac_cv_header_stdc=no
8183 fi
8184 rm -f conftest.$ac_objext conftest.$ac_ext
8185
8186 if test $ac_cv_header_stdc = yes; then
8187   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8188   cat >conftest.$ac_ext <<_ACEOF
8189 #line $LINENO "configure"
8190 /* confdefs.h.  */
8191 _ACEOF
8192 cat confdefs.h >>conftest.$ac_ext
8193 cat >>conftest.$ac_ext <<_ACEOF
8194 /* end confdefs.h.  */
8195 #include <string.h>
8196
8197 _ACEOF
8198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8199   $EGREP "memchr" >/dev/null 2>&1; then
8200   :
8201 else
8202   ac_cv_header_stdc=no
8203 fi
8204 rm -f conftest*
8205
8206 fi
8207
8208 if test $ac_cv_header_stdc = yes; then
8209   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8210   cat >conftest.$ac_ext <<_ACEOF
8211 #line $LINENO "configure"
8212 /* confdefs.h.  */
8213 _ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h.  */
8217 #include <stdlib.h>
8218
8219 _ACEOF
8220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8221   $EGREP "free" >/dev/null 2>&1; then
8222   :
8223 else
8224   ac_cv_header_stdc=no
8225 fi
8226 rm -f conftest*
8227
8228 fi
8229
8230 if test $ac_cv_header_stdc = yes; then
8231   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8232   if test "$cross_compiling" = yes; then
8233   :
8234 else
8235   cat >conftest.$ac_ext <<_ACEOF
8236 #line $LINENO "configure"
8237 /* confdefs.h.  */
8238 _ACEOF
8239 cat confdefs.h >>conftest.$ac_ext
8240 cat >>conftest.$ac_ext <<_ACEOF
8241 /* end confdefs.h.  */
8242 #include <ctype.h>
8243 #if ((' ' & 0x0FF) == 0x020)
8244 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8245 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8246 #else
8247 # define ISLOWER(c) \
8248                    (('a' <= (c) && (c) <= 'i') \
8249                      || ('j' <= (c) && (c) <= 'r') \
8250                      || ('s' <= (c) && (c) <= 'z'))
8251 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8252 #endif
8253
8254 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8255 int
8256 main ()
8257 {
8258   int i;
8259   for (i = 0; i < 256; i++)
8260     if (XOR (islower (i), ISLOWER (i))
8261         || toupper (i) != TOUPPER (i))
8262       exit(2);
8263   exit (0);
8264 }
8265 _ACEOF
8266 rm -f conftest$ac_exeext
8267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8268   (eval $ac_link) 2>&5
8269   ac_status=$?
8270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8273   (eval $ac_try) 2>&5
8274   ac_status=$?
8275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276   (exit $ac_status); }; }; then
8277   :
8278 else
8279   echo "$as_me: program exited with status $ac_status" >&5
8280 echo "$as_me: failed program was:" >&5
8281 sed 's/^/| /' conftest.$ac_ext >&5
8282
8283 ( exit $ac_status )
8284 ac_cv_header_stdc=no
8285 fi
8286 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8287 fi
8288 fi
8289 fi
8290 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8291 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8292 if test $ac_cv_header_stdc = yes; then
8293
8294 cat >>confdefs.h <<\_ACEOF
8295 #define STDC_HEADERS 1
8296 _ACEOF
8297
8298 fi
8299
8300
8301
8302
8303
8304
8305 for ac_header in stdarg.h sys/ioctl.h ioctl.h sysexits.h
8306 do
8307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8309   echo "$as_me:$LINENO: checking for $ac_header" >&5
8310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8311 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8312   echo $ECHO_N "(cached) $ECHO_C" >&6
8313 fi
8314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8316 else
8317   # Is the header compilable?
8318 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8319 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8320 cat >conftest.$ac_ext <<_ACEOF
8321 #line $LINENO "configure"
8322 /* confdefs.h.  */
8323 _ACEOF
8324 cat confdefs.h >>conftest.$ac_ext
8325 cat >>conftest.$ac_ext <<_ACEOF
8326 /* end confdefs.h.  */
8327 $ac_includes_default
8328 #include <$ac_header>
8329 _ACEOF
8330 rm -f conftest.$ac_objext
8331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8332   (eval $ac_compile) 2>&5
8333   ac_status=$?
8334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335   (exit $ac_status); } &&
8336          { ac_try='test -s conftest.$ac_objext'
8337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8338   (eval $ac_try) 2>&5
8339   ac_status=$?
8340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341   (exit $ac_status); }; }; then
8342   ac_header_compiler=yes
8343 else
8344   echo "$as_me: failed program was:" >&5
8345 sed 's/^/| /' conftest.$ac_ext >&5
8346
8347 ac_header_compiler=no
8348 fi
8349 rm -f conftest.$ac_objext conftest.$ac_ext
8350 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8351 echo "${ECHO_T}$ac_header_compiler" >&6
8352
8353 # Is the header present?
8354 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8355 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8356 cat >conftest.$ac_ext <<_ACEOF
8357 #line $LINENO "configure"
8358 /* confdefs.h.  */
8359 _ACEOF
8360 cat confdefs.h >>conftest.$ac_ext
8361 cat >>conftest.$ac_ext <<_ACEOF
8362 /* end confdefs.h.  */
8363 #include <$ac_header>
8364 _ACEOF
8365 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8366   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8367   ac_status=$?
8368   grep -v '^ *+' conftest.er1 >conftest.err
8369   rm -f conftest.er1
8370   cat conftest.err >&5
8371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372   (exit $ac_status); } >/dev/null; then
8373   if test -s conftest.err; then
8374     ac_cpp_err=$ac_c_preproc_warn_flag
8375   else
8376     ac_cpp_err=
8377   fi
8378 else
8379   ac_cpp_err=yes
8380 fi
8381 if test -z "$ac_cpp_err"; then
8382   ac_header_preproc=yes
8383 else
8384   echo "$as_me: failed program was:" >&5
8385 sed 's/^/| /' conftest.$ac_ext >&5
8386
8387   ac_header_preproc=no
8388 fi
8389 rm -f conftest.err conftest.$ac_ext
8390 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8391 echo "${ECHO_T}$ac_header_preproc" >&6
8392
8393 # So?  What about this header?
8394 case $ac_header_compiler:$ac_header_preproc in
8395   yes:no )
8396     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8397 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8398     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8400     (
8401       cat <<\_ASBOX
8402 ## ------------------------------------ ##
8403 ## Report this to bug-autoconf@gnu.org. ##
8404 ## ------------------------------------ ##
8405 _ASBOX
8406     ) |
8407       sed "s/^/$as_me: WARNING:     /" >&2
8408     ;;
8409   no:yes )
8410     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8411 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8412     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8413 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8414     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8415 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8416     (
8417       cat <<\_ASBOX
8418 ## ------------------------------------ ##
8419 ## Report this to bug-autoconf@gnu.org. ##
8420 ## ------------------------------------ ##
8421 _ASBOX
8422     ) |
8423       sed "s/^/$as_me: WARNING:     /" >&2
8424     ;;
8425 esac
8426 echo "$as_me:$LINENO: checking for $ac_header" >&5
8427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8429   echo $ECHO_N "(cached) $ECHO_C" >&6
8430 else
8431   eval "$as_ac_Header=$ac_header_preproc"
8432 fi
8433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8434 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8435
8436 fi
8437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8438   cat >>confdefs.h <<_ACEOF
8439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8440 _ACEOF
8441
8442 fi
8443
8444 done
8445
8446
8447
8448 for ac_header in sys/time.h sys/resource.h
8449 do
8450 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8451 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8452   echo "$as_me:$LINENO: checking for $ac_header" >&5
8453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8455   echo $ECHO_N "(cached) $ECHO_C" >&6
8456 fi
8457 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8458 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8459 else
8460   # Is the header compilable?
8461 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8462 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8463 cat >conftest.$ac_ext <<_ACEOF
8464 #line $LINENO "configure"
8465 /* confdefs.h.  */
8466 _ACEOF
8467 cat confdefs.h >>conftest.$ac_ext
8468 cat >>conftest.$ac_ext <<_ACEOF
8469 /* end confdefs.h.  */
8470 $ac_includes_default
8471 #include <$ac_header>
8472 _ACEOF
8473 rm -f conftest.$ac_objext
8474 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8475   (eval $ac_compile) 2>&5
8476   ac_status=$?
8477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478   (exit $ac_status); } &&
8479          { ac_try='test -s conftest.$ac_objext'
8480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8481   (eval $ac_try) 2>&5
8482   ac_status=$?
8483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484   (exit $ac_status); }; }; then
8485   ac_header_compiler=yes
8486 else
8487   echo "$as_me: failed program was:" >&5
8488 sed 's/^/| /' conftest.$ac_ext >&5
8489
8490 ac_header_compiler=no
8491 fi
8492 rm -f conftest.$ac_objext conftest.$ac_ext
8493 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8494 echo "${ECHO_T}$ac_header_compiler" >&6
8495
8496 # Is the header present?
8497 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8498 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8499 cat >conftest.$ac_ext <<_ACEOF
8500 #line $LINENO "configure"
8501 /* confdefs.h.  */
8502 _ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h.  */
8506 #include <$ac_header>
8507 _ACEOF
8508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8509   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8510   ac_status=$?
8511   grep -v '^ *+' conftest.er1 >conftest.err
8512   rm -f conftest.er1
8513   cat conftest.err >&5
8514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8515   (exit $ac_status); } >/dev/null; then
8516   if test -s conftest.err; then
8517     ac_cpp_err=$ac_c_preproc_warn_flag
8518   else
8519     ac_cpp_err=
8520   fi
8521 else
8522   ac_cpp_err=yes
8523 fi
8524 if test -z "$ac_cpp_err"; then
8525   ac_header_preproc=yes
8526 else
8527   echo "$as_me: failed program was:" >&5
8528 sed 's/^/| /' conftest.$ac_ext >&5
8529
8530   ac_header_preproc=no
8531 fi
8532 rm -f conftest.err conftest.$ac_ext
8533 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8534 echo "${ECHO_T}$ac_header_preproc" >&6
8535
8536 # So?  What about this header?
8537 case $ac_header_compiler:$ac_header_preproc in
8538   yes:no )
8539     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8541     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8543     (
8544       cat <<\_ASBOX
8545 ## ------------------------------------ ##
8546 ## Report this to bug-autoconf@gnu.org. ##
8547 ## ------------------------------------ ##
8548 _ASBOX
8549     ) |
8550       sed "s/^/$as_me: WARNING:     /" >&2
8551     ;;
8552   no:yes )
8553     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8554 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8555     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8556 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8557     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8558 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8559     (
8560       cat <<\_ASBOX
8561 ## ------------------------------------ ##
8562 ## Report this to bug-autoconf@gnu.org. ##
8563 ## ------------------------------------ ##
8564 _ASBOX
8565     ) |
8566       sed "s/^/$as_me: WARNING:     /" >&2
8567     ;;
8568 esac
8569 echo "$as_me:$LINENO: checking for $ac_header" >&5
8570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8571 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8572   echo $ECHO_N "(cached) $ECHO_C" >&6
8573 else
8574   eval "$as_ac_Header=$ac_header_preproc"
8575 fi
8576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8578
8579 fi
8580 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8581   cat >>confdefs.h <<_ACEOF
8582 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8583 _ACEOF
8584
8585 fi
8586
8587 done
8588
8589
8590 for ac_header in unix.h
8591 do
8592 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8594   echo "$as_me:$LINENO: checking for $ac_header" >&5
8595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8597   echo $ECHO_N "(cached) $ECHO_C" >&6
8598 fi
8599 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8600 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8601 else
8602   # Is the header compilable?
8603 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8604 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8605 cat >conftest.$ac_ext <<_ACEOF
8606 #line $LINENO "configure"
8607 /* confdefs.h.  */
8608 _ACEOF
8609 cat confdefs.h >>conftest.$ac_ext
8610 cat >>conftest.$ac_ext <<_ACEOF
8611 /* end confdefs.h.  */
8612 $ac_includes_default
8613 #include <$ac_header>
8614 _ACEOF
8615 rm -f conftest.$ac_objext
8616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8617   (eval $ac_compile) 2>&5
8618   ac_status=$?
8619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620   (exit $ac_status); } &&
8621          { ac_try='test -s conftest.$ac_objext'
8622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8623   (eval $ac_try) 2>&5
8624   ac_status=$?
8625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626   (exit $ac_status); }; }; then
8627   ac_header_compiler=yes
8628 else
8629   echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8631
8632 ac_header_compiler=no
8633 fi
8634 rm -f conftest.$ac_objext conftest.$ac_ext
8635 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8636 echo "${ECHO_T}$ac_header_compiler" >&6
8637
8638 # Is the header present?
8639 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8640 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8641 cat >conftest.$ac_ext <<_ACEOF
8642 #line $LINENO "configure"
8643 /* confdefs.h.  */
8644 _ACEOF
8645 cat confdefs.h >>conftest.$ac_ext
8646 cat >>conftest.$ac_ext <<_ACEOF
8647 /* end confdefs.h.  */
8648 #include <$ac_header>
8649 _ACEOF
8650 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8651   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8652   ac_status=$?
8653   grep -v '^ *+' conftest.er1 >conftest.err
8654   rm -f conftest.er1
8655   cat conftest.err >&5
8656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657   (exit $ac_status); } >/dev/null; then
8658   if test -s conftest.err; then
8659     ac_cpp_err=$ac_c_preproc_warn_flag
8660   else
8661     ac_cpp_err=
8662   fi
8663 else
8664   ac_cpp_err=yes
8665 fi
8666 if test -z "$ac_cpp_err"; then
8667   ac_header_preproc=yes
8668 else
8669   echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8671
8672   ac_header_preproc=no
8673 fi
8674 rm -f conftest.err conftest.$ac_ext
8675 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8676 echo "${ECHO_T}$ac_header_preproc" >&6
8677
8678 # So?  What about this header?
8679 case $ac_header_compiler:$ac_header_preproc in
8680   yes:no )
8681     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8682 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8683     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8685     (
8686       cat <<\_ASBOX
8687 ## ------------------------------------ ##
8688 ## Report this to bug-autoconf@gnu.org. ##
8689 ## ------------------------------------ ##
8690 _ASBOX
8691     ) |
8692       sed "s/^/$as_me: WARNING:     /" >&2
8693     ;;
8694   no:yes )
8695     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8696 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8697     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8698 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8699     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8700 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8701     (
8702       cat <<\_ASBOX
8703 ## ------------------------------------ ##
8704 ## Report this to bug-autoconf@gnu.org. ##
8705 ## ------------------------------------ ##
8706 _ASBOX
8707     ) |
8708       sed "s/^/$as_me: WARNING:     /" >&2
8709     ;;
8710 esac
8711 echo "$as_me:$LINENO: checking for $ac_header" >&5
8712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8713 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8714   echo $ECHO_N "(cached) $ECHO_C" >&6
8715 else
8716   eval "$as_ac_Header=$ac_header_preproc"
8717 fi
8718 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8719 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8720
8721 fi
8722 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8723   cat >>confdefs.h <<_ACEOF
8724 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8725 _ACEOF
8726
8727 fi
8728
8729 done
8730
8731
8732
8733
8734
8735 for ac_func in setrlimit getsid isctype
8736 do
8737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8738 echo "$as_me:$LINENO: checking for $ac_func" >&5
8739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8740 if eval "test \"\${$as_ac_var+set}\" = set"; then
8741   echo $ECHO_N "(cached) $ECHO_C" >&6
8742 else
8743   cat >conftest.$ac_ext <<_ACEOF
8744 #line $LINENO "configure"
8745 /* confdefs.h.  */
8746 _ACEOF
8747 cat confdefs.h >>conftest.$ac_ext
8748 cat >>conftest.$ac_ext <<_ACEOF
8749 /* end confdefs.h.  */
8750 /* System header to define __stub macros and hopefully few prototypes,
8751     which can conflict with char $ac_func (); below.
8752     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8753     <limits.h> exists even on freestanding compilers.  */
8754 #ifdef __STDC__
8755 # include <limits.h>
8756 #else
8757 # include <assert.h>
8758 #endif
8759 /* Override any gcc2 internal prototype to avoid an error.  */
8760 #ifdef __cplusplus
8761 extern "C"
8762 {
8763 #endif
8764 /* We use char because int might match the return type of a gcc2
8765    builtin and then its argument prototype would still apply.  */
8766 char $ac_func ();
8767 /* The GNU C library defines this for functions which it implements
8768     to always fail with ENOSYS.  Some functions are actually named
8769     something starting with __ and the normal name is an alias.  */
8770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8771 choke me
8772 #else
8773 char (*f) () = $ac_func;
8774 #endif
8775 #ifdef __cplusplus
8776 }
8777 #endif
8778
8779 int
8780 main ()
8781 {
8782 return f != $ac_func;
8783   ;
8784   return 0;
8785 }
8786 _ACEOF
8787 rm -f conftest.$ac_objext conftest$ac_exeext
8788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8789   (eval $ac_link) 2>&5
8790   ac_status=$?
8791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792   (exit $ac_status); } &&
8793          { ac_try='test -s conftest$ac_exeext'
8794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8795   (eval $ac_try) 2>&5
8796   ac_status=$?
8797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8798   (exit $ac_status); }; }; then
8799   eval "$as_ac_var=yes"
8800 else
8801   echo "$as_me: failed program was:" >&5
8802 sed 's/^/| /' conftest.$ac_ext >&5
8803
8804 eval "$as_ac_var=no"
8805 fi
8806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8807 fi
8808 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8809 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8810 if test `eval echo '${'$as_ac_var'}'` = yes; then
8811   cat >>confdefs.h <<_ACEOF
8812 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8813 _ACEOF
8814
8815 fi
8816 done
8817
8818
8819 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8820 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
8821 if test "${ac_cv_type_signal+set}" = set; then
8822   echo $ECHO_N "(cached) $ECHO_C" >&6
8823 else
8824   cat >conftest.$ac_ext <<_ACEOF
8825 #line $LINENO "configure"
8826 /* confdefs.h.  */
8827 _ACEOF
8828 cat confdefs.h >>conftest.$ac_ext
8829 cat >>conftest.$ac_ext <<_ACEOF
8830 /* end confdefs.h.  */
8831 #include <sys/types.h>
8832 #include <signal.h>
8833 #ifdef signal
8834 # undef signal
8835 #endif
8836 #ifdef __cplusplus
8837 extern "C" void (*signal (int, void (*)(int)))(int);
8838 #else
8839 void (*signal ()) ();
8840 #endif
8841
8842 int
8843 main ()
8844 {
8845 int i;
8846   ;
8847   return 0;
8848 }
8849 _ACEOF
8850 rm -f conftest.$ac_objext
8851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8852   (eval $ac_compile) 2>&5
8853   ac_status=$?
8854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855   (exit $ac_status); } &&
8856          { ac_try='test -s conftest.$ac_objext'
8857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8858   (eval $ac_try) 2>&5
8859   ac_status=$?
8860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861   (exit $ac_status); }; }; then
8862   ac_cv_type_signal=void
8863 else
8864   echo "$as_me: failed program was:" >&5
8865 sed 's/^/| /' conftest.$ac_ext >&5
8866
8867 ac_cv_type_signal=int
8868 fi
8869 rm -f conftest.$ac_objext conftest.$ac_ext
8870 fi
8871 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8872 echo "${ECHO_T}$ac_cv_type_signal" >&6
8873
8874 cat >>confdefs.h <<_ACEOF
8875 #define RETSIGTYPE $ac_cv_type_signal
8876 _ACEOF
8877
8878
8879
8880 echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5
8881 echo $ECHO_N "checking for sig_atomic_t in signal.h... $ECHO_C" >&6
8882 cat >conftest.$ac_ext <<_ACEOF
8883 #line $LINENO "configure"
8884 /* confdefs.h.  */
8885 _ACEOF
8886 cat confdefs.h >>conftest.$ac_ext
8887 cat >>conftest.$ac_ext <<_ACEOF
8888 /* end confdefs.h.  */
8889 #include <signal.h>
8890
8891 _ACEOF
8892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8893   $EGREP "sig_atomic_t" >/dev/null 2>&1; then
8894
8895     ac_cv_type_sig_atomic_t=yes;
8896     cat >conftest.$ac_ext <<_ACEOF
8897 #line $LINENO "configure"
8898 /* confdefs.h.  */
8899 _ACEOF
8900 cat confdefs.h >>conftest.$ac_ext
8901 cat >>conftest.$ac_ext <<_ACEOF
8902 /* end confdefs.h.  */
8903 #include <signal.h>
8904
8905 _ACEOF
8906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8907   $EGREP "volatile.*sig_atomic_t" >/dev/null 2>&1; then
8908
8909                         is_sig_atomic_t_volatile=yes;
8910                         echo "$as_me:$LINENO: result: yes, volatile" >&5
8911 echo "${ECHO_T}yes, volatile" >&6
8912
8913 else
8914
8915                         is_sig_atomic_t_volatile=no;
8916                         echo "$as_me:$LINENO: result: yes, non volatile" >&5
8917 echo "${ECHO_T}yes, non volatile" >&6
8918
8919 fi
8920 rm -f conftest*
8921
8922
8923 else
8924
8925     echo "$as_me:$LINENO: result: no" >&5
8926 echo "${ECHO_T}no" >&6
8927     echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
8928 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
8929 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
8930   echo $ECHO_N "(cached) $ECHO_C" >&6
8931 else
8932   cat >conftest.$ac_ext <<_ACEOF
8933 #line $LINENO "configure"
8934 /* confdefs.h.  */
8935 _ACEOF
8936 cat confdefs.h >>conftest.$ac_ext
8937 cat >>conftest.$ac_ext <<_ACEOF
8938 /* end confdefs.h.  */
8939 $ac_includes_default
8940 int
8941 main ()
8942 {
8943 if ((sig_atomic_t *) 0)
8944   return 0;
8945 if (sizeof (sig_atomic_t))
8946   return 0;
8947   ;
8948   return 0;
8949 }
8950 _ACEOF
8951 rm -f conftest.$ac_objext
8952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8953   (eval $ac_compile) 2>&5
8954   ac_status=$?
8955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956   (exit $ac_status); } &&
8957          { ac_try='test -s conftest.$ac_objext'
8958   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959   (eval $ac_try) 2>&5
8960   ac_status=$?
8961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962   (exit $ac_status); }; }; then
8963   ac_cv_type_sig_atomic_t=yes
8964 else
8965   echo "$as_me: failed program was:" >&5
8966 sed 's/^/| /' conftest.$ac_ext >&5
8967
8968 ac_cv_type_sig_atomic_t=no
8969 fi
8970 rm -f conftest.$ac_objext conftest.$ac_ext
8971 fi
8972 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
8973 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
8974 if test $ac_cv_type_sig_atomic_t = yes; then
8975   :
8976 else
8977
8978 cat >>confdefs.h <<_ACEOF
8979 #define sig_atomic_t int
8980 _ACEOF
8981
8982 fi
8983
8984     is_sig_atomic_t_volatile=no
8985
8986 fi
8987 rm -f conftest*
8988
8989 if test $is_sig_atomic_t_volatile = 'yes'
8990 then
8991     cat >>confdefs.h <<\_ACEOF
8992 #define SIG_ATOMIC_VOLATILE_T sig_atomic_t
8993 _ACEOF
8994
8995 else
8996     cat >>confdefs.h <<\_ACEOF
8997 #define SIG_ATOMIC_VOLATILE_T volatile sig_atomic_t
8998 _ACEOF
8999
9000 fi
9001
9002 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
9003 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
9004 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
9005   echo $ECHO_N "(cached) $ECHO_C" >&6
9006 else
9007   cat >conftest.$ac_ext <<_ACEOF
9008 #line $LINENO "configure"
9009 /* confdefs.h.  */
9010 _ACEOF
9011 cat confdefs.h >>conftest.$ac_ext
9012 cat >>conftest.$ac_ext <<_ACEOF
9013 /* end confdefs.h.  */
9014 $ac_includes_default
9015 int
9016 main ()
9017 {
9018 #ifndef sys_siglist
9019   char *p = (char *) sys_siglist;
9020 #endif
9021
9022   ;
9023   return 0;
9024 }
9025 _ACEOF
9026 rm -f conftest.$ac_objext
9027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9028   (eval $ac_compile) 2>&5
9029   ac_status=$?
9030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031   (exit $ac_status); } &&
9032          { ac_try='test -s conftest.$ac_objext'
9033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9034   (eval $ac_try) 2>&5
9035   ac_status=$?
9036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037   (exit $ac_status); }; }; then
9038   ac_cv_have_decl_sys_siglist=yes
9039 else
9040   echo "$as_me: failed program was:" >&5
9041 sed 's/^/| /' conftest.$ac_ext >&5
9042
9043 ac_cv_have_decl_sys_siglist=no
9044 fi
9045 rm -f conftest.$ac_objext conftest.$ac_ext
9046 fi
9047 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
9048 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
9049 if test $ac_cv_have_decl_sys_siglist = yes; then
9050
9051 cat >>confdefs.h <<_ACEOF
9052 #define HAVE_DECL_SYS_SIGLIST 1
9053 _ACEOF
9054
9055
9056 else
9057   cat >>confdefs.h <<_ACEOF
9058 #define HAVE_DECL_SYS_SIGLIST 0
9059 _ACEOF
9060
9061
9062 fi
9063
9064
9065
9066
9067 echo "$as_me:$LINENO: checking for pid_t" >&5
9068 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9069 if test "${ac_cv_type_pid_t+set}" = set; then
9070   echo $ECHO_N "(cached) $ECHO_C" >&6
9071 else
9072   cat >conftest.$ac_ext <<_ACEOF
9073 #line $LINENO "configure"
9074 /* confdefs.h.  */
9075 _ACEOF
9076 cat confdefs.h >>conftest.$ac_ext
9077 cat >>conftest.$ac_ext <<_ACEOF
9078 /* end confdefs.h.  */
9079 $ac_includes_default
9080 int
9081 main ()
9082 {
9083 if ((pid_t *) 0)
9084   return 0;
9085 if (sizeof (pid_t))
9086   return 0;
9087   ;
9088   return 0;
9089 }
9090 _ACEOF
9091 rm -f conftest.$ac_objext
9092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9093   (eval $ac_compile) 2>&5
9094   ac_status=$?
9095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096   (exit $ac_status); } &&
9097          { ac_try='test -s conftest.$ac_objext'
9098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9099   (eval $ac_try) 2>&5
9100   ac_status=$?
9101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102   (exit $ac_status); }; }; then
9103   ac_cv_type_pid_t=yes
9104 else
9105   echo "$as_me: failed program was:" >&5
9106 sed 's/^/| /' conftest.$ac_ext >&5
9107
9108 ac_cv_type_pid_t=no
9109 fi
9110 rm -f conftest.$ac_objext conftest.$ac_ext
9111 fi
9112 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9113 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9114 if test $ac_cv_type_pid_t = yes; then
9115   :
9116 else
9117
9118 cat >>confdefs.h <<_ACEOF
9119 #define pid_t int
9120 _ACEOF
9121
9122 fi
9123
9124
9125
9126
9127
9128
9129
9130 for ac_func in fgetpos memmove setegid srand48 strerror
9131 do
9132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9133 echo "$as_me:$LINENO: checking for $ac_func" >&5
9134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9135 if eval "test \"\${$as_ac_var+set}\" = set"; then
9136   echo $ECHO_N "(cached) $ECHO_C" >&6
9137 else
9138   cat >conftest.$ac_ext <<_ACEOF
9139 #line $LINENO "configure"
9140 /* confdefs.h.  */
9141 _ACEOF
9142 cat confdefs.h >>conftest.$ac_ext
9143 cat >>conftest.$ac_ext <<_ACEOF
9144 /* end confdefs.h.  */
9145 /* System header to define __stub macros and hopefully few prototypes,
9146     which can conflict with char $ac_func (); below.
9147     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9148     <limits.h> exists even on freestanding compilers.  */
9149 #ifdef __STDC__
9150 # include <limits.h>
9151 #else
9152 # include <assert.h>
9153 #endif
9154 /* Override any gcc2 internal prototype to avoid an error.  */
9155 #ifdef __cplusplus
9156 extern "C"
9157 {
9158 #endif
9159 /* We use char because int might match the return type of a gcc2
9160    builtin and then its argument prototype would still apply.  */
9161 char $ac_func ();
9162 /* The GNU C library defines this for functions which it implements
9163     to always fail with ENOSYS.  Some functions are actually named
9164     something starting with __ and the normal name is an alias.  */
9165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9166 choke me
9167 #else
9168 char (*f) () = $ac_func;
9169 #endif
9170 #ifdef __cplusplus
9171 }
9172 #endif
9173
9174 int
9175 main ()
9176 {
9177 return f != $ac_func;
9178   ;
9179   return 0;
9180 }
9181 _ACEOF
9182 rm -f conftest.$ac_objext conftest$ac_exeext
9183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9184   (eval $ac_link) 2>&5
9185   ac_status=$?
9186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187   (exit $ac_status); } &&
9188          { ac_try='test -s conftest$ac_exeext'
9189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9190   (eval $ac_try) 2>&5
9191   ac_status=$?
9192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193   (exit $ac_status); }; }; then
9194   eval "$as_ac_var=yes"
9195 else
9196   echo "$as_me: failed program was:" >&5
9197 sed 's/^/| /' conftest.$ac_ext >&5
9198
9199 eval "$as_ac_var=no"
9200 fi
9201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9202 fi
9203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9204 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9205 if test `eval echo '${'$as_ac_var'}'` = yes; then
9206   cat >>confdefs.h <<_ACEOF
9207 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9208 _ACEOF
9209
9210 fi
9211 done
9212
9213
9214
9215
9216 for ac_func in strcasecmp strdup
9217 do
9218 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9219 echo "$as_me:$LINENO: checking for $ac_func" >&5
9220 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9221 if eval "test \"\${$as_ac_var+set}\" = set"; then
9222   echo $ECHO_N "(cached) $ECHO_C" >&6
9223 else
9224   cat >conftest.$ac_ext <<_ACEOF
9225 #line $LINENO "configure"
9226 /* confdefs.h.  */
9227 _ACEOF
9228 cat confdefs.h >>conftest.$ac_ext
9229 cat >>conftest.$ac_ext <<_ACEOF
9230 /* end confdefs.h.  */
9231 /* System header to define __stub macros and hopefully few prototypes,
9232     which can conflict with char $ac_func (); below.
9233     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9234     <limits.h> exists even on freestanding compilers.  */
9235 #ifdef __STDC__
9236 # include <limits.h>
9237 #else
9238 # include <assert.h>
9239 #endif
9240 /* Override any gcc2 internal prototype to avoid an error.  */
9241 #ifdef __cplusplus
9242 extern "C"
9243 {
9244 #endif
9245 /* We use char because int might match the return type of a gcc2
9246    builtin and then its argument prototype would still apply.  */
9247 char $ac_func ();
9248 /* The GNU C library defines this for functions which it implements
9249     to always fail with ENOSYS.  Some functions are actually named
9250     something starting with __ and the normal name is an alias.  */
9251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9252 choke me
9253 #else
9254 char (*f) () = $ac_func;
9255 #endif
9256 #ifdef __cplusplus
9257 }
9258 #endif
9259
9260 int
9261 main ()
9262 {
9263 return f != $ac_func;
9264   ;
9265   return 0;
9266 }
9267 _ACEOF
9268 rm -f conftest.$ac_objext conftest$ac_exeext
9269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9270   (eval $ac_link) 2>&5
9271   ac_status=$?
9272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273   (exit $ac_status); } &&
9274          { ac_try='test -s conftest$ac_exeext'
9275   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9276   (eval $ac_try) 2>&5
9277   ac_status=$?
9278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279   (exit $ac_status); }; }; then
9280   eval "$as_ac_var=yes"
9281 else
9282   echo "$as_me: failed program was:" >&5
9283 sed 's/^/| /' conftest.$ac_ext >&5
9284
9285 eval "$as_ac_var=no"
9286 fi
9287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9288 fi
9289 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9290 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9291 if test `eval echo '${'$as_ac_var'}'` = yes; then
9292   cat >>confdefs.h <<_ACEOF
9293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9294 _ACEOF
9295
9296 else
9297   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
9298 fi
9299 done
9300
9301
9302
9303 echo "$as_me:$LINENO: checking for getopt" >&5
9304 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
9305 if test "${ac_cv_func_getopt+set}" = set; then
9306   echo $ECHO_N "(cached) $ECHO_C" >&6
9307 else
9308   cat >conftest.$ac_ext <<_ACEOF
9309 #line $LINENO "configure"
9310 /* confdefs.h.  */
9311 _ACEOF
9312 cat confdefs.h >>conftest.$ac_ext
9313 cat >>conftest.$ac_ext <<_ACEOF
9314 /* end confdefs.h.  */
9315 /* System header to define __stub macros and hopefully few prototypes,
9316     which can conflict with char getopt (); below.
9317     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9318     <limits.h> exists even on freestanding compilers.  */
9319 #ifdef __STDC__
9320 # include <limits.h>
9321 #else
9322 # include <assert.h>
9323 #endif
9324 /* Override any gcc2 internal prototype to avoid an error.  */
9325 #ifdef __cplusplus
9326 extern "C"
9327 {
9328 #endif
9329 /* We use char because int might match the return type of a gcc2
9330    builtin and then its argument prototype would still apply.  */
9331 char getopt ();
9332 /* The GNU C library defines this for functions which it implements
9333     to always fail with ENOSYS.  Some functions are actually named
9334     something starting with __ and the normal name is an alias.  */
9335 #if defined (__stub_getopt) || defined (__stub___getopt)
9336 choke me
9337 #else
9338 char (*f) () = getopt;
9339 #endif
9340 #ifdef __cplusplus
9341 }
9342 #endif
9343
9344 int
9345 main ()
9346 {
9347 return f != getopt;
9348   ;
9349   return 0;
9350 }
9351 _ACEOF
9352 rm -f conftest.$ac_objext conftest$ac_exeext
9353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9354   (eval $ac_link) 2>&5
9355   ac_status=$?
9356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357   (exit $ac_status); } &&
9358          { ac_try='test -s conftest$ac_exeext'
9359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9360   (eval $ac_try) 2>&5
9361   ac_status=$?
9362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363   (exit $ac_status); }; }; then
9364   ac_cv_func_getopt=yes
9365 else
9366   echo "$as_me: failed program was:" >&5
9367 sed 's/^/| /' conftest.$ac_ext >&5
9368
9369 ac_cv_func_getopt=no
9370 fi
9371 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9372 fi
9373 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
9374 echo "${ECHO_T}$ac_cv_func_getopt" >&6
9375
9376 if test $ac_cv_func_getopt = yes; then
9377
9378 for ac_header in getopt.h
9379 do
9380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9381 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9382   echo "$as_me:$LINENO: checking for $ac_header" >&5
9383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9384 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9385   echo $ECHO_N "(cached) $ECHO_C" >&6
9386 fi
9387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9388 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9389 else
9390   # Is the header compilable?
9391 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9392 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9393 cat >conftest.$ac_ext <<_ACEOF
9394 #line $LINENO "configure"
9395 /* confdefs.h.  */
9396 _ACEOF
9397 cat confdefs.h >>conftest.$ac_ext
9398 cat >>conftest.$ac_ext <<_ACEOF
9399 /* end confdefs.h.  */
9400 $ac_includes_default
9401 #include <$ac_header>
9402 _ACEOF
9403 rm -f conftest.$ac_objext
9404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9405   (eval $ac_compile) 2>&5
9406   ac_status=$?
9407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408   (exit $ac_status); } &&
9409          { ac_try='test -s conftest.$ac_objext'
9410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9411   (eval $ac_try) 2>&5
9412   ac_status=$?
9413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414   (exit $ac_status); }; }; then
9415   ac_header_compiler=yes
9416 else
9417   echo "$as_me: failed program was:" >&5
9418 sed 's/^/| /' conftest.$ac_ext >&5
9419
9420 ac_header_compiler=no
9421 fi
9422 rm -f conftest.$ac_objext conftest.$ac_ext
9423 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9424 echo "${ECHO_T}$ac_header_compiler" >&6
9425
9426 # Is the header present?
9427 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9428 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9429 cat >conftest.$ac_ext <<_ACEOF
9430 #line $LINENO "configure"
9431 /* confdefs.h.  */
9432 _ACEOF
9433 cat confdefs.h >>conftest.$ac_ext
9434 cat >>conftest.$ac_ext <<_ACEOF
9435 /* end confdefs.h.  */
9436 #include <$ac_header>
9437 _ACEOF
9438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9439   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9440   ac_status=$?
9441   grep -v '^ *+' conftest.er1 >conftest.err
9442   rm -f conftest.er1
9443   cat conftest.err >&5
9444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9445   (exit $ac_status); } >/dev/null; then
9446   if test -s conftest.err; then
9447     ac_cpp_err=$ac_c_preproc_warn_flag
9448   else
9449     ac_cpp_err=
9450   fi
9451 else
9452   ac_cpp_err=yes
9453 fi
9454 if test -z "$ac_cpp_err"; then
9455   ac_header_preproc=yes
9456 else
9457   echo "$as_me: failed program was:" >&5
9458 sed 's/^/| /' conftest.$ac_ext >&5
9459
9460   ac_header_preproc=no
9461 fi
9462 rm -f conftest.err conftest.$ac_ext
9463 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9464 echo "${ECHO_T}$ac_header_preproc" >&6
9465
9466 # So?  What about this header?
9467 case $ac_header_compiler:$ac_header_preproc in
9468   yes:no )
9469     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9470 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9471     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9472 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9473     (
9474       cat <<\_ASBOX
9475 ## ------------------------------------ ##
9476 ## Report this to bug-autoconf@gnu.org. ##
9477 ## ------------------------------------ ##
9478 _ASBOX
9479     ) |
9480       sed "s/^/$as_me: WARNING:     /" >&2
9481     ;;
9482   no:yes )
9483     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9485     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9486 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9487     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9489     (
9490       cat <<\_ASBOX
9491 ## ------------------------------------ ##
9492 ## Report this to bug-autoconf@gnu.org. ##
9493 ## ------------------------------------ ##
9494 _ASBOX
9495     ) |
9496       sed "s/^/$as_me: WARNING:     /" >&2
9497     ;;
9498 esac
9499 echo "$as_me:$LINENO: checking for $ac_header" >&5
9500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9502   echo $ECHO_N "(cached) $ECHO_C" >&6
9503 else
9504   eval "$as_ac_Header=$ac_header_preproc"
9505 fi
9506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9508
9509 fi
9510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9511   cat >>confdefs.h <<_ACEOF
9512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9513 _ACEOF
9514
9515 fi
9516
9517 done
9518
9519 fi
9520
9521 mutt_cv_snprintf=no
9522 SNPRINTFOBJS=""
9523
9524 for ac_func in snprintf
9525 do
9526 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9527 echo "$as_me:$LINENO: checking for $ac_func" >&5
9528 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9529 if eval "test \"\${$as_ac_var+set}\" = set"; then
9530   echo $ECHO_N "(cached) $ECHO_C" >&6
9531 else
9532   cat >conftest.$ac_ext <<_ACEOF
9533 #line $LINENO "configure"
9534 /* confdefs.h.  */
9535 _ACEOF
9536 cat confdefs.h >>conftest.$ac_ext
9537 cat >>conftest.$ac_ext <<_ACEOF
9538 /* end confdefs.h.  */
9539 /* System header to define __stub macros and hopefully few prototypes,
9540     which can conflict with char $ac_func (); below.
9541     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9542     <limits.h> exists even on freestanding compilers.  */
9543 #ifdef __STDC__
9544 # include <limits.h>
9545 #else
9546 # include <assert.h>
9547 #endif
9548 /* Override any gcc2 internal prototype to avoid an error.  */
9549 #ifdef __cplusplus
9550 extern "C"
9551 {
9552 #endif
9553 /* We use char because int might match the return type of a gcc2
9554    builtin and then its argument prototype would still apply.  */
9555 char $ac_func ();
9556 /* The GNU C library defines this for functions which it implements
9557     to always fail with ENOSYS.  Some functions are actually named
9558     something starting with __ and the normal name is an alias.  */
9559 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9560 choke me
9561 #else
9562 char (*f) () = $ac_func;
9563 #endif
9564 #ifdef __cplusplus
9565 }
9566 #endif
9567
9568 int
9569 main ()
9570 {
9571 return f != $ac_func;
9572   ;
9573   return 0;
9574 }
9575 _ACEOF
9576 rm -f conftest.$ac_objext conftest$ac_exeext
9577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9578   (eval $ac_link) 2>&5
9579   ac_status=$?
9580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581   (exit $ac_status); } &&
9582          { ac_try='test -s conftest$ac_exeext'
9583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9584   (eval $ac_try) 2>&5
9585   ac_status=$?
9586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587   (exit $ac_status); }; }; then
9588   eval "$as_ac_var=yes"
9589 else
9590   echo "$as_me: failed program was:" >&5
9591 sed 's/^/| /' conftest.$ac_ext >&5
9592
9593 eval "$as_ac_var=no"
9594 fi
9595 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9596 fi
9597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9598 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9599 if test `eval echo '${'$as_ac_var'}'` = yes; then
9600   cat >>confdefs.h <<_ACEOF
9601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9602 _ACEOF
9603
9604 else
9605   mutt_cv_snprintf=yes
9606 fi
9607 done
9608
9609
9610 for ac_func in vsnprintf
9611 do
9612 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9613 echo "$as_me:$LINENO: checking for $ac_func" >&5
9614 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9615 if eval "test \"\${$as_ac_var+set}\" = set"; then
9616   echo $ECHO_N "(cached) $ECHO_C" >&6
9617 else
9618   cat >conftest.$ac_ext <<_ACEOF
9619 #line $LINENO "configure"
9620 /* confdefs.h.  */
9621 _ACEOF
9622 cat confdefs.h >>conftest.$ac_ext
9623 cat >>conftest.$ac_ext <<_ACEOF
9624 /* end confdefs.h.  */
9625 /* System header to define __stub macros and hopefully few prototypes,
9626     which can conflict with char $ac_func (); below.
9627     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9628     <limits.h> exists even on freestanding compilers.  */
9629 #ifdef __STDC__
9630 # include <limits.h>
9631 #else
9632 # include <assert.h>
9633 #endif
9634 /* Override any gcc2 internal prototype to avoid an error.  */
9635 #ifdef __cplusplus
9636 extern "C"
9637 {
9638 #endif
9639 /* We use char because int might match the return type of a gcc2
9640    builtin and then its argument prototype would still apply.  */
9641 char $ac_func ();
9642 /* The GNU C library defines this for functions which it implements
9643     to always fail with ENOSYS.  Some functions are actually named
9644     something starting with __ and the normal name is an alias.  */
9645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9646 choke me
9647 #else
9648 char (*f) () = $ac_func;
9649 #endif
9650 #ifdef __cplusplus
9651 }
9652 #endif
9653
9654 int
9655 main ()
9656 {
9657 return f != $ac_func;
9658   ;
9659   return 0;
9660 }
9661 _ACEOF
9662 rm -f conftest.$ac_objext conftest$ac_exeext
9663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9664   (eval $ac_link) 2>&5
9665   ac_status=$?
9666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667   (exit $ac_status); } &&
9668          { ac_try='test -s conftest$ac_exeext'
9669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9670   (eval $ac_try) 2>&5
9671   ac_status=$?
9672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673   (exit $ac_status); }; }; then
9674   eval "$as_ac_var=yes"
9675 else
9676   echo "$as_me: failed program was:" >&5
9677 sed 's/^/| /' conftest.$ac_ext >&5
9678
9679 eval "$as_ac_var=no"
9680 fi
9681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9682 fi
9683 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9684 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9685 if test `eval echo '${'$as_ac_var'}'` = yes; then
9686   cat >>confdefs.h <<_ACEOF
9687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9688 _ACEOF
9689
9690 else
9691   mutt_cv_snprintf=yes
9692 fi
9693 done
9694
9695 if test $mutt_cv_snprintf = yes; then
9696         LIBOBJS="$LIBOBJS snprintf.$ac_objext"
9697 fi
9698
9699
9700 for ac_func in ftruncate
9701 do
9702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9703 echo "$as_me:$LINENO: checking for $ac_func" >&5
9704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9705 if eval "test \"\${$as_ac_var+set}\" = set"; then
9706   echo $ECHO_N "(cached) $ECHO_C" >&6
9707 else
9708   cat >conftest.$ac_ext <<_ACEOF
9709 #line $LINENO "configure"
9710 /* confdefs.h.  */
9711 _ACEOF
9712 cat confdefs.h >>conftest.$ac_ext
9713 cat >>conftest.$ac_ext <<_ACEOF
9714 /* end confdefs.h.  */
9715 /* System header to define __stub macros and hopefully few prototypes,
9716     which can conflict with char $ac_func (); below.
9717     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9718     <limits.h> exists even on freestanding compilers.  */
9719 #ifdef __STDC__
9720 # include <limits.h>
9721 #else
9722 # include <assert.h>
9723 #endif
9724 /* Override any gcc2 internal prototype to avoid an error.  */
9725 #ifdef __cplusplus
9726 extern "C"
9727 {
9728 #endif
9729 /* We use char because int might match the return type of a gcc2
9730    builtin and then its argument prototype would still apply.  */
9731 char $ac_func ();
9732 /* The GNU C library defines this for functions which it implements
9733     to always fail with ENOSYS.  Some functions are actually named
9734     something starting with __ and the normal name is an alias.  */
9735 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9736 choke me
9737 #else
9738 char (*f) () = $ac_func;
9739 #endif
9740 #ifdef __cplusplus
9741 }
9742 #endif
9743
9744 int
9745 main ()
9746 {
9747 return f != $ac_func;
9748   ;
9749   return 0;
9750 }
9751 _ACEOF
9752 rm -f conftest.$ac_objext conftest$ac_exeext
9753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9754   (eval $ac_link) 2>&5
9755   ac_status=$?
9756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757   (exit $ac_status); } &&
9758          { ac_try='test -s conftest$ac_exeext'
9759   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9760   (eval $ac_try) 2>&5
9761   ac_status=$?
9762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9763   (exit $ac_status); }; }; then
9764   eval "$as_ac_var=yes"
9765 else
9766   echo "$as_me: failed program was:" >&5
9767 sed 's/^/| /' conftest.$ac_ext >&5
9768
9769 eval "$as_ac_var=no"
9770 fi
9771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9772 fi
9773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9774 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9775 if test `eval echo '${'$as_ac_var'}'` = yes; then
9776   cat >>confdefs.h <<_ACEOF
9777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9778 _ACEOF
9779
9780 else
9781
9782 echo "$as_me:$LINENO: checking for chsize in -lx" >&5
9783 echo $ECHO_N "checking for chsize in -lx... $ECHO_C" >&6
9784 if test "${ac_cv_lib_x_chsize+set}" = set; then
9785   echo $ECHO_N "(cached) $ECHO_C" >&6
9786 else
9787   ac_check_lib_save_LIBS=$LIBS
9788 LIBS="-lx  $LIBS"
9789 cat >conftest.$ac_ext <<_ACEOF
9790 #line $LINENO "configure"
9791 /* confdefs.h.  */
9792 _ACEOF
9793 cat confdefs.h >>conftest.$ac_ext
9794 cat >>conftest.$ac_ext <<_ACEOF
9795 /* end confdefs.h.  */
9796
9797 /* Override any gcc2 internal prototype to avoid an error.  */
9798 #ifdef __cplusplus
9799 extern "C"
9800 #endif
9801 /* We use char because int might match the return type of a gcc2
9802    builtin and then its argument prototype would still apply.  */
9803 char chsize ();
9804 int
9805 main ()
9806 {
9807 chsize ();
9808   ;
9809   return 0;
9810 }
9811 _ACEOF
9812 rm -f conftest.$ac_objext conftest$ac_exeext
9813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9814   (eval $ac_link) 2>&5
9815   ac_status=$?
9816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817   (exit $ac_status); } &&
9818          { ac_try='test -s conftest$ac_exeext'
9819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9820   (eval $ac_try) 2>&5
9821   ac_status=$?
9822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823   (exit $ac_status); }; }; then
9824   ac_cv_lib_x_chsize=yes
9825 else
9826   echo "$as_me: failed program was:" >&5
9827 sed 's/^/| /' conftest.$ac_ext >&5
9828
9829 ac_cv_lib_x_chsize=no
9830 fi
9831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9832 LIBS=$ac_check_lib_save_LIBS
9833 fi
9834 echo "$as_me:$LINENO: result: $ac_cv_lib_x_chsize" >&5
9835 echo "${ECHO_T}$ac_cv_lib_x_chsize" >&6
9836 if test $ac_cv_lib_x_chsize = yes; then
9837   cat >>confdefs.h <<_ACEOF
9838 #define HAVE_LIBX 1
9839 _ACEOF
9840
9841   LIBS="-lx $LIBS"
9842
9843 fi
9844
9845 fi
9846 done
9847
9848
9849
9850 for ac_func in strftime
9851 do
9852 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9853 echo "$as_me:$LINENO: checking for $ac_func" >&5
9854 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9855 if eval "test \"\${$as_ac_var+set}\" = set"; then
9856   echo $ECHO_N "(cached) $ECHO_C" >&6
9857 else
9858   cat >conftest.$ac_ext <<_ACEOF
9859 #line $LINENO "configure"
9860 /* confdefs.h.  */
9861 _ACEOF
9862 cat confdefs.h >>conftest.$ac_ext
9863 cat >>conftest.$ac_ext <<_ACEOF
9864 /* end confdefs.h.  */
9865 /* System header to define __stub macros and hopefully few prototypes,
9866     which can conflict with char $ac_func (); below.
9867     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9868     <limits.h> exists even on freestanding compilers.  */
9869 #ifdef __STDC__
9870 # include <limits.h>
9871 #else
9872 # include <assert.h>
9873 #endif
9874 /* Override any gcc2 internal prototype to avoid an error.  */
9875 #ifdef __cplusplus
9876 extern "C"
9877 {
9878 #endif
9879 /* We use char because int might match the return type of a gcc2
9880    builtin and then its argument prototype would still apply.  */
9881 char $ac_func ();
9882 /* The GNU C library defines this for functions which it implements
9883     to always fail with ENOSYS.  Some functions are actually named
9884     something starting with __ and the normal name is an alias.  */
9885 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9886 choke me
9887 #else
9888 char (*f) () = $ac_func;
9889 #endif
9890 #ifdef __cplusplus
9891 }
9892 #endif
9893
9894 int
9895 main ()
9896 {
9897 return f != $ac_func;
9898   ;
9899   return 0;
9900 }
9901 _ACEOF
9902 rm -f conftest.$ac_objext conftest$ac_exeext
9903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9904   (eval $ac_link) 2>&5
9905   ac_status=$?
9906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907   (exit $ac_status); } &&
9908          { ac_try='test -s conftest$ac_exeext'
9909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910   (eval $ac_try) 2>&5
9911   ac_status=$?
9912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913   (exit $ac_status); }; }; then
9914   eval "$as_ac_var=yes"
9915 else
9916   echo "$as_me: failed program was:" >&5
9917 sed 's/^/| /' conftest.$ac_ext >&5
9918
9919 eval "$as_ac_var=no"
9920 fi
9921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9922 fi
9923 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9924 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9925 if test `eval echo '${'$as_ac_var'}'` = yes; then
9926   cat >>confdefs.h <<_ACEOF
9927 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9928 _ACEOF
9929
9930 else
9931
9932 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
9933 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
9934 if test "${ac_cv_lib_intl_strftime+set}" = set; then
9935   echo $ECHO_N "(cached) $ECHO_C" >&6
9936 else
9937   ac_check_lib_save_LIBS=$LIBS
9938 LIBS="-lintl  $LIBS"
9939 cat >conftest.$ac_ext <<_ACEOF
9940 #line $LINENO "configure"
9941 /* confdefs.h.  */
9942 _ACEOF
9943 cat confdefs.h >>conftest.$ac_ext
9944 cat >>conftest.$ac_ext <<_ACEOF
9945 /* end confdefs.h.  */
9946
9947 /* Override any gcc2 internal prototype to avoid an error.  */
9948 #ifdef __cplusplus
9949 extern "C"
9950 #endif
9951 /* We use char because int might match the return type of a gcc2
9952    builtin and then its argument prototype would still apply.  */
9953 char strftime ();
9954 int
9955 main ()
9956 {
9957 strftime ();
9958   ;
9959   return 0;
9960 }
9961 _ACEOF
9962 rm -f conftest.$ac_objext conftest$ac_exeext
9963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9964   (eval $ac_link) 2>&5
9965   ac_status=$?
9966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967   (exit $ac_status); } &&
9968          { ac_try='test -s conftest$ac_exeext'
9969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970   (eval $ac_try) 2>&5
9971   ac_status=$?
9972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973   (exit $ac_status); }; }; then
9974   ac_cv_lib_intl_strftime=yes
9975 else
9976   echo "$as_me: failed program was:" >&5
9977 sed 's/^/| /' conftest.$ac_ext >&5
9978
9979 ac_cv_lib_intl_strftime=no
9980 fi
9981 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9982 LIBS=$ac_check_lib_save_LIBS
9983 fi
9984 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
9985 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
9986 if test $ac_cv_lib_intl_strftime = yes; then
9987   cat >>confdefs.h <<_ACEOF
9988 #define HAVE_LIBINTL 1
9989 _ACEOF
9990
9991   LIBS="-lintl $LIBS"
9992
9993 fi
9994
9995 fi
9996 done
9997
9998
9999
10000 for ac_func in fchdir
10001 do
10002 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10003 echo "$as_me:$LINENO: checking for $ac_func" >&5
10004 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10005 if eval "test \"\${$as_ac_var+set}\" = set"; then
10006   echo $ECHO_N "(cached) $ECHO_C" >&6
10007 else
10008   cat >conftest.$ac_ext <<_ACEOF
10009 #line $LINENO "configure"
10010 /* confdefs.h.  */
10011 _ACEOF
10012 cat confdefs.h >>conftest.$ac_ext
10013 cat >>conftest.$ac_ext <<_ACEOF
10014 /* end confdefs.h.  */
10015 /* System header to define __stub macros and hopefully few prototypes,
10016     which can conflict with char $ac_func (); below.
10017     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10018     <limits.h> exists even on freestanding compilers.  */
10019 #ifdef __STDC__
10020 # include <limits.h>
10021 #else
10022 # include <assert.h>
10023 #endif
10024 /* Override any gcc2 internal prototype to avoid an error.  */
10025 #ifdef __cplusplus
10026 extern "C"
10027 {
10028 #endif
10029 /* We use char because int might match the return type of a gcc2
10030    builtin and then its argument prototype would still apply.  */
10031 char $ac_func ();
10032 /* The GNU C library defines this for functions which it implements
10033     to always fail with ENOSYS.  Some functions are actually named
10034     something starting with __ and the normal name is an alias.  */
10035 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10036 choke me
10037 #else
10038 char (*f) () = $ac_func;
10039 #endif
10040 #ifdef __cplusplus
10041 }
10042 #endif
10043
10044 int
10045 main ()
10046 {
10047 return f != $ac_func;
10048   ;
10049   return 0;
10050 }
10051 _ACEOF
10052 rm -f conftest.$ac_objext conftest$ac_exeext
10053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10054   (eval $ac_link) 2>&5
10055   ac_status=$?
10056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057   (exit $ac_status); } &&
10058          { ac_try='test -s conftest$ac_exeext'
10059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10060   (eval $ac_try) 2>&5
10061   ac_status=$?
10062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063   (exit $ac_status); }; }; then
10064   eval "$as_ac_var=yes"
10065 else
10066   echo "$as_me: failed program was:" >&5
10067 sed 's/^/| /' conftest.$ac_ext >&5
10068
10069 eval "$as_ac_var=no"
10070 fi
10071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10072 fi
10073 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10074 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10075 if test `eval echo '${'$as_ac_var'}'` = yes; then
10076   cat >>confdefs.h <<_ACEOF
10077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10078 _ACEOF
10079
10080 else
10081   mutt_cv_fchdir=no
10082 fi
10083 done
10084
10085
10086
10087 # Check whether --with-regex or --without-regex was given.
10088 if test "${with_regex+set}" = set; then
10089   withval="$with_regex"
10090   mutt_cv_regex=yes
10091 else
10092
10093 for ac_func in regcomp
10094 do
10095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10096 echo "$as_me:$LINENO: checking for $ac_func" >&5
10097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10098 if eval "test \"\${$as_ac_var+set}\" = set"; then
10099   echo $ECHO_N "(cached) $ECHO_C" >&6
10100 else
10101   cat >conftest.$ac_ext <<_ACEOF
10102 #line $LINENO "configure"
10103 /* confdefs.h.  */
10104 _ACEOF
10105 cat confdefs.h >>conftest.$ac_ext
10106 cat >>conftest.$ac_ext <<_ACEOF
10107 /* end confdefs.h.  */
10108 /* System header to define __stub macros and hopefully few prototypes,
10109     which can conflict with char $ac_func (); below.
10110     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10111     <limits.h> exists even on freestanding compilers.  */
10112 #ifdef __STDC__
10113 # include <limits.h>
10114 #else
10115 # include <assert.h>
10116 #endif
10117 /* Override any gcc2 internal prototype to avoid an error.  */
10118 #ifdef __cplusplus
10119 extern "C"
10120 {
10121 #endif
10122 /* We use char because int might match the return type of a gcc2
10123    builtin and then its argument prototype would still apply.  */
10124 char $ac_func ();
10125 /* The GNU C library defines this for functions which it implements
10126     to always fail with ENOSYS.  Some functions are actually named
10127     something starting with __ and the normal name is an alias.  */
10128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10129 choke me
10130 #else
10131 char (*f) () = $ac_func;
10132 #endif
10133 #ifdef __cplusplus
10134 }
10135 #endif
10136
10137 int
10138 main ()
10139 {
10140 return f != $ac_func;
10141   ;
10142   return 0;
10143 }
10144 _ACEOF
10145 rm -f conftest.$ac_objext conftest$ac_exeext
10146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10147   (eval $ac_link) 2>&5
10148   ac_status=$?
10149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10150   (exit $ac_status); } &&
10151          { ac_try='test -s conftest$ac_exeext'
10152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10153   (eval $ac_try) 2>&5
10154   ac_status=$?
10155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156   (exit $ac_status); }; }; then
10157   eval "$as_ac_var=yes"
10158 else
10159   echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10161
10162 eval "$as_ac_var=no"
10163 fi
10164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10165 fi
10166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10167 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10168 if test `eval echo '${'$as_ac_var'}'` = yes; then
10169   cat >>confdefs.h <<_ACEOF
10170 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10171 _ACEOF
10172  mutt_cv_regex=no
10173 else
10174   mutt_cv_regex=yes
10175 fi
10176 done
10177
10178 fi;
10179
10180 if test $mutt_cv_regex = no ; then
10181 echo "$as_me:$LINENO: checking whether your system's regexp library is completely broken" >&5
10182 echo $ECHO_N "checking whether your system's regexp library is completely broken... $ECHO_C" >&6
10183 if test "${mutt_cv_regex_broken+set}" = set; then
10184   echo $ECHO_N "(cached) $ECHO_C" >&6
10185 else
10186   if test "$cross_compiling" = yes; then
10187   mutt_cv_regex_broken=yes
10188 else
10189   cat >conftest.$ac_ext <<_ACEOF
10190 #line $LINENO "configure"
10191 /* confdefs.h.  */
10192 _ACEOF
10193 cat confdefs.h >>conftest.$ac_ext
10194 cat >>conftest.$ac_ext <<_ACEOF
10195 /* end confdefs.h.  */
10196
10197 #include <unistd.h>
10198 #include <regex.h>
10199 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); }
10200 _ACEOF
10201 rm -f conftest$ac_exeext
10202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10203   (eval $ac_link) 2>&5
10204   ac_status=$?
10205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10208   (eval $ac_try) 2>&5
10209   ac_status=$?
10210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211   (exit $ac_status); }; }; then
10212   mutt_cv_regex_broken=no
10213 else
10214   echo "$as_me: program exited with status $ac_status" >&5
10215 echo "$as_me: failed program was:" >&5
10216 sed 's/^/| /' conftest.$ac_ext >&5
10217
10218 ( exit $ac_status )
10219 mutt_cv_regex_broken=yes
10220 fi
10221 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10222 fi
10223 fi
10224 echo "$as_me:$LINENO: result: $mutt_cv_regex_broken" >&5
10225 echo "${ECHO_T}$mutt_cv_regex_broken" >&6
10226         if test $mutt_cv_regex_broken = yes ; then
10227                 echo "Using the included GNU regex instead." >&6
10228                 mutt_cv_regex=yes
10229         fi
10230 fi
10231
10232 if test $mutt_cv_regex = yes; then
10233
10234 cat >>confdefs.h <<\_ACEOF
10235 #define USE_GNU_REGEX 1
10236 _ACEOF
10237
10238         LIBOBJS="$LIBOBJS regex.$ac_objext"
10239 fi
10240
10241
10242
10243 # Check whether --with-homespool or --without-homespool was given.
10244 if test "${with_homespool+set}" = set; then
10245   withval="$with_homespool"
10246   with_homespool=${withval}
10247 fi;
10248 if test x$with_homespool != x; then
10249         if test $with_homespool = yes; then
10250                 with_homespool=mailbox
10251         fi
10252
10253 cat >>confdefs.h <<_ACEOF
10254 #define MAILPATH "$with_homespool"
10255 _ACEOF
10256
10257
10258 cat >>confdefs.h <<\_ACEOF
10259 #define HOMESPOOL 1
10260 _ACEOF
10261
10262
10263 cat >>confdefs.h <<\_ACEOF
10264 #define USE_DOTLOCK 1
10265 _ACEOF
10266
10267         mutt_cv_setgid=no
10268 else
10269
10270 # Check whether --with-mailpath or --without-mailpath was given.
10271 if test "${with_mailpath+set}" = set; then
10272   withval="$with_mailpath"
10273   mutt_cv_mailpath=$withval
10274 else
10275    echo "$as_me:$LINENO: checking where new mail is stored" >&5
10276 echo $ECHO_N "checking where new mail is stored... $ECHO_C" >&6
10277 if test "${mutt_cv_mailpath+set}" = set; then
10278   echo $ECHO_N "(cached) $ECHO_C" >&6
10279 else
10280   mutt_cv_mailpath=no
10281                         if test -d /var/mail; then
10282                                 mutt_cv_mailpath=/var/mail
10283                         elif test -d /var/spool/mail; then
10284                                 mutt_cv_mailpath=/var/spool/mail
10285                         elif test -d /usr/spool/mail; then
10286                                 mutt_cv_mailpath=/usr/spool/mail
10287                         elif test -d /usr/mail; then
10288                                 mutt_cv_mailpath=/usr/mail
10289                         fi
10290 fi
10291 echo "$as_me:$LINENO: result: $mutt_cv_mailpath" >&5
10292 echo "${ECHO_T}$mutt_cv_mailpath" >&6
10293
10294 fi;
10295         if test "$mutt_cv_mailpath" = no; then
10296                 { { echo "$as_me:$LINENO: error: \"Could not determine where new mail is stored.\"" >&5
10297 echo "$as_me: error: \"Could not determine where new mail is stored.\"" >&2;}
10298    { (exit 1); exit 1; }; }
10299         fi
10300
10301 cat >>confdefs.h <<_ACEOF
10302 #define MAILPATH "$mutt_cv_mailpath"
10303 _ACEOF
10304
10305
10306         echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is world writable" >&5
10307 echo $ECHO_N "checking if $mutt_cv_mailpath is world writable... $ECHO_C" >&6
10308 if test "${mutt_cv_worldwrite+set}" = set; then
10309   echo $ECHO_N "(cached) $ECHO_C" >&6
10310 else
10311   if test "$cross_compiling" = yes; then
10312   mutt_cv_worldwrite=no
10313 else
10314   cat >conftest.$ac_ext <<_ACEOF
10315 #line $LINENO "configure"
10316 /* confdefs.h.  */
10317 _ACEOF
10318 cat confdefs.h >>conftest.$ac_ext
10319 cat >>conftest.$ac_ext <<_ACEOF
10320 /* end confdefs.h.  */
10321 #include <sys/types.h>
10322 #include <sys/stat.h>
10323
10324 int main (int argc, char **argv)
10325 {
10326         struct stat s;
10327
10328         stat ("$mutt_cv_mailpath", &s);
10329         if (s.st_mode & S_IWOTH) exit (0);
10330         exit (1);
10331 }
10332 _ACEOF
10333 rm -f conftest$ac_exeext
10334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10335   (eval $ac_link) 2>&5
10336   ac_status=$?
10337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10339   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10340   (eval $ac_try) 2>&5
10341   ac_status=$?
10342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343   (exit $ac_status); }; }; then
10344   mutt_cv_worldwrite=yes
10345 else
10346   echo "$as_me: program exited with status $ac_status" >&5
10347 echo "$as_me: failed program was:" >&5
10348 sed 's/^/| /' conftest.$ac_ext >&5
10349
10350 ( exit $ac_status )
10351 mutt_cv_worldwrite=no
10352 fi
10353 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10354 fi
10355 fi
10356 echo "$as_me:$LINENO: result: $mutt_cv_worldwrite" >&5
10357 echo "${ECHO_T}$mutt_cv_worldwrite" >&6
10358
10359         mutt_cv_setgid=no
10360         if test $mutt_cv_worldwrite = yes; then
10361
10362 cat >>confdefs.h <<\_ACEOF
10363 #define USE_DOTLOCK 1
10364 _ACEOF
10365
10366         else
10367
10368                 echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is group writable" >&5
10369 echo $ECHO_N "checking if $mutt_cv_mailpath is group writable... $ECHO_C" >&6
10370 if test "${mutt_cv_groupwrite+set}" = set; then
10371   echo $ECHO_N "(cached) $ECHO_C" >&6
10372 else
10373   if test "$cross_compiling" = yes; then
10374   mutt_cv_groupwrite=no
10375 else
10376   cat >conftest.$ac_ext <<_ACEOF
10377 #line $LINENO "configure"
10378 /* confdefs.h.  */
10379 _ACEOF
10380 cat confdefs.h >>conftest.$ac_ext
10381 cat >>conftest.$ac_ext <<_ACEOF
10382 /* end confdefs.h.  */
10383 #include <sys/types.h>
10384 #include <sys/stat.h>
10385
10386 int main (int argc, char **argv)
10387 {
10388         struct stat s;
10389
10390         stat ("$mutt_cv_mailpath", &s);
10391         if (s.st_mode & S_IWGRP) exit (0);
10392         exit (1);
10393 }
10394 _ACEOF
10395 rm -f conftest$ac_exeext
10396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10397   (eval $ac_link) 2>&5
10398   ac_status=$?
10399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10402   (eval $ac_try) 2>&5
10403   ac_status=$?
10404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405   (exit $ac_status); }; }; then
10406   mutt_cv_groupwrite=yes
10407 else
10408   echo "$as_me: program exited with status $ac_status" >&5
10409 echo "$as_me: failed program was:" >&5
10410 sed 's/^/| /' conftest.$ac_ext >&5
10411
10412 ( exit $ac_status )
10413 mutt_cv_groupwrite=no
10414 fi
10415 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10416 fi
10417 fi
10418 echo "$as_me:$LINENO: result: $mutt_cv_groupwrite" >&5
10419 echo "${ECHO_T}$mutt_cv_groupwrite" >&6
10420
10421                 if test $mutt_cv_groupwrite = yes; then
10422
10423 cat >>confdefs.h <<\_ACEOF
10424 #define USE_DOTLOCK 1
10425 _ACEOF
10426
10427
10428 cat >>confdefs.h <<\_ACEOF
10429 #define USE_SETGID 1
10430 _ACEOF
10431
10432                         mutt_cv_setgid=yes
10433                 fi
10434         fi
10435 fi
10436
10437 # Check whether --enable-external_dotlock or --disable-external_dotlock was given.
10438 if test "${enable_external_dotlock+set}" = set; then
10439   enableval="$enable_external_dotlock"
10440   mutt_cv_external_dotlock="$enableval"
10441 fi;
10442
10443 if test "x$mutt_cv_setgid" = "xyes" || test "x$mutt_cv_fchdir" = "xno" \
10444         || test "x$mutt_cv_external_dotlock" = "xyes"
10445 then
10446
10447 cat >>confdefs.h <<\_ACEOF
10448 #define DL_STANDALONE 1
10449 _ACEOF
10450
10451         DOTLOCK_TARGET="muttng_dotlock"
10452 else
10453         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS dotlock.o"
10454 fi
10455
10456
10457
10458
10459 echo "$as_me:$LINENO: checking where to put the documentation" >&5
10460 echo $ECHO_N "checking where to put the documentation... $ECHO_C" >&6
10461
10462 # Check whether --with-docdir or --without-docdir was given.
10463 if test "${with_docdir+set}" = set; then
10464   withval="$with_docdir"
10465   mutt_cv_docdir=$withval
10466 else
10467   mutt_cv_docdir="$mutt_cv_prefix/doc/muttng"
10468 fi;
10469 echo "$as_me:$LINENO: result: $mutt_cv_docdir" >&5
10470 echo "${ECHO_T}$mutt_cv_docdir" >&6
10471
10472 docdir=$mutt_cv_docdir
10473
10474
10475 if test x$mutt_cv_setgid = xyes; then
10476         DOTLOCK_GROUP='mail'
10477         DOTLOCK_PERMISSION=2755
10478 else
10479         DOTLOCK_GROUP=''
10480         DOTLOCK_PERMISSION=755
10481 fi
10482
10483
10484
10485
10486 # Check whether --with-domain or --without-domain was given.
10487 if test "${with_domain+set}" = set; then
10488   withval="$with_domain"
10489   if test $withval != yes; then
10490
10491 cat >>confdefs.h <<_ACEOF
10492 #define DOMAIN "$withval"
10493 _ACEOF
10494
10495         fi
10496 fi;
10497
10498 need_socket="no"
10499
10500
10501 # Check whether --enable-pop or --disable-pop was given.
10502 if test "${enable_pop+set}" = set; then
10503   enableval="$enable_pop"
10504          if test x$enableval = xyes ; then
10505
10506 cat >>confdefs.h <<\_ACEOF
10507 #define USE_POP 1
10508 _ACEOF
10509
10510                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pop.o pop_lib.o pop_auth.o"
10511                 need_socket="yes"
10512                 need_pop="yes"
10513                 need_md5="yes"
10514         fi
10515
10516 fi;
10517
10518 # Check whether --enable-imap or --disable-imap was given.
10519 if test "${enable_imap+set}" = set; then
10520   enableval="$enable_imap"
10521          if test x$enableval = xyes ; then
10522
10523 cat >>confdefs.h <<\_ACEOF
10524 #define USE_IMAP 1
10525 _ACEOF
10526
10527                 LIBIMAP="-Limap -limap"
10528                 LIBIMAPDEPS="\$(top_srcdir)/imap/imap.h imap/libimap.a"
10529                 need_imap="yes"
10530                 need_socket="yes"
10531                 need_md5="yes"
10532         fi
10533
10534 fi;
10535
10536
10537 if test x$need_imap = xyes; then
10538   BUILD_IMAP_TRUE=
10539   BUILD_IMAP_FALSE='#'
10540 else
10541   BUILD_IMAP_TRUE='#'
10542   BUILD_IMAP_FALSE=
10543 fi
10544
10545
10546 # Check whether --enable-nntp or --disable-nntp was given.
10547 if test "${enable_nntp+set}" = set; then
10548   enableval="$enable_nntp"
10549         if test x$enableval = xyes ; then
10550                 cat >>confdefs.h <<\_ACEOF
10551 #define USE_NNTP 1
10552 _ACEOF
10553
10554                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS nntp.o newsrc.o"
10555                 need_socket="yes"
10556         fi
10557
10558 fi;
10559
10560
10561 if test "$need_socket" = "yes"
10562 then
10563         echo "$as_me:$LINENO: checking for socklen_t" >&5
10564 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10565         cat >conftest.$ac_ext <<_ACEOF
10566 #line $LINENO "configure"
10567 /* confdefs.h.  */
10568 _ACEOF
10569 cat confdefs.h >>conftest.$ac_ext
10570 cat >>conftest.$ac_ext <<_ACEOF
10571 /* end confdefs.h.  */
10572 #include <sys/socket.h>
10573
10574 _ACEOF
10575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10576   $EGREP "socklen_t" >/dev/null 2>&1; then
10577   echo "$as_me:$LINENO: result: yes" >&5
10578 echo "${ECHO_T}yes" >&6
10579 else
10580   echo "$as_me:$LINENO: result: no" >&5
10581 echo "${ECHO_T}no" >&6
10582
10583 cat >>confdefs.h <<\_ACEOF
10584 #define socklen_t int
10585 _ACEOF
10586
10587 fi
10588 rm -f conftest*
10589
10590         echo "$as_me:$LINENO: checking for gethostent" >&5
10591 echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
10592 if test "${ac_cv_func_gethostent+set}" = set; then
10593   echo $ECHO_N "(cached) $ECHO_C" >&6
10594 else
10595   cat >conftest.$ac_ext <<_ACEOF
10596 #line $LINENO "configure"
10597 /* confdefs.h.  */
10598 _ACEOF
10599 cat confdefs.h >>conftest.$ac_ext
10600 cat >>conftest.$ac_ext <<_ACEOF
10601 /* end confdefs.h.  */
10602 /* System header to define __stub macros and hopefully few prototypes,
10603     which can conflict with char gethostent (); below.
10604     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10605     <limits.h> exists even on freestanding compilers.  */
10606 #ifdef __STDC__
10607 # include <limits.h>
10608 #else
10609 # include <assert.h>
10610 #endif
10611 /* Override any gcc2 internal prototype to avoid an error.  */
10612 #ifdef __cplusplus
10613 extern "C"
10614 {
10615 #endif
10616 /* We use char because int might match the return type of a gcc2
10617    builtin and then its argument prototype would still apply.  */
10618 char gethostent ();
10619 /* The GNU C library defines this for functions which it implements
10620     to always fail with ENOSYS.  Some functions are actually named
10621     something starting with __ and the normal name is an alias.  */
10622 #if defined (__stub_gethostent) || defined (__stub___gethostent)
10623 choke me
10624 #else
10625 char (*f) () = gethostent;
10626 #endif
10627 #ifdef __cplusplus
10628 }
10629 #endif
10630
10631 int
10632 main ()
10633 {
10634 return f != gethostent;
10635   ;
10636   return 0;
10637 }
10638 _ACEOF
10639 rm -f conftest.$ac_objext conftest$ac_exeext
10640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10641   (eval $ac_link) 2>&5
10642   ac_status=$?
10643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644   (exit $ac_status); } &&
10645          { ac_try='test -s conftest$ac_exeext'
10646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10647   (eval $ac_try) 2>&5
10648   ac_status=$?
10649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650   (exit $ac_status); }; }; then
10651   ac_cv_func_gethostent=yes
10652 else
10653   echo "$as_me: failed program was:" >&5
10654 sed 's/^/| /' conftest.$ac_ext >&5
10655
10656 ac_cv_func_gethostent=no
10657 fi
10658 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10659 fi
10660 echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5
10661 echo "${ECHO_T}$ac_cv_func_gethostent" >&6
10662 if test $ac_cv_func_gethostent = yes; then
10663   :
10664 else
10665
10666 echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
10667 echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
10668 if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
10669   echo $ECHO_N "(cached) $ECHO_C" >&6
10670 else
10671   ac_check_lib_save_LIBS=$LIBS
10672 LIBS="-lnsl  $LIBS"
10673 cat >conftest.$ac_ext <<_ACEOF
10674 #line $LINENO "configure"
10675 /* confdefs.h.  */
10676 _ACEOF
10677 cat confdefs.h >>conftest.$ac_ext
10678 cat >>conftest.$ac_ext <<_ACEOF
10679 /* end confdefs.h.  */
10680
10681 /* Override any gcc2 internal prototype to avoid an error.  */
10682 #ifdef __cplusplus
10683 extern "C"
10684 #endif
10685 /* We use char because int might match the return type of a gcc2
10686    builtin and then its argument prototype would still apply.  */
10687 char gethostent ();
10688 int
10689 main ()
10690 {
10691 gethostent ();
10692   ;
10693   return 0;
10694 }
10695 _ACEOF
10696 rm -f conftest.$ac_objext conftest$ac_exeext
10697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10698   (eval $ac_link) 2>&5
10699   ac_status=$?
10700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701   (exit $ac_status); } &&
10702          { ac_try='test -s conftest$ac_exeext'
10703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10704   (eval $ac_try) 2>&5
10705   ac_status=$?
10706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707   (exit $ac_status); }; }; then
10708   ac_cv_lib_nsl_gethostent=yes
10709 else
10710   echo "$as_me: failed program was:" >&5
10711 sed 's/^/| /' conftest.$ac_ext >&5
10712
10713 ac_cv_lib_nsl_gethostent=no
10714 fi
10715 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10716 LIBS=$ac_check_lib_save_LIBS
10717 fi
10718 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
10719 echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
10720 if test $ac_cv_lib_nsl_gethostent = yes; then
10721   cat >>confdefs.h <<_ACEOF
10722 #define HAVE_LIBNSL 1
10723 _ACEOF
10724
10725   LIBS="-lnsl $LIBS"
10726
10727 fi
10728
10729 fi
10730
10731         echo "$as_me:$LINENO: checking for setsockopt" >&5
10732 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
10733 if test "${ac_cv_func_setsockopt+set}" = set; then
10734   echo $ECHO_N "(cached) $ECHO_C" >&6
10735 else
10736   cat >conftest.$ac_ext <<_ACEOF
10737 #line $LINENO "configure"
10738 /* confdefs.h.  */
10739 _ACEOF
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h.  */
10743 /* System header to define __stub macros and hopefully few prototypes,
10744     which can conflict with char setsockopt (); below.
10745     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10746     <limits.h> exists even on freestanding compilers.  */
10747 #ifdef __STDC__
10748 # include <limits.h>
10749 #else
10750 # include <assert.h>
10751 #endif
10752 /* Override any gcc2 internal prototype to avoid an error.  */
10753 #ifdef __cplusplus
10754 extern "C"
10755 {
10756 #endif
10757 /* We use char because int might match the return type of a gcc2
10758    builtin and then its argument prototype would still apply.  */
10759 char setsockopt ();
10760 /* The GNU C library defines this for functions which it implements
10761     to always fail with ENOSYS.  Some functions are actually named
10762     something starting with __ and the normal name is an alias.  */
10763 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
10764 choke me
10765 #else
10766 char (*f) () = setsockopt;
10767 #endif
10768 #ifdef __cplusplus
10769 }
10770 #endif
10771
10772 int
10773 main ()
10774 {
10775 return f != setsockopt;
10776   ;
10777   return 0;
10778 }
10779 _ACEOF
10780 rm -f conftest.$ac_objext conftest$ac_exeext
10781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10782   (eval $ac_link) 2>&5
10783   ac_status=$?
10784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785   (exit $ac_status); } &&
10786          { ac_try='test -s conftest$ac_exeext'
10787   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10788   (eval $ac_try) 2>&5
10789   ac_status=$?
10790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791   (exit $ac_status); }; }; then
10792   ac_cv_func_setsockopt=yes
10793 else
10794   echo "$as_me: failed program was:" >&5
10795 sed 's/^/| /' conftest.$ac_ext >&5
10796
10797 ac_cv_func_setsockopt=no
10798 fi
10799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10800 fi
10801 echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
10802 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
10803 if test $ac_cv_func_setsockopt = yes; then
10804   :
10805 else
10806
10807 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
10808 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
10809 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
10810   echo $ECHO_N "(cached) $ECHO_C" >&6
10811 else
10812   ac_check_lib_save_LIBS=$LIBS
10813 LIBS="-lsocket  $LIBS"
10814 cat >conftest.$ac_ext <<_ACEOF
10815 #line $LINENO "configure"
10816 /* confdefs.h.  */
10817 _ACEOF
10818 cat confdefs.h >>conftest.$ac_ext
10819 cat >>conftest.$ac_ext <<_ACEOF
10820 /* end confdefs.h.  */
10821
10822 /* Override any gcc2 internal prototype to avoid an error.  */
10823 #ifdef __cplusplus
10824 extern "C"
10825 #endif
10826 /* We use char because int might match the return type of a gcc2
10827    builtin and then its argument prototype would still apply.  */
10828 char setsockopt ();
10829 int
10830 main ()
10831 {
10832 setsockopt ();
10833   ;
10834   return 0;
10835 }
10836 _ACEOF
10837 rm -f conftest.$ac_objext conftest$ac_exeext
10838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10839   (eval $ac_link) 2>&5
10840   ac_status=$?
10841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10842   (exit $ac_status); } &&
10843          { ac_try='test -s conftest$ac_exeext'
10844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10845   (eval $ac_try) 2>&5
10846   ac_status=$?
10847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10848   (exit $ac_status); }; }; then
10849   ac_cv_lib_socket_setsockopt=yes
10850 else
10851   echo "$as_me: failed program was:" >&5
10852 sed 's/^/| /' conftest.$ac_ext >&5
10853
10854 ac_cv_lib_socket_setsockopt=no
10855 fi
10856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10857 LIBS=$ac_check_lib_save_LIBS
10858 fi
10859 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
10860 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
10861 if test $ac_cv_lib_socket_setsockopt = yes; then
10862   cat >>confdefs.h <<_ACEOF
10863 #define HAVE_LIBSOCKET 1
10864 _ACEOF
10865
10866   LIBS="-lsocket $LIBS"
10867
10868 fi
10869
10870 fi
10871
10872
10873 for ac_func in getaddrinfo
10874 do
10875 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10876 echo "$as_me:$LINENO: checking for $ac_func" >&5
10877 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10878 if eval "test \"\${$as_ac_var+set}\" = set"; then
10879   echo $ECHO_N "(cached) $ECHO_C" >&6
10880 else
10881   cat >conftest.$ac_ext <<_ACEOF
10882 #line $LINENO "configure"
10883 /* confdefs.h.  */
10884 _ACEOF
10885 cat confdefs.h >>conftest.$ac_ext
10886 cat >>conftest.$ac_ext <<_ACEOF
10887 /* end confdefs.h.  */
10888 /* System header to define __stub macros and hopefully few prototypes,
10889     which can conflict with char $ac_func (); below.
10890     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10891     <limits.h> exists even on freestanding compilers.  */
10892 #ifdef __STDC__
10893 # include <limits.h>
10894 #else
10895 # include <assert.h>
10896 #endif
10897 /* Override any gcc2 internal prototype to avoid an error.  */
10898 #ifdef __cplusplus
10899 extern "C"
10900 {
10901 #endif
10902 /* We use char because int might match the return type of a gcc2
10903    builtin and then its argument prototype would still apply.  */
10904 char $ac_func ();
10905 /* The GNU C library defines this for functions which it implements
10906     to always fail with ENOSYS.  Some functions are actually named
10907     something starting with __ and the normal name is an alias.  */
10908 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10909 choke me
10910 #else
10911 char (*f) () = $ac_func;
10912 #endif
10913 #ifdef __cplusplus
10914 }
10915 #endif
10916
10917 int
10918 main ()
10919 {
10920 return f != $ac_func;
10921   ;
10922   return 0;
10923 }
10924 _ACEOF
10925 rm -f conftest.$ac_objext conftest$ac_exeext
10926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10927   (eval $ac_link) 2>&5
10928   ac_status=$?
10929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10930   (exit $ac_status); } &&
10931          { ac_try='test -s conftest$ac_exeext'
10932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10933   (eval $ac_try) 2>&5
10934   ac_status=$?
10935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936   (exit $ac_status); }; }; then
10937   eval "$as_ac_var=yes"
10938 else
10939   echo "$as_me: failed program was:" >&5
10940 sed 's/^/| /' conftest.$ac_ext >&5
10941
10942 eval "$as_ac_var=no"
10943 fi
10944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10945 fi
10946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10947 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10948 if test `eval echo '${'$as_ac_var'}'` = yes; then
10949   cat >>confdefs.h <<_ACEOF
10950 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10951 _ACEOF
10952
10953 fi
10954 done
10955
10956
10957 cat >>confdefs.h <<\_ACEOF
10958 #define USE_SOCKET 1
10959 _ACEOF
10960
10961         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS account.o mutt_socket.o mutt_tunnel.o"
10962 fi
10963
10964
10965
10966 # Check whether --with-gss or --without-gss was given.
10967 if test "${with_gss+set}" = set; then
10968   withval="$with_gss"
10969   gss_prefix="$withval"
10970 else
10971   gss_prefix="no"
10972 fi;
10973 if test "$gss_prefix" != "no"
10974 then
10975   if test "$need_imap" = "yes"
10976   then
10977
10978   GSSAPI_PREFIX=$gss_prefix
10979   GSSAPI_IMPL="none"
10980   saved_CPPFLAGS="$CPPFLAGS"
10981   saved_LDFLAGS="$LDFLAGS"
10982   saved_LIBS="$LIBS"
10983     if test "$GSSAPI_PREFIX" != "yes"
10984   then
10985     krb5_path="$GSSAPI_PREFIX/bin"
10986   else
10987     krb5_path="$PATH"
10988   fi
10989   # Extract the first word of "krb5-config", so it can be a program name with args.
10990 set dummy krb5-config; ac_word=$2
10991 echo "$as_me:$LINENO: checking for $ac_word" >&5
10992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10993 if test "${ac_cv_path_KRB5CFGPATH+set}" = set; then
10994   echo $ECHO_N "(cached) $ECHO_C" >&6
10995 else
10996   case $KRB5CFGPATH in
10997   [\\/]* | ?:[\\/]*)
10998   ac_cv_path_KRB5CFGPATH="$KRB5CFGPATH" # Let the user override the test with a path.
10999   ;;
11000   *)
11001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11002 for as_dir in $krb5_path
11003 do
11004   IFS=$as_save_IFS
11005   test -z "$as_dir" && as_dir=.
11006   for ac_exec_ext in '' $ac_executable_extensions; do
11007   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11008     ac_cv_path_KRB5CFGPATH="$as_dir/$ac_word$ac_exec_ext"
11009     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11010     break 2
11011   fi
11012 done
11013 done
11014
11015   test -z "$ac_cv_path_KRB5CFGPATH" && ac_cv_path_KRB5CFGPATH="none"
11016   ;;
11017 esac
11018 fi
11019 KRB5CFGPATH=$ac_cv_path_KRB5CFGPATH
11020
11021 if test -n "$KRB5CFGPATH"; then
11022   echo "$as_me:$LINENO: result: $KRB5CFGPATH" >&5
11023 echo "${ECHO_T}$KRB5CFGPATH" >&6
11024 else
11025   echo "$as_me:$LINENO: result: no" >&5
11026 echo "${ECHO_T}no" >&6
11027 fi
11028
11029   if test "$KRB5CFGPATH" != "none"
11030   then
11031     GSSAPI_CFLAGS="$CPPFLAGS `$KRB5CFGPATH --cflags gssapi`"
11032     GSSAPI_LIBS="$MUTTLIBS `$KRB5CFGPATH --libs gssapi`"
11033     case "`$KRB5CFGPATH --version`" in
11034       "Kerberos 5 "*)   GSSAPI_IMPL="MIT";;
11035       ?eimdal*)         GSSAPI_IMPL="Heimdal";;
11036       *)                GSSAPI_IMPL="Unknown";;
11037    esac
11038   else
11039         if test "$GSSAPI_PREFIX" != "yes"
11040     then
11041       GSSAPI_CFLAGS="-I$GSSAPI_PREFIX/include"
11042       GSSAPI_LDFLAGS="-L$GSSAPI_PREFIX/lib"
11043       CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
11044       LDFLAGS="$LDFLAGS $GSSAPI_LDFLAGS"
11045     fi
11046
11047         echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
11048 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6
11049 if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
11050   echo $ECHO_N "(cached) $ECHO_C" >&6
11051 else
11052   ac_check_lib_save_LIBS=$LIBS
11053 LIBS="-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err $LIBS"
11054 cat >conftest.$ac_ext <<_ACEOF
11055 #line $LINENO "configure"
11056 /* confdefs.h.  */
11057 _ACEOF
11058 cat confdefs.h >>conftest.$ac_ext
11059 cat >>conftest.$ac_ext <<_ACEOF
11060 /* end confdefs.h.  */
11061
11062 /* Override any gcc2 internal prototype to avoid an error.  */
11063 #ifdef __cplusplus
11064 extern "C"
11065 #endif
11066 /* We use char because int might match the return type of a gcc2
11067    builtin and then its argument prototype would still apply.  */
11068 char gss_init_sec_context ();
11069 int
11070 main ()
11071 {
11072 gss_init_sec_context ();
11073   ;
11074   return 0;
11075 }
11076 _ACEOF
11077 rm -f conftest.$ac_objext conftest$ac_exeext
11078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11079   (eval $ac_link) 2>&5
11080   ac_status=$?
11081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082   (exit $ac_status); } &&
11083          { ac_try='test -s conftest$ac_exeext'
11084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085   (eval $ac_try) 2>&5
11086   ac_status=$?
11087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088   (exit $ac_status); }; }; then
11089   ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
11090 else
11091   echo "$as_me: failed program was:" >&5
11092 sed 's/^/| /' conftest.$ac_ext >&5
11093
11094 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
11095 fi
11096 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11097 LIBS=$ac_check_lib_save_LIBS
11098 fi
11099 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
11100 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6
11101 if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
11102
11103       GSSAPI_IMPL="MIT",
11104       GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err"
11105
11106 fi
11107
11108
11109         if test "$GSSAPI_IMPL" = "none"
11110     then
11111       echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
11112 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6
11113 if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
11114   echo $ECHO_N "(cached) $ECHO_C" >&6
11115 else
11116   ac_check_lib_save_LIBS=$LIBS
11117 LIBS="-lgssapi -lkrb5 -ldes -lasn1 -lroken -lcrypt -lcom_err $LIBS"
11118 cat >conftest.$ac_ext <<_ACEOF
11119 #line $LINENO "configure"
11120 /* confdefs.h.  */
11121 _ACEOF
11122 cat confdefs.h >>conftest.$ac_ext
11123 cat >>conftest.$ac_ext <<_ACEOF
11124 /* end confdefs.h.  */
11125
11126 /* Override any gcc2 internal prototype to avoid an error.  */
11127 #ifdef __cplusplus
11128 extern "C"
11129 #endif
11130 /* We use char because int might match the return type of a gcc2
11131    builtin and then its argument prototype would still apply.  */
11132 char gss_init_sec_context ();
11133 int
11134 main ()
11135 {
11136 gss_init_sec_context ();
11137   ;
11138   return 0;
11139 }
11140 _ACEOF
11141 rm -f conftest.$ac_objext conftest$ac_exeext
11142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11143   (eval $ac_link) 2>&5
11144   ac_status=$?
11145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11146   (exit $ac_status); } &&
11147          { ac_try='test -s conftest$ac_exeext'
11148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11149   (eval $ac_try) 2>&5
11150   ac_status=$?
11151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152   (exit $ac_status); }; }; then
11153   ac_cv_lib_gssapi_gss_init_sec_context=yes
11154 else
11155   echo "$as_me: failed program was:" >&5
11156 sed 's/^/| /' conftest.$ac_ext >&5
11157
11158 ac_cv_lib_gssapi_gss_init_sec_context=no
11159 fi
11160 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11161 LIBS=$ac_check_lib_save_LIBS
11162 fi
11163 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
11164 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6
11165 if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
11166
11167           GSSAPI_IMPL="Heimdal"
11168           GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi -lkrb5 -ldes -lasn1 -lroken"
11169           GSSAPI_LIBS="$GSSAPI_LIBS -lcrypt -lcom_err"
11170
11171 fi
11172
11173     fi
11174
11175                             if test "$GSSAPI_IMPL" = "none"
11176     then
11177       echo "$as_me:$LINENO: checking for g_order_init in -lgssapi_krb5" >&5
11178 echo $ECHO_N "checking for g_order_init in -lgssapi_krb5... $ECHO_C" >&6
11179 if test "${ac_cv_lib_gssapi_krb5_g_order_init+set}" = set; then
11180   echo $ECHO_N "(cached) $ECHO_C" >&6
11181 else
11182   ac_check_lib_save_LIBS=$LIBS
11183 LIBS="-lgssapi_krb5 -lkrb5 -lcrypto -lcom_err $LIBS"
11184 cat >conftest.$ac_ext <<_ACEOF
11185 #line $LINENO "configure"
11186 /* confdefs.h.  */
11187 _ACEOF
11188 cat confdefs.h >>conftest.$ac_ext
11189 cat >>conftest.$ac_ext <<_ACEOF
11190 /* end confdefs.h.  */
11191
11192 /* Override any gcc2 internal prototype to avoid an error.  */
11193 #ifdef __cplusplus
11194 extern "C"
11195 #endif
11196 /* We use char because int might match the return type of a gcc2
11197    builtin and then its argument prototype would still apply.  */
11198 char g_order_init ();
11199 int
11200 main ()
11201 {
11202 g_order_init ();
11203   ;
11204   return 0;
11205 }
11206 _ACEOF
11207 rm -f conftest.$ac_objext conftest$ac_exeext
11208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11209   (eval $ac_link) 2>&5
11210   ac_status=$?
11211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212   (exit $ac_status); } &&
11213          { ac_try='test -s conftest$ac_exeext'
11214   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11215   (eval $ac_try) 2>&5
11216   ac_status=$?
11217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218   (exit $ac_status); }; }; then
11219   ac_cv_lib_gssapi_krb5_g_order_init=yes
11220 else
11221   echo "$as_me: failed program was:" >&5
11222 sed 's/^/| /' conftest.$ac_ext >&5
11223
11224 ac_cv_lib_gssapi_krb5_g_order_init=no
11225 fi
11226 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11227 LIBS=$ac_check_lib_save_LIBS
11228 fi
11229 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_g_order_init" >&5
11230 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_g_order_init" >&6
11231 if test $ac_cv_lib_gssapi_krb5_g_order_init = yes; then
11232
11233         GSSAPI_IMPL="OldMIT",
11234         GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err"
11235
11236 fi
11237
11238     fi
11239   fi
11240
11241   CPPFLAGS="$saved_CPPFLAGS"
11242   LDFLAGS="$saved_LDFLAGS"
11243   LIBS="$saved_LIBS"
11244
11245     echo "$as_me:$LINENO: checking GSSAPI implementation" >&5
11246 echo $ECHO_N "checking GSSAPI implementation... $ECHO_C" >&6
11247     echo "$as_me:$LINENO: result: $GSSAPI_IMPL" >&5
11248 echo "${ECHO_T}$GSSAPI_IMPL" >&6
11249     if test "$GSSAPI_IMPL" = "none"
11250     then
11251       cat >confcache <<\_ACEOF
11252 # This file is a shell script that caches the results of configure
11253 # tests run on this system so they can be shared between configure
11254 # scripts and configure runs, see configure's option --config-cache.
11255 # It is not useful on other systems.  If it contains results you don't
11256 # want to keep, you may remove or edit it.
11257 #
11258 # config.status only pays attention to the cache file if you give it
11259 # the --recheck option to rerun configure.
11260 #
11261 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11262 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11263 # following values.
11264
11265 _ACEOF
11266
11267 # The following way of writing the cache mishandles newlines in values,
11268 # but we know of no workaround that is simple, portable, and efficient.
11269 # So, don't put newlines in cache variables' values.
11270 # Ultrix sh set writes to stderr and can't be redirected directly,
11271 # and sets the high bit in the cache file unless we assign to the vars.
11272 {
11273   (set) 2>&1 |
11274     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11275     *ac_space=\ *)
11276       # `set' does not quote correctly, so add quotes (double-quote
11277       # substitution turns \\\\ into \\, and sed turns \\ into \).
11278       sed -n \
11279         "s/'/'\\\\''/g;
11280           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11281       ;;
11282     *)
11283       # `set' quotes correctly as required by POSIX, so do not add quotes.
11284       sed -n \
11285         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11286       ;;
11287     esac;
11288 } |
11289   sed '
11290      t clear
11291      : clear
11292      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11293      t end
11294      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11295      : end' >>confcache
11296 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11297   if test -w $cache_file; then
11298     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11299     cat confcache >$cache_file
11300   else
11301     echo "not updating unwritable cache $cache_file"
11302   fi
11303 fi
11304 rm -f confcache
11305       echo "$as_me:$LINENO: result: GSSAPI libraries not found" >&5
11306 echo "${ECHO_T}GSSAPI libraries not found" >&6
11307     fi
11308     if test "$GSSAPI_IMPL" = "Heimdal"
11309     then
11310
11311 cat >>confdefs.h <<\_ACEOF
11312 #define HAVE_HEIMDAL 1
11313 _ACEOF
11314
11315     fi
11316     CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
11317     MUTTLIBS="$MUTTLIBS $GSSAPI_LIBS"
11318
11319 cat >>confdefs.h <<\_ACEOF
11320 #define USE_GSS 1
11321 _ACEOF
11322
11323     need_gss="yes"
11324   else
11325     { echo "$as_me:$LINENO: WARNING: GSS was requested but IMAP is not enabled" >&5
11326 echo "$as_me: WARNING: GSS was requested but IMAP is not enabled" >&2;}
11327   fi
11328 fi
11329
11330
11331 if test x$need_gss = xyes; then
11332   USE_GSS_TRUE=
11333   USE_GSS_FALSE='#'
11334 else
11335   USE_GSS_TRUE='#'
11336   USE_GSS_FALSE=
11337 fi
11338
11339
11340
11341
11342 # Check whether --with-ssl or --without-ssl was given.
11343 if test "${with_ssl+set}" = set; then
11344   withval="$with_ssl"
11345          if test "$with_ssl" != "no"
11346         then
11347           if test "$need_socket" != "yes"; then
11348            { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
11349 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
11350    { (exit 1); exit 1; }; }
11351           fi
11352
11353           if test "$with_ssl" != "yes"
11354           then
11355            LDFLAGS="$LDFLAGS -L$withval/lib"
11356            CPPFLAGS="$CPPFLAGS -I$withval/include"
11357           fi
11358           saved_LIBS="$LIBS"
11359
11360
11361 echo "$as_me:$LINENO: checking for X509_new in -lcrypto" >&5
11362 echo $ECHO_N "checking for X509_new in -lcrypto... $ECHO_C" >&6
11363 if test "${ac_cv_lib_crypto_X509_new+set}" = set; then
11364   echo $ECHO_N "(cached) $ECHO_C" >&6
11365 else
11366   ac_check_lib_save_LIBS=$LIBS
11367 LIBS="-lcrypto  $LIBS"
11368 cat >conftest.$ac_ext <<_ACEOF
11369 #line $LINENO "configure"
11370 /* confdefs.h.  */
11371 _ACEOF
11372 cat confdefs.h >>conftest.$ac_ext
11373 cat >>conftest.$ac_ext <<_ACEOF
11374 /* end confdefs.h.  */
11375
11376 /* Override any gcc2 internal prototype to avoid an error.  */
11377 #ifdef __cplusplus
11378 extern "C"
11379 #endif
11380 /* We use char because int might match the return type of a gcc2
11381    builtin and then its argument prototype would still apply.  */
11382 char X509_new ();
11383 int
11384 main ()
11385 {
11386 X509_new ();
11387   ;
11388   return 0;
11389 }
11390 _ACEOF
11391 rm -f conftest.$ac_objext conftest$ac_exeext
11392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11393   (eval $ac_link) 2>&5
11394   ac_status=$?
11395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396   (exit $ac_status); } &&
11397          { ac_try='test -s conftest$ac_exeext'
11398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11399   (eval $ac_try) 2>&5
11400   ac_status=$?
11401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402   (exit $ac_status); }; }; then
11403   ac_cv_lib_crypto_X509_new=yes
11404 else
11405   echo "$as_me: failed program was:" >&5
11406 sed 's/^/| /' conftest.$ac_ext >&5
11407
11408 ac_cv_lib_crypto_X509_new=no
11409 fi
11410 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11411 LIBS=$ac_check_lib_save_LIBS
11412 fi
11413 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_X509_new" >&5
11414 echo "${ECHO_T}$ac_cv_lib_crypto_X509_new" >&6
11415 if test $ac_cv_lib_crypto_X509_new = yes; then
11416   cat >>confdefs.h <<_ACEOF
11417 #define HAVE_LIBCRYPTO 1
11418 _ACEOF
11419
11420   LIBS="-lcrypto $LIBS"
11421
11422 else
11423   { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
11424 echo "$as_me: error: Unable to find SSL library" >&2;}
11425    { (exit 1); exit 1; }; }
11426 fi
11427
11428
11429 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
11430 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
11431 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
11432   echo $ECHO_N "(cached) $ECHO_C" >&6
11433 else
11434   ac_check_lib_save_LIBS=$LIBS
11435 LIBS="-lssl -lcrypto $LIBS"
11436 cat >conftest.$ac_ext <<_ACEOF
11437 #line $LINENO "configure"
11438 /* confdefs.h.  */
11439 _ACEOF
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h.  */
11443
11444 /* Override any gcc2 internal prototype to avoid an error.  */
11445 #ifdef __cplusplus
11446 extern "C"
11447 #endif
11448 /* We use char because int might match the return type of a gcc2
11449    builtin and then its argument prototype would still apply.  */
11450 char SSL_new ();
11451 int
11452 main ()
11453 {
11454 SSL_new ();
11455   ;
11456   return 0;
11457 }
11458 _ACEOF
11459 rm -f conftest.$ac_objext conftest$ac_exeext
11460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11461   (eval $ac_link) 2>&5
11462   ac_status=$?
11463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464   (exit $ac_status); } &&
11465          { ac_try='test -s conftest$ac_exeext'
11466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11467   (eval $ac_try) 2>&5
11468   ac_status=$?
11469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470   (exit $ac_status); }; }; then
11471   ac_cv_lib_ssl_SSL_new=yes
11472 else
11473   echo "$as_me: failed program was:" >&5
11474 sed 's/^/| /' conftest.$ac_ext >&5
11475
11476 ac_cv_lib_ssl_SSL_new=no
11477 fi
11478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11479 LIBS=$ac_check_lib_save_LIBS
11480 fi
11481 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
11482 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6
11483 if test $ac_cv_lib_ssl_SSL_new = yes; then
11484   cat >>confdefs.h <<_ACEOF
11485 #define HAVE_LIBSSL 1
11486 _ACEOF
11487
11488   LIBS="-lssl $LIBS"
11489
11490 else
11491   { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
11492 echo "$as_me: error: Unable to find SSL library" >&2;}
11493    { (exit 1); exit 1; }; }
11494 fi
11495
11496
11497
11498
11499 for ac_func in RAND_status RAND_egd
11500 do
11501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11502 echo "$as_me:$LINENO: checking for $ac_func" >&5
11503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11504 if eval "test \"\${$as_ac_var+set}\" = set"; then
11505   echo $ECHO_N "(cached) $ECHO_C" >&6
11506 else
11507   cat >conftest.$ac_ext <<_ACEOF
11508 #line $LINENO "configure"
11509 /* confdefs.h.  */
11510 _ACEOF
11511 cat confdefs.h >>conftest.$ac_ext
11512 cat >>conftest.$ac_ext <<_ACEOF
11513 /* end confdefs.h.  */
11514 /* System header to define __stub macros and hopefully few prototypes,
11515     which can conflict with char $ac_func (); below.
11516     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11517     <limits.h> exists even on freestanding compilers.  */
11518 #ifdef __STDC__
11519 # include <limits.h>
11520 #else
11521 # include <assert.h>
11522 #endif
11523 /* Override any gcc2 internal prototype to avoid an error.  */
11524 #ifdef __cplusplus
11525 extern "C"
11526 {
11527 #endif
11528 /* We use char because int might match the return type of a gcc2
11529    builtin and then its argument prototype would still apply.  */
11530 char $ac_func ();
11531 /* The GNU C library defines this for functions which it implements
11532     to always fail with ENOSYS.  Some functions are actually named
11533     something starting with __ and the normal name is an alias.  */
11534 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11535 choke me
11536 #else
11537 char (*f) () = $ac_func;
11538 #endif
11539 #ifdef __cplusplus
11540 }
11541 #endif
11542
11543 int
11544 main ()
11545 {
11546 return f != $ac_func;
11547   ;
11548   return 0;
11549 }
11550 _ACEOF
11551 rm -f conftest.$ac_objext conftest$ac_exeext
11552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11553   (eval $ac_link) 2>&5
11554   ac_status=$?
11555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556   (exit $ac_status); } &&
11557          { ac_try='test -s conftest$ac_exeext'
11558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11559   (eval $ac_try) 2>&5
11560   ac_status=$?
11561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562   (exit $ac_status); }; }; then
11563   eval "$as_ac_var=yes"
11564 else
11565   echo "$as_me: failed program was:" >&5
11566 sed 's/^/| /' conftest.$ac_ext >&5
11567
11568 eval "$as_ac_var=no"
11569 fi
11570 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11571 fi
11572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11573 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11574 if test `eval echo '${'$as_ac_var'}'` = yes; then
11575   cat >>confdefs.h <<_ACEOF
11576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11577 _ACEOF
11578
11579 fi
11580 done
11581
11582
11583
11584 cat >>confdefs.h <<\_ACEOF
11585 #define USE_SSL 1
11586 _ACEOF
11587
11588           LIBS="$saved_LIBS"
11589           MUTTLIBS="$MUTTLIBS -lssl -lcrypto"
11590           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl.o"
11591           need_ssl=yes
11592
11593         fi
11594
11595 fi;
11596
11597
11598 if test x$need_ssl = xyes; then
11599   USE_SSL_TRUE=
11600   USE_SSL_FALSE='#'
11601 else
11602   USE_SSL_TRUE='#'
11603   USE_SSL_FALSE=
11604 fi
11605
11606
11607
11608 # Check whether --with-nss or --without-nss was given.
11609 if test "${with_nss+set}" = set; then
11610   withval="$with_nss"
11611          if test "$with_nss" != no
11612         then
11613           if test "$need_socket" != "yes"; then
11614            { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
11615 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
11616    { (exit 1); exit 1; }; }
11617           fi
11618
11619           if test "$with_nss" != "yes"
11620           then
11621            LDFLAGS="$LDFLAGS -L$withval/lib"
11622            CPPFLAGS="$CPPFLAGS -I$withval/include -I$withval/public/security"
11623           fi
11624
11625
11626 cat >>confdefs.h <<\_ACEOF
11627 #define USE_NSS 1
11628 _ACEOF
11629
11630           MUTTLIBS="$MUTTLIBS -lssl -lnss -lcertdb -lcerthi -lcryptohi"
11631           MUTTLIBS="$MUTTLIBS -lpk11wrap -lsoftoken -lsecutil -ldbm -lplds4 -lplc4 -lfreebl"
11632           MUTTLIBS="$MUTTLIBS -lnspr4"
11633
11634           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_nss.o"
11635           need_ssl=yes
11636         fi
11637
11638 fi;
11639
11640
11641 # Check whether --with-gnutls or --without-gnutls was given.
11642 if test "${with_gnutls+set}" = set; then
11643   withval="$with_gnutls"
11644   gnutls_prefix="$withval"
11645 else
11646   gnutls_prefix="no"
11647 fi;
11648 if test "$gnutls_prefix" != "no"
11649 then
11650   if test "$need_socket" != "yes"
11651   then
11652     { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
11653 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
11654    { (exit 1); exit 1; }; }
11655   fi
11656     libgnutls_config_prefix=$gnutls_prefix
11657   min_libgnutls_version=0.1.0
11658
11659   if test x$libgnutls_config_prefix != x ; then
11660      if test x${LIBGNUTLS_CONFIG+set} != xset ; then
11661         LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
11662      fi
11663   fi
11664
11665   # Extract the first word of "libgnutls-config", so it can be a program name with args.
11666 set dummy libgnutls-config; ac_word=$2
11667 echo "$as_me:$LINENO: checking for $ac_word" >&5
11668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11669 if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
11670   echo $ECHO_N "(cached) $ECHO_C" >&6
11671 else
11672   case $LIBGNUTLS_CONFIG in
11673   [\\/]* | ?:[\\/]*)
11674   ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
11675   ;;
11676   *)
11677   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11678 for as_dir in $PATH
11679 do
11680   IFS=$as_save_IFS
11681   test -z "$as_dir" && as_dir=.
11682   for ac_exec_ext in '' $ac_executable_extensions; do
11683   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11684     ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11686     break 2
11687   fi
11688 done
11689 done
11690
11691   test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
11692   ;;
11693 esac
11694 fi
11695 LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
11696
11697 if test -n "$LIBGNUTLS_CONFIG"; then
11698   echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
11699 echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6
11700 else
11701   echo "$as_me:$LINENO: result: no" >&5
11702 echo "${ECHO_T}no" >&6
11703 fi
11704
11705   echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
11706 echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6
11707   no_libgnutls=""
11708   if test "$LIBGNUTLS_CONFIG" = "no" ; then
11709     no_libgnutls=yes
11710   else
11711     LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
11712     LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
11713     libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
11714
11715
11716       ac_save_CFLAGS="$CFLAGS"
11717       ac_save_LIBS="$LIBS"
11718       CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11719       LIBS="$LIBS $LIBGNUTLS_LIBS"
11720
11721       rm -f conf.libgnutlstest
11722       if test "$cross_compiling" = yes; then
11723   echo $ac_n "cross compiling; assumed OK... $ac_c"
11724 else
11725   cat >conftest.$ac_ext <<_ACEOF
11726 #line $LINENO "configure"
11727 /* confdefs.h.  */
11728 _ACEOF
11729 cat confdefs.h >>conftest.$ac_ext
11730 cat >>conftest.$ac_ext <<_ACEOF
11731 /* end confdefs.h.  */
11732
11733 #include <stdio.h>
11734 #include <stdlib.h>
11735 #include <string.h>
11736 #include <gnutls/gnutls.h>
11737
11738 int
11739 main ()
11740 {
11741     system ("touch conf.libgnutlstest");
11742
11743     if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
11744     {
11745       printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
11746              "$libgnutls_config_version", gnutls_check_version(NULL) );
11747       printf("*** was found! If libgnutls-config was correct, then it is best\n");
11748       printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
11749       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11750       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11751       printf("*** required on your system.\n");
11752       printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
11753       printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
11754       printf("*** before re-running configure\n");
11755     }
11756     else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
11757     {
11758       printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
11759       printf("*** library (version %s)\n", gnutls_check_version(NULL) );
11760     }
11761     else
11762     {
11763       if ( gnutls_check_version( "$min_libgnutls_version" ) )
11764       {
11765         return 0;
11766       }
11767      else
11768       {
11769         printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
11770                 gnutls_check_version(NULL) );
11771         printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
11772                "$min_libgnutls_version" );
11773         printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
11774         printf("*** \n");
11775         printf("*** If you have already installed a sufficiently new version, this error\n");
11776         printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
11777         printf("*** being found. The easiest way to fix this is to remove the old version\n");
11778         printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
11779         printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
11780         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11781         printf("*** so that the correct libraries are found at run-time))\n");
11782       }
11783     }
11784   return 1;
11785 }
11786
11787 _ACEOF
11788 rm -f conftest$ac_exeext
11789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11790   (eval $ac_link) 2>&5
11791   ac_status=$?
11792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795   (eval $ac_try) 2>&5
11796   ac_status=$?
11797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798   (exit $ac_status); }; }; then
11799   :
11800 else
11801   echo "$as_me: program exited with status $ac_status" >&5
11802 echo "$as_me: failed program was:" >&5
11803 sed 's/^/| /' conftest.$ac_ext >&5
11804
11805 ( exit $ac_status )
11806 no_libgnutls=yes
11807 fi
11808 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11809 fi
11810        CFLAGS="$ac_save_CFLAGS"
11811        LIBS="$ac_save_LIBS"
11812   fi
11813
11814   if test "x$no_libgnutls" = x ; then
11815      echo "$as_me:$LINENO: result: yes" >&5
11816 echo "${ECHO_T}yes" >&6
11817
11818 for ac_header in gnutls/openssl.h
11819 do
11820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11821 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11822   echo "$as_me:$LINENO: checking for $ac_header" >&5
11823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11824 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11825   echo $ECHO_N "(cached) $ECHO_C" >&6
11826 fi
11827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11828 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11829 else
11830   # Is the header compilable?
11831 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11833 cat >conftest.$ac_ext <<_ACEOF
11834 #line $LINENO "configure"
11835 /* confdefs.h.  */
11836 _ACEOF
11837 cat confdefs.h >>conftest.$ac_ext
11838 cat >>conftest.$ac_ext <<_ACEOF
11839 /* end confdefs.h.  */
11840 $ac_includes_default
11841 #include <$ac_header>
11842 _ACEOF
11843 rm -f conftest.$ac_objext
11844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11845   (eval $ac_compile) 2>&5
11846   ac_status=$?
11847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848   (exit $ac_status); } &&
11849          { ac_try='test -s conftest.$ac_objext'
11850   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11851   (eval $ac_try) 2>&5
11852   ac_status=$?
11853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854   (exit $ac_status); }; }; then
11855   ac_header_compiler=yes
11856 else
11857   echo "$as_me: failed program was:" >&5
11858 sed 's/^/| /' conftest.$ac_ext >&5
11859
11860 ac_header_compiler=no
11861 fi
11862 rm -f conftest.$ac_objext conftest.$ac_ext
11863 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11864 echo "${ECHO_T}$ac_header_compiler" >&6
11865
11866 # Is the header present?
11867 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11868 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11869 cat >conftest.$ac_ext <<_ACEOF
11870 #line $LINENO "configure"
11871 /* confdefs.h.  */
11872 _ACEOF
11873 cat confdefs.h >>conftest.$ac_ext
11874 cat >>conftest.$ac_ext <<_ACEOF
11875 /* end confdefs.h.  */
11876 #include <$ac_header>
11877 _ACEOF
11878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11879   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11880   ac_status=$?
11881   grep -v '^ *+' conftest.er1 >conftest.err
11882   rm -f conftest.er1
11883   cat conftest.err >&5
11884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885   (exit $ac_status); } >/dev/null; then
11886   if test -s conftest.err; then
11887     ac_cpp_err=$ac_c_preproc_warn_flag
11888   else
11889     ac_cpp_err=
11890   fi
11891 else
11892   ac_cpp_err=yes
11893 fi
11894 if test -z "$ac_cpp_err"; then
11895   ac_header_preproc=yes
11896 else
11897   echo "$as_me: failed program was:" >&5
11898 sed 's/^/| /' conftest.$ac_ext >&5
11899
11900   ac_header_preproc=no
11901 fi
11902 rm -f conftest.err conftest.$ac_ext
11903 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11904 echo "${ECHO_T}$ac_header_preproc" >&6
11905
11906 # So?  What about this header?
11907 case $ac_header_compiler:$ac_header_preproc in
11908   yes:no )
11909     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11911     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11913     (
11914       cat <<\_ASBOX
11915 ## ------------------------------------ ##
11916 ## Report this to bug-autoconf@gnu.org. ##
11917 ## ------------------------------------ ##
11918 _ASBOX
11919     ) |
11920       sed "s/^/$as_me: WARNING:     /" >&2
11921     ;;
11922   no:yes )
11923     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11925     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11926 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11927     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11928 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11929     (
11930       cat <<\_ASBOX
11931 ## ------------------------------------ ##
11932 ## Report this to bug-autoconf@gnu.org. ##
11933 ## ------------------------------------ ##
11934 _ASBOX
11935     ) |
11936       sed "s/^/$as_me: WARNING:     /" >&2
11937     ;;
11938 esac
11939 echo "$as_me:$LINENO: checking for $ac_header" >&5
11940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11942   echo $ECHO_N "(cached) $ECHO_C" >&6
11943 else
11944   eval "$as_ac_Header=$ac_header_preproc"
11945 fi
11946 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11947 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11948
11949 fi
11950 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11951   cat >>confdefs.h <<_ACEOF
11952 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11953 _ACEOF
11954
11955 fi
11956
11957 done
11958
11959          CPPFLAGS="$CPPFLAGS $LIBGNUTLS_CFLAGS"
11960     MUTTLIBS="$MUTTLIBS $LIBGNUTLS_LIBS"
11961
11962 cat >>confdefs.h <<\_ACEOF
11963 #define USE_GNUTLS 1
11964 _ACEOF
11965
11966
11967     MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_gnutls.o"
11968     need_ssl=yes
11969   else
11970      if test -f conf.libgnutlstest ; then
11971         :
11972      else
11973         echo "$as_me:$LINENO: result: no" >&5
11974 echo "${ECHO_T}no" >&6
11975      fi
11976      if test "$LIBGNUTLS_CONFIG" = "no" ; then
11977        echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
11978        echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
11979        echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
11980        echo "*** full path to libgnutls-config."
11981      else
11982        if test -f conf.libgnutlstest ; then
11983         :
11984        else
11985           echo "*** Could not run libgnutls test program, checking why..."
11986           CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
11987           LIBS="$LIBS $LIBGNUTLS_LIBS"
11988           cat >conftest.$ac_ext <<_ACEOF
11989 #line $LINENO "configure"
11990 /* confdefs.h.  */
11991 _ACEOF
11992 cat confdefs.h >>conftest.$ac_ext
11993 cat >>conftest.$ac_ext <<_ACEOF
11994 /* end confdefs.h.  */
11995
11996 #include <stdio.h>
11997 #include <stdlib.h>
11998 #include <string.h>
11999 #include <gnutls/gnutls.h>
12000
12001 int
12002 main ()
12003 {
12004  return !!gnutls_check_version(NULL);
12005   ;
12006   return 0;
12007 }
12008 _ACEOF
12009 rm -f conftest.$ac_objext conftest$ac_exeext
12010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12011   (eval $ac_link) 2>&5
12012   ac_status=$?
12013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014   (exit $ac_status); } &&
12015          { ac_try='test -s conftest$ac_exeext'
12016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12017   (eval $ac_try) 2>&5
12018   ac_status=$?
12019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020   (exit $ac_status); }; }; then
12021    echo "*** The test program compiled, but did not run. This usually means"
12022           echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
12023           echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
12024           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12025           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12026           echo "*** is required on your system"
12027           echo "***"
12028           echo "*** If you have an old version installed, it is best to remove it, although"
12029           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12030           echo "***"
12031 else
12032   echo "$as_me: failed program was:" >&5
12033 sed 's/^/| /' conftest.$ac_ext >&5
12034
12035  echo "*** The test program failed to compile or link. See the file config.log for the"
12036           echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
12037           echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
12038           echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
12039 fi
12040 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12041           CFLAGS="$ac_save_CFLAGS"
12042           LIBS="$ac_save_LIBS"
12043        fi
12044      fi
12045      LIBGNUTLS_CFLAGS=""
12046      LIBGNUTLS_LIBS=""
12047            { { echo "$as_me:$LINENO: error: could not find libgnutls" >&5
12048 echo "$as_me: error: could not find libgnutls" >&2;}
12049    { (exit 1); exit 1; }; }
12050
12051   fi
12052   rm -f conf.libgnutlstest
12053
12054
12055
12056 fi
12057
12058
12059 # Check whether --with-sasl or --without-sasl was given.
12060 if test "${with_sasl+set}" = set; then
12061   withval="$with_sasl"
12062
12063         if test "$with_sasl" != "no" -a "$need_imap" != "yes" -a "$need_pop" != "yes"
12064         then
12065           { { echo "$as_me:$LINENO: error: SASL support is only useful with POP or IMAP support" >&5
12066 echo "$as_me: error: SASL support is only useful with POP or IMAP support" >&2;}
12067    { (exit 1); exit 1; }; }
12068         fi
12069
12070         if test "$with_sasl" != "no"
12071         then
12072           if test "$with_sasl" != "yes"
12073           then
12074             CPPFLAGS="$CPPFLAGS -I$with_sasl/include"
12075             LDFLAGS="$LDFLAGS -L$with_sasl/lib"
12076           fi
12077
12078           saved_LIBS="$LIBS"
12079
12080
12081 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
12082 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
12083 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
12084   echo $ECHO_N "(cached) $ECHO_C" >&6
12085 else
12086   ac_check_lib_save_LIBS=$LIBS
12087 LIBS="-lsasl  $LIBS"
12088 cat >conftest.$ac_ext <<_ACEOF
12089 #line $LINENO "configure"
12090 /* confdefs.h.  */
12091 _ACEOF
12092 cat confdefs.h >>conftest.$ac_ext
12093 cat >>conftest.$ac_ext <<_ACEOF
12094 /* end confdefs.h.  */
12095
12096 /* Override any gcc2 internal prototype to avoid an error.  */
12097 #ifdef __cplusplus
12098 extern "C"
12099 #endif
12100 /* We use char because int might match the return type of a gcc2
12101    builtin and then its argument prototype would still apply.  */
12102 char sasl_client_init ();
12103 int
12104 main ()
12105 {
12106 sasl_client_init ();
12107   ;
12108   return 0;
12109 }
12110 _ACEOF
12111 rm -f conftest.$ac_objext conftest$ac_exeext
12112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12113   (eval $ac_link) 2>&5
12114   ac_status=$?
12115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116   (exit $ac_status); } &&
12117          { ac_try='test -s conftest$ac_exeext'
12118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12119   (eval $ac_try) 2>&5
12120   ac_status=$?
12121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122   (exit $ac_status); }; }; then
12123   ac_cv_lib_sasl_sasl_client_init=yes
12124 else
12125   echo "$as_me: failed program was:" >&5
12126 sed 's/^/| /' conftest.$ac_ext >&5
12127
12128 ac_cv_lib_sasl_sasl_client_init=no
12129 fi
12130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12131 LIBS=$ac_check_lib_save_LIBS
12132 fi
12133 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
12134 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
12135 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
12136   cat >>confdefs.h <<_ACEOF
12137 #define HAVE_LIBSASL 1
12138 _ACEOF
12139
12140   LIBS="-lsasl $LIBS"
12141
12142 else
12143   { { echo "$as_me:$LINENO: error: could not find libsasl" >&5
12144 echo "$as_me: error: could not find libsasl" >&2;}
12145    { (exit 1); exit 1; }; }
12146 fi
12147
12148
12149           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
12150           MUTTLIBS="$MUTTLIBS -lsasl"
12151           LIBS="$saved_LIBS"
12152
12153 cat >>confdefs.h <<\_ACEOF
12154 #define USE_SASL 1
12155 _ACEOF
12156
12157           need_sasl=yes
12158         fi
12159
12160 fi;
12161
12162
12163 if test x$need_sasl = xyes; then
12164   USE_SASL_TRUE=
12165   USE_SASL_FALSE='#'
12166 else
12167   USE_SASL_TRUE='#'
12168   USE_SASL_FALSE=
12169 fi
12170
12171
12172
12173 # Check whether --with-sasl2 or --without-sasl2 was given.
12174 if test "${with_sasl2+set}" = set; then
12175   withval="$with_sasl2"
12176
12177         if test "$with_sasl2" != "no" -a "$need_imap" != "yes" -a "$need_pop" != "yes"
12178         then
12179           { { echo "$as_me:$LINENO: error: SASL2 support is only useful with POP or IMAP support" >&5
12180 echo "$as_me: error: SASL2 support is only useful with POP or IMAP support" >&2;}
12181    { (exit 1); exit 1; }; }
12182         fi
12183
12184         if test "$with_sasl2" != "no"
12185         then
12186           if test "$with_sasl2" != "yes"
12187           then
12188             CPPFLAGS="$CPPFLAGS -I$with_sasl2/include"
12189             LDFLAGS="$LDFLAGS -L$with_sasl2/lib"
12190           fi
12191
12192           saved_LIBS="$LIBS"
12193
12194
12195 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
12196 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
12197 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
12198   echo $ECHO_N "(cached) $ECHO_C" >&6
12199 else
12200   ac_check_lib_save_LIBS=$LIBS
12201 LIBS="-lsasl2  $LIBS"
12202 cat >conftest.$ac_ext <<_ACEOF
12203 #line $LINENO "configure"
12204 /* confdefs.h.  */
12205 _ACEOF
12206 cat confdefs.h >>conftest.$ac_ext
12207 cat >>conftest.$ac_ext <<_ACEOF
12208 /* end confdefs.h.  */
12209
12210 /* Override any gcc2 internal prototype to avoid an error.  */
12211 #ifdef __cplusplus
12212 extern "C"
12213 #endif
12214 /* We use char because int might match the return type of a gcc2
12215    builtin and then its argument prototype would still apply.  */
12216 char sasl_client_init ();
12217 int
12218 main ()
12219 {
12220 sasl_client_init ();
12221   ;
12222   return 0;
12223 }
12224 _ACEOF
12225 rm -f conftest.$ac_objext conftest$ac_exeext
12226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12227   (eval $ac_link) 2>&5
12228   ac_status=$?
12229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230   (exit $ac_status); } &&
12231          { ac_try='test -s conftest$ac_exeext'
12232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12233   (eval $ac_try) 2>&5
12234   ac_status=$?
12235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12236   (exit $ac_status); }; }; then
12237   ac_cv_lib_sasl2_sasl_client_init=yes
12238 else
12239   echo "$as_me: failed program was:" >&5
12240 sed 's/^/| /' conftest.$ac_ext >&5
12241
12242 ac_cv_lib_sasl2_sasl_client_init=no
12243 fi
12244 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12245 LIBS=$ac_check_lib_save_LIBS
12246 fi
12247 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
12248 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
12249 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
12250   cat >>confdefs.h <<_ACEOF
12251 #define HAVE_LIBSASL2 1
12252 _ACEOF
12253
12254   LIBS="-lsasl2 $LIBS"
12255
12256 else
12257   { { echo "$as_me:$LINENO: error: could not find libsasl2" >&5
12258 echo "$as_me: error: could not find libsasl2" >&2;}
12259    { (exit 1); exit 1; }; }
12260 fi
12261
12262
12263           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
12264           MUTTLIBS="$MUTTLIBS -lsasl2"
12265           LIBS="$saved_LIBS"
12266
12267 cat >>confdefs.h <<\_ACEOF
12268 #define USE_SASL 1
12269 _ACEOF
12270
12271
12272 cat >>confdefs.h <<\_ACEOF
12273 #define USE_SASL2 1
12274 _ACEOF
12275
12276           need_sasl=yes
12277         fi
12278
12279 fi;
12280
12281
12282 if test x$need_sasl = xyes; then
12283   USE_SASL_TRUE=
12284   USE_SASL_FALSE='#'
12285 else
12286   USE_SASL_TRUE='#'
12287   USE_SASL_FALSE=
12288 fi
12289
12290
12291
12292 # Check whether --with-idn or --without-idn was given.
12293 if test "${with_idn+set}" = set; then
12294   withval="$with_idn"
12295
12296                   if test "$with_idn" != "no" ; then
12297                         if test "$with_idn" != "yes" ; then
12298                            CPPFLAGS="$CPPFLAGS -I$with_idn/include"
12299                            LDFLAGS="$LDFLAGS -L$with_idn/lib"
12300                         fi
12301                   fi
12302
12303
12304 fi;
12305
12306 if test "x$with_idn" != "xno"; then
12307
12308 echo "$as_me:$LINENO: checking for stringprep_check_version in -lidn" >&5
12309 echo $ECHO_N "checking for stringprep_check_version in -lidn... $ECHO_C" >&6
12310 if test "${ac_cv_lib_idn_stringprep_check_version+set}" = set; then
12311   echo $ECHO_N "(cached) $ECHO_C" >&6
12312 else
12313   ac_check_lib_save_LIBS=$LIBS
12314 LIBS="-lidn  $LIBS"
12315 cat >conftest.$ac_ext <<_ACEOF
12316 #line $LINENO "configure"
12317 /* confdefs.h.  */
12318 _ACEOF
12319 cat confdefs.h >>conftest.$ac_ext
12320 cat >>conftest.$ac_ext <<_ACEOF
12321 /* end confdefs.h.  */
12322
12323 /* Override any gcc2 internal prototype to avoid an error.  */
12324 #ifdef __cplusplus
12325 extern "C"
12326 #endif
12327 /* We use char because int might match the return type of a gcc2
12328    builtin and then its argument prototype would still apply.  */
12329 char stringprep_check_version ();
12330 int
12331 main ()
12332 {
12333 stringprep_check_version ();
12334   ;
12335   return 0;
12336 }
12337 _ACEOF
12338 rm -f conftest.$ac_objext conftest$ac_exeext
12339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12340   (eval $ac_link) 2>&5
12341   ac_status=$?
12342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343   (exit $ac_status); } &&
12344          { ac_try='test -s conftest$ac_exeext'
12345   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346   (eval $ac_try) 2>&5
12347   ac_status=$?
12348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349   (exit $ac_status); }; }; then
12350   ac_cv_lib_idn_stringprep_check_version=yes
12351 else
12352   echo "$as_me: failed program was:" >&5
12353 sed 's/^/| /' conftest.$ac_ext >&5
12354
12355 ac_cv_lib_idn_stringprep_check_version=no
12356 fi
12357 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12358 LIBS=$ac_check_lib_save_LIBS
12359 fi
12360 echo "$as_me:$LINENO: result: $ac_cv_lib_idn_stringprep_check_version" >&5
12361 echo "${ECHO_T}$ac_cv_lib_idn_stringprep_check_version" >&6
12362 if test $ac_cv_lib_idn_stringprep_check_version = yes; then
12363   cat >>confdefs.h <<_ACEOF
12364 #define HAVE_LIBIDN 1
12365 _ACEOF
12366
12367   LIBS="-lidn $LIBS"
12368
12369 fi
12370
12371
12372
12373 for ac_func in idna_to_unicode_utf8_from_utf8 idna_to_unicode_8z8z
12374 do
12375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12376 echo "$as_me:$LINENO: checking for $ac_func" >&5
12377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12378 if eval "test \"\${$as_ac_var+set}\" = set"; then
12379   echo $ECHO_N "(cached) $ECHO_C" >&6
12380 else
12381   cat >conftest.$ac_ext <<_ACEOF
12382 #line $LINENO "configure"
12383 /* confdefs.h.  */
12384 _ACEOF
12385 cat confdefs.h >>conftest.$ac_ext
12386 cat >>conftest.$ac_ext <<_ACEOF
12387 /* end confdefs.h.  */
12388 /* System header to define __stub macros and hopefully few prototypes,
12389     which can conflict with char $ac_func (); below.
12390     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12391     <limits.h> exists even on freestanding compilers.  */
12392 #ifdef __STDC__
12393 # include <limits.h>
12394 #else
12395 # include <assert.h>
12396 #endif
12397 /* Override any gcc2 internal prototype to avoid an error.  */
12398 #ifdef __cplusplus
12399 extern "C"
12400 {
12401 #endif
12402 /* We use char because int might match the return type of a gcc2
12403    builtin and then its argument prototype would still apply.  */
12404 char $ac_func ();
12405 /* The GNU C library defines this for functions which it implements
12406     to always fail with ENOSYS.  Some functions are actually named
12407     something starting with __ and the normal name is an alias.  */
12408 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12409 choke me
12410 #else
12411 char (*f) () = $ac_func;
12412 #endif
12413 #ifdef __cplusplus
12414 }
12415 #endif
12416
12417 int
12418 main ()
12419 {
12420 return f != $ac_func;
12421   ;
12422   return 0;
12423 }
12424 _ACEOF
12425 rm -f conftest.$ac_objext conftest$ac_exeext
12426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12427   (eval $ac_link) 2>&5
12428   ac_status=$?
12429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430   (exit $ac_status); } &&
12431          { ac_try='test -s conftest$ac_exeext'
12432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433   (eval $ac_try) 2>&5
12434   ac_status=$?
12435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436   (exit $ac_status); }; }; then
12437   eval "$as_ac_var=yes"
12438 else
12439   echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12441
12442 eval "$as_ac_var=no"
12443 fi
12444 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12445 fi
12446 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12447 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12448 if test `eval echo '${'$as_ac_var'}'` = yes; then
12449   cat >>confdefs.h <<_ACEOF
12450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12451 _ACEOF
12452
12453 fi
12454 done
12455
12456
12457
12458 for ac_func in idna_to_ascii_from_utf8 idna_to_ascii_8z
12459 do
12460 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12461 echo "$as_me:$LINENO: checking for $ac_func" >&5
12462 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12463 if eval "test \"\${$as_ac_var+set}\" = set"; then
12464   echo $ECHO_N "(cached) $ECHO_C" >&6
12465 else
12466   cat >conftest.$ac_ext <<_ACEOF
12467 #line $LINENO "configure"
12468 /* confdefs.h.  */
12469 _ACEOF
12470 cat confdefs.h >>conftest.$ac_ext
12471 cat >>conftest.$ac_ext <<_ACEOF
12472 /* end confdefs.h.  */
12473 /* System header to define __stub macros and hopefully few prototypes,
12474     which can conflict with char $ac_func (); below.
12475     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12476     <limits.h> exists even on freestanding compilers.  */
12477 #ifdef __STDC__
12478 # include <limits.h>
12479 #else
12480 # include <assert.h>
12481 #endif
12482 /* Override any gcc2 internal prototype to avoid an error.  */
12483 #ifdef __cplusplus
12484 extern "C"
12485 {
12486 #endif
12487 /* We use char because int might match the return type of a gcc2
12488    builtin and then its argument prototype would still apply.  */
12489 char $ac_func ();
12490 /* The GNU C library defines this for functions which it implements
12491     to always fail with ENOSYS.  Some functions are actually named
12492     something starting with __ and the normal name is an alias.  */
12493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12494 choke me
12495 #else
12496 char (*f) () = $ac_func;
12497 #endif
12498 #ifdef __cplusplus
12499 }
12500 #endif
12501
12502 int
12503 main ()
12504 {
12505 return f != $ac_func;
12506   ;
12507   return 0;
12508 }
12509 _ACEOF
12510 rm -f conftest.$ac_objext conftest$ac_exeext
12511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12512   (eval $ac_link) 2>&5
12513   ac_status=$?
12514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515   (exit $ac_status); } &&
12516          { ac_try='test -s conftest$ac_exeext'
12517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12518   (eval $ac_try) 2>&5
12519   ac_status=$?
12520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521   (exit $ac_status); }; }; then
12522   eval "$as_ac_var=yes"
12523 else
12524   echo "$as_me: failed program was:" >&5
12525 sed 's/^/| /' conftest.$ac_ext >&5
12526
12527 eval "$as_ac_var=no"
12528 fi
12529 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12530 fi
12531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12532 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12533 if test `eval echo '${'$as_ac_var'}'` = yes; then
12534   cat >>confdefs.h <<_ACEOF
12535 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12536 _ACEOF
12537
12538 fi
12539 done
12540
12541
12542
12543 for ac_func in idna_to_ascii_lz idna_to_ascii_from_locale
12544 do
12545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12546 echo "$as_me:$LINENO: checking for $ac_func" >&5
12547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12548 if eval "test \"\${$as_ac_var+set}\" = set"; then
12549   echo $ECHO_N "(cached) $ECHO_C" >&6
12550 else
12551   cat >conftest.$ac_ext <<_ACEOF
12552 #line $LINENO "configure"
12553 /* confdefs.h.  */
12554 _ACEOF
12555 cat confdefs.h >>conftest.$ac_ext
12556 cat >>conftest.$ac_ext <<_ACEOF
12557 /* end confdefs.h.  */
12558 /* System header to define __stub macros and hopefully few prototypes,
12559     which can conflict with char $ac_func (); below.
12560     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12561     <limits.h> exists even on freestanding compilers.  */
12562 #ifdef __STDC__
12563 # include <limits.h>
12564 #else
12565 # include <assert.h>
12566 #endif
12567 /* Override any gcc2 internal prototype to avoid an error.  */
12568 #ifdef __cplusplus
12569 extern "C"
12570 {
12571 #endif
12572 /* We use char because int might match the return type of a gcc2
12573    builtin and then its argument prototype would still apply.  */
12574 char $ac_func ();
12575 /* The GNU C library defines this for functions which it implements
12576     to always fail with ENOSYS.  Some functions are actually named
12577     something starting with __ and the normal name is an alias.  */
12578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12579 choke me
12580 #else
12581 char (*f) () = $ac_func;
12582 #endif
12583 #ifdef __cplusplus
12584 }
12585 #endif
12586
12587 int
12588 main ()
12589 {
12590 return f != $ac_func;
12591   ;
12592   return 0;
12593 }
12594 _ACEOF
12595 rm -f conftest.$ac_objext conftest$ac_exeext
12596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12597   (eval $ac_link) 2>&5
12598   ac_status=$?
12599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12600   (exit $ac_status); } &&
12601          { ac_try='test -s conftest$ac_exeext'
12602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12603   (eval $ac_try) 2>&5
12604   ac_status=$?
12605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606   (exit $ac_status); }; }; then
12607   eval "$as_ac_var=yes"
12608 else
12609   echo "$as_me: failed program was:" >&5
12610 sed 's/^/| /' conftest.$ac_ext >&5
12611
12612 eval "$as_ac_var=no"
12613 fi
12614 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12615 fi
12616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12617 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12618 if test `eval echo '${'$as_ac_var'}'` = yes; then
12619   cat >>confdefs.h <<_ACEOF
12620 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12621 _ACEOF
12622
12623 fi
12624 done
12625
12626 fi
12627
12628
12629 # Check whether --enable-debug or --disable-debug was given.
12630 if test "${enable_debug+set}" = set; then
12631   enableval="$enable_debug"
12632    if test x$enableval = xyes ; then
12633
12634 cat >>confdefs.h <<\_ACEOF
12635 #define DEBUG 1
12636 _ACEOF
12637
12638           fi
12639
12640 fi;
12641
12642 # Check whether --enable-flock or --disable-flock was given.
12643 if test "${enable_flock+set}" = set; then
12644   enableval="$enable_flock"
12645   if test $enableval = yes; then
12646
12647 cat >>confdefs.h <<\_ACEOF
12648 #define USE_FLOCK 1
12649 _ACEOF
12650
12651         fi
12652 fi;
12653
12654 mutt_cv_fcntl=yes
12655 # Check whether --enable-fcntl or --disable-fcntl was given.
12656 if test "${enable_fcntl+set}" = set; then
12657   enableval="$enable_fcntl"
12658   if test $enableval = no; then mutt_cv_fcntl=no; fi
12659 fi;
12660
12661 if test $mutt_cv_fcntl = yes; then
12662
12663 cat >>confdefs.h <<\_ACEOF
12664 #define USE_FCNTL 1
12665 _ACEOF
12666
12667 fi
12668
12669 mutt_cv_inodesort=no
12670 # Check whether --enable-inodesort or --disable-inodesort was given.
12671 if test "${enable_inodesort+set}" = set; then
12672   enableval="$enable_inodesort"
12673   if test x$enableval = xyes ; then mutt_cv_inodesort=yes; fi
12674 fi;
12675
12676 if test $mutt_cv_inodesort = yes; then
12677
12678 cat >>confdefs.h <<\_ACEOF
12679 #define USE_INODESORT 1
12680 _ACEOF
12681
12682 fi
12683
12684 mutt_cv_warnings=yes
12685 # Check whether --enable-warnings or --disable-warnings was given.
12686 if test "${enable_warnings+set}" = set; then
12687   enableval="$enable_warnings"
12688   if test $enableval = no; then
12689         mutt_cv_warnings=no
12690 fi
12691 fi;
12692
12693 if test x$GCC = xyes -a $mutt_cv_warnings = yes; then
12694         CFLAGS="-Wall -pedantic $CFLAGS"
12695 fi
12696
12697 # Check whether --enable-nfs-fix or --disable-nfs-fix was given.
12698 if test "${enable_nfs_fix+set}" = set; then
12699   enableval="$enable_nfs_fix"
12700   if test x$enableval = xyes; then
12701
12702 cat >>confdefs.h <<\_ACEOF
12703 #define NFS_ATTRIBUTE_HACK 1
12704 _ACEOF
12705
12706         fi
12707 fi;
12708
12709 # Check whether --enable-buffy-size or --disable-buffy-size was given.
12710 if test "${enable_buffy_size+set}" = set; then
12711   enableval="$enable_buffy_size"
12712   if test x$enableval = xyes; then
12713
12714 cat >>confdefs.h <<\_ACEOF
12715 #define BUFFY_SIZE 1
12716 _ACEOF
12717
12718         fi
12719 fi;
12720
12721 # Check whether --enable-mailtool or --disable-mailtool was given.
12722 if test "${enable_mailtool+set}" = set; then
12723   enableval="$enable_mailtool"
12724   if test x$enableval = xyes; then
12725
12726 cat >>confdefs.h <<\_ACEOF
12727 #define SUN_ATTACHMENT 1
12728 _ACEOF
12729
12730         fi
12731 fi;
12732
12733 # Check whether --enable-compressed or --disable-compressed was given.
12734 if test "${enable_compressed+set}" = set; then
12735   enableval="$enable_compressed"
12736   if test x$enableval = xyes; then
12737                 cat >>confdefs.h <<\_ACEOF
12738 #define USE_COMPRESSED 1
12739 _ACEOF
12740
12741         fi
12742 fi;
12743
12744 # Check whether --enable-locales-fix or --disable-locales-fix was given.
12745 if test "${enable_locales_fix+set}" = set; then
12746   enableval="$enable_locales_fix"
12747   if test x$enableval = xyes; then
12748
12749 cat >>confdefs.h <<\_ACEOF
12750 #define LOCALES_HACK 1
12751 _ACEOF
12752
12753         fi
12754 fi;
12755
12756
12757 # Check whether --with-exec-shell or --without-exec-shell was given.
12758 if test "${with_exec_shell+set}" = set; then
12759   withval="$with_exec_shell"
12760   if test $withval != yes; then
12761
12762 cat >>confdefs.h <<_ACEOF
12763 #define EXECSHELL "$withval"
12764 _ACEOF
12765
12766          else
12767                 cat >>confdefs.h <<_ACEOF
12768 #define EXECSHELL "/bin/sh"
12769 _ACEOF
12770
12771         fi
12772 else
12773   cat >>confdefs.h <<_ACEOF
12774 #define EXECSHELL "/bin/sh"
12775 _ACEOF
12776
12777 fi;
12778
12779 # Check whether --enable-exact-address or --disable-exact-address was given.
12780 if test "${enable_exact_address+set}" = set; then
12781   enableval="$enable_exact_address"
12782   if test $enableval = yes; then
12783
12784 cat >>confdefs.h <<\_ACEOF
12785 #define EXACT_ADDRESS 1
12786 _ACEOF
12787
12788
12789         fi
12790 fi;
12791
12792 # Check whether --enable-hcache or --disable-hcache was given.
12793 if test "${enable_hcache+set}" = set; then
12794   enableval="$enable_hcache"
12795   if test x$enableval = xyes; then
12796
12797 cat >>confdefs.h <<\_ACEOF
12798 #define USE_HCACHE 1
12799 _ACEOF
12800
12801
12802     OLDCPPFLAGS="$CPPFLAGS"
12803     OLDLIBS="$LIBS"
12804
12805     need_md5="yes"
12806     ac_prefer_gdbm=yes
12807
12808 # Check whether --with-gdbm or --without-gdbm was given.
12809 if test "${with_gdbm+set}" = set; then
12810   withval="$with_gdbm"
12811   ac_prefer_gdbm=$withval
12812 fi;
12813     if test x$ac_prefer_gdbm != xno; then
12814         CPPFLAGS="$OLDCPPFLAGS"
12815         LIBS="$OLDLIBS -lgdbm";
12816         echo "$as_me:$LINENO: checking for gdbm_open" >&5
12817 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
12818 if test "${ac_cv_gdbmopen+set}" = set; then
12819   echo $ECHO_N "(cached) $ECHO_C" >&6
12820 else
12821
12822             ac_cv_gdbmopen=no
12823             cat >conftest.$ac_ext <<_ACEOF
12824 #line $LINENO "configure"
12825 /* confdefs.h.  */
12826 _ACEOF
12827 cat confdefs.h >>conftest.$ac_ext
12828 cat >>conftest.$ac_ext <<_ACEOF
12829 /* end confdefs.h.  */
12830 #include <gdbm.h>
12831 int
12832 main ()
12833 {
12834 gdbm_open(0,0,0,0,0);
12835   ;
12836   return 0;
12837 }
12838 _ACEOF
12839 rm -f conftest.$ac_objext conftest$ac_exeext
12840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12841   (eval $ac_link) 2>&5
12842   ac_status=$?
12843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844   (exit $ac_status); } &&
12845          { ac_try='test -s conftest$ac_exeext'
12846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12847   (eval $ac_try) 2>&5
12848   ac_status=$?
12849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12850   (exit $ac_status); }; }; then
12851   ac_cv_gdbmopen=yes
12852 else
12853   echo "$as_me: failed program was:" >&5
12854 sed 's/^/| /' conftest.$ac_ext >&5
12855
12856 fi
12857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12858
12859 fi
12860 echo "$as_me:$LINENO: result: $ac_cv_gdbmopen" >&5
12861 echo "${ECHO_T}$ac_cv_gdbmopen" >&6
12862     fi
12863
12864     ac_bdb_prefix=yes
12865
12866 # Check whether --with-bdb or --without-bdb was given.
12867 if test "${with_bdb+set}" = set; then
12868   withval="$with_bdb"
12869   ac_bdb_prefix=$withval
12870 fi;
12871     if test x$ac_bdb_prefix != xno -a x$ac_cv_gdbmopen != xyes; then
12872         test x$ac_bdb_prefix = xyes && ac_bdb_prefix="$mutt_cv_prefix /opt/csw/bdb4 /opt /usr/local /usr"
12873         for d in $ac_bdb_prefix; do
12874             bdbpfx="$bdbpfx $d"
12875             for v in BerkeleyDB.4.3 BerkeleyDB.4.2 BerkeleyDB.4.1; do
12876                 bdbpfx="$bdbpfx $d/$v"
12877             done
12878         done
12879         BDB_VERSIONS="db-4 db4 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db ''"
12880         echo "$as_me:$LINENO: checking for BerkeleyDB > 4.0" >&5
12881 echo $ECHO_N "checking for BerkeleyDB > 4.0... $ECHO_C" >&6
12882         for d in $bdbpfx; do
12883             BDB_INCLUDE_DIR=""
12884             BDB_LIB_DIR=""
12885             for v in / $BDB_VERSIONS; do
12886                 if test -r "$d/include/$v/db.h"; then
12887                     BDB_INCLUDE_DIR="$d/include/$v"
12888                     if test -d "$d/lib/$v"; then
12889                         BDB_LIB_DIR="$d/lib/$v"
12890                         for l in `echo $BDB_VERSIONS`; do
12891                             CPPFLAGS="-I$BDB_INCLUDE_DIR $OLDCPPFLAGS"
12892                             LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$l"
12893                             cat >conftest.$ac_ext <<_ACEOF
12894 #line $LINENO "configure"
12895 /* confdefs.h.  */
12896 _ACEOF
12897 cat confdefs.h >>conftest.$ac_ext
12898 cat >>conftest.$ac_ext <<_ACEOF
12899 /* end confdefs.h.  */
12900
12901                                 #include <stdlib.h>
12902                                 #include <db.h>
12903
12904 int
12905 main ()
12906 {
12907
12908                                 DB *db = NULL;
12909                                 db->open(db,NULL,NULL,NULL,0,0,0);
12910
12911   ;
12912   return 0;
12913 }
12914 _ACEOF
12915 rm -f conftest.$ac_objext conftest$ac_exeext
12916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12917   (eval $ac_link) 2>&5
12918   ac_status=$?
12919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920   (exit $ac_status); } &&
12921          { ac_try='test -s conftest$ac_exeext'
12922   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12923   (eval $ac_try) 2>&5
12924   ac_status=$?
12925   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926   (exit $ac_status); }; }; then
12927
12928                                 ac_cv_dbcreate=yes
12929                                 BDB_LIB="$l"
12930                                 break
12931
12932 else
12933   echo "$as_me: failed program was:" >&5
12934 sed 's/^/| /' conftest.$ac_ext >&5
12935
12936 fi
12937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12938                         done
12939                         test x$ac_dbcreate = xyes && break
12940                     fi
12941                 fi
12942             done
12943             test x$BDB_LIB != x && break
12944         done
12945         if test x$ac_cv_dbcreate = xyes; then
12946             echo "$as_me:$LINENO: result: yes" >&5
12947 echo "${ECHO_T}yes" >&6
12948         else
12949             echo "$as_me:$LINENO: result: no" >&5
12950 echo "${ECHO_T}no" >&6
12951         fi
12952     fi
12953
12954     if test x$ac_cv_gdbmopen = xyes; then
12955         CPPFLAGS="$OLDCPPFLAGS"
12956         LIBS="$OLDLIBS -lgdbm";
12957
12958 cat >>confdefs.h <<\_ACEOF
12959 #define HAVE_GDBM 1
12960 _ACEOF
12961
12962     elif test x$ac_cv_dbcreate = xyes; then
12963         CPPFLAGS="-I$BDB_INCLUDE_DIR $OLDCPPFLAGS"
12964         LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$BDB_LIB"
12965
12966 cat >>confdefs.h <<\_ACEOF
12967 #define HAVE_DB4 1
12968 _ACEOF
12969
12970     else
12971         { { echo "$as_me:$LINENO: error: You need Sleepycat DB4 or GDBM for --enable-hcache" >&5
12972 echo "$as_me: error: You need Sleepycat DB4 or GDBM for --enable-hcache" >&2;}
12973    { (exit 1); exit 1; }; }
12974     fi
12975 fi
12976 fi;
12977
12978
12979
12980
12981
12982
12983
12984 # Check whether --enable-iconv or --disable-iconv was given.
12985 if test "${enable_iconv+set}" = set; then
12986   enableval="$enable_iconv"
12987   if test x$enableval = xno ; then
12988                 am_cv_func_iconv=no
12989         fi
12990
12991 fi;
12992
12993 echo "$as_me:$LINENO: checking for off_t" >&5
12994 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12995 if test "${ac_cv_type_off_t+set}" = set; then
12996   echo $ECHO_N "(cached) $ECHO_C" >&6
12997 else
12998   cat >conftest.$ac_ext <<_ACEOF
12999 #line $LINENO "configure"
13000 /* confdefs.h.  */
13001 _ACEOF
13002 cat confdefs.h >>conftest.$ac_ext
13003 cat >>conftest.$ac_ext <<_ACEOF
13004 /* end confdefs.h.  */
13005 $ac_includes_default
13006 int
13007 main ()
13008 {
13009 if ((off_t *) 0)
13010   return 0;
13011 if (sizeof (off_t))
13012   return 0;
13013   ;
13014   return 0;
13015 }
13016 _ACEOF
13017 rm -f conftest.$ac_objext
13018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13019   (eval $ac_compile) 2>&5
13020   ac_status=$?
13021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022   (exit $ac_status); } &&
13023          { ac_try='test -s conftest.$ac_objext'
13024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13025   (eval $ac_try) 2>&5
13026   ac_status=$?
13027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028   (exit $ac_status); }; }; then
13029   ac_cv_type_off_t=yes
13030 else
13031   echo "$as_me: failed program was:" >&5
13032 sed 's/^/| /' conftest.$ac_ext >&5
13033
13034 ac_cv_type_off_t=no
13035 fi
13036 rm -f conftest.$ac_objext conftest.$ac_ext
13037 fi
13038 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13039 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13040 if test $ac_cv_type_off_t = yes; then
13041   :
13042 else
13043
13044 cat >>confdefs.h <<_ACEOF
13045 #define off_t long
13046 _ACEOF
13047
13048 fi
13049
13050 echo "$as_me:$LINENO: checking for size_t" >&5
13051 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13052 if test "${ac_cv_type_size_t+set}" = set; then
13053   echo $ECHO_N "(cached) $ECHO_C" >&6
13054 else
13055   cat >conftest.$ac_ext <<_ACEOF
13056 #line $LINENO "configure"
13057 /* confdefs.h.  */
13058 _ACEOF
13059 cat confdefs.h >>conftest.$ac_ext
13060 cat >>conftest.$ac_ext <<_ACEOF
13061 /* end confdefs.h.  */
13062 $ac_includes_default
13063 int
13064 main ()
13065 {
13066 if ((size_t *) 0)
13067   return 0;
13068 if (sizeof (size_t))
13069   return 0;
13070   ;
13071   return 0;
13072 }
13073 _ACEOF
13074 rm -f conftest.$ac_objext
13075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13076   (eval $ac_compile) 2>&5
13077   ac_status=$?
13078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13079   (exit $ac_status); } &&
13080          { ac_try='test -s conftest.$ac_objext'
13081   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13082   (eval $ac_try) 2>&5
13083   ac_status=$?
13084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085   (exit $ac_status); }; }; then
13086   ac_cv_type_size_t=yes
13087 else
13088   echo "$as_me: failed program was:" >&5
13089 sed 's/^/| /' conftest.$ac_ext >&5
13090
13091 ac_cv_type_size_t=no
13092 fi
13093 rm -f conftest.$ac_objext conftest.$ac_ext
13094 fi
13095 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13096 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13097 if test $ac_cv_type_size_t = yes; then
13098   :
13099 else
13100
13101 cat >>confdefs.h <<_ACEOF
13102 #define size_t unsigned
13103 _ACEOF
13104
13105 fi
13106
13107 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13108 # for constant arguments.  Useless!
13109 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13110 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13111 if test "${ac_cv_working_alloca_h+set}" = set; then
13112   echo $ECHO_N "(cached) $ECHO_C" >&6
13113 else
13114   cat >conftest.$ac_ext <<_ACEOF
13115 #line $LINENO "configure"
13116 /* confdefs.h.  */
13117 _ACEOF
13118 cat confdefs.h >>conftest.$ac_ext
13119 cat >>conftest.$ac_ext <<_ACEOF
13120 /* end confdefs.h.  */
13121 #include <alloca.h>
13122 int
13123 main ()
13124 {
13125 char *p = (char *) alloca (2 * sizeof (int));
13126   ;
13127   return 0;
13128 }
13129 _ACEOF
13130 rm -f conftest.$ac_objext conftest$ac_exeext
13131 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13132   (eval $ac_link) 2>&5
13133   ac_status=$?
13134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135   (exit $ac_status); } &&
13136          { ac_try='test -s conftest$ac_exeext'
13137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13138   (eval $ac_try) 2>&5
13139   ac_status=$?
13140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141   (exit $ac_status); }; }; then
13142   ac_cv_working_alloca_h=yes
13143 else
13144   echo "$as_me: failed program was:" >&5
13145 sed 's/^/| /' conftest.$ac_ext >&5
13146
13147 ac_cv_working_alloca_h=no
13148 fi
13149 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13150 fi
13151 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13152 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13153 if test $ac_cv_working_alloca_h = yes; then
13154
13155 cat >>confdefs.h <<\_ACEOF
13156 #define HAVE_ALLOCA_H 1
13157 _ACEOF
13158
13159 fi
13160
13161 echo "$as_me:$LINENO: checking for alloca" >&5
13162 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13163 if test "${ac_cv_func_alloca_works+set}" = set; then
13164   echo $ECHO_N "(cached) $ECHO_C" >&6
13165 else
13166   cat >conftest.$ac_ext <<_ACEOF
13167 #line $LINENO "configure"
13168 /* confdefs.h.  */
13169 _ACEOF
13170 cat confdefs.h >>conftest.$ac_ext
13171 cat >>conftest.$ac_ext <<_ACEOF
13172 /* end confdefs.h.  */
13173 #ifdef __GNUC__
13174 # define alloca __builtin_alloca
13175 #else
13176 # ifdef _MSC_VER
13177 #  include <malloc.h>
13178 #  define alloca _alloca
13179 # else
13180 #  if HAVE_ALLOCA_H
13181 #   include <alloca.h>
13182 #  else
13183 #   ifdef _AIX
13184  #pragma alloca
13185 #   else
13186 #    ifndef alloca /* predefined by HP cc +Olibcalls */
13187 char *alloca ();
13188 #    endif
13189 #   endif
13190 #  endif
13191 # endif
13192 #endif
13193
13194 int
13195 main ()
13196 {
13197 char *p = (char *) alloca (1);
13198   ;
13199   return 0;
13200 }
13201 _ACEOF
13202 rm -f conftest.$ac_objext conftest$ac_exeext
13203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13204   (eval $ac_link) 2>&5
13205   ac_status=$?
13206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207   (exit $ac_status); } &&
13208          { ac_try='test -s conftest$ac_exeext'
13209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13210   (eval $ac_try) 2>&5
13211   ac_status=$?
13212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13213   (exit $ac_status); }; }; then
13214   ac_cv_func_alloca_works=yes
13215 else
13216   echo "$as_me: failed program was:" >&5
13217 sed 's/^/| /' conftest.$ac_ext >&5
13218
13219 ac_cv_func_alloca_works=no
13220 fi
13221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13222 fi
13223 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13224 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
13225
13226 if test $ac_cv_func_alloca_works = yes; then
13227
13228 cat >>confdefs.h <<\_ACEOF
13229 #define HAVE_ALLOCA 1
13230 _ACEOF
13231
13232 else
13233   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13234 # that cause trouble.  Some versions do not even contain alloca or
13235 # contain a buggy version.  If you still want to use their alloca,
13236 # use ar to extract alloca.o from them instead of compiling alloca.c.
13237
13238 ALLOCA=alloca.$ac_objext
13239
13240 cat >>confdefs.h <<\_ACEOF
13241 #define C_ALLOCA 1
13242 _ACEOF
13243
13244
13245 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13246 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13247 if test "${ac_cv_os_cray+set}" = set; then
13248   echo $ECHO_N "(cached) $ECHO_C" >&6
13249 else
13250   cat >conftest.$ac_ext <<_ACEOF
13251 #line $LINENO "configure"
13252 /* confdefs.h.  */
13253 _ACEOF
13254 cat confdefs.h >>conftest.$ac_ext
13255 cat >>conftest.$ac_ext <<_ACEOF
13256 /* end confdefs.h.  */
13257 #if defined(CRAY) && ! defined(CRAY2)
13258 webecray
13259 #else
13260 wenotbecray
13261 #endif
13262
13263 _ACEOF
13264 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13265   $EGREP "webecray" >/dev/null 2>&1; then
13266   ac_cv_os_cray=yes
13267 else
13268   ac_cv_os_cray=no
13269 fi
13270 rm -f conftest*
13271
13272 fi
13273 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13274 echo "${ECHO_T}$ac_cv_os_cray" >&6
13275 if test $ac_cv_os_cray = yes; then
13276   for ac_func in _getb67 GETB67 getb67; do
13277     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13278 echo "$as_me:$LINENO: checking for $ac_func" >&5
13279 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13280 if eval "test \"\${$as_ac_var+set}\" = set"; then
13281   echo $ECHO_N "(cached) $ECHO_C" >&6
13282 else
13283   cat >conftest.$ac_ext <<_ACEOF
13284 #line $LINENO "configure"
13285 /* confdefs.h.  */
13286 _ACEOF
13287 cat confdefs.h >>conftest.$ac_ext
13288 cat >>conftest.$ac_ext <<_ACEOF
13289 /* end confdefs.h.  */
13290 /* System header to define __stub macros and hopefully few prototypes,
13291     which can conflict with char $ac_func (); below.
13292     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13293     <limits.h> exists even on freestanding compilers.  */
13294 #ifdef __STDC__
13295 # include <limits.h>
13296 #else
13297 # include <assert.h>
13298 #endif
13299 /* Override any gcc2 internal prototype to avoid an error.  */
13300 #ifdef __cplusplus
13301 extern "C"
13302 {
13303 #endif
13304 /* We use char because int might match the return type of a gcc2
13305    builtin and then its argument prototype would still apply.  */
13306 char $ac_func ();
13307 /* The GNU C library defines this for functions which it implements
13308     to always fail with ENOSYS.  Some functions are actually named
13309     something starting with __ and the normal name is an alias.  */
13310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13311 choke me
13312 #else
13313 char (*f) () = $ac_func;
13314 #endif
13315 #ifdef __cplusplus
13316 }
13317 #endif
13318
13319 int
13320 main ()
13321 {
13322 return f != $ac_func;
13323   ;
13324   return 0;
13325 }
13326 _ACEOF
13327 rm -f conftest.$ac_objext conftest$ac_exeext
13328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13329   (eval $ac_link) 2>&5
13330   ac_status=$?
13331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332   (exit $ac_status); } &&
13333          { ac_try='test -s conftest$ac_exeext'
13334   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13335   (eval $ac_try) 2>&5
13336   ac_status=$?
13337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338   (exit $ac_status); }; }; then
13339   eval "$as_ac_var=yes"
13340 else
13341   echo "$as_me: failed program was:" >&5
13342 sed 's/^/| /' conftest.$ac_ext >&5
13343
13344 eval "$as_ac_var=no"
13345 fi
13346 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13347 fi
13348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13349 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13350 if test `eval echo '${'$as_ac_var'}'` = yes; then
13351
13352 cat >>confdefs.h <<_ACEOF
13353 #define CRAY_STACKSEG_END $ac_func
13354 _ACEOF
13355
13356     break
13357 fi
13358
13359   done
13360 fi
13361
13362 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13363 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13364 if test "${ac_cv_c_stack_direction+set}" = set; then
13365   echo $ECHO_N "(cached) $ECHO_C" >&6
13366 else
13367   if test "$cross_compiling" = yes; then
13368   ac_cv_c_stack_direction=0
13369 else
13370   cat >conftest.$ac_ext <<_ACEOF
13371 #line $LINENO "configure"
13372 /* confdefs.h.  */
13373 _ACEOF
13374 cat confdefs.h >>conftest.$ac_ext
13375 cat >>conftest.$ac_ext <<_ACEOF
13376 /* end confdefs.h.  */
13377 int
13378 find_stack_direction ()
13379 {
13380   static char *addr = 0;
13381   auto char dummy;
13382   if (addr == 0)
13383     {
13384       addr = &dummy;
13385       return find_stack_direction ();
13386     }
13387   else
13388     return (&dummy > addr) ? 1 : -1;
13389 }
13390
13391 int
13392 main ()
13393 {
13394   exit (find_stack_direction () < 0);
13395 }
13396 _ACEOF
13397 rm -f conftest$ac_exeext
13398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13399   (eval $ac_link) 2>&5
13400   ac_status=$?
13401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13404   (eval $ac_try) 2>&5
13405   ac_status=$?
13406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407   (exit $ac_status); }; }; then
13408   ac_cv_c_stack_direction=1
13409 else
13410   echo "$as_me: program exited with status $ac_status" >&5
13411 echo "$as_me: failed program was:" >&5
13412 sed 's/^/| /' conftest.$ac_ext >&5
13413
13414 ( exit $ac_status )
13415 ac_cv_c_stack_direction=-1
13416 fi
13417 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13418 fi
13419 fi
13420 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
13421 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
13422
13423 cat >>confdefs.h <<_ACEOF
13424 #define STACK_DIRECTION $ac_cv_c_stack_direction
13425 _ACEOF
13426
13427
13428 fi
13429
13430
13431
13432 for ac_header in stdlib.h unistd.h
13433 do
13434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13435 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13436   echo "$as_me:$LINENO: checking for $ac_header" >&5
13437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13438 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13439   echo $ECHO_N "(cached) $ECHO_C" >&6
13440 fi
13441 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13442 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13443 else
13444   # Is the header compilable?
13445 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13446 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13447 cat >conftest.$ac_ext <<_ACEOF
13448 #line $LINENO "configure"
13449 /* confdefs.h.  */
13450 _ACEOF
13451 cat confdefs.h >>conftest.$ac_ext
13452 cat >>conftest.$ac_ext <<_ACEOF
13453 /* end confdefs.h.  */
13454 $ac_includes_default
13455 #include <$ac_header>
13456 _ACEOF
13457 rm -f conftest.$ac_objext
13458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13459   (eval $ac_compile) 2>&5
13460   ac_status=$?
13461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462   (exit $ac_status); } &&
13463          { ac_try='test -s conftest.$ac_objext'
13464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13465   (eval $ac_try) 2>&5
13466   ac_status=$?
13467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468   (exit $ac_status); }; }; then
13469   ac_header_compiler=yes
13470 else
13471   echo "$as_me: failed program was:" >&5
13472 sed 's/^/| /' conftest.$ac_ext >&5
13473
13474 ac_header_compiler=no
13475 fi
13476 rm -f conftest.$ac_objext conftest.$ac_ext
13477 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13478 echo "${ECHO_T}$ac_header_compiler" >&6
13479
13480 # Is the header present?
13481 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13482 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13483 cat >conftest.$ac_ext <<_ACEOF
13484 #line $LINENO "configure"
13485 /* confdefs.h.  */
13486 _ACEOF
13487 cat confdefs.h >>conftest.$ac_ext
13488 cat >>conftest.$ac_ext <<_ACEOF
13489 /* end confdefs.h.  */
13490 #include <$ac_header>
13491 _ACEOF
13492 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13493   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13494   ac_status=$?
13495   grep -v '^ *+' conftest.er1 >conftest.err
13496   rm -f conftest.er1
13497   cat conftest.err >&5
13498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499   (exit $ac_status); } >/dev/null; then
13500   if test -s conftest.err; then
13501     ac_cpp_err=$ac_c_preproc_warn_flag
13502   else
13503     ac_cpp_err=
13504   fi
13505 else
13506   ac_cpp_err=yes
13507 fi
13508 if test -z "$ac_cpp_err"; then
13509   ac_header_preproc=yes
13510 else
13511   echo "$as_me: failed program was:" >&5
13512 sed 's/^/| /' conftest.$ac_ext >&5
13513
13514   ac_header_preproc=no
13515 fi
13516 rm -f conftest.err conftest.$ac_ext
13517 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13518 echo "${ECHO_T}$ac_header_preproc" >&6
13519
13520 # So?  What about this header?
13521 case $ac_header_compiler:$ac_header_preproc in
13522   yes:no )
13523     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13524 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13525     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13527     (
13528       cat <<\_ASBOX
13529 ## ------------------------------------ ##
13530 ## Report this to bug-autoconf@gnu.org. ##
13531 ## ------------------------------------ ##
13532 _ASBOX
13533     ) |
13534       sed "s/^/$as_me: WARNING:     /" >&2
13535     ;;
13536   no:yes )
13537     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13538 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13539     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13540 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13541     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13542 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13543     (
13544       cat <<\_ASBOX
13545 ## ------------------------------------ ##
13546 ## Report this to bug-autoconf@gnu.org. ##
13547 ## ------------------------------------ ##
13548 _ASBOX
13549     ) |
13550       sed "s/^/$as_me: WARNING:     /" >&2
13551     ;;
13552 esac
13553 echo "$as_me:$LINENO: checking for $ac_header" >&5
13554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13556   echo $ECHO_N "(cached) $ECHO_C" >&6
13557 else
13558   eval "$as_ac_Header=$ac_header_preproc"
13559 fi
13560 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13561 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13562
13563 fi
13564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13565   cat >>confdefs.h <<_ACEOF
13566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13567 _ACEOF
13568
13569 fi
13570
13571 done
13572
13573
13574 for ac_func in getpagesize
13575 do
13576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13577 echo "$as_me:$LINENO: checking for $ac_func" >&5
13578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13579 if eval "test \"\${$as_ac_var+set}\" = set"; then
13580   echo $ECHO_N "(cached) $ECHO_C" >&6
13581 else
13582   cat >conftest.$ac_ext <<_ACEOF
13583 #line $LINENO "configure"
13584 /* confdefs.h.  */
13585 _ACEOF
13586 cat confdefs.h >>conftest.$ac_ext
13587 cat >>conftest.$ac_ext <<_ACEOF
13588 /* end confdefs.h.  */
13589 /* System header to define __stub macros and hopefully few prototypes,
13590     which can conflict with char $ac_func (); below.
13591     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13592     <limits.h> exists even on freestanding compilers.  */
13593 #ifdef __STDC__
13594 # include <limits.h>
13595 #else
13596 # include <assert.h>
13597 #endif
13598 /* Override any gcc2 internal prototype to avoid an error.  */
13599 #ifdef __cplusplus
13600 extern "C"
13601 {
13602 #endif
13603 /* We use char because int might match the return type of a gcc2
13604    builtin and then its argument prototype would still apply.  */
13605 char $ac_func ();
13606 /* The GNU C library defines this for functions which it implements
13607     to always fail with ENOSYS.  Some functions are actually named
13608     something starting with __ and the normal name is an alias.  */
13609 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13610 choke me
13611 #else
13612 char (*f) () = $ac_func;
13613 #endif
13614 #ifdef __cplusplus
13615 }
13616 #endif
13617
13618 int
13619 main ()
13620 {
13621 return f != $ac_func;
13622   ;
13623   return 0;
13624 }
13625 _ACEOF
13626 rm -f conftest.$ac_objext conftest$ac_exeext
13627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13628   (eval $ac_link) 2>&5
13629   ac_status=$?
13630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631   (exit $ac_status); } &&
13632          { ac_try='test -s conftest$ac_exeext'
13633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13634   (eval $ac_try) 2>&5
13635   ac_status=$?
13636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637   (exit $ac_status); }; }; then
13638   eval "$as_ac_var=yes"
13639 else
13640   echo "$as_me: failed program was:" >&5
13641 sed 's/^/| /' conftest.$ac_ext >&5
13642
13643 eval "$as_ac_var=no"
13644 fi
13645 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13646 fi
13647 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13648 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13649 if test `eval echo '${'$as_ac_var'}'` = yes; then
13650   cat >>confdefs.h <<_ACEOF
13651 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13652 _ACEOF
13653
13654 fi
13655 done
13656
13657 echo "$as_me:$LINENO: checking for working mmap" >&5
13658 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
13659 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
13660   echo $ECHO_N "(cached) $ECHO_C" >&6
13661 else
13662   if test "$cross_compiling" = yes; then
13663   ac_cv_func_mmap_fixed_mapped=no
13664 else
13665   cat >conftest.$ac_ext <<_ACEOF
13666 #line $LINENO "configure"
13667 /* confdefs.h.  */
13668 _ACEOF
13669 cat confdefs.h >>conftest.$ac_ext
13670 cat >>conftest.$ac_ext <<_ACEOF
13671 /* end confdefs.h.  */
13672 $ac_includes_default
13673 /* malloc might have been renamed as rpl_malloc. */
13674 #undef malloc
13675
13676 /* Thanks to Mike Haertel and Jim Avera for this test.
13677    Here is a matrix of mmap possibilities:
13678         mmap private not fixed
13679         mmap private fixed at somewhere currently unmapped
13680         mmap private fixed at somewhere already mapped
13681         mmap shared not fixed
13682         mmap shared fixed at somewhere currently unmapped
13683         mmap shared fixed at somewhere already mapped
13684    For private mappings, we should verify that changes cannot be read()
13685    back from the file, nor mmap's back from the file at a different
13686    address.  (There have been systems where private was not correctly
13687    implemented like the infamous i386 svr4.0, and systems where the
13688    VM page cache was not coherent with the file system buffer cache
13689    like early versions of FreeBSD and possibly contemporary NetBSD.)
13690    For shared mappings, we should conversely verify that changes get
13691    propagated back to all the places they're supposed to be.
13692
13693    Grep wants private fixed already mapped.
13694    The main things grep needs to know about mmap are:
13695    * does it exist and is it safe to write into the mmap'd area
13696    * how to use it (BSD variants)  */
13697
13698 #include <fcntl.h>
13699 #include <sys/mman.h>
13700
13701 #if !STDC_HEADERS && !HAVE_STDLIB_H
13702 char *malloc ();
13703 #endif
13704
13705 /* This mess was copied from the GNU getpagesize.h.  */
13706 #if !HAVE_GETPAGESIZE
13707 /* Assume that all systems that can run configure have sys/param.h.  */
13708 # if !HAVE_SYS_PARAM_H
13709 #  define HAVE_SYS_PARAM_H 1
13710 # endif
13711
13712 # ifdef _SC_PAGESIZE
13713 #  define getpagesize() sysconf(_SC_PAGESIZE)
13714 # else /* no _SC_PAGESIZE */
13715 #  if HAVE_SYS_PARAM_H
13716 #   include <sys/param.h>
13717 #   ifdef EXEC_PAGESIZE
13718 #    define getpagesize() EXEC_PAGESIZE
13719 #   else /* no EXEC_PAGESIZE */
13720 #    ifdef NBPG
13721 #     define getpagesize() NBPG * CLSIZE
13722 #     ifndef CLSIZE
13723 #      define CLSIZE 1
13724 #     endif /* no CLSIZE */
13725 #    else /* no NBPG */
13726 #     ifdef NBPC
13727 #      define getpagesize() NBPC
13728 #     else /* no NBPC */
13729 #      ifdef PAGESIZE
13730 #       define getpagesize() PAGESIZE
13731 #      endif /* PAGESIZE */
13732 #     endif /* no NBPC */
13733 #    endif /* no NBPG */
13734 #   endif /* no EXEC_PAGESIZE */
13735 #  else /* no HAVE_SYS_PARAM_H */
13736 #   define getpagesize() 8192   /* punt totally */
13737 #  endif /* no HAVE_SYS_PARAM_H */
13738 # endif /* no _SC_PAGESIZE */
13739
13740 #endif /* no HAVE_GETPAGESIZE */
13741
13742 int
13743 main ()
13744 {
13745   char *data, *data2, *data3;
13746   int i, pagesize;
13747   int fd;
13748
13749   pagesize = getpagesize ();
13750
13751   /* First, make a file with some known garbage in it. */
13752   data = (char *) malloc (pagesize);
13753   if (!data)
13754     exit (1);
13755   for (i = 0; i < pagesize; ++i)
13756     *(data + i) = rand ();
13757   umask (0);
13758   fd = creat ("conftest.mmap", 0600);
13759   if (fd < 0)
13760     exit (1);
13761   if (write (fd, data, pagesize) != pagesize)
13762     exit (1);
13763   close (fd);
13764
13765   /* Next, try to mmap the file at a fixed address which already has
13766      something else allocated at it.  If we can, also make sure that
13767      we see the same garbage.  */
13768   fd = open ("conftest.mmap", O_RDWR);
13769   if (fd < 0)
13770     exit (1);
13771   data2 = (char *) malloc (2 * pagesize);
13772   if (!data2)
13773     exit (1);
13774   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
13775   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13776                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
13777     exit (1);
13778   for (i = 0; i < pagesize; ++i)
13779     if (*(data + i) != *(data2 + i))
13780       exit (1);
13781
13782   /* Finally, make sure that changes to the mapped area do not
13783      percolate back to the file as seen by read().  (This is a bug on
13784      some variants of i386 svr4.0.)  */
13785   for (i = 0; i < pagesize; ++i)
13786     *(data2 + i) = *(data2 + i) + 1;
13787   data3 = (char *) malloc (pagesize);
13788   if (!data3)
13789     exit (1);
13790   if (read (fd, data3, pagesize) != pagesize)
13791     exit (1);
13792   for (i = 0; i < pagesize; ++i)
13793     if (*(data + i) != *(data3 + i))
13794       exit (1);
13795   close (fd);
13796   exit (0);
13797 }
13798 _ACEOF
13799 rm -f conftest$ac_exeext
13800 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13801   (eval $ac_link) 2>&5
13802   ac_status=$?
13803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13806   (eval $ac_try) 2>&5
13807   ac_status=$?
13808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809   (exit $ac_status); }; }; then
13810   ac_cv_func_mmap_fixed_mapped=yes
13811 else
13812   echo "$as_me: program exited with status $ac_status" >&5
13813 echo "$as_me: failed program was:" >&5
13814 sed 's/^/| /' conftest.$ac_ext >&5
13815
13816 ( exit $ac_status )
13817 ac_cv_func_mmap_fixed_mapped=no
13818 fi
13819 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13820 fi
13821 fi
13822 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
13823 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
13824 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13825
13826 cat >>confdefs.h <<\_ACEOF
13827 #define HAVE_MMAP 1
13828 _ACEOF
13829
13830 fi
13831 rm -f conftest.mmap
13832
13833
13834     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
13835 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
13836 if test "${ac_cv_gnu_library_2_1+set}" = set; then
13837   echo $ECHO_N "(cached) $ECHO_C" >&6
13838 else
13839   cat >conftest.$ac_ext <<_ACEOF
13840 #line $LINENO "configure"
13841 /* confdefs.h.  */
13842 _ACEOF
13843 cat confdefs.h >>conftest.$ac_ext
13844 cat >>conftest.$ac_ext <<_ACEOF
13845 /* end confdefs.h.  */
13846
13847 #include <features.h>
13848 #ifdef __GNU_LIBRARY__
13849  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
13850   Lucky GNU user
13851  #endif
13852 #endif
13853
13854 _ACEOF
13855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13856   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
13857   ac_cv_gnu_library_2_1=yes
13858 else
13859   ac_cv_gnu_library_2_1=no
13860 fi
13861 rm -f conftest*
13862
13863
13864
13865 fi
13866 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
13867 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
13868
13869     GLIBC21="$ac_cv_gnu_library_2_1"
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
13884 stdlib.h string.h unistd.h sys/param.h
13885 do
13886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13887 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13888   echo "$as_me:$LINENO: checking for $ac_header" >&5
13889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13891   echo $ECHO_N "(cached) $ECHO_C" >&6
13892 fi
13893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13894 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13895 else
13896   # Is the header compilable?
13897 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13898 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13899 cat >conftest.$ac_ext <<_ACEOF
13900 #line $LINENO "configure"
13901 /* confdefs.h.  */
13902 _ACEOF
13903 cat confdefs.h >>conftest.$ac_ext
13904 cat >>conftest.$ac_ext <<_ACEOF
13905 /* end confdefs.h.  */
13906 $ac_includes_default
13907 #include <$ac_header>
13908 _ACEOF
13909 rm -f conftest.$ac_objext
13910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13911   (eval $ac_compile) 2>&5
13912   ac_status=$?
13913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914   (exit $ac_status); } &&
13915          { ac_try='test -s conftest.$ac_objext'
13916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13917   (eval $ac_try) 2>&5
13918   ac_status=$?
13919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920   (exit $ac_status); }; }; then
13921   ac_header_compiler=yes
13922 else
13923   echo "$as_me: failed program was:" >&5
13924 sed 's/^/| /' conftest.$ac_ext >&5
13925
13926 ac_header_compiler=no
13927 fi
13928 rm -f conftest.$ac_objext conftest.$ac_ext
13929 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13930 echo "${ECHO_T}$ac_header_compiler" >&6
13931
13932 # Is the header present?
13933 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13934 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13935 cat >conftest.$ac_ext <<_ACEOF
13936 #line $LINENO "configure"
13937 /* confdefs.h.  */
13938 _ACEOF
13939 cat confdefs.h >>conftest.$ac_ext
13940 cat >>conftest.$ac_ext <<_ACEOF
13941 /* end confdefs.h.  */
13942 #include <$ac_header>
13943 _ACEOF
13944 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13945   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13946   ac_status=$?
13947   grep -v '^ *+' conftest.er1 >conftest.err
13948   rm -f conftest.er1
13949   cat conftest.err >&5
13950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951   (exit $ac_status); } >/dev/null; then
13952   if test -s conftest.err; then
13953     ac_cpp_err=$ac_c_preproc_warn_flag
13954   else
13955     ac_cpp_err=
13956   fi
13957 else
13958   ac_cpp_err=yes
13959 fi
13960 if test -z "$ac_cpp_err"; then
13961   ac_header_preproc=yes
13962 else
13963   echo "$as_me: failed program was:" >&5
13964 sed 's/^/| /' conftest.$ac_ext >&5
13965
13966   ac_header_preproc=no
13967 fi
13968 rm -f conftest.err conftest.$ac_ext
13969 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13970 echo "${ECHO_T}$ac_header_preproc" >&6
13971
13972 # So?  What about this header?
13973 case $ac_header_compiler:$ac_header_preproc in
13974   yes:no )
13975     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13976 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13977     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13979     (
13980       cat <<\_ASBOX
13981 ## ------------------------------------ ##
13982 ## Report this to bug-autoconf@gnu.org. ##
13983 ## ------------------------------------ ##
13984 _ASBOX
13985     ) |
13986       sed "s/^/$as_me: WARNING:     /" >&2
13987     ;;
13988   no:yes )
13989     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13991     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13992 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13993     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13995     (
13996       cat <<\_ASBOX
13997 ## ------------------------------------ ##
13998 ## Report this to bug-autoconf@gnu.org. ##
13999 ## ------------------------------------ ##
14000 _ASBOX
14001     ) |
14002       sed "s/^/$as_me: WARNING:     /" >&2
14003     ;;
14004 esac
14005 echo "$as_me:$LINENO: checking for $ac_header" >&5
14006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14007 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14008   echo $ECHO_N "(cached) $ECHO_C" >&6
14009 else
14010   eval "$as_ac_Header=$ac_header_preproc"
14011 fi
14012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14014
14015 fi
14016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14017   cat >>confdefs.h <<_ACEOF
14018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14019 _ACEOF
14020
14021 fi
14022
14023 done
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
14047 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
14048 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
14049 do
14050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14051 echo "$as_me:$LINENO: checking for $ac_func" >&5
14052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14053 if eval "test \"\${$as_ac_var+set}\" = set"; then
14054   echo $ECHO_N "(cached) $ECHO_C" >&6
14055 else
14056   cat >conftest.$ac_ext <<_ACEOF
14057 #line $LINENO "configure"
14058 /* confdefs.h.  */
14059 _ACEOF
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h.  */
14063 /* System header to define __stub macros and hopefully few prototypes,
14064     which can conflict with char $ac_func (); below.
14065     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14066     <limits.h> exists even on freestanding compilers.  */
14067 #ifdef __STDC__
14068 # include <limits.h>
14069 #else
14070 # include <assert.h>
14071 #endif
14072 /* Override any gcc2 internal prototype to avoid an error.  */
14073 #ifdef __cplusplus
14074 extern "C"
14075 {
14076 #endif
14077 /* We use char because int might match the return type of a gcc2
14078    builtin and then its argument prototype would still apply.  */
14079 char $ac_func ();
14080 /* The GNU C library defines this for functions which it implements
14081     to always fail with ENOSYS.  Some functions are actually named
14082     something starting with __ and the normal name is an alias.  */
14083 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14084 choke me
14085 #else
14086 char (*f) () = $ac_func;
14087 #endif
14088 #ifdef __cplusplus
14089 }
14090 #endif
14091
14092 int
14093 main ()
14094 {
14095 return f != $ac_func;
14096   ;
14097   return 0;
14098 }
14099 _ACEOF
14100 rm -f conftest.$ac_objext conftest$ac_exeext
14101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14102   (eval $ac_link) 2>&5
14103   ac_status=$?
14104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105   (exit $ac_status); } &&
14106          { ac_try='test -s conftest$ac_exeext'
14107   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14108   (eval $ac_try) 2>&5
14109   ac_status=$?
14110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111   (exit $ac_status); }; }; then
14112   eval "$as_ac_var=yes"
14113 else
14114   echo "$as_me: failed program was:" >&5
14115 sed 's/^/| /' conftest.$ac_ext >&5
14116
14117 eval "$as_ac_var=no"
14118 fi
14119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14120 fi
14121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14122 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14123 if test `eval echo '${'$as_ac_var'}'` = yes; then
14124   cat >>confdefs.h <<_ACEOF
14125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14126 _ACEOF
14127
14128 fi
14129 done
14130
14131
14132
14133
14134
14135 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
14136 if test "${with_libiconv_prefix+set}" = set; then
14137   withval="$with_libiconv_prefix"
14138
14139     for dir in `echo "$withval" | tr : ' '`; do
14140       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
14141       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
14142     done
14143
14144 fi;
14145
14146   echo "$as_me:$LINENO: checking for iconv" >&5
14147 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
14148 if test "${am_cv_func_iconv+set}" = set; then
14149   echo $ECHO_N "(cached) $ECHO_C" >&6
14150 else
14151
14152     am_cv_func_iconv="no, consider installing GNU libiconv"
14153     am_cv_lib_iconv=no
14154     cat >conftest.$ac_ext <<_ACEOF
14155 #line $LINENO "configure"
14156 /* confdefs.h.  */
14157 _ACEOF
14158 cat confdefs.h >>conftest.$ac_ext
14159 cat >>conftest.$ac_ext <<_ACEOF
14160 /* end confdefs.h.  */
14161 #include <stdlib.h>
14162 #include <iconv.h>
14163 int
14164 main ()
14165 {
14166 iconv_t cd = iconv_open("","");
14167        iconv(cd,NULL,NULL,NULL,NULL);
14168        iconv_close(cd);
14169   ;
14170   return 0;
14171 }
14172 _ACEOF
14173 rm -f conftest.$ac_objext conftest$ac_exeext
14174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14175   (eval $ac_link) 2>&5
14176   ac_status=$?
14177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178   (exit $ac_status); } &&
14179          { ac_try='test -s conftest$ac_exeext'
14180   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181   (eval $ac_try) 2>&5
14182   ac_status=$?
14183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184   (exit $ac_status); }; }; then
14185   am_cv_func_iconv=yes
14186 else
14187   echo "$as_me: failed program was:" >&5
14188 sed 's/^/| /' conftest.$ac_ext >&5
14189
14190 fi
14191 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14192     if test "$am_cv_func_iconv" != yes; then
14193       am_save_LIBS="$LIBS"
14194       LIBS="$LIBS -liconv"
14195       cat >conftest.$ac_ext <<_ACEOF
14196 #line $LINENO "configure"
14197 /* confdefs.h.  */
14198 _ACEOF
14199 cat confdefs.h >>conftest.$ac_ext
14200 cat >>conftest.$ac_ext <<_ACEOF
14201 /* end confdefs.h.  */
14202 #include <stdlib.h>
14203 #include <iconv.h>
14204 int
14205 main ()
14206 {
14207 iconv_t cd = iconv_open("","");
14208          iconv(cd,NULL,NULL,NULL,NULL);
14209          iconv_close(cd);
14210   ;
14211   return 0;
14212 }
14213 _ACEOF
14214 rm -f conftest.$ac_objext conftest$ac_exeext
14215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14216   (eval $ac_link) 2>&5
14217   ac_status=$?
14218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219   (exit $ac_status); } &&
14220          { ac_try='test -s conftest$ac_exeext'
14221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14222   (eval $ac_try) 2>&5
14223   ac_status=$?
14224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225   (exit $ac_status); }; }; then
14226   am_cv_lib_iconv=yes
14227         am_cv_func_iconv=yes
14228 else
14229   echo "$as_me: failed program was:" >&5
14230 sed 's/^/| /' conftest.$ac_ext >&5
14231
14232 fi
14233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14234       LIBS="$am_save_LIBS"
14235     fi
14236
14237 fi
14238 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
14239 echo "${ECHO_T}$am_cv_func_iconv" >&6
14240   if test "$am_cv_func_iconv" = yes; then
14241
14242 cat >>confdefs.h <<\_ACEOF
14243 #define HAVE_ICONV 1
14244 _ACEOF
14245
14246     echo "$as_me:$LINENO: checking for iconv declaration" >&5
14247 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
14248     if test "${am_cv_proto_iconv+set}" = set; then
14249   echo $ECHO_N "(cached) $ECHO_C" >&6
14250 else
14251
14252       cat >conftest.$ac_ext <<_ACEOF
14253 #line $LINENO "configure"
14254 /* confdefs.h.  */
14255 _ACEOF
14256 cat confdefs.h >>conftest.$ac_ext
14257 cat >>conftest.$ac_ext <<_ACEOF
14258 /* end confdefs.h.  */
14259
14260 #include <stdlib.h>
14261 #include <iconv.h>
14262 extern
14263 #ifdef __cplusplus
14264 "C"
14265 #endif
14266 #if defined(__STDC__) || defined(__cplusplus)
14267 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
14268 #else
14269 size_t iconv();
14270 #endif
14271
14272 int
14273 main ()
14274 {
14275
14276   ;
14277   return 0;
14278 }
14279 _ACEOF
14280 rm -f conftest.$ac_objext
14281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14282   (eval $ac_compile) 2>&5
14283   ac_status=$?
14284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285   (exit $ac_status); } &&
14286          { ac_try='test -s conftest.$ac_objext'
14287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14288   (eval $ac_try) 2>&5
14289   ac_status=$?
14290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291   (exit $ac_status); }; }; then
14292   am_cv_proto_iconv_arg1=""
14293 else
14294   echo "$as_me: failed program was:" >&5
14295 sed 's/^/| /' conftest.$ac_ext >&5
14296
14297 am_cv_proto_iconv_arg1="const"
14298 fi
14299 rm -f conftest.$ac_objext conftest.$ac_ext
14300       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
14301 fi
14302
14303     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
14304     echo "$as_me:$LINENO: result: ${ac_t:-
14305          }$am_cv_proto_iconv" >&5
14306 echo "${ECHO_T}${ac_t:-
14307          }$am_cv_proto_iconv" >&6
14308
14309 cat >>confdefs.h <<_ACEOF
14310 #define ICONV_CONST $am_cv_proto_iconv_arg1
14311 _ACEOF
14312
14313   fi
14314   LIBICONV=
14315   if test "$am_cv_lib_iconv" = yes; then
14316     LIBICONV="-liconv"
14317   fi
14318
14319
14320
14321   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
14322 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
14323 if test "${am_cv_langinfo_codeset+set}" = set; then
14324   echo $ECHO_N "(cached) $ECHO_C" >&6
14325 else
14326   cat >conftest.$ac_ext <<_ACEOF
14327 #line $LINENO "configure"
14328 /* confdefs.h.  */
14329 _ACEOF
14330 cat confdefs.h >>conftest.$ac_ext
14331 cat >>conftest.$ac_ext <<_ACEOF
14332 /* end confdefs.h.  */
14333 #include <langinfo.h>
14334 int
14335 main ()
14336 {
14337 char* cs = nl_langinfo(CODESET);
14338   ;
14339   return 0;
14340 }
14341 _ACEOF
14342 rm -f conftest.$ac_objext conftest$ac_exeext
14343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14344   (eval $ac_link) 2>&5
14345   ac_status=$?
14346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347   (exit $ac_status); } &&
14348          { ac_try='test -s conftest$ac_exeext'
14349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14350   (eval $ac_try) 2>&5
14351   ac_status=$?
14352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353   (exit $ac_status); }; }; then
14354   am_cv_langinfo_codeset=yes
14355 else
14356   echo "$as_me: failed program was:" >&5
14357 sed 's/^/| /' conftest.$ac_ext >&5
14358
14359 am_cv_langinfo_codeset=no
14360 fi
14361 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14362
14363 fi
14364 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
14365 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
14366   if test $am_cv_langinfo_codeset = yes; then
14367
14368 cat >>confdefs.h <<\_ACEOF
14369 #define HAVE_LANGINFO_CODESET 1
14370 _ACEOF
14371
14372   fi
14373
14374    if test $ac_cv_header_locale_h = yes; then
14375     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
14376 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
14377 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
14378   echo $ECHO_N "(cached) $ECHO_C" >&6
14379 else
14380   cat >conftest.$ac_ext <<_ACEOF
14381 #line $LINENO "configure"
14382 /* confdefs.h.  */
14383 _ACEOF
14384 cat confdefs.h >>conftest.$ac_ext
14385 cat >>conftest.$ac_ext <<_ACEOF
14386 /* end confdefs.h.  */
14387 #include <locale.h>
14388 int
14389 main ()
14390 {
14391 return LC_MESSAGES
14392   ;
14393   return 0;
14394 }
14395 _ACEOF
14396 rm -f conftest.$ac_objext conftest$ac_exeext
14397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14398   (eval $ac_link) 2>&5
14399   ac_status=$?
14400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401   (exit $ac_status); } &&
14402          { ac_try='test -s conftest$ac_exeext'
14403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14404   (eval $ac_try) 2>&5
14405   ac_status=$?
14406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407   (exit $ac_status); }; }; then
14408   am_cv_val_LC_MESSAGES=yes
14409 else
14410   echo "$as_me: failed program was:" >&5
14411 sed 's/^/| /' conftest.$ac_ext >&5
14412
14413 am_cv_val_LC_MESSAGES=no
14414 fi
14415 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14416 fi
14417 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
14418 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
14419     if test $am_cv_val_LC_MESSAGES = yes; then
14420
14421 cat >>confdefs.h <<\_ACEOF
14422 #define HAVE_LC_MESSAGES 1
14423 _ACEOF
14424
14425     fi
14426   fi
14427    echo "$as_me:$LINENO: checking whether NLS is requested" >&5
14428 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
14429         # Check whether --enable-nls or --disable-nls was given.
14430 if test "${enable_nls+set}" = set; then
14431   enableval="$enable_nls"
14432   USE_NLS=$enableval
14433 else
14434   USE_NLS=yes
14435 fi;
14436     echo "$as_me:$LINENO: result: $USE_NLS" >&5
14437 echo "${ECHO_T}$USE_NLS" >&6
14438
14439
14440     BUILD_INCLUDED_LIBINTL=no
14441     USE_INCLUDED_LIBINTL=no
14442     INTLLIBS=
14443
14444         if test "$USE_NLS" = "yes"; then
14445
14446 cat >>confdefs.h <<\_ACEOF
14447 #define ENABLE_NLS 1
14448 _ACEOF
14449
14450       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
14451 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
14452
14453 # Check whether --with-included-gettext or --without-included-gettext was given.
14454 if test "${with_included_gettext+set}" = set; then
14455   withval="$with_included_gettext"
14456   nls_cv_force_use_gnu_gettext=$withval
14457 else
14458   nls_cv_force_use_gnu_gettext=no
14459 fi;
14460       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
14461 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
14462
14463       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
14464       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
14465                                 CATOBJEXT=NONE
14466
14467
14468
14469
14470         if test "${ac_cv_header_libintl_h+set}" = set; then
14471   echo "$as_me:$LINENO: checking for libintl.h" >&5
14472 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
14473 if test "${ac_cv_header_libintl_h+set}" = set; then
14474   echo $ECHO_N "(cached) $ECHO_C" >&6
14475 fi
14476 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
14477 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
14478 else
14479   # Is the header compilable?
14480 echo "$as_me:$LINENO: checking libintl.h usability" >&5
14481 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
14482 cat >conftest.$ac_ext <<_ACEOF
14483 #line $LINENO "configure"
14484 /* confdefs.h.  */
14485 _ACEOF
14486 cat confdefs.h >>conftest.$ac_ext
14487 cat >>conftest.$ac_ext <<_ACEOF
14488 /* end confdefs.h.  */
14489 $ac_includes_default
14490 #include <libintl.h>
14491 _ACEOF
14492 rm -f conftest.$ac_objext
14493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14494   (eval $ac_compile) 2>&5
14495   ac_status=$?
14496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497   (exit $ac_status); } &&
14498          { ac_try='test -s conftest.$ac_objext'
14499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14500   (eval $ac_try) 2>&5
14501   ac_status=$?
14502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503   (exit $ac_status); }; }; then
14504   ac_header_compiler=yes
14505 else
14506   echo "$as_me: failed program was:" >&5
14507 sed 's/^/| /' conftest.$ac_ext >&5
14508
14509 ac_header_compiler=no
14510 fi
14511 rm -f conftest.$ac_objext conftest.$ac_ext
14512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14513 echo "${ECHO_T}$ac_header_compiler" >&6
14514
14515 # Is the header present?
14516 echo "$as_me:$LINENO: checking libintl.h presence" >&5
14517 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
14518 cat >conftest.$ac_ext <<_ACEOF
14519 #line $LINENO "configure"
14520 /* confdefs.h.  */
14521 _ACEOF
14522 cat confdefs.h >>conftest.$ac_ext
14523 cat >>conftest.$ac_ext <<_ACEOF
14524 /* end confdefs.h.  */
14525 #include <libintl.h>
14526 _ACEOF
14527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14528   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14529   ac_status=$?
14530   grep -v '^ *+' conftest.er1 >conftest.err
14531   rm -f conftest.er1
14532   cat conftest.err >&5
14533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534   (exit $ac_status); } >/dev/null; then
14535   if test -s conftest.err; then
14536     ac_cpp_err=$ac_c_preproc_warn_flag
14537   else
14538     ac_cpp_err=
14539   fi
14540 else
14541   ac_cpp_err=yes
14542 fi
14543 if test -z "$ac_cpp_err"; then
14544   ac_header_preproc=yes
14545 else
14546   echo "$as_me: failed program was:" >&5
14547 sed 's/^/| /' conftest.$ac_ext >&5
14548
14549   ac_header_preproc=no
14550 fi
14551 rm -f conftest.err conftest.$ac_ext
14552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14553 echo "${ECHO_T}$ac_header_preproc" >&6
14554
14555 # So?  What about this header?
14556 case $ac_header_compiler:$ac_header_preproc in
14557   yes:no )
14558     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
14559 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14560     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
14561 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
14562     (
14563       cat <<\_ASBOX
14564 ## ------------------------------------ ##
14565 ## Report this to bug-autoconf@gnu.org. ##
14566 ## ------------------------------------ ##
14567 _ASBOX
14568     ) |
14569       sed "s/^/$as_me: WARNING:     /" >&2
14570     ;;
14571   no:yes )
14572     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
14573 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
14574     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
14575 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
14576     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
14577 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
14578     (
14579       cat <<\_ASBOX
14580 ## ------------------------------------ ##
14581 ## Report this to bug-autoconf@gnu.org. ##
14582 ## ------------------------------------ ##
14583 _ASBOX
14584     ) |
14585       sed "s/^/$as_me: WARNING:     /" >&2
14586     ;;
14587 esac
14588 echo "$as_me:$LINENO: checking for libintl.h" >&5
14589 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
14590 if test "${ac_cv_header_libintl_h+set}" = set; then
14591   echo $ECHO_N "(cached) $ECHO_C" >&6
14592 else
14593   ac_cv_header_libintl_h=$ac_header_preproc
14594 fi
14595 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
14596 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
14597
14598 fi
14599 if test $ac_cv_header_libintl_h = yes; then
14600   echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
14601 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
14602 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
14603   echo $ECHO_N "(cached) $ECHO_C" >&6
14604 else
14605   cat >conftest.$ac_ext <<_ACEOF
14606 #line $LINENO "configure"
14607 /* confdefs.h.  */
14608 _ACEOF
14609 cat confdefs.h >>conftest.$ac_ext
14610 cat >>conftest.$ac_ext <<_ACEOF
14611 /* end confdefs.h.  */
14612 #include <libintl.h>
14613 extern int _nl_msg_cat_cntr;
14614 int
14615 main ()
14616 {
14617 bindtextdomain ("", "");
14618 return (int) gettext ("") + _nl_msg_cat_cntr
14619   ;
14620   return 0;
14621 }
14622 _ACEOF
14623 rm -f conftest.$ac_objext conftest$ac_exeext
14624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14625   (eval $ac_link) 2>&5
14626   ac_status=$?
14627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628   (exit $ac_status); } &&
14629          { ac_try='test -s conftest$ac_exeext'
14630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14631   (eval $ac_try) 2>&5
14632   ac_status=$?
14633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634   (exit $ac_status); }; }; then
14635   gt_cv_func_gnugettext1_libc=yes
14636 else
14637   echo "$as_me: failed program was:" >&5
14638 sed 's/^/| /' conftest.$ac_ext >&5
14639
14640 gt_cv_func_gnugettext1_libc=no
14641 fi
14642 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14643 fi
14644 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
14645 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
14646
14647            if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
14648              echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
14649 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
14650 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
14651   echo $ECHO_N "(cached) $ECHO_C" >&6
14652 else
14653   gt_save_LIBS="$LIBS"
14654                 LIBS="$LIBS -lintl $LIBICONV"
14655                 cat >conftest.$ac_ext <<_ACEOF
14656 #line $LINENO "configure"
14657 /* confdefs.h.  */
14658 _ACEOF
14659 cat confdefs.h >>conftest.$ac_ext
14660 cat >>conftest.$ac_ext <<_ACEOF
14661 /* end confdefs.h.  */
14662 #include <libintl.h>
14663 extern int _nl_msg_cat_cntr;
14664 int
14665 main ()
14666 {
14667 bindtextdomain ("", "");
14668 return (int) gettext ("") + _nl_msg_cat_cntr
14669   ;
14670   return 0;
14671 }
14672 _ACEOF
14673 rm -f conftest.$ac_objext conftest$ac_exeext
14674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14675   (eval $ac_link) 2>&5
14676   ac_status=$?
14677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678   (exit $ac_status); } &&
14679          { ac_try='test -s conftest$ac_exeext'
14680   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14681   (eval $ac_try) 2>&5
14682   ac_status=$?
14683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684   (exit $ac_status); }; }; then
14685   gt_cv_func_gnugettext1_libintl=yes
14686 else
14687   echo "$as_me: failed program was:" >&5
14688 sed 's/^/| /' conftest.$ac_ext >&5
14689
14690 gt_cv_func_gnugettext1_libintl=no
14691 fi
14692 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14693                 LIBS="$gt_save_LIBS"
14694 fi
14695 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
14696 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
14697            fi
14698
14699                                            if test "$gt_cv_func_gnugettext1_libc" = "yes" \
14700               || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
14701                    && test "$PACKAGE" != gettext; }; then
14702
14703 cat >>confdefs.h <<\_ACEOF
14704 #define HAVE_GETTEXT 1
14705 _ACEOF
14706
14707
14708              if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
14709                                        INTLLIBS="-lintl $LIBICONV"
14710              fi
14711
14712              gt_save_LIBS="$LIBS"
14713              LIBS="$LIBS $INTLLIBS"
14714
14715 for ac_func in dcgettext
14716 do
14717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14718 echo "$as_me:$LINENO: checking for $ac_func" >&5
14719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14720 if eval "test \"\${$as_ac_var+set}\" = set"; then
14721   echo $ECHO_N "(cached) $ECHO_C" >&6
14722 else
14723   cat >conftest.$ac_ext <<_ACEOF
14724 #line $LINENO "configure"
14725 /* confdefs.h.  */
14726 _ACEOF
14727 cat confdefs.h >>conftest.$ac_ext
14728 cat >>conftest.$ac_ext <<_ACEOF
14729 /* end confdefs.h.  */
14730 /* System header to define __stub macros and hopefully few prototypes,
14731     which can conflict with char $ac_func (); below.
14732     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14733     <limits.h> exists even on freestanding compilers.  */
14734 #ifdef __STDC__
14735 # include <limits.h>
14736 #else
14737 # include <assert.h>
14738 #endif
14739 /* Override any gcc2 internal prototype to avoid an error.  */
14740 #ifdef __cplusplus
14741 extern "C"
14742 {
14743 #endif
14744 /* We use char because int might match the return type of a gcc2
14745    builtin and then its argument prototype would still apply.  */
14746 char $ac_func ();
14747 /* The GNU C library defines this for functions which it implements
14748     to always fail with ENOSYS.  Some functions are actually named
14749     something starting with __ and the normal name is an alias.  */
14750 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14751 choke me
14752 #else
14753 char (*f) () = $ac_func;
14754 #endif
14755 #ifdef __cplusplus
14756 }
14757 #endif
14758
14759 int
14760 main ()
14761 {
14762 return f != $ac_func;
14763   ;
14764   return 0;
14765 }
14766 _ACEOF
14767 rm -f conftest.$ac_objext conftest$ac_exeext
14768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14769   (eval $ac_link) 2>&5
14770   ac_status=$?
14771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772   (exit $ac_status); } &&
14773          { ac_try='test -s conftest$ac_exeext'
14774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14775   (eval $ac_try) 2>&5
14776   ac_status=$?
14777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778   (exit $ac_status); }; }; then
14779   eval "$as_ac_var=yes"
14780 else
14781   echo "$as_me: failed program was:" >&5
14782 sed 's/^/| /' conftest.$ac_ext >&5
14783
14784 eval "$as_ac_var=no"
14785 fi
14786 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14787 fi
14788 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14789 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14790 if test `eval echo '${'$as_ac_var'}'` = yes; then
14791   cat >>confdefs.h <<_ACEOF
14792 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14793 _ACEOF
14794
14795 fi
14796 done
14797
14798              LIBS="$gt_save_LIBS"
14799
14800                      # Extract the first word of "msgfmt", so it can be a program name with args.
14801 set dummy msgfmt; ac_word=$2
14802 echo "$as_me:$LINENO: checking for $ac_word" >&5
14803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14804 if test "${ac_cv_path_MSGFMT+set}" = set; then
14805   echo $ECHO_N "(cached) $ECHO_C" >&6
14806 else
14807   case "$MSGFMT" in
14808   /*)
14809   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14810   ;;
14811   *)
14812   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14813   for ac_dir in $PATH; do
14814     test -z "$ac_dir" && ac_dir=.
14815     if test -f $ac_dir/$ac_word; then
14816       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
14817         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
14818         break
14819       fi
14820     fi
14821   done
14822   IFS="$ac_save_ifs"
14823   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14824   ;;
14825 esac
14826 fi
14827 MSGFMT="$ac_cv_path_MSGFMT"
14828 if test "$MSGFMT" != ":"; then
14829   echo "$as_me:$LINENO: result: $MSGFMT" >&5
14830 echo "${ECHO_T}$MSGFMT" >&6
14831 else
14832   echo "$as_me:$LINENO: result: no" >&5
14833 echo "${ECHO_T}no" >&6
14834 fi
14835
14836              # Extract the first word of "gmsgfmt", so it can be a program name with args.
14837 set dummy gmsgfmt; ac_word=$2
14838 echo "$as_me:$LINENO: checking for $ac_word" >&5
14839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14840 if test "${ac_cv_path_GMSGFMT+set}" = set; then
14841   echo $ECHO_N "(cached) $ECHO_C" >&6
14842 else
14843   case $GMSGFMT in
14844   [\\/]* | ?:[\\/]*)
14845   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14846   ;;
14847   *)
14848   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14849 for as_dir in $PATH
14850 do
14851   IFS=$as_save_IFS
14852   test -z "$as_dir" && as_dir=.
14853   for ac_exec_ext in '' $ac_executable_extensions; do
14854   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14855     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14857     break 2
14858   fi
14859 done
14860 done
14861
14862   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14863   ;;
14864 esac
14865 fi
14866 GMSGFMT=$ac_cv_path_GMSGFMT
14867
14868 if test -n "$GMSGFMT"; then
14869   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
14870 echo "${ECHO_T}$GMSGFMT" >&6
14871 else
14872   echo "$as_me:$LINENO: result: no" >&5
14873 echo "${ECHO_T}no" >&6
14874 fi
14875
14876
14877                      # Extract the first word of "xgettext", so it can be a program name with args.
14878 set dummy xgettext; ac_word=$2
14879 echo "$as_me:$LINENO: checking for $ac_word" >&5
14880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14881 if test "${ac_cv_path_XGETTEXT+set}" = set; then
14882   echo $ECHO_N "(cached) $ECHO_C" >&6
14883 else
14884   case "$XGETTEXT" in
14885   /*)
14886   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
14887   ;;
14888   *)
14889   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14890   for ac_dir in $PATH; do
14891     test -z "$ac_dir" && ac_dir=.
14892     if test -f $ac_dir/$ac_word; then
14893       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
14894         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
14895         break
14896       fi
14897     fi
14898   done
14899   IFS="$ac_save_ifs"
14900   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
14901   ;;
14902 esac
14903 fi
14904 XGETTEXT="$ac_cv_path_XGETTEXT"
14905 if test "$XGETTEXT" != ":"; then
14906   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
14907 echo "${ECHO_T}$XGETTEXT" >&6
14908 else
14909   echo "$as_me:$LINENO: result: no" >&5
14910 echo "${ECHO_T}no" >&6
14911 fi
14912
14913
14914              CATOBJEXT=.gmo
14915            fi
14916
14917 fi
14918
14919
14920
14921         if test "$CATOBJEXT" = "NONE"; then
14922                           nls_cv_use_gnu_gettext=yes
14923         fi
14924       fi
14925
14926       if test "$nls_cv_use_gnu_gettext" = "yes"; then
14927                 INTLOBJS="\$(GETTOBJS)"
14928         # Extract the first word of "msgfmt", so it can be a program name with args.
14929 set dummy msgfmt; ac_word=$2
14930 echo "$as_me:$LINENO: checking for $ac_word" >&5
14931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14932 if test "${ac_cv_path_MSGFMT+set}" = set; then
14933   echo $ECHO_N "(cached) $ECHO_C" >&6
14934 else
14935   case "$MSGFMT" in
14936   /*)
14937   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
14938   ;;
14939   *)
14940   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
14941   for ac_dir in $PATH; do
14942     test -z "$ac_dir" && ac_dir=.
14943     if test -f $ac_dir/$ac_word; then
14944       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
14945         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
14946         break
14947       fi
14948     fi
14949   done
14950   IFS="$ac_save_ifs"
14951   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
14952   ;;
14953 esac
14954 fi
14955 MSGFMT="$ac_cv_path_MSGFMT"
14956 if test "$MSGFMT" != ":"; then
14957   echo "$as_me:$LINENO: result: $MSGFMT" >&5
14958 echo "${ECHO_T}$MSGFMT" >&6
14959 else
14960   echo "$as_me:$LINENO: result: no" >&5
14961 echo "${ECHO_T}no" >&6
14962 fi
14963
14964         # Extract the first word of "gmsgfmt", so it can be a program name with args.
14965 set dummy gmsgfmt; ac_word=$2
14966 echo "$as_me:$LINENO: checking for $ac_word" >&5
14967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14968 if test "${ac_cv_path_GMSGFMT+set}" = set; then
14969   echo $ECHO_N "(cached) $ECHO_C" >&6
14970 else
14971   case $GMSGFMT in
14972   [\\/]* | ?:[\\/]*)
14973   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
14974   ;;
14975   *)
14976   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14977 for as_dir in $PATH
14978 do
14979   IFS=$as_save_IFS
14980   test -z "$as_dir" && as_dir=.
14981   for ac_exec_ext in '' $ac_executable_extensions; do
14982   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14983     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
14984     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14985     break 2
14986   fi
14987 done
14988 done
14989
14990   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
14991   ;;
14992 esac
14993 fi
14994 GMSGFMT=$ac_cv_path_GMSGFMT
14995
14996 if test -n "$GMSGFMT"; then
14997   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
14998 echo "${ECHO_T}$GMSGFMT" >&6
14999 else
15000   echo "$as_me:$LINENO: result: no" >&5
15001 echo "${ECHO_T}no" >&6
15002 fi
15003
15004         # Extract the first word of "xgettext", so it can be a program name with args.
15005 set dummy xgettext; ac_word=$2
15006 echo "$as_me:$LINENO: checking for $ac_word" >&5
15007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15008 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15009   echo $ECHO_N "(cached) $ECHO_C" >&6
15010 else
15011   case "$XGETTEXT" in
15012   /*)
15013   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15014   ;;
15015   *)
15016   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15017   for ac_dir in $PATH; do
15018     test -z "$ac_dir" && ac_dir=.
15019     if test -f $ac_dir/$ac_word; then
15020       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
15021         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
15022         break
15023       fi
15024     fi
15025   done
15026   IFS="$ac_save_ifs"
15027   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15028   ;;
15029 esac
15030 fi
15031 XGETTEXT="$ac_cv_path_XGETTEXT"
15032 if test "$XGETTEXT" != ":"; then
15033   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15034 echo "${ECHO_T}$XGETTEXT" >&6
15035 else
15036   echo "$as_me:$LINENO: result: no" >&5
15037 echo "${ECHO_T}no" >&6
15038 fi
15039
15040
15041         BUILD_INCLUDED_LIBINTL=yes
15042         USE_INCLUDED_LIBINTL=yes
15043         CATOBJEXT=.gmo
15044         INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
15045         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
15046       fi
15047
15048                   if test "$GMSGFMT" != ":"; then
15049                         if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
15050           : ;
15051         else
15052           echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
15053 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
15054           GMSGFMT=":"
15055         fi
15056       fi
15057
15058                   if test "$XGETTEXT" != ":"; then
15059                         if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
15060           : ;
15061         else
15062           echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
15063 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
15064           XGETTEXT=":"
15065         fi
15066       fi
15067
15068             POSUB=po
15069     fi
15070               ac_config_commands="$ac_config_commands default-1"
15071
15072
15073
15074             if test "$PACKAGE" = gettext; then
15075       BUILD_INCLUDED_LIBINTL=yes
15076     fi
15077
15078                                             for ac_prog in bison
15079 do
15080   # Extract the first word of "$ac_prog", so it can be a program name with args.
15081 set dummy $ac_prog; ac_word=$2
15082 echo "$as_me:$LINENO: checking for $ac_word" >&5
15083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15084 if test "${ac_cv_prog_INTLBISON+set}" = set; then
15085   echo $ECHO_N "(cached) $ECHO_C" >&6
15086 else
15087   if test -n "$INTLBISON"; then
15088   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
15089 else
15090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15091 for as_dir in $PATH
15092 do
15093   IFS=$as_save_IFS
15094   test -z "$as_dir" && as_dir=.
15095   for ac_exec_ext in '' $ac_executable_extensions; do
15096   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15097     ac_cv_prog_INTLBISON="$ac_prog"
15098     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15099     break 2
15100   fi
15101 done
15102 done
15103
15104 fi
15105 fi
15106 INTLBISON=$ac_cv_prog_INTLBISON
15107 if test -n "$INTLBISON"; then
15108   echo "$as_me:$LINENO: result: $INTLBISON" >&5
15109 echo "${ECHO_T}$INTLBISON" >&6
15110 else
15111   echo "$as_me:$LINENO: result: no" >&5
15112 echo "${ECHO_T}no" >&6
15113 fi
15114
15115   test -n "$INTLBISON" && break
15116 done
15117
15118     if test -z "$INTLBISON"; then
15119       ac_verc_fail=yes
15120     else
15121             echo "$as_me:$LINENO: checking version of bison" >&5
15122 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
15123       ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
15124       case $ac_prog_version in
15125         '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
15126         1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
15127            ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
15128         *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
15129       esac
15130       echo "$as_me:$LINENO: result: $ac_prog_version" >&5
15131 echo "${ECHO_T}$ac_prog_version" >&6
15132     fi
15133     if test $ac_verc_fail = yes; then
15134       INTLBISON=:
15135     fi
15136
15137                 for lang in $ALL_LINGUAS; do
15138       GMOFILES="$GMOFILES $lang.gmo"
15139       POFILES="$POFILES $lang.po"
15140     done
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152         nls_cv_header_intl=
15153     nls_cv_header_libgt=
15154
15155         DATADIRNAME=share
15156
15157
15158         INSTOBJEXT=.mo
15159
15160
15161         GENCAT=gencat
15162
15163
15164
15165    if test "x$CATOBJEXT" != "x"; then
15166      if test "x$ALL_LINGUAS" = "x"; then
15167        LINGUAS=
15168      else
15169        echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
15170 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
15171        NEW_LINGUAS=
15172        for presentlang in $ALL_LINGUAS; do
15173          useit=no
15174          for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
15175            # Use the presentlang catalog if desiredlang is
15176            #   a. equal to presentlang, or
15177            #   b. a variant of presentlang (because in this case,
15178            #      presentlang can be used as a fallback for messages
15179            #      which are not translated in the desiredlang catalog).
15180            case "$desiredlang" in
15181              "$presentlang"*) useit=yes;;
15182            esac
15183          done
15184          if test $useit = yes; then
15185            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
15186          fi
15187        done
15188        LINGUAS=$NEW_LINGUAS
15189        echo "$as_me:$LINENO: result: $LINGUAS" >&5
15190 echo "${ECHO_T}$LINGUAS" >&6
15191      fi
15192
15193           if test -n "$LINGUAS"; then
15194        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
15195      fi
15196    fi
15197
15198             MKINSTALLDIRS=
15199    if test -n "$ac_aux_dir"; then
15200      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
15201    fi
15202    if test -z "$MKINSTALLDIRS"; then
15203      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
15204    fi
15205
15206
15207       INTL_LIBTOOL_SUFFIX_PREFIX=
15208
15209
15210
15211 if test "$am_cv_func_iconv" != "yes"
15212 then
15213   { echo "$as_me:$LINENO: WARNING: Configuring without iconv support. See INSTALL for details" >&5
15214 echo "$as_me: WARNING: Configuring without iconv support. See INSTALL for details" >&2;}
15215 else
15216
15217
15218 for ac_header in iconv.h
15219 do
15220 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15222   echo "$as_me:$LINENO: checking for $ac_header" >&5
15223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15225   echo $ECHO_N "(cached) $ECHO_C" >&6
15226 fi
15227 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15228 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15229 else
15230   # Is the header compilable?
15231 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15232 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15233 cat >conftest.$ac_ext <<_ACEOF
15234 #line $LINENO "configure"
15235 /* confdefs.h.  */
15236 _ACEOF
15237 cat confdefs.h >>conftest.$ac_ext
15238 cat >>conftest.$ac_ext <<_ACEOF
15239 /* end confdefs.h.  */
15240 $ac_includes_default
15241 #include <$ac_header>
15242 _ACEOF
15243 rm -f conftest.$ac_objext
15244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15245   (eval $ac_compile) 2>&5
15246   ac_status=$?
15247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248   (exit $ac_status); } &&
15249          { ac_try='test -s conftest.$ac_objext'
15250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15251   (eval $ac_try) 2>&5
15252   ac_status=$?
15253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254   (exit $ac_status); }; }; then
15255   ac_header_compiler=yes
15256 else
15257   echo "$as_me: failed program was:" >&5
15258 sed 's/^/| /' conftest.$ac_ext >&5
15259
15260 ac_header_compiler=no
15261 fi
15262 rm -f conftest.$ac_objext conftest.$ac_ext
15263 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15264 echo "${ECHO_T}$ac_header_compiler" >&6
15265
15266 # Is the header present?
15267 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15268 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15269 cat >conftest.$ac_ext <<_ACEOF
15270 #line $LINENO "configure"
15271 /* confdefs.h.  */
15272 _ACEOF
15273 cat confdefs.h >>conftest.$ac_ext
15274 cat >>conftest.$ac_ext <<_ACEOF
15275 /* end confdefs.h.  */
15276 #include <$ac_header>
15277 _ACEOF
15278 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15279   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15280   ac_status=$?
15281   grep -v '^ *+' conftest.er1 >conftest.err
15282   rm -f conftest.er1
15283   cat conftest.err >&5
15284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285   (exit $ac_status); } >/dev/null; then
15286   if test -s conftest.err; then
15287     ac_cpp_err=$ac_c_preproc_warn_flag
15288   else
15289     ac_cpp_err=
15290   fi
15291 else
15292   ac_cpp_err=yes
15293 fi
15294 if test -z "$ac_cpp_err"; then
15295   ac_header_preproc=yes
15296 else
15297   echo "$as_me: failed program was:" >&5
15298 sed 's/^/| /' conftest.$ac_ext >&5
15299
15300   ac_header_preproc=no
15301 fi
15302 rm -f conftest.err conftest.$ac_ext
15303 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15304 echo "${ECHO_T}$ac_header_preproc" >&6
15305
15306 # So?  What about this header?
15307 case $ac_header_compiler:$ac_header_preproc in
15308   yes:no )
15309     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15310 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15311     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15312 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15313     (
15314       cat <<\_ASBOX
15315 ## ------------------------------------ ##
15316 ## Report this to bug-autoconf@gnu.org. ##
15317 ## ------------------------------------ ##
15318 _ASBOX
15319     ) |
15320       sed "s/^/$as_me: WARNING:     /" >&2
15321     ;;
15322   no:yes )
15323     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15324 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15325     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15326 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15327     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15328 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15329     (
15330       cat <<\_ASBOX
15331 ## ------------------------------------ ##
15332 ## Report this to bug-autoconf@gnu.org. ##
15333 ## ------------------------------------ ##
15334 _ASBOX
15335     ) |
15336       sed "s/^/$as_me: WARNING:     /" >&2
15337     ;;
15338 esac
15339 echo "$as_me:$LINENO: checking for $ac_header" >&5
15340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15341 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15342   echo $ECHO_N "(cached) $ECHO_C" >&6
15343 else
15344   eval "$as_ac_Header=$ac_header_preproc"
15345 fi
15346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15347 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15348
15349 fi
15350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15351   cat >>confdefs.h <<_ACEOF
15352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15353 _ACEOF
15354  echo "$as_me:$LINENO: checking whether iconv.h defines iconv_t" >&5
15355 echo $ECHO_N "checking whether iconv.h defines iconv_t... $ECHO_C" >&6
15356          cat >conftest.$ac_ext <<_ACEOF
15357 #line $LINENO "configure"
15358 /* confdefs.h.  */
15359 _ACEOF
15360 cat confdefs.h >>conftest.$ac_ext
15361 cat >>conftest.$ac_ext <<_ACEOF
15362 /* end confdefs.h.  */
15363 #include <iconv.h>
15364
15365 _ACEOF
15366 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15367   $EGREP "typedef.*iconv_t" >/dev/null 2>&1; then
15368   echo "$as_me:$LINENO: result: yes" >&5
15369 echo "${ECHO_T}yes" >&6
15370
15371 cat >>confdefs.h <<\_ACEOF
15372 #define HAVE_ICONV_T_DEF 1
15373 _ACEOF
15374
15375 else
15376   echo "$as_me:$LINENO: result: no" >&5
15377 echo "${ECHO_T}no" >&6
15378 fi
15379 rm -f conftest*
15380
15381 fi
15382
15383 done
15384
15385
15386 echo "$as_me:$LINENO: checking whether this iconv is good enough" >&5
15387 echo $ECHO_N "checking whether this iconv is good enough... $ECHO_C" >&6
15388 if test "${mutt_cv_iconv_good+set}" = set; then
15389   echo $ECHO_N "(cached) $ECHO_C" >&6
15390 else
15391   mutt_save_LIBS="$LIBS"
15392         LIBS="$LIBS $LIBICONV"
15393         if test "$cross_compiling" = yes; then
15394   mutt_cv_iconv_good=yes
15395 else
15396   cat >conftest.$ac_ext <<_ACEOF
15397 #line $LINENO "configure"
15398 /* confdefs.h.  */
15399 _ACEOF
15400 cat confdefs.h >>conftest.$ac_ext
15401 cat >>conftest.$ac_ext <<_ACEOF
15402 /* end confdefs.h.  */
15403
15404 #include <iconv.h>
15405 int main()
15406 {
15407   iconv_t cd;
15408   char buf[4];
15409   char *ob;
15410   size_t obl;
15411   ob = buf, obl = sizeof(buf);
15412   return ((cd = iconv_open("UTF-8", "UTF-8")) != (iconv_t)(-1) &&
15413           (iconv(cd, 0, 0, &ob, &obl) ||
15414            !(ob == buf && obl == sizeof(buf)) ||
15415            iconv_close(cd)));
15416 }
15417
15418 _ACEOF
15419 rm -f conftest$ac_exeext
15420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15421   (eval $ac_link) 2>&5
15422   ac_status=$?
15423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15425   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15426   (eval $ac_try) 2>&5
15427   ac_status=$?
15428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429   (exit $ac_status); }; }; then
15430   mutt_cv_iconv_good=yes
15431 else
15432   echo "$as_me: program exited with status $ac_status" >&5
15433 echo "$as_me: failed program was:" >&5
15434 sed 's/^/| /' conftest.$ac_ext >&5
15435
15436 ( exit $ac_status )
15437 mutt_cv_iconv_good=no
15438 fi
15439 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15440 fi
15441         LIBS="$mutt_save_LIBS"
15442 fi
15443 echo "$as_me:$LINENO: result: $mutt_cv_iconv_good" >&5
15444 echo "${ECHO_T}$mutt_cv_iconv_good" >&6
15445 if test "$mutt_cv_iconv_good" = no; then
15446   { { echo "$as_me:$LINENO: error: Try using libiconv instead" >&5
15447 echo "$as_me: error: Try using libiconv instead" >&2;}
15448    { (exit 1); exit 1; }; }
15449 fi
15450
15451 echo "$as_me:$LINENO: checking whether iconv is non-transcribing" >&5
15452 echo $ECHO_N "checking whether iconv is non-transcribing... $ECHO_C" >&6
15453 if test "${mutt_cv_iconv_nontrans+set}" = set; then
15454   echo $ECHO_N "(cached) $ECHO_C" >&6
15455 else
15456   mutt_save_LIBS="$LIBS"
15457         LIBS="$LIBS $LIBICONV"
15458         if test "$cross_compiling" = yes; then
15459   mutt_cv_iconv_nontrans=no
15460 else
15461   cat >conftest.$ac_ext <<_ACEOF
15462 #line $LINENO "configure"
15463 /* confdefs.h.  */
15464 _ACEOF
15465 cat confdefs.h >>conftest.$ac_ext
15466 cat >>conftest.$ac_ext <<_ACEOF
15467 /* end confdefs.h.  */
15468
15469 #include <iconv.h>
15470 #include <string.h>
15471 int main()
15472 {
15473   iconv_t cd;
15474   const char *ib;
15475   char *ob;
15476   size_t ibl, obl;
15477   const char *s = "\304\211";
15478   char t[3];
15479   ib = s, ibl = 2, ob = t, obl = 3;
15480   return ((cd = iconv_open("UTF-8", "UTF-8")) == (iconv_t)(-1) ||
15481           iconv(cd, &ib, &ibl, &ob, &obl));
15482 }
15483
15484 _ACEOF
15485 rm -f conftest$ac_exeext
15486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15487   (eval $ac_link) 2>&5
15488   ac_status=$?
15489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15492   (eval $ac_try) 2>&5
15493   ac_status=$?
15494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495   (exit $ac_status); }; }; then
15496   mutt_cv_iconv_nontrans=no
15497 else
15498   echo "$as_me: program exited with status $ac_status" >&5
15499 echo "$as_me: failed program was:" >&5
15500 sed 's/^/| /' conftest.$ac_ext >&5
15501
15502 ( exit $ac_status )
15503 mutt_cv_iconv_nontrans=yes
15504 fi
15505 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15506 fi
15507         LIBS="$mutt_save_LIBS"
15508 fi
15509 echo "$as_me:$LINENO: result: $mutt_cv_iconv_nontrans" >&5
15510 echo "${ECHO_T}$mutt_cv_iconv_nontrans" >&6
15511 if test "$mutt_cv_iconv_nontrans" = yes; then
15512   cat >>confdefs.h <<\_ACEOF
15513 #define ICONV_NONTRANS 1
15514 _ACEOF
15515
15516 else
15517   cat >>confdefs.h <<\_ACEOF
15518 #define ICONV_NONTRANS 0
15519 _ACEOF
15520
15521 fi
15522
15523 CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/intl"
15524
15525 if test "$BUILD_INCLUDED_LIBINTL" = "yes"; then
15526
15527 cat >>confdefs.h <<\_ACEOF
15528 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
15529 _ACEOF
15530
15531 else
15532
15533 for ac_func in bind_textdomain_codeset
15534 do
15535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15536 echo "$as_me:$LINENO: checking for $ac_func" >&5
15537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15538 if eval "test \"\${$as_ac_var+set}\" = set"; then
15539   echo $ECHO_N "(cached) $ECHO_C" >&6
15540 else
15541   cat >conftest.$ac_ext <<_ACEOF
15542 #line $LINENO "configure"
15543 /* confdefs.h.  */
15544 _ACEOF
15545 cat confdefs.h >>conftest.$ac_ext
15546 cat >>conftest.$ac_ext <<_ACEOF
15547 /* end confdefs.h.  */
15548 /* System header to define __stub macros and hopefully few prototypes,
15549     which can conflict with char $ac_func (); below.
15550     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15551     <limits.h> exists even on freestanding compilers.  */
15552 #ifdef __STDC__
15553 # include <limits.h>
15554 #else
15555 # include <assert.h>
15556 #endif
15557 /* Override any gcc2 internal prototype to avoid an error.  */
15558 #ifdef __cplusplus
15559 extern "C"
15560 {
15561 #endif
15562 /* We use char because int might match the return type of a gcc2
15563    builtin and then its argument prototype would still apply.  */
15564 char $ac_func ();
15565 /* The GNU C library defines this for functions which it implements
15566     to always fail with ENOSYS.  Some functions are actually named
15567     something starting with __ and the normal name is an alias.  */
15568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15569 choke me
15570 #else
15571 char (*f) () = $ac_func;
15572 #endif
15573 #ifdef __cplusplus
15574 }
15575 #endif
15576
15577 int
15578 main ()
15579 {
15580 return f != $ac_func;
15581   ;
15582   return 0;
15583 }
15584 _ACEOF
15585 rm -f conftest.$ac_objext conftest$ac_exeext
15586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15587   (eval $ac_link) 2>&5
15588   ac_status=$?
15589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590   (exit $ac_status); } &&
15591          { ac_try='test -s conftest$ac_exeext'
15592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593   (eval $ac_try) 2>&5
15594   ac_status=$?
15595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596   (exit $ac_status); }; }; then
15597   eval "$as_ac_var=yes"
15598 else
15599   echo "$as_me: failed program was:" >&5
15600 sed 's/^/| /' conftest.$ac_ext >&5
15601
15602 eval "$as_ac_var=no"
15603 fi
15604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15605 fi
15606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15607 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15608 if test `eval echo '${'$as_ac_var'}'` = yes; then
15609   cat >>confdefs.h <<_ACEOF
15610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15611 _ACEOF
15612
15613 fi
15614 done
15615
15616 fi
15617
15618 fi # libiconv
15619
15620
15621
15622 for ac_header in wchar.h
15623 do
15624 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15626   echo "$as_me:$LINENO: checking for $ac_header" >&5
15627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15628 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15629   echo $ECHO_N "(cached) $ECHO_C" >&6
15630 fi
15631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15632 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15633 else
15634   # Is the header compilable?
15635 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15636 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15637 cat >conftest.$ac_ext <<_ACEOF
15638 #line $LINENO "configure"
15639 /* confdefs.h.  */
15640 _ACEOF
15641 cat confdefs.h >>conftest.$ac_ext
15642 cat >>conftest.$ac_ext <<_ACEOF
15643 /* end confdefs.h.  */
15644 $ac_includes_default
15645 #include <$ac_header>
15646 _ACEOF
15647 rm -f conftest.$ac_objext
15648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15649   (eval $ac_compile) 2>&5
15650   ac_status=$?
15651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15652   (exit $ac_status); } &&
15653          { ac_try='test -s conftest.$ac_objext'
15654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15655   (eval $ac_try) 2>&5
15656   ac_status=$?
15657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658   (exit $ac_status); }; }; then
15659   ac_header_compiler=yes
15660 else
15661   echo "$as_me: failed program was:" >&5
15662 sed 's/^/| /' conftest.$ac_ext >&5
15663
15664 ac_header_compiler=no
15665 fi
15666 rm -f conftest.$ac_objext conftest.$ac_ext
15667 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15668 echo "${ECHO_T}$ac_header_compiler" >&6
15669
15670 # Is the header present?
15671 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15673 cat >conftest.$ac_ext <<_ACEOF
15674 #line $LINENO "configure"
15675 /* confdefs.h.  */
15676 _ACEOF
15677 cat confdefs.h >>conftest.$ac_ext
15678 cat >>conftest.$ac_ext <<_ACEOF
15679 /* end confdefs.h.  */
15680 #include <$ac_header>
15681 _ACEOF
15682 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15683   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15684   ac_status=$?
15685   grep -v '^ *+' conftest.er1 >conftest.err
15686   rm -f conftest.er1
15687   cat conftest.err >&5
15688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15689   (exit $ac_status); } >/dev/null; then
15690   if test -s conftest.err; then
15691     ac_cpp_err=$ac_c_preproc_warn_flag
15692   else
15693     ac_cpp_err=
15694   fi
15695 else
15696   ac_cpp_err=yes
15697 fi
15698 if test -z "$ac_cpp_err"; then
15699   ac_header_preproc=yes
15700 else
15701   echo "$as_me: failed program was:" >&5
15702 sed 's/^/| /' conftest.$ac_ext >&5
15703
15704   ac_header_preproc=no
15705 fi
15706 rm -f conftest.err conftest.$ac_ext
15707 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15708 echo "${ECHO_T}$ac_header_preproc" >&6
15709
15710 # So?  What about this header?
15711 case $ac_header_compiler:$ac_header_preproc in
15712   yes:no )
15713     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15714 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15715     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15716 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15717     (
15718       cat <<\_ASBOX
15719 ## ------------------------------------ ##
15720 ## Report this to bug-autoconf@gnu.org. ##
15721 ## ------------------------------------ ##
15722 _ASBOX
15723     ) |
15724       sed "s/^/$as_me: WARNING:     /" >&2
15725     ;;
15726   no:yes )
15727     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15728 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15729     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15730 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15731     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15732 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15733     (
15734       cat <<\_ASBOX
15735 ## ------------------------------------ ##
15736 ## Report this to bug-autoconf@gnu.org. ##
15737 ## ------------------------------------ ##
15738 _ASBOX
15739     ) |
15740       sed "s/^/$as_me: WARNING:     /" >&2
15741     ;;
15742 esac
15743 echo "$as_me:$LINENO: checking for $ac_header" >&5
15744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15745 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15746   echo $ECHO_N "(cached) $ECHO_C" >&6
15747 else
15748   eval "$as_ac_Header=$ac_header_preproc"
15749 fi
15750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15751 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15752
15753 fi
15754 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15755   cat >>confdefs.h <<_ACEOF
15756 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15757 _ACEOF
15758
15759 fi
15760
15761 done
15762
15763
15764 echo "$as_me:$LINENO: checking for wchar_t" >&5
15765 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
15766 if test "${mutt_cv_wchar_t+set}" = set; then
15767   echo $ECHO_N "(cached) $ECHO_C" >&6
15768 else
15769   cat >conftest.$ac_ext <<_ACEOF
15770 #line $LINENO "configure"
15771 /* confdefs.h.  */
15772 _ACEOF
15773 cat confdefs.h >>conftest.$ac_ext
15774 cat >>conftest.$ac_ext <<_ACEOF
15775 /* end confdefs.h.  */
15776
15777 #include <stddef.h>
15778 #include <stdlib.h>
15779 #ifdef HAVE_WCHAR_H
15780 #include <wchar.h>
15781 #endif
15782
15783 int
15784 main ()
15785 {
15786  wchar_t wc; return 0;
15787   ;
15788   return 0;
15789 }
15790 _ACEOF
15791 rm -f conftest.$ac_objext
15792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15793   (eval $ac_compile) 2>&5
15794   ac_status=$?
15795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796   (exit $ac_status); } &&
15797          { ac_try='test -s conftest.$ac_objext'
15798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15799   (eval $ac_try) 2>&5
15800   ac_status=$?
15801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15802   (exit $ac_status); }; }; then
15803   mutt_cv_wchar_t=yes
15804 else
15805   echo "$as_me: failed program was:" >&5
15806 sed 's/^/| /' conftest.$ac_ext >&5
15807
15808 mutt_cv_wchar_t=no
15809 fi
15810 rm -f conftest.$ac_objext conftest.$ac_ext
15811 fi
15812 echo "$as_me:$LINENO: result: $mutt_cv_wchar_t" >&5
15813 echo "${ECHO_T}$mutt_cv_wchar_t" >&6
15814
15815 if test "$mutt_cv_wchar_t" = no; then
15816
15817 cat >>confdefs.h <<\_ACEOF
15818 #define wchar_t int
15819 _ACEOF
15820
15821 fi
15822
15823 echo "$as_me:$LINENO: checking for wint_t" >&5
15824 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
15825 if test "${mutt_cv_wint_t+set}" = set; then
15826   echo $ECHO_N "(cached) $ECHO_C" >&6
15827 else
15828   cat >conftest.$ac_ext <<_ACEOF
15829 #line $LINENO "configure"
15830 /* confdefs.h.  */
15831 _ACEOF
15832 cat confdefs.h >>conftest.$ac_ext
15833 cat >>conftest.$ac_ext <<_ACEOF
15834 /* end confdefs.h.  */
15835
15836 #include <stddef.h>
15837 #include <stdlib.h>
15838 #ifdef HAVE_WCHAR_H
15839 #include <wchar.h>
15840 #endif
15841
15842 int
15843 main ()
15844 {
15845  wint_t wc; return 0;
15846   ;
15847   return 0;
15848 }
15849 _ACEOF
15850 rm -f conftest.$ac_objext
15851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15852   (eval $ac_compile) 2>&5
15853   ac_status=$?
15854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855   (exit $ac_status); } &&
15856          { ac_try='test -s conftest.$ac_objext'
15857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15858   (eval $ac_try) 2>&5
15859   ac_status=$?
15860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15861   (exit $ac_status); }; }; then
15862   mutt_cv_wint_t=yes
15863 else
15864   echo "$as_me: failed program was:" >&5
15865 sed 's/^/| /' conftest.$ac_ext >&5
15866
15867 mutt_cv_wint_t=no
15868 fi
15869 rm -f conftest.$ac_objext conftest.$ac_ext
15870 fi
15871 echo "$as_me:$LINENO: result: $mutt_cv_wint_t" >&5
15872 echo "${ECHO_T}$mutt_cv_wint_t" >&6
15873
15874 if test "$mutt_cv_wint_t" = no; then
15875
15876 cat >>confdefs.h <<\_ACEOF
15877 #define wint_t int
15878 _ACEOF
15879
15880 fi
15881
15882
15883 for ac_header in wctype.h
15884 do
15885 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15886 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15887   echo "$as_me:$LINENO: checking for $ac_header" >&5
15888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
15889 if eval "test \"\${$as_ac_Header+set}\" = set"; then
15890   echo $ECHO_N "(cached) $ECHO_C" >&6
15891 fi
15892 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
15893 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
15894 else
15895   # Is the header compilable?
15896 echo "$as_me:$LINENO: checking $ac_header usability" >&5
15897 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
15898 cat >conftest.$ac_ext <<_ACEOF
15899 #line $LINENO "configure"
15900 /* confdefs.h.  */
15901 _ACEOF
15902 cat confdefs.h >>conftest.$ac_ext
15903 cat >>conftest.$ac_ext <<_ACEOF
15904 /* end confdefs.h.  */
15905 $ac_includes_default
15906 #include <$ac_header>
15907 _ACEOF
15908 rm -f conftest.$ac_objext
15909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15910   (eval $ac_compile) 2>&5
15911   ac_status=$?
15912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913   (exit $ac_status); } &&
15914          { ac_try='test -s conftest.$ac_objext'
15915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15916   (eval $ac_try) 2>&5
15917   ac_status=$?
15918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919   (exit $ac_status); }; }; then
15920   ac_header_compiler=yes
15921 else
15922   echo "$as_me: failed program was:" >&5
15923 sed 's/^/| /' conftest.$ac_ext >&5
15924
15925 ac_header_compiler=no
15926 fi
15927 rm -f conftest.$ac_objext conftest.$ac_ext
15928 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15929 echo "${ECHO_T}$ac_header_compiler" >&6
15930
15931 # Is the header present?
15932 echo "$as_me:$LINENO: checking $ac_header presence" >&5
15933 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
15934 cat >conftest.$ac_ext <<_ACEOF
15935 #line $LINENO "configure"
15936 /* confdefs.h.  */
15937 _ACEOF
15938 cat confdefs.h >>conftest.$ac_ext
15939 cat >>conftest.$ac_ext <<_ACEOF
15940 /* end confdefs.h.  */
15941 #include <$ac_header>
15942 _ACEOF
15943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15944   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15945   ac_status=$?
15946   grep -v '^ *+' conftest.er1 >conftest.err
15947   rm -f conftest.er1
15948   cat conftest.err >&5
15949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950   (exit $ac_status); } >/dev/null; then
15951   if test -s conftest.err; then
15952     ac_cpp_err=$ac_c_preproc_warn_flag
15953   else
15954     ac_cpp_err=
15955   fi
15956 else
15957   ac_cpp_err=yes
15958 fi
15959 if test -z "$ac_cpp_err"; then
15960   ac_header_preproc=yes
15961 else
15962   echo "$as_me: failed program was:" >&5
15963 sed 's/^/| /' conftest.$ac_ext >&5
15964
15965   ac_header_preproc=no
15966 fi
15967 rm -f conftest.err conftest.$ac_ext
15968 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15969 echo "${ECHO_T}$ac_header_preproc" >&6
15970
15971 # So?  What about this header?
15972 case $ac_header_compiler:$ac_header_preproc in
15973   yes:no )
15974     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15975 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15976     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15978     (
15979       cat <<\_ASBOX
15980 ## ------------------------------------ ##
15981 ## Report this to bug-autoconf@gnu.org. ##
15982 ## ------------------------------------ ##
15983 _ASBOX
15984     ) |
15985       sed "s/^/$as_me: WARNING:     /" >&2
15986     ;;
15987   no:yes )
15988     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15989 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15990     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15991 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15992     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15993 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15994     (
15995       cat <<\_ASBOX
15996 ## ------------------------------------ ##
15997 ## Report this to bug-autoconf@gnu.org. ##
15998 ## ------------------------------------ ##
15999 _ASBOX
16000     ) |
16001       sed "s/^/$as_me: WARNING:     /" >&2
16002     ;;
16003 esac
16004 echo "$as_me:$LINENO: checking for $ac_header" >&5
16005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16006 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16007   echo $ECHO_N "(cached) $ECHO_C" >&6
16008 else
16009   eval "$as_ac_Header=$ac_header_preproc"
16010 fi
16011 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16012 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16013
16014 fi
16015 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16016   cat >>confdefs.h <<_ACEOF
16017 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16018 _ACEOF
16019
16020 fi
16021
16022 done
16023
16024
16025
16026
16027
16028 for ac_func in iswalnum iswalpha  iswcntrl iswdigit
16029 do
16030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16031 echo "$as_me:$LINENO: checking for $ac_func" >&5
16032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16033 if eval "test \"\${$as_ac_var+set}\" = set"; then
16034   echo $ECHO_N "(cached) $ECHO_C" >&6
16035 else
16036   cat >conftest.$ac_ext <<_ACEOF
16037 #line $LINENO "configure"
16038 /* confdefs.h.  */
16039 _ACEOF
16040 cat confdefs.h >>conftest.$ac_ext
16041 cat >>conftest.$ac_ext <<_ACEOF
16042 /* end confdefs.h.  */
16043 /* System header to define __stub macros and hopefully few prototypes,
16044     which can conflict with char $ac_func (); below.
16045     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16046     <limits.h> exists even on freestanding compilers.  */
16047 #ifdef __STDC__
16048 # include <limits.h>
16049 #else
16050 # include <assert.h>
16051 #endif
16052 /* Override any gcc2 internal prototype to avoid an error.  */
16053 #ifdef __cplusplus
16054 extern "C"
16055 {
16056 #endif
16057 /* We use char because int might match the return type of a gcc2
16058    builtin and then its argument prototype would still apply.  */
16059 char $ac_func ();
16060 /* The GNU C library defines this for functions which it implements
16061     to always fail with ENOSYS.  Some functions are actually named
16062     something starting with __ and the normal name is an alias.  */
16063 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16064 choke me
16065 #else
16066 char (*f) () = $ac_func;
16067 #endif
16068 #ifdef __cplusplus
16069 }
16070 #endif
16071
16072 int
16073 main ()
16074 {
16075 return f != $ac_func;
16076   ;
16077   return 0;
16078 }
16079 _ACEOF
16080 rm -f conftest.$ac_objext conftest$ac_exeext
16081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16082   (eval $ac_link) 2>&5
16083   ac_status=$?
16084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085   (exit $ac_status); } &&
16086          { ac_try='test -s conftest$ac_exeext'
16087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16088   (eval $ac_try) 2>&5
16089   ac_status=$?
16090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16091   (exit $ac_status); }; }; then
16092   eval "$as_ac_var=yes"
16093 else
16094   echo "$as_me: failed program was:" >&5
16095 sed 's/^/| /' conftest.$ac_ext >&5
16096
16097 eval "$as_ac_var=no"
16098 fi
16099 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16100 fi
16101 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16102 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16103 if test `eval echo '${'$as_ac_var'}'` = yes; then
16104   cat >>confdefs.h <<_ACEOF
16105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16106 _ACEOF
16107
16108 fi
16109 done
16110
16111
16112
16113
16114
16115
16116
16117 for ac_func in iswgraph iswlower iswprint iswpunct iswspace iswupper
16118 do
16119 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16120 echo "$as_me:$LINENO: checking for $ac_func" >&5
16121 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16122 if eval "test \"\${$as_ac_var+set}\" = set"; then
16123   echo $ECHO_N "(cached) $ECHO_C" >&6
16124 else
16125   cat >conftest.$ac_ext <<_ACEOF
16126 #line $LINENO "configure"
16127 /* confdefs.h.  */
16128 _ACEOF
16129 cat confdefs.h >>conftest.$ac_ext
16130 cat >>conftest.$ac_ext <<_ACEOF
16131 /* end confdefs.h.  */
16132 /* System header to define __stub macros and hopefully few prototypes,
16133     which can conflict with char $ac_func (); below.
16134     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16135     <limits.h> exists even on freestanding compilers.  */
16136 #ifdef __STDC__
16137 # include <limits.h>
16138 #else
16139 # include <assert.h>
16140 #endif
16141 /* Override any gcc2 internal prototype to avoid an error.  */
16142 #ifdef __cplusplus
16143 extern "C"
16144 {
16145 #endif
16146 /* We use char because int might match the return type of a gcc2
16147    builtin and then its argument prototype would still apply.  */
16148 char $ac_func ();
16149 /* The GNU C library defines this for functions which it implements
16150     to always fail with ENOSYS.  Some functions are actually named
16151     something starting with __ and the normal name is an alias.  */
16152 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16153 choke me
16154 #else
16155 char (*f) () = $ac_func;
16156 #endif
16157 #ifdef __cplusplus
16158 }
16159 #endif
16160
16161 int
16162 main ()
16163 {
16164 return f != $ac_func;
16165   ;
16166   return 0;
16167 }
16168 _ACEOF
16169 rm -f conftest.$ac_objext conftest$ac_exeext
16170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16171   (eval $ac_link) 2>&5
16172   ac_status=$?
16173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174   (exit $ac_status); } &&
16175          { ac_try='test -s conftest$ac_exeext'
16176   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16177   (eval $ac_try) 2>&5
16178   ac_status=$?
16179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180   (exit $ac_status); }; }; then
16181   eval "$as_ac_var=yes"
16182 else
16183   echo "$as_me: failed program was:" >&5
16184 sed 's/^/| /' conftest.$ac_ext >&5
16185
16186 eval "$as_ac_var=no"
16187 fi
16188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16189 fi
16190 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16191 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16192 if test `eval echo '${'$as_ac_var'}'` = yes; then
16193   cat >>confdefs.h <<_ACEOF
16194 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16195 _ACEOF
16196
16197 fi
16198 done
16199
16200
16201
16202
16203 for ac_func in iswxdigit towupper towlower
16204 do
16205 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16206 echo "$as_me:$LINENO: checking for $ac_func" >&5
16207 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16208 if eval "test \"\${$as_ac_var+set}\" = set"; then
16209   echo $ECHO_N "(cached) $ECHO_C" >&6
16210 else
16211   cat >conftest.$ac_ext <<_ACEOF
16212 #line $LINENO "configure"
16213 /* confdefs.h.  */
16214 _ACEOF
16215 cat confdefs.h >>conftest.$ac_ext
16216 cat >>conftest.$ac_ext <<_ACEOF
16217 /* end confdefs.h.  */
16218 /* System header to define __stub macros and hopefully few prototypes,
16219     which can conflict with char $ac_func (); below.
16220     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16221     <limits.h> exists even on freestanding compilers.  */
16222 #ifdef __STDC__
16223 # include <limits.h>
16224 #else
16225 # include <assert.h>
16226 #endif
16227 /* Override any gcc2 internal prototype to avoid an error.  */
16228 #ifdef __cplusplus
16229 extern "C"
16230 {
16231 #endif
16232 /* We use char because int might match the return type of a gcc2
16233    builtin and then its argument prototype would still apply.  */
16234 char $ac_func ();
16235 /* The GNU C library defines this for functions which it implements
16236     to always fail with ENOSYS.  Some functions are actually named
16237     something starting with __ and the normal name is an alias.  */
16238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16239 choke me
16240 #else
16241 char (*f) () = $ac_func;
16242 #endif
16243 #ifdef __cplusplus
16244 }
16245 #endif
16246
16247 int
16248 main ()
16249 {
16250 return f != $ac_func;
16251   ;
16252   return 0;
16253 }
16254 _ACEOF
16255 rm -f conftest.$ac_objext conftest$ac_exeext
16256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16257   (eval $ac_link) 2>&5
16258   ac_status=$?
16259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16260   (exit $ac_status); } &&
16261          { ac_try='test -s conftest$ac_exeext'
16262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16263   (eval $ac_try) 2>&5
16264   ac_status=$?
16265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266   (exit $ac_status); }; }; then
16267   eval "$as_ac_var=yes"
16268 else
16269   echo "$as_me: failed program was:" >&5
16270 sed 's/^/| /' conftest.$ac_ext >&5
16271
16272 eval "$as_ac_var=no"
16273 fi
16274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16275 fi
16276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16277 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16278 if test `eval echo '${'$as_ac_var'}'` = yes; then
16279   cat >>confdefs.h <<_ACEOF
16280 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16281 _ACEOF
16282
16283 fi
16284 done
16285
16286
16287 echo "$as_me:$LINENO: checking for mbstate_t" >&5
16288 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
16289 if test "${mutt_cv_mbstate_t+set}" = set; then
16290   echo $ECHO_N "(cached) $ECHO_C" >&6
16291 else
16292   cat >conftest.$ac_ext <<_ACEOF
16293 #line $LINENO "configure"
16294 /* confdefs.h.  */
16295 _ACEOF
16296 cat confdefs.h >>conftest.$ac_ext
16297 cat >>conftest.$ac_ext <<_ACEOF
16298 /* end confdefs.h.  */
16299
16300 #include <stddef.h>
16301 #include <stdlib.h>
16302 #ifdef HAVE_WCHAR_H
16303 #include <wchar.h>
16304 #endif
16305
16306 int
16307 main ()
16308 {
16309  mbstate_t s; return 0;
16310   ;
16311   return 0;
16312 }
16313 _ACEOF
16314 rm -f conftest.$ac_objext
16315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16316   (eval $ac_compile) 2>&5
16317   ac_status=$?
16318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319   (exit $ac_status); } &&
16320          { ac_try='test -s conftest.$ac_objext'
16321   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16322   (eval $ac_try) 2>&5
16323   ac_status=$?
16324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325   (exit $ac_status); }; }; then
16326   mutt_cv_mbstate_t=yes
16327 else
16328   echo "$as_me: failed program was:" >&5
16329 sed 's/^/| /' conftest.$ac_ext >&5
16330
16331 mutt_cv_mbstate_t=no
16332 fi
16333 rm -f conftest.$ac_objext conftest.$ac_ext
16334 fi
16335 echo "$as_me:$LINENO: result: $mutt_cv_mbstate_t" >&5
16336 echo "${ECHO_T}$mutt_cv_mbstate_t" >&6
16337
16338 if test "$mutt_cv_mbstate_t" = no; then
16339
16340 cat >>confdefs.h <<\_ACEOF
16341 #define mbstate_t int
16342 _ACEOF
16343
16344 fi
16345
16346 wc_funcs=maybe
16347
16348 # Check whether --with-wc-funcs or --without-wc-funcs was given.
16349 if test "${with_wc_funcs+set}" = set; then
16350   withval="$with_wc_funcs"
16351   wc_funcs=$withval
16352 fi;
16353
16354 if test "$wc_funcs" != yes -a "$wc_funcs" != no; then
16355         echo "$as_me:$LINENO: checking for wchar_t functions" >&5
16356 echo $ECHO_N "checking for wchar_t functions... $ECHO_C" >&6
16357 if test "${mutt_cv_wc_funcs+set}" = set; then
16358   echo $ECHO_N "(cached) $ECHO_C" >&6
16359 else
16360   mutt_cv_wc_funcs=no
16361                 cat >conftest.$ac_ext <<_ACEOF
16362 #line $LINENO "configure"
16363 /* confdefs.h.  */
16364 _ACEOF
16365 cat confdefs.h >>conftest.$ac_ext
16366 cat >>conftest.$ac_ext <<_ACEOF
16367 /* end confdefs.h.  */
16368
16369 #define _XOPEN_SOURCE 1
16370 #include <stddef.h>
16371 #include <stdlib.h>
16372 #ifdef HAVE_WCTYPE_H
16373 #include <wctype.h>
16374 #endif
16375 #ifdef HAVE_WCHAR_H
16376 #include <wchar.h>
16377 #endif
16378 int
16379 main ()
16380 {
16381 mbrtowc(0, 0, 0, 0); wctomb(0, 0); wcwidth(0);
16382         iswprint(0); iswspace(0); towlower(0); towupper(0); iswalnum(0)
16383   ;
16384   return 0;
16385 }
16386 _ACEOF
16387 rm -f conftest.$ac_objext conftest$ac_exeext
16388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16389   (eval $ac_link) 2>&5
16390   ac_status=$?
16391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16392   (exit $ac_status); } &&
16393          { ac_try='test -s conftest$ac_exeext'
16394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16395   (eval $ac_try) 2>&5
16396   ac_status=$?
16397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398   (exit $ac_status); }; }; then
16399   mutt_cv_wc_funcs=yes
16400 else
16401   echo "$as_me: failed program was:" >&5
16402 sed 's/^/| /' conftest.$ac_ext >&5
16403
16404 fi
16405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16406 fi
16407 echo "$as_me:$LINENO: result: $mutt_cv_wc_funcs" >&5
16408 echo "${ECHO_T}$mutt_cv_wc_funcs" >&6
16409         wc_funcs=$mutt_cv_wc_funcs
16410 fi
16411
16412 if test $wc_funcs = yes; then
16413
16414 cat >>confdefs.h <<\_ACEOF
16415 #define HAVE_WC_FUNCS 1
16416 _ACEOF
16417
16418 fi
16419
16420 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
16421 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
16422 if test "${mutt_cv_langinfo_codeset+set}" = set; then
16423   echo $ECHO_N "(cached) $ECHO_C" >&6
16424 else
16425   cat >conftest.$ac_ext <<_ACEOF
16426 #line $LINENO "configure"
16427 /* confdefs.h.  */
16428 _ACEOF
16429 cat confdefs.h >>conftest.$ac_ext
16430 cat >>conftest.$ac_ext <<_ACEOF
16431 /* end confdefs.h.  */
16432 #include <langinfo.h>
16433 int
16434 main ()
16435 {
16436 char* cs = nl_langinfo(CODESET);
16437   ;
16438   return 0;
16439 }
16440 _ACEOF
16441 rm -f conftest.$ac_objext conftest$ac_exeext
16442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16443   (eval $ac_link) 2>&5
16444   ac_status=$?
16445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16446   (exit $ac_status); } &&
16447          { ac_try='test -s conftest$ac_exeext'
16448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16449   (eval $ac_try) 2>&5
16450   ac_status=$?
16451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452   (exit $ac_status); }; }; then
16453   mutt_cv_langinfo_codeset=yes
16454 else
16455   echo "$as_me: failed program was:" >&5
16456 sed 's/^/| /' conftest.$ac_ext >&5
16457
16458 mutt_cv_langinfo_codeset=no
16459 fi
16460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16461 fi
16462 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_codeset" >&5
16463 echo "${ECHO_T}$mutt_cv_langinfo_codeset" >&6
16464 if test $mutt_cv_langinfo_codeset = yes; then
16465
16466 cat >>confdefs.h <<\_ACEOF
16467 #define HAVE_LANGINFO_CODESET 1
16468 _ACEOF
16469
16470 fi
16471
16472 echo "$as_me:$LINENO: checking for nl_langinfo and YESEXPR" >&5
16473 echo $ECHO_N "checking for nl_langinfo and YESEXPR... $ECHO_C" >&6
16474 if test "${mutt_cv_langinfo_yesexpr+set}" = set; then
16475   echo $ECHO_N "(cached) $ECHO_C" >&6
16476 else
16477   cat >conftest.$ac_ext <<_ACEOF
16478 #line $LINENO "configure"
16479 /* confdefs.h.  */
16480 _ACEOF
16481 cat confdefs.h >>conftest.$ac_ext
16482 cat >>conftest.$ac_ext <<_ACEOF
16483 /* end confdefs.h.  */
16484 #include <langinfo.h>
16485 int
16486 main ()
16487 {
16488 char* cs = nl_langinfo(YESEXPR);
16489   ;
16490   return 0;
16491 }
16492 _ACEOF
16493 rm -f conftest.$ac_objext conftest$ac_exeext
16494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16495   (eval $ac_link) 2>&5
16496   ac_status=$?
16497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498   (exit $ac_status); } &&
16499          { ac_try='test -s conftest$ac_exeext'
16500   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16501   (eval $ac_try) 2>&5
16502   ac_status=$?
16503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504   (exit $ac_status); }; }; then
16505   mutt_cv_langinfo_yesexpr=yes
16506 else
16507   echo "$as_me: failed program was:" >&5
16508 sed 's/^/| /' conftest.$ac_ext >&5
16509
16510 mutt_cv_langinfo_yesexpr=no
16511 fi
16512 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16513 fi
16514 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_yesexpr" >&5
16515 echo "${ECHO_T}$mutt_cv_langinfo_yesexpr" >&6
16516 if test $mutt_cv_langinfo_yesexpr = yes; then
16517
16518 cat >>confdefs.h <<\_ACEOF
16519 #define HAVE_LANGINFO_YESEXPR 1
16520 _ACEOF
16521
16522 fi
16523
16524
16525
16526 # Check whether --with-libesmtp or --without-libesmtp was given.
16527 if test "${with_libesmtp+set}" = set; then
16528   withval="$with_libesmtp"
16529    if test "$with_libesmtp" != "no"
16530       then
16531         mutt_libesmtp_check_path="$PATH"
16532
16533         if test "$with_libesmtp" != "yes"
16534         then
16535           mutt_libesmtp_check_path="$tmp_path:$withval/bin"
16536         fi
16537
16538                 # Extract the first word of "libesmtp-config", so it can be a program name with args.
16539 set dummy libesmtp-config; ac_word=$2
16540 echo "$as_me:$LINENO: checking for $ac_word" >&5
16541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16542 if test "${ac_cv_path_mutt_libesmtp_config_path+set}" = set; then
16543   echo $ECHO_N "(cached) $ECHO_C" >&6
16544 else
16545   case $mutt_libesmtp_config_path in
16546   [\\/]* | ?:[\\/]*)
16547   ac_cv_path_mutt_libesmtp_config_path="$mutt_libesmtp_config_path" # Let the user override the test with a path.
16548   ;;
16549   *)
16550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16551 for as_dir in $mutt_libesmtp_check_path
16552 do
16553   IFS=$as_save_IFS
16554   test -z "$as_dir" && as_dir=.
16555   for ac_exec_ext in '' $ac_executable_extensions; do
16556   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16557     ac_cv_path_mutt_libesmtp_config_path="$as_dir/$ac_word$ac_exec_ext"
16558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16559     break 2
16560   fi
16561 done
16562 done
16563
16564   test -z "$ac_cv_path_mutt_libesmtp_config_path" && ac_cv_path_mutt_libesmtp_config_path="no"
16565   ;;
16566 esac
16567 fi
16568 mutt_libesmtp_config_path=$ac_cv_path_mutt_libesmtp_config_path
16569
16570 if test -n "$mutt_libesmtp_config_path"; then
16571   echo "$as_me:$LINENO: result: $mutt_libesmtp_config_path" >&5
16572 echo "${ECHO_T}$mutt_libesmtp_config_path" >&6
16573 else
16574   echo "$as_me:$LINENO: result: no" >&5
16575 echo "${ECHO_T}no" >&6
16576 fi
16577
16578
16579         if test "$mutt_libesmtp_config_path" = "no"
16580         then
16581           { { echo "$as_me:$LINENO: error: libesmtp-config binary not found." >&5
16582 echo "$as_me: error: libesmtp-config binary not found." >&2;}
16583    { (exit 1); exit 1; }; }
16584         fi
16585
16586                 mutt_libesmtp_cflags=`$mutt_libesmtp_config_path --cflags`
16587         mutt_libesmtp_libs=`$mutt_libesmtp_config_path --libs`
16588
16589                 temp_CFLAGS="$CFLAGS"
16590         CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
16591         if test "${ac_cv_header_libesmtp_h+set}" = set; then
16592   echo "$as_me:$LINENO: checking for libesmtp.h" >&5
16593 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
16594 if test "${ac_cv_header_libesmtp_h+set}" = set; then
16595   echo $ECHO_N "(cached) $ECHO_C" >&6
16596 fi
16597 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
16598 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
16599 else
16600   # Is the header compilable?
16601 echo "$as_me:$LINENO: checking libesmtp.h usability" >&5
16602 echo $ECHO_N "checking libesmtp.h usability... $ECHO_C" >&6
16603 cat >conftest.$ac_ext <<_ACEOF
16604 #line $LINENO "configure"
16605 /* confdefs.h.  */
16606 _ACEOF
16607 cat confdefs.h >>conftest.$ac_ext
16608 cat >>conftest.$ac_ext <<_ACEOF
16609 /* end confdefs.h.  */
16610 $ac_includes_default
16611 #include <libesmtp.h>
16612 _ACEOF
16613 rm -f conftest.$ac_objext
16614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16615   (eval $ac_compile) 2>&5
16616   ac_status=$?
16617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618   (exit $ac_status); } &&
16619          { ac_try='test -s conftest.$ac_objext'
16620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16621   (eval $ac_try) 2>&5
16622   ac_status=$?
16623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16624   (exit $ac_status); }; }; then
16625   ac_header_compiler=yes
16626 else
16627   echo "$as_me: failed program was:" >&5
16628 sed 's/^/| /' conftest.$ac_ext >&5
16629
16630 ac_header_compiler=no
16631 fi
16632 rm -f conftest.$ac_objext conftest.$ac_ext
16633 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16634 echo "${ECHO_T}$ac_header_compiler" >&6
16635
16636 # Is the header present?
16637 echo "$as_me:$LINENO: checking libesmtp.h presence" >&5
16638 echo $ECHO_N "checking libesmtp.h presence... $ECHO_C" >&6
16639 cat >conftest.$ac_ext <<_ACEOF
16640 #line $LINENO "configure"
16641 /* confdefs.h.  */
16642 _ACEOF
16643 cat confdefs.h >>conftest.$ac_ext
16644 cat >>conftest.$ac_ext <<_ACEOF
16645 /* end confdefs.h.  */
16646 #include <libesmtp.h>
16647 _ACEOF
16648 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16649   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16650   ac_status=$?
16651   grep -v '^ *+' conftest.er1 >conftest.err
16652   rm -f conftest.er1
16653   cat conftest.err >&5
16654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655   (exit $ac_status); } >/dev/null; then
16656   if test -s conftest.err; then
16657     ac_cpp_err=$ac_c_preproc_warn_flag
16658   else
16659     ac_cpp_err=
16660   fi
16661 else
16662   ac_cpp_err=yes
16663 fi
16664 if test -z "$ac_cpp_err"; then
16665   ac_header_preproc=yes
16666 else
16667   echo "$as_me: failed program was:" >&5
16668 sed 's/^/| /' conftest.$ac_ext >&5
16669
16670   ac_header_preproc=no
16671 fi
16672 rm -f conftest.err conftest.$ac_ext
16673 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16674 echo "${ECHO_T}$ac_header_preproc" >&6
16675
16676 # So?  What about this header?
16677 case $ac_header_compiler:$ac_header_preproc in
16678   yes:no )
16679     { echo "$as_me:$LINENO: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&5
16680 echo "$as_me: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16681     { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&5
16682 echo "$as_me: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&2;}
16683     (
16684       cat <<\_ASBOX
16685 ## ------------------------------------ ##
16686 ## Report this to bug-autoconf@gnu.org. ##
16687 ## ------------------------------------ ##
16688 _ASBOX
16689     ) |
16690       sed "s/^/$as_me: WARNING:     /" >&2
16691     ;;
16692   no:yes )
16693     { echo "$as_me:$LINENO: WARNING: libesmtp.h: present but cannot be compiled" >&5
16694 echo "$as_me: WARNING: libesmtp.h: present but cannot be compiled" >&2;}
16695     { echo "$as_me:$LINENO: WARNING: libesmtp.h: check for missing prerequisite headers?" >&5
16696 echo "$as_me: WARNING: libesmtp.h: check for missing prerequisite headers?" >&2;}
16697     { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&5
16698 echo "$as_me: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&2;}
16699     (
16700       cat <<\_ASBOX
16701 ## ------------------------------------ ##
16702 ## Report this to bug-autoconf@gnu.org. ##
16703 ## ------------------------------------ ##
16704 _ASBOX
16705     ) |
16706       sed "s/^/$as_me: WARNING:     /" >&2
16707     ;;
16708 esac
16709 echo "$as_me:$LINENO: checking for libesmtp.h" >&5
16710 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
16711 if test "${ac_cv_header_libesmtp_h+set}" = set; then
16712   echo $ECHO_N "(cached) $ECHO_C" >&6
16713 else
16714   ac_cv_header_libesmtp_h=$ac_header_preproc
16715 fi
16716 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
16717 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
16718
16719 fi
16720 if test $ac_cv_header_libesmtp_h = yes; then
16721   :
16722 else
16723   { { echo "$as_me:$LINENO: error: Could not find libesmtp.h" >&5
16724 echo "$as_me: error: Could not find libesmtp.h" >&2;}
16725    { (exit 1); exit 1; }; }
16726 fi
16727
16728
16729         CFLAGS="$temp_CFLAGS"
16730
16731                 temp_CFLAGS="$CFLAGS"
16732         temp_LIBS="$LIBS"
16733         CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
16734         LIBS="$LIBS $mutt_libesmtp_libs"
16735
16736 echo "$as_me:$LINENO: checking for smtp_create_session in -lesmtp" >&5
16737 echo $ECHO_N "checking for smtp_create_session in -lesmtp... $ECHO_C" >&6
16738 if test "${ac_cv_lib_esmtp_smtp_create_session+set}" = set; then
16739   echo $ECHO_N "(cached) $ECHO_C" >&6
16740 else
16741   ac_check_lib_save_LIBS=$LIBS
16742 LIBS="-lesmtp  $LIBS"
16743 cat >conftest.$ac_ext <<_ACEOF
16744 #line $LINENO "configure"
16745 /* confdefs.h.  */
16746 _ACEOF
16747 cat confdefs.h >>conftest.$ac_ext
16748 cat >>conftest.$ac_ext <<_ACEOF
16749 /* end confdefs.h.  */
16750
16751 /* Override any gcc2 internal prototype to avoid an error.  */
16752 #ifdef __cplusplus
16753 extern "C"
16754 #endif
16755 /* We use char because int might match the return type of a gcc2
16756    builtin and then its argument prototype would still apply.  */
16757 char smtp_create_session ();
16758 int
16759 main ()
16760 {
16761 smtp_create_session ();
16762   ;
16763   return 0;
16764 }
16765 _ACEOF
16766 rm -f conftest.$ac_objext conftest$ac_exeext
16767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16768   (eval $ac_link) 2>&5
16769   ac_status=$?
16770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771   (exit $ac_status); } &&
16772          { ac_try='test -s conftest$ac_exeext'
16773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16774   (eval $ac_try) 2>&5
16775   ac_status=$?
16776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777   (exit $ac_status); }; }; then
16778   ac_cv_lib_esmtp_smtp_create_session=yes
16779 else
16780   echo "$as_me: failed program was:" >&5
16781 sed 's/^/| /' conftest.$ac_ext >&5
16782
16783 ac_cv_lib_esmtp_smtp_create_session=no
16784 fi
16785 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16786 LIBS=$ac_check_lib_save_LIBS
16787 fi
16788 echo "$as_me:$LINENO: result: $ac_cv_lib_esmtp_smtp_create_session" >&5
16789 echo "${ECHO_T}$ac_cv_lib_esmtp_smtp_create_session" >&6
16790 if test $ac_cv_lib_esmtp_smtp_create_session = yes; then
16791   cat >>confdefs.h <<_ACEOF
16792 #define HAVE_LIBESMTP 1
16793 _ACEOF
16794
16795   LIBS="-lesmtp $LIBS"
16796
16797 else
16798   { { echo "$as_me:$LINENO: error: Could not find libesmtp" >&5
16799 echo "$as_me: error: Could not find libesmtp" >&2;}
16800    { (exit 1); exit 1; }; }
16801 fi
16802
16803         CFLAGS="$temp_CFLAGS"
16804         LIBS="$temp_LIBS"
16805
16806                         use_libesmtp=yes
16807       fi
16808
16809
16810 fi;
16811
16812 if test x$use_libesmtp = xyes; then
16813     CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
16814     MUTTLIBS="$MUTTLIBS $mutt_libesmtp_libs"
16815     MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_libesmtp.o"
16816
16817
16818 cat >>confdefs.h <<\_ACEOF
16819 #define USE_LIBESMTP 1
16820 _ACEOF
16821
16822 fi
16823
16824                                                                                                     ac_config_files="$ac_config_files Makefile intl/Makefile m4/Makefile po/Makefile.in doc/Makefile contrib/Makefile muttbug.sh imap/Makefile Muttngrc.head doc/instdoc.sh"
16825 cat >confcache <<\_ACEOF
16826 # This file is a shell script that caches the results of configure
16827 # tests run on this system so they can be shared between configure
16828 # scripts and configure runs, see configure's option --config-cache.
16829 # It is not useful on other systems.  If it contains results you don't
16830 # want to keep, you may remove or edit it.
16831 #
16832 # config.status only pays attention to the cache file if you give it
16833 # the --recheck option to rerun configure.
16834 #
16835 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16836 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16837 # following values.
16838
16839 _ACEOF
16840
16841 # The following way of writing the cache mishandles newlines in values,
16842 # but we know of no workaround that is simple, portable, and efficient.
16843 # So, don't put newlines in cache variables' values.
16844 # Ultrix sh set writes to stderr and can't be redirected directly,
16845 # and sets the high bit in the cache file unless we assign to the vars.
16846 {
16847   (set) 2>&1 |
16848     case `(ac_space=' '; set | grep ac_space) 2>&1` in
16849     *ac_space=\ *)
16850       # `set' does not quote correctly, so add quotes (double-quote
16851       # substitution turns \\\\ into \\, and sed turns \\ into \).
16852       sed -n \
16853         "s/'/'\\\\''/g;
16854           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16855       ;;
16856     *)
16857       # `set' quotes correctly as required by POSIX, so do not add quotes.
16858       sed -n \
16859         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16860       ;;
16861     esac;
16862 } |
16863   sed '
16864      t clear
16865      : clear
16866      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16867      t end
16868      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16869      : end' >>confcache
16870 if diff $cache_file confcache >/dev/null 2>&1; then :; else
16871   if test -w $cache_file; then
16872     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16873     cat confcache >$cache_file
16874   else
16875     echo "not updating unwritable cache $cache_file"
16876   fi
16877 fi
16878 rm -f confcache
16879
16880 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16881 # Let make expand exec_prefix.
16882 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16883
16884 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16885 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16886 # trailing colons and then remove the whole line if VPATH becomes empty
16887 # (actually we leave an empty line to preserve line numbers).
16888 if test "x$srcdir" = x.; then
16889   ac_vpsub='/^[         ]*VPATH[        ]*=/{
16890 s/:*\$(srcdir):*/:/;
16891 s/:*\${srcdir}:*/:/;
16892 s/:*@srcdir@:*/:/;
16893 s/^\([^=]*=[    ]*\):*/\1/;
16894 s/:*$//;
16895 s/^[^=]*=[      ]*$//;
16896 }'
16897 fi
16898
16899 DEFS=-DHAVE_CONFIG_H
16900
16901 ac_libobjs=
16902 ac_ltlibobjs=
16903 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16904   # 1. Remove the extension, and $U if already installed.
16905   ac_i=`echo "$ac_i" |
16906          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16907   # 2. Add them.
16908   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16909   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16910 done
16911 LIBOBJS=$ac_libobjs
16912
16913 LTLIBOBJS=$ac_ltlibobjs
16914
16915
16916 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16917   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
16918 Usually this means the macro was only invoked conditionally." >&5
16919 echo "$as_me: error: conditional \"AMDEP\" was never defined.
16920 Usually this means the macro was only invoked conditionally." >&2;}
16921    { (exit 1); exit 1; }; }
16922 fi
16923 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16924   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
16925 Usually this means the macro was only invoked conditionally." >&5
16926 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
16927 Usually this means the macro was only invoked conditionally." >&2;}
16928    { (exit 1); exit 1; }; }
16929 fi
16930 if test -z "${BUILD_IMAP_TRUE}" && test -z "${BUILD_IMAP_FALSE}"; then
16931   { { echo "$as_me:$LINENO: error: conditional \"BUILD_IMAP\" was never defined.
16932 Usually this means the macro was only invoked conditionally." >&5
16933 echo "$as_me: error: conditional \"BUILD_IMAP\" was never defined.
16934 Usually this means the macro was only invoked conditionally." >&2;}
16935    { (exit 1); exit 1; }; }
16936 fi
16937 if test -z "${USE_GSS_TRUE}" && test -z "${USE_GSS_FALSE}"; then
16938   { { echo "$as_me:$LINENO: error: conditional \"USE_GSS\" was never defined.
16939 Usually this means the macro was only invoked conditionally." >&5
16940 echo "$as_me: error: conditional \"USE_GSS\" was never defined.
16941 Usually this means the macro was only invoked conditionally." >&2;}
16942    { (exit 1); exit 1; }; }
16943 fi
16944 if test -z "${USE_SSL_TRUE}" && test -z "${USE_SSL_FALSE}"; then
16945   { { echo "$as_me:$LINENO: error: conditional \"USE_SSL\" was never defined.
16946 Usually this means the macro was only invoked conditionally." >&5
16947 echo "$as_me: error: conditional \"USE_SSL\" was never defined.
16948 Usually this means the macro was only invoked conditionally." >&2;}
16949    { (exit 1); exit 1; }; }
16950 fi
16951 if test -z "${USE_SASL_TRUE}" && test -z "${USE_SASL_FALSE}"; then
16952   { { echo "$as_me:$LINENO: error: conditional \"USE_SASL\" was never defined.
16953 Usually this means the macro was only invoked conditionally." >&5
16954 echo "$as_me: error: conditional \"USE_SASL\" was never defined.
16955 Usually this means the macro was only invoked conditionally." >&2;}
16956    { (exit 1); exit 1; }; }
16957 fi
16958 if test -z "${USE_SASL_TRUE}" && test -z "${USE_SASL_FALSE}"; then
16959   { { echo "$as_me:$LINENO: error: conditional \"USE_SASL\" was never defined.
16960 Usually this means the macro was only invoked conditionally." >&5
16961 echo "$as_me: error: conditional \"USE_SASL\" was never defined.
16962 Usually this means the macro was only invoked conditionally." >&2;}
16963    { (exit 1); exit 1; }; }
16964 fi
16965
16966 : ${CONFIG_STATUS=./config.status}
16967 ac_clean_files_save=$ac_clean_files
16968 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16969 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16970 echo "$as_me: creating $CONFIG_STATUS" >&6;}
16971 cat >$CONFIG_STATUS <<_ACEOF
16972 #! $SHELL
16973 # Generated by $as_me.
16974 # Run this file to recreate the current configuration.
16975 # Compiler output produced by configure, useful for debugging
16976 # configure, is in config.log if it exists.
16977
16978 debug=false
16979 ac_cs_recheck=false
16980 ac_cs_silent=false
16981 SHELL=\${CONFIG_SHELL-$SHELL}
16982 _ACEOF
16983
16984 cat >>$CONFIG_STATUS <<\_ACEOF
16985 ## --------------------- ##
16986 ## M4sh Initialization.  ##
16987 ## --------------------- ##
16988
16989 # Be Bourne compatible
16990 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16991   emulate sh
16992   NULLCMD=:
16993   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16994   # is contrary to our usage.  Disable this feature.
16995   alias -g '${1+"$@"}'='"$@"'
16996 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16997   set -o posix
16998 fi
16999
17000 # Support unset when possible.
17001 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17002   as_unset=unset
17003 else
17004   as_unset=false
17005 fi
17006
17007
17008 # Work around bugs in pre-3.0 UWIN ksh.
17009 $as_unset ENV MAIL MAILPATH
17010 PS1='$ '
17011 PS2='> '
17012 PS4='+ '
17013
17014 # NLS nuisances.
17015 for as_var in \
17016   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17017   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17018   LC_TELEPHONE LC_TIME
17019 do
17020   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
17021     eval $as_var=C; export $as_var
17022   else
17023     $as_unset $as_var
17024   fi
17025 done
17026
17027 # Required to use basename.
17028 if expr a : '\(a\)' >/dev/null 2>&1; then
17029   as_expr=expr
17030 else
17031   as_expr=false
17032 fi
17033
17034 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17035   as_basename=basename
17036 else
17037   as_basename=false
17038 fi
17039
17040
17041 # Name of the executable.
17042 as_me=`$as_basename "$0" ||
17043 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17044          X"$0" : 'X\(//\)$' \| \
17045          X"$0" : 'X\(/\)$' \| \
17046          .     : '\(.\)' 2>/dev/null ||
17047 echo X/"$0" |
17048     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17049           /^X\/\(\/\/\)$/{ s//\1/; q; }
17050           /^X\/\(\/\).*/{ s//\1/; q; }
17051           s/.*/./; q'`
17052
17053
17054 # PATH needs CR, and LINENO needs CR and PATH.
17055 # Avoid depending upon Character Ranges.
17056 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17057 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17058 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17059 as_cr_digits='0123456789'
17060 as_cr_alnum=$as_cr_Letters$as_cr_digits
17061
17062 # The user is always right.
17063 if test "${PATH_SEPARATOR+set}" != set; then
17064   echo "#! /bin/sh" >conf$$.sh
17065   echo  "exit 0"   >>conf$$.sh
17066   chmod +x conf$$.sh
17067   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17068     PATH_SEPARATOR=';'
17069   else
17070     PATH_SEPARATOR=:
17071   fi
17072   rm -f conf$$.sh
17073 fi
17074
17075
17076   as_lineno_1=$LINENO
17077   as_lineno_2=$LINENO
17078   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17079   test "x$as_lineno_1" != "x$as_lineno_2" &&
17080   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
17081   # Find who we are.  Look in the path if we contain no path at all
17082   # relative or not.
17083   case $0 in
17084     *[\\/]* ) as_myself=$0 ;;
17085     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17086 for as_dir in $PATH
17087 do
17088   IFS=$as_save_IFS
17089   test -z "$as_dir" && as_dir=.
17090   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17091 done
17092
17093        ;;
17094   esac
17095   # We did not find ourselves, most probably we were run as `sh COMMAND'
17096   # in which case we are not to be found in the path.
17097   if test "x$as_myself" = x; then
17098     as_myself=$0
17099   fi
17100   if test ! -f "$as_myself"; then
17101     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17102 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17103    { (exit 1); exit 1; }; }
17104   fi
17105   case $CONFIG_SHELL in
17106   '')
17107     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17108 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17109 do
17110   IFS=$as_save_IFS
17111   test -z "$as_dir" && as_dir=.
17112   for as_base in sh bash ksh sh5; do
17113          case $as_dir in
17114          /*)
17115            if ("$as_dir/$as_base" -c '
17116   as_lineno_1=$LINENO
17117   as_lineno_2=$LINENO
17118   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17119   test "x$as_lineno_1" != "x$as_lineno_2" &&
17120   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
17121              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17122              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17123              CONFIG_SHELL=$as_dir/$as_base
17124              export CONFIG_SHELL
17125              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17126            fi;;
17127          esac
17128        done
17129 done
17130 ;;
17131   esac
17132
17133   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17134   # uniformly replaced by the line number.  The first 'sed' inserts a
17135   # line-number line before each line; the second 'sed' does the real
17136   # work.  The second script uses 'N' to pair each line-number line
17137   # with the numbered line, and appends trailing '-' during
17138   # substitution so that $LINENO is not a special case at line end.
17139   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17140   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
17141   sed '=' <$as_myself |
17142     sed '
17143       N
17144       s,$,-,
17145       : loop
17146       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17147       t loop
17148       s,-$,,
17149       s,^['$as_cr_digits']*\n,,
17150     ' >$as_me.lineno &&
17151   chmod +x $as_me.lineno ||
17152     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17153 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17154    { (exit 1); exit 1; }; }
17155
17156   # Don't try to exec as it changes $[0], causing all sort of problems
17157   # (the dirname of $[0] is not the place where we might find the
17158   # original and so on.  Autoconf is especially sensible to this).
17159   . ./$as_me.lineno
17160   # Exit status is that of the last command.
17161   exit
17162 }
17163
17164
17165 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17166   *c*,-n*) ECHO_N= ECHO_C='
17167 ' ECHO_T='      ' ;;
17168   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17169   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
17170 esac
17171
17172 if expr a : '\(a\)' >/dev/null 2>&1; then
17173   as_expr=expr
17174 else
17175   as_expr=false
17176 fi
17177
17178 rm -f conf$$ conf$$.exe conf$$.file
17179 echo >conf$$.file
17180 if ln -s conf$$.file conf$$ 2>/dev/null; then
17181   # We could just check for DJGPP; but this test a) works b) is more generic
17182   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17183   if test -f conf$$.exe; then
17184     # Don't use ln at all; we don't have any links
17185     as_ln_s='cp -p'
17186   else
17187     as_ln_s='ln -s'
17188   fi
17189 elif ln conf$$.file conf$$ 2>/dev/null; then
17190   as_ln_s=ln
17191 else
17192   as_ln_s='cp -p'
17193 fi
17194 rm -f conf$$ conf$$.exe conf$$.file
17195
17196 if mkdir -p . 2>/dev/null; then
17197   as_mkdir_p=:
17198 else
17199   as_mkdir_p=false
17200 fi
17201
17202 as_executable_p="test -f"
17203
17204 # Sed expression to map a string onto a valid CPP name.
17205 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17206
17207 # Sed expression to map a string onto a valid variable name.
17208 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17209
17210
17211 # IFS
17212 # We need space, tab and new line, in precisely that order.
17213 as_nl='
17214 '
17215 IFS="   $as_nl"
17216
17217 # CDPATH.
17218 $as_unset CDPATH
17219
17220 exec 6>&1
17221
17222 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17223 # report actual input values of CONFIG_FILES etc. instead of their
17224 # values after options handling.  Logging --version etc. is OK.
17225 exec 5>>config.log
17226 {
17227   echo
17228   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17229 ## Running $as_me. ##
17230 _ASBOX
17231 } >&5
17232 cat >&5 <<_CSEOF
17233
17234 This file was extended by $as_me, which was
17235 generated by GNU Autoconf 2.57.  Invocation command line was
17236
17237   CONFIG_FILES    = $CONFIG_FILES
17238   CONFIG_HEADERS  = $CONFIG_HEADERS
17239   CONFIG_LINKS    = $CONFIG_LINKS
17240   CONFIG_COMMANDS = $CONFIG_COMMANDS
17241   $ $0 $@
17242
17243 _CSEOF
17244 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17245 echo >&5
17246 _ACEOF
17247
17248 # Files that config.status was made for.
17249 if test -n "$ac_config_files"; then
17250   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17251 fi
17252
17253 if test -n "$ac_config_headers"; then
17254   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17255 fi
17256
17257 if test -n "$ac_config_links"; then
17258   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17259 fi
17260
17261 if test -n "$ac_config_commands"; then
17262   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17263 fi
17264
17265 cat >>$CONFIG_STATUS <<\_ACEOF
17266
17267 ac_cs_usage="\
17268 \`$as_me' instantiates files from templates according to the
17269 current configuration.
17270
17271 Usage: $0 [OPTIONS] [FILE]...
17272
17273   -h, --help       print this help, then exit
17274   -V, --version    print version number, then exit
17275   -q, --quiet      do not print progress messages
17276   -d, --debug      don't remove temporary files
17277       --recheck    update $as_me by reconfiguring in the same conditions
17278   --file=FILE[:TEMPLATE]
17279                    instantiate the configuration file FILE
17280   --header=FILE[:TEMPLATE]
17281                    instantiate the configuration header FILE
17282
17283 Configuration files:
17284 $config_files
17285
17286 Configuration headers:
17287 $config_headers
17288
17289 Configuration commands:
17290 $config_commands
17291
17292 Report bugs to <bug-autoconf@gnu.org>."
17293 _ACEOF
17294
17295 cat >>$CONFIG_STATUS <<_ACEOF
17296 ac_cs_version="\\
17297 config.status
17298 configured by $0, generated by GNU Autoconf 2.57,
17299   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17300
17301 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17302 Free Software Foundation, Inc.
17303 This config.status script is free software; the Free Software Foundation
17304 gives unlimited permission to copy, distribute and modify it."
17305 srcdir=$srcdir
17306 INSTALL="$INSTALL"
17307 _ACEOF
17308
17309 cat >>$CONFIG_STATUS <<\_ACEOF
17310 # If no file are specified by the user, then we need to provide default
17311 # value.  By we need to know if files were specified by the user.
17312 ac_need_defaults=:
17313 while test $# != 0
17314 do
17315   case $1 in
17316   --*=*)
17317     ac_option=`expr "x$1" : 'x\([^=]*\)='`
17318     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17319     ac_shift=:
17320     ;;
17321   -*)
17322     ac_option=$1
17323     ac_optarg=$2
17324     ac_shift=shift
17325     ;;
17326   *) # This is not an option, so the user has probably given explicit
17327      # arguments.
17328      ac_option=$1
17329      ac_need_defaults=false;;
17330   esac
17331
17332   case $ac_option in
17333   # Handling of the options.
17334 _ACEOF
17335 cat >>$CONFIG_STATUS <<\_ACEOF
17336   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17337     ac_cs_recheck=: ;;
17338   --version | --vers* | -V )
17339     echo "$ac_cs_version"; exit 0 ;;
17340   --he | --h)
17341     # Conflict between --help and --header
17342     { { echo "$as_me:$LINENO: error: ambiguous option: $1
17343 Try \`$0 --help' for more information." >&5
17344 echo "$as_me: error: ambiguous option: $1
17345 Try \`$0 --help' for more information." >&2;}
17346    { (exit 1); exit 1; }; };;
17347   --help | --hel | -h )
17348     echo "$ac_cs_usage"; exit 0 ;;
17349   --debug | --d* | -d )
17350     debug=: ;;
17351   --file | --fil | --fi | --f )
17352     $ac_shift
17353     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17354     ac_need_defaults=false;;
17355   --header | --heade | --head | --hea )
17356     $ac_shift
17357     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17358     ac_need_defaults=false;;
17359   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17360   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17361     ac_cs_silent=: ;;
17362
17363   # This is an error.
17364   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17365 Try \`$0 --help' for more information." >&5
17366 echo "$as_me: error: unrecognized option: $1
17367 Try \`$0 --help' for more information." >&2;}
17368    { (exit 1); exit 1; }; } ;;
17369
17370   *) ac_config_targets="$ac_config_targets $1" ;;
17371
17372   esac
17373   shift
17374 done
17375
17376 ac_configure_extra_args=
17377
17378 if $ac_cs_silent; then
17379   exec 6>/dev/null
17380   ac_configure_extra_args="$ac_configure_extra_args --silent"
17381 fi
17382
17383 _ACEOF
17384 cat >>$CONFIG_STATUS <<_ACEOF
17385 if \$ac_cs_recheck; then
17386   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17387   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17388 fi
17389
17390 _ACEOF
17391
17392 cat >>$CONFIG_STATUS <<_ACEOF
17393 #
17394 # INIT-COMMANDS section.
17395 #
17396
17397 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17398
17399
17400 _ACEOF
17401
17402
17403
17404 cat >>$CONFIG_STATUS <<\_ACEOF
17405 for ac_config_target in $ac_config_targets
17406 do
17407   case "$ac_config_target" in
17408   # Handling of arguments.
17409   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17410   "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
17411   "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
17412   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17413   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17414   "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
17415   "muttbug.sh" ) CONFIG_FILES="$CONFIG_FILES muttbug.sh" ;;
17416   "imap/Makefile" ) CONFIG_FILES="$CONFIG_FILES imap/Makefile" ;;
17417   "Muttngrc.head" ) CONFIG_FILES="$CONFIG_FILES Muttngrc.head" ;;
17418   "doc/instdoc.sh" ) CONFIG_FILES="$CONFIG_FILES doc/instdoc.sh" ;;
17419   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17420   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17421   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17422   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17423 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17424    { (exit 1); exit 1; }; };;
17425   esac
17426 done
17427
17428 # If the user did not use the arguments to specify the items to instantiate,
17429 # then the envvar interface is used.  Set only those that are not.
17430 # We use the long form for the default assignment because of an extremely
17431 # bizarre bug on SunOS 4.1.3.
17432 if $ac_need_defaults; then
17433   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17434   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17435   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17436 fi
17437
17438 # Have a temporary directory for convenience.  Make it in the build tree
17439 # simply because there is no reason to put it here, and in addition,
17440 # creating and moving files from /tmp can sometimes cause problems.
17441 # Create a temporary directory, and hook for its removal unless debugging.
17442 $debug ||
17443 {
17444   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17445   trap '{ (exit 1); exit 1; }' 1 2 13 15
17446 }
17447
17448 # Create a (secure) tmp directory for tmp files.
17449
17450 {
17451   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
17452   test -n "$tmp" && test -d "$tmp"
17453 }  ||
17454 {
17455   tmp=./confstat$$-$RANDOM
17456   (umask 077 && mkdir $tmp)
17457 } ||
17458 {
17459    echo "$me: cannot create a temporary directory in ." >&2
17460    { (exit 1); exit 1; }
17461 }
17462
17463 _ACEOF
17464
17465 cat >>$CONFIG_STATUS <<_ACEOF
17466
17467 #
17468 # CONFIG_FILES section.
17469 #
17470
17471 # No need to generate the scripts if there are no CONFIG_FILES.
17472 # This happens for instance when ./config.status config.h
17473 if test -n "\$CONFIG_FILES"; then
17474   # Protect against being on the right side of a sed subst in config.status.
17475   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17476    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17477 s,@SHELL@,$SHELL,;t t
17478 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17479 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17480 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17481 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17482 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17483 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
17484 s,@exec_prefix@,$exec_prefix,;t t
17485 s,@prefix@,$prefix,;t t
17486 s,@program_transform_name@,$program_transform_name,;t t
17487 s,@bindir@,$bindir,;t t
17488 s,@sbindir@,$sbindir,;t t
17489 s,@libexecdir@,$libexecdir,;t t
17490 s,@datadir@,$datadir,;t t
17491 s,@sysconfdir@,$sysconfdir,;t t
17492 s,@sharedstatedir@,$sharedstatedir,;t t
17493 s,@localstatedir@,$localstatedir,;t t
17494 s,@libdir@,$libdir,;t t
17495 s,@includedir@,$includedir,;t t
17496 s,@oldincludedir@,$oldincludedir,;t t
17497 s,@infodir@,$infodir,;t t
17498 s,@mandir@,$mandir,;t t
17499 s,@build_alias@,$build_alias,;t t
17500 s,@host_alias@,$host_alias,;t t
17501 s,@target_alias@,$target_alias,;t t
17502 s,@DEFS@,$DEFS,;t t
17503 s,@ECHO_C@,$ECHO_C,;t t
17504 s,@ECHO_N@,$ECHO_N,;t t
17505 s,@ECHO_T@,$ECHO_T,;t t
17506 s,@LIBS@,$LIBS,;t t
17507 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17508 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17509 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
17510 s,@CYGPATH_W@,$CYGPATH_W,;t t
17511 s,@PACKAGE@,$PACKAGE,;t t
17512 s,@VERSION@,$VERSION,;t t
17513 s,@ACLOCAL@,$ACLOCAL,;t t
17514 s,@AUTOCONF@,$AUTOCONF,;t t
17515 s,@AUTOMAKE@,$AUTOMAKE,;t t
17516 s,@AUTOHEADER@,$AUTOHEADER,;t t
17517 s,@MAKEINFO@,$MAKEINFO,;t t
17518 s,@AMTAR@,$AMTAR,;t t
17519 s,@install_sh@,$install_sh,;t t
17520 s,@STRIP@,$STRIP,;t t
17521 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17522 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
17523 s,@AWK@,$AWK,;t t
17524 s,@SET_MAKE@,$SET_MAKE,;t t
17525 s,@am__leading_dot@,$am__leading_dot,;t t
17526 s,@build@,$build,;t t
17527 s,@build_cpu@,$build_cpu,;t t
17528 s,@build_vendor@,$build_vendor,;t t
17529 s,@build_os@,$build_os,;t t
17530 s,@host@,$host,;t t
17531 s,@host_cpu@,$host_cpu,;t t
17532 s,@host_vendor@,$host_vendor,;t t
17533 s,@host_os@,$host_os,;t t
17534 s,@CC@,$CC,;t t
17535 s,@CFLAGS@,$CFLAGS,;t t
17536 s,@LDFLAGS@,$LDFLAGS,;t t
17537 s,@CPPFLAGS@,$CPPFLAGS,;t t
17538 s,@ac_ct_CC@,$ac_ct_CC,;t t
17539 s,@EXEEXT@,$EXEEXT,;t t
17540 s,@OBJEXT@,$OBJEXT,;t t
17541 s,@DEPDIR@,$DEPDIR,;t t
17542 s,@am__include@,$am__include,;t t
17543 s,@am__quote@,$am__quote,;t t
17544 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
17545 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
17546 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
17547 s,@CCDEPMODE@,$CCDEPMODE,;t t
17548 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
17549 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
17550 s,@CPP@,$CPP,;t t
17551 s,@EGREP@,$EGREP,;t t
17552 s,@U@,$U,;t t
17553 s,@ANSI2KNR@,$ANSI2KNR,;t t
17554 s,@RANLIB@,$RANLIB,;t t
17555 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
17556 s,@AR@,$AR,;t t
17557 s,@ac_ct_AR@,$ac_ct_AR,;t t
17558 s,@DBX@,$DBX,;t t
17559 s,@GDB@,$GDB,;t t
17560 s,@SDB@,$SDB,;t t
17561 s,@DEBUGGER@,$DEBUGGER,;t t
17562 s,@SENDMAIL@,$SENDMAIL,;t t
17563 s,@GPGME_CONFIG@,$GPGME_CONFIG,;t t
17564 s,@LIBGPGME_CFLAGS@,$LIBGPGME_CFLAGS,;t t
17565 s,@LIBGPGME_LIBS@,$LIBGPGME_LIBS,;t t
17566 s,@OPS@,$OPS,;t t
17567 s,@PGPAUX_TARGET@,$PGPAUX_TARGET,;t t
17568 s,@SMIMEAUX_TARGET@,$SMIMEAUX_TARGET,;t t
17569 s,@SUBVERSION@,$SUBVERSION,;t t
17570 s,@ISPELL@,$ISPELL,;t t
17571 s,@LIBOBJS@,$LIBOBJS,;t t
17572 s,@DOTLOCK_TARGET@,$DOTLOCK_TARGET,;t t
17573 s,@docdir@,$docdir,;t t
17574 s,@DOTLOCK_GROUP@,$DOTLOCK_GROUP,;t t
17575 s,@DOTLOCK_PERMISSION@,$DOTLOCK_PERMISSION,;t t
17576 s,@BUILD_IMAP_TRUE@,$BUILD_IMAP_TRUE,;t t
17577 s,@BUILD_IMAP_FALSE@,$BUILD_IMAP_FALSE,;t t
17578 s,@KRB5CFGPATH@,$KRB5CFGPATH,;t t
17579 s,@USE_GSS_TRUE@,$USE_GSS_TRUE,;t t
17580 s,@USE_GSS_FALSE@,$USE_GSS_FALSE,;t t
17581 s,@USE_SSL_TRUE@,$USE_SSL_TRUE,;t t
17582 s,@USE_SSL_FALSE@,$USE_SSL_FALSE,;t t
17583 s,@LIBGNUTLS_CONFIG@,$LIBGNUTLS_CONFIG,;t t
17584 s,@LIBGNUTLS_CFLAGS@,$LIBGNUTLS_CFLAGS,;t t
17585 s,@LIBGNUTLS_LIBS@,$LIBGNUTLS_LIBS,;t t
17586 s,@USE_SASL_TRUE@,$USE_SASL_TRUE,;t t
17587 s,@USE_SASL_FALSE@,$USE_SASL_FALSE,;t t
17588 s,@MUTTLIBS@,$MUTTLIBS,;t t
17589 s,@MUTT_LIB_OBJECTS@,$MUTT_LIB_OBJECTS,;t t
17590 s,@LIBIMAP@,$LIBIMAP,;t t
17591 s,@LIBIMAPDEPS@,$LIBIMAPDEPS,;t t
17592 s,@ALLOCA@,$ALLOCA,;t t
17593 s,@GLIBC21@,$GLIBC21,;t t
17594 s,@LIBICONV@,$LIBICONV,;t t
17595 s,@USE_NLS@,$USE_NLS,;t t
17596 s,@MSGFMT@,$MSGFMT,;t t
17597 s,@GMSGFMT@,$GMSGFMT,;t t
17598 s,@XGETTEXT@,$XGETTEXT,;t t
17599 s,@INTLBISON@,$INTLBISON,;t t
17600 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
17601 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
17602 s,@CATALOGS@,$CATALOGS,;t t
17603 s,@CATOBJEXT@,$CATOBJEXT,;t t
17604 s,@GMOFILES@,$GMOFILES,;t t
17605 s,@INTLLIBS@,$INTLLIBS,;t t
17606 s,@INTLOBJS@,$INTLOBJS,;t t
17607 s,@POFILES@,$POFILES,;t t
17608 s,@POSUB@,$POSUB,;t t
17609 s,@DATADIRNAME@,$DATADIRNAME,;t t
17610 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
17611 s,@GENCAT@,$GENCAT,;t t
17612 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
17613 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
17614 s,@mutt_libesmtp_config_path@,$mutt_libesmtp_config_path,;t t
17615 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
17616 CEOF
17617
17618 _ACEOF
17619
17620   cat >>$CONFIG_STATUS <<\_ACEOF
17621   # Split the substitutions into bite-sized pieces for seds with
17622   # small command number limits, like on Digital OSF/1 and HP-UX.
17623   ac_max_sed_lines=48
17624   ac_sed_frag=1 # Number of current file.
17625   ac_beg=1 # First line for current file.
17626   ac_end=$ac_max_sed_lines # Line after last line for current file.
17627   ac_more_lines=:
17628   ac_sed_cmds=
17629   while $ac_more_lines; do
17630     if test $ac_beg -gt 1; then
17631       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17632     else
17633       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17634     fi
17635     if test ! -s $tmp/subs.frag; then
17636       ac_more_lines=false
17637     else
17638       # The purpose of the label and of the branching condition is to
17639       # speed up the sed processing (if there are no `@' at all, there
17640       # is no need to browse any of the substitutions).
17641       # These are the two extra sed commands mentioned above.
17642       (echo ':t
17643   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17644       if test -z "$ac_sed_cmds"; then
17645         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17646       else
17647         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17648       fi
17649       ac_sed_frag=`expr $ac_sed_frag + 1`
17650       ac_beg=$ac_end
17651       ac_end=`expr $ac_end + $ac_max_sed_lines`
17652     fi
17653   done
17654   if test -z "$ac_sed_cmds"; then
17655     ac_sed_cmds=cat
17656   fi
17657 fi # test -n "$CONFIG_FILES"
17658
17659 _ACEOF
17660 cat >>$CONFIG_STATUS <<\_ACEOF
17661 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17662   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17663   case $ac_file in
17664   - | *:- | *:-:* ) # input from stdin
17665         cat >$tmp/stdin
17666         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17667         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17668   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17669         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17670   * )   ac_file_in=$ac_file.in ;;
17671   esac
17672
17673   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
17674   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17675 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17676          X"$ac_file" : 'X\(//\)[^/]' \| \
17677          X"$ac_file" : 'X\(//\)$' \| \
17678          X"$ac_file" : 'X\(/\)' \| \
17679          .     : '\(.\)' 2>/dev/null ||
17680 echo X"$ac_file" |
17681     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17682           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17683           /^X\(\/\/\)$/{ s//\1/; q; }
17684           /^X\(\/\).*/{ s//\1/; q; }
17685           s/.*/./; q'`
17686   { if $as_mkdir_p; then
17687     mkdir -p "$ac_dir"
17688   else
17689     as_dir="$ac_dir"
17690     as_dirs=
17691     while test ! -d "$as_dir"; do
17692       as_dirs="$as_dir $as_dirs"
17693       as_dir=`(dirname "$as_dir") 2>/dev/null ||
17694 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17695          X"$as_dir" : 'X\(//\)[^/]' \| \
17696          X"$as_dir" : 'X\(//\)$' \| \
17697          X"$as_dir" : 'X\(/\)' \| \
17698          .     : '\(.\)' 2>/dev/null ||
17699 echo X"$as_dir" |
17700     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17701           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17702           /^X\(\/\/\)$/{ s//\1/; q; }
17703           /^X\(\/\).*/{ s//\1/; q; }
17704           s/.*/./; q'`
17705     done
17706     test ! -n "$as_dirs" || mkdir $as_dirs
17707   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17708 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17709    { (exit 1); exit 1; }; }; }
17710
17711   ac_builddir=.
17712
17713 if test "$ac_dir" != .; then
17714   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17715   # A "../" for each directory in $ac_dir_suffix.
17716   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17717 else
17718   ac_dir_suffix= ac_top_builddir=
17719 fi
17720
17721 case $srcdir in
17722   .)  # No --srcdir option.  We are building in place.
17723     ac_srcdir=.
17724     if test -z "$ac_top_builddir"; then
17725        ac_top_srcdir=.
17726     else
17727        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17728     fi ;;
17729   [\\/]* | ?:[\\/]* )  # Absolute path.
17730     ac_srcdir=$srcdir$ac_dir_suffix;
17731     ac_top_srcdir=$srcdir ;;
17732   *) # Relative path.
17733     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17734     ac_top_srcdir=$ac_top_builddir$srcdir ;;
17735 esac
17736 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17737 # absolute.
17738 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17739 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
17740 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17741 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17742
17743
17744   case $INSTALL in
17745   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17746   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17747   esac
17748
17749   if test x"$ac_file" != x-; then
17750     { echo "$as_me:$LINENO: creating $ac_file" >&5
17751 echo "$as_me: creating $ac_file" >&6;}
17752     rm -f "$ac_file"
17753   fi
17754   # Let's still pretend it is `configure' which instantiates (i.e., don't
17755   # use $as_me), people would be surprised to read:
17756   #    /* config.h.  Generated by config.status.  */
17757   if test x"$ac_file" = x-; then
17758     configure_input=
17759   else
17760     configure_input="$ac_file.  "
17761   fi
17762   configure_input=$configure_input"Generated from `echo $ac_file_in |
17763                                      sed 's,.*/,,'` by configure."
17764
17765   # First look for the input files in the build tree, otherwise in the
17766   # src tree.
17767   ac_file_inputs=`IFS=:
17768     for f in $ac_file_in; do
17769       case $f in
17770       -) echo $tmp/stdin ;;
17771       [\\/$]*)
17772          # Absolute (can't be DOS-style, as IFS=:)
17773          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17774 echo "$as_me: error: cannot find input file: $f" >&2;}
17775    { (exit 1); exit 1; }; }
17776          echo $f;;
17777       *) # Relative
17778          if test -f "$f"; then
17779            # Build tree
17780            echo $f
17781          elif test -f "$srcdir/$f"; then
17782            # Source tree
17783            echo $srcdir/$f
17784          else
17785            # /dev/null tree
17786            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17787 echo "$as_me: error: cannot find input file: $f" >&2;}
17788    { (exit 1); exit 1; }; }
17789          fi;;
17790       esac
17791     done` || { (exit 1); exit 1; }
17792 _ACEOF
17793 cat >>$CONFIG_STATUS <<_ACEOF
17794   sed "$ac_vpsub
17795 $extrasub
17796 _ACEOF
17797 cat >>$CONFIG_STATUS <<\_ACEOF
17798 :t
17799 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17800 s,@configure_input@,$configure_input,;t t
17801 s,@srcdir@,$ac_srcdir,;t t
17802 s,@abs_srcdir@,$ac_abs_srcdir,;t t
17803 s,@top_srcdir@,$ac_top_srcdir,;t t
17804 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17805 s,@builddir@,$ac_builddir,;t t
17806 s,@abs_builddir@,$ac_abs_builddir,;t t
17807 s,@top_builddir@,$ac_top_builddir,;t t
17808 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17809 s,@INSTALL@,$ac_INSTALL,;t t
17810 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17811   rm -f $tmp/stdin
17812   if test x"$ac_file" != x-; then
17813     mv $tmp/out $ac_file
17814   else
17815     cat $tmp/out
17816     rm -f $tmp/out
17817   fi
17818
17819 done
17820 _ACEOF
17821 cat >>$CONFIG_STATUS <<\_ACEOF
17822
17823 #
17824 # CONFIG_HEADER section.
17825 #
17826
17827 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17828 # NAME is the cpp macro being defined and VALUE is the value it is being given.
17829 #
17830 # ac_d sets the value in "#define NAME VALUE" lines.
17831 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
17832 ac_dB='[        ].*$,\1#\2'
17833 ac_dC=' '
17834 ac_dD=',;t'
17835 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17836 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
17837 ac_uB='$,\1#\2define\3'
17838 ac_uC=' '
17839 ac_uD=',;t'
17840
17841 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17842   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17843   case $ac_file in
17844   - | *:- | *:-:* ) # input from stdin
17845         cat >$tmp/stdin
17846         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17847         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17848   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17849         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17850   * )   ac_file_in=$ac_file.in ;;
17851   esac
17852
17853   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17854 echo "$as_me: creating $ac_file" >&6;}
17855
17856   # First look for the input files in the build tree, otherwise in the
17857   # src tree.
17858   ac_file_inputs=`IFS=:
17859     for f in $ac_file_in; do
17860       case $f in
17861       -) echo $tmp/stdin ;;
17862       [\\/$]*)
17863          # Absolute (can't be DOS-style, as IFS=:)
17864          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17865 echo "$as_me: error: cannot find input file: $f" >&2;}
17866    { (exit 1); exit 1; }; }
17867          echo $f;;
17868       *) # Relative
17869          if test -f "$f"; then
17870            # Build tree
17871            echo $f
17872          elif test -f "$srcdir/$f"; then
17873            # Source tree
17874            echo $srcdir/$f
17875          else
17876            # /dev/null tree
17877            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17878 echo "$as_me: error: cannot find input file: $f" >&2;}
17879    { (exit 1); exit 1; }; }
17880          fi;;
17881       esac
17882     done` || { (exit 1); exit 1; }
17883   # Remove the trailing spaces.
17884   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
17885
17886 _ACEOF
17887
17888 # Transform confdefs.h into two sed scripts, `conftest.defines' and
17889 # `conftest.undefs', that substitutes the proper values into
17890 # config.h.in to produce config.h.  The first handles `#define'
17891 # templates, and the second `#undef' templates.
17892 # And first: Protect against being on the right side of a sed subst in
17893 # config.status.  Protect against being in an unquoted here document
17894 # in config.status.
17895 rm -f conftest.defines conftest.undefs
17896 # Using a here document instead of a string reduces the quoting nightmare.
17897 # Putting comments in sed scripts is not portable.
17898 #
17899 # `end' is used to avoid that the second main sed command (meant for
17900 # 0-ary CPP macros) applies to n-ary macro definitions.
17901 # See the Autoconf documentation for `clear'.
17902 cat >confdef2sed.sed <<\_ACEOF
17903 s/[\\&,]/\\&/g
17904 s,[\\$`],\\&,g
17905 t clear
17906 : clear
17907 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17908 t end
17909 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17910 : end
17911 _ACEOF
17912 # If some macros were called several times there might be several times
17913 # the same #defines, which is useless.  Nevertheless, we may not want to
17914 # sort them, since we want the *last* AC-DEFINE to be honored.
17915 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17916 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17917 rm -f confdef2sed.sed
17918
17919 # This sed command replaces #undef with comments.  This is necessary, for
17920 # example, in the case of _POSIX_SOURCE, which is predefined and required
17921 # on some systems where configure will not decide to define it.
17922 cat >>conftest.undefs <<\_ACEOF
17923 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17924 _ACEOF
17925
17926 # Break up conftest.defines because some shells have a limit on the size
17927 # of here documents, and old seds have small limits too (100 cmds).
17928 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17929 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17930 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17931 echo '  :' >>$CONFIG_STATUS
17932 rm -f conftest.tail
17933 while grep . conftest.defines >/dev/null
17934 do
17935   # Write a limited-size here document to $tmp/defines.sed.
17936   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17937   # Speed up: don't consider the non `#define' lines.
17938   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
17939   # Work around the forget-to-reset-the-flag bug.
17940   echo 't clr' >>$CONFIG_STATUS
17941   echo ': clr' >>$CONFIG_STATUS
17942   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17943   echo 'CEOF
17944   sed -f $tmp/defines.sed $tmp/in >$tmp/out
17945   rm -f $tmp/in
17946   mv $tmp/out $tmp/in
17947 ' >>$CONFIG_STATUS
17948   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17949   rm -f conftest.defines
17950   mv conftest.tail conftest.defines
17951 done
17952 rm -f conftest.defines
17953 echo '  fi # grep' >>$CONFIG_STATUS
17954 echo >>$CONFIG_STATUS
17955
17956 # Break up conftest.undefs because some shells have a limit on the size
17957 # of here documents, and old seds have small limits too (100 cmds).
17958 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
17959 rm -f conftest.tail
17960 while grep . conftest.undefs >/dev/null
17961 do
17962   # Write a limited-size here document to $tmp/undefs.sed.
17963   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17964   # Speed up: don't consider the non `#undef'
17965   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
17966   # Work around the forget-to-reset-the-flag bug.
17967   echo 't clr' >>$CONFIG_STATUS
17968   echo ': clr' >>$CONFIG_STATUS
17969   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17970   echo 'CEOF
17971   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17972   rm -f $tmp/in
17973   mv $tmp/out $tmp/in
17974 ' >>$CONFIG_STATUS
17975   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17976   rm -f conftest.undefs
17977   mv conftest.tail conftest.undefs
17978 done
17979 rm -f conftest.undefs
17980
17981 cat >>$CONFIG_STATUS <<\_ACEOF
17982   # Let's still pretend it is `configure' which instantiates (i.e., don't
17983   # use $as_me), people would be surprised to read:
17984   #    /* config.h.  Generated by config.status.  */
17985   if test x"$ac_file" = x-; then
17986     echo "/* Generated by configure.  */" >$tmp/config.h
17987   else
17988     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
17989   fi
17990   cat $tmp/in >>$tmp/config.h
17991   rm -f $tmp/in
17992   if test x"$ac_file" != x-; then
17993     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
17994       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17995 echo "$as_me: $ac_file is unchanged" >&6;}
17996     else
17997       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17998 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17999          X"$ac_file" : 'X\(//\)[^/]' \| \
18000          X"$ac_file" : 'X\(//\)$' \| \
18001          X"$ac_file" : 'X\(/\)' \| \
18002          .     : '\(.\)' 2>/dev/null ||
18003 echo X"$ac_file" |
18004     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18005           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18006           /^X\(\/\/\)$/{ s//\1/; q; }
18007           /^X\(\/\).*/{ s//\1/; q; }
18008           s/.*/./; q'`
18009       { if $as_mkdir_p; then
18010     mkdir -p "$ac_dir"
18011   else
18012     as_dir="$ac_dir"
18013     as_dirs=
18014     while test ! -d "$as_dir"; do
18015       as_dirs="$as_dir $as_dirs"
18016       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18017 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18018          X"$as_dir" : 'X\(//\)[^/]' \| \
18019          X"$as_dir" : 'X\(//\)$' \| \
18020          X"$as_dir" : 'X\(/\)' \| \
18021          .     : '\(.\)' 2>/dev/null ||
18022 echo X"$as_dir" |
18023     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18024           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18025           /^X\(\/\/\)$/{ s//\1/; q; }
18026           /^X\(\/\).*/{ s//\1/; q; }
18027           s/.*/./; q'`
18028     done
18029     test ! -n "$as_dirs" || mkdir $as_dirs
18030   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18031 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18032    { (exit 1); exit 1; }; }; }
18033
18034       rm -f $ac_file
18035       mv $tmp/config.h $ac_file
18036     fi
18037   else
18038     cat $tmp/config.h
18039     rm -f $tmp/config.h
18040   fi
18041 # Compute $ac_file's index in $config_headers.
18042 _am_stamp_count=1
18043 for _am_header in $config_headers :; do
18044   case $_am_header in
18045     $ac_file | $ac_file:* )
18046       break ;;
18047     * )
18048       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18049   esac
18050 done
18051 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
18052 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18053          X$ac_file : 'X\(//\)[^/]' \| \
18054          X$ac_file : 'X\(//\)$' \| \
18055          X$ac_file : 'X\(/\)' \| \
18056          .     : '\(.\)' 2>/dev/null ||
18057 echo X$ac_file |
18058     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18059           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18060           /^X\(\/\/\)$/{ s//\1/; q; }
18061           /^X\(\/\).*/{ s//\1/; q; }
18062           s/.*/./; q'`/stamp-h$_am_stamp_count
18063 done
18064 _ACEOF
18065 cat >>$CONFIG_STATUS <<\_ACEOF
18066
18067 #
18068 # CONFIG_COMMANDS section.
18069 #
18070 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18071   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18072   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18073   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18074 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18075          X"$ac_dest" : 'X\(//\)[^/]' \| \
18076          X"$ac_dest" : 'X\(//\)$' \| \
18077          X"$ac_dest" : 'X\(/\)' \| \
18078          .     : '\(.\)' 2>/dev/null ||
18079 echo X"$ac_dest" |
18080     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18081           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18082           /^X\(\/\/\)$/{ s//\1/; q; }
18083           /^X\(\/\).*/{ s//\1/; q; }
18084           s/.*/./; q'`
18085   ac_builddir=.
18086
18087 if test "$ac_dir" != .; then
18088   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18089   # A "../" for each directory in $ac_dir_suffix.
18090   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18091 else
18092   ac_dir_suffix= ac_top_builddir=
18093 fi
18094
18095 case $srcdir in
18096   .)  # No --srcdir option.  We are building in place.
18097     ac_srcdir=.
18098     if test -z "$ac_top_builddir"; then
18099        ac_top_srcdir=.
18100     else
18101        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18102     fi ;;
18103   [\\/]* | ?:[\\/]* )  # Absolute path.
18104     ac_srcdir=$srcdir$ac_dir_suffix;
18105     ac_top_srcdir=$srcdir ;;
18106   *) # Relative path.
18107     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18108     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18109 esac
18110 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18111 # absolute.
18112 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18113 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18114 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18115 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18116
18117
18118   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18119 echo "$as_me: executing $ac_dest commands" >&6;}
18120   case $ac_dest in
18121     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
18122   # Strip MF so we end up with the name of the file.
18123   mf=`echo "$mf" | sed -e 's/:.*$//'`
18124   # Check whether this is an Automake generated Makefile or not.
18125   # We used to match only the files named `Makefile.in', but
18126   # some people rename them; so instead we look at the file content.
18127   # Grep'ing the first line is not enough: some people post-process
18128   # each Makefile.in and add a new line on top of each file to say so.
18129   # So let's grep whole file.
18130   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
18131     dirpart=`(dirname "$mf") 2>/dev/null ||
18132 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18133          X"$mf" : 'X\(//\)[^/]' \| \
18134          X"$mf" : 'X\(//\)$' \| \
18135          X"$mf" : 'X\(/\)' \| \
18136          .     : '\(.\)' 2>/dev/null ||
18137 echo X"$mf" |
18138     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18139           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18140           /^X\(\/\/\)$/{ s//\1/; q; }
18141           /^X\(\/\).*/{ s//\1/; q; }
18142           s/.*/./; q'`
18143   else
18144     continue
18145   fi
18146   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
18147   # Extract the definition of DEP_FILES from the Makefile without
18148   # running `make'.
18149   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
18150   test -z "$DEPDIR" && continue
18151   # When using ansi2knr, U may be empty or an underscore; expand it
18152   U=`sed -n -e '/^U = / s///p' < "$mf"`
18153   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
18154   # We invoke sed twice because it is the simplest approach to
18155   # changing $(DEPDIR) to its actual value in the expansion.
18156   for file in `sed -n -e '
18157     /^DEP_FILES = .*\\\\$/ {
18158       s/^DEP_FILES = //
18159       :loop
18160         s/\\\\$//
18161         p
18162         n
18163         /\\\\$/ b loop
18164       p
18165     }
18166     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
18167        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18168     # Make sure the directory exists.
18169     test -f "$dirpart/$file" && continue
18170     fdir=`(dirname "$file") 2>/dev/null ||
18171 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18172          X"$file" : 'X\(//\)[^/]' \| \
18173          X"$file" : 'X\(//\)$' \| \
18174          X"$file" : 'X\(/\)' \| \
18175          .     : '\(.\)' 2>/dev/null ||
18176 echo X"$file" |
18177     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18178           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18179           /^X\(\/\/\)$/{ s//\1/; q; }
18180           /^X\(\/\).*/{ s//\1/; q; }
18181           s/.*/./; q'`
18182     { if $as_mkdir_p; then
18183     mkdir -p $dirpart/$fdir
18184   else
18185     as_dir=$dirpart/$fdir
18186     as_dirs=
18187     while test ! -d "$as_dir"; do
18188       as_dirs="$as_dir $as_dirs"
18189       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18190 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18191          X"$as_dir" : 'X\(//\)[^/]' \| \
18192          X"$as_dir" : 'X\(//\)$' \| \
18193          X"$as_dir" : 'X\(/\)' \| \
18194          .     : '\(.\)' 2>/dev/null ||
18195 echo X"$as_dir" |
18196     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18197           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18198           /^X\(\/\/\)$/{ s//\1/; q; }
18199           /^X\(\/\).*/{ s//\1/; q; }
18200           s/.*/./; q'`
18201     done
18202     test ! -n "$as_dirs" || mkdir $as_dirs
18203   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
18204 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
18205    { (exit 1); exit 1; }; }; }
18206
18207     # echo "creating $dirpart/$file"
18208     echo '# dummy' > "$dirpart/$file"
18209   done
18210 done
18211  ;;
18212     default-1 ) for ac_file in $CONFIG_FILES; do
18213         # Support "outfile[:infile[:infile...]]"
18214         case "$ac_file" in
18215           *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18216         esac
18217         # PO directories have a Makefile.in generated from Makefile.in.in.
18218         case "$ac_file" in */Makefile.in)
18219           # Adjust a relative srcdir.
18220           ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
18221           ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
18222           ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
18223           # In autoconf-2.13 it is called $ac_given_srcdir.
18224           # In autoconf-2.50 it is called $srcdir.
18225           test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
18226           case "$ac_given_srcdir" in
18227             .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
18228             /*) top_srcdir="$ac_given_srcdir" ;;
18229             *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
18230           esac
18231           if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
18232             rm -f "$ac_dir/POTFILES"
18233             test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
18234             sed -e "/^#/d" -e "/^[      ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
18235             test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
18236             sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
18237           fi
18238           ;;
18239         esac
18240       done ;;
18241   esac
18242 done
18243 _ACEOF
18244
18245 cat >>$CONFIG_STATUS <<\_ACEOF
18246
18247 { (exit 0); exit 0; }
18248 _ACEOF
18249 chmod +x $CONFIG_STATUS
18250 ac_clean_files=$ac_clean_files_save
18251
18252
18253 # configure is writing to config.log, and then calls config.status.
18254 # config.status does its own redirection, appending to config.log.
18255 # Unfortunately, on DOS this fails, as config.log is still kept open
18256 # by configure, so config.status won't be able to write to it; its
18257 # output is simply discarded.  So we exec the FD to /dev/null,
18258 # effectively closing config.log, so it can be properly (re)opened and
18259 # appended to by config.status.  When coming back to configure, we
18260 # need to make the FD available again.
18261 if test "$no_create" != yes; then
18262   ac_cs_success=:
18263   ac_config_status_args=
18264   test "$silent" = yes &&
18265     ac_config_status_args="$ac_config_status_args --quiet"
18266   exec 5>/dev/null
18267   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18268   exec 5>>config.log
18269   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18270   # would make configure fail if this is the last instruction.
18271   $ac_cs_success || { (exit 1); exit 1; }
18272 fi
18273