Andreas Krennmair:
[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 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 USE_GNUTLS_TRUE USE_GNUTLS_FALSE 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-pgp              Disable PGP support
854   --disable-smime            Disable SMIME support
855   --enable-external-dotlock  Force use of an external dotlock program
856   --enable-pop               Enable POP3 support
857   --enable-imap              Enable IMAP support
858   --enable-nntp              Enable NNTP support
859   --enable-debug             Enable debugging support
860   --enable-flock             Use flock() to lock files
861   --disable-fcntl            Do NOT use fcntl() to lock files
862   --disable-warnings         Turn off compiler warnings (not recommended)
863   --enable-nfs-fix           Work around an NFS with broken attributes caching
864   --enable-buffy-size        Use file size attribute instead of access time
865   --enable-mailtool          Enable Sun mailtool attachments support
866   --enable-compressed        Enable compressed folders support
867   --enable-locales-fix       The result of isprint() is unreliable
868   --enable-exact-address     Enable regeneration of email addresses
869   --disable-iconv            Disable iconv support
870   --disable-nls              Do not use Native Language Support
871
872 Optional Packages:
873   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
874   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
875   --with-mixmaster=PATH    Include Mixmaster support
876   --with-slang=DIR         Use S-Lang instead of ncurses
877   --with-curses=DIR          Where ncurses is installed
878   --with-regex               Use the GNU regex library
879   --with-homespool=FILE    File in user's directory where new mail is spooled
880   --with-mailpath=DIR        Directory where spool mailboxes are located
881   --with-docdir=PATH         Specify where to put the documentation
882   --with-domain=DOMAIN       Specify your DNS domain name
883     --with-gss=PFX         Compile in GSSAPI authentication for IMAP
884   --with-ssl=PFX           Compile in SSL support for POP/IMAP
885   --with-gnutls=PFX        Compile in GNU TLS support for POP/IMAP
886   --with-nss=PFX           Compile in SSL support for POP/IMAP via NSS
887   --with-sasl=PFX          Use Cyrus SASL library for POP/IMAP authentication
888   --with-sasl2=PFX         Use Cyrus SASL library version 2 for POP/IMAP authentication
889   --with-idn=PFX                Use GNU libidn for domain names
890   --with-exec-shell=SHELL    Specify alternate shell (ONLY if /bin/sh is broken)
891   --with-libiconv-prefix=DIR Search for libiconv in DIR/include and DIR/lib
892   --with-included-gettext    Use the GNU gettext library included here
893   --without-wc-funcs         Do not use the system's wchar_t functions
894   --with-libesmtp=DIR      Compile in support for libesmtp for the MTA
895
896 Some influential environment variables:
897   CC          C compiler command
898   CFLAGS      C compiler flags
899   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
900               nonstandard directory <lib dir>
901   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
902               headers in a nonstandard directory <include dir>
903   CPP         C preprocessor
904
905 Use these variables to override the choices made by `configure' or to help
906 it to find libraries and programs with nonstandard names/locations.
907
908 _ACEOF
909 fi
910
911 if test "$ac_init_help" = "recursive"; then
912   # If there are subdirs, report their specific --help.
913   ac_popdir=`pwd`
914   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
915     test -d $ac_dir || continue
916     ac_builddir=.
917
918 if test "$ac_dir" != .; then
919   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
920   # A "../" for each directory in $ac_dir_suffix.
921   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
922 else
923   ac_dir_suffix= ac_top_builddir=
924 fi
925
926 case $srcdir in
927   .)  # No --srcdir option.  We are building in place.
928     ac_srcdir=.
929     if test -z "$ac_top_builddir"; then
930        ac_top_srcdir=.
931     else
932        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
933     fi ;;
934   [\\/]* | ?:[\\/]* )  # Absolute path.
935     ac_srcdir=$srcdir$ac_dir_suffix;
936     ac_top_srcdir=$srcdir ;;
937   *) # Relative path.
938     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
939     ac_top_srcdir=$ac_top_builddir$srcdir ;;
940 esac
941 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
942 # absolute.
943 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
944 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
945 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
946 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
947
948     cd $ac_dir
949     # Check for guested configure; otherwise get Cygnus style configure.
950     if test -f $ac_srcdir/configure.gnu; then
951       echo
952       $SHELL $ac_srcdir/configure.gnu  --help=recursive
953     elif test -f $ac_srcdir/configure; then
954       echo
955       $SHELL $ac_srcdir/configure  --help=recursive
956     elif test -f $ac_srcdir/configure.ac ||
957            test -f $ac_srcdir/configure.in; then
958       echo
959       $ac_configure --help
960     else
961       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
962     fi
963     cd $ac_popdir
964   done
965 fi
966
967 test -n "$ac_init_help" && exit 0
968 if $ac_init_version; then
969   cat <<\_ACEOF
970
971 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
972 Free Software Foundation, Inc.
973 This configure script is free software; the Free Software Foundation
974 gives unlimited permission to copy, distribute and modify it.
975 _ACEOF
976   exit 0
977 fi
978 exec 5>config.log
979 cat >&5 <<_ACEOF
980 This file contains any messages produced by compilers while
981 running configure, to aid debugging if configure makes a mistake.
982
983 It was created by $as_me, which was
984 generated by GNU Autoconf 2.57.  Invocation command line was
985
986   $ $0 $@
987
988 _ACEOF
989 {
990 cat <<_ASUNAME
991 ## --------- ##
992 ## Platform. ##
993 ## --------- ##
994
995 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
996 uname -m = `(uname -m) 2>/dev/null || echo unknown`
997 uname -r = `(uname -r) 2>/dev/null || echo unknown`
998 uname -s = `(uname -s) 2>/dev/null || echo unknown`
999 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1000
1001 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1002 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1003
1004 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1005 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1006 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1007 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1008 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1009 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1010 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1011
1012 _ASUNAME
1013
1014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1015 for as_dir in $PATH
1016 do
1017   IFS=$as_save_IFS
1018   test -z "$as_dir" && as_dir=.
1019   echo "PATH: $as_dir"
1020 done
1021
1022 } >&5
1023
1024 cat >&5 <<_ACEOF
1025
1026
1027 ## ----------- ##
1028 ## Core tests. ##
1029 ## ----------- ##
1030
1031 _ACEOF
1032
1033
1034 # Keep a trace of the command line.
1035 # Strip out --no-create and --no-recursion so they do not pile up.
1036 # Strip out --silent because we don't want to record it for future runs.
1037 # Also quote any args containing shell meta-characters.
1038 # Make two passes to allow for proper duplicate-argument suppression.
1039 ac_configure_args=
1040 ac_configure_args0=
1041 ac_configure_args1=
1042 ac_sep=
1043 ac_must_keep_next=false
1044 for ac_pass in 1 2
1045 do
1046   for ac_arg
1047   do
1048     case $ac_arg in
1049     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1050     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1051     | -silent | --silent | --silen | --sile | --sil)
1052       continue ;;
1053     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1054       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1055     esac
1056     case $ac_pass in
1057     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1058     2)
1059       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1060       if test $ac_must_keep_next = true; then
1061         ac_must_keep_next=false # Got value, back to normal.
1062       else
1063         case $ac_arg in
1064           *=* | --config-cache | -C | -disable-* | --disable-* \
1065           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1066           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1067           | -with-* | --with-* | -without-* | --without-* | --x)
1068             case "$ac_configure_args0 " in
1069               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1070             esac
1071             ;;
1072           -* ) ac_must_keep_next=true ;;
1073         esac
1074       fi
1075       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1076       # Get rid of the leading space.
1077       ac_sep=" "
1078       ;;
1079     esac
1080   done
1081 done
1082 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1083 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1084
1085 # When interrupted or exit'd, cleanup temporary files, and complete
1086 # config.log.  We remove comments because anyway the quotes in there
1087 # would cause problems or look ugly.
1088 # WARNING: Be sure not to use single quotes in there, as some shells,
1089 # such as our DU 5.0 friend, will then `close' the trap.
1090 trap 'exit_status=$?
1091   # Save into config.log some information that might help in debugging.
1092   {
1093     echo
1094
1095     cat <<\_ASBOX
1096 ## ---------------- ##
1097 ## Cache variables. ##
1098 ## ---------------- ##
1099 _ASBOX
1100     echo
1101     # The following way of writing the cache mishandles newlines in values,
1102 {
1103   (set) 2>&1 |
1104     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1105     *ac_space=\ *)
1106       sed -n \
1107         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1108           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1109       ;;
1110     *)
1111       sed -n \
1112         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1113       ;;
1114     esac;
1115 }
1116     echo
1117
1118     cat <<\_ASBOX
1119 ## ----------------- ##
1120 ## Output variables. ##
1121 ## ----------------- ##
1122 _ASBOX
1123     echo
1124     for ac_var in $ac_subst_vars
1125     do
1126       eval ac_val=$`echo $ac_var`
1127       echo "$ac_var='"'"'$ac_val'"'"'"
1128     done | sort
1129     echo
1130
1131     if test -n "$ac_subst_files"; then
1132       cat <<\_ASBOX
1133 ## ------------- ##
1134 ## Output files. ##
1135 ## ------------- ##
1136 _ASBOX
1137       echo
1138       for ac_var in $ac_subst_files
1139       do
1140         eval ac_val=$`echo $ac_var`
1141         echo "$ac_var='"'"'$ac_val'"'"'"
1142       done | sort
1143       echo
1144     fi
1145
1146     if test -s confdefs.h; then
1147       cat <<\_ASBOX
1148 ## ----------- ##
1149 ## confdefs.h. ##
1150 ## ----------- ##
1151 _ASBOX
1152       echo
1153       sed "/^$/d" confdefs.h | sort
1154       echo
1155     fi
1156     test "$ac_signal" != 0 &&
1157       echo "$as_me: caught signal $ac_signal"
1158     echo "$as_me: exit $exit_status"
1159   } >&5
1160   rm -f core core.* *.core &&
1161   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1162     exit $exit_status
1163      ' 0
1164 for ac_signal in 1 2 13 15; do
1165   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1166 done
1167 ac_signal=0
1168
1169 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1170 rm -rf conftest* confdefs.h
1171 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1172 echo >confdefs.h
1173
1174 # Predefined preprocessor variables.
1175
1176 cat >>confdefs.h <<_ACEOF
1177 #define PACKAGE_NAME "$PACKAGE_NAME"
1178 _ACEOF
1179
1180
1181 cat >>confdefs.h <<_ACEOF
1182 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1183 _ACEOF
1184
1185
1186 cat >>confdefs.h <<_ACEOF
1187 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1188 _ACEOF
1189
1190
1191 cat >>confdefs.h <<_ACEOF
1192 #define PACKAGE_STRING "$PACKAGE_STRING"
1193 _ACEOF
1194
1195
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1198 _ACEOF
1199
1200
1201 # Let the site file select an alternate cache file if it wants to.
1202 # Prefer explicitly selected file to automatically selected ones.
1203 if test -z "$CONFIG_SITE"; then
1204   if test "x$prefix" != xNONE; then
1205     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1206   else
1207     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1208   fi
1209 fi
1210 for ac_site_file in $CONFIG_SITE; do
1211   if test -r "$ac_site_file"; then
1212     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1213 echo "$as_me: loading site script $ac_site_file" >&6;}
1214     sed 's/^/| /' "$ac_site_file" >&5
1215     . "$ac_site_file"
1216   fi
1217 done
1218
1219 if test -r "$cache_file"; then
1220   # Some versions of bash will fail to source /dev/null (special
1221   # files actually), so we avoid doing that.
1222   if test -f "$cache_file"; then
1223     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1224 echo "$as_me: loading cache $cache_file" >&6;}
1225     case $cache_file in
1226       [\\/]* | ?:[\\/]* ) . $cache_file;;
1227       *)                      . ./$cache_file;;
1228     esac
1229   fi
1230 else
1231   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1232 echo "$as_me: creating cache $cache_file" >&6;}
1233   >$cache_file
1234 fi
1235
1236 # Check that the precious variables saved in the cache have kept the same
1237 # value.
1238 ac_cache_corrupted=false
1239 for ac_var in `(set) 2>&1 |
1240                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1241   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1242   eval ac_new_set=\$ac_env_${ac_var}_set
1243   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1244   eval ac_new_val="\$ac_env_${ac_var}_value"
1245   case $ac_old_set,$ac_new_set in
1246     set,)
1247       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1248 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1249       ac_cache_corrupted=: ;;
1250     ,set)
1251       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1252 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1253       ac_cache_corrupted=: ;;
1254     ,);;
1255     *)
1256       if test "x$ac_old_val" != "x$ac_new_val"; then
1257         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1258 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1259         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1260 echo "$as_me:   former value:  $ac_old_val" >&2;}
1261         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1262 echo "$as_me:   current value: $ac_new_val" >&2;}
1263         ac_cache_corrupted=:
1264       fi;;
1265   esac
1266   # Pass precious variables to config.status.
1267   if test "$ac_new_set" = set; then
1268     case $ac_new_val in
1269     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1270       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1271     *) ac_arg=$ac_var=$ac_new_val ;;
1272     esac
1273     case " $ac_configure_args " in
1274       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1275       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1276     esac
1277   fi
1278 done
1279 if $ac_cache_corrupted; then
1280   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1281 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1282   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1283 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1284    { (exit 1); exit 1; }; }
1285 fi
1286
1287 ac_ext=c
1288 ac_cpp='$CPP $CPPFLAGS'
1289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311           ac_config_headers="$ac_config_headers config.h"
1312
1313
1314 mutt_cv_version=`cat $srcdir/VERSION`
1315
1316
1317 am__api_version="1.7"
1318 ac_aux_dir=
1319 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1320   if test -f $ac_dir/install-sh; then
1321     ac_aux_dir=$ac_dir
1322     ac_install_sh="$ac_aux_dir/install-sh -c"
1323     break
1324   elif test -f $ac_dir/install.sh; then
1325     ac_aux_dir=$ac_dir
1326     ac_install_sh="$ac_aux_dir/install.sh -c"
1327     break
1328   elif test -f $ac_dir/shtool; then
1329     ac_aux_dir=$ac_dir
1330     ac_install_sh="$ac_aux_dir/shtool install -c"
1331     break
1332   fi
1333 done
1334 if test -z "$ac_aux_dir"; then
1335   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1336 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1337    { (exit 1); exit 1; }; }
1338 fi
1339 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1340 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1341 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1342
1343 # Find a good install program.  We prefer a C program (faster),
1344 # so one script is as good as another.  But avoid the broken or
1345 # incompatible versions:
1346 # SysV /etc/install, /usr/sbin/install
1347 # SunOS /usr/etc/install
1348 # IRIX /sbin/install
1349 # AIX /bin/install
1350 # AmigaOS /C/install, which installs bootblocks on floppy discs
1351 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1352 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1353 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1354 # ./install, which can be erroneously created by make from ./install.sh.
1355 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1356 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1357 if test -z "$INSTALL"; then
1358 if test "${ac_cv_path_install+set}" = set; then
1359   echo $ECHO_N "(cached) $ECHO_C" >&6
1360 else
1361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1362 for as_dir in $PATH
1363 do
1364   IFS=$as_save_IFS
1365   test -z "$as_dir" && as_dir=.
1366   # Account for people who put trailing slashes in PATH elements.
1367 case $as_dir/ in
1368   ./ | .// | /cC/* | \
1369   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1370   /usr/ucb/* ) ;;
1371   *)
1372     # OSF1 and SCO ODT 3.0 have their own names for install.
1373     # Don't use installbsd from OSF since it installs stuff as root
1374     # by default.
1375     for ac_prog in ginstall scoinst install; do
1376       for ac_exec_ext in '' $ac_executable_extensions; do
1377         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1378           if test $ac_prog = install &&
1379             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1380             # AIX install.  It has an incompatible calling convention.
1381             :
1382           elif test $ac_prog = install &&
1383             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1384             # program-specific install script used by HP pwplus--don't use.
1385             :
1386           else
1387             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1388             break 3
1389           fi
1390         fi
1391       done
1392     done
1393     ;;
1394 esac
1395 done
1396
1397
1398 fi
1399   if test "${ac_cv_path_install+set}" = set; then
1400     INSTALL=$ac_cv_path_install
1401   else
1402     # As a last resort, use the slow shell script.  We don't cache a
1403     # path for INSTALL within a source directory, because that will
1404     # break other packages using the cache if that directory is
1405     # removed, or if the path is relative.
1406     INSTALL=$ac_install_sh
1407   fi
1408 fi
1409 echo "$as_me:$LINENO: result: $INSTALL" >&5
1410 echo "${ECHO_T}$INSTALL" >&6
1411
1412 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1413 # It thinks the first close brace ends the variable substitution.
1414 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1415
1416 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1417
1418 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1419
1420 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1421 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1422 # Just in case
1423 sleep 1
1424 echo timestamp > conftest.file
1425 # Do `set' in a subshell so we don't clobber the current shell's
1426 # arguments.  Must try -L first in case configure is actually a
1427 # symlink; some systems play weird games with the mod time of symlinks
1428 # (eg FreeBSD returns the mod time of the symlink's containing
1429 # directory).
1430 if (
1431    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1432    if test "$*" = "X"; then
1433       # -L didn't work.
1434       set X `ls -t $srcdir/configure conftest.file`
1435    fi
1436    rm -f conftest.file
1437    if test "$*" != "X $srcdir/configure conftest.file" \
1438       && test "$*" != "X conftest.file $srcdir/configure"; then
1439
1440       # If neither matched, then we have a broken ls.  This can happen
1441       # if, for instance, CONFIG_SHELL is bash and it inherits a
1442       # broken ls alias from the environment.  This has actually
1443       # happened.  Such a system could not be considered "sane".
1444       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1445 alias in your environment" >&5
1446 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1447 alias in your environment" >&2;}
1448    { (exit 1); exit 1; }; }
1449    fi
1450
1451    test "$2" = conftest.file
1452    )
1453 then
1454    # Ok.
1455    :
1456 else
1457    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1458 Check your system clock" >&5
1459 echo "$as_me: error: newly created file is older than distributed files!
1460 Check your system clock" >&2;}
1461    { (exit 1); exit 1; }; }
1462 fi
1463 echo "$as_me:$LINENO: result: yes" >&5
1464 echo "${ECHO_T}yes" >&6
1465 test "$program_prefix" != NONE &&
1466   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1467 # Use a double $ so make ignores it.
1468 test "$program_suffix" != NONE &&
1469   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1470 # Double any \ or $.  echo might interpret backslashes.
1471 # By default was `s,x,x', remove it if useless.
1472 cat <<\_ACEOF >conftest.sed
1473 s/[\\$]/&&/g;s/;s,x,x,$//
1474 _ACEOF
1475 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1476 rm conftest.sed
1477
1478
1479 # expand $ac_aux_dir to an absolute path
1480 am_aux_dir=`cd $ac_aux_dir && pwd`
1481
1482 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1483 # Use eval to expand $SHELL
1484 if eval "$MISSING --run true"; then
1485   am_missing_run="$MISSING --run "
1486 else
1487   am_missing_run=
1488   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1489 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1490 fi
1491
1492 for ac_prog in gawk mawk nawk awk
1493 do
1494   # Extract the first word of "$ac_prog", so it can be a program name with args.
1495 set dummy $ac_prog; ac_word=$2
1496 echo "$as_me:$LINENO: checking for $ac_word" >&5
1497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1498 if test "${ac_cv_prog_AWK+set}" = set; then
1499   echo $ECHO_N "(cached) $ECHO_C" >&6
1500 else
1501   if test -n "$AWK"; then
1502   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1503 else
1504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1505 for as_dir in $PATH
1506 do
1507   IFS=$as_save_IFS
1508   test -z "$as_dir" && as_dir=.
1509   for ac_exec_ext in '' $ac_executable_extensions; do
1510   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1511     ac_cv_prog_AWK="$ac_prog"
1512     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1513     break 2
1514   fi
1515 done
1516 done
1517
1518 fi
1519 fi
1520 AWK=$ac_cv_prog_AWK
1521 if test -n "$AWK"; then
1522   echo "$as_me:$LINENO: result: $AWK" >&5
1523 echo "${ECHO_T}$AWK" >&6
1524 else
1525   echo "$as_me:$LINENO: result: no" >&5
1526 echo "${ECHO_T}no" >&6
1527 fi
1528
1529   test -n "$AWK" && break
1530 done
1531
1532 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1533 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1534 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1535 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1536   echo $ECHO_N "(cached) $ECHO_C" >&6
1537 else
1538   cat >conftest.make <<\_ACEOF
1539 all:
1540         @echo 'ac_maketemp="$(MAKE)"'
1541 _ACEOF
1542 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1543 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1544 if test -n "$ac_maketemp"; then
1545   eval ac_cv_prog_make_${ac_make}_set=yes
1546 else
1547   eval ac_cv_prog_make_${ac_make}_set=no
1548 fi
1549 rm -f conftest.make
1550 fi
1551 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1552   echo "$as_me:$LINENO: result: yes" >&5
1553 echo "${ECHO_T}yes" >&6
1554   SET_MAKE=
1555 else
1556   echo "$as_me:$LINENO: result: no" >&5
1557 echo "${ECHO_T}no" >&6
1558   SET_MAKE="MAKE=${MAKE-make}"
1559 fi
1560
1561 rm -rf .tst 2>/dev/null
1562 mkdir .tst 2>/dev/null
1563 if test -d .tst; then
1564   am__leading_dot=.
1565 else
1566   am__leading_dot=_
1567 fi
1568 rmdir .tst 2>/dev/null
1569
1570  # test to see if srcdir already configured
1571 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1572    test -f $srcdir/config.status; then
1573   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1574 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1575    { (exit 1); exit 1; }; }
1576 fi
1577
1578 # test whether we have cygpath
1579 if test -z "$CYGPATH_W"; then
1580   if (cygpath --version) >/dev/null 2>/dev/null; then
1581     CYGPATH_W='cygpath -w'
1582   else
1583     CYGPATH_W=echo
1584   fi
1585 fi
1586
1587
1588 # Define the identity of the package.
1589  PACKAGE=muttng
1590  VERSION=$mutt_cv_version
1591
1592
1593 cat >>confdefs.h <<_ACEOF
1594 #define PACKAGE "$PACKAGE"
1595 _ACEOF
1596
1597
1598 cat >>confdefs.h <<_ACEOF
1599 #define VERSION "$VERSION"
1600 _ACEOF
1601
1602 # Some tools Automake needs.
1603
1604 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1605
1606
1607 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1608
1609
1610 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1611
1612
1613 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1614
1615
1616 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1617
1618
1619 AMTAR=${AMTAR-"${am_missing_run}tar"}
1620
1621 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1622
1623 # Installed binaries are usually stripped using `strip' when the user
1624 # run `make install-strip'.  However `strip' might not be the right
1625 # tool to use in cross-compilation environments, therefore Automake
1626 # will honor the `STRIP' environment variable to overrule this program.
1627 if test "$cross_compiling" != no; then
1628   if test -n "$ac_tool_prefix"; then
1629   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1630 set dummy ${ac_tool_prefix}strip; ac_word=$2
1631 echo "$as_me:$LINENO: checking for $ac_word" >&5
1632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1633 if test "${ac_cv_prog_STRIP+set}" = set; then
1634   echo $ECHO_N "(cached) $ECHO_C" >&6
1635 else
1636   if test -n "$STRIP"; then
1637   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1638 else
1639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1640 for as_dir in $PATH
1641 do
1642   IFS=$as_save_IFS
1643   test -z "$as_dir" && as_dir=.
1644   for ac_exec_ext in '' $ac_executable_extensions; do
1645   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1646     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1647     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1648     break 2
1649   fi
1650 done
1651 done
1652
1653 fi
1654 fi
1655 STRIP=$ac_cv_prog_STRIP
1656 if test -n "$STRIP"; then
1657   echo "$as_me:$LINENO: result: $STRIP" >&5
1658 echo "${ECHO_T}$STRIP" >&6
1659 else
1660   echo "$as_me:$LINENO: result: no" >&5
1661 echo "${ECHO_T}no" >&6
1662 fi
1663
1664 fi
1665 if test -z "$ac_cv_prog_STRIP"; then
1666   ac_ct_STRIP=$STRIP
1667   # Extract the first word of "strip", so it can be a program name with args.
1668 set dummy strip; ac_word=$2
1669 echo "$as_me:$LINENO: checking for $ac_word" >&5
1670 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1671 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1672   echo $ECHO_N "(cached) $ECHO_C" >&6
1673 else
1674   if test -n "$ac_ct_STRIP"; then
1675   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1676 else
1677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1678 for as_dir in $PATH
1679 do
1680   IFS=$as_save_IFS
1681   test -z "$as_dir" && as_dir=.
1682   for ac_exec_ext in '' $ac_executable_extensions; do
1683   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1684     ac_cv_prog_ac_ct_STRIP="strip"
1685     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1686     break 2
1687   fi
1688 done
1689 done
1690
1691   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1692 fi
1693 fi
1694 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1695 if test -n "$ac_ct_STRIP"; then
1696   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1697 echo "${ECHO_T}$ac_ct_STRIP" >&6
1698 else
1699   echo "$as_me:$LINENO: result: no" >&5
1700 echo "${ECHO_T}no" >&6
1701 fi
1702
1703   STRIP=$ac_ct_STRIP
1704 else
1705   STRIP="$ac_cv_prog_STRIP"
1706 fi
1707
1708 fi
1709 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1710
1711 # We need awk for the "check" target.  The system "awk" is bad on
1712 # some platforms.
1713
1714
1715
1716
1717
1718
1719 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"
1720
1721 # Make sure we can run config.sub.
1722 $ac_config_sub sun4 >/dev/null 2>&1 ||
1723   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1724 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1725    { (exit 1); exit 1; }; }
1726
1727 echo "$as_me:$LINENO: checking build system type" >&5
1728 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1729 if test "${ac_cv_build+set}" = set; then
1730   echo $ECHO_N "(cached) $ECHO_C" >&6
1731 else
1732   ac_cv_build_alias=$build_alias
1733 test -z "$ac_cv_build_alias" &&
1734   ac_cv_build_alias=`$ac_config_guess`
1735 test -z "$ac_cv_build_alias" &&
1736   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1737 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1738    { (exit 1); exit 1; }; }
1739 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1740   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1741 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1742    { (exit 1); exit 1; }; }
1743
1744 fi
1745 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1746 echo "${ECHO_T}$ac_cv_build" >&6
1747 build=$ac_cv_build
1748 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1749 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1750 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1751
1752
1753 echo "$as_me:$LINENO: checking host system type" >&5
1754 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1755 if test "${ac_cv_host+set}" = set; then
1756   echo $ECHO_N "(cached) $ECHO_C" >&6
1757 else
1758   ac_cv_host_alias=$host_alias
1759 test -z "$ac_cv_host_alias" &&
1760   ac_cv_host_alias=$ac_cv_build_alias
1761 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1762   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1763 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1764    { (exit 1); exit 1; }; }
1765
1766 fi
1767 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1768 echo "${ECHO_T}$ac_cv_host" >&6
1769 host=$ac_cv_host
1770 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1771 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1772 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1773
1774
1775
1776 echo "$as_me:$LINENO: checking for prefix" >&5
1777 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1778 if test x$prefix = xNONE; then
1779         mutt_cv_prefix=$ac_default_prefix
1780 else
1781         mutt_cv_prefix=$prefix
1782 fi
1783 echo "$as_me:$LINENO: result: $mutt_cv_prefix" >&5
1784 echo "${ECHO_T}$mutt_cv_prefix" >&6
1785
1786 ac_ext=c
1787 ac_cpp='$CPP $CPPFLAGS'
1788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1791 if test -n "$ac_tool_prefix"; then
1792   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1793 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1794 echo "$as_me:$LINENO: checking for $ac_word" >&5
1795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1796 if test "${ac_cv_prog_CC+set}" = set; then
1797   echo $ECHO_N "(cached) $ECHO_C" >&6
1798 else
1799   if test -n "$CC"; then
1800   ac_cv_prog_CC="$CC" # Let the user override the test.
1801 else
1802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1803 for as_dir in $PATH
1804 do
1805   IFS=$as_save_IFS
1806   test -z "$as_dir" && as_dir=.
1807   for ac_exec_ext in '' $ac_executable_extensions; do
1808   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1809     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1811     break 2
1812   fi
1813 done
1814 done
1815
1816 fi
1817 fi
1818 CC=$ac_cv_prog_CC
1819 if test -n "$CC"; then
1820   echo "$as_me:$LINENO: result: $CC" >&5
1821 echo "${ECHO_T}$CC" >&6
1822 else
1823   echo "$as_me:$LINENO: result: no" >&5
1824 echo "${ECHO_T}no" >&6
1825 fi
1826
1827 fi
1828 if test -z "$ac_cv_prog_CC"; then
1829   ac_ct_CC=$CC
1830   # Extract the first word of "gcc", so it can be a program name with args.
1831 set dummy gcc; ac_word=$2
1832 echo "$as_me:$LINENO: checking for $ac_word" >&5
1833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1834 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1835   echo $ECHO_N "(cached) $ECHO_C" >&6
1836 else
1837   if test -n "$ac_ct_CC"; then
1838   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1839 else
1840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1841 for as_dir in $PATH
1842 do
1843   IFS=$as_save_IFS
1844   test -z "$as_dir" && as_dir=.
1845   for ac_exec_ext in '' $ac_executable_extensions; do
1846   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1847     ac_cv_prog_ac_ct_CC="gcc"
1848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1849     break 2
1850   fi
1851 done
1852 done
1853
1854 fi
1855 fi
1856 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1857 if test -n "$ac_ct_CC"; then
1858   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1859 echo "${ECHO_T}$ac_ct_CC" >&6
1860 else
1861   echo "$as_me:$LINENO: result: no" >&5
1862 echo "${ECHO_T}no" >&6
1863 fi
1864
1865   CC=$ac_ct_CC
1866 else
1867   CC="$ac_cv_prog_CC"
1868 fi
1869
1870 if test -z "$CC"; then
1871   if test -n "$ac_tool_prefix"; then
1872   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1873 set dummy ${ac_tool_prefix}cc; ac_word=$2
1874 echo "$as_me:$LINENO: checking for $ac_word" >&5
1875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1876 if test "${ac_cv_prog_CC+set}" = set; then
1877   echo $ECHO_N "(cached) $ECHO_C" >&6
1878 else
1879   if test -n "$CC"; then
1880   ac_cv_prog_CC="$CC" # Let the user override the test.
1881 else
1882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1883 for as_dir in $PATH
1884 do
1885   IFS=$as_save_IFS
1886   test -z "$as_dir" && as_dir=.
1887   for ac_exec_ext in '' $ac_executable_extensions; do
1888   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1889     ac_cv_prog_CC="${ac_tool_prefix}cc"
1890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1891     break 2
1892   fi
1893 done
1894 done
1895
1896 fi
1897 fi
1898 CC=$ac_cv_prog_CC
1899 if test -n "$CC"; then
1900   echo "$as_me:$LINENO: result: $CC" >&5
1901 echo "${ECHO_T}$CC" >&6
1902 else
1903   echo "$as_me:$LINENO: result: no" >&5
1904 echo "${ECHO_T}no" >&6
1905 fi
1906
1907 fi
1908 if test -z "$ac_cv_prog_CC"; then
1909   ac_ct_CC=$CC
1910   # Extract the first word of "cc", so it can be a program name with args.
1911 set dummy cc; ac_word=$2
1912 echo "$as_me:$LINENO: checking for $ac_word" >&5
1913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1914 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1915   echo $ECHO_N "(cached) $ECHO_C" >&6
1916 else
1917   if test -n "$ac_ct_CC"; then
1918   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1919 else
1920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1921 for as_dir in $PATH
1922 do
1923   IFS=$as_save_IFS
1924   test -z "$as_dir" && as_dir=.
1925   for ac_exec_ext in '' $ac_executable_extensions; do
1926   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1927     ac_cv_prog_ac_ct_CC="cc"
1928     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1929     break 2
1930   fi
1931 done
1932 done
1933
1934 fi
1935 fi
1936 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1937 if test -n "$ac_ct_CC"; then
1938   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1939 echo "${ECHO_T}$ac_ct_CC" >&6
1940 else
1941   echo "$as_me:$LINENO: result: no" >&5
1942 echo "${ECHO_T}no" >&6
1943 fi
1944
1945   CC=$ac_ct_CC
1946 else
1947   CC="$ac_cv_prog_CC"
1948 fi
1949
1950 fi
1951 if test -z "$CC"; then
1952   # Extract the first word of "cc", so it can be a program name with args.
1953 set dummy cc; ac_word=$2
1954 echo "$as_me:$LINENO: checking for $ac_word" >&5
1955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1956 if test "${ac_cv_prog_CC+set}" = set; then
1957   echo $ECHO_N "(cached) $ECHO_C" >&6
1958 else
1959   if test -n "$CC"; then
1960   ac_cv_prog_CC="$CC" # Let the user override the test.
1961 else
1962   ac_prog_rejected=no
1963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1964 for as_dir in $PATH
1965 do
1966   IFS=$as_save_IFS
1967   test -z "$as_dir" && as_dir=.
1968   for ac_exec_ext in '' $ac_executable_extensions; do
1969   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1970     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1971        ac_prog_rejected=yes
1972        continue
1973      fi
1974     ac_cv_prog_CC="cc"
1975     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1976     break 2
1977   fi
1978 done
1979 done
1980
1981 if test $ac_prog_rejected = yes; then
1982   # We found a bogon in the path, so make sure we never use it.
1983   set dummy $ac_cv_prog_CC
1984   shift
1985   if test $# != 0; then
1986     # We chose a different compiler from the bogus one.
1987     # However, it has the same basename, so the bogon will be chosen
1988     # first if we set CC to just the basename; use the full file name.
1989     shift
1990     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1991   fi
1992 fi
1993 fi
1994 fi
1995 CC=$ac_cv_prog_CC
1996 if test -n "$CC"; then
1997   echo "$as_me:$LINENO: result: $CC" >&5
1998 echo "${ECHO_T}$CC" >&6
1999 else
2000   echo "$as_me:$LINENO: result: no" >&5
2001 echo "${ECHO_T}no" >&6
2002 fi
2003
2004 fi
2005 if test -z "$CC"; then
2006   if test -n "$ac_tool_prefix"; then
2007   for ac_prog in cl
2008   do
2009     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2010 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2011 echo "$as_me:$LINENO: checking for $ac_word" >&5
2012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2013 if test "${ac_cv_prog_CC+set}" = set; then
2014   echo $ECHO_N "(cached) $ECHO_C" >&6
2015 else
2016   if test -n "$CC"; then
2017   ac_cv_prog_CC="$CC" # Let the user override the test.
2018 else
2019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2020 for as_dir in $PATH
2021 do
2022   IFS=$as_save_IFS
2023   test -z "$as_dir" && as_dir=.
2024   for ac_exec_ext in '' $ac_executable_extensions; do
2025   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2026     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2027     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2028     break 2
2029   fi
2030 done
2031 done
2032
2033 fi
2034 fi
2035 CC=$ac_cv_prog_CC
2036 if test -n "$CC"; then
2037   echo "$as_me:$LINENO: result: $CC" >&5
2038 echo "${ECHO_T}$CC" >&6
2039 else
2040   echo "$as_me:$LINENO: result: no" >&5
2041 echo "${ECHO_T}no" >&6
2042 fi
2043
2044     test -n "$CC" && break
2045   done
2046 fi
2047 if test -z "$CC"; then
2048   ac_ct_CC=$CC
2049   for ac_prog in cl
2050 do
2051   # Extract the first word of "$ac_prog", so it can be a program name with args.
2052 set dummy $ac_prog; ac_word=$2
2053 echo "$as_me:$LINENO: checking for $ac_word" >&5
2054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2055 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2056   echo $ECHO_N "(cached) $ECHO_C" >&6
2057 else
2058   if test -n "$ac_ct_CC"; then
2059   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2060 else
2061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2062 for as_dir in $PATH
2063 do
2064   IFS=$as_save_IFS
2065   test -z "$as_dir" && as_dir=.
2066   for ac_exec_ext in '' $ac_executable_extensions; do
2067   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2068     ac_cv_prog_ac_ct_CC="$ac_prog"
2069     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070     break 2
2071   fi
2072 done
2073 done
2074
2075 fi
2076 fi
2077 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2078 if test -n "$ac_ct_CC"; then
2079   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2080 echo "${ECHO_T}$ac_ct_CC" >&6
2081 else
2082   echo "$as_me:$LINENO: result: no" >&5
2083 echo "${ECHO_T}no" >&6
2084 fi
2085
2086   test -n "$ac_ct_CC" && break
2087 done
2088
2089   CC=$ac_ct_CC
2090 fi
2091
2092 fi
2093
2094
2095 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2096 See \`config.log' for more details." >&5
2097 echo "$as_me: error: no acceptable C compiler found in \$PATH
2098 See \`config.log' for more details." >&2;}
2099    { (exit 1); exit 1; }; }
2100
2101 # Provide some information about the compiler.
2102 echo "$as_me:$LINENO:" \
2103      "checking for C compiler version" >&5
2104 ac_compiler=`set X $ac_compile; echo $2`
2105 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2106   (eval $ac_compiler --version </dev/null >&5) 2>&5
2107   ac_status=$?
2108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109   (exit $ac_status); }
2110 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2111   (eval $ac_compiler -v </dev/null >&5) 2>&5
2112   ac_status=$?
2113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114   (exit $ac_status); }
2115 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2116   (eval $ac_compiler -V </dev/null >&5) 2>&5
2117   ac_status=$?
2118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119   (exit $ac_status); }
2120
2121 cat >conftest.$ac_ext <<_ACEOF
2122 #line $LINENO "configure"
2123 /* confdefs.h.  */
2124 _ACEOF
2125 cat confdefs.h >>conftest.$ac_ext
2126 cat >>conftest.$ac_ext <<_ACEOF
2127 /* end confdefs.h.  */
2128
2129 int
2130 main ()
2131 {
2132
2133   ;
2134   return 0;
2135 }
2136 _ACEOF
2137 ac_clean_files_save=$ac_clean_files
2138 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2139 # Try to create an executable without -o first, disregard a.out.
2140 # It will help us diagnose broken compilers, and finding out an intuition
2141 # of exeext.
2142 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2143 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2144 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2145 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2146   (eval $ac_link_default) 2>&5
2147   ac_status=$?
2148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149   (exit $ac_status); }; then
2150   # Find the output, starting from the most likely.  This scheme is
2151 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2152 # resort.
2153
2154 # Be careful to initialize this variable, since it used to be cached.
2155 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2156 ac_cv_exeext=
2157 # b.out is created by i960 compilers.
2158 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2159 do
2160   test -f "$ac_file" || continue
2161   case $ac_file in
2162     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2163         ;;
2164     conftest.$ac_ext )
2165         # This is the source file.
2166         ;;
2167     [ab].out )
2168         # We found the default executable, but exeext='' is most
2169         # certainly right.
2170         break;;
2171     *.* )
2172         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2173         # FIXME: I believe we export ac_cv_exeext for Libtool,
2174         # but it would be cool to find out if it's true.  Does anybody
2175         # maintain Libtool? --akim.
2176         export ac_cv_exeext
2177         break;;
2178     * )
2179         break;;
2180   esac
2181 done
2182 else
2183   echo "$as_me: failed program was:" >&5
2184 sed 's/^/| /' conftest.$ac_ext >&5
2185
2186 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2187 See \`config.log' for more details." >&5
2188 echo "$as_me: error: C compiler cannot create executables
2189 See \`config.log' for more details." >&2;}
2190    { (exit 77); exit 77; }; }
2191 fi
2192
2193 ac_exeext=$ac_cv_exeext
2194 echo "$as_me:$LINENO: result: $ac_file" >&5
2195 echo "${ECHO_T}$ac_file" >&6
2196
2197 # Check the compiler produces executables we can run.  If not, either
2198 # the compiler is broken, or we cross compile.
2199 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2200 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2201 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2202 # If not cross compiling, check that we can run a simple program.
2203 if test "$cross_compiling" != yes; then
2204   if { ac_try='./$ac_file'
2205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2206   (eval $ac_try) 2>&5
2207   ac_status=$?
2208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209   (exit $ac_status); }; }; then
2210     cross_compiling=no
2211   else
2212     if test "$cross_compiling" = maybe; then
2213         cross_compiling=yes
2214     else
2215         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2216 If you meant to cross compile, use \`--host'.
2217 See \`config.log' for more details." >&5
2218 echo "$as_me: error: cannot run C compiled programs.
2219 If you meant to cross compile, use \`--host'.
2220 See \`config.log' for more details." >&2;}
2221    { (exit 1); exit 1; }; }
2222     fi
2223   fi
2224 fi
2225 echo "$as_me:$LINENO: result: yes" >&5
2226 echo "${ECHO_T}yes" >&6
2227
2228 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2229 ac_clean_files=$ac_clean_files_save
2230 # Check the compiler produces executables we can run.  If not, either
2231 # the compiler is broken, or we cross compile.
2232 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2233 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2234 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2235 echo "${ECHO_T}$cross_compiling" >&6
2236
2237 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2238 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2240   (eval $ac_link) 2>&5
2241   ac_status=$?
2242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243   (exit $ac_status); }; then
2244   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2245 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2246 # work properly (i.e., refer to `conftest.exe'), while it won't with
2247 # `rm'.
2248 for ac_file in conftest.exe conftest conftest.*; do
2249   test -f "$ac_file" || continue
2250   case $ac_file in
2251     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2252     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2253           export ac_cv_exeext
2254           break;;
2255     * ) break;;
2256   esac
2257 done
2258 else
2259   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2260 See \`config.log' for more details." >&5
2261 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2262 See \`config.log' for more details." >&2;}
2263    { (exit 1); exit 1; }; }
2264 fi
2265
2266 rm -f conftest$ac_cv_exeext
2267 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2268 echo "${ECHO_T}$ac_cv_exeext" >&6
2269
2270 rm -f conftest.$ac_ext
2271 EXEEXT=$ac_cv_exeext
2272 ac_exeext=$EXEEXT
2273 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2274 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2275 if test "${ac_cv_objext+set}" = set; then
2276   echo $ECHO_N "(cached) $ECHO_C" >&6
2277 else
2278   cat >conftest.$ac_ext <<_ACEOF
2279 #line $LINENO "configure"
2280 /* confdefs.h.  */
2281 _ACEOF
2282 cat confdefs.h >>conftest.$ac_ext
2283 cat >>conftest.$ac_ext <<_ACEOF
2284 /* end confdefs.h.  */
2285
2286 int
2287 main ()
2288 {
2289
2290   ;
2291   return 0;
2292 }
2293 _ACEOF
2294 rm -f conftest.o conftest.obj
2295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2296   (eval $ac_compile) 2>&5
2297   ac_status=$?
2298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299   (exit $ac_status); }; then
2300   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2301   case $ac_file in
2302     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2303     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2304        break;;
2305   esac
2306 done
2307 else
2308   echo "$as_me: failed program was:" >&5
2309 sed 's/^/| /' conftest.$ac_ext >&5
2310
2311 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2312 See \`config.log' for more details." >&5
2313 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2314 See \`config.log' for more details." >&2;}
2315    { (exit 1); exit 1; }; }
2316 fi
2317
2318 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2319 fi
2320 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2321 echo "${ECHO_T}$ac_cv_objext" >&6
2322 OBJEXT=$ac_cv_objext
2323 ac_objext=$OBJEXT
2324 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2325 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2326 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2327   echo $ECHO_N "(cached) $ECHO_C" >&6
2328 else
2329   cat >conftest.$ac_ext <<_ACEOF
2330 #line $LINENO "configure"
2331 /* confdefs.h.  */
2332 _ACEOF
2333 cat confdefs.h >>conftest.$ac_ext
2334 cat >>conftest.$ac_ext <<_ACEOF
2335 /* end confdefs.h.  */
2336
2337 int
2338 main ()
2339 {
2340 #ifndef __GNUC__
2341        choke me
2342 #endif
2343
2344   ;
2345   return 0;
2346 }
2347 _ACEOF
2348 rm -f conftest.$ac_objext
2349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2350   (eval $ac_compile) 2>&5
2351   ac_status=$?
2352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353   (exit $ac_status); } &&
2354          { ac_try='test -s conftest.$ac_objext'
2355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2356   (eval $ac_try) 2>&5
2357   ac_status=$?
2358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359   (exit $ac_status); }; }; then
2360   ac_compiler_gnu=yes
2361 else
2362   echo "$as_me: failed program was:" >&5
2363 sed 's/^/| /' conftest.$ac_ext >&5
2364
2365 ac_compiler_gnu=no
2366 fi
2367 rm -f conftest.$ac_objext conftest.$ac_ext
2368 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2369
2370 fi
2371 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2372 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2373 GCC=`test $ac_compiler_gnu = yes && echo yes`
2374 ac_test_CFLAGS=${CFLAGS+set}
2375 ac_save_CFLAGS=$CFLAGS
2376 CFLAGS="-g"
2377 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2378 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2379 if test "${ac_cv_prog_cc_g+set}" = set; then
2380   echo $ECHO_N "(cached) $ECHO_C" >&6
2381 else
2382   cat >conftest.$ac_ext <<_ACEOF
2383 #line $LINENO "configure"
2384 /* confdefs.h.  */
2385 _ACEOF
2386 cat confdefs.h >>conftest.$ac_ext
2387 cat >>conftest.$ac_ext <<_ACEOF
2388 /* end confdefs.h.  */
2389
2390 int
2391 main ()
2392 {
2393
2394   ;
2395   return 0;
2396 }
2397 _ACEOF
2398 rm -f conftest.$ac_objext
2399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2400   (eval $ac_compile) 2>&5
2401   ac_status=$?
2402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403   (exit $ac_status); } &&
2404          { ac_try='test -s conftest.$ac_objext'
2405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406   (eval $ac_try) 2>&5
2407   ac_status=$?
2408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409   (exit $ac_status); }; }; then
2410   ac_cv_prog_cc_g=yes
2411 else
2412   echo "$as_me: failed program was:" >&5
2413 sed 's/^/| /' conftest.$ac_ext >&5
2414
2415 ac_cv_prog_cc_g=no
2416 fi
2417 rm -f conftest.$ac_objext conftest.$ac_ext
2418 fi
2419 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2420 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2421 if test "$ac_test_CFLAGS" = set; then
2422   CFLAGS=$ac_save_CFLAGS
2423 elif test $ac_cv_prog_cc_g = yes; then
2424   if test "$GCC" = yes; then
2425     CFLAGS="-g -O2"
2426   else
2427     CFLAGS="-g"
2428   fi
2429 else
2430   if test "$GCC" = yes; then
2431     CFLAGS="-O2"
2432   else
2433     CFLAGS=
2434   fi
2435 fi
2436 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2437 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2438 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2439   echo $ECHO_N "(cached) $ECHO_C" >&6
2440 else
2441   ac_cv_prog_cc_stdc=no
2442 ac_save_CC=$CC
2443 cat >conftest.$ac_ext <<_ACEOF
2444 #line $LINENO "configure"
2445 /* confdefs.h.  */
2446 _ACEOF
2447 cat confdefs.h >>conftest.$ac_ext
2448 cat >>conftest.$ac_ext <<_ACEOF
2449 /* end confdefs.h.  */
2450 #include <stdarg.h>
2451 #include <stdio.h>
2452 #include <sys/types.h>
2453 #include <sys/stat.h>
2454 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2455 struct buf { int x; };
2456 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2457 static char *e (p, i)
2458      char **p;
2459      int i;
2460 {
2461   return p[i];
2462 }
2463 static char *f (char * (*g) (char **, int), char **p, ...)
2464 {
2465   char *s;
2466   va_list v;
2467   va_start (v,p);
2468   s = g (p, va_arg (v,int));
2469   va_end (v);
2470   return s;
2471 }
2472 int test (int i, double x);
2473 struct s1 {int (*f) (int a);};
2474 struct s2 {int (*f) (double a);};
2475 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2476 int argc;
2477 char **argv;
2478 int
2479 main ()
2480 {
2481 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2482   ;
2483   return 0;
2484 }
2485 _ACEOF
2486 # Don't try gcc -ansi; that turns off useful extensions and
2487 # breaks some systems' header files.
2488 # AIX                   -qlanglvl=ansi
2489 # Ultrix and OSF/1      -std1
2490 # HP-UX 10.20 and later -Ae
2491 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2492 # SVR4                  -Xc -D__EXTENSIONS__
2493 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2494 do
2495   CC="$ac_save_CC $ac_arg"
2496   rm -f conftest.$ac_objext
2497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2498   (eval $ac_compile) 2>&5
2499   ac_status=$?
2500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501   (exit $ac_status); } &&
2502          { ac_try='test -s conftest.$ac_objext'
2503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2504   (eval $ac_try) 2>&5
2505   ac_status=$?
2506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507   (exit $ac_status); }; }; then
2508   ac_cv_prog_cc_stdc=$ac_arg
2509 break
2510 else
2511   echo "$as_me: failed program was:" >&5
2512 sed 's/^/| /' conftest.$ac_ext >&5
2513
2514 fi
2515 rm -f conftest.$ac_objext
2516 done
2517 rm -f conftest.$ac_ext conftest.$ac_objext
2518 CC=$ac_save_CC
2519
2520 fi
2521
2522 case "x$ac_cv_prog_cc_stdc" in
2523   x|xno)
2524     echo "$as_me:$LINENO: result: none needed" >&5
2525 echo "${ECHO_T}none needed" >&6 ;;
2526   *)
2527     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2528 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2529     CC="$CC $ac_cv_prog_cc_stdc" ;;
2530 esac
2531
2532 # Some people use a C++ compiler to compile C.  Since we use `exit',
2533 # in C++ we need to declare it.  In case someone uses the same compiler
2534 # for both compiling C and C++ we need to have the C++ compiler decide
2535 # the declaration of exit, since it's the most demanding environment.
2536 cat >conftest.$ac_ext <<_ACEOF
2537 #ifndef __cplusplus
2538   choke me
2539 #endif
2540 _ACEOF
2541 rm -f conftest.$ac_objext
2542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2543   (eval $ac_compile) 2>&5
2544   ac_status=$?
2545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546   (exit $ac_status); } &&
2547          { ac_try='test -s conftest.$ac_objext'
2548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2549   (eval $ac_try) 2>&5
2550   ac_status=$?
2551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552   (exit $ac_status); }; }; then
2553   for ac_declaration in \
2554    ''\
2555    '#include <stdlib.h>' \
2556    'extern "C" void std::exit (int) throw (); using std::exit;' \
2557    'extern "C" void std::exit (int); using std::exit;' \
2558    'extern "C" void exit (int) throw ();' \
2559    'extern "C" void exit (int);' \
2560    'void exit (int);'
2561 do
2562   cat >conftest.$ac_ext <<_ACEOF
2563 #line $LINENO "configure"
2564 /* confdefs.h.  */
2565 _ACEOF
2566 cat confdefs.h >>conftest.$ac_ext
2567 cat >>conftest.$ac_ext <<_ACEOF
2568 /* end confdefs.h.  */
2569 #include <stdlib.h>
2570 $ac_declaration
2571 int
2572 main ()
2573 {
2574 exit (42);
2575   ;
2576   return 0;
2577 }
2578 _ACEOF
2579 rm -f conftest.$ac_objext
2580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2581   (eval $ac_compile) 2>&5
2582   ac_status=$?
2583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584   (exit $ac_status); } &&
2585          { ac_try='test -s conftest.$ac_objext'
2586   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587   (eval $ac_try) 2>&5
2588   ac_status=$?
2589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); }; }; then
2591   :
2592 else
2593   echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2595
2596 continue
2597 fi
2598 rm -f conftest.$ac_objext conftest.$ac_ext
2599   cat >conftest.$ac_ext <<_ACEOF
2600 #line $LINENO "configure"
2601 /* confdefs.h.  */
2602 _ACEOF
2603 cat confdefs.h >>conftest.$ac_ext
2604 cat >>conftest.$ac_ext <<_ACEOF
2605 /* end confdefs.h.  */
2606 $ac_declaration
2607 int
2608 main ()
2609 {
2610 exit (42);
2611   ;
2612   return 0;
2613 }
2614 _ACEOF
2615 rm -f conftest.$ac_objext
2616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2617   (eval $ac_compile) 2>&5
2618   ac_status=$?
2619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2620   (exit $ac_status); } &&
2621          { ac_try='test -s conftest.$ac_objext'
2622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623   (eval $ac_try) 2>&5
2624   ac_status=$?
2625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626   (exit $ac_status); }; }; then
2627   break
2628 else
2629   echo "$as_me: failed program was:" >&5
2630 sed 's/^/| /' conftest.$ac_ext >&5
2631
2632 fi
2633 rm -f conftest.$ac_objext conftest.$ac_ext
2634 done
2635 rm -f conftest*
2636 if test -n "$ac_declaration"; then
2637   echo '#ifdef __cplusplus' >>confdefs.h
2638   echo $ac_declaration      >>confdefs.h
2639   echo '#endif'             >>confdefs.h
2640 fi
2641
2642 else
2643   echo "$as_me: failed program was:" >&5
2644 sed 's/^/| /' conftest.$ac_ext >&5
2645
2646 fi
2647 rm -f conftest.$ac_objext conftest.$ac_ext
2648 ac_ext=c
2649 ac_cpp='$CPP $CPPFLAGS'
2650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2653 DEPDIR="${am__leading_dot}deps"
2654
2655           ac_config_commands="$ac_config_commands depfiles"
2656
2657
2658 am_make=${MAKE-make}
2659 cat > confinc << 'END'
2660 am__doit:
2661         @echo done
2662 .PHONY: am__doit
2663 END
2664 # If we don't find an include directive, just comment out the code.
2665 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2666 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2667 am__include="#"
2668 am__quote=
2669 _am_result=none
2670 # First try GNU make style include.
2671 echo "include confinc" > confmf
2672 # We grep out `Entering directory' and `Leaving directory'
2673 # messages which can occur if `w' ends up in MAKEFLAGS.
2674 # In particular we don't look at `^make:' because GNU make might
2675 # be invoked under some other name (usually "gmake"), in which
2676 # case it prints its new name instead of `make'.
2677 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2678    am__include=include
2679    am__quote=
2680    _am_result=GNU
2681 fi
2682 # Now try BSD make style include.
2683 if test "$am__include" = "#"; then
2684    echo '.include "confinc"' > confmf
2685    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2686       am__include=.include
2687       am__quote="\""
2688       _am_result=BSD
2689    fi
2690 fi
2691
2692
2693 echo "$as_me:$LINENO: result: $_am_result" >&5
2694 echo "${ECHO_T}$_am_result" >&6
2695 rm -f confinc confmf
2696
2697 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2698 if test "${enable_dependency_tracking+set}" = set; then
2699   enableval="$enable_dependency_tracking"
2700
2701 fi;
2702 if test "x$enable_dependency_tracking" != xno; then
2703   am_depcomp="$ac_aux_dir/depcomp"
2704   AMDEPBACKSLASH='\'
2705 fi
2706
2707
2708 if test "x$enable_dependency_tracking" != xno; then
2709   AMDEP_TRUE=
2710   AMDEP_FALSE='#'
2711 else
2712   AMDEP_TRUE='#'
2713   AMDEP_FALSE=
2714 fi
2715
2716
2717
2718
2719 depcc="$CC"   am_compiler_list=
2720
2721 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2722 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2723 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2724   echo $ECHO_N "(cached) $ECHO_C" >&6
2725 else
2726   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2727   # We make a subdir and do the tests there.  Otherwise we can end up
2728   # making bogus files that we don't know about and never remove.  For
2729   # instance it was reported that on HP-UX the gcc test will end up
2730   # making a dummy file named `D' -- because `-MD' means `put the output
2731   # in D'.
2732   mkdir conftest.dir
2733   # Copy depcomp to subdir because otherwise we won't find it if we're
2734   # using a relative directory.
2735   cp "$am_depcomp" conftest.dir
2736   cd conftest.dir
2737   # We will build objects and dependencies in a subdirectory because
2738   # it helps to detect inapplicable dependency modes.  For instance
2739   # both Tru64's cc and ICC support -MD to output dependencies as a
2740   # side effect of compilation, but ICC will put the dependencies in
2741   # the current directory while Tru64 will put them in the object
2742   # directory.
2743   mkdir sub
2744
2745   am_cv_CC_dependencies_compiler_type=none
2746   if test "$am_compiler_list" = ""; then
2747      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2748   fi
2749   for depmode in $am_compiler_list; do
2750     # Setup a source with many dependencies, because some compilers
2751     # like to wrap large dependency lists on column 80 (with \), and
2752     # we should not choose a depcomp mode which is confused by this.
2753     #
2754     # We need to recreate these files for each test, as the compiler may
2755     # overwrite some of them when testing with obscure command lines.
2756     # This happens at least with the AIX C compiler.
2757     : > sub/conftest.c
2758     for i in 1 2 3 4 5 6; do
2759       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2760       : > sub/conftst$i.h
2761     done
2762     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2763
2764     case $depmode in
2765     nosideeffect)
2766       # after this tag, mechanisms are not by side-effect, so they'll
2767       # only be used when explicitly requested
2768       if test "x$enable_dependency_tracking" = xyes; then
2769         continue
2770       else
2771         break
2772       fi
2773       ;;
2774     none) break ;;
2775     esac
2776     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2777     # mode.  It turns out that the SunPro C++ compiler does not properly
2778     # handle `-M -o', and we need to detect this.
2779     if depmode=$depmode \
2780        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2781        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2782        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2783          >/dev/null 2>conftest.err &&
2784        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2785        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2786        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2787       # icc doesn't choke on unknown options, it will just issue warnings
2788       # (even with -Werror).  So we grep stderr for any message
2789       # that says an option was ignored.
2790       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2791         am_cv_CC_dependencies_compiler_type=$depmode
2792         break
2793       fi
2794     fi
2795   done
2796
2797   cd ..
2798   rm -rf conftest.dir
2799 else
2800   am_cv_CC_dependencies_compiler_type=none
2801 fi
2802
2803 fi
2804 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2805 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2806 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2807
2808
2809
2810 if
2811   test "x$enable_dependency_tracking" != xno \
2812   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2813   am__fastdepCC_TRUE=
2814   am__fastdepCC_FALSE='#'
2815 else
2816   am__fastdepCC_TRUE='#'
2817   am__fastdepCC_FALSE=
2818 fi
2819
2820
2821
2822
2823         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2824 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2825 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2826   echo $ECHO_N "(cached) $ECHO_C" >&6
2827 else
2828   ac_check_lib_save_LIBS=$LIBS
2829 LIBS="-lcposix  $LIBS"
2830 cat >conftest.$ac_ext <<_ACEOF
2831 #line $LINENO "configure"
2832 /* confdefs.h.  */
2833 _ACEOF
2834 cat confdefs.h >>conftest.$ac_ext
2835 cat >>conftest.$ac_ext <<_ACEOF
2836 /* end confdefs.h.  */
2837
2838 /* Override any gcc2 internal prototype to avoid an error.  */
2839 #ifdef __cplusplus
2840 extern "C"
2841 #endif
2842 /* We use char because int might match the return type of a gcc2
2843    builtin and then its argument prototype would still apply.  */
2844 char strerror ();
2845 int
2846 main ()
2847 {
2848 strerror ();
2849   ;
2850   return 0;
2851 }
2852 _ACEOF
2853 rm -f conftest.$ac_objext conftest$ac_exeext
2854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2855   (eval $ac_link) 2>&5
2856   ac_status=$?
2857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858   (exit $ac_status); } &&
2859          { ac_try='test -s conftest$ac_exeext'
2860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2861   (eval $ac_try) 2>&5
2862   ac_status=$?
2863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864   (exit $ac_status); }; }; then
2865   ac_cv_lib_cposix_strerror=yes
2866 else
2867   echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2869
2870 ac_cv_lib_cposix_strerror=no
2871 fi
2872 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2873 LIBS=$ac_check_lib_save_LIBS
2874 fi
2875 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2876 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2877 if test $ac_cv_lib_cposix_strerror = yes; then
2878   LIBS="$LIBS -lcposix"
2879 fi
2880
2881
2882
2883
2884
2885
2886 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2887 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2888 if test "${am_cv_prog_cc_stdc+set}" = set; then
2889   echo $ECHO_N "(cached) $ECHO_C" >&6
2890 else
2891   am_cv_prog_cc_stdc=no
2892 ac_save_CC="$CC"
2893 # Don't try gcc -ansi; that turns off useful extensions and
2894 # breaks some systems' header files.
2895 # AIX                   -qlanglvl=ansi
2896 # Ultrix and OSF/1      -std1
2897 # HP-UX 10.20 and later -Ae
2898 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2899 # SVR4                  -Xc -D__EXTENSIONS__
2900 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2901 do
2902   CC="$ac_save_CC $ac_arg"
2903   cat >conftest.$ac_ext <<_ACEOF
2904 #line $LINENO "configure"
2905 /* confdefs.h.  */
2906 _ACEOF
2907 cat confdefs.h >>conftest.$ac_ext
2908 cat >>conftest.$ac_ext <<_ACEOF
2909 /* end confdefs.h.  */
2910 #include <stdarg.h>
2911 #include <stdio.h>
2912 #include <sys/types.h>
2913 #include <sys/stat.h>
2914 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2915 struct buf { int x; };
2916 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2917 static char *e (p, i)
2918      char **p;
2919      int i;
2920 {
2921   return p[i];
2922 }
2923 static char *f (char * (*g) (char **, int), char **p, ...)
2924 {
2925   char *s;
2926   va_list v;
2927   va_start (v,p);
2928   s = g (p, va_arg (v,int));
2929   va_end (v);
2930   return s;
2931 }
2932 int test (int i, double x);
2933 struct s1 {int (*f) (int a);};
2934 struct s2 {int (*f) (double a);};
2935 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2936 int argc;
2937 char **argv;
2938
2939 int
2940 main ()
2941 {
2942
2943 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2944
2945   ;
2946   return 0;
2947 }
2948 _ACEOF
2949 rm -f conftest.$ac_objext
2950 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2951   (eval $ac_compile) 2>&5
2952   ac_status=$?
2953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954   (exit $ac_status); } &&
2955          { ac_try='test -s conftest.$ac_objext'
2956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957   (eval $ac_try) 2>&5
2958   ac_status=$?
2959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960   (exit $ac_status); }; }; then
2961   am_cv_prog_cc_stdc="$ac_arg"; break
2962 else
2963   echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2965
2966 fi
2967 rm -f conftest.$ac_objext conftest.$ac_ext
2968 done
2969 CC="$ac_save_CC"
2970
2971 fi
2972
2973 if test -z "$am_cv_prog_cc_stdc"; then
2974   echo "$as_me:$LINENO: result: none needed" >&5
2975 echo "${ECHO_T}none needed" >&6
2976 else
2977   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2978 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2979 fi
2980 case "x$am_cv_prog_cc_stdc" in
2981   x|xno) ;;
2982   *) CC="$CC $am_cv_prog_cc_stdc" ;;
2983 esac
2984
2985 ac_ext=c
2986 ac_cpp='$CPP $CPPFLAGS'
2987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2990 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2991 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2992 # On Suns, sometimes $CPP names a directory.
2993 if test -n "$CPP" && test -d "$CPP"; then
2994   CPP=
2995 fi
2996 if test -z "$CPP"; then
2997   if test "${ac_cv_prog_CPP+set}" = set; then
2998   echo $ECHO_N "(cached) $ECHO_C" >&6
2999 else
3000       # Double quotes because CPP needs to be expanded
3001     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3002     do
3003       ac_preproc_ok=false
3004 for ac_c_preproc_warn_flag in '' yes
3005 do
3006   # Use a header file that comes with gcc, so configuring glibc
3007   # with a fresh cross-compiler works.
3008   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3009   # <limits.h> exists even on freestanding compilers.
3010   # On the NeXT, cc -E runs the code through the compiler's parser,
3011   # not just through cpp. "Syntax error" is here to catch this case.
3012   cat >conftest.$ac_ext <<_ACEOF
3013 #line $LINENO "configure"
3014 /* confdefs.h.  */
3015 _ACEOF
3016 cat confdefs.h >>conftest.$ac_ext
3017 cat >>conftest.$ac_ext <<_ACEOF
3018 /* end confdefs.h.  */
3019 #ifdef __STDC__
3020 # include <limits.h>
3021 #else
3022 # include <assert.h>
3023 #endif
3024                      Syntax error
3025 _ACEOF
3026 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3027   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3028   ac_status=$?
3029   grep -v '^ *+' conftest.er1 >conftest.err
3030   rm -f conftest.er1
3031   cat conftest.err >&5
3032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033   (exit $ac_status); } >/dev/null; then
3034   if test -s conftest.err; then
3035     ac_cpp_err=$ac_c_preproc_warn_flag
3036   else
3037     ac_cpp_err=
3038   fi
3039 else
3040   ac_cpp_err=yes
3041 fi
3042 if test -z "$ac_cpp_err"; then
3043   :
3044 else
3045   echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3047
3048   # Broken: fails on valid input.
3049 continue
3050 fi
3051 rm -f conftest.err conftest.$ac_ext
3052
3053   # OK, works on sane cases.  Now check whether non-existent headers
3054   # can be detected and how.
3055   cat >conftest.$ac_ext <<_ACEOF
3056 #line $LINENO "configure"
3057 /* confdefs.h.  */
3058 _ACEOF
3059 cat confdefs.h >>conftest.$ac_ext
3060 cat >>conftest.$ac_ext <<_ACEOF
3061 /* end confdefs.h.  */
3062 #include <ac_nonexistent.h>
3063 _ACEOF
3064 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3065   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3066   ac_status=$?
3067   grep -v '^ *+' conftest.er1 >conftest.err
3068   rm -f conftest.er1
3069   cat conftest.err >&5
3070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071   (exit $ac_status); } >/dev/null; then
3072   if test -s conftest.err; then
3073     ac_cpp_err=$ac_c_preproc_warn_flag
3074   else
3075     ac_cpp_err=
3076   fi
3077 else
3078   ac_cpp_err=yes
3079 fi
3080 if test -z "$ac_cpp_err"; then
3081   # Broken: success on invalid input.
3082 continue
3083 else
3084   echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3086
3087   # Passes both tests.
3088 ac_preproc_ok=:
3089 break
3090 fi
3091 rm -f conftest.err conftest.$ac_ext
3092
3093 done
3094 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3095 rm -f conftest.err conftest.$ac_ext
3096 if $ac_preproc_ok; then
3097   break
3098 fi
3099
3100     done
3101     ac_cv_prog_CPP=$CPP
3102
3103 fi
3104   CPP=$ac_cv_prog_CPP
3105 else
3106   ac_cv_prog_CPP=$CPP
3107 fi
3108 echo "$as_me:$LINENO: result: $CPP" >&5
3109 echo "${ECHO_T}$CPP" >&6
3110 ac_preproc_ok=false
3111 for ac_c_preproc_warn_flag in '' yes
3112 do
3113   # Use a header file that comes with gcc, so configuring glibc
3114   # with a fresh cross-compiler works.
3115   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3116   # <limits.h> exists even on freestanding compilers.
3117   # On the NeXT, cc -E runs the code through the compiler's parser,
3118   # not just through cpp. "Syntax error" is here to catch this case.
3119   cat >conftest.$ac_ext <<_ACEOF
3120 #line $LINENO "configure"
3121 /* confdefs.h.  */
3122 _ACEOF
3123 cat confdefs.h >>conftest.$ac_ext
3124 cat >>conftest.$ac_ext <<_ACEOF
3125 /* end confdefs.h.  */
3126 #ifdef __STDC__
3127 # include <limits.h>
3128 #else
3129 # include <assert.h>
3130 #endif
3131                      Syntax error
3132 _ACEOF
3133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3134   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3135   ac_status=$?
3136   grep -v '^ *+' conftest.er1 >conftest.err
3137   rm -f conftest.er1
3138   cat conftest.err >&5
3139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140   (exit $ac_status); } >/dev/null; then
3141   if test -s conftest.err; then
3142     ac_cpp_err=$ac_c_preproc_warn_flag
3143   else
3144     ac_cpp_err=
3145   fi
3146 else
3147   ac_cpp_err=yes
3148 fi
3149 if test -z "$ac_cpp_err"; then
3150   :
3151 else
3152   echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3154
3155   # Broken: fails on valid input.
3156 continue
3157 fi
3158 rm -f conftest.err conftest.$ac_ext
3159
3160   # OK, works on sane cases.  Now check whether non-existent headers
3161   # can be detected and how.
3162   cat >conftest.$ac_ext <<_ACEOF
3163 #line $LINENO "configure"
3164 /* confdefs.h.  */
3165 _ACEOF
3166 cat confdefs.h >>conftest.$ac_ext
3167 cat >>conftest.$ac_ext <<_ACEOF
3168 /* end confdefs.h.  */
3169 #include <ac_nonexistent.h>
3170 _ACEOF
3171 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3172   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3173   ac_status=$?
3174   grep -v '^ *+' conftest.er1 >conftest.err
3175   rm -f conftest.er1
3176   cat conftest.err >&5
3177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178   (exit $ac_status); } >/dev/null; then
3179   if test -s conftest.err; then
3180     ac_cpp_err=$ac_c_preproc_warn_flag
3181   else
3182     ac_cpp_err=
3183   fi
3184 else
3185   ac_cpp_err=yes
3186 fi
3187 if test -z "$ac_cpp_err"; then
3188   # Broken: success on invalid input.
3189 continue
3190 else
3191   echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3193
3194   # Passes both tests.
3195 ac_preproc_ok=:
3196 break
3197 fi
3198 rm -f conftest.err conftest.$ac_ext
3199
3200 done
3201 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3202 rm -f conftest.err conftest.$ac_ext
3203 if $ac_preproc_ok; then
3204   :
3205 else
3206   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3207 See \`config.log' for more details." >&5
3208 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3209 See \`config.log' for more details." >&2;}
3210    { (exit 1); exit 1; }; }
3211 fi
3212
3213 ac_ext=c
3214 ac_cpp='$CPP $CPPFLAGS'
3215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3218
3219
3220 echo "$as_me:$LINENO: checking for egrep" >&5
3221 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3222 if test "${ac_cv_prog_egrep+set}" = set; then
3223   echo $ECHO_N "(cached) $ECHO_C" >&6
3224 else
3225   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3226     then ac_cv_prog_egrep='grep -E'
3227     else ac_cv_prog_egrep='egrep'
3228     fi
3229 fi
3230 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3231 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3232  EGREP=$ac_cv_prog_egrep
3233
3234
3235 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3246                   inttypes.h stdint.h unistd.h
3247 do
3248 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3249 echo "$as_me:$LINENO: checking for $ac_header" >&5
3250 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3251 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3252   echo $ECHO_N "(cached) $ECHO_C" >&6
3253 else
3254   cat >conftest.$ac_ext <<_ACEOF
3255 #line $LINENO "configure"
3256 /* confdefs.h.  */
3257 _ACEOF
3258 cat confdefs.h >>conftest.$ac_ext
3259 cat >>conftest.$ac_ext <<_ACEOF
3260 /* end confdefs.h.  */
3261 $ac_includes_default
3262
3263 #include <$ac_header>
3264 _ACEOF
3265 rm -f conftest.$ac_objext
3266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3267   (eval $ac_compile) 2>&5
3268   ac_status=$?
3269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270   (exit $ac_status); } &&
3271          { ac_try='test -s conftest.$ac_objext'
3272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3273   (eval $ac_try) 2>&5
3274   ac_status=$?
3275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276   (exit $ac_status); }; }; then
3277   eval "$as_ac_Header=yes"
3278 else
3279   echo "$as_me: failed program was:" >&5
3280 sed 's/^/| /' conftest.$ac_ext >&5
3281
3282 eval "$as_ac_Header=no"
3283 fi
3284 rm -f conftest.$ac_objext conftest.$ac_ext
3285 fi
3286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3289   cat >>confdefs.h <<_ACEOF
3290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3291 _ACEOF
3292
3293 fi
3294
3295 done
3296
3297
3298
3299
3300 echo "$as_me:$LINENO: checking for function prototypes" >&5
3301 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3302 if test "$am_cv_prog_cc_stdc" != no; then
3303   echo "$as_me:$LINENO: result: yes" >&5
3304 echo "${ECHO_T}yes" >&6
3305
3306 cat >>confdefs.h <<\_ACEOF
3307 #define PROTOTYPES 1
3308 _ACEOF
3309
3310   U= ANSI2KNR=
3311 else
3312   echo "$as_me:$LINENO: result: no" >&5
3313 echo "${ECHO_T}no" >&6
3314   U=_ ANSI2KNR=./ansi2knr
3315 fi
3316 # Ensure some checks needed by ansi2knr itself.
3317 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3318 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3319 if test "${ac_cv_header_stdc+set}" = set; then
3320   echo $ECHO_N "(cached) $ECHO_C" >&6
3321 else
3322   cat >conftest.$ac_ext <<_ACEOF
3323 #line $LINENO "configure"
3324 /* confdefs.h.  */
3325 _ACEOF
3326 cat confdefs.h >>conftest.$ac_ext
3327 cat >>conftest.$ac_ext <<_ACEOF
3328 /* end confdefs.h.  */
3329 #include <stdlib.h>
3330 #include <stdarg.h>
3331 #include <string.h>
3332 #include <float.h>
3333
3334 int
3335 main ()
3336 {
3337
3338   ;
3339   return 0;
3340 }
3341 _ACEOF
3342 rm -f conftest.$ac_objext
3343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3344   (eval $ac_compile) 2>&5
3345   ac_status=$?
3346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347   (exit $ac_status); } &&
3348          { ac_try='test -s conftest.$ac_objext'
3349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3350   (eval $ac_try) 2>&5
3351   ac_status=$?
3352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3353   (exit $ac_status); }; }; then
3354   ac_cv_header_stdc=yes
3355 else
3356   echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3358
3359 ac_cv_header_stdc=no
3360 fi
3361 rm -f conftest.$ac_objext conftest.$ac_ext
3362
3363 if test $ac_cv_header_stdc = yes; then
3364   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3365   cat >conftest.$ac_ext <<_ACEOF
3366 #line $LINENO "configure"
3367 /* confdefs.h.  */
3368 _ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h.  */
3372 #include <string.h>
3373
3374 _ACEOF
3375 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3376   $EGREP "memchr" >/dev/null 2>&1; then
3377   :
3378 else
3379   ac_cv_header_stdc=no
3380 fi
3381 rm -f conftest*
3382
3383 fi
3384
3385 if test $ac_cv_header_stdc = yes; then
3386   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3387   cat >conftest.$ac_ext <<_ACEOF
3388 #line $LINENO "configure"
3389 /* confdefs.h.  */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h.  */
3394 #include <stdlib.h>
3395
3396 _ACEOF
3397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3398   $EGREP "free" >/dev/null 2>&1; then
3399   :
3400 else
3401   ac_cv_header_stdc=no
3402 fi
3403 rm -f conftest*
3404
3405 fi
3406
3407 if test $ac_cv_header_stdc = yes; then
3408   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3409   if test "$cross_compiling" = yes; then
3410   :
3411 else
3412   cat >conftest.$ac_ext <<_ACEOF
3413 #line $LINENO "configure"
3414 /* confdefs.h.  */
3415 _ACEOF
3416 cat confdefs.h >>conftest.$ac_ext
3417 cat >>conftest.$ac_ext <<_ACEOF
3418 /* end confdefs.h.  */
3419 #include <ctype.h>
3420 #if ((' ' & 0x0FF) == 0x020)
3421 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3422 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3423 #else
3424 # define ISLOWER(c) \
3425                    (('a' <= (c) && (c) <= 'i') \
3426                      || ('j' <= (c) && (c) <= 'r') \
3427                      || ('s' <= (c) && (c) <= 'z'))
3428 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3429 #endif
3430
3431 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3432 int
3433 main ()
3434 {
3435   int i;
3436   for (i = 0; i < 256; i++)
3437     if (XOR (islower (i), ISLOWER (i))
3438         || toupper (i) != TOUPPER (i))
3439       exit(2);
3440   exit (0);
3441 }
3442 _ACEOF
3443 rm -f conftest$ac_exeext
3444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3445   (eval $ac_link) 2>&5
3446   ac_status=$?
3447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450   (eval $ac_try) 2>&5
3451   ac_status=$?
3452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453   (exit $ac_status); }; }; then
3454   :
3455 else
3456   echo "$as_me: program exited with status $ac_status" >&5
3457 echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3459
3460 ( exit $ac_status )
3461 ac_cv_header_stdc=no
3462 fi
3463 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3464 fi
3465 fi
3466 fi
3467 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3468 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3469 if test $ac_cv_header_stdc = yes; then
3470
3471 cat >>confdefs.h <<\_ACEOF
3472 #define STDC_HEADERS 1
3473 _ACEOF
3474
3475 fi
3476
3477
3478 for ac_header in string.h
3479 do
3480 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3482   echo "$as_me:$LINENO: checking for $ac_header" >&5
3483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3484 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3485   echo $ECHO_N "(cached) $ECHO_C" >&6
3486 fi
3487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3488 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3489 else
3490   # Is the header compilable?
3491 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3492 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3493 cat >conftest.$ac_ext <<_ACEOF
3494 #line $LINENO "configure"
3495 /* confdefs.h.  */
3496 _ACEOF
3497 cat confdefs.h >>conftest.$ac_ext
3498 cat >>conftest.$ac_ext <<_ACEOF
3499 /* end confdefs.h.  */
3500 $ac_includes_default
3501 #include <$ac_header>
3502 _ACEOF
3503 rm -f conftest.$ac_objext
3504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3505   (eval $ac_compile) 2>&5
3506   ac_status=$?
3507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508   (exit $ac_status); } &&
3509          { ac_try='test -s conftest.$ac_objext'
3510   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511   (eval $ac_try) 2>&5
3512   ac_status=$?
3513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514   (exit $ac_status); }; }; then
3515   ac_header_compiler=yes
3516 else
3517   echo "$as_me: failed program was:" >&5
3518 sed 's/^/| /' conftest.$ac_ext >&5
3519
3520 ac_header_compiler=no
3521 fi
3522 rm -f conftest.$ac_objext conftest.$ac_ext
3523 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3524 echo "${ECHO_T}$ac_header_compiler" >&6
3525
3526 # Is the header present?
3527 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3529 cat >conftest.$ac_ext <<_ACEOF
3530 #line $LINENO "configure"
3531 /* confdefs.h.  */
3532 _ACEOF
3533 cat confdefs.h >>conftest.$ac_ext
3534 cat >>conftest.$ac_ext <<_ACEOF
3535 /* end confdefs.h.  */
3536 #include <$ac_header>
3537 _ACEOF
3538 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3539   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3540   ac_status=$?
3541   grep -v '^ *+' conftest.er1 >conftest.err
3542   rm -f conftest.er1
3543   cat conftest.err >&5
3544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545   (exit $ac_status); } >/dev/null; then
3546   if test -s conftest.err; then
3547     ac_cpp_err=$ac_c_preproc_warn_flag
3548   else
3549     ac_cpp_err=
3550   fi
3551 else
3552   ac_cpp_err=yes
3553 fi
3554 if test -z "$ac_cpp_err"; then
3555   ac_header_preproc=yes
3556 else
3557   echo "$as_me: failed program was:" >&5
3558 sed 's/^/| /' conftest.$ac_ext >&5
3559
3560   ac_header_preproc=no
3561 fi
3562 rm -f conftest.err conftest.$ac_ext
3563 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3564 echo "${ECHO_T}$ac_header_preproc" >&6
3565
3566 # So?  What about this header?
3567 case $ac_header_compiler:$ac_header_preproc in
3568   yes:no )
3569     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3570 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3571     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3572 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3573     (
3574       cat <<\_ASBOX
3575 ## ------------------------------------ ##
3576 ## Report this to bug-autoconf@gnu.org. ##
3577 ## ------------------------------------ ##
3578 _ASBOX
3579     ) |
3580       sed "s/^/$as_me: WARNING:     /" >&2
3581     ;;
3582   no:yes )
3583     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3584 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3585     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3586 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3587     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3589     (
3590       cat <<\_ASBOX
3591 ## ------------------------------------ ##
3592 ## Report this to bug-autoconf@gnu.org. ##
3593 ## ------------------------------------ ##
3594 _ASBOX
3595     ) |
3596       sed "s/^/$as_me: WARNING:     /" >&2
3597     ;;
3598 esac
3599 echo "$as_me:$LINENO: checking for $ac_header" >&5
3600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3602   echo $ECHO_N "(cached) $ECHO_C" >&6
3603 else
3604   eval "$as_ac_Header=$ac_header_preproc"
3605 fi
3606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3607 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3608
3609 fi
3610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3611   cat >>confdefs.h <<_ACEOF
3612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3613 _ACEOF
3614
3615 fi
3616
3617 done
3618
3619
3620 if test "x$U" != "x"; then
3621   { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
3622 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
3623    { (exit 1); exit 1; }; }
3624 fi
3625 ac_ext=c
3626 ac_cpp='$CPP $CPPFLAGS'
3627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3630 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3631 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3632 # On Suns, sometimes $CPP names a directory.
3633 if test -n "$CPP" && test -d "$CPP"; then
3634   CPP=
3635 fi
3636 if test -z "$CPP"; then
3637   if test "${ac_cv_prog_CPP+set}" = set; then
3638   echo $ECHO_N "(cached) $ECHO_C" >&6
3639 else
3640       # Double quotes because CPP needs to be expanded
3641     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3642     do
3643       ac_preproc_ok=false
3644 for ac_c_preproc_warn_flag in '' yes
3645 do
3646   # Use a header file that comes with gcc, so configuring glibc
3647   # with a fresh cross-compiler works.
3648   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3649   # <limits.h> exists even on freestanding compilers.
3650   # On the NeXT, cc -E runs the code through the compiler's parser,
3651   # not just through cpp. "Syntax error" is here to catch this case.
3652   cat >conftest.$ac_ext <<_ACEOF
3653 #line $LINENO "configure"
3654 /* confdefs.h.  */
3655 _ACEOF
3656 cat confdefs.h >>conftest.$ac_ext
3657 cat >>conftest.$ac_ext <<_ACEOF
3658 /* end confdefs.h.  */
3659 #ifdef __STDC__
3660 # include <limits.h>
3661 #else
3662 # include <assert.h>
3663 #endif
3664                      Syntax error
3665 _ACEOF
3666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3667   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3668   ac_status=$?
3669   grep -v '^ *+' conftest.er1 >conftest.err
3670   rm -f conftest.er1
3671   cat conftest.err >&5
3672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673   (exit $ac_status); } >/dev/null; then
3674   if test -s conftest.err; then
3675     ac_cpp_err=$ac_c_preproc_warn_flag
3676   else
3677     ac_cpp_err=
3678   fi
3679 else
3680   ac_cpp_err=yes
3681 fi
3682 if test -z "$ac_cpp_err"; then
3683   :
3684 else
3685   echo "$as_me: failed program was:" >&5
3686 sed 's/^/| /' conftest.$ac_ext >&5
3687
3688   # Broken: fails on valid input.
3689 continue
3690 fi
3691 rm -f conftest.err conftest.$ac_ext
3692
3693   # OK, works on sane cases.  Now check whether non-existent headers
3694   # can be detected and how.
3695   cat >conftest.$ac_ext <<_ACEOF
3696 #line $LINENO "configure"
3697 /* confdefs.h.  */
3698 _ACEOF
3699 cat confdefs.h >>conftest.$ac_ext
3700 cat >>conftest.$ac_ext <<_ACEOF
3701 /* end confdefs.h.  */
3702 #include <ac_nonexistent.h>
3703 _ACEOF
3704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3705   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3706   ac_status=$?
3707   grep -v '^ *+' conftest.er1 >conftest.err
3708   rm -f conftest.er1
3709   cat conftest.err >&5
3710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711   (exit $ac_status); } >/dev/null; then
3712   if test -s conftest.err; then
3713     ac_cpp_err=$ac_c_preproc_warn_flag
3714   else
3715     ac_cpp_err=
3716   fi
3717 else
3718   ac_cpp_err=yes
3719 fi
3720 if test -z "$ac_cpp_err"; then
3721   # Broken: success on invalid input.
3722 continue
3723 else
3724   echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.$ac_ext >&5
3726
3727   # Passes both tests.
3728 ac_preproc_ok=:
3729 break
3730 fi
3731 rm -f conftest.err conftest.$ac_ext
3732
3733 done
3734 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3735 rm -f conftest.err conftest.$ac_ext
3736 if $ac_preproc_ok; then
3737   break
3738 fi
3739
3740     done
3741     ac_cv_prog_CPP=$CPP
3742
3743 fi
3744   CPP=$ac_cv_prog_CPP
3745 else
3746   ac_cv_prog_CPP=$CPP
3747 fi
3748 echo "$as_me:$LINENO: result: $CPP" >&5
3749 echo "${ECHO_T}$CPP" >&6
3750 ac_preproc_ok=false
3751 for ac_c_preproc_warn_flag in '' yes
3752 do
3753   # Use a header file that comes with gcc, so configuring glibc
3754   # with a fresh cross-compiler works.
3755   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3756   # <limits.h> exists even on freestanding compilers.
3757   # On the NeXT, cc -E runs the code through the compiler's parser,
3758   # not just through cpp. "Syntax error" is here to catch this case.
3759   cat >conftest.$ac_ext <<_ACEOF
3760 #line $LINENO "configure"
3761 /* confdefs.h.  */
3762 _ACEOF
3763 cat confdefs.h >>conftest.$ac_ext
3764 cat >>conftest.$ac_ext <<_ACEOF
3765 /* end confdefs.h.  */
3766 #ifdef __STDC__
3767 # include <limits.h>
3768 #else
3769 # include <assert.h>
3770 #endif
3771                      Syntax error
3772 _ACEOF
3773 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3774   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3775   ac_status=$?
3776   grep -v '^ *+' conftest.er1 >conftest.err
3777   rm -f conftest.er1
3778   cat conftest.err >&5
3779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780   (exit $ac_status); } >/dev/null; then
3781   if test -s conftest.err; then
3782     ac_cpp_err=$ac_c_preproc_warn_flag
3783   else
3784     ac_cpp_err=
3785   fi
3786 else
3787   ac_cpp_err=yes
3788 fi
3789 if test -z "$ac_cpp_err"; then
3790   :
3791 else
3792   echo "$as_me: failed program was:" >&5
3793 sed 's/^/| /' conftest.$ac_ext >&5
3794
3795   # Broken: fails on valid input.
3796 continue
3797 fi
3798 rm -f conftest.err conftest.$ac_ext
3799
3800   # OK, works on sane cases.  Now check whether non-existent headers
3801   # can be detected and how.
3802   cat >conftest.$ac_ext <<_ACEOF
3803 #line $LINENO "configure"
3804 /* confdefs.h.  */
3805 _ACEOF
3806 cat confdefs.h >>conftest.$ac_ext
3807 cat >>conftest.$ac_ext <<_ACEOF
3808 /* end confdefs.h.  */
3809 #include <ac_nonexistent.h>
3810 _ACEOF
3811 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3812   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3813   ac_status=$?
3814   grep -v '^ *+' conftest.er1 >conftest.err
3815   rm -f conftest.er1
3816   cat conftest.err >&5
3817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818   (exit $ac_status); } >/dev/null; then
3819   if test -s conftest.err; then
3820     ac_cpp_err=$ac_c_preproc_warn_flag
3821   else
3822     ac_cpp_err=
3823   fi
3824 else
3825   ac_cpp_err=yes
3826 fi
3827 if test -z "$ac_cpp_err"; then
3828   # Broken: success on invalid input.
3829 continue
3830 else
3831   echo "$as_me: failed program was:" >&5
3832 sed 's/^/| /' conftest.$ac_ext >&5
3833
3834   # Passes both tests.
3835 ac_preproc_ok=:
3836 break
3837 fi
3838 rm -f conftest.err conftest.$ac_ext
3839
3840 done
3841 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3842 rm -f conftest.err conftest.$ac_ext
3843 if $ac_preproc_ok; then
3844   :
3845 else
3846   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3847 See \`config.log' for more details." >&5
3848 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3849 See \`config.log' for more details." >&2;}
3850    { (exit 1); exit 1; }; }
3851 fi
3852
3853 ac_ext=c
3854 ac_cpp='$CPP $CPPFLAGS'
3855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3858
3859 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3860 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3861 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3862 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3863   echo $ECHO_N "(cached) $ECHO_C" >&6
3864 else
3865   cat >conftest.make <<\_ACEOF
3866 all:
3867         @echo 'ac_maketemp="$(MAKE)"'
3868 _ACEOF
3869 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3870 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3871 if test -n "$ac_maketemp"; then
3872   eval ac_cv_prog_make_${ac_make}_set=yes
3873 else
3874   eval ac_cv_prog_make_${ac_make}_set=no
3875 fi
3876 rm -f conftest.make
3877 fi
3878 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3879   echo "$as_me:$LINENO: result: yes" >&5
3880 echo "${ECHO_T}yes" >&6
3881   SET_MAKE=
3882 else
3883   echo "$as_me:$LINENO: result: no" >&5
3884 echo "${ECHO_T}no" >&6
3885   SET_MAKE="MAKE=${MAKE-make}"
3886 fi
3887
3888 # Find a good install program.  We prefer a C program (faster),
3889 # so one script is as good as another.  But avoid the broken or
3890 # incompatible versions:
3891 # SysV /etc/install, /usr/sbin/install
3892 # SunOS /usr/etc/install
3893 # IRIX /sbin/install
3894 # AIX /bin/install
3895 # AmigaOS /C/install, which installs bootblocks on floppy discs
3896 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3897 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3898 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3899 # ./install, which can be erroneously created by make from ./install.sh.
3900 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3901 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3902 if test -z "$INSTALL"; then
3903 if test "${ac_cv_path_install+set}" = set; then
3904   echo $ECHO_N "(cached) $ECHO_C" >&6
3905 else
3906   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907 for as_dir in $PATH
3908 do
3909   IFS=$as_save_IFS
3910   test -z "$as_dir" && as_dir=.
3911   # Account for people who put trailing slashes in PATH elements.
3912 case $as_dir/ in
3913   ./ | .// | /cC/* | \
3914   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3915   /usr/ucb/* ) ;;
3916   *)
3917     # OSF1 and SCO ODT 3.0 have their own names for install.
3918     # Don't use installbsd from OSF since it installs stuff as root
3919     # by default.
3920     for ac_prog in ginstall scoinst install; do
3921       for ac_exec_ext in '' $ac_executable_extensions; do
3922         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3923           if test $ac_prog = install &&
3924             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3925             # AIX install.  It has an incompatible calling convention.
3926             :
3927           elif test $ac_prog = install &&
3928             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3929             # program-specific install script used by HP pwplus--don't use.
3930             :
3931           else
3932             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3933             break 3
3934           fi
3935         fi
3936       done
3937     done
3938     ;;
3939 esac
3940 done
3941
3942
3943 fi
3944   if test "${ac_cv_path_install+set}" = set; then
3945     INSTALL=$ac_cv_path_install
3946   else
3947     # As a last resort, use the slow shell script.  We don't cache a
3948     # path for INSTALL within a source directory, because that will
3949     # break other packages using the cache if that directory is
3950     # removed, or if the path is relative.
3951     INSTALL=$ac_install_sh
3952   fi
3953 fi
3954 echo "$as_me:$LINENO: result: $INSTALL" >&5
3955 echo "${ECHO_T}$INSTALL" >&6
3956
3957 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3958 # It thinks the first close brace ends the variable substitution.
3959 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3960
3961 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3962
3963 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3964
3965 if test -n "$ac_tool_prefix"; then
3966   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3967 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3968 echo "$as_me:$LINENO: checking for $ac_word" >&5
3969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3970 if test "${ac_cv_prog_RANLIB+set}" = set; then
3971   echo $ECHO_N "(cached) $ECHO_C" >&6
3972 else
3973   if test -n "$RANLIB"; then
3974   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3975 else
3976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3977 for as_dir in $PATH
3978 do
3979   IFS=$as_save_IFS
3980   test -z "$as_dir" && as_dir=.
3981   for ac_exec_ext in '' $ac_executable_extensions; do
3982   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3983     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3984     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3985     break 2
3986   fi
3987 done
3988 done
3989
3990 fi
3991 fi
3992 RANLIB=$ac_cv_prog_RANLIB
3993 if test -n "$RANLIB"; then
3994   echo "$as_me:$LINENO: result: $RANLIB" >&5
3995 echo "${ECHO_T}$RANLIB" >&6
3996 else
3997   echo "$as_me:$LINENO: result: no" >&5
3998 echo "${ECHO_T}no" >&6
3999 fi
4000
4001 fi
4002 if test -z "$ac_cv_prog_RANLIB"; then
4003   ac_ct_RANLIB=$RANLIB
4004   # Extract the first word of "ranlib", so it can be a program name with args.
4005 set dummy ranlib; ac_word=$2
4006 echo "$as_me:$LINENO: checking for $ac_word" >&5
4007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4008 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4009   echo $ECHO_N "(cached) $ECHO_C" >&6
4010 else
4011   if test -n "$ac_ct_RANLIB"; then
4012   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4013 else
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015 for as_dir in $PATH
4016 do
4017   IFS=$as_save_IFS
4018   test -z "$as_dir" && as_dir=.
4019   for ac_exec_ext in '' $ac_executable_extensions; do
4020   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4021     ac_cv_prog_ac_ct_RANLIB="ranlib"
4022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4023     break 2
4024   fi
4025 done
4026 done
4027
4028   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4029 fi
4030 fi
4031 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4032 if test -n "$ac_ct_RANLIB"; then
4033   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4034 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4035 else
4036   echo "$as_me:$LINENO: result: no" >&5
4037 echo "${ECHO_T}no" >&6
4038 fi
4039
4040   RANLIB=$ac_ct_RANLIB
4041 else
4042   RANLIB="$ac_cv_prog_RANLIB"
4043 fi
4044
4045 if test -n "$ac_tool_prefix"; then
4046   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4047 set dummy ${ac_tool_prefix}ar; ac_word=$2
4048 echo "$as_me:$LINENO: checking for $ac_word" >&5
4049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4050 if test "${ac_cv_prog_AR+set}" = set; then
4051   echo $ECHO_N "(cached) $ECHO_C" >&6
4052 else
4053   if test -n "$AR"; then
4054   ac_cv_prog_AR="$AR" # Let the user override the test.
4055 else
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 for as_dir in $PATH
4058 do
4059   IFS=$as_save_IFS
4060   test -z "$as_dir" && as_dir=.
4061   for ac_exec_ext in '' $ac_executable_extensions; do
4062   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4063     ac_cv_prog_AR="${ac_tool_prefix}ar"
4064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4065     break 2
4066   fi
4067 done
4068 done
4069
4070 fi
4071 fi
4072 AR=$ac_cv_prog_AR
4073 if test -n "$AR"; then
4074   echo "$as_me:$LINENO: result: $AR" >&5
4075 echo "${ECHO_T}$AR" >&6
4076 else
4077   echo "$as_me:$LINENO: result: no" >&5
4078 echo "${ECHO_T}no" >&6
4079 fi
4080
4081 fi
4082 if test -z "$ac_cv_prog_AR"; then
4083   ac_ct_AR=$AR
4084   # Extract the first word of "ar", so it can be a program name with args.
4085 set dummy ar; ac_word=$2
4086 echo "$as_me:$LINENO: checking for $ac_word" >&5
4087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4088 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4089   echo $ECHO_N "(cached) $ECHO_C" >&6
4090 else
4091   if test -n "$ac_ct_AR"; then
4092   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4093 else
4094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095 for as_dir in $PATH
4096 do
4097   IFS=$as_save_IFS
4098   test -z "$as_dir" && as_dir=.
4099   for ac_exec_ext in '' $ac_executable_extensions; do
4100   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4101     ac_cv_prog_ac_ct_AR="ar"
4102     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4103     break 2
4104   fi
4105 done
4106 done
4107
4108   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4109 fi
4110 fi
4111 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4112 if test -n "$ac_ct_AR"; then
4113   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4114 echo "${ECHO_T}$ac_ct_AR" >&6
4115 else
4116   echo "$as_me:$LINENO: result: no" >&5
4117 echo "${ECHO_T}no" >&6
4118 fi
4119
4120   AR=$ac_ct_AR
4121 else
4122   AR="$ac_cv_prog_AR"
4123 fi
4124
4125
4126 echo "$as_me:$LINENO: checking for inline" >&5
4127 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4128 if test "${ac_cv_c_inline+set}" = set; then
4129   echo $ECHO_N "(cached) $ECHO_C" >&6
4130 else
4131   ac_cv_c_inline=no
4132 for ac_kw in inline __inline__ __inline; do
4133   cat >conftest.$ac_ext <<_ACEOF
4134 #line $LINENO "configure"
4135 /* confdefs.h.  */
4136 _ACEOF
4137 cat confdefs.h >>conftest.$ac_ext
4138 cat >>conftest.$ac_ext <<_ACEOF
4139 /* end confdefs.h.  */
4140 #ifndef __cplusplus
4141 typedef int foo_t;
4142 static $ac_kw foo_t static_foo () {return 0; }
4143 $ac_kw foo_t foo () {return 0; }
4144 #endif
4145
4146 _ACEOF
4147 rm -f conftest.$ac_objext
4148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4149   (eval $ac_compile) 2>&5
4150   ac_status=$?
4151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152   (exit $ac_status); } &&
4153          { ac_try='test -s conftest.$ac_objext'
4154   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4155   (eval $ac_try) 2>&5
4156   ac_status=$?
4157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158   (exit $ac_status); }; }; then
4159   ac_cv_c_inline=$ac_kw; break
4160 else
4161   echo "$as_me: failed program was:" >&5
4162 sed 's/^/| /' conftest.$ac_ext >&5
4163
4164 fi
4165 rm -f conftest.$ac_objext conftest.$ac_ext
4166 done
4167
4168 fi
4169 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4170 echo "${ECHO_T}$ac_cv_c_inline" >&6
4171 case $ac_cv_c_inline in
4172   inline | yes) ;;
4173   no)
4174 cat >>confdefs.h <<\_ACEOF
4175 #define inline
4176 _ACEOF
4177  ;;
4178   *)  cat >>confdefs.h <<_ACEOF
4179 #define inline $ac_cv_c_inline
4180 _ACEOF
4181  ;;
4182 esac
4183
4184 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4185 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4186 if test "${ac_cv_c_const+set}" = set; then
4187   echo $ECHO_N "(cached) $ECHO_C" >&6
4188 else
4189   cat >conftest.$ac_ext <<_ACEOF
4190 #line $LINENO "configure"
4191 /* confdefs.h.  */
4192 _ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h.  */
4196
4197 int
4198 main ()
4199 {
4200 /* FIXME: Include the comments suggested by Paul. */
4201 #ifndef __cplusplus
4202   /* Ultrix mips cc rejects this.  */
4203   typedef int charset[2];
4204   const charset x;
4205   /* SunOS 4.1.1 cc rejects this.  */
4206   char const *const *ccp;
4207   char **p;
4208   /* NEC SVR4.0.2 mips cc rejects this.  */
4209   struct point {int x, y;};
4210   static struct point const zero = {0,0};
4211   /* AIX XL C 1.02.0.0 rejects this.
4212      It does not let you subtract one const X* pointer from another in
4213      an arm of an if-expression whose if-part is not a constant
4214      expression */
4215   const char *g = "string";
4216   ccp = &g + (g ? g-g : 0);
4217   /* HPUX 7.0 cc rejects these. */
4218   ++ccp;
4219   p = (char**) ccp;
4220   ccp = (char const *const *) p;
4221   { /* SCO 3.2v4 cc rejects this.  */
4222     char *t;
4223     char const *s = 0 ? (char *) 0 : (char const *) 0;
4224
4225     *t++ = 0;
4226   }
4227   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4228     int x[] = {25, 17};
4229     const int *foo = &x[0];
4230     ++foo;
4231   }
4232   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4233     typedef const int *iptr;
4234     iptr p = 0;
4235     ++p;
4236   }
4237   { /* AIX XL C 1.02.0.0 rejects this saying
4238        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4239     struct s { int j; const int *ap[3]; };
4240     struct s *b; b->j = 5;
4241   }
4242   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4243     const int foo = 10;
4244   }
4245 #endif
4246
4247   ;
4248   return 0;
4249 }
4250 _ACEOF
4251 rm -f conftest.$ac_objext
4252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4253   (eval $ac_compile) 2>&5
4254   ac_status=$?
4255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256   (exit $ac_status); } &&
4257          { ac_try='test -s conftest.$ac_objext'
4258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4259   (eval $ac_try) 2>&5
4260   ac_status=$?
4261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262   (exit $ac_status); }; }; then
4263   ac_cv_c_const=yes
4264 else
4265   echo "$as_me: failed program was:" >&5
4266 sed 's/^/| /' conftest.$ac_ext >&5
4267
4268 ac_cv_c_const=no
4269 fi
4270 rm -f conftest.$ac_objext conftest.$ac_ext
4271 fi
4272 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4273 echo "${ECHO_T}$ac_cv_c_const" >&6
4274 if test $ac_cv_c_const = no; then
4275
4276 cat >>confdefs.h <<\_ACEOF
4277 #define const
4278 _ACEOF
4279
4280 fi
4281
4282
4283 # Extract the first word of "dbx", so it can be a program name with args.
4284 set dummy dbx; ac_word=$2
4285 echo "$as_me:$LINENO: checking for $ac_word" >&5
4286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4287 if test "${ac_cv_path_DBX+set}" = set; then
4288   echo $ECHO_N "(cached) $ECHO_C" >&6
4289 else
4290   case $DBX in
4291   [\\/]* | ?:[\\/]*)
4292   ac_cv_path_DBX="$DBX" # Let the user override the test with a path.
4293   ;;
4294   *)
4295   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 for as_dir in $PATH
4297 do
4298   IFS=$as_save_IFS
4299   test -z "$as_dir" && as_dir=.
4300   for ac_exec_ext in '' $ac_executable_extensions; do
4301   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4302     ac_cv_path_DBX="$as_dir/$ac_word$ac_exec_ext"
4303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4304     break 2
4305   fi
4306 done
4307 done
4308
4309   test -z "$ac_cv_path_DBX" && ac_cv_path_DBX="no"
4310   ;;
4311 esac
4312 fi
4313 DBX=$ac_cv_path_DBX
4314
4315 if test -n "$DBX"; then
4316   echo "$as_me:$LINENO: result: $DBX" >&5
4317 echo "${ECHO_T}$DBX" >&6
4318 else
4319   echo "$as_me:$LINENO: result: no" >&5
4320 echo "${ECHO_T}no" >&6
4321 fi
4322
4323 # Extract the first word of "gdb", so it can be a program name with args.
4324 set dummy gdb; ac_word=$2
4325 echo "$as_me:$LINENO: checking for $ac_word" >&5
4326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4327 if test "${ac_cv_path_GDB+set}" = set; then
4328   echo $ECHO_N "(cached) $ECHO_C" >&6
4329 else
4330   case $GDB in
4331   [\\/]* | ?:[\\/]*)
4332   ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
4333   ;;
4334   *)
4335   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336 for as_dir in $PATH
4337 do
4338   IFS=$as_save_IFS
4339   test -z "$as_dir" && as_dir=.
4340   for ac_exec_ext in '' $ac_executable_extensions; do
4341   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4342     ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
4343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4344     break 2
4345   fi
4346 done
4347 done
4348
4349   test -z "$ac_cv_path_GDB" && ac_cv_path_GDB="no"
4350   ;;
4351 esac
4352 fi
4353 GDB=$ac_cv_path_GDB
4354
4355 if test -n "$GDB"; then
4356   echo "$as_me:$LINENO: result: $GDB" >&5
4357 echo "${ECHO_T}$GDB" >&6
4358 else
4359   echo "$as_me:$LINENO: result: no" >&5
4360 echo "${ECHO_T}no" >&6
4361 fi
4362
4363 # Extract the first word of "sdb", so it can be a program name with args.
4364 set dummy sdb; ac_word=$2
4365 echo "$as_me:$LINENO: checking for $ac_word" >&5
4366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4367 if test "${ac_cv_path_SDB+set}" = set; then
4368   echo $ECHO_N "(cached) $ECHO_C" >&6
4369 else
4370   case $SDB in
4371   [\\/]* | ?:[\\/]*)
4372   ac_cv_path_SDB="$SDB" # Let the user override the test with a path.
4373   ;;
4374   *)
4375   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376 for as_dir in $PATH
4377 do
4378   IFS=$as_save_IFS
4379   test -z "$as_dir" && as_dir=.
4380   for ac_exec_ext in '' $ac_executable_extensions; do
4381   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4382     ac_cv_path_SDB="$as_dir/$ac_word$ac_exec_ext"
4383     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4384     break 2
4385   fi
4386 done
4387 done
4388
4389   test -z "$ac_cv_path_SDB" && ac_cv_path_SDB="no"
4390   ;;
4391 esac
4392 fi
4393 SDB=$ac_cv_path_SDB
4394
4395 if test -n "$SDB"; then
4396   echo "$as_me:$LINENO: result: $SDB" >&5
4397 echo "${ECHO_T}$SDB" >&6
4398 else
4399   echo "$as_me:$LINENO: result: no" >&5
4400 echo "${ECHO_T}no" >&6
4401 fi
4402
4403
4404 if test $GDB != no ; then
4405         DEBUGGER=$GDB
4406 elif test $DBX != no ; then
4407         DEBUGGER=$DBX
4408 elif test $SDB != no ; then
4409         DEBUGGER=$SDB
4410 else
4411         DEBUGGER=no
4412 fi
4413
4414
4415
4416 # The following templates should be used with newer automakes
4417 # instead of acconfig.h
4418 #
4419 #AH_TEMPLATE([sig_atomic_t],
4420 #            [/* Define to `int' if <signal.h> doesn't define.])
4421 #AH_TEMPLATE([HAVE_START_COLOR],
4422 #            [Define if you have start_color, as a function or macro.])
4423 #AH_TEMPLATE([HAVE_TYPEAHEAD],
4424 #            [Define if you have typeahead, as a function or macro.])
4425 #AH_TEMPLATE([HAVE_BKGDSET],
4426 #            [Define if you have bkgdset, as a function or macro.])
4427 #AH_TEMPLATE([HAVE_CURS_SET],
4428 #            [Define if you have curs_set, as a function or macro.])
4429 #AH_TEMPLATE([HAVE_META],
4430 #            [Define if you have meta, as a function or macro.])
4431 #AH_TEMPLATE([HAVE_USE_DEFAULT_COLORS],
4432 #            [Define if you have use_default_colors, as a function or macro.])
4433 #AH_TEMPLATE([HAVE_RESIZETERM],
4434 #            [Define if you have resizeterm, as a function or macro.])
4435 #AH_TEMPLATE([SIG_ATOMIC_VOLATILE_T],
4436 #            [Some systems declare sig_atomic_t as volatile, some others -- no.
4437 #             This define will have value `sig_atomic_t' or
4438 #             `volatile sig_atomic_t' accordingly.])
4439 #AH_TEMPLATE([ICONV_NONTRANS],
4440 #            [Define as 1 if iconv() only converts exactly and we should treat
4441 #             all return values other than (size_t)(-1) as equivalent.])
4442
4443
4444 ac_aux_path_sendmail=/usr/sbin:/usr/lib
4445 # Extract the first word of "sendmail", so it can be a program name with args.
4446 set dummy sendmail; ac_word=$2
4447 echo "$as_me:$LINENO: checking for $ac_word" >&5
4448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4449 if test "${ac_cv_path_SENDMAIL+set}" = set; then
4450   echo $ECHO_N "(cached) $ECHO_C" >&6
4451 else
4452   case $SENDMAIL in
4453   [\\/]* | ?:[\\/]*)
4454   ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
4455   ;;
4456   *)
4457   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 as_dummy="$PATH:$ac_aux_path_sendmail"
4459 for as_dir in $as_dummy
4460 do
4461   IFS=$as_save_IFS
4462   test -z "$as_dir" && as_dir=.
4463   for ac_exec_ext in '' $ac_executable_extensions; do
4464   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4465     ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
4466     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4467     break 2
4468   fi
4469 done
4470 done
4471
4472   test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/sbin/sendmail"
4473   ;;
4474 esac
4475 fi
4476 SENDMAIL=$ac_cv_path_SENDMAIL
4477
4478 if test -n "$SENDMAIL"; then
4479   echo "$as_me:$LINENO: result: $SENDMAIL" >&5
4480 echo "${ECHO_T}$SENDMAIL" >&6
4481 else
4482   echo "$as_me:$LINENO: result: no" >&5
4483 echo "${ECHO_T}no" >&6
4484 fi
4485
4486
4487 cat >>confdefs.h <<_ACEOF
4488 #define SENDMAIL "$ac_cv_path_SENDMAIL"
4489 _ACEOF
4490
4491
4492 OPS='$(srcdir)/OPS'
4493 if test -f $srcdir/EXPORTABLE ; then
4494         SUBVERSION="us"
4495 else
4496         SUBVERSION="i"
4497
4498         # Check whether --enable-pgp or --disable-pgp was given.
4499 if test "${enable_pgp+set}" = set; then
4500   enableval="$enable_pgp"
4501          if test x$enableval = xno ; then
4502                         have_pgp=no
4503                 fi
4504
4505 fi;
4506
4507         if test x$have_pgp != xno ; then
4508
4509 cat >>confdefs.h <<\_ACEOF
4510 #define CRYPT_BACKEND_CLASSIC_PGP 1
4511 _ACEOF
4512
4513                 PGPAUX_TARGET="pgpring pgpewrap"
4514                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pgp.o pgpinvoke.o pgpkey.o pgplib.o gnupgparse.o pgpmicalg.o pgppacket.o"
4515         fi
4516
4517         # Check whether --enable-smime or --disable-smime was given.
4518 if test "${enable_smime+set}" = set; then
4519   enableval="$enable_smime"
4520         if test x$enableval = xno ; then
4521                         have_smime=no
4522                 fi
4523
4524 fi;
4525
4526         if test x$have_smime != xno ; then
4527
4528 cat >>confdefs.h <<\_ACEOF
4529 #define CRYPT_BACKEND_CLASSIC_SMIME 1
4530 _ACEOF
4531
4532                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS smime.o "
4533                 SMIMEAUX_TARGET="smime_keys"
4534         fi
4535
4536
4537 # Check whether --with-mixmaster or --without-mixmaster was given.
4538 if test "${with_mixmaster+set}" = set; then
4539   withval="$with_mixmaster"
4540   if test -x "$withval" ; then
4541                         MIXMASTER="$withval"
4542                  else
4543                         MIXMASTER="mixmaster"
4544                  fi
4545                  OPS="$OPS \$(srcdir)/OPS.MIX"
4546                  MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS remailer.o"
4547
4548 cat >>confdefs.h <<_ACEOF
4549 #define MIXMASTER "$MIXMASTER"
4550 _ACEOF
4551
4552
4553 fi;
4554
4555 fi
4556 # We now require all OPS
4557 OPS="$OPS \$(srcdir)/OPS.PGP \$(srcdir)/OPS.SMIME \$(srcdir)/OPS.CRYPT "
4558
4559
4560
4561
4562
4563
4564
4565 cat >>confdefs.h <<_ACEOF
4566 #define SUBVERSION "$SUBVERSION"
4567 _ACEOF
4568
4569
4570
4571 # Extract the first word of "ispell", so it can be a program name with args.
4572 set dummy ispell; ac_word=$2
4573 echo "$as_me:$LINENO: checking for $ac_word" >&5
4574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4575 if test "${ac_cv_path_ISPELL+set}" = set; then
4576   echo $ECHO_N "(cached) $ECHO_C" >&6
4577 else
4578   case $ISPELL in
4579   [\\/]* | ?:[\\/]*)
4580   ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a path.
4581   ;;
4582   *)
4583   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 for as_dir in $PATH
4585 do
4586   IFS=$as_save_IFS
4587   test -z "$as_dir" && as_dir=.
4588   for ac_exec_ext in '' $ac_executable_extensions; do
4589   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4590     ac_cv_path_ISPELL="$as_dir/$ac_word$ac_exec_ext"
4591     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4592     break 2
4593   fi
4594 done
4595 done
4596
4597   test -z "$ac_cv_path_ISPELL" && ac_cv_path_ISPELL="no"
4598   ;;
4599 esac
4600 fi
4601 ISPELL=$ac_cv_path_ISPELL
4602
4603 if test -n "$ISPELL"; then
4604   echo "$as_me:$LINENO: result: $ISPELL" >&5
4605 echo "${ECHO_T}$ISPELL" >&6
4606 else
4607   echo "$as_me:$LINENO: result: no" >&5
4608 echo "${ECHO_T}no" >&6
4609 fi
4610
4611 if test $ISPELL != no; then
4612
4613 cat >>confdefs.h <<_ACEOF
4614 #define ISPELL "$ISPELL"
4615 _ACEOF
4616
4617 fi
4618
4619
4620 # Check whether --with-slang or --without-slang was given.
4621 if test "${with_slang+set}" = set; then
4622   withval="$with_slang"
4623   echo "$as_me:$LINENO: checking if this is a BSD system" >&5
4624 echo $ECHO_N "checking if this is a BSD system... $ECHO_C" >&6
4625 if test "${mutt_cv_bsdish+set}" = set; then
4626   echo $ECHO_N "(cached) $ECHO_C" >&6
4627 else
4628   if test "$cross_compiling" = yes; then
4629   mutt_cv_bsdish=no
4630 else
4631   cat >conftest.$ac_ext <<_ACEOF
4632 #line $LINENO "configure"
4633 /* confdefs.h.  */
4634 _ACEOF
4635 cat confdefs.h >>conftest.$ac_ext
4636 cat >>conftest.$ac_ext <<_ACEOF
4637 /* end confdefs.h.  */
4638 #include <sys/param.h>
4639
4640 main ()
4641 {
4642 #ifdef BSD
4643         exit (0);
4644 #else
4645         exit (1);
4646 #endif
4647 }
4648 _ACEOF
4649 rm -f conftest$ac_exeext
4650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4651   (eval $ac_link) 2>&5
4652   ac_status=$?
4653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4656   (eval $ac_try) 2>&5
4657   ac_status=$?
4658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659   (exit $ac_status); }; }; then
4660   mutt_cv_bsdish=yes
4661 else
4662   echo "$as_me: program exited with status $ac_status" >&5
4663 echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4665
4666 ( exit $ac_status )
4667 mutt_cv_bsdish=no
4668 fi
4669 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4670 fi
4671 fi
4672 echo "$as_me:$LINENO: result: $mutt_cv_bsdish" >&5
4673 echo "${ECHO_T}$mutt_cv_bsdish" >&6
4674
4675         echo "$as_me:$LINENO: checking for S-Lang" >&5
4676 echo $ECHO_N "checking for S-Lang... $ECHO_C" >&6
4677         if test $withval = yes; then
4678                 if test -d $srcdir/../slang; then
4679                         mutt_cv_slang=$srcdir/../slang/src
4680                         CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
4681                         LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
4682                 else
4683                         if test -d $mutt_cv_prefix/include/slang; then
4684                                 CPPFLAGS="$CPPFLAGS -I$mutt_cv_prefix/include/slang"
4685                         elif test -d /usr/include/slang; then
4686                                 CPPFLAGS="$CPPFLAGS -I/usr/include/slang"
4687                         fi
4688                         mutt_cv_slang=yes
4689                 fi
4690         else
4691                                 if test -f $withval/src/slang.h; then
4692                         mutt_cv_slang=$withval/src
4693                         CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
4694                         LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
4695                 else
4696                                                 mutt_cv_slang=$withval
4697                         if test -d $withval/include/slang; then
4698                                 CPPFLAGS="$CPPFLAGS -I${withval}/include/slang"
4699                         elif test -d $withval/include; then
4700                                 CPPFLAGS="$CPPFLAGS -I${withval}/include"
4701                         fi
4702                         LDFLAGS="$LDFLAGS -L${withval}/lib"
4703                 fi
4704         fi
4705         echo "$as_me:$LINENO: result: $mutt_cv_slang" >&5
4706 echo "${ECHO_T}$mutt_cv_slang" >&6
4707         if test $mutt_cv_bsdish = yes; then
4708
4709 echo "$as_me:$LINENO: checking for main in -ltermlib" >&5
4710 echo $ECHO_N "checking for main in -ltermlib... $ECHO_C" >&6
4711 if test "${ac_cv_lib_termlib_main+set}" = set; then
4712   echo $ECHO_N "(cached) $ECHO_C" >&6
4713 else
4714   ac_check_lib_save_LIBS=$LIBS
4715 LIBS="-ltermlib  $LIBS"
4716 cat >conftest.$ac_ext <<_ACEOF
4717 #line $LINENO "configure"
4718 /* confdefs.h.  */
4719 _ACEOF
4720 cat confdefs.h >>conftest.$ac_ext
4721 cat >>conftest.$ac_ext <<_ACEOF
4722 /* end confdefs.h.  */
4723
4724
4725 int
4726 main ()
4727 {
4728 main ();
4729   ;
4730   return 0;
4731 }
4732 _ACEOF
4733 rm -f conftest.$ac_objext conftest$ac_exeext
4734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4735   (eval $ac_link) 2>&5
4736   ac_status=$?
4737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738   (exit $ac_status); } &&
4739          { ac_try='test -s conftest$ac_exeext'
4740   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741   (eval $ac_try) 2>&5
4742   ac_status=$?
4743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744   (exit $ac_status); }; }; then
4745   ac_cv_lib_termlib_main=yes
4746 else
4747   echo "$as_me: failed program was:" >&5
4748 sed 's/^/| /' conftest.$ac_ext >&5
4749
4750 ac_cv_lib_termlib_main=no
4751 fi
4752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4753 LIBS=$ac_check_lib_save_LIBS
4754 fi
4755 echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_main" >&5
4756 echo "${ECHO_T}$ac_cv_lib_termlib_main" >&6
4757 if test $ac_cv_lib_termlib_main = yes; then
4758   cat >>confdefs.h <<_ACEOF
4759 #define HAVE_LIBTERMLIB 1
4760 _ACEOF
4761
4762   LIBS="-ltermlib $LIBS"
4763
4764 fi
4765
4766         fi
4767
4768 cat >>confdefs.h <<\_ACEOF
4769 #define USE_SLANG_CURSES 1
4770 _ACEOF
4771
4772
4773 cat >>confdefs.h <<\_ACEOF
4774 #define HAVE_COLOR 1
4775 _ACEOF
4776
4777         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
4778
4779
4780         echo "$as_me:$LINENO: checking for SLtt_get_terminfo in -lslang" >&5
4781 echo $ECHO_N "checking for SLtt_get_terminfo in -lslang... $ECHO_C" >&6
4782 if test "${ac_cv_lib_slang_SLtt_get_terminfo+set}" = set; then
4783   echo $ECHO_N "(cached) $ECHO_C" >&6
4784 else
4785   ac_check_lib_save_LIBS=$LIBS
4786 LIBS="-lslang -lm $LIBS"
4787 cat >conftest.$ac_ext <<_ACEOF
4788 #line $LINENO "configure"
4789 /* confdefs.h.  */
4790 _ACEOF
4791 cat confdefs.h >>conftest.$ac_ext
4792 cat >>conftest.$ac_ext <<_ACEOF
4793 /* end confdefs.h.  */
4794
4795 /* Override any gcc2 internal prototype to avoid an error.  */
4796 #ifdef __cplusplus
4797 extern "C"
4798 #endif
4799 /* We use char because int might match the return type of a gcc2
4800    builtin and then its argument prototype would still apply.  */
4801 char SLtt_get_terminfo ();
4802 int
4803 main ()
4804 {
4805 SLtt_get_terminfo ();
4806   ;
4807   return 0;
4808 }
4809 _ACEOF
4810 rm -f conftest.$ac_objext conftest$ac_exeext
4811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4812   (eval $ac_link) 2>&5
4813   ac_status=$?
4814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815   (exit $ac_status); } &&
4816          { ac_try='test -s conftest$ac_exeext'
4817   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4818   (eval $ac_try) 2>&5
4819   ac_status=$?
4820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821   (exit $ac_status); }; }; then
4822   ac_cv_lib_slang_SLtt_get_terminfo=yes
4823 else
4824   echo "$as_me: failed program was:" >&5
4825 sed 's/^/| /' conftest.$ac_ext >&5
4826
4827 ac_cv_lib_slang_SLtt_get_terminfo=no
4828 fi
4829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4830 LIBS=$ac_check_lib_save_LIBS
4831 fi
4832 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLtt_get_terminfo" >&5
4833 echo "${ECHO_T}$ac_cv_lib_slang_SLtt_get_terminfo" >&6
4834 if test $ac_cv_lib_slang_SLtt_get_terminfo = yes; then
4835   MUTTLIBS="$MUTTLIBS -lslang -lm"
4836 else
4837   { { echo "$as_me:$LINENO: error: unable to compile.  check config.log" >&5
4838 echo "$as_me: error: unable to compile.  check config.log" >&2;}
4839    { (exit 1); exit 1; }; }
4840 fi
4841
4842
4843
4844 else
4845   mutt_cv_curses=/usr
4846
4847 # Check whether --with-curses or --without-curses was given.
4848 if test "${with_curses+set}" = set; then
4849   withval="$with_curses"
4850   if test $withval != yes; then
4851                         mutt_cv_curses=$withval
4852                 fi
4853                 if test x$mutt_cv_curses != x/usr; then
4854                         LDFLAGS="-L${mutt_cv_curses}/lib $LDFLAGS"
4855                         CPPFLAGS="$CPPFLAGS -I${mutt_cv_curses}/include"
4856                 fi
4857 fi;
4858
4859         echo "$as_me:$LINENO: checking for initscr" >&5
4860 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
4861 if test "${ac_cv_func_initscr+set}" = set; then
4862   echo $ECHO_N "(cached) $ECHO_C" >&6
4863 else
4864   cat >conftest.$ac_ext <<_ACEOF
4865 #line $LINENO "configure"
4866 /* confdefs.h.  */
4867 _ACEOF
4868 cat confdefs.h >>conftest.$ac_ext
4869 cat >>conftest.$ac_ext <<_ACEOF
4870 /* end confdefs.h.  */
4871 /* System header to define __stub macros and hopefully few prototypes,
4872     which can conflict with char initscr (); below.
4873     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4874     <limits.h> exists even on freestanding compilers.  */
4875 #ifdef __STDC__
4876 # include <limits.h>
4877 #else
4878 # include <assert.h>
4879 #endif
4880 /* Override any gcc2 internal prototype to avoid an error.  */
4881 #ifdef __cplusplus
4882 extern "C"
4883 {
4884 #endif
4885 /* We use char because int might match the return type of a gcc2
4886    builtin and then its argument prototype would still apply.  */
4887 char initscr ();
4888 /* The GNU C library defines this for functions which it implements
4889     to always fail with ENOSYS.  Some functions are actually named
4890     something starting with __ and the normal name is an alias.  */
4891 #if defined (__stub_initscr) || defined (__stub___initscr)
4892 choke me
4893 #else
4894 char (*f) () = initscr;
4895 #endif
4896 #ifdef __cplusplus
4897 }
4898 #endif
4899
4900 int
4901 main ()
4902 {
4903 return f != initscr;
4904   ;
4905   return 0;
4906 }
4907 _ACEOF
4908 rm -f conftest.$ac_objext conftest$ac_exeext
4909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4910   (eval $ac_link) 2>&5
4911   ac_status=$?
4912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913   (exit $ac_status); } &&
4914          { ac_try='test -s conftest$ac_exeext'
4915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4916   (eval $ac_try) 2>&5
4917   ac_status=$?
4918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919   (exit $ac_status); }; }; then
4920   ac_cv_func_initscr=yes
4921 else
4922   echo "$as_me: failed program was:" >&5
4923 sed 's/^/| /' conftest.$ac_ext >&5
4924
4925 ac_cv_func_initscr=no
4926 fi
4927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4928 fi
4929 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
4930 echo "${ECHO_T}$ac_cv_func_initscr" >&6
4931 if test $ac_cv_func_initscr = yes; then
4932   :
4933 else
4934
4935         cf_ncurses="ncurses"
4936         for lib in ncurses ncursesw
4937         do
4938                 as_ac_Lib=`echo "ac_cv_lib_$lib''_waddnwstr" | $as_tr_sh`
4939 echo "$as_me:$LINENO: checking for waddnwstr in -l$lib" >&5
4940 echo $ECHO_N "checking for waddnwstr in -l$lib... $ECHO_C" >&6
4941 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
4942   echo $ECHO_N "(cached) $ECHO_C" >&6
4943 else
4944   ac_check_lib_save_LIBS=$LIBS
4945 LIBS="-l$lib  $LIBS"
4946 cat >conftest.$ac_ext <<_ACEOF
4947 #line $LINENO "configure"
4948 /* confdefs.h.  */
4949 _ACEOF
4950 cat confdefs.h >>conftest.$ac_ext
4951 cat >>conftest.$ac_ext <<_ACEOF
4952 /* end confdefs.h.  */
4953
4954 /* Override any gcc2 internal prototype to avoid an error.  */
4955 #ifdef __cplusplus
4956 extern "C"
4957 #endif
4958 /* We use char because int might match the return type of a gcc2
4959    builtin and then its argument prototype would still apply.  */
4960 char waddnwstr ();
4961 int
4962 main ()
4963 {
4964 waddnwstr ();
4965   ;
4966   return 0;
4967 }
4968 _ACEOF
4969 rm -f conftest.$ac_objext conftest$ac_exeext
4970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4971   (eval $ac_link) 2>&5
4972   ac_status=$?
4973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974   (exit $ac_status); } &&
4975          { ac_try='test -s conftest$ac_exeext'
4976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4977   (eval $ac_try) 2>&5
4978   ac_status=$?
4979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980   (exit $ac_status); }; }; then
4981   eval "$as_ac_Lib=yes"
4982 else
4983   echo "$as_me: failed program was:" >&5
4984 sed 's/^/| /' conftest.$ac_ext >&5
4985
4986 eval "$as_ac_Lib=no"
4987 fi
4988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4989 LIBS=$ac_check_lib_save_LIBS
4990 fi
4991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
4992 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
4993 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
4994   cf_ncurses="$lib"; break
4995 fi
4996
4997         done
4998         as_ac_Lib=`echo "ac_cv_lib_$cf_ncurses''_initscr" | $as_tr_sh`
4999 echo "$as_me:$LINENO: checking for initscr in -l$cf_ncurses" >&5
5000 echo $ECHO_N "checking for initscr in -l$cf_ncurses... $ECHO_C" >&6
5001 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5002   echo $ECHO_N "(cached) $ECHO_C" >&6
5003 else
5004   ac_check_lib_save_LIBS=$LIBS
5005 LIBS="-l$cf_ncurses  $LIBS"
5006 cat >conftest.$ac_ext <<_ACEOF
5007 #line $LINENO "configure"
5008 /* confdefs.h.  */
5009 _ACEOF
5010 cat confdefs.h >>conftest.$ac_ext
5011 cat >>conftest.$ac_ext <<_ACEOF
5012 /* end confdefs.h.  */
5013
5014 /* Override any gcc2 internal prototype to avoid an error.  */
5015 #ifdef __cplusplus
5016 extern "C"
5017 #endif
5018 /* We use char because int might match the return type of a gcc2
5019    builtin and then its argument prototype would still apply.  */
5020 char initscr ();
5021 int
5022 main ()
5023 {
5024 initscr ();
5025   ;
5026   return 0;
5027 }
5028 _ACEOF
5029 rm -f conftest.$ac_objext conftest$ac_exeext
5030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5031   (eval $ac_link) 2>&5
5032   ac_status=$?
5033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034   (exit $ac_status); } &&
5035          { ac_try='test -s conftest$ac_exeext'
5036   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037   (eval $ac_try) 2>&5
5038   ac_status=$?
5039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040   (exit $ac_status); }; }; then
5041   eval "$as_ac_Lib=yes"
5042 else
5043   echo "$as_me: failed program was:" >&5
5044 sed 's/^/| /' conftest.$ac_ext >&5
5045
5046 eval "$as_ac_Lib=no"
5047 fi
5048 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5049 LIBS=$ac_check_lib_save_LIBS
5050 fi
5051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5052 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5053 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5054   MUTTLIBS="$MUTTLIBS -l$cf_ncurses"
5055                 if test x$mutt_cv_curses = x/usr -a -d /usr/include/ncurses; then
5056                         CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
5057                 fi
5058
5059                 if test "$cf_ncurses" = ncursesw; then
5060
5061 for ac_header in ncursesw/ncurses.h
5062 do
5063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5065   echo "$as_me:$LINENO: checking for $ac_header" >&5
5066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5068   echo $ECHO_N "(cached) $ECHO_C" >&6
5069 fi
5070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5072 else
5073   # Is the header compilable?
5074 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5075 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5076 cat >conftest.$ac_ext <<_ACEOF
5077 #line $LINENO "configure"
5078 /* confdefs.h.  */
5079 _ACEOF
5080 cat confdefs.h >>conftest.$ac_ext
5081 cat >>conftest.$ac_ext <<_ACEOF
5082 /* end confdefs.h.  */
5083 $ac_includes_default
5084 #include <$ac_header>
5085 _ACEOF
5086 rm -f conftest.$ac_objext
5087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5088   (eval $ac_compile) 2>&5
5089   ac_status=$?
5090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091   (exit $ac_status); } &&
5092          { ac_try='test -s conftest.$ac_objext'
5093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5094   (eval $ac_try) 2>&5
5095   ac_status=$?
5096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097   (exit $ac_status); }; }; then
5098   ac_header_compiler=yes
5099 else
5100   echo "$as_me: failed program was:" >&5
5101 sed 's/^/| /' conftest.$ac_ext >&5
5102
5103 ac_header_compiler=no
5104 fi
5105 rm -f conftest.$ac_objext conftest.$ac_ext
5106 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5107 echo "${ECHO_T}$ac_header_compiler" >&6
5108
5109 # Is the header present?
5110 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5112 cat >conftest.$ac_ext <<_ACEOF
5113 #line $LINENO "configure"
5114 /* confdefs.h.  */
5115 _ACEOF
5116 cat confdefs.h >>conftest.$ac_ext
5117 cat >>conftest.$ac_ext <<_ACEOF
5118 /* end confdefs.h.  */
5119 #include <$ac_header>
5120 _ACEOF
5121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5122   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5123   ac_status=$?
5124   grep -v '^ *+' conftest.er1 >conftest.err
5125   rm -f conftest.er1
5126   cat conftest.err >&5
5127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128   (exit $ac_status); } >/dev/null; then
5129   if test -s conftest.err; then
5130     ac_cpp_err=$ac_c_preproc_warn_flag
5131   else
5132     ac_cpp_err=
5133   fi
5134 else
5135   ac_cpp_err=yes
5136 fi
5137 if test -z "$ac_cpp_err"; then
5138   ac_header_preproc=yes
5139 else
5140   echo "$as_me: failed program was:" >&5
5141 sed 's/^/| /' conftest.$ac_ext >&5
5142
5143   ac_header_preproc=no
5144 fi
5145 rm -f conftest.err conftest.$ac_ext
5146 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5147 echo "${ECHO_T}$ac_header_preproc" >&6
5148
5149 # So?  What about this header?
5150 case $ac_header_compiler:$ac_header_preproc in
5151   yes:no )
5152     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5153 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5154     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5156     (
5157       cat <<\_ASBOX
5158 ## ------------------------------------ ##
5159 ## Report this to bug-autoconf@gnu.org. ##
5160 ## ------------------------------------ ##
5161 _ASBOX
5162     ) |
5163       sed "s/^/$as_me: WARNING:     /" >&2
5164     ;;
5165   no:yes )
5166     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5167 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5168     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5169 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5170     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5172     (
5173       cat <<\_ASBOX
5174 ## ------------------------------------ ##
5175 ## Report this to bug-autoconf@gnu.org. ##
5176 ## ------------------------------------ ##
5177 _ASBOX
5178     ) |
5179       sed "s/^/$as_me: WARNING:     /" >&2
5180     ;;
5181 esac
5182 echo "$as_me:$LINENO: checking for $ac_header" >&5
5183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5185   echo $ECHO_N "(cached) $ECHO_C" >&6
5186 else
5187   eval "$as_ac_Header=$ac_header_preproc"
5188 fi
5189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5191
5192 fi
5193 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5194   cat >>confdefs.h <<_ACEOF
5195 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5196 _ACEOF
5197  cf_cv_ncurses_header="ncursesw/ncurses.h"
5198 fi
5199
5200 done
5201
5202                 else
5203
5204 for ac_header in ncurses.h
5205 do
5206 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5208   echo "$as_me:$LINENO: checking for $ac_header" >&5
5209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5210 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5211   echo $ECHO_N "(cached) $ECHO_C" >&6
5212 fi
5213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5215 else
5216   # Is the header compilable?
5217 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5218 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5219 cat >conftest.$ac_ext <<_ACEOF
5220 #line $LINENO "configure"
5221 /* confdefs.h.  */
5222 _ACEOF
5223 cat confdefs.h >>conftest.$ac_ext
5224 cat >>conftest.$ac_ext <<_ACEOF
5225 /* end confdefs.h.  */
5226 $ac_includes_default
5227 #include <$ac_header>
5228 _ACEOF
5229 rm -f conftest.$ac_objext
5230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5231   (eval $ac_compile) 2>&5
5232   ac_status=$?
5233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234   (exit $ac_status); } &&
5235          { ac_try='test -s conftest.$ac_objext'
5236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5237   (eval $ac_try) 2>&5
5238   ac_status=$?
5239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240   (exit $ac_status); }; }; then
5241   ac_header_compiler=yes
5242 else
5243   echo "$as_me: failed program was:" >&5
5244 sed 's/^/| /' conftest.$ac_ext >&5
5245
5246 ac_header_compiler=no
5247 fi
5248 rm -f conftest.$ac_objext conftest.$ac_ext
5249 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5250 echo "${ECHO_T}$ac_header_compiler" >&6
5251
5252 # Is the header present?
5253 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5255 cat >conftest.$ac_ext <<_ACEOF
5256 #line $LINENO "configure"
5257 /* confdefs.h.  */
5258 _ACEOF
5259 cat confdefs.h >>conftest.$ac_ext
5260 cat >>conftest.$ac_ext <<_ACEOF
5261 /* end confdefs.h.  */
5262 #include <$ac_header>
5263 _ACEOF
5264 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5265   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5266   ac_status=$?
5267   grep -v '^ *+' conftest.er1 >conftest.err
5268   rm -f conftest.er1
5269   cat conftest.err >&5
5270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271   (exit $ac_status); } >/dev/null; then
5272   if test -s conftest.err; then
5273     ac_cpp_err=$ac_c_preproc_warn_flag
5274   else
5275     ac_cpp_err=
5276   fi
5277 else
5278   ac_cpp_err=yes
5279 fi
5280 if test -z "$ac_cpp_err"; then
5281   ac_header_preproc=yes
5282 else
5283   echo "$as_me: failed program was:" >&5
5284 sed 's/^/| /' conftest.$ac_ext >&5
5285
5286   ac_header_preproc=no
5287 fi
5288 rm -f conftest.err conftest.$ac_ext
5289 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5290 echo "${ECHO_T}$ac_header_preproc" >&6
5291
5292 # So?  What about this header?
5293 case $ac_header_compiler:$ac_header_preproc in
5294   yes:no )
5295     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5297     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5299     (
5300       cat <<\_ASBOX
5301 ## ------------------------------------ ##
5302 ## Report this to bug-autoconf@gnu.org. ##
5303 ## ------------------------------------ ##
5304 _ASBOX
5305     ) |
5306       sed "s/^/$as_me: WARNING:     /" >&2
5307     ;;
5308   no:yes )
5309     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5310 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5311     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5312 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5313     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5314 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5315     (
5316       cat <<\_ASBOX
5317 ## ------------------------------------ ##
5318 ## Report this to bug-autoconf@gnu.org. ##
5319 ## ------------------------------------ ##
5320 _ASBOX
5321     ) |
5322       sed "s/^/$as_me: WARNING:     /" >&2
5323     ;;
5324 esac
5325 echo "$as_me:$LINENO: checking for $ac_header" >&5
5326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5328   echo $ECHO_N "(cached) $ECHO_C" >&6
5329 else
5330   eval "$as_ac_Header=$ac_header_preproc"
5331 fi
5332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5334
5335 fi
5336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5337   cat >>confdefs.h <<_ACEOF
5338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5339 _ACEOF
5340  cf_cv_ncurses_header="ncurses.h"
5341 fi
5342
5343 done
5344
5345                 fi
5346 else
5347
5348 echo "$as_me:$LINENO: checking for initscr" >&5
5349 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
5350 if test "${ac_cv_func_initscr+set}" = set; then
5351   echo $ECHO_N "(cached) $ECHO_C" >&6
5352 else
5353   cat >conftest.$ac_ext <<_ACEOF
5354 #line $LINENO "configure"
5355 /* confdefs.h.  */
5356 _ACEOF
5357 cat confdefs.h >>conftest.$ac_ext
5358 cat >>conftest.$ac_ext <<_ACEOF
5359 /* end confdefs.h.  */
5360 /* System header to define __stub macros and hopefully few prototypes,
5361     which can conflict with char initscr (); below.
5362     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5363     <limits.h> exists even on freestanding compilers.  */
5364 #ifdef __STDC__
5365 # include <limits.h>
5366 #else
5367 # include <assert.h>
5368 #endif
5369 /* Override any gcc2 internal prototype to avoid an error.  */
5370 #ifdef __cplusplus
5371 extern "C"
5372 {
5373 #endif
5374 /* We use char because int might match the return type of a gcc2
5375    builtin and then its argument prototype would still apply.  */
5376 char initscr ();
5377 /* The GNU C library defines this for functions which it implements
5378     to always fail with ENOSYS.  Some functions are actually named
5379     something starting with __ and the normal name is an alias.  */
5380 #if defined (__stub_initscr) || defined (__stub___initscr)
5381 choke me
5382 #else
5383 char (*f) () = initscr;
5384 #endif
5385 #ifdef __cplusplus
5386 }
5387 #endif
5388
5389 int
5390 main ()
5391 {
5392 return f != initscr;
5393   ;
5394   return 0;
5395 }
5396 _ACEOF
5397 rm -f conftest.$ac_objext conftest$ac_exeext
5398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5399   (eval $ac_link) 2>&5
5400   ac_status=$?
5401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402   (exit $ac_status); } &&
5403          { ac_try='test -s conftest$ac_exeext'
5404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5405   (eval $ac_try) 2>&5
5406   ac_status=$?
5407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408   (exit $ac_status); }; }; then
5409   ac_cv_func_initscr=yes
5410 else
5411   echo "$as_me: failed program was:" >&5
5412 sed 's/^/| /' conftest.$ac_ext >&5
5413
5414 ac_cv_func_initscr=no
5415 fi
5416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5417 fi
5418 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
5419 echo "${ECHO_T}$ac_cv_func_initscr" >&6
5420 if test $ac_cv_func_initscr = yes; then
5421   :
5422 else
5423
5424 case $host_os in #(vi
5425 freebsd*) #(vi
5426         echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5
5427 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
5428 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
5429   echo $ECHO_N "(cached) $ECHO_C" >&6
5430 else
5431   ac_check_lib_save_LIBS=$LIBS
5432 LIBS="-lmytinfo  $LIBS"
5433 cat >conftest.$ac_ext <<_ACEOF
5434 #line $LINENO "configure"
5435 /* confdefs.h.  */
5436 _ACEOF
5437 cat confdefs.h >>conftest.$ac_ext
5438 cat >>conftest.$ac_ext <<_ACEOF
5439 /* end confdefs.h.  */
5440
5441 /* Override any gcc2 internal prototype to avoid an error.  */
5442 #ifdef __cplusplus
5443 extern "C"
5444 #endif
5445 /* We use char because int might match the return type of a gcc2
5446    builtin and then its argument prototype would still apply.  */
5447 char tgoto ();
5448 int
5449 main ()
5450 {
5451 tgoto ();
5452   ;
5453   return 0;
5454 }
5455 _ACEOF
5456 rm -f conftest.$ac_objext conftest$ac_exeext
5457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5458   (eval $ac_link) 2>&5
5459   ac_status=$?
5460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461   (exit $ac_status); } &&
5462          { ac_try='test -s conftest$ac_exeext'
5463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5464   (eval $ac_try) 2>&5
5465   ac_status=$?
5466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467   (exit $ac_status); }; }; then
5468   ac_cv_lib_mytinfo_tgoto=yes
5469 else
5470   echo "$as_me: failed program was:" >&5
5471 sed 's/^/| /' conftest.$ac_ext >&5
5472
5473 ac_cv_lib_mytinfo_tgoto=no
5474 fi
5475 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5476 LIBS=$ac_check_lib_save_LIBS
5477 fi
5478 echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5
5479 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
5480 if test $ac_cv_lib_mytinfo_tgoto = yes; then
5481   LIBS="-lmytinfo $LIBS"
5482 fi
5483
5484         ;;
5485 hpux10.*|hpux11.*)
5486         echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5
5487 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
5488 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
5489   echo $ECHO_N "(cached) $ECHO_C" >&6
5490 else
5491   ac_check_lib_save_LIBS=$LIBS
5492 LIBS="-lcur_colr  $LIBS"
5493 cat >conftest.$ac_ext <<_ACEOF
5494 #line $LINENO "configure"
5495 /* confdefs.h.  */
5496 _ACEOF
5497 cat confdefs.h >>conftest.$ac_ext
5498 cat >>conftest.$ac_ext <<_ACEOF
5499 /* end confdefs.h.  */
5500
5501 /* Override any gcc2 internal prototype to avoid an error.  */
5502 #ifdef __cplusplus
5503 extern "C"
5504 #endif
5505 /* We use char because int might match the return type of a gcc2
5506    builtin and then its argument prototype would still apply.  */
5507 char initscr ();
5508 int
5509 main ()
5510 {
5511 initscr ();
5512   ;
5513   return 0;
5514 }
5515 _ACEOF
5516 rm -f conftest.$ac_objext conftest$ac_exeext
5517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5518   (eval $ac_link) 2>&5
5519   ac_status=$?
5520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521   (exit $ac_status); } &&
5522          { ac_try='test -s conftest$ac_exeext'
5523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5524   (eval $ac_try) 2>&5
5525   ac_status=$?
5526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527   (exit $ac_status); }; }; then
5528   ac_cv_lib_cur_colr_initscr=yes
5529 else
5530   echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.$ac_ext >&5
5532
5533 ac_cv_lib_cur_colr_initscr=no
5534 fi
5535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5536 LIBS=$ac_check_lib_save_LIBS
5537 fi
5538 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5
5539 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
5540 if test $ac_cv_lib_cur_colr_initscr = yes; then
5541
5542                 LIBS="-lcur_colr $LIBS"
5543                 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
5544                 ac_cv_func_initscr=yes
5545
5546 else
5547
5548         echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5
5549 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
5550 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
5551   echo $ECHO_N "(cached) $ECHO_C" >&6
5552 else
5553   ac_check_lib_save_LIBS=$LIBS
5554 LIBS="-lHcurses  $LIBS"
5555 cat >conftest.$ac_ext <<_ACEOF
5556 #line $LINENO "configure"
5557 /* confdefs.h.  */
5558 _ACEOF
5559 cat confdefs.h >>conftest.$ac_ext
5560 cat >>conftest.$ac_ext <<_ACEOF
5561 /* end confdefs.h.  */
5562
5563 /* Override any gcc2 internal prototype to avoid an error.  */
5564 #ifdef __cplusplus
5565 extern "C"
5566 #endif
5567 /* We use char because int might match the return type of a gcc2
5568    builtin and then its argument prototype would still apply.  */
5569 char initscr ();
5570 int
5571 main ()
5572 {
5573 initscr ();
5574   ;
5575   return 0;
5576 }
5577 _ACEOF
5578 rm -f conftest.$ac_objext conftest$ac_exeext
5579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5580   (eval $ac_link) 2>&5
5581   ac_status=$?
5582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583   (exit $ac_status); } &&
5584          { ac_try='test -s conftest$ac_exeext'
5585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5586   (eval $ac_try) 2>&5
5587   ac_status=$?
5588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589   (exit $ac_status); }; }; then
5590   ac_cv_lib_Hcurses_initscr=yes
5591 else
5592   echo "$as_me: failed program was:" >&5
5593 sed 's/^/| /' conftest.$ac_ext >&5
5594
5595 ac_cv_lib_Hcurses_initscr=no
5596 fi
5597 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5598 LIBS=$ac_check_lib_save_LIBS
5599 fi
5600 echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5
5601 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
5602 if test $ac_cv_lib_Hcurses_initscr = yes; then
5603
5604                 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
5605                 LIBS="-lHcurses $LIBS"
5606                 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
5607                 ac_cv_func_initscr=yes
5608
5609 fi
5610
5611 fi
5612
5613         ;;
5614 linux*) # Suse Linux does not follow /usr/lib convention
5615         LIBS="$LIBS -L/lib"
5616         ;;
5617 esac
5618
5619 if test ".$With5lib" != ".no" ; then
5620 if test -d /usr/5lib ; then
5621         # SunOS 3.x or 4.x
5622         CPPFLAGS="$CPPFLAGS -I/usr/5include"
5623         LIBS="$LIBS -L/usr/5lib"
5624 fi
5625 fi
5626
5627 if test ".$ac_cv_func_initscr" != .yes ; then
5628         cf_save_LIBS="$LIBS"
5629         cf_term_lib=""
5630         cf_curs_lib=""
5631
5632         # Check for library containing tgoto.  Do this before curses library
5633         # because it may be needed to link the test-case for initscr.
5634         echo "$as_me:$LINENO: checking for tgoto" >&5
5635 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
5636 if test "${ac_cv_func_tgoto+set}" = set; then
5637   echo $ECHO_N "(cached) $ECHO_C" >&6
5638 else
5639   cat >conftest.$ac_ext <<_ACEOF
5640 #line $LINENO "configure"
5641 /* confdefs.h.  */
5642 _ACEOF
5643 cat confdefs.h >>conftest.$ac_ext
5644 cat >>conftest.$ac_ext <<_ACEOF
5645 /* end confdefs.h.  */
5646 /* System header to define __stub macros and hopefully few prototypes,
5647     which can conflict with char tgoto (); below.
5648     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5649     <limits.h> exists even on freestanding compilers.  */
5650 #ifdef __STDC__
5651 # include <limits.h>
5652 #else
5653 # include <assert.h>
5654 #endif
5655 /* Override any gcc2 internal prototype to avoid an error.  */
5656 #ifdef __cplusplus
5657 extern "C"
5658 {
5659 #endif
5660 /* We use char because int might match the return type of a gcc2
5661    builtin and then its argument prototype would still apply.  */
5662 char tgoto ();
5663 /* The GNU C library defines this for functions which it implements
5664     to always fail with ENOSYS.  Some functions are actually named
5665     something starting with __ and the normal name is an alias.  */
5666 #if defined (__stub_tgoto) || defined (__stub___tgoto)
5667 choke me
5668 #else
5669 char (*f) () = tgoto;
5670 #endif
5671 #ifdef __cplusplus
5672 }
5673 #endif
5674
5675 int
5676 main ()
5677 {
5678 return f != tgoto;
5679   ;
5680   return 0;
5681 }
5682 _ACEOF
5683 rm -f conftest.$ac_objext conftest$ac_exeext
5684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5685   (eval $ac_link) 2>&5
5686   ac_status=$?
5687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688   (exit $ac_status); } &&
5689          { ac_try='test -s conftest$ac_exeext'
5690   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5691   (eval $ac_try) 2>&5
5692   ac_status=$?
5693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694   (exit $ac_status); }; }; then
5695   ac_cv_func_tgoto=yes
5696 else
5697   echo "$as_me: failed program was:" >&5
5698 sed 's/^/| /' conftest.$ac_ext >&5
5699
5700 ac_cv_func_tgoto=no
5701 fi
5702 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5703 fi
5704 echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5
5705 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
5706 if test $ac_cv_func_tgoto = yes; then
5707   cf_term_lib=predefined
5708 else
5709
5710                 for cf_term_lib in termcap termlib unknown
5711                 do
5712                         as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
5713 echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5
5714 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
5715 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5716   echo $ECHO_N "(cached) $ECHO_C" >&6
5717 else
5718   ac_check_lib_save_LIBS=$LIBS
5719 LIBS="-l$cf_term_lib  $LIBS"
5720 cat >conftest.$ac_ext <<_ACEOF
5721 #line $LINENO "configure"
5722 /* confdefs.h.  */
5723 _ACEOF
5724 cat confdefs.h >>conftest.$ac_ext
5725 cat >>conftest.$ac_ext <<_ACEOF
5726 /* end confdefs.h.  */
5727
5728 /* Override any gcc2 internal prototype to avoid an error.  */
5729 #ifdef __cplusplus
5730 extern "C"
5731 #endif
5732 /* We use char because int might match the return type of a gcc2
5733    builtin and then its argument prototype would still apply.  */
5734 char tgoto ();
5735 int
5736 main ()
5737 {
5738 tgoto ();
5739   ;
5740   return 0;
5741 }
5742 _ACEOF
5743 rm -f conftest.$ac_objext conftest$ac_exeext
5744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5745   (eval $ac_link) 2>&5
5746   ac_status=$?
5747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748   (exit $ac_status); } &&
5749          { ac_try='test -s conftest$ac_exeext'
5750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5751   (eval $ac_try) 2>&5
5752   ac_status=$?
5753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754   (exit $ac_status); }; }; then
5755   eval "$as_ac_Lib=yes"
5756 else
5757   echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5759
5760 eval "$as_ac_Lib=no"
5761 fi
5762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5763 LIBS=$ac_check_lib_save_LIBS
5764 fi
5765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5766 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5767 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5768   break
5769 fi
5770
5771                 done
5772
5773 fi
5774
5775
5776         # Check for library containing initscr
5777         test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
5778         for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
5779         do
5780                 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
5781 echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5
5782 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
5783 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5784   echo $ECHO_N "(cached) $ECHO_C" >&6
5785 else
5786   ac_check_lib_save_LIBS=$LIBS
5787 LIBS="-l$cf_curs_lib  $LIBS"
5788 cat >conftest.$ac_ext <<_ACEOF
5789 #line $LINENO "configure"
5790 /* confdefs.h.  */
5791 _ACEOF
5792 cat confdefs.h >>conftest.$ac_ext
5793 cat >>conftest.$ac_ext <<_ACEOF
5794 /* end confdefs.h.  */
5795
5796 /* Override any gcc2 internal prototype to avoid an error.  */
5797 #ifdef __cplusplus
5798 extern "C"
5799 #endif
5800 /* We use char because int might match the return type of a gcc2
5801    builtin and then its argument prototype would still apply.  */
5802 char initscr ();
5803 int
5804 main ()
5805 {
5806 initscr ();
5807   ;
5808   return 0;
5809 }
5810 _ACEOF
5811 rm -f conftest.$ac_objext conftest$ac_exeext
5812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5813   (eval $ac_link) 2>&5
5814   ac_status=$?
5815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816   (exit $ac_status); } &&
5817          { ac_try='test -s conftest$ac_exeext'
5818   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5819   (eval $ac_try) 2>&5
5820   ac_status=$?
5821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822   (exit $ac_status); }; }; then
5823   eval "$as_ac_Lib=yes"
5824 else
5825   echo "$as_me: failed program was:" >&5
5826 sed 's/^/| /' conftest.$ac_ext >&5
5827
5828 eval "$as_ac_Lib=no"
5829 fi
5830 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5831 LIBS=$ac_check_lib_save_LIBS
5832 fi
5833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5834 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5835 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5836   break
5837 fi
5838
5839         done
5840         test $cf_curs_lib = unknown && { { echo "$as_me:$LINENO: error: no curses library found" >&5
5841 echo "$as_me: error: no curses library found" >&2;}
5842    { (exit 1); exit 1; }; }
5843
5844         LIBS="-l$cf_curs_lib $cf_save_LIBS"
5845         if test "$cf_term_lib" = unknown ; then
5846                 echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5
5847 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
5848                 cat >conftest.$ac_ext <<_ACEOF
5849 #line $LINENO "configure"
5850 /* confdefs.h.  */
5851 _ACEOF
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h.  */
5855 #include <${cf_cv_ncurses_header-curses.h}>
5856 int
5857 main ()
5858 {
5859 initscr()
5860   ;
5861   return 0;
5862 }
5863 _ACEOF
5864 rm -f conftest.$ac_objext conftest$ac_exeext
5865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5866   (eval $ac_link) 2>&5
5867   ac_status=$?
5868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5869   (exit $ac_status); } &&
5870          { ac_try='test -s conftest$ac_exeext'
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   cf_result=yes
5877 else
5878   echo "$as_me: failed program was:" >&5
5879 sed 's/^/| /' conftest.$ac_ext >&5
5880
5881 cf_result=no
5882 fi
5883 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5884                 echo "$as_me:$LINENO: result: $cf_result" >&5
5885 echo "${ECHO_T}$cf_result" >&6
5886                 test $cf_result = no && { { echo "$as_me:$LINENO: error: Cannot link curses library" >&5
5887 echo "$as_me: error: Cannot link curses library" >&2;}
5888    { (exit 1); exit 1; }; }
5889         elif test "$cf_term_lib" != predefined ; then
5890                 echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
5891 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
5892                 cat >conftest.$ac_ext <<_ACEOF
5893 #line $LINENO "configure"
5894 /* confdefs.h.  */
5895 _ACEOF
5896 cat confdefs.h >>conftest.$ac_ext
5897 cat >>conftest.$ac_ext <<_ACEOF
5898 /* end confdefs.h.  */
5899 #include <${cf_cv_ncurses_header-curses.h}>
5900 int
5901 main ()
5902 {
5903 initscr(); tgoto((char *)0, 0, 0);
5904   ;
5905   return 0;
5906 }
5907 _ACEOF
5908 rm -f conftest.$ac_objext conftest$ac_exeext
5909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5910   (eval $ac_link) 2>&5
5911   ac_status=$?
5912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913   (exit $ac_status); } &&
5914          { ac_try='test -s conftest$ac_exeext'
5915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5916   (eval $ac_try) 2>&5
5917   ac_status=$?
5918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919   (exit $ac_status); }; }; then
5920   cf_result=no
5921 else
5922   echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5924
5925
5926                         LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
5927                         cat >conftest.$ac_ext <<_ACEOF
5928 #line $LINENO "configure"
5929 /* confdefs.h.  */
5930 _ACEOF
5931 cat confdefs.h >>conftest.$ac_ext
5932 cat >>conftest.$ac_ext <<_ACEOF
5933 /* end confdefs.h.  */
5934 #include <${cf_cv_ncurses_header-curses.h}>
5935 int
5936 main ()
5937 {
5938 initscr()
5939   ;
5940   return 0;
5941 }
5942 _ACEOF
5943 rm -f conftest.$ac_objext conftest$ac_exeext
5944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5945   (eval $ac_link) 2>&5
5946   ac_status=$?
5947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948   (exit $ac_status); } &&
5949          { ac_try='test -s conftest$ac_exeext'
5950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5951   (eval $ac_try) 2>&5
5952   ac_status=$?
5953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5954   (exit $ac_status); }; }; then
5955   cf_result=yes
5956 else
5957   echo "$as_me: failed program was:" >&5
5958 sed 's/^/| /' conftest.$ac_ext >&5
5959
5960 cf_result=error
5961 fi
5962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5963
5964 fi
5965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5966                 echo "$as_me:$LINENO: result: $cf_result" >&5
5967 echo "${ECHO_T}$cf_result" >&6
5968         fi
5969 fi
5970
5971
5972 fi
5973
5974 fi
5975
5976
5977 fi
5978
5979
5980         old_LIBS="$LIBS"
5981         LIBS="$LIBS $MUTTLIBS"
5982         for ac_func in start_color typeahead bkgdset curs_set meta use_default_colors resizeterm
5983 do
5984
5985 echo "$as_me:$LINENO: checking for $ac_func declaration" >&5
5986 echo $ECHO_N "checking for $ac_func declaration... $ECHO_C" >&6
5987 if eval "test \"\${ac_cv_func_decl_$ac_func+set}\" = set"; then
5988   echo $ECHO_N "(cached) $ECHO_C" >&6
5989 else
5990   cat >conftest.$ac_ext <<_ACEOF
5991 #line $LINENO "configure"
5992 /* confdefs.h.  */
5993 _ACEOF
5994 cat confdefs.h >>conftest.$ac_ext
5995 cat >>conftest.$ac_ext <<_ACEOF
5996 /* end confdefs.h.  */
5997 #include <${cf_cv_ncurses_header-curses.h}>
5998 int
5999 main ()
6000 {
6001 #ifndef ${ac_func}
6002 extern  int     ${ac_func}();
6003 #endif
6004   ;
6005   return 0;
6006 }
6007 _ACEOF
6008 rm -f conftest.$ac_objext
6009 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6010   (eval $ac_compile) 2>&5
6011   ac_status=$?
6012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013   (exit $ac_status); } &&
6014          { ac_try='test -s conftest.$ac_objext'
6015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6016   (eval $ac_try) 2>&5
6017   ac_status=$?
6018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6019   (exit $ac_status); }; }; then
6020
6021 cat >conftest.$ac_ext <<_ACEOF
6022 #line $LINENO "configure"
6023 /* confdefs.h.  */
6024 _ACEOF
6025 cat confdefs.h >>conftest.$ac_ext
6026 cat >>conftest.$ac_ext <<_ACEOF
6027 /* end confdefs.h.  */
6028 #include <${cf_cv_ncurses_header-curses.h}>
6029 int
6030 main ()
6031 {
6032 #ifndef ${ac_func}
6033 int     (*p)() = ${ac_func};
6034 #endif
6035   ;
6036   return 0;
6037 }
6038 _ACEOF
6039 rm -f conftest.$ac_objext
6040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6041   (eval $ac_compile) 2>&5
6042   ac_status=$?
6043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6044   (exit $ac_status); } &&
6045          { ac_try='test -s conftest.$ac_objext'
6046   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6047   (eval $ac_try) 2>&5
6048   ac_status=$?
6049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050   (exit $ac_status); }; }; then
6051
6052 eval "ac_cv_func_decl_$ac_func=yes"
6053 else
6054   echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.$ac_ext >&5
6056
6057
6058 eval "ac_cv_func_decl_$ac_func=no"
6059 fi
6060 rm -f conftest.$ac_objext conftest.$ac_ext
6061 else
6062   echo "$as_me: failed program was:" >&5
6063 sed 's/^/| /' conftest.$ac_ext >&5
6064
6065
6066 eval "ac_cv_func_decl_$ac_func=yes"
6067 fi
6068 rm -f conftest.$ac_objext conftest.$ac_ext
6069 fi
6070
6071 if eval "test \"`echo '$ac_cv_func_'decl_$ac_func`\" = yes"; then
6072   echo "$as_me:$LINENO: result: yes" >&5
6073 echo "${ECHO_T}yes" >&6
6074
6075
6076 ac_tr_func=`echo HAVE_$ac_func | tr '[a-z]' '[A-Z]'`
6077
6078   cat >>confdefs.h <<_ACEOF
6079 #define $ac_tr_func 1
6080 _ACEOF
6081
6082 else
6083   echo "$as_me:$LINENO: result: no" >&5
6084 echo "${ECHO_T}no" >&6
6085 fi
6086 done
6087
6088         if test "$ac_cv_func_decl_start_color" = yes; then
6089
6090 cat >>confdefs.h <<\_ACEOF
6091 #define HAVE_COLOR 1
6092 _ACEOF
6093
6094         fi
6095         if test "$ac_cv_func_decl_resizeterm" = yes; then
6096                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
6097         fi
6098         LIBS="$old_LIBS"
6099
6100 fi;
6101
6102 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6103 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6104 if test "${ac_cv_header_stdc+set}" = set; then
6105   echo $ECHO_N "(cached) $ECHO_C" >&6
6106 else
6107   cat >conftest.$ac_ext <<_ACEOF
6108 #line $LINENO "configure"
6109 /* confdefs.h.  */
6110 _ACEOF
6111 cat confdefs.h >>conftest.$ac_ext
6112 cat >>conftest.$ac_ext <<_ACEOF
6113 /* end confdefs.h.  */
6114 #include <stdlib.h>
6115 #include <stdarg.h>
6116 #include <string.h>
6117 #include <float.h>
6118
6119 int
6120 main ()
6121 {
6122
6123   ;
6124   return 0;
6125 }
6126 _ACEOF
6127 rm -f conftest.$ac_objext
6128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6129   (eval $ac_compile) 2>&5
6130   ac_status=$?
6131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132   (exit $ac_status); } &&
6133          { ac_try='test -s conftest.$ac_objext'
6134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135   (eval $ac_try) 2>&5
6136   ac_status=$?
6137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138   (exit $ac_status); }; }; then
6139   ac_cv_header_stdc=yes
6140 else
6141   echo "$as_me: failed program was:" >&5
6142 sed 's/^/| /' conftest.$ac_ext >&5
6143
6144 ac_cv_header_stdc=no
6145 fi
6146 rm -f conftest.$ac_objext conftest.$ac_ext
6147
6148 if test $ac_cv_header_stdc = yes; then
6149   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6150   cat >conftest.$ac_ext <<_ACEOF
6151 #line $LINENO "configure"
6152 /* confdefs.h.  */
6153 _ACEOF
6154 cat confdefs.h >>conftest.$ac_ext
6155 cat >>conftest.$ac_ext <<_ACEOF
6156 /* end confdefs.h.  */
6157 #include <string.h>
6158
6159 _ACEOF
6160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6161   $EGREP "memchr" >/dev/null 2>&1; then
6162   :
6163 else
6164   ac_cv_header_stdc=no
6165 fi
6166 rm -f conftest*
6167
6168 fi
6169
6170 if test $ac_cv_header_stdc = yes; then
6171   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6172   cat >conftest.$ac_ext <<_ACEOF
6173 #line $LINENO "configure"
6174 /* confdefs.h.  */
6175 _ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h.  */
6179 #include <stdlib.h>
6180
6181 _ACEOF
6182 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6183   $EGREP "free" >/dev/null 2>&1; then
6184   :
6185 else
6186   ac_cv_header_stdc=no
6187 fi
6188 rm -f conftest*
6189
6190 fi
6191
6192 if test $ac_cv_header_stdc = yes; then
6193   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6194   if test "$cross_compiling" = yes; then
6195   :
6196 else
6197   cat >conftest.$ac_ext <<_ACEOF
6198 #line $LINENO "configure"
6199 /* confdefs.h.  */
6200 _ACEOF
6201 cat confdefs.h >>conftest.$ac_ext
6202 cat >>conftest.$ac_ext <<_ACEOF
6203 /* end confdefs.h.  */
6204 #include <ctype.h>
6205 #if ((' ' & 0x0FF) == 0x020)
6206 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6207 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6208 #else
6209 # define ISLOWER(c) \
6210                    (('a' <= (c) && (c) <= 'i') \
6211                      || ('j' <= (c) && (c) <= 'r') \
6212                      || ('s' <= (c) && (c) <= 'z'))
6213 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6214 #endif
6215
6216 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6217 int
6218 main ()
6219 {
6220   int i;
6221   for (i = 0; i < 256; i++)
6222     if (XOR (islower (i), ISLOWER (i))
6223         || toupper (i) != TOUPPER (i))
6224       exit(2);
6225   exit (0);
6226 }
6227 _ACEOF
6228 rm -f conftest$ac_exeext
6229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6230   (eval $ac_link) 2>&5
6231   ac_status=$?
6232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6233   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6235   (eval $ac_try) 2>&5
6236   ac_status=$?
6237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238   (exit $ac_status); }; }; then
6239   :
6240 else
6241   echo "$as_me: program exited with status $ac_status" >&5
6242 echo "$as_me: failed program was:" >&5
6243 sed 's/^/| /' conftest.$ac_ext >&5
6244
6245 ( exit $ac_status )
6246 ac_cv_header_stdc=no
6247 fi
6248 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6249 fi
6250 fi
6251 fi
6252 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6253 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6254 if test $ac_cv_header_stdc = yes; then
6255
6256 cat >>confdefs.h <<\_ACEOF
6257 #define STDC_HEADERS 1
6258 _ACEOF
6259
6260 fi
6261
6262
6263
6264
6265
6266
6267 for ac_header in stdarg.h sys/ioctl.h ioctl.h sysexits.h
6268 do
6269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6271   echo "$as_me:$LINENO: checking for $ac_header" >&5
6272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6274   echo $ECHO_N "(cached) $ECHO_C" >&6
6275 fi
6276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6278 else
6279   # Is the header compilable?
6280 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6281 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6282 cat >conftest.$ac_ext <<_ACEOF
6283 #line $LINENO "configure"
6284 /* confdefs.h.  */
6285 _ACEOF
6286 cat confdefs.h >>conftest.$ac_ext
6287 cat >>conftest.$ac_ext <<_ACEOF
6288 /* end confdefs.h.  */
6289 $ac_includes_default
6290 #include <$ac_header>
6291 _ACEOF
6292 rm -f conftest.$ac_objext
6293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6294   (eval $ac_compile) 2>&5
6295   ac_status=$?
6296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6297   (exit $ac_status); } &&
6298          { ac_try='test -s conftest.$ac_objext'
6299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6300   (eval $ac_try) 2>&5
6301   ac_status=$?
6302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6303   (exit $ac_status); }; }; then
6304   ac_header_compiler=yes
6305 else
6306   echo "$as_me: failed program was:" >&5
6307 sed 's/^/| /' conftest.$ac_ext >&5
6308
6309 ac_header_compiler=no
6310 fi
6311 rm -f conftest.$ac_objext conftest.$ac_ext
6312 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6313 echo "${ECHO_T}$ac_header_compiler" >&6
6314
6315 # Is the header present?
6316 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6317 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
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 #include <$ac_header>
6326 _ACEOF
6327 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6328   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6329   ac_status=$?
6330   grep -v '^ *+' conftest.er1 >conftest.err
6331   rm -f conftest.er1
6332   cat conftest.err >&5
6333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334   (exit $ac_status); } >/dev/null; then
6335   if test -s conftest.err; then
6336     ac_cpp_err=$ac_c_preproc_warn_flag
6337   else
6338     ac_cpp_err=
6339   fi
6340 else
6341   ac_cpp_err=yes
6342 fi
6343 if test -z "$ac_cpp_err"; then
6344   ac_header_preproc=yes
6345 else
6346   echo "$as_me: failed program was:" >&5
6347 sed 's/^/| /' conftest.$ac_ext >&5
6348
6349   ac_header_preproc=no
6350 fi
6351 rm -f conftest.err conftest.$ac_ext
6352 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6353 echo "${ECHO_T}$ac_header_preproc" >&6
6354
6355 # So?  What about this header?
6356 case $ac_header_compiler:$ac_header_preproc in
6357   yes:no )
6358     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6359 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6360     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6362     (
6363       cat <<\_ASBOX
6364 ## ------------------------------------ ##
6365 ## Report this to bug-autoconf@gnu.org. ##
6366 ## ------------------------------------ ##
6367 _ASBOX
6368     ) |
6369       sed "s/^/$as_me: WARNING:     /" >&2
6370     ;;
6371   no:yes )
6372     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6373 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6374     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6375 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6376     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6378     (
6379       cat <<\_ASBOX
6380 ## ------------------------------------ ##
6381 ## Report this to bug-autoconf@gnu.org. ##
6382 ## ------------------------------------ ##
6383 _ASBOX
6384     ) |
6385       sed "s/^/$as_me: WARNING:     /" >&2
6386     ;;
6387 esac
6388 echo "$as_me:$LINENO: checking for $ac_header" >&5
6389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6391   echo $ECHO_N "(cached) $ECHO_C" >&6
6392 else
6393   eval "$as_ac_Header=$ac_header_preproc"
6394 fi
6395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6396 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6397
6398 fi
6399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6400   cat >>confdefs.h <<_ACEOF
6401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6402 _ACEOF
6403
6404 fi
6405
6406 done
6407
6408
6409
6410 for ac_header in sys/time.h sys/resource.h
6411 do
6412 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6414   echo "$as_me:$LINENO: checking for $ac_header" >&5
6415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6417   echo $ECHO_N "(cached) $ECHO_C" >&6
6418 fi
6419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6421 else
6422   # Is the header compilable?
6423 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6424 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6425 cat >conftest.$ac_ext <<_ACEOF
6426 #line $LINENO "configure"
6427 /* confdefs.h.  */
6428 _ACEOF
6429 cat confdefs.h >>conftest.$ac_ext
6430 cat >>conftest.$ac_ext <<_ACEOF
6431 /* end confdefs.h.  */
6432 $ac_includes_default
6433 #include <$ac_header>
6434 _ACEOF
6435 rm -f conftest.$ac_objext
6436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6437   (eval $ac_compile) 2>&5
6438   ac_status=$?
6439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440   (exit $ac_status); } &&
6441          { ac_try='test -s conftest.$ac_objext'
6442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443   (eval $ac_try) 2>&5
6444   ac_status=$?
6445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446   (exit $ac_status); }; }; then
6447   ac_header_compiler=yes
6448 else
6449   echo "$as_me: failed program was:" >&5
6450 sed 's/^/| /' conftest.$ac_ext >&5
6451
6452 ac_header_compiler=no
6453 fi
6454 rm -f conftest.$ac_objext conftest.$ac_ext
6455 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6456 echo "${ECHO_T}$ac_header_compiler" >&6
6457
6458 # Is the header present?
6459 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6460 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6461 cat >conftest.$ac_ext <<_ACEOF
6462 #line $LINENO "configure"
6463 /* confdefs.h.  */
6464 _ACEOF
6465 cat confdefs.h >>conftest.$ac_ext
6466 cat >>conftest.$ac_ext <<_ACEOF
6467 /* end confdefs.h.  */
6468 #include <$ac_header>
6469 _ACEOF
6470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6471   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6472   ac_status=$?
6473   grep -v '^ *+' conftest.er1 >conftest.err
6474   rm -f conftest.er1
6475   cat conftest.err >&5
6476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477   (exit $ac_status); } >/dev/null; then
6478   if test -s conftest.err; then
6479     ac_cpp_err=$ac_c_preproc_warn_flag
6480   else
6481     ac_cpp_err=
6482   fi
6483 else
6484   ac_cpp_err=yes
6485 fi
6486 if test -z "$ac_cpp_err"; then
6487   ac_header_preproc=yes
6488 else
6489   echo "$as_me: failed program was:" >&5
6490 sed 's/^/| /' conftest.$ac_ext >&5
6491
6492   ac_header_preproc=no
6493 fi
6494 rm -f conftest.err conftest.$ac_ext
6495 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6496 echo "${ECHO_T}$ac_header_preproc" >&6
6497
6498 # So?  What about this header?
6499 case $ac_header_compiler:$ac_header_preproc in
6500   yes:no )
6501     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6502 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6503     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6504 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6505     (
6506       cat <<\_ASBOX
6507 ## ------------------------------------ ##
6508 ## Report this to bug-autoconf@gnu.org. ##
6509 ## ------------------------------------ ##
6510 _ASBOX
6511     ) |
6512       sed "s/^/$as_me: WARNING:     /" >&2
6513     ;;
6514   no:yes )
6515     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6516 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6517     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6518 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6519     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6520 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6521     (
6522       cat <<\_ASBOX
6523 ## ------------------------------------ ##
6524 ## Report this to bug-autoconf@gnu.org. ##
6525 ## ------------------------------------ ##
6526 _ASBOX
6527     ) |
6528       sed "s/^/$as_me: WARNING:     /" >&2
6529     ;;
6530 esac
6531 echo "$as_me:$LINENO: checking for $ac_header" >&5
6532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6534   echo $ECHO_N "(cached) $ECHO_C" >&6
6535 else
6536   eval "$as_ac_Header=$ac_header_preproc"
6537 fi
6538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6540
6541 fi
6542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6543   cat >>confdefs.h <<_ACEOF
6544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6545 _ACEOF
6546
6547 fi
6548
6549 done
6550
6551
6552 for ac_header in unix.h
6553 do
6554 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6555 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6556   echo "$as_me:$LINENO: checking for $ac_header" >&5
6557 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6558 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6559   echo $ECHO_N "(cached) $ECHO_C" >&6
6560 fi
6561 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6562 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6563 else
6564   # Is the header compilable?
6565 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6566 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6567 cat >conftest.$ac_ext <<_ACEOF
6568 #line $LINENO "configure"
6569 /* confdefs.h.  */
6570 _ACEOF
6571 cat confdefs.h >>conftest.$ac_ext
6572 cat >>conftest.$ac_ext <<_ACEOF
6573 /* end confdefs.h.  */
6574 $ac_includes_default
6575 #include <$ac_header>
6576 _ACEOF
6577 rm -f conftest.$ac_objext
6578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6579   (eval $ac_compile) 2>&5
6580   ac_status=$?
6581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582   (exit $ac_status); } &&
6583          { ac_try='test -s conftest.$ac_objext'
6584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6585   (eval $ac_try) 2>&5
6586   ac_status=$?
6587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588   (exit $ac_status); }; }; then
6589   ac_header_compiler=yes
6590 else
6591   echo "$as_me: failed program was:" >&5
6592 sed 's/^/| /' conftest.$ac_ext >&5
6593
6594 ac_header_compiler=no
6595 fi
6596 rm -f conftest.$ac_objext conftest.$ac_ext
6597 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6598 echo "${ECHO_T}$ac_header_compiler" >&6
6599
6600 # Is the header present?
6601 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6602 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6603 cat >conftest.$ac_ext <<_ACEOF
6604 #line $LINENO "configure"
6605 /* confdefs.h.  */
6606 _ACEOF
6607 cat confdefs.h >>conftest.$ac_ext
6608 cat >>conftest.$ac_ext <<_ACEOF
6609 /* end confdefs.h.  */
6610 #include <$ac_header>
6611 _ACEOF
6612 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6613   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6614   ac_status=$?
6615   grep -v '^ *+' conftest.er1 >conftest.err
6616   rm -f conftest.er1
6617   cat conftest.err >&5
6618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619   (exit $ac_status); } >/dev/null; then
6620   if test -s conftest.err; then
6621     ac_cpp_err=$ac_c_preproc_warn_flag
6622   else
6623     ac_cpp_err=
6624   fi
6625 else
6626   ac_cpp_err=yes
6627 fi
6628 if test -z "$ac_cpp_err"; then
6629   ac_header_preproc=yes
6630 else
6631   echo "$as_me: failed program was:" >&5
6632 sed 's/^/| /' conftest.$ac_ext >&5
6633
6634   ac_header_preproc=no
6635 fi
6636 rm -f conftest.err conftest.$ac_ext
6637 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6638 echo "${ECHO_T}$ac_header_preproc" >&6
6639
6640 # So?  What about this header?
6641 case $ac_header_compiler:$ac_header_preproc in
6642   yes:no )
6643     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6644 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6645     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6647     (
6648       cat <<\_ASBOX
6649 ## ------------------------------------ ##
6650 ## Report this to bug-autoconf@gnu.org. ##
6651 ## ------------------------------------ ##
6652 _ASBOX
6653     ) |
6654       sed "s/^/$as_me: WARNING:     /" >&2
6655     ;;
6656   no:yes )
6657     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6658 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6659     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6660 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6661     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6662 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6663     (
6664       cat <<\_ASBOX
6665 ## ------------------------------------ ##
6666 ## Report this to bug-autoconf@gnu.org. ##
6667 ## ------------------------------------ ##
6668 _ASBOX
6669     ) |
6670       sed "s/^/$as_me: WARNING:     /" >&2
6671     ;;
6672 esac
6673 echo "$as_me:$LINENO: checking for $ac_header" >&5
6674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6676   echo $ECHO_N "(cached) $ECHO_C" >&6
6677 else
6678   eval "$as_ac_Header=$ac_header_preproc"
6679 fi
6680 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6681 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6682
6683 fi
6684 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6685   cat >>confdefs.h <<_ACEOF
6686 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6687 _ACEOF
6688
6689 fi
6690
6691 done
6692
6693
6694
6695
6696
6697 for ac_func in setrlimit getsid isctype
6698 do
6699 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6700 echo "$as_me:$LINENO: checking for $ac_func" >&5
6701 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6702 if eval "test \"\${$as_ac_var+set}\" = set"; then
6703   echo $ECHO_N "(cached) $ECHO_C" >&6
6704 else
6705   cat >conftest.$ac_ext <<_ACEOF
6706 #line $LINENO "configure"
6707 /* confdefs.h.  */
6708 _ACEOF
6709 cat confdefs.h >>conftest.$ac_ext
6710 cat >>conftest.$ac_ext <<_ACEOF
6711 /* end confdefs.h.  */
6712 /* System header to define __stub macros and hopefully few prototypes,
6713     which can conflict with char $ac_func (); below.
6714     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6715     <limits.h> exists even on freestanding compilers.  */
6716 #ifdef __STDC__
6717 # include <limits.h>
6718 #else
6719 # include <assert.h>
6720 #endif
6721 /* Override any gcc2 internal prototype to avoid an error.  */
6722 #ifdef __cplusplus
6723 extern "C"
6724 {
6725 #endif
6726 /* We use char because int might match the return type of a gcc2
6727    builtin and then its argument prototype would still apply.  */
6728 char $ac_func ();
6729 /* The GNU C library defines this for functions which it implements
6730     to always fail with ENOSYS.  Some functions are actually named
6731     something starting with __ and the normal name is an alias.  */
6732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6733 choke me
6734 #else
6735 char (*f) () = $ac_func;
6736 #endif
6737 #ifdef __cplusplus
6738 }
6739 #endif
6740
6741 int
6742 main ()
6743 {
6744 return f != $ac_func;
6745   ;
6746   return 0;
6747 }
6748 _ACEOF
6749 rm -f conftest.$ac_objext conftest$ac_exeext
6750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6751   (eval $ac_link) 2>&5
6752   ac_status=$?
6753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754   (exit $ac_status); } &&
6755          { ac_try='test -s conftest$ac_exeext'
6756   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6757   (eval $ac_try) 2>&5
6758   ac_status=$?
6759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760   (exit $ac_status); }; }; then
6761   eval "$as_ac_var=yes"
6762 else
6763   echo "$as_me: failed program was:" >&5
6764 sed 's/^/| /' conftest.$ac_ext >&5
6765
6766 eval "$as_ac_var=no"
6767 fi
6768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6769 fi
6770 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6771 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6772 if test `eval echo '${'$as_ac_var'}'` = yes; then
6773   cat >>confdefs.h <<_ACEOF
6774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6775 _ACEOF
6776
6777 fi
6778 done
6779
6780
6781 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6782 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6783 if test "${ac_cv_type_signal+set}" = set; then
6784   echo $ECHO_N "(cached) $ECHO_C" >&6
6785 else
6786   cat >conftest.$ac_ext <<_ACEOF
6787 #line $LINENO "configure"
6788 /* confdefs.h.  */
6789 _ACEOF
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h.  */
6793 #include <sys/types.h>
6794 #include <signal.h>
6795 #ifdef signal
6796 # undef signal
6797 #endif
6798 #ifdef __cplusplus
6799 extern "C" void (*signal (int, void (*)(int)))(int);
6800 #else
6801 void (*signal ()) ();
6802 #endif
6803
6804 int
6805 main ()
6806 {
6807 int i;
6808   ;
6809   return 0;
6810 }
6811 _ACEOF
6812 rm -f conftest.$ac_objext
6813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6814   (eval $ac_compile) 2>&5
6815   ac_status=$?
6816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817   (exit $ac_status); } &&
6818          { ac_try='test -s conftest.$ac_objext'
6819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820   (eval $ac_try) 2>&5
6821   ac_status=$?
6822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823   (exit $ac_status); }; }; then
6824   ac_cv_type_signal=void
6825 else
6826   echo "$as_me: failed program was:" >&5
6827 sed 's/^/| /' conftest.$ac_ext >&5
6828
6829 ac_cv_type_signal=int
6830 fi
6831 rm -f conftest.$ac_objext conftest.$ac_ext
6832 fi
6833 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6834 echo "${ECHO_T}$ac_cv_type_signal" >&6
6835
6836 cat >>confdefs.h <<_ACEOF
6837 #define RETSIGTYPE $ac_cv_type_signal
6838 _ACEOF
6839
6840
6841
6842 echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5
6843 echo $ECHO_N "checking for sig_atomic_t in signal.h... $ECHO_C" >&6
6844 cat >conftest.$ac_ext <<_ACEOF
6845 #line $LINENO "configure"
6846 /* confdefs.h.  */
6847 _ACEOF
6848 cat confdefs.h >>conftest.$ac_ext
6849 cat >>conftest.$ac_ext <<_ACEOF
6850 /* end confdefs.h.  */
6851 #include <signal.h>
6852
6853 _ACEOF
6854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6855   $EGREP "sig_atomic_t" >/dev/null 2>&1; then
6856
6857     ac_cv_type_sig_atomic_t=yes;
6858     cat >conftest.$ac_ext <<_ACEOF
6859 #line $LINENO "configure"
6860 /* confdefs.h.  */
6861 _ACEOF
6862 cat confdefs.h >>conftest.$ac_ext
6863 cat >>conftest.$ac_ext <<_ACEOF
6864 /* end confdefs.h.  */
6865 #include <signal.h>
6866
6867 _ACEOF
6868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6869   $EGREP "volatile.*sig_atomic_t" >/dev/null 2>&1; then
6870
6871                         is_sig_atomic_t_volatile=yes;
6872                         echo "$as_me:$LINENO: result: yes, volatile" >&5
6873 echo "${ECHO_T}yes, volatile" >&6
6874
6875 else
6876
6877                         is_sig_atomic_t_volatile=no;
6878                         echo "$as_me:$LINENO: result: yes, non volatile" >&5
6879 echo "${ECHO_T}yes, non volatile" >&6
6880
6881 fi
6882 rm -f conftest*
6883
6884
6885 else
6886
6887     echo "$as_me:$LINENO: result: no" >&5
6888 echo "${ECHO_T}no" >&6
6889     echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
6890 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
6891 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
6892   echo $ECHO_N "(cached) $ECHO_C" >&6
6893 else
6894   cat >conftest.$ac_ext <<_ACEOF
6895 #line $LINENO "configure"
6896 /* confdefs.h.  */
6897 _ACEOF
6898 cat confdefs.h >>conftest.$ac_ext
6899 cat >>conftest.$ac_ext <<_ACEOF
6900 /* end confdefs.h.  */
6901 $ac_includes_default
6902 int
6903 main ()
6904 {
6905 if ((sig_atomic_t *) 0)
6906   return 0;
6907 if (sizeof (sig_atomic_t))
6908   return 0;
6909   ;
6910   return 0;
6911 }
6912 _ACEOF
6913 rm -f conftest.$ac_objext
6914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6915   (eval $ac_compile) 2>&5
6916   ac_status=$?
6917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918   (exit $ac_status); } &&
6919          { ac_try='test -s conftest.$ac_objext'
6920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6921   (eval $ac_try) 2>&5
6922   ac_status=$?
6923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924   (exit $ac_status); }; }; then
6925   ac_cv_type_sig_atomic_t=yes
6926 else
6927   echo "$as_me: failed program was:" >&5
6928 sed 's/^/| /' conftest.$ac_ext >&5
6929
6930 ac_cv_type_sig_atomic_t=no
6931 fi
6932 rm -f conftest.$ac_objext conftest.$ac_ext
6933 fi
6934 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
6935 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
6936 if test $ac_cv_type_sig_atomic_t = yes; then
6937   :
6938 else
6939
6940 cat >>confdefs.h <<_ACEOF
6941 #define sig_atomic_t int
6942 _ACEOF
6943
6944 fi
6945
6946     is_sig_atomic_t_volatile=no
6947
6948 fi
6949 rm -f conftest*
6950
6951 if test $is_sig_atomic_t_volatile = 'yes'
6952 then
6953     cat >>confdefs.h <<\_ACEOF
6954 #define SIG_ATOMIC_VOLATILE_T sig_atomic_t
6955 _ACEOF
6956
6957 else
6958     cat >>confdefs.h <<\_ACEOF
6959 #define SIG_ATOMIC_VOLATILE_T volatile sig_atomic_t
6960 _ACEOF
6961
6962 fi
6963
6964 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6965 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6966 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6967   echo $ECHO_N "(cached) $ECHO_C" >&6
6968 else
6969   cat >conftest.$ac_ext <<_ACEOF
6970 #line $LINENO "configure"
6971 /* confdefs.h.  */
6972 _ACEOF
6973 cat confdefs.h >>conftest.$ac_ext
6974 cat >>conftest.$ac_ext <<_ACEOF
6975 /* end confdefs.h.  */
6976 $ac_includes_default
6977 int
6978 main ()
6979 {
6980 #ifndef sys_siglist
6981   char *p = (char *) sys_siglist;
6982 #endif
6983
6984   ;
6985   return 0;
6986 }
6987 _ACEOF
6988 rm -f conftest.$ac_objext
6989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6990   (eval $ac_compile) 2>&5
6991   ac_status=$?
6992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6993   (exit $ac_status); } &&
6994          { ac_try='test -s conftest.$ac_objext'
6995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6996   (eval $ac_try) 2>&5
6997   ac_status=$?
6998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999   (exit $ac_status); }; }; then
7000   ac_cv_have_decl_sys_siglist=yes
7001 else
7002   echo "$as_me: failed program was:" >&5
7003 sed 's/^/| /' conftest.$ac_ext >&5
7004
7005 ac_cv_have_decl_sys_siglist=no
7006 fi
7007 rm -f conftest.$ac_objext conftest.$ac_ext
7008 fi
7009 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7010 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
7011 if test $ac_cv_have_decl_sys_siglist = yes; then
7012
7013 cat >>confdefs.h <<_ACEOF
7014 #define HAVE_DECL_SYS_SIGLIST 1
7015 _ACEOF
7016
7017
7018 else
7019   cat >>confdefs.h <<_ACEOF
7020 #define HAVE_DECL_SYS_SIGLIST 0
7021 _ACEOF
7022
7023
7024 fi
7025
7026
7027
7028
7029 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7030 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7031 if test "${ac_cv_c_bigendian+set}" = set; then
7032   echo $ECHO_N "(cached) $ECHO_C" >&6
7033 else
7034   # See if sys/param.h defines the BYTE_ORDER macro.
7035 cat >conftest.$ac_ext <<_ACEOF
7036 #line $LINENO "configure"
7037 /* confdefs.h.  */
7038 _ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h.  */
7042 #include <sys/types.h>
7043 #include <sys/param.h>
7044
7045 int
7046 main ()
7047 {
7048 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7049  bogus endian macros
7050 #endif
7051
7052   ;
7053   return 0;
7054 }
7055 _ACEOF
7056 rm -f conftest.$ac_objext
7057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7058   (eval $ac_compile) 2>&5
7059   ac_status=$?
7060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7061   (exit $ac_status); } &&
7062          { ac_try='test -s conftest.$ac_objext'
7063   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7064   (eval $ac_try) 2>&5
7065   ac_status=$?
7066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7067   (exit $ac_status); }; }; then
7068   # It does; now see whether it defined to BIG_ENDIAN or not.
7069 cat >conftest.$ac_ext <<_ACEOF
7070 #line $LINENO "configure"
7071 /* confdefs.h.  */
7072 _ACEOF
7073 cat confdefs.h >>conftest.$ac_ext
7074 cat >>conftest.$ac_ext <<_ACEOF
7075 /* end confdefs.h.  */
7076 #include <sys/types.h>
7077 #include <sys/param.h>
7078
7079 int
7080 main ()
7081 {
7082 #if BYTE_ORDER != BIG_ENDIAN
7083  not big endian
7084 #endif
7085
7086   ;
7087   return 0;
7088 }
7089 _ACEOF
7090 rm -f conftest.$ac_objext
7091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7092   (eval $ac_compile) 2>&5
7093   ac_status=$?
7094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095   (exit $ac_status); } &&
7096          { ac_try='test -s conftest.$ac_objext'
7097   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7098   (eval $ac_try) 2>&5
7099   ac_status=$?
7100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101   (exit $ac_status); }; }; then
7102   ac_cv_c_bigendian=yes
7103 else
7104   echo "$as_me: failed program was:" >&5
7105 sed 's/^/| /' conftest.$ac_ext >&5
7106
7107 ac_cv_c_bigendian=no
7108 fi
7109 rm -f conftest.$ac_objext conftest.$ac_ext
7110 else
7111   echo "$as_me: failed program was:" >&5
7112 sed 's/^/| /' conftest.$ac_ext >&5
7113
7114 # It does not; compile a test program.
7115 if test "$cross_compiling" = yes; then
7116   # try to guess the endianness by grepping values into an object file
7117   ac_cv_c_bigendian=unknown
7118   cat >conftest.$ac_ext <<_ACEOF
7119 #line $LINENO "configure"
7120 /* confdefs.h.  */
7121 _ACEOF
7122 cat confdefs.h >>conftest.$ac_ext
7123 cat >>conftest.$ac_ext <<_ACEOF
7124 /* end confdefs.h.  */
7125 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7126 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7127 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7128 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7129 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7130 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7131 int
7132 main ()
7133 {
7134  _ascii (); _ebcdic ();
7135   ;
7136   return 0;
7137 }
7138 _ACEOF
7139 rm -f conftest.$ac_objext
7140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7141   (eval $ac_compile) 2>&5
7142   ac_status=$?
7143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144   (exit $ac_status); } &&
7145          { ac_try='test -s conftest.$ac_objext'
7146   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7147   (eval $ac_try) 2>&5
7148   ac_status=$?
7149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150   (exit $ac_status); }; }; then
7151   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7152   ac_cv_c_bigendian=yes
7153 fi
7154 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7155   if test "$ac_cv_c_bigendian" = unknown; then
7156     ac_cv_c_bigendian=no
7157   else
7158     # finding both strings is unlikely to happen, but who knows?
7159     ac_cv_c_bigendian=unknown
7160   fi
7161 fi
7162 else
7163   echo "$as_me: failed program was:" >&5
7164 sed 's/^/| /' conftest.$ac_ext >&5
7165
7166 fi
7167 rm -f conftest.$ac_objext conftest.$ac_ext
7168 else
7169   cat >conftest.$ac_ext <<_ACEOF
7170 #line $LINENO "configure"
7171 /* confdefs.h.  */
7172 _ACEOF
7173 cat confdefs.h >>conftest.$ac_ext
7174 cat >>conftest.$ac_ext <<_ACEOF
7175 /* end confdefs.h.  */
7176 int
7177 main ()
7178 {
7179   /* Are we little or big endian?  From Harbison&Steele.  */
7180   union
7181   {
7182     long l;
7183     char c[sizeof (long)];
7184   } u;
7185   u.l = 1;
7186   exit (u.c[sizeof (long) - 1] == 1);
7187 }
7188 _ACEOF
7189 rm -f conftest$ac_exeext
7190 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7191   (eval $ac_link) 2>&5
7192   ac_status=$?
7193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7196   (eval $ac_try) 2>&5
7197   ac_status=$?
7198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199   (exit $ac_status); }; }; then
7200   ac_cv_c_bigendian=no
7201 else
7202   echo "$as_me: program exited with status $ac_status" >&5
7203 echo "$as_me: failed program was:" >&5
7204 sed 's/^/| /' conftest.$ac_ext >&5
7205
7206 ( exit $ac_status )
7207 ac_cv_c_bigendian=yes
7208 fi
7209 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7210 fi
7211 fi
7212 rm -f conftest.$ac_objext conftest.$ac_ext
7213 fi
7214 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7215 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7216 case $ac_cv_c_bigendian in
7217   yes)
7218
7219 cat >>confdefs.h <<\_ACEOF
7220 #define WORDS_BIGENDIAN 1
7221 _ACEOF
7222  ;;
7223   no)
7224      ;;
7225   *)
7226     { { echo "$as_me:$LINENO: error: unknown endianness
7227 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7228 echo "$as_me: error: unknown endianness
7229 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7230    { (exit 1); exit 1; }; } ;;
7231 esac
7232
7233
7234
7235 for ac_header in inttypes.h stdint.h
7236 do
7237 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7239   echo "$as_me:$LINENO: checking for $ac_header" >&5
7240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7241 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7242   echo $ECHO_N "(cached) $ECHO_C" >&6
7243 fi
7244 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7245 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7246 else
7247   # Is the header compilable?
7248 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7249 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7250 cat >conftest.$ac_ext <<_ACEOF
7251 #line $LINENO "configure"
7252 /* confdefs.h.  */
7253 _ACEOF
7254 cat confdefs.h >>conftest.$ac_ext
7255 cat >>conftest.$ac_ext <<_ACEOF
7256 /* end confdefs.h.  */
7257 $ac_includes_default
7258 #include <$ac_header>
7259 _ACEOF
7260 rm -f conftest.$ac_objext
7261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7262   (eval $ac_compile) 2>&5
7263   ac_status=$?
7264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265   (exit $ac_status); } &&
7266          { ac_try='test -s conftest.$ac_objext'
7267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7268   (eval $ac_try) 2>&5
7269   ac_status=$?
7270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271   (exit $ac_status); }; }; then
7272   ac_header_compiler=yes
7273 else
7274   echo "$as_me: failed program was:" >&5
7275 sed 's/^/| /' conftest.$ac_ext >&5
7276
7277 ac_header_compiler=no
7278 fi
7279 rm -f conftest.$ac_objext conftest.$ac_ext
7280 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7281 echo "${ECHO_T}$ac_header_compiler" >&6
7282
7283 # Is the header present?
7284 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7285 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7286 cat >conftest.$ac_ext <<_ACEOF
7287 #line $LINENO "configure"
7288 /* confdefs.h.  */
7289 _ACEOF
7290 cat confdefs.h >>conftest.$ac_ext
7291 cat >>conftest.$ac_ext <<_ACEOF
7292 /* end confdefs.h.  */
7293 #include <$ac_header>
7294 _ACEOF
7295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7296   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7297   ac_status=$?
7298   grep -v '^ *+' conftest.er1 >conftest.err
7299   rm -f conftest.er1
7300   cat conftest.err >&5
7301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302   (exit $ac_status); } >/dev/null; then
7303   if test -s conftest.err; then
7304     ac_cpp_err=$ac_c_preproc_warn_flag
7305   else
7306     ac_cpp_err=
7307   fi
7308 else
7309   ac_cpp_err=yes
7310 fi
7311 if test -z "$ac_cpp_err"; then
7312   ac_header_preproc=yes
7313 else
7314   echo "$as_me: failed program was:" >&5
7315 sed 's/^/| /' conftest.$ac_ext >&5
7316
7317   ac_header_preproc=no
7318 fi
7319 rm -f conftest.err conftest.$ac_ext
7320 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7321 echo "${ECHO_T}$ac_header_preproc" >&6
7322
7323 # So?  What about this header?
7324 case $ac_header_compiler:$ac_header_preproc in
7325   yes:no )
7326     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7327 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7328     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7329 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7330     (
7331       cat <<\_ASBOX
7332 ## ------------------------------------ ##
7333 ## Report this to bug-autoconf@gnu.org. ##
7334 ## ------------------------------------ ##
7335 _ASBOX
7336     ) |
7337       sed "s/^/$as_me: WARNING:     /" >&2
7338     ;;
7339   no:yes )
7340     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7341 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7342     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7343 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7344     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7345 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7346     (
7347       cat <<\_ASBOX
7348 ## ------------------------------------ ##
7349 ## Report this to bug-autoconf@gnu.org. ##
7350 ## ------------------------------------ ##
7351 _ASBOX
7352     ) |
7353       sed "s/^/$as_me: WARNING:     /" >&2
7354     ;;
7355 esac
7356 echo "$as_me:$LINENO: checking for $ac_header" >&5
7357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7359   echo $ECHO_N "(cached) $ECHO_C" >&6
7360 else
7361   eval "$as_ac_Header=$ac_header_preproc"
7362 fi
7363 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7364 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7365
7366 fi
7367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7368   cat >>confdefs.h <<_ACEOF
7369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7370 _ACEOF
7371
7372 fi
7373
7374 done
7375
7376 echo "$as_me:$LINENO: checking for uint32_t" >&5
7377 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7378 cat >conftest.$ac_ext <<_ACEOF
7379 #line $LINENO "configure"
7380 /* confdefs.h.  */
7381 _ACEOF
7382 cat confdefs.h >>conftest.$ac_ext
7383 cat >>conftest.$ac_ext <<_ACEOF
7384 /* end confdefs.h.  */
7385
7386 #include <sys/types.h>
7387 #if HAVE_INTTYPES_H
7388 #include <inttypes.h>
7389 #else
7390 #if HAVE_STDINT_H
7391 #include <stdint.h>
7392 #endif
7393 #endif
7394 int
7395 main ()
7396 {
7397 if ((uint32_t *) 0)
7398   return 0;
7399 if (sizeof (uint32_t))
7400   return 0;
7401
7402   ;
7403   return 0;
7404 }
7405 _ACEOF
7406 rm -f conftest.$ac_objext
7407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7408   (eval $ac_compile) 2>&5
7409   ac_status=$?
7410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7411   (exit $ac_status); } &&
7412          { ac_try='test -s conftest.$ac_objext'
7413   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7414   (eval $ac_try) 2>&5
7415   ac_status=$?
7416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417   (exit $ac_status); }; }; then
7418
7419
7420 cat >>confdefs.h <<\_ACEOF
7421 #define HAVE_UINT32_T 1
7422 _ACEOF
7423
7424     echo "$as_me:$LINENO: result: yes" >&5
7425 echo "${ECHO_T}yes" >&6
7426
7427 else
7428   echo "$as_me: failed program was:" >&5
7429 sed 's/^/| /' conftest.$ac_ext >&5
7430
7431 echo "$as_me:$LINENO: result: no" >&5
7432 echo "${ECHO_T}no" >&6
7433
7434 fi
7435 rm -f conftest.$ac_objext conftest.$ac_ext
7436 echo "$as_me:$LINENO: checking for int" >&5
7437 echo $ECHO_N "checking for int... $ECHO_C" >&6
7438 if test "${ac_cv_type_int+set}" = set; then
7439   echo $ECHO_N "(cached) $ECHO_C" >&6
7440 else
7441   cat >conftest.$ac_ext <<_ACEOF
7442 #line $LINENO "configure"
7443 /* confdefs.h.  */
7444 _ACEOF
7445 cat confdefs.h >>conftest.$ac_ext
7446 cat >>conftest.$ac_ext <<_ACEOF
7447 /* end confdefs.h.  */
7448 $ac_includes_default
7449 int
7450 main ()
7451 {
7452 if ((int *) 0)
7453   return 0;
7454 if (sizeof (int))
7455   return 0;
7456   ;
7457   return 0;
7458 }
7459 _ACEOF
7460 rm -f conftest.$ac_objext
7461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7462   (eval $ac_compile) 2>&5
7463   ac_status=$?
7464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465   (exit $ac_status); } &&
7466          { ac_try='test -s conftest.$ac_objext'
7467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7468   (eval $ac_try) 2>&5
7469   ac_status=$?
7470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471   (exit $ac_status); }; }; then
7472   ac_cv_type_int=yes
7473 else
7474   echo "$as_me: failed program was:" >&5
7475 sed 's/^/| /' conftest.$ac_ext >&5
7476
7477 ac_cv_type_int=no
7478 fi
7479 rm -f conftest.$ac_objext conftest.$ac_ext
7480 fi
7481 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7482 echo "${ECHO_T}$ac_cv_type_int" >&6
7483
7484 echo "$as_me:$LINENO: checking size of int" >&5
7485 echo $ECHO_N "checking size of int... $ECHO_C" >&6
7486 if test "${ac_cv_sizeof_int+set}" = set; then
7487   echo $ECHO_N "(cached) $ECHO_C" >&6
7488 else
7489   if test "$ac_cv_type_int" = yes; then
7490   # The cast to unsigned long works around a bug in the HP C Compiler
7491   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7492   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7493   # This bug is HP SR number 8606223364.
7494   if test "$cross_compiling" = yes; then
7495   # Depending upon the size, compute the lo and hi bounds.
7496 cat >conftest.$ac_ext <<_ACEOF
7497 #line $LINENO "configure"
7498 /* confdefs.h.  */
7499 _ACEOF
7500 cat confdefs.h >>conftest.$ac_ext
7501 cat >>conftest.$ac_ext <<_ACEOF
7502 /* end confdefs.h.  */
7503 $ac_includes_default
7504 int
7505 main ()
7506 {
7507 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
7508 test_array [0] = 0
7509
7510   ;
7511   return 0;
7512 }
7513 _ACEOF
7514 rm -f conftest.$ac_objext
7515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7516   (eval $ac_compile) 2>&5
7517   ac_status=$?
7518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519   (exit $ac_status); } &&
7520          { ac_try='test -s conftest.$ac_objext'
7521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7522   (eval $ac_try) 2>&5
7523   ac_status=$?
7524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525   (exit $ac_status); }; }; then
7526   ac_lo=0 ac_mid=0
7527   while :; do
7528     cat >conftest.$ac_ext <<_ACEOF
7529 #line $LINENO "configure"
7530 /* confdefs.h.  */
7531 _ACEOF
7532 cat confdefs.h >>conftest.$ac_ext
7533 cat >>conftest.$ac_ext <<_ACEOF
7534 /* end confdefs.h.  */
7535 $ac_includes_default
7536 int
7537 main ()
7538 {
7539 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7540 test_array [0] = 0
7541
7542   ;
7543   return 0;
7544 }
7545 _ACEOF
7546 rm -f conftest.$ac_objext
7547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7548   (eval $ac_compile) 2>&5
7549   ac_status=$?
7550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551   (exit $ac_status); } &&
7552          { ac_try='test -s conftest.$ac_objext'
7553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7554   (eval $ac_try) 2>&5
7555   ac_status=$?
7556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557   (exit $ac_status); }; }; then
7558   ac_hi=$ac_mid; break
7559 else
7560   echo "$as_me: failed program was:" >&5
7561 sed 's/^/| /' conftest.$ac_ext >&5
7562
7563 ac_lo=`expr $ac_mid + 1`
7564                     if test $ac_lo -le $ac_mid; then
7565                       ac_lo= ac_hi=
7566                       break
7567                     fi
7568                     ac_mid=`expr 2 '*' $ac_mid + 1`
7569 fi
7570 rm -f conftest.$ac_objext conftest.$ac_ext
7571   done
7572 else
7573   echo "$as_me: failed program was:" >&5
7574 sed 's/^/| /' conftest.$ac_ext >&5
7575
7576 cat >conftest.$ac_ext <<_ACEOF
7577 #line $LINENO "configure"
7578 /* confdefs.h.  */
7579 _ACEOF
7580 cat confdefs.h >>conftest.$ac_ext
7581 cat >>conftest.$ac_ext <<_ACEOF
7582 /* end confdefs.h.  */
7583 $ac_includes_default
7584 int
7585 main ()
7586 {
7587 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
7588 test_array [0] = 0
7589
7590   ;
7591   return 0;
7592 }
7593 _ACEOF
7594 rm -f conftest.$ac_objext
7595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7596   (eval $ac_compile) 2>&5
7597   ac_status=$?
7598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7599   (exit $ac_status); } &&
7600          { ac_try='test -s conftest.$ac_objext'
7601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7602   (eval $ac_try) 2>&5
7603   ac_status=$?
7604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605   (exit $ac_status); }; }; then
7606   ac_hi=-1 ac_mid=-1
7607   while :; do
7608     cat >conftest.$ac_ext <<_ACEOF
7609 #line $LINENO "configure"
7610 /* confdefs.h.  */
7611 _ACEOF
7612 cat confdefs.h >>conftest.$ac_ext
7613 cat >>conftest.$ac_ext <<_ACEOF
7614 /* end confdefs.h.  */
7615 $ac_includes_default
7616 int
7617 main ()
7618 {
7619 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
7620 test_array [0] = 0
7621
7622   ;
7623   return 0;
7624 }
7625 _ACEOF
7626 rm -f conftest.$ac_objext
7627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7628   (eval $ac_compile) 2>&5
7629   ac_status=$?
7630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631   (exit $ac_status); } &&
7632          { ac_try='test -s conftest.$ac_objext'
7633   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634   (eval $ac_try) 2>&5
7635   ac_status=$?
7636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637   (exit $ac_status); }; }; then
7638   ac_lo=$ac_mid; break
7639 else
7640   echo "$as_me: failed program was:" >&5
7641 sed 's/^/| /' conftest.$ac_ext >&5
7642
7643 ac_hi=`expr '(' $ac_mid ')' - 1`
7644                        if test $ac_mid -le $ac_hi; then
7645                          ac_lo= ac_hi=
7646                          break
7647                        fi
7648                        ac_mid=`expr 2 '*' $ac_mid`
7649 fi
7650 rm -f conftest.$ac_objext conftest.$ac_ext
7651   done
7652 else
7653   echo "$as_me: failed program was:" >&5
7654 sed 's/^/| /' conftest.$ac_ext >&5
7655
7656 ac_lo= ac_hi=
7657 fi
7658 rm -f conftest.$ac_objext conftest.$ac_ext
7659 fi
7660 rm -f conftest.$ac_objext conftest.$ac_ext
7661 # Binary search between lo and hi bounds.
7662 while test "x$ac_lo" != "x$ac_hi"; do
7663   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7664   cat >conftest.$ac_ext <<_ACEOF
7665 #line $LINENO "configure"
7666 /* confdefs.h.  */
7667 _ACEOF
7668 cat confdefs.h >>conftest.$ac_ext
7669 cat >>conftest.$ac_ext <<_ACEOF
7670 /* end confdefs.h.  */
7671 $ac_includes_default
7672 int
7673 main ()
7674 {
7675 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7676 test_array [0] = 0
7677
7678   ;
7679   return 0;
7680 }
7681 _ACEOF
7682 rm -f conftest.$ac_objext
7683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7684   (eval $ac_compile) 2>&5
7685   ac_status=$?
7686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687   (exit $ac_status); } &&
7688          { ac_try='test -s conftest.$ac_objext'
7689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7690   (eval $ac_try) 2>&5
7691   ac_status=$?
7692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7693   (exit $ac_status); }; }; then
7694   ac_hi=$ac_mid
7695 else
7696   echo "$as_me: failed program was:" >&5
7697 sed 's/^/| /' conftest.$ac_ext >&5
7698
7699 ac_lo=`expr '(' $ac_mid ')' + 1`
7700 fi
7701 rm -f conftest.$ac_objext conftest.$ac_ext
7702 done
7703 case $ac_lo in
7704 ?*) ac_cv_sizeof_int=$ac_lo;;
7705 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7706 See \`config.log' for more details." >&5
7707 echo "$as_me: error: cannot compute sizeof (int), 77
7708 See \`config.log' for more details." >&2;}
7709    { (exit 1); exit 1; }; } ;;
7710 esac
7711 else
7712   if test "$cross_compiling" = yes; then
7713   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7714 See \`config.log' for more details." >&5
7715 echo "$as_me: error: cannot run test program while cross compiling
7716 See \`config.log' for more details." >&2;}
7717    { (exit 1); exit 1; }; }
7718 else
7719   cat >conftest.$ac_ext <<_ACEOF
7720 #line $LINENO "configure"
7721 /* confdefs.h.  */
7722 _ACEOF
7723 cat confdefs.h >>conftest.$ac_ext
7724 cat >>conftest.$ac_ext <<_ACEOF
7725 /* end confdefs.h.  */
7726 $ac_includes_default
7727 long longval () { return (long) (sizeof (int)); }
7728 unsigned long ulongval () { return (long) (sizeof (int)); }
7729 #include <stdio.h>
7730 #include <stdlib.h>
7731 int
7732 main ()
7733 {
7734
7735   FILE *f = fopen ("conftest.val", "w");
7736   if (! f)
7737     exit (1);
7738   if (((long) (sizeof (int))) < 0)
7739     {
7740       long i = longval ();
7741       if (i != ((long) (sizeof (int))))
7742         exit (1);
7743       fprintf (f, "%ld\n", i);
7744     }
7745   else
7746     {
7747       unsigned long i = ulongval ();
7748       if (i != ((long) (sizeof (int))))
7749         exit (1);
7750       fprintf (f, "%lu\n", i);
7751     }
7752   exit (ferror (f) || fclose (f) != 0);
7753
7754   ;
7755   return 0;
7756 }
7757 _ACEOF
7758 rm -f conftest$ac_exeext
7759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7760   (eval $ac_link) 2>&5
7761   ac_status=$?
7762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7763   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7765   (eval $ac_try) 2>&5
7766   ac_status=$?
7767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768   (exit $ac_status); }; }; then
7769   ac_cv_sizeof_int=`cat conftest.val`
7770 else
7771   echo "$as_me: program exited with status $ac_status" >&5
7772 echo "$as_me: failed program was:" >&5
7773 sed 's/^/| /' conftest.$ac_ext >&5
7774
7775 ( exit $ac_status )
7776 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7777 See \`config.log' for more details." >&5
7778 echo "$as_me: error: cannot compute sizeof (int), 77
7779 See \`config.log' for more details." >&2;}
7780    { (exit 1); exit 1; }; }
7781 fi
7782 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7783 fi
7784 fi
7785 rm -f conftest.val
7786 else
7787   ac_cv_sizeof_int=0
7788 fi
7789 fi
7790 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7791 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7792 cat >>confdefs.h <<_ACEOF
7793 #define SIZEOF_INT $ac_cv_sizeof_int
7794 _ACEOF
7795
7796
7797 echo "$as_me:$LINENO: checking for long" >&5
7798 echo $ECHO_N "checking for long... $ECHO_C" >&6
7799 if test "${ac_cv_type_long+set}" = set; then
7800   echo $ECHO_N "(cached) $ECHO_C" >&6
7801 else
7802   cat >conftest.$ac_ext <<_ACEOF
7803 #line $LINENO "configure"
7804 /* confdefs.h.  */
7805 _ACEOF
7806 cat confdefs.h >>conftest.$ac_ext
7807 cat >>conftest.$ac_ext <<_ACEOF
7808 /* end confdefs.h.  */
7809 $ac_includes_default
7810 int
7811 main ()
7812 {
7813 if ((long *) 0)
7814   return 0;
7815 if (sizeof (long))
7816   return 0;
7817   ;
7818   return 0;
7819 }
7820 _ACEOF
7821 rm -f conftest.$ac_objext
7822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7823   (eval $ac_compile) 2>&5
7824   ac_status=$?
7825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826   (exit $ac_status); } &&
7827          { ac_try='test -s conftest.$ac_objext'
7828   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7829   (eval $ac_try) 2>&5
7830   ac_status=$?
7831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832   (exit $ac_status); }; }; then
7833   ac_cv_type_long=yes
7834 else
7835   echo "$as_me: failed program was:" >&5
7836 sed 's/^/| /' conftest.$ac_ext >&5
7837
7838 ac_cv_type_long=no
7839 fi
7840 rm -f conftest.$ac_objext conftest.$ac_ext
7841 fi
7842 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7843 echo "${ECHO_T}$ac_cv_type_long" >&6
7844
7845 echo "$as_me:$LINENO: checking size of long" >&5
7846 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7847 if test "${ac_cv_sizeof_long+set}" = set; then
7848   echo $ECHO_N "(cached) $ECHO_C" >&6
7849 else
7850   if test "$ac_cv_type_long" = yes; then
7851   # The cast to unsigned long works around a bug in the HP C Compiler
7852   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7853   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7854   # This bug is HP SR number 8606223364.
7855   if test "$cross_compiling" = yes; then
7856   # Depending upon the size, compute the lo and hi bounds.
7857 cat >conftest.$ac_ext <<_ACEOF
7858 #line $LINENO "configure"
7859 /* confdefs.h.  */
7860 _ACEOF
7861 cat confdefs.h >>conftest.$ac_ext
7862 cat >>conftest.$ac_ext <<_ACEOF
7863 /* end confdefs.h.  */
7864 $ac_includes_default
7865 int
7866 main ()
7867 {
7868 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7869 test_array [0] = 0
7870
7871   ;
7872   return 0;
7873 }
7874 _ACEOF
7875 rm -f conftest.$ac_objext
7876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7877   (eval $ac_compile) 2>&5
7878   ac_status=$?
7879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880   (exit $ac_status); } &&
7881          { ac_try='test -s conftest.$ac_objext'
7882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7883   (eval $ac_try) 2>&5
7884   ac_status=$?
7885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886   (exit $ac_status); }; }; then
7887   ac_lo=0 ac_mid=0
7888   while :; do
7889     cat >conftest.$ac_ext <<_ACEOF
7890 #line $LINENO "configure"
7891 /* confdefs.h.  */
7892 _ACEOF
7893 cat confdefs.h >>conftest.$ac_ext
7894 cat >>conftest.$ac_ext <<_ACEOF
7895 /* end confdefs.h.  */
7896 $ac_includes_default
7897 int
7898 main ()
7899 {
7900 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7901 test_array [0] = 0
7902
7903   ;
7904   return 0;
7905 }
7906 _ACEOF
7907 rm -f conftest.$ac_objext
7908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7909   (eval $ac_compile) 2>&5
7910   ac_status=$?
7911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912   (exit $ac_status); } &&
7913          { ac_try='test -s conftest.$ac_objext'
7914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7915   (eval $ac_try) 2>&5
7916   ac_status=$?
7917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918   (exit $ac_status); }; }; then
7919   ac_hi=$ac_mid; break
7920 else
7921   echo "$as_me: failed program was:" >&5
7922 sed 's/^/| /' conftest.$ac_ext >&5
7923
7924 ac_lo=`expr $ac_mid + 1`
7925                     if test $ac_lo -le $ac_mid; then
7926                       ac_lo= ac_hi=
7927                       break
7928                     fi
7929                     ac_mid=`expr 2 '*' $ac_mid + 1`
7930 fi
7931 rm -f conftest.$ac_objext conftest.$ac_ext
7932   done
7933 else
7934   echo "$as_me: failed program was:" >&5
7935 sed 's/^/| /' conftest.$ac_ext >&5
7936
7937 cat >conftest.$ac_ext <<_ACEOF
7938 #line $LINENO "configure"
7939 /* confdefs.h.  */
7940 _ACEOF
7941 cat confdefs.h >>conftest.$ac_ext
7942 cat >>conftest.$ac_ext <<_ACEOF
7943 /* end confdefs.h.  */
7944 $ac_includes_default
7945 int
7946 main ()
7947 {
7948 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7949 test_array [0] = 0
7950
7951   ;
7952   return 0;
7953 }
7954 _ACEOF
7955 rm -f conftest.$ac_objext
7956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7957   (eval $ac_compile) 2>&5
7958   ac_status=$?
7959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960   (exit $ac_status); } &&
7961          { ac_try='test -s conftest.$ac_objext'
7962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7963   (eval $ac_try) 2>&5
7964   ac_status=$?
7965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966   (exit $ac_status); }; }; then
7967   ac_hi=-1 ac_mid=-1
7968   while :; do
7969     cat >conftest.$ac_ext <<_ACEOF
7970 #line $LINENO "configure"
7971 /* confdefs.h.  */
7972 _ACEOF
7973 cat confdefs.h >>conftest.$ac_ext
7974 cat >>conftest.$ac_ext <<_ACEOF
7975 /* end confdefs.h.  */
7976 $ac_includes_default
7977 int
7978 main ()
7979 {
7980 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7981 test_array [0] = 0
7982
7983   ;
7984   return 0;
7985 }
7986 _ACEOF
7987 rm -f conftest.$ac_objext
7988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7989   (eval $ac_compile) 2>&5
7990   ac_status=$?
7991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992   (exit $ac_status); } &&
7993          { ac_try='test -s conftest.$ac_objext'
7994   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7995   (eval $ac_try) 2>&5
7996   ac_status=$?
7997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998   (exit $ac_status); }; }; then
7999   ac_lo=$ac_mid; break
8000 else
8001   echo "$as_me: failed program was:" >&5
8002 sed 's/^/| /' conftest.$ac_ext >&5
8003
8004 ac_hi=`expr '(' $ac_mid ')' - 1`
8005                        if test $ac_mid -le $ac_hi; then
8006                          ac_lo= ac_hi=
8007                          break
8008                        fi
8009                        ac_mid=`expr 2 '*' $ac_mid`
8010 fi
8011 rm -f conftest.$ac_objext conftest.$ac_ext
8012   done
8013 else
8014   echo "$as_me: failed program was:" >&5
8015 sed 's/^/| /' conftest.$ac_ext >&5
8016
8017 ac_lo= ac_hi=
8018 fi
8019 rm -f conftest.$ac_objext conftest.$ac_ext
8020 fi
8021 rm -f conftest.$ac_objext conftest.$ac_ext
8022 # Binary search between lo and hi bounds.
8023 while test "x$ac_lo" != "x$ac_hi"; do
8024   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8025   cat >conftest.$ac_ext <<_ACEOF
8026 #line $LINENO "configure"
8027 /* confdefs.h.  */
8028 _ACEOF
8029 cat confdefs.h >>conftest.$ac_ext
8030 cat >>conftest.$ac_ext <<_ACEOF
8031 /* end confdefs.h.  */
8032 $ac_includes_default
8033 int
8034 main ()
8035 {
8036 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
8037 test_array [0] = 0
8038
8039   ;
8040   return 0;
8041 }
8042 _ACEOF
8043 rm -f conftest.$ac_objext
8044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8045   (eval $ac_compile) 2>&5
8046   ac_status=$?
8047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048   (exit $ac_status); } &&
8049          { ac_try='test -s conftest.$ac_objext'
8050   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8051   (eval $ac_try) 2>&5
8052   ac_status=$?
8053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054   (exit $ac_status); }; }; then
8055   ac_hi=$ac_mid
8056 else
8057   echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.$ac_ext >&5
8059
8060 ac_lo=`expr '(' $ac_mid ')' + 1`
8061 fi
8062 rm -f conftest.$ac_objext conftest.$ac_ext
8063 done
8064 case $ac_lo in
8065 ?*) ac_cv_sizeof_long=$ac_lo;;
8066 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
8067 See \`config.log' for more details." >&5
8068 echo "$as_me: error: cannot compute sizeof (long), 77
8069 See \`config.log' for more details." >&2;}
8070    { (exit 1); exit 1; }; } ;;
8071 esac
8072 else
8073   if test "$cross_compiling" = yes; then
8074   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8075 See \`config.log' for more details." >&5
8076 echo "$as_me: error: cannot run test program while cross compiling
8077 See \`config.log' for more details." >&2;}
8078    { (exit 1); exit 1; }; }
8079 else
8080   cat >conftest.$ac_ext <<_ACEOF
8081 #line $LINENO "configure"
8082 /* confdefs.h.  */
8083 _ACEOF
8084 cat confdefs.h >>conftest.$ac_ext
8085 cat >>conftest.$ac_ext <<_ACEOF
8086 /* end confdefs.h.  */
8087 $ac_includes_default
8088 long longval () { return (long) (sizeof (long)); }
8089 unsigned long ulongval () { return (long) (sizeof (long)); }
8090 #include <stdio.h>
8091 #include <stdlib.h>
8092 int
8093 main ()
8094 {
8095
8096   FILE *f = fopen ("conftest.val", "w");
8097   if (! f)
8098     exit (1);
8099   if (((long) (sizeof (long))) < 0)
8100     {
8101       long i = longval ();
8102       if (i != ((long) (sizeof (long))))
8103         exit (1);
8104       fprintf (f, "%ld\n", i);
8105     }
8106   else
8107     {
8108       unsigned long i = ulongval ();
8109       if (i != ((long) (sizeof (long))))
8110         exit (1);
8111       fprintf (f, "%lu\n", i);
8112     }
8113   exit (ferror (f) || fclose (f) != 0);
8114
8115   ;
8116   return 0;
8117 }
8118 _ACEOF
8119 rm -f conftest$ac_exeext
8120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8121   (eval $ac_link) 2>&5
8122   ac_status=$?
8123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126   (eval $ac_try) 2>&5
8127   ac_status=$?
8128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129   (exit $ac_status); }; }; then
8130   ac_cv_sizeof_long=`cat conftest.val`
8131 else
8132   echo "$as_me: program exited with status $ac_status" >&5
8133 echo "$as_me: failed program was:" >&5
8134 sed 's/^/| /' conftest.$ac_ext >&5
8135
8136 ( exit $ac_status )
8137 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
8138 See \`config.log' for more details." >&5
8139 echo "$as_me: error: cannot compute sizeof (long), 77
8140 See \`config.log' for more details." >&2;}
8141    { (exit 1); exit 1; }; }
8142 fi
8143 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8144 fi
8145 fi
8146 rm -f conftest.val
8147 else
8148   ac_cv_sizeof_long=0
8149 fi
8150 fi
8151 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8152 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
8153 cat >>confdefs.h <<_ACEOF
8154 #define SIZEOF_LONG $ac_cv_sizeof_long
8155 _ACEOF
8156
8157
8158
8159 echo "$as_me:$LINENO: checking for pid_t" >&5
8160 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8161 if test "${ac_cv_type_pid_t+set}" = set; then
8162   echo $ECHO_N "(cached) $ECHO_C" >&6
8163 else
8164   cat >conftest.$ac_ext <<_ACEOF
8165 #line $LINENO "configure"
8166 /* confdefs.h.  */
8167 _ACEOF
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h.  */
8171 $ac_includes_default
8172 int
8173 main ()
8174 {
8175 if ((pid_t *) 0)
8176   return 0;
8177 if (sizeof (pid_t))
8178   return 0;
8179   ;
8180   return 0;
8181 }
8182 _ACEOF
8183 rm -f conftest.$ac_objext
8184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8185   (eval $ac_compile) 2>&5
8186   ac_status=$?
8187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188   (exit $ac_status); } &&
8189          { ac_try='test -s conftest.$ac_objext'
8190   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8191   (eval $ac_try) 2>&5
8192   ac_status=$?
8193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194   (exit $ac_status); }; }; then
8195   ac_cv_type_pid_t=yes
8196 else
8197   echo "$as_me: failed program was:" >&5
8198 sed 's/^/| /' conftest.$ac_ext >&5
8199
8200 ac_cv_type_pid_t=no
8201 fi
8202 rm -f conftest.$ac_objext conftest.$ac_ext
8203 fi
8204 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8205 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8206 if test $ac_cv_type_pid_t = yes; then
8207   :
8208 else
8209
8210 cat >>confdefs.h <<_ACEOF
8211 #define pid_t int
8212 _ACEOF
8213
8214 fi
8215
8216
8217
8218
8219
8220
8221
8222 for ac_func in fgetpos memmove setegid srand48 strerror
8223 do
8224 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8225 echo "$as_me:$LINENO: checking for $ac_func" >&5
8226 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8227 if eval "test \"\${$as_ac_var+set}\" = set"; then
8228   echo $ECHO_N "(cached) $ECHO_C" >&6
8229 else
8230   cat >conftest.$ac_ext <<_ACEOF
8231 #line $LINENO "configure"
8232 /* confdefs.h.  */
8233 _ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h.  */
8237 /* System header to define __stub macros and hopefully few prototypes,
8238     which can conflict with char $ac_func (); below.
8239     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8240     <limits.h> exists even on freestanding compilers.  */
8241 #ifdef __STDC__
8242 # include <limits.h>
8243 #else
8244 # include <assert.h>
8245 #endif
8246 /* Override any gcc2 internal prototype to avoid an error.  */
8247 #ifdef __cplusplus
8248 extern "C"
8249 {
8250 #endif
8251 /* We use char because int might match the return type of a gcc2
8252    builtin and then its argument prototype would still apply.  */
8253 char $ac_func ();
8254 /* The GNU C library defines this for functions which it implements
8255     to always fail with ENOSYS.  Some functions are actually named
8256     something starting with __ and the normal name is an alias.  */
8257 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8258 choke me
8259 #else
8260 char (*f) () = $ac_func;
8261 #endif
8262 #ifdef __cplusplus
8263 }
8264 #endif
8265
8266 int
8267 main ()
8268 {
8269 return f != $ac_func;
8270   ;
8271   return 0;
8272 }
8273 _ACEOF
8274 rm -f conftest.$ac_objext conftest$ac_exeext
8275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8276   (eval $ac_link) 2>&5
8277   ac_status=$?
8278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279   (exit $ac_status); } &&
8280          { ac_try='test -s conftest$ac_exeext'
8281   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8282   (eval $ac_try) 2>&5
8283   ac_status=$?
8284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285   (exit $ac_status); }; }; then
8286   eval "$as_ac_var=yes"
8287 else
8288   echo "$as_me: failed program was:" >&5
8289 sed 's/^/| /' conftest.$ac_ext >&5
8290
8291 eval "$as_ac_var=no"
8292 fi
8293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8294 fi
8295 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8296 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8297 if test `eval echo '${'$as_ac_var'}'` = yes; then
8298   cat >>confdefs.h <<_ACEOF
8299 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8300 _ACEOF
8301
8302 fi
8303 done
8304
8305
8306
8307
8308 for ac_func in strcasecmp strdup
8309 do
8310 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8311 echo "$as_me:$LINENO: checking for $ac_func" >&5
8312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8313 if eval "test \"\${$as_ac_var+set}\" = set"; then
8314   echo $ECHO_N "(cached) $ECHO_C" >&6
8315 else
8316   cat >conftest.$ac_ext <<_ACEOF
8317 #line $LINENO "configure"
8318 /* confdefs.h.  */
8319 _ACEOF
8320 cat confdefs.h >>conftest.$ac_ext
8321 cat >>conftest.$ac_ext <<_ACEOF
8322 /* end confdefs.h.  */
8323 /* System header to define __stub macros and hopefully few prototypes,
8324     which can conflict with char $ac_func (); below.
8325     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8326     <limits.h> exists even on freestanding compilers.  */
8327 #ifdef __STDC__
8328 # include <limits.h>
8329 #else
8330 # include <assert.h>
8331 #endif
8332 /* Override any gcc2 internal prototype to avoid an error.  */
8333 #ifdef __cplusplus
8334 extern "C"
8335 {
8336 #endif
8337 /* We use char because int might match the return type of a gcc2
8338    builtin and then its argument prototype would still apply.  */
8339 char $ac_func ();
8340 /* The GNU C library defines this for functions which it implements
8341     to always fail with ENOSYS.  Some functions are actually named
8342     something starting with __ and the normal name is an alias.  */
8343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8344 choke me
8345 #else
8346 char (*f) () = $ac_func;
8347 #endif
8348 #ifdef __cplusplus
8349 }
8350 #endif
8351
8352 int
8353 main ()
8354 {
8355 return f != $ac_func;
8356   ;
8357   return 0;
8358 }
8359 _ACEOF
8360 rm -f conftest.$ac_objext conftest$ac_exeext
8361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8362   (eval $ac_link) 2>&5
8363   ac_status=$?
8364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365   (exit $ac_status); } &&
8366          { ac_try='test -s conftest$ac_exeext'
8367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8368   (eval $ac_try) 2>&5
8369   ac_status=$?
8370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371   (exit $ac_status); }; }; then
8372   eval "$as_ac_var=yes"
8373 else
8374   echo "$as_me: failed program was:" >&5
8375 sed 's/^/| /' conftest.$ac_ext >&5
8376
8377 eval "$as_ac_var=no"
8378 fi
8379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8380 fi
8381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8382 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8383 if test `eval echo '${'$as_ac_var'}'` = yes; then
8384   cat >>confdefs.h <<_ACEOF
8385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8386 _ACEOF
8387
8388 else
8389   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
8390 fi
8391 done
8392
8393
8394
8395 echo "$as_me:$LINENO: checking for getopt" >&5
8396 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
8397 if test "${ac_cv_func_getopt+set}" = set; then
8398   echo $ECHO_N "(cached) $ECHO_C" >&6
8399 else
8400   cat >conftest.$ac_ext <<_ACEOF
8401 #line $LINENO "configure"
8402 /* confdefs.h.  */
8403 _ACEOF
8404 cat confdefs.h >>conftest.$ac_ext
8405 cat >>conftest.$ac_ext <<_ACEOF
8406 /* end confdefs.h.  */
8407 /* System header to define __stub macros and hopefully few prototypes,
8408     which can conflict with char getopt (); below.
8409     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8410     <limits.h> exists even on freestanding compilers.  */
8411 #ifdef __STDC__
8412 # include <limits.h>
8413 #else
8414 # include <assert.h>
8415 #endif
8416 /* Override any gcc2 internal prototype to avoid an error.  */
8417 #ifdef __cplusplus
8418 extern "C"
8419 {
8420 #endif
8421 /* We use char because int might match the return type of a gcc2
8422    builtin and then its argument prototype would still apply.  */
8423 char getopt ();
8424 /* The GNU C library defines this for functions which it implements
8425     to always fail with ENOSYS.  Some functions are actually named
8426     something starting with __ and the normal name is an alias.  */
8427 #if defined (__stub_getopt) || defined (__stub___getopt)
8428 choke me
8429 #else
8430 char (*f) () = getopt;
8431 #endif
8432 #ifdef __cplusplus
8433 }
8434 #endif
8435
8436 int
8437 main ()
8438 {
8439 return f != getopt;
8440   ;
8441   return 0;
8442 }
8443 _ACEOF
8444 rm -f conftest.$ac_objext conftest$ac_exeext
8445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8446   (eval $ac_link) 2>&5
8447   ac_status=$?
8448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449   (exit $ac_status); } &&
8450          { ac_try='test -s conftest$ac_exeext'
8451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8452   (eval $ac_try) 2>&5
8453   ac_status=$?
8454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455   (exit $ac_status); }; }; then
8456   ac_cv_func_getopt=yes
8457 else
8458   echo "$as_me: failed program was:" >&5
8459 sed 's/^/| /' conftest.$ac_ext >&5
8460
8461 ac_cv_func_getopt=no
8462 fi
8463 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8464 fi
8465 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
8466 echo "${ECHO_T}$ac_cv_func_getopt" >&6
8467
8468 if test $ac_cv_func_getopt = yes; then
8469
8470 for ac_header in getopt.h
8471 do
8472 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8474   echo "$as_me:$LINENO: checking for $ac_header" >&5
8475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8476 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8477   echo $ECHO_N "(cached) $ECHO_C" >&6
8478 fi
8479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8480 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8481 else
8482   # Is the header compilable?
8483 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8484 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8485 cat >conftest.$ac_ext <<_ACEOF
8486 #line $LINENO "configure"
8487 /* confdefs.h.  */
8488 _ACEOF
8489 cat confdefs.h >>conftest.$ac_ext
8490 cat >>conftest.$ac_ext <<_ACEOF
8491 /* end confdefs.h.  */
8492 $ac_includes_default
8493 #include <$ac_header>
8494 _ACEOF
8495 rm -f conftest.$ac_objext
8496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8497   (eval $ac_compile) 2>&5
8498   ac_status=$?
8499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500   (exit $ac_status); } &&
8501          { ac_try='test -s conftest.$ac_objext'
8502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8503   (eval $ac_try) 2>&5
8504   ac_status=$?
8505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506   (exit $ac_status); }; }; then
8507   ac_header_compiler=yes
8508 else
8509   echo "$as_me: failed program was:" >&5
8510 sed 's/^/| /' conftest.$ac_ext >&5
8511
8512 ac_header_compiler=no
8513 fi
8514 rm -f conftest.$ac_objext conftest.$ac_ext
8515 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8516 echo "${ECHO_T}$ac_header_compiler" >&6
8517
8518 # Is the header present?
8519 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8520 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8521 cat >conftest.$ac_ext <<_ACEOF
8522 #line $LINENO "configure"
8523 /* confdefs.h.  */
8524 _ACEOF
8525 cat confdefs.h >>conftest.$ac_ext
8526 cat >>conftest.$ac_ext <<_ACEOF
8527 /* end confdefs.h.  */
8528 #include <$ac_header>
8529 _ACEOF
8530 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8531   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8532   ac_status=$?
8533   grep -v '^ *+' conftest.er1 >conftest.err
8534   rm -f conftest.er1
8535   cat conftest.err >&5
8536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537   (exit $ac_status); } >/dev/null; then
8538   if test -s conftest.err; then
8539     ac_cpp_err=$ac_c_preproc_warn_flag
8540   else
8541     ac_cpp_err=
8542   fi
8543 else
8544   ac_cpp_err=yes
8545 fi
8546 if test -z "$ac_cpp_err"; then
8547   ac_header_preproc=yes
8548 else
8549   echo "$as_me: failed program was:" >&5
8550 sed 's/^/| /' conftest.$ac_ext >&5
8551
8552   ac_header_preproc=no
8553 fi
8554 rm -f conftest.err conftest.$ac_ext
8555 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8556 echo "${ECHO_T}$ac_header_preproc" >&6
8557
8558 # So?  What about this header?
8559 case $ac_header_compiler:$ac_header_preproc in
8560   yes:no )
8561     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8562 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8563     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8565     (
8566       cat <<\_ASBOX
8567 ## ------------------------------------ ##
8568 ## Report this to bug-autoconf@gnu.org. ##
8569 ## ------------------------------------ ##
8570 _ASBOX
8571     ) |
8572       sed "s/^/$as_me: WARNING:     /" >&2
8573     ;;
8574   no:yes )
8575     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8576 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8577     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8578 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8579     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8581     (
8582       cat <<\_ASBOX
8583 ## ------------------------------------ ##
8584 ## Report this to bug-autoconf@gnu.org. ##
8585 ## ------------------------------------ ##
8586 _ASBOX
8587     ) |
8588       sed "s/^/$as_me: WARNING:     /" >&2
8589     ;;
8590 esac
8591 echo "$as_me:$LINENO: checking for $ac_header" >&5
8592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8593 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8594   echo $ECHO_N "(cached) $ECHO_C" >&6
8595 else
8596   eval "$as_ac_Header=$ac_header_preproc"
8597 fi
8598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8599 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8600
8601 fi
8602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8603   cat >>confdefs.h <<_ACEOF
8604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8605 _ACEOF
8606
8607 fi
8608
8609 done
8610
8611 fi
8612
8613 mutt_cv_snprintf=no
8614 SNPRINTFOBJS=""
8615
8616 for ac_func in snprintf
8617 do
8618 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8619 echo "$as_me:$LINENO: checking for $ac_func" >&5
8620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8621 if eval "test \"\${$as_ac_var+set}\" = set"; then
8622   echo $ECHO_N "(cached) $ECHO_C" >&6
8623 else
8624   cat >conftest.$ac_ext <<_ACEOF
8625 #line $LINENO "configure"
8626 /* confdefs.h.  */
8627 _ACEOF
8628 cat confdefs.h >>conftest.$ac_ext
8629 cat >>conftest.$ac_ext <<_ACEOF
8630 /* end confdefs.h.  */
8631 /* System header to define __stub macros and hopefully few prototypes,
8632     which can conflict with char $ac_func (); below.
8633     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8634     <limits.h> exists even on freestanding compilers.  */
8635 #ifdef __STDC__
8636 # include <limits.h>
8637 #else
8638 # include <assert.h>
8639 #endif
8640 /* Override any gcc2 internal prototype to avoid an error.  */
8641 #ifdef __cplusplus
8642 extern "C"
8643 {
8644 #endif
8645 /* We use char because int might match the return type of a gcc2
8646    builtin and then its argument prototype would still apply.  */
8647 char $ac_func ();
8648 /* The GNU C library defines this for functions which it implements
8649     to always fail with ENOSYS.  Some functions are actually named
8650     something starting with __ and the normal name is an alias.  */
8651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8652 choke me
8653 #else
8654 char (*f) () = $ac_func;
8655 #endif
8656 #ifdef __cplusplus
8657 }
8658 #endif
8659
8660 int
8661 main ()
8662 {
8663 return f != $ac_func;
8664   ;
8665   return 0;
8666 }
8667 _ACEOF
8668 rm -f conftest.$ac_objext conftest$ac_exeext
8669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8670   (eval $ac_link) 2>&5
8671   ac_status=$?
8672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673   (exit $ac_status); } &&
8674          { ac_try='test -s conftest$ac_exeext'
8675   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8676   (eval $ac_try) 2>&5
8677   ac_status=$?
8678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679   (exit $ac_status); }; }; then
8680   eval "$as_ac_var=yes"
8681 else
8682   echo "$as_me: failed program was:" >&5
8683 sed 's/^/| /' conftest.$ac_ext >&5
8684
8685 eval "$as_ac_var=no"
8686 fi
8687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8688 fi
8689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8690 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8691 if test `eval echo '${'$as_ac_var'}'` = yes; then
8692   cat >>confdefs.h <<_ACEOF
8693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8694 _ACEOF
8695
8696 else
8697   mutt_cv_snprintf=yes
8698 fi
8699 done
8700
8701
8702 for ac_func in vsnprintf
8703 do
8704 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8705 echo "$as_me:$LINENO: checking for $ac_func" >&5
8706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8707 if eval "test \"\${$as_ac_var+set}\" = set"; then
8708   echo $ECHO_N "(cached) $ECHO_C" >&6
8709 else
8710   cat >conftest.$ac_ext <<_ACEOF
8711 #line $LINENO "configure"
8712 /* confdefs.h.  */
8713 _ACEOF
8714 cat confdefs.h >>conftest.$ac_ext
8715 cat >>conftest.$ac_ext <<_ACEOF
8716 /* end confdefs.h.  */
8717 /* System header to define __stub macros and hopefully few prototypes,
8718     which can conflict with char $ac_func (); below.
8719     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8720     <limits.h> exists even on freestanding compilers.  */
8721 #ifdef __STDC__
8722 # include <limits.h>
8723 #else
8724 # include <assert.h>
8725 #endif
8726 /* Override any gcc2 internal prototype to avoid an error.  */
8727 #ifdef __cplusplus
8728 extern "C"
8729 {
8730 #endif
8731 /* We use char because int might match the return type of a gcc2
8732    builtin and then its argument prototype would still apply.  */
8733 char $ac_func ();
8734 /* The GNU C library defines this for functions which it implements
8735     to always fail with ENOSYS.  Some functions are actually named
8736     something starting with __ and the normal name is an alias.  */
8737 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8738 choke me
8739 #else
8740 char (*f) () = $ac_func;
8741 #endif
8742 #ifdef __cplusplus
8743 }
8744 #endif
8745
8746 int
8747 main ()
8748 {
8749 return f != $ac_func;
8750   ;
8751   return 0;
8752 }
8753 _ACEOF
8754 rm -f conftest.$ac_objext conftest$ac_exeext
8755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8756   (eval $ac_link) 2>&5
8757   ac_status=$?
8758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759   (exit $ac_status); } &&
8760          { ac_try='test -s conftest$ac_exeext'
8761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762   (eval $ac_try) 2>&5
8763   ac_status=$?
8764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765   (exit $ac_status); }; }; then
8766   eval "$as_ac_var=yes"
8767 else
8768   echo "$as_me: failed program was:" >&5
8769 sed 's/^/| /' conftest.$ac_ext >&5
8770
8771 eval "$as_ac_var=no"
8772 fi
8773 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8774 fi
8775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8776 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8777 if test `eval echo '${'$as_ac_var'}'` = yes; then
8778   cat >>confdefs.h <<_ACEOF
8779 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8780 _ACEOF
8781
8782 else
8783   mutt_cv_snprintf=yes
8784 fi
8785 done
8786
8787 if test $mutt_cv_snprintf = yes; then
8788         LIBOBJS="$LIBOBJS snprintf.$ac_objext"
8789 fi
8790
8791
8792 for ac_func in ftruncate
8793 do
8794 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8795 echo "$as_me:$LINENO: checking for $ac_func" >&5
8796 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8797 if eval "test \"\${$as_ac_var+set}\" = set"; then
8798   echo $ECHO_N "(cached) $ECHO_C" >&6
8799 else
8800   cat >conftest.$ac_ext <<_ACEOF
8801 #line $LINENO "configure"
8802 /* confdefs.h.  */
8803 _ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h.  */
8807 /* System header to define __stub macros and hopefully few prototypes,
8808     which can conflict with char $ac_func (); below.
8809     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8810     <limits.h> exists even on freestanding compilers.  */
8811 #ifdef __STDC__
8812 # include <limits.h>
8813 #else
8814 # include <assert.h>
8815 #endif
8816 /* Override any gcc2 internal prototype to avoid an error.  */
8817 #ifdef __cplusplus
8818 extern "C"
8819 {
8820 #endif
8821 /* We use char because int might match the return type of a gcc2
8822    builtin and then its argument prototype would still apply.  */
8823 char $ac_func ();
8824 /* The GNU C library defines this for functions which it implements
8825     to always fail with ENOSYS.  Some functions are actually named
8826     something starting with __ and the normal name is an alias.  */
8827 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8828 choke me
8829 #else
8830 char (*f) () = $ac_func;
8831 #endif
8832 #ifdef __cplusplus
8833 }
8834 #endif
8835
8836 int
8837 main ()
8838 {
8839 return f != $ac_func;
8840   ;
8841   return 0;
8842 }
8843 _ACEOF
8844 rm -f conftest.$ac_objext conftest$ac_exeext
8845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8846   (eval $ac_link) 2>&5
8847   ac_status=$?
8848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849   (exit $ac_status); } &&
8850          { ac_try='test -s conftest$ac_exeext'
8851   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8852   (eval $ac_try) 2>&5
8853   ac_status=$?
8854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855   (exit $ac_status); }; }; then
8856   eval "$as_ac_var=yes"
8857 else
8858   echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8860
8861 eval "$as_ac_var=no"
8862 fi
8863 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8864 fi
8865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8866 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8867 if test `eval echo '${'$as_ac_var'}'` = yes; then
8868   cat >>confdefs.h <<_ACEOF
8869 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8870 _ACEOF
8871
8872 else
8873
8874 echo "$as_me:$LINENO: checking for chsize in -lx" >&5
8875 echo $ECHO_N "checking for chsize in -lx... $ECHO_C" >&6
8876 if test "${ac_cv_lib_x_chsize+set}" = set; then
8877   echo $ECHO_N "(cached) $ECHO_C" >&6
8878 else
8879   ac_check_lib_save_LIBS=$LIBS
8880 LIBS="-lx  $LIBS"
8881 cat >conftest.$ac_ext <<_ACEOF
8882 #line $LINENO "configure"
8883 /* confdefs.h.  */
8884 _ACEOF
8885 cat confdefs.h >>conftest.$ac_ext
8886 cat >>conftest.$ac_ext <<_ACEOF
8887 /* end confdefs.h.  */
8888
8889 /* Override any gcc2 internal prototype to avoid an error.  */
8890 #ifdef __cplusplus
8891 extern "C"
8892 #endif
8893 /* We use char because int might match the return type of a gcc2
8894    builtin and then its argument prototype would still apply.  */
8895 char chsize ();
8896 int
8897 main ()
8898 {
8899 chsize ();
8900   ;
8901   return 0;
8902 }
8903 _ACEOF
8904 rm -f conftest.$ac_objext conftest$ac_exeext
8905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8906   (eval $ac_link) 2>&5
8907   ac_status=$?
8908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909   (exit $ac_status); } &&
8910          { ac_try='test -s conftest$ac_exeext'
8911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912   (eval $ac_try) 2>&5
8913   ac_status=$?
8914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915   (exit $ac_status); }; }; then
8916   ac_cv_lib_x_chsize=yes
8917 else
8918   echo "$as_me: failed program was:" >&5
8919 sed 's/^/| /' conftest.$ac_ext >&5
8920
8921 ac_cv_lib_x_chsize=no
8922 fi
8923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8924 LIBS=$ac_check_lib_save_LIBS
8925 fi
8926 echo "$as_me:$LINENO: result: $ac_cv_lib_x_chsize" >&5
8927 echo "${ECHO_T}$ac_cv_lib_x_chsize" >&6
8928 if test $ac_cv_lib_x_chsize = yes; then
8929   cat >>confdefs.h <<_ACEOF
8930 #define HAVE_LIBX 1
8931 _ACEOF
8932
8933   LIBS="-lx $LIBS"
8934
8935 fi
8936
8937 fi
8938 done
8939
8940
8941
8942 for ac_func in strftime
8943 do
8944 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8945 echo "$as_me:$LINENO: checking for $ac_func" >&5
8946 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8947 if eval "test \"\${$as_ac_var+set}\" = set"; then
8948   echo $ECHO_N "(cached) $ECHO_C" >&6
8949 else
8950   cat >conftest.$ac_ext <<_ACEOF
8951 #line $LINENO "configure"
8952 /* confdefs.h.  */
8953 _ACEOF
8954 cat confdefs.h >>conftest.$ac_ext
8955 cat >>conftest.$ac_ext <<_ACEOF
8956 /* end confdefs.h.  */
8957 /* System header to define __stub macros and hopefully few prototypes,
8958     which can conflict with char $ac_func (); below.
8959     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8960     <limits.h> exists even on freestanding compilers.  */
8961 #ifdef __STDC__
8962 # include <limits.h>
8963 #else
8964 # include <assert.h>
8965 #endif
8966 /* Override any gcc2 internal prototype to avoid an error.  */
8967 #ifdef __cplusplus
8968 extern "C"
8969 {
8970 #endif
8971 /* We use char because int might match the return type of a gcc2
8972    builtin and then its argument prototype would still apply.  */
8973 char $ac_func ();
8974 /* The GNU C library defines this for functions which it implements
8975     to always fail with ENOSYS.  Some functions are actually named
8976     something starting with __ and the normal name is an alias.  */
8977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8978 choke me
8979 #else
8980 char (*f) () = $ac_func;
8981 #endif
8982 #ifdef __cplusplus
8983 }
8984 #endif
8985
8986 int
8987 main ()
8988 {
8989 return f != $ac_func;
8990   ;
8991   return 0;
8992 }
8993 _ACEOF
8994 rm -f conftest.$ac_objext conftest$ac_exeext
8995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8996   (eval $ac_link) 2>&5
8997   ac_status=$?
8998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999   (exit $ac_status); } &&
9000          { ac_try='test -s conftest$ac_exeext'
9001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9002   (eval $ac_try) 2>&5
9003   ac_status=$?
9004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005   (exit $ac_status); }; }; then
9006   eval "$as_ac_var=yes"
9007 else
9008   echo "$as_me: failed program was:" >&5
9009 sed 's/^/| /' conftest.$ac_ext >&5
9010
9011 eval "$as_ac_var=no"
9012 fi
9013 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9014 fi
9015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9016 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9017 if test `eval echo '${'$as_ac_var'}'` = yes; then
9018   cat >>confdefs.h <<_ACEOF
9019 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9020 _ACEOF
9021
9022 else
9023
9024 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
9025 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
9026 if test "${ac_cv_lib_intl_strftime+set}" = set; then
9027   echo $ECHO_N "(cached) $ECHO_C" >&6
9028 else
9029   ac_check_lib_save_LIBS=$LIBS
9030 LIBS="-lintl  $LIBS"
9031 cat >conftest.$ac_ext <<_ACEOF
9032 #line $LINENO "configure"
9033 /* confdefs.h.  */
9034 _ACEOF
9035 cat confdefs.h >>conftest.$ac_ext
9036 cat >>conftest.$ac_ext <<_ACEOF
9037 /* end confdefs.h.  */
9038
9039 /* Override any gcc2 internal prototype to avoid an error.  */
9040 #ifdef __cplusplus
9041 extern "C"
9042 #endif
9043 /* We use char because int might match the return type of a gcc2
9044    builtin and then its argument prototype would still apply.  */
9045 char strftime ();
9046 int
9047 main ()
9048 {
9049 strftime ();
9050   ;
9051   return 0;
9052 }
9053 _ACEOF
9054 rm -f conftest.$ac_objext conftest$ac_exeext
9055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9056   (eval $ac_link) 2>&5
9057   ac_status=$?
9058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059   (exit $ac_status); } &&
9060          { ac_try='test -s conftest$ac_exeext'
9061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9062   (eval $ac_try) 2>&5
9063   ac_status=$?
9064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065   (exit $ac_status); }; }; then
9066   ac_cv_lib_intl_strftime=yes
9067 else
9068   echo "$as_me: failed program was:" >&5
9069 sed 's/^/| /' conftest.$ac_ext >&5
9070
9071 ac_cv_lib_intl_strftime=no
9072 fi
9073 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9074 LIBS=$ac_check_lib_save_LIBS
9075 fi
9076 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
9077 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
9078 if test $ac_cv_lib_intl_strftime = yes; then
9079   cat >>confdefs.h <<_ACEOF
9080 #define HAVE_LIBINTL 1
9081 _ACEOF
9082
9083   LIBS="-lintl $LIBS"
9084
9085 fi
9086
9087 fi
9088 done
9089
9090
9091
9092 for ac_func in fchdir
9093 do
9094 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9095 echo "$as_me:$LINENO: checking for $ac_func" >&5
9096 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9097 if eval "test \"\${$as_ac_var+set}\" = set"; then
9098   echo $ECHO_N "(cached) $ECHO_C" >&6
9099 else
9100   cat >conftest.$ac_ext <<_ACEOF
9101 #line $LINENO "configure"
9102 /* confdefs.h.  */
9103 _ACEOF
9104 cat confdefs.h >>conftest.$ac_ext
9105 cat >>conftest.$ac_ext <<_ACEOF
9106 /* end confdefs.h.  */
9107 /* System header to define __stub macros and hopefully few prototypes,
9108     which can conflict with char $ac_func (); below.
9109     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9110     <limits.h> exists even on freestanding compilers.  */
9111 #ifdef __STDC__
9112 # include <limits.h>
9113 #else
9114 # include <assert.h>
9115 #endif
9116 /* Override any gcc2 internal prototype to avoid an error.  */
9117 #ifdef __cplusplus
9118 extern "C"
9119 {
9120 #endif
9121 /* We use char because int might match the return type of a gcc2
9122    builtin and then its argument prototype would still apply.  */
9123 char $ac_func ();
9124 /* The GNU C library defines this for functions which it implements
9125     to always fail with ENOSYS.  Some functions are actually named
9126     something starting with __ and the normal name is an alias.  */
9127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9128 choke me
9129 #else
9130 char (*f) () = $ac_func;
9131 #endif
9132 #ifdef __cplusplus
9133 }
9134 #endif
9135
9136 int
9137 main ()
9138 {
9139 return f != $ac_func;
9140   ;
9141   return 0;
9142 }
9143 _ACEOF
9144 rm -f conftest.$ac_objext conftest$ac_exeext
9145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9146   (eval $ac_link) 2>&5
9147   ac_status=$?
9148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149   (exit $ac_status); } &&
9150          { ac_try='test -s conftest$ac_exeext'
9151   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9152   (eval $ac_try) 2>&5
9153   ac_status=$?
9154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155   (exit $ac_status); }; }; then
9156   eval "$as_ac_var=yes"
9157 else
9158   echo "$as_me: failed program was:" >&5
9159 sed 's/^/| /' conftest.$ac_ext >&5
9160
9161 eval "$as_ac_var=no"
9162 fi
9163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9164 fi
9165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9166 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9167 if test `eval echo '${'$as_ac_var'}'` = yes; then
9168   cat >>confdefs.h <<_ACEOF
9169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9170 _ACEOF
9171
9172 else
9173   mutt_cv_fchdir=no
9174 fi
9175 done
9176
9177
9178
9179 # Check whether --with-regex or --without-regex was given.
9180 if test "${with_regex+set}" = set; then
9181   withval="$with_regex"
9182   mutt_cv_regex=yes
9183 else
9184
9185 for ac_func in regcomp
9186 do
9187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9188 echo "$as_me:$LINENO: checking for $ac_func" >&5
9189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9190 if eval "test \"\${$as_ac_var+set}\" = set"; then
9191   echo $ECHO_N "(cached) $ECHO_C" >&6
9192 else
9193   cat >conftest.$ac_ext <<_ACEOF
9194 #line $LINENO "configure"
9195 /* confdefs.h.  */
9196 _ACEOF
9197 cat confdefs.h >>conftest.$ac_ext
9198 cat >>conftest.$ac_ext <<_ACEOF
9199 /* end confdefs.h.  */
9200 /* System header to define __stub macros and hopefully few prototypes,
9201     which can conflict with char $ac_func (); below.
9202     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9203     <limits.h> exists even on freestanding compilers.  */
9204 #ifdef __STDC__
9205 # include <limits.h>
9206 #else
9207 # include <assert.h>
9208 #endif
9209 /* Override any gcc2 internal prototype to avoid an error.  */
9210 #ifdef __cplusplus
9211 extern "C"
9212 {
9213 #endif
9214 /* We use char because int might match the return type of a gcc2
9215    builtin and then its argument prototype would still apply.  */
9216 char $ac_func ();
9217 /* The GNU C library defines this for functions which it implements
9218     to always fail with ENOSYS.  Some functions are actually named
9219     something starting with __ and the normal name is an alias.  */
9220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9221 choke me
9222 #else
9223 char (*f) () = $ac_func;
9224 #endif
9225 #ifdef __cplusplus
9226 }
9227 #endif
9228
9229 int
9230 main ()
9231 {
9232 return f != $ac_func;
9233   ;
9234   return 0;
9235 }
9236 _ACEOF
9237 rm -f conftest.$ac_objext conftest$ac_exeext
9238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9239   (eval $ac_link) 2>&5
9240   ac_status=$?
9241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242   (exit $ac_status); } &&
9243          { ac_try='test -s conftest$ac_exeext'
9244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245   (eval $ac_try) 2>&5
9246   ac_status=$?
9247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248   (exit $ac_status); }; }; then
9249   eval "$as_ac_var=yes"
9250 else
9251   echo "$as_me: failed program was:" >&5
9252 sed 's/^/| /' conftest.$ac_ext >&5
9253
9254 eval "$as_ac_var=no"
9255 fi
9256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9257 fi
9258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9259 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9260 if test `eval echo '${'$as_ac_var'}'` = yes; then
9261   cat >>confdefs.h <<_ACEOF
9262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9263 _ACEOF
9264  mutt_cv_regex=no
9265 else
9266   mutt_cv_regex=yes
9267 fi
9268 done
9269
9270 fi;
9271
9272 if test $mutt_cv_regex = no ; then
9273 echo "$as_me:$LINENO: checking whether your system's regexp library is completely broken" >&5
9274 echo $ECHO_N "checking whether your system's regexp library is completely broken... $ECHO_C" >&6
9275 if test "${mutt_cv_regex_broken+set}" = set; then
9276   echo $ECHO_N "(cached) $ECHO_C" >&6
9277 else
9278   if test "$cross_compiling" = yes; then
9279   mutt_cv_regex_broken=yes
9280 else
9281   cat >conftest.$ac_ext <<_ACEOF
9282 #line $LINENO "configure"
9283 /* confdefs.h.  */
9284 _ACEOF
9285 cat confdefs.h >>conftest.$ac_ext
9286 cat >>conftest.$ac_ext <<_ACEOF
9287 /* end confdefs.h.  */
9288
9289 #include <unistd.h>
9290 #include <regex.h>
9291 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); }
9292 _ACEOF
9293 rm -f conftest$ac_exeext
9294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9295   (eval $ac_link) 2>&5
9296   ac_status=$?
9297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9298   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9300   (eval $ac_try) 2>&5
9301   ac_status=$?
9302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303   (exit $ac_status); }; }; then
9304   mutt_cv_regex_broken=no
9305 else
9306   echo "$as_me: program exited with status $ac_status" >&5
9307 echo "$as_me: failed program was:" >&5
9308 sed 's/^/| /' conftest.$ac_ext >&5
9309
9310 ( exit $ac_status )
9311 mutt_cv_regex_broken=yes
9312 fi
9313 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9314 fi
9315 fi
9316 echo "$as_me:$LINENO: result: $mutt_cv_regex_broken" >&5
9317 echo "${ECHO_T}$mutt_cv_regex_broken" >&6
9318         if test $mutt_cv_regex_broken = yes ; then
9319                 echo "Using the included GNU regex instead." >&6
9320                 mutt_cv_regex=yes
9321         fi
9322 fi
9323
9324 if test $mutt_cv_regex = yes; then
9325
9326 cat >>confdefs.h <<\_ACEOF
9327 #define USE_GNU_REGEX 1
9328 _ACEOF
9329
9330         LIBOBJS="$LIBOBJS regex.$ac_objext"
9331 fi
9332
9333
9334
9335 # Check whether --with-homespool or --without-homespool was given.
9336 if test "${with_homespool+set}" = set; then
9337   withval="$with_homespool"
9338   with_homespool=${withval}
9339 fi;
9340 if test x$with_homespool != x; then
9341         if test $with_homespool = yes; then
9342                 with_homespool=mailbox
9343         fi
9344
9345 cat >>confdefs.h <<_ACEOF
9346 #define MAILPATH "$with_homespool"
9347 _ACEOF
9348
9349
9350 cat >>confdefs.h <<\_ACEOF
9351 #define HOMESPOOL 1
9352 _ACEOF
9353
9354
9355 cat >>confdefs.h <<\_ACEOF
9356 #define USE_DOTLOCK 1
9357 _ACEOF
9358
9359         mutt_cv_setgid=no
9360 else
9361
9362 # Check whether --with-mailpath or --without-mailpath was given.
9363 if test "${with_mailpath+set}" = set; then
9364   withval="$with_mailpath"
9365   mutt_cv_mailpath=$withval
9366 else
9367    echo "$as_me:$LINENO: checking where new mail is stored" >&5
9368 echo $ECHO_N "checking where new mail is stored... $ECHO_C" >&6
9369 if test "${mutt_cv_mailpath+set}" = set; then
9370   echo $ECHO_N "(cached) $ECHO_C" >&6
9371 else
9372   mutt_cv_mailpath=no
9373                         if test -d /var/mail; then
9374                                 mutt_cv_mailpath=/var/mail
9375                         elif test -d /var/spool/mail; then
9376                                 mutt_cv_mailpath=/var/spool/mail
9377                         elif test -d /usr/spool/mail; then
9378                                 mutt_cv_mailpath=/usr/spool/mail
9379                         elif test -d /usr/mail; then
9380                                 mutt_cv_mailpath=/usr/mail
9381                         fi
9382 fi
9383 echo "$as_me:$LINENO: result: $mutt_cv_mailpath" >&5
9384 echo "${ECHO_T}$mutt_cv_mailpath" >&6
9385
9386 fi;
9387         if test "$mutt_cv_mailpath" = no; then
9388                 { { echo "$as_me:$LINENO: error: \"Could not determine where new mail is stored.\"" >&5
9389 echo "$as_me: error: \"Could not determine where new mail is stored.\"" >&2;}
9390    { (exit 1); exit 1; }; }
9391         fi
9392
9393 cat >>confdefs.h <<_ACEOF
9394 #define MAILPATH "$mutt_cv_mailpath"
9395 _ACEOF
9396
9397
9398         echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is world writable" >&5
9399 echo $ECHO_N "checking if $mutt_cv_mailpath is world writable... $ECHO_C" >&6
9400 if test "${mutt_cv_worldwrite+set}" = set; then
9401   echo $ECHO_N "(cached) $ECHO_C" >&6
9402 else
9403   if test "$cross_compiling" = yes; then
9404   mutt_cv_worldwrite=no
9405 else
9406   cat >conftest.$ac_ext <<_ACEOF
9407 #line $LINENO "configure"
9408 /* confdefs.h.  */
9409 _ACEOF
9410 cat confdefs.h >>conftest.$ac_ext
9411 cat >>conftest.$ac_ext <<_ACEOF
9412 /* end confdefs.h.  */
9413 #include <sys/types.h>
9414 #include <sys/stat.h>
9415
9416 int main (int argc, char **argv)
9417 {
9418         struct stat s;
9419
9420         stat ("$mutt_cv_mailpath", &s);
9421         if (s.st_mode & S_IWOTH) exit (0);
9422         exit (1);
9423 }
9424 _ACEOF
9425 rm -f conftest$ac_exeext
9426 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9427   (eval $ac_link) 2>&5
9428   ac_status=$?
9429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9431   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9432   (eval $ac_try) 2>&5
9433   ac_status=$?
9434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435   (exit $ac_status); }; }; then
9436   mutt_cv_worldwrite=yes
9437 else
9438   echo "$as_me: program exited with status $ac_status" >&5
9439 echo "$as_me: failed program was:" >&5
9440 sed 's/^/| /' conftest.$ac_ext >&5
9441
9442 ( exit $ac_status )
9443 mutt_cv_worldwrite=no
9444 fi
9445 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9446 fi
9447 fi
9448 echo "$as_me:$LINENO: result: $mutt_cv_worldwrite" >&5
9449 echo "${ECHO_T}$mutt_cv_worldwrite" >&6
9450
9451         mutt_cv_setgid=no
9452         if test $mutt_cv_worldwrite = yes; then
9453
9454 cat >>confdefs.h <<\_ACEOF
9455 #define USE_DOTLOCK 1
9456 _ACEOF
9457
9458         else
9459
9460                 echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is group writable" >&5
9461 echo $ECHO_N "checking if $mutt_cv_mailpath is group writable... $ECHO_C" >&6
9462 if test "${mutt_cv_groupwrite+set}" = set; then
9463   echo $ECHO_N "(cached) $ECHO_C" >&6
9464 else
9465   if test "$cross_compiling" = yes; then
9466   mutt_cv_groupwrite=no
9467 else
9468   cat >conftest.$ac_ext <<_ACEOF
9469 #line $LINENO "configure"
9470 /* confdefs.h.  */
9471 _ACEOF
9472 cat confdefs.h >>conftest.$ac_ext
9473 cat >>conftest.$ac_ext <<_ACEOF
9474 /* end confdefs.h.  */
9475 #include <sys/types.h>
9476 #include <sys/stat.h>
9477
9478 int main (int argc, char **argv)
9479 {
9480         struct stat s;
9481
9482         stat ("$mutt_cv_mailpath", &s);
9483         if (s.st_mode & S_IWGRP) exit (0);
9484         exit (1);
9485 }
9486 _ACEOF
9487 rm -f conftest$ac_exeext
9488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9489   (eval $ac_link) 2>&5
9490   ac_status=$?
9491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9493   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9494   (eval $ac_try) 2>&5
9495   ac_status=$?
9496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497   (exit $ac_status); }; }; then
9498   mutt_cv_groupwrite=yes
9499 else
9500   echo "$as_me: program exited with status $ac_status" >&5
9501 echo "$as_me: failed program was:" >&5
9502 sed 's/^/| /' conftest.$ac_ext >&5
9503
9504 ( exit $ac_status )
9505 mutt_cv_groupwrite=no
9506 fi
9507 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9508 fi
9509 fi
9510 echo "$as_me:$LINENO: result: $mutt_cv_groupwrite" >&5
9511 echo "${ECHO_T}$mutt_cv_groupwrite" >&6
9512
9513                 if test $mutt_cv_groupwrite = yes; then
9514
9515 cat >>confdefs.h <<\_ACEOF
9516 #define USE_DOTLOCK 1
9517 _ACEOF
9518
9519
9520 cat >>confdefs.h <<\_ACEOF
9521 #define USE_SETGID 1
9522 _ACEOF
9523
9524                         mutt_cv_setgid=yes
9525                 fi
9526         fi
9527 fi
9528
9529 # Check whether --enable-external_dotlock or --disable-external_dotlock was given.
9530 if test "${enable_external_dotlock+set}" = set; then
9531   enableval="$enable_external_dotlock"
9532   mutt_cv_external_dotlock="$enableval"
9533 fi;
9534
9535 if test "x$mutt_cv_setgid" = "xyes" || test "x$mutt_cv_fchdir" = "xno" \
9536         || test "x$mutt_cv_external_dotlock" = "xyes"
9537 then
9538
9539 cat >>confdefs.h <<\_ACEOF
9540 #define DL_STANDALONE 1
9541 _ACEOF
9542
9543         DOTLOCK_TARGET="mutt_dotlock"
9544 else
9545         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS dotlock.o"
9546 fi
9547
9548
9549
9550
9551 echo "$as_me:$LINENO: checking where to put the documentation" >&5
9552 echo $ECHO_N "checking where to put the documentation... $ECHO_C" >&6
9553
9554 # Check whether --with-docdir or --without-docdir was given.
9555 if test "${with_docdir+set}" = set; then
9556   withval="$with_docdir"
9557   mutt_cv_docdir=$withval
9558 else
9559   mutt_cv_docdir="$mutt_cv_prefix/doc/mutt"
9560 fi;
9561 echo "$as_me:$LINENO: result: $mutt_cv_docdir" >&5
9562 echo "${ECHO_T}$mutt_cv_docdir" >&6
9563
9564 docdir=$mutt_cv_docdir
9565
9566
9567 if test x$mutt_cv_setgid = xyes; then
9568         DOTLOCK_GROUP='mail'
9569         DOTLOCK_PERMISSION=2755
9570 else
9571         DOTLOCK_GROUP=''
9572         DOTLOCK_PERMISSION=755
9573 fi
9574
9575
9576
9577
9578 # Check whether --with-domain or --without-domain was given.
9579 if test "${with_domain+set}" = set; then
9580   withval="$with_domain"
9581   if test $withval != yes; then
9582
9583 cat >>confdefs.h <<_ACEOF
9584 #define DOMAIN "$withval"
9585 _ACEOF
9586
9587         fi
9588 fi;
9589
9590 need_socket="no"
9591
9592
9593 # Check whether --enable-pop or --disable-pop was given.
9594 if test "${enable_pop+set}" = set; then
9595   enableval="$enable_pop"
9596          if test x$enableval = xyes ; then
9597
9598 cat >>confdefs.h <<\_ACEOF
9599 #define USE_POP 1
9600 _ACEOF
9601
9602                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pop.o pop_lib.o pop_auth.o"
9603                 need_socket="yes"
9604                 need_md5="yes"
9605         fi
9606
9607 fi;
9608
9609 # Check whether --enable-imap or --disable-imap was given.
9610 if test "${enable_imap+set}" = set; then
9611   enableval="$enable_imap"
9612          if test x$enableval = xyes ; then
9613
9614 cat >>confdefs.h <<\_ACEOF
9615 #define USE_IMAP 1
9616 _ACEOF
9617
9618                 LIBIMAP="-Limap -limap"
9619                 LIBIMAPDEPS="\$(top_srcdir)/imap/imap.h imap/libimap.a"
9620                 need_imap="yes"
9621                 need_socket="yes"
9622                 need_md5="yes"
9623         fi
9624
9625 fi;
9626
9627
9628 if test x$need_imap = xyes; then
9629   BUILD_IMAP_TRUE=
9630   BUILD_IMAP_FALSE='#'
9631 else
9632   BUILD_IMAP_TRUE='#'
9633   BUILD_IMAP_FALSE=
9634 fi
9635
9636
9637 # Check whether --enable-nntp or --disable-nntp was given.
9638 if test "${enable_nntp+set}" = set; then
9639   enableval="$enable_nntp"
9640         if test x$enableval = xyes ; then
9641                 cat >>confdefs.h <<\_ACEOF
9642 #define USE_NNTP 1
9643 _ACEOF
9644
9645                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS nntp.o newsrc.o"
9646                 need_socket="yes"
9647         fi
9648
9649 fi;
9650
9651
9652 if test "$need_socket" = "yes"
9653 then
9654         echo "$as_me:$LINENO: checking for socklen_t" >&5
9655 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
9656         cat >conftest.$ac_ext <<_ACEOF
9657 #line $LINENO "configure"
9658 /* confdefs.h.  */
9659 _ACEOF
9660 cat confdefs.h >>conftest.$ac_ext
9661 cat >>conftest.$ac_ext <<_ACEOF
9662 /* end confdefs.h.  */
9663 #include <sys/socket.h>
9664
9665 _ACEOF
9666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9667   $EGREP "socklen_t" >/dev/null 2>&1; then
9668   echo "$as_me:$LINENO: result: yes" >&5
9669 echo "${ECHO_T}yes" >&6
9670 else
9671   echo "$as_me:$LINENO: result: no" >&5
9672 echo "${ECHO_T}no" >&6
9673
9674 cat >>confdefs.h <<\_ACEOF
9675 #define socklen_t int
9676 _ACEOF
9677
9678 fi
9679 rm -f conftest*
9680
9681         echo "$as_me:$LINENO: checking for gethostent" >&5
9682 echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
9683 if test "${ac_cv_func_gethostent+set}" = set; then
9684   echo $ECHO_N "(cached) $ECHO_C" >&6
9685 else
9686   cat >conftest.$ac_ext <<_ACEOF
9687 #line $LINENO "configure"
9688 /* confdefs.h.  */
9689 _ACEOF
9690 cat confdefs.h >>conftest.$ac_ext
9691 cat >>conftest.$ac_ext <<_ACEOF
9692 /* end confdefs.h.  */
9693 /* System header to define __stub macros and hopefully few prototypes,
9694     which can conflict with char gethostent (); below.
9695     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9696     <limits.h> exists even on freestanding compilers.  */
9697 #ifdef __STDC__
9698 # include <limits.h>
9699 #else
9700 # include <assert.h>
9701 #endif
9702 /* Override any gcc2 internal prototype to avoid an error.  */
9703 #ifdef __cplusplus
9704 extern "C"
9705 {
9706 #endif
9707 /* We use char because int might match the return type of a gcc2
9708    builtin and then its argument prototype would still apply.  */
9709 char gethostent ();
9710 /* The GNU C library defines this for functions which it implements
9711     to always fail with ENOSYS.  Some functions are actually named
9712     something starting with __ and the normal name is an alias.  */
9713 #if defined (__stub_gethostent) || defined (__stub___gethostent)
9714 choke me
9715 #else
9716 char (*f) () = gethostent;
9717 #endif
9718 #ifdef __cplusplus
9719 }
9720 #endif
9721
9722 int
9723 main ()
9724 {
9725 return f != gethostent;
9726   ;
9727   return 0;
9728 }
9729 _ACEOF
9730 rm -f conftest.$ac_objext conftest$ac_exeext
9731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9732   (eval $ac_link) 2>&5
9733   ac_status=$?
9734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9735   (exit $ac_status); } &&
9736          { ac_try='test -s conftest$ac_exeext'
9737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9738   (eval $ac_try) 2>&5
9739   ac_status=$?
9740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741   (exit $ac_status); }; }; then
9742   ac_cv_func_gethostent=yes
9743 else
9744   echo "$as_me: failed program was:" >&5
9745 sed 's/^/| /' conftest.$ac_ext >&5
9746
9747 ac_cv_func_gethostent=no
9748 fi
9749 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9750 fi
9751 echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5
9752 echo "${ECHO_T}$ac_cv_func_gethostent" >&6
9753 if test $ac_cv_func_gethostent = yes; then
9754   :
9755 else
9756
9757 echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
9758 echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
9759 if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
9760   echo $ECHO_N "(cached) $ECHO_C" >&6
9761 else
9762   ac_check_lib_save_LIBS=$LIBS
9763 LIBS="-lnsl  $LIBS"
9764 cat >conftest.$ac_ext <<_ACEOF
9765 #line $LINENO "configure"
9766 /* confdefs.h.  */
9767 _ACEOF
9768 cat confdefs.h >>conftest.$ac_ext
9769 cat >>conftest.$ac_ext <<_ACEOF
9770 /* end confdefs.h.  */
9771
9772 /* Override any gcc2 internal prototype to avoid an error.  */
9773 #ifdef __cplusplus
9774 extern "C"
9775 #endif
9776 /* We use char because int might match the return type of a gcc2
9777    builtin and then its argument prototype would still apply.  */
9778 char gethostent ();
9779 int
9780 main ()
9781 {
9782 gethostent ();
9783   ;
9784   return 0;
9785 }
9786 _ACEOF
9787 rm -f conftest.$ac_objext conftest$ac_exeext
9788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9789   (eval $ac_link) 2>&5
9790   ac_status=$?
9791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792   (exit $ac_status); } &&
9793          { ac_try='test -s conftest$ac_exeext'
9794   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9795   (eval $ac_try) 2>&5
9796   ac_status=$?
9797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798   (exit $ac_status); }; }; then
9799   ac_cv_lib_nsl_gethostent=yes
9800 else
9801   echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.$ac_ext >&5
9803
9804 ac_cv_lib_nsl_gethostent=no
9805 fi
9806 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9807 LIBS=$ac_check_lib_save_LIBS
9808 fi
9809 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
9810 echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
9811 if test $ac_cv_lib_nsl_gethostent = yes; then
9812   cat >>confdefs.h <<_ACEOF
9813 #define HAVE_LIBNSL 1
9814 _ACEOF
9815
9816   LIBS="-lnsl $LIBS"
9817
9818 fi
9819
9820 fi
9821
9822         echo "$as_me:$LINENO: checking for setsockopt" >&5
9823 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
9824 if test "${ac_cv_func_setsockopt+set}" = set; then
9825   echo $ECHO_N "(cached) $ECHO_C" >&6
9826 else
9827   cat >conftest.$ac_ext <<_ACEOF
9828 #line $LINENO "configure"
9829 /* confdefs.h.  */
9830 _ACEOF
9831 cat confdefs.h >>conftest.$ac_ext
9832 cat >>conftest.$ac_ext <<_ACEOF
9833 /* end confdefs.h.  */
9834 /* System header to define __stub macros and hopefully few prototypes,
9835     which can conflict with char setsockopt (); below.
9836     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9837     <limits.h> exists even on freestanding compilers.  */
9838 #ifdef __STDC__
9839 # include <limits.h>
9840 #else
9841 # include <assert.h>
9842 #endif
9843 /* Override any gcc2 internal prototype to avoid an error.  */
9844 #ifdef __cplusplus
9845 extern "C"
9846 {
9847 #endif
9848 /* We use char because int might match the return type of a gcc2
9849    builtin and then its argument prototype would still apply.  */
9850 char setsockopt ();
9851 /* The GNU C library defines this for functions which it implements
9852     to always fail with ENOSYS.  Some functions are actually named
9853     something starting with __ and the normal name is an alias.  */
9854 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
9855 choke me
9856 #else
9857 char (*f) () = setsockopt;
9858 #endif
9859 #ifdef __cplusplus
9860 }
9861 #endif
9862
9863 int
9864 main ()
9865 {
9866 return f != setsockopt;
9867   ;
9868   return 0;
9869 }
9870 _ACEOF
9871 rm -f conftest.$ac_objext conftest$ac_exeext
9872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9873   (eval $ac_link) 2>&5
9874   ac_status=$?
9875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9876   (exit $ac_status); } &&
9877          { ac_try='test -s conftest$ac_exeext'
9878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9879   (eval $ac_try) 2>&5
9880   ac_status=$?
9881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882   (exit $ac_status); }; }; then
9883   ac_cv_func_setsockopt=yes
9884 else
9885   echo "$as_me: failed program was:" >&5
9886 sed 's/^/| /' conftest.$ac_ext >&5
9887
9888 ac_cv_func_setsockopt=no
9889 fi
9890 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9891 fi
9892 echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
9893 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
9894 if test $ac_cv_func_setsockopt = yes; then
9895   :
9896 else
9897
9898 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
9899 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
9900 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
9901   echo $ECHO_N "(cached) $ECHO_C" >&6
9902 else
9903   ac_check_lib_save_LIBS=$LIBS
9904 LIBS="-lsocket  $LIBS"
9905 cat >conftest.$ac_ext <<_ACEOF
9906 #line $LINENO "configure"
9907 /* confdefs.h.  */
9908 _ACEOF
9909 cat confdefs.h >>conftest.$ac_ext
9910 cat >>conftest.$ac_ext <<_ACEOF
9911 /* end confdefs.h.  */
9912
9913 /* Override any gcc2 internal prototype to avoid an error.  */
9914 #ifdef __cplusplus
9915 extern "C"
9916 #endif
9917 /* We use char because int might match the return type of a gcc2
9918    builtin and then its argument prototype would still apply.  */
9919 char setsockopt ();
9920 int
9921 main ()
9922 {
9923 setsockopt ();
9924   ;
9925   return 0;
9926 }
9927 _ACEOF
9928 rm -f conftest.$ac_objext conftest$ac_exeext
9929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9930   (eval $ac_link) 2>&5
9931   ac_status=$?
9932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933   (exit $ac_status); } &&
9934          { ac_try='test -s conftest$ac_exeext'
9935   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9936   (eval $ac_try) 2>&5
9937   ac_status=$?
9938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9939   (exit $ac_status); }; }; then
9940   ac_cv_lib_socket_setsockopt=yes
9941 else
9942   echo "$as_me: failed program was:" >&5
9943 sed 's/^/| /' conftest.$ac_ext >&5
9944
9945 ac_cv_lib_socket_setsockopt=no
9946 fi
9947 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9948 LIBS=$ac_check_lib_save_LIBS
9949 fi
9950 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
9951 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
9952 if test $ac_cv_lib_socket_setsockopt = yes; then
9953   cat >>confdefs.h <<_ACEOF
9954 #define HAVE_LIBSOCKET 1
9955 _ACEOF
9956
9957   LIBS="-lsocket $LIBS"
9958
9959 fi
9960
9961 fi
9962
9963
9964 for ac_func in getaddrinfo
9965 do
9966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9967 echo "$as_me:$LINENO: checking for $ac_func" >&5
9968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9969 if eval "test \"\${$as_ac_var+set}\" = set"; then
9970   echo $ECHO_N "(cached) $ECHO_C" >&6
9971 else
9972   cat >conftest.$ac_ext <<_ACEOF
9973 #line $LINENO "configure"
9974 /* confdefs.h.  */
9975 _ACEOF
9976 cat confdefs.h >>conftest.$ac_ext
9977 cat >>conftest.$ac_ext <<_ACEOF
9978 /* end confdefs.h.  */
9979 /* System header to define __stub macros and hopefully few prototypes,
9980     which can conflict with char $ac_func (); below.
9981     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9982     <limits.h> exists even on freestanding compilers.  */
9983 #ifdef __STDC__
9984 # include <limits.h>
9985 #else
9986 # include <assert.h>
9987 #endif
9988 /* Override any gcc2 internal prototype to avoid an error.  */
9989 #ifdef __cplusplus
9990 extern "C"
9991 {
9992 #endif
9993 /* We use char because int might match the return type of a gcc2
9994    builtin and then its argument prototype would still apply.  */
9995 char $ac_func ();
9996 /* The GNU C library defines this for functions which it implements
9997     to always fail with ENOSYS.  Some functions are actually named
9998     something starting with __ and the normal name is an alias.  */
9999 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10000 choke me
10001 #else
10002 char (*f) () = $ac_func;
10003 #endif
10004 #ifdef __cplusplus
10005 }
10006 #endif
10007
10008 int
10009 main ()
10010 {
10011 return f != $ac_func;
10012   ;
10013   return 0;
10014 }
10015 _ACEOF
10016 rm -f conftest.$ac_objext conftest$ac_exeext
10017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10018   (eval $ac_link) 2>&5
10019   ac_status=$?
10020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021   (exit $ac_status); } &&
10022          { ac_try='test -s conftest$ac_exeext'
10023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024   (eval $ac_try) 2>&5
10025   ac_status=$?
10026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027   (exit $ac_status); }; }; then
10028   eval "$as_ac_var=yes"
10029 else
10030   echo "$as_me: failed program was:" >&5
10031 sed 's/^/| /' conftest.$ac_ext >&5
10032
10033 eval "$as_ac_var=no"
10034 fi
10035 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10036 fi
10037 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10038 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10039 if test `eval echo '${'$as_ac_var'}'` = yes; then
10040   cat >>confdefs.h <<_ACEOF
10041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10042 _ACEOF
10043
10044 fi
10045 done
10046
10047
10048 cat >>confdefs.h <<\_ACEOF
10049 #define USE_SOCKET 1
10050 _ACEOF
10051
10052         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS account.o mutt_socket.o mutt_tunnel.o"
10053 fi
10054
10055
10056
10057 # Check whether --with-gss or --without-gss was given.
10058 if test "${with_gss+set}" = set; then
10059   withval="$with_gss"
10060   gss_prefix="$withval"
10061 else
10062   gss_prefix="no"
10063 fi;
10064 if test "$gss_prefix" != "no"
10065 then
10066   if test "$need_imap" = "yes"
10067   then
10068
10069   GSSAPI_PREFIX=$gss_prefix
10070   GSSAPI_IMPL="none"
10071   saved_CPPFLAGS="$CPPFLAGS"
10072   saved_LDFLAGS="$LDFLAGS"
10073   saved_LIBS="$LIBS"
10074     if test "$GSSAPI_PREFIX" != "yes"
10075   then
10076     krb5_path="$GSSAPI_PREFIX/bin"
10077   else
10078     krb5_path="$PATH"
10079   fi
10080   # Extract the first word of "krb5-config", so it can be a program name with args.
10081 set dummy krb5-config; ac_word=$2
10082 echo "$as_me:$LINENO: checking for $ac_word" >&5
10083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10084 if test "${ac_cv_path_KRB5CFGPATH+set}" = set; then
10085   echo $ECHO_N "(cached) $ECHO_C" >&6
10086 else
10087   case $KRB5CFGPATH in
10088   [\\/]* | ?:[\\/]*)
10089   ac_cv_path_KRB5CFGPATH="$KRB5CFGPATH" # Let the user override the test with a path.
10090   ;;
10091   *)
10092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10093 for as_dir in $krb5_path
10094 do
10095   IFS=$as_save_IFS
10096   test -z "$as_dir" && as_dir=.
10097   for ac_exec_ext in '' $ac_executable_extensions; do
10098   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10099     ac_cv_path_KRB5CFGPATH="$as_dir/$ac_word$ac_exec_ext"
10100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10101     break 2
10102   fi
10103 done
10104 done
10105
10106   test -z "$ac_cv_path_KRB5CFGPATH" && ac_cv_path_KRB5CFGPATH="none"
10107   ;;
10108 esac
10109 fi
10110 KRB5CFGPATH=$ac_cv_path_KRB5CFGPATH
10111
10112 if test -n "$KRB5CFGPATH"; then
10113   echo "$as_me:$LINENO: result: $KRB5CFGPATH" >&5
10114 echo "${ECHO_T}$KRB5CFGPATH" >&6
10115 else
10116   echo "$as_me:$LINENO: result: no" >&5
10117 echo "${ECHO_T}no" >&6
10118 fi
10119
10120   if test "$KRB5CFGPATH" != "none"
10121   then
10122     GSSAPI_CFLAGS="$CPPFLAGS `$KRB5CFGPATH --cflags gssapi`"
10123     GSSAPI_LIBS="$MUTTLIBS `$KRB5CFGPATH --libs gssapi`"
10124     case "`$KRB5CFGPATH --version`" in
10125       "Kerberos 5 "*)   GSSAPI_IMPL="MIT";;
10126       ?eimdal*)         GSSAPI_IMPL="Heimdal";;
10127       *)                GSSAPI_IMPL="Unknown";;
10128    esac
10129   else
10130         if test "$GSSAPI_PREFIX" != "yes"
10131     then
10132       GSSAPI_CFLAGS="-I$GSSAPI_PREFIX/include"
10133       GSSAPI_LDFLAGS="-L$GSSAPI_PREFIX/lib"
10134       CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
10135       LDFLAGS="$LDFLAGS $GSSAPI_LDFLAGS"
10136     fi
10137
10138         echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
10139 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6
10140 if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
10141   echo $ECHO_N "(cached) $ECHO_C" >&6
10142 else
10143   ac_check_lib_save_LIBS=$LIBS
10144 LIBS="-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err $LIBS"
10145 cat >conftest.$ac_ext <<_ACEOF
10146 #line $LINENO "configure"
10147 /* confdefs.h.  */
10148 _ACEOF
10149 cat confdefs.h >>conftest.$ac_ext
10150 cat >>conftest.$ac_ext <<_ACEOF
10151 /* end confdefs.h.  */
10152
10153 /* Override any gcc2 internal prototype to avoid an error.  */
10154 #ifdef __cplusplus
10155 extern "C"
10156 #endif
10157 /* We use char because int might match the return type of a gcc2
10158    builtin and then its argument prototype would still apply.  */
10159 char gss_init_sec_context ();
10160 int
10161 main ()
10162 {
10163 gss_init_sec_context ();
10164   ;
10165   return 0;
10166 }
10167 _ACEOF
10168 rm -f conftest.$ac_objext conftest$ac_exeext
10169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10170   (eval $ac_link) 2>&5
10171   ac_status=$?
10172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173   (exit $ac_status); } &&
10174          { ac_try='test -s conftest$ac_exeext'
10175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176   (eval $ac_try) 2>&5
10177   ac_status=$?
10178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179   (exit $ac_status); }; }; then
10180   ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
10181 else
10182   echo "$as_me: failed program was:" >&5
10183 sed 's/^/| /' conftest.$ac_ext >&5
10184
10185 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
10186 fi
10187 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10188 LIBS=$ac_check_lib_save_LIBS
10189 fi
10190 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
10191 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6
10192 if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
10193
10194       GSSAPI_IMPL="MIT",
10195       GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err"
10196
10197 fi
10198
10199
10200         if test "$GSSAPI_IMPL" = "none"
10201     then
10202       echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
10203 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6
10204 if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
10205   echo $ECHO_N "(cached) $ECHO_C" >&6
10206 else
10207   ac_check_lib_save_LIBS=$LIBS
10208 LIBS="-lgssapi -lkrb5 -ldes -lasn1 -lroken -lcrypt -lcom_err $LIBS"
10209 cat >conftest.$ac_ext <<_ACEOF
10210 #line $LINENO "configure"
10211 /* confdefs.h.  */
10212 _ACEOF
10213 cat confdefs.h >>conftest.$ac_ext
10214 cat >>conftest.$ac_ext <<_ACEOF
10215 /* end confdefs.h.  */
10216
10217 /* Override any gcc2 internal prototype to avoid an error.  */
10218 #ifdef __cplusplus
10219 extern "C"
10220 #endif
10221 /* We use char because int might match the return type of a gcc2
10222    builtin and then its argument prototype would still apply.  */
10223 char gss_init_sec_context ();
10224 int
10225 main ()
10226 {
10227 gss_init_sec_context ();
10228   ;
10229   return 0;
10230 }
10231 _ACEOF
10232 rm -f conftest.$ac_objext conftest$ac_exeext
10233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10234   (eval $ac_link) 2>&5
10235   ac_status=$?
10236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237   (exit $ac_status); } &&
10238          { ac_try='test -s conftest$ac_exeext'
10239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240   (eval $ac_try) 2>&5
10241   ac_status=$?
10242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243   (exit $ac_status); }; }; then
10244   ac_cv_lib_gssapi_gss_init_sec_context=yes
10245 else
10246   echo "$as_me: failed program was:" >&5
10247 sed 's/^/| /' conftest.$ac_ext >&5
10248
10249 ac_cv_lib_gssapi_gss_init_sec_context=no
10250 fi
10251 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10252 LIBS=$ac_check_lib_save_LIBS
10253 fi
10254 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
10255 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6
10256 if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
10257
10258           GSSAPI_IMPL="Heimdal"
10259           GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi -lkrb5 -ldes -lasn1 -lroken"
10260           GSSAPI_LIBS="$GSSAPI_LIBS -lcrypt -lcom_err"
10261
10262 fi
10263
10264     fi
10265
10266                             if test "$GSSAPI_IMPL" = "none"
10267     then
10268       echo "$as_me:$LINENO: checking for g_order_init in -lgssapi_krb5" >&5
10269 echo $ECHO_N "checking for g_order_init in -lgssapi_krb5... $ECHO_C" >&6
10270 if test "${ac_cv_lib_gssapi_krb5_g_order_init+set}" = set; then
10271   echo $ECHO_N "(cached) $ECHO_C" >&6
10272 else
10273   ac_check_lib_save_LIBS=$LIBS
10274 LIBS="-lgssapi_krb5 -lkrb5 -lcrypto -lcom_err $LIBS"
10275 cat >conftest.$ac_ext <<_ACEOF
10276 #line $LINENO "configure"
10277 /* confdefs.h.  */
10278 _ACEOF
10279 cat confdefs.h >>conftest.$ac_ext
10280 cat >>conftest.$ac_ext <<_ACEOF
10281 /* end confdefs.h.  */
10282
10283 /* Override any gcc2 internal prototype to avoid an error.  */
10284 #ifdef __cplusplus
10285 extern "C"
10286 #endif
10287 /* We use char because int might match the return type of a gcc2
10288    builtin and then its argument prototype would still apply.  */
10289 char g_order_init ();
10290 int
10291 main ()
10292 {
10293 g_order_init ();
10294   ;
10295   return 0;
10296 }
10297 _ACEOF
10298 rm -f conftest.$ac_objext conftest$ac_exeext
10299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10300   (eval $ac_link) 2>&5
10301   ac_status=$?
10302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303   (exit $ac_status); } &&
10304          { ac_try='test -s conftest$ac_exeext'
10305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10306   (eval $ac_try) 2>&5
10307   ac_status=$?
10308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309   (exit $ac_status); }; }; then
10310   ac_cv_lib_gssapi_krb5_g_order_init=yes
10311 else
10312   echo "$as_me: failed program was:" >&5
10313 sed 's/^/| /' conftest.$ac_ext >&5
10314
10315 ac_cv_lib_gssapi_krb5_g_order_init=no
10316 fi
10317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10318 LIBS=$ac_check_lib_save_LIBS
10319 fi
10320 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_g_order_init" >&5
10321 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_g_order_init" >&6
10322 if test $ac_cv_lib_gssapi_krb5_g_order_init = yes; then
10323
10324         GSSAPI_IMPL="OldMIT",
10325         GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err"
10326
10327 fi
10328
10329     fi
10330   fi
10331
10332   CPPFLAGS="$saved_CPPFLAGS"
10333   LDFLAGS="$saved_LDFLAGS"
10334   LIBS="$saved_LIBS"
10335
10336     echo "$as_me:$LINENO: checking GSSAPI implementation" >&5
10337 echo $ECHO_N "checking GSSAPI implementation... $ECHO_C" >&6
10338     echo "$as_me:$LINENO: result: $GSSAPI_IMPL" >&5
10339 echo "${ECHO_T}$GSSAPI_IMPL" >&6
10340     if test "$GSSAPI_IMPL" = "none"
10341     then
10342       cat >confcache <<\_ACEOF
10343 # This file is a shell script that caches the results of configure
10344 # tests run on this system so they can be shared between configure
10345 # scripts and configure runs, see configure's option --config-cache.
10346 # It is not useful on other systems.  If it contains results you don't
10347 # want to keep, you may remove or edit it.
10348 #
10349 # config.status only pays attention to the cache file if you give it
10350 # the --recheck option to rerun configure.
10351 #
10352 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10353 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10354 # following values.
10355
10356 _ACEOF
10357
10358 # The following way of writing the cache mishandles newlines in values,
10359 # but we know of no workaround that is simple, portable, and efficient.
10360 # So, don't put newlines in cache variables' values.
10361 # Ultrix sh set writes to stderr and can't be redirected directly,
10362 # and sets the high bit in the cache file unless we assign to the vars.
10363 {
10364   (set) 2>&1 |
10365     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10366     *ac_space=\ *)
10367       # `set' does not quote correctly, so add quotes (double-quote
10368       # substitution turns \\\\ into \\, and sed turns \\ into \).
10369       sed -n \
10370         "s/'/'\\\\''/g;
10371           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10372       ;;
10373     *)
10374       # `set' quotes correctly as required by POSIX, so do not add quotes.
10375       sed -n \
10376         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10377       ;;
10378     esac;
10379 } |
10380   sed '
10381      t clear
10382      : clear
10383      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10384      t end
10385      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10386      : end' >>confcache
10387 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10388   if test -w $cache_file; then
10389     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10390     cat confcache >$cache_file
10391   else
10392     echo "not updating unwritable cache $cache_file"
10393   fi
10394 fi
10395 rm -f confcache
10396       echo "$as_me:$LINENO: result: GSSAPI libraries not found" >&5
10397 echo "${ECHO_T}GSSAPI libraries not found" >&6
10398     fi
10399     if test "$GSSAPI_IMPL" = "Heimdal"
10400     then
10401
10402 cat >>confdefs.h <<\_ACEOF
10403 #define HAVE_HEIMDAL 1
10404 _ACEOF
10405
10406     fi
10407     CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
10408     MUTTLIBS="$MUTTLIBS $GSSAPI_LIBS"
10409
10410 cat >>confdefs.h <<\_ACEOF
10411 #define USE_GSS 1
10412 _ACEOF
10413
10414     need_gss="yes"
10415   else
10416     { echo "$as_me:$LINENO: WARNING: GSS was requested but IMAP is not enabled" >&5
10417 echo "$as_me: WARNING: GSS was requested but IMAP is not enabled" >&2;}
10418   fi
10419 fi
10420
10421
10422 if test x$need_gss = xyes; then
10423   USE_GSS_TRUE=
10424   USE_GSS_FALSE='#'
10425 else
10426   USE_GSS_TRUE='#'
10427   USE_GSS_FALSE=
10428 fi
10429
10430
10431
10432
10433 # Check whether --with-ssl or --without-ssl was given.
10434 if test "${with_ssl+set}" = set; then
10435   withval="$with_ssl"
10436          if test "$with_ssl" != "no"
10437         then
10438           if test "$need_socket" != "yes"; then
10439            { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
10440 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
10441    { (exit 1); exit 1; }; }
10442           fi
10443
10444           if test "$with_ssl" != "yes"
10445           then
10446            LDFLAGS="$LDFLAGS -L$withval/lib"
10447            CPPFLAGS="$CPPFLAGS -I$withval/include"
10448           fi
10449           saved_LIBS="$LIBS"
10450
10451
10452 echo "$as_me:$LINENO: checking for X509_new in -lcrypto" >&5
10453 echo $ECHO_N "checking for X509_new in -lcrypto... $ECHO_C" >&6
10454 if test "${ac_cv_lib_crypto_X509_new+set}" = set; then
10455   echo $ECHO_N "(cached) $ECHO_C" >&6
10456 else
10457   ac_check_lib_save_LIBS=$LIBS
10458 LIBS="-lcrypto  $LIBS"
10459 cat >conftest.$ac_ext <<_ACEOF
10460 #line $LINENO "configure"
10461 /* confdefs.h.  */
10462 _ACEOF
10463 cat confdefs.h >>conftest.$ac_ext
10464 cat >>conftest.$ac_ext <<_ACEOF
10465 /* end confdefs.h.  */
10466
10467 /* Override any gcc2 internal prototype to avoid an error.  */
10468 #ifdef __cplusplus
10469 extern "C"
10470 #endif
10471 /* We use char because int might match the return type of a gcc2
10472    builtin and then its argument prototype would still apply.  */
10473 char X509_new ();
10474 int
10475 main ()
10476 {
10477 X509_new ();
10478   ;
10479   return 0;
10480 }
10481 _ACEOF
10482 rm -f conftest.$ac_objext conftest$ac_exeext
10483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10484   (eval $ac_link) 2>&5
10485   ac_status=$?
10486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487   (exit $ac_status); } &&
10488          { ac_try='test -s conftest$ac_exeext'
10489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10490   (eval $ac_try) 2>&5
10491   ac_status=$?
10492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493   (exit $ac_status); }; }; then
10494   ac_cv_lib_crypto_X509_new=yes
10495 else
10496   echo "$as_me: failed program was:" >&5
10497 sed 's/^/| /' conftest.$ac_ext >&5
10498
10499 ac_cv_lib_crypto_X509_new=no
10500 fi
10501 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10502 LIBS=$ac_check_lib_save_LIBS
10503 fi
10504 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_X509_new" >&5
10505 echo "${ECHO_T}$ac_cv_lib_crypto_X509_new" >&6
10506 if test $ac_cv_lib_crypto_X509_new = yes; then
10507   cat >>confdefs.h <<_ACEOF
10508 #define HAVE_LIBCRYPTO 1
10509 _ACEOF
10510
10511   LIBS="-lcrypto $LIBS"
10512
10513 else
10514   { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
10515 echo "$as_me: error: Unable to find SSL library" >&2;}
10516    { (exit 1); exit 1; }; }
10517 fi
10518
10519
10520 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
10521 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
10522 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
10523   echo $ECHO_N "(cached) $ECHO_C" >&6
10524 else
10525   ac_check_lib_save_LIBS=$LIBS
10526 LIBS="-lssl -lcrypto $LIBS"
10527 cat >conftest.$ac_ext <<_ACEOF
10528 #line $LINENO "configure"
10529 /* confdefs.h.  */
10530 _ACEOF
10531 cat confdefs.h >>conftest.$ac_ext
10532 cat >>conftest.$ac_ext <<_ACEOF
10533 /* end confdefs.h.  */
10534
10535 /* Override any gcc2 internal prototype to avoid an error.  */
10536 #ifdef __cplusplus
10537 extern "C"
10538 #endif
10539 /* We use char because int might match the return type of a gcc2
10540    builtin and then its argument prototype would still apply.  */
10541 char SSL_new ();
10542 int
10543 main ()
10544 {
10545 SSL_new ();
10546   ;
10547   return 0;
10548 }
10549 _ACEOF
10550 rm -f conftest.$ac_objext conftest$ac_exeext
10551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10552   (eval $ac_link) 2>&5
10553   ac_status=$?
10554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555   (exit $ac_status); } &&
10556          { ac_try='test -s conftest$ac_exeext'
10557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10558   (eval $ac_try) 2>&5
10559   ac_status=$?
10560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561   (exit $ac_status); }; }; then
10562   ac_cv_lib_ssl_SSL_new=yes
10563 else
10564   echo "$as_me: failed program was:" >&5
10565 sed 's/^/| /' conftest.$ac_ext >&5
10566
10567 ac_cv_lib_ssl_SSL_new=no
10568 fi
10569 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10570 LIBS=$ac_check_lib_save_LIBS
10571 fi
10572 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
10573 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6
10574 if test $ac_cv_lib_ssl_SSL_new = yes; then
10575   cat >>confdefs.h <<_ACEOF
10576 #define HAVE_LIBSSL 1
10577 _ACEOF
10578
10579   LIBS="-lssl $LIBS"
10580
10581 else
10582   { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
10583 echo "$as_me: error: Unable to find SSL library" >&2;}
10584    { (exit 1); exit 1; }; }
10585 fi
10586
10587
10588
10589
10590 for ac_func in RAND_status RAND_egd
10591 do
10592 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10593 echo "$as_me:$LINENO: checking for $ac_func" >&5
10594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10595 if eval "test \"\${$as_ac_var+set}\" = set"; then
10596   echo $ECHO_N "(cached) $ECHO_C" >&6
10597 else
10598   cat >conftest.$ac_ext <<_ACEOF
10599 #line $LINENO "configure"
10600 /* confdefs.h.  */
10601 _ACEOF
10602 cat confdefs.h >>conftest.$ac_ext
10603 cat >>conftest.$ac_ext <<_ACEOF
10604 /* end confdefs.h.  */
10605 /* System header to define __stub macros and hopefully few prototypes,
10606     which can conflict with char $ac_func (); below.
10607     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10608     <limits.h> exists even on freestanding compilers.  */
10609 #ifdef __STDC__
10610 # include <limits.h>
10611 #else
10612 # include <assert.h>
10613 #endif
10614 /* Override any gcc2 internal prototype to avoid an error.  */
10615 #ifdef __cplusplus
10616 extern "C"
10617 {
10618 #endif
10619 /* We use char because int might match the return type of a gcc2
10620    builtin and then its argument prototype would still apply.  */
10621 char $ac_func ();
10622 /* The GNU C library defines this for functions which it implements
10623     to always fail with ENOSYS.  Some functions are actually named
10624     something starting with __ and the normal name is an alias.  */
10625 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10626 choke me
10627 #else
10628 char (*f) () = $ac_func;
10629 #endif
10630 #ifdef __cplusplus
10631 }
10632 #endif
10633
10634 int
10635 main ()
10636 {
10637 return f != $ac_func;
10638   ;
10639   return 0;
10640 }
10641 _ACEOF
10642 rm -f conftest.$ac_objext conftest$ac_exeext
10643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10644   (eval $ac_link) 2>&5
10645   ac_status=$?
10646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647   (exit $ac_status); } &&
10648          { ac_try='test -s conftest$ac_exeext'
10649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10650   (eval $ac_try) 2>&5
10651   ac_status=$?
10652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653   (exit $ac_status); }; }; then
10654   eval "$as_ac_var=yes"
10655 else
10656   echo "$as_me: failed program was:" >&5
10657 sed 's/^/| /' conftest.$ac_ext >&5
10658
10659 eval "$as_ac_var=no"
10660 fi
10661 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10662 fi
10663 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10664 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10665 if test `eval echo '${'$as_ac_var'}'` = yes; then
10666   cat >>confdefs.h <<_ACEOF
10667 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10668 _ACEOF
10669
10670 fi
10671 done
10672
10673
10674
10675 cat >>confdefs.h <<\_ACEOF
10676 #define USE_SSL 1
10677 _ACEOF
10678
10679           LIBS="$saved_LIBS"
10680           MUTTLIBS="$MUTTLIBS -lssl -lcrypto"
10681           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl.o"
10682           need_ssl=yes
10683
10684         fi
10685
10686 fi;
10687
10688
10689 if test x$need_ssl = xyes; then
10690   USE_SSL_TRUE=
10691   USE_SSL_FALSE='#'
10692 else
10693   USE_SSL_TRUE='#'
10694   USE_SSL_FALSE=
10695 fi
10696
10697
10698
10699 # Check whether --with-gnutls or --without-gnutls was given.
10700 if test "${with_gnutls+set}" = set; then
10701   withval="$with_gnutls"
10702      if test "$need_ssl" = "yes"
10703     then
10704       { { echo "$as_me:$LINENO: error: In order to compile in GNU TLS support, you must first disable SSL support" >&5
10705 echo "$as_me: error: In order to compile in GNU TLS support, you must first disable SSL support" >&2;}
10706    { (exit 1); exit 1; }; }
10707     fi
10708     if test "$with_gnutls" != "no"
10709     then
10710       if test "$need_socket" != "yes"; then
10711         { { echo "$as_me:$LINENO: error: GNU TLS support is only useful with POP or IMAP support" >&5
10712 echo "$as_me: error: GNU TLS support is only useful with POP or IMAP support" >&2;}
10713    { (exit 1); exit 1; }; }
10714       fi
10715       if test "$with_gnutls" != "yes"
10716       then
10717         LDFLAGS="$LDFLAGS -L$withval/lib"
10718         CPPFLAGS="$CPPFLAGS -I$withval/include"
10719       fi
10720 #saved_LIBS="$LIBS"
10721
10722
10723 echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
10724 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6
10725 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
10726   echo $ECHO_N "(cached) $ECHO_C" >&6
10727 else
10728   ac_check_lib_save_LIBS=$LIBS
10729 LIBS="-lgnutls  $LIBS"
10730 cat >conftest.$ac_ext <<_ACEOF
10731 #line $LINENO "configure"
10732 /* confdefs.h.  */
10733 _ACEOF
10734 cat confdefs.h >>conftest.$ac_ext
10735 cat >>conftest.$ac_ext <<_ACEOF
10736 /* end confdefs.h.  */
10737
10738 /* Override any gcc2 internal prototype to avoid an error.  */
10739 #ifdef __cplusplus
10740 extern "C"
10741 #endif
10742 /* We use char because int might match the return type of a gcc2
10743    builtin and then its argument prototype would still apply.  */
10744 char gnutls_init ();
10745 int
10746 main ()
10747 {
10748 gnutls_init ();
10749   ;
10750   return 0;
10751 }
10752 _ACEOF
10753 rm -f conftest.$ac_objext conftest$ac_exeext
10754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10755   (eval $ac_link) 2>&5
10756   ac_status=$?
10757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758   (exit $ac_status); } &&
10759          { ac_try='test -s conftest$ac_exeext'
10760   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10761   (eval $ac_try) 2>&5
10762   ac_status=$?
10763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764   (exit $ac_status); }; }; then
10765   ac_cv_lib_gnutls_gnutls_init=yes
10766 else
10767   echo "$as_me: failed program was:" >&5
10768 sed 's/^/| /' conftest.$ac_ext >&5
10769
10770 ac_cv_lib_gnutls_gnutls_init=no
10771 fi
10772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10773 LIBS=$ac_check_lib_save_LIBS
10774 fi
10775 echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
10776 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6
10777 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
10778   cat >>confdefs.h <<_ACEOF
10779 #define HAVE_LIBGNUTLS 1
10780 _ACEOF
10781
10782   LIBS="-lgnutls $LIBS"
10783
10784 else
10785   { { echo "$as_me:$LINENO: error: Unable to find GNU TLS library" >&5
10786 echo "$as_me: error: Unable to find GNU TLS library" >&2;}
10787    { (exit 1); exit 1; }; }
10788 fi
10789
10790
10791
10792 cat >>confdefs.h <<\_ACEOF
10793 #define USE_GNUTLS 1
10794 _ACEOF
10795
10796 #LIBS="$saved_LIBS"
10797 #MUTTLIBS="$MUTTLIBS -lgnutls"
10798       MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_gnutls.o"
10799       need_gnutls=yes
10800     fi
10801
10802 fi;
10803
10804
10805 if test x$need_gnutls = xyes; then
10806   USE_GNUTLS_TRUE=
10807   USE_GNUTLS_FALSE='#'
10808 else
10809   USE_GNUTLS_TRUE='#'
10810   USE_GNUTLS_FALSE=
10811 fi
10812
10813
10814
10815 # Check whether --with-nss or --without-nss was given.
10816 if test "${with_nss+set}" = set; then
10817   withval="$with_nss"
10818          if test "$with_nss" != no
10819         then
10820           if test "$need_socket" != "yes"; then
10821            { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
10822 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
10823    { (exit 1); exit 1; }; }
10824           fi
10825
10826           if test "$with_nss" != "yes"
10827           then
10828            LDFLAGS="$LDFLAGS -L$withval/lib"
10829            CPPFLAGS="$CPPFLAGS -I$withval/include -I$withval/public/security"
10830           fi
10831
10832
10833 cat >>confdefs.h <<\_ACEOF
10834 #define USE_NSS 1
10835 _ACEOF
10836
10837           MUTTLIBS="$MUTTLIBS -lssl -lnss -lcertdb -lcerthi -lcryptohi"
10838           MUTTLIBS="$MUTTLIBS -lpk11wrap -lsoftoken -lsecutil -ldbm -lplds4 -lplc4 -lfreebl"
10839           MUTTLIBS="$MUTTLIBS -lnspr4"
10840
10841           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_nss.o"
10842           need_ssl=yes
10843         fi
10844
10845 fi;
10846
10847
10848 # Check whether --with-sasl or --without-sasl was given.
10849 if test "${with_sasl+set}" = set; then
10850   withval="$with_sasl"
10851
10852         if test "$need_socket" != "yes"
10853         then
10854           { { echo "$as_me:$LINENO: error: SASL support is only useful with POP or IMAP support" >&5
10855 echo "$as_me: error: SASL support is only useful with POP or IMAP support" >&2;}
10856    { (exit 1); exit 1; }; }
10857         fi
10858
10859         if test "$with_sasl" != "no"
10860         then
10861           if test "$with_sasl" != "yes"
10862           then
10863             CPPFLAGS="$CPPFLAGS -I$with_sasl/include"
10864             LDFLAGS="$LDFLAGS -L$with_sasl/lib"
10865           fi
10866
10867           saved_LIBS="$LIBS"
10868
10869
10870 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
10871 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
10872 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
10873   echo $ECHO_N "(cached) $ECHO_C" >&6
10874 else
10875   ac_check_lib_save_LIBS=$LIBS
10876 LIBS="-lsasl  $LIBS"
10877 cat >conftest.$ac_ext <<_ACEOF
10878 #line $LINENO "configure"
10879 /* confdefs.h.  */
10880 _ACEOF
10881 cat confdefs.h >>conftest.$ac_ext
10882 cat >>conftest.$ac_ext <<_ACEOF
10883 /* end confdefs.h.  */
10884
10885 /* Override any gcc2 internal prototype to avoid an error.  */
10886 #ifdef __cplusplus
10887 extern "C"
10888 #endif
10889 /* We use char because int might match the return type of a gcc2
10890    builtin and then its argument prototype would still apply.  */
10891 char sasl_client_init ();
10892 int
10893 main ()
10894 {
10895 sasl_client_init ();
10896   ;
10897   return 0;
10898 }
10899 _ACEOF
10900 rm -f conftest.$ac_objext conftest$ac_exeext
10901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10902   (eval $ac_link) 2>&5
10903   ac_status=$?
10904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905   (exit $ac_status); } &&
10906          { ac_try='test -s conftest$ac_exeext'
10907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10908   (eval $ac_try) 2>&5
10909   ac_status=$?
10910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911   (exit $ac_status); }; }; then
10912   ac_cv_lib_sasl_sasl_client_init=yes
10913 else
10914   echo "$as_me: failed program was:" >&5
10915 sed 's/^/| /' conftest.$ac_ext >&5
10916
10917 ac_cv_lib_sasl_sasl_client_init=no
10918 fi
10919 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10920 LIBS=$ac_check_lib_save_LIBS
10921 fi
10922 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
10923 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
10924 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
10925   cat >>confdefs.h <<_ACEOF
10926 #define HAVE_LIBSASL 1
10927 _ACEOF
10928
10929   LIBS="-lsasl $LIBS"
10930
10931 else
10932   { { echo "$as_me:$LINENO: error: could not find libsasl" >&5
10933 echo "$as_me: error: could not find libsasl" >&2;}
10934    { (exit 1); exit 1; }; }
10935 fi
10936
10937
10938           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
10939           MUTTLIBS="$MUTTLIBS -lsasl"
10940           LIBS="$saved_LIBS"
10941
10942 cat >>confdefs.h <<\_ACEOF
10943 #define USE_SASL 1
10944 _ACEOF
10945
10946           need_sasl=yes
10947         fi
10948
10949 fi;
10950
10951
10952 if test x$need_sasl = xyes; then
10953   USE_SASL_TRUE=
10954   USE_SASL_FALSE='#'
10955 else
10956   USE_SASL_TRUE='#'
10957   USE_SASL_FALSE=
10958 fi
10959
10960
10961
10962 # Check whether --with-sasl2 or --without-sasl2 was given.
10963 if test "${with_sasl2+set}" = set; then
10964   withval="$with_sasl2"
10965
10966         if test "$need_socket" != "yes"
10967         then
10968           { { echo "$as_me:$LINENO: error: SASL support is only useful with POP or IMAP support" >&5
10969 echo "$as_me: error: SASL support is only useful with POP or IMAP support" >&2;}
10970    { (exit 1); exit 1; }; }
10971         fi
10972
10973         if test "$with_sasl2" != "no"
10974         then
10975           if test "$with_sasl2" != "yes"
10976           then
10977             CPPFLAGS="$CPPFLAGS -I$with_sasl2/include"
10978             LDFLAGS="$LDFLAGS -L$with_sasl2/lib"
10979           fi
10980
10981           saved_LIBS="$LIBS"
10982
10983
10984 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
10985 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
10986 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
10987   echo $ECHO_N "(cached) $ECHO_C" >&6
10988 else
10989   ac_check_lib_save_LIBS=$LIBS
10990 LIBS="-lsasl2  $LIBS"
10991 cat >conftest.$ac_ext <<_ACEOF
10992 #line $LINENO "configure"
10993 /* confdefs.h.  */
10994 _ACEOF
10995 cat confdefs.h >>conftest.$ac_ext
10996 cat >>conftest.$ac_ext <<_ACEOF
10997 /* end confdefs.h.  */
10998
10999 /* Override any gcc2 internal prototype to avoid an error.  */
11000 #ifdef __cplusplus
11001 extern "C"
11002 #endif
11003 /* We use char because int might match the return type of a gcc2
11004    builtin and then its argument prototype would still apply.  */
11005 char sasl_client_init ();
11006 int
11007 main ()
11008 {
11009 sasl_client_init ();
11010   ;
11011   return 0;
11012 }
11013 _ACEOF
11014 rm -f conftest.$ac_objext conftest$ac_exeext
11015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11016   (eval $ac_link) 2>&5
11017   ac_status=$?
11018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019   (exit $ac_status); } &&
11020          { ac_try='test -s conftest$ac_exeext'
11021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11022   (eval $ac_try) 2>&5
11023   ac_status=$?
11024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025   (exit $ac_status); }; }; then
11026   ac_cv_lib_sasl2_sasl_client_init=yes
11027 else
11028   echo "$as_me: failed program was:" >&5
11029 sed 's/^/| /' conftest.$ac_ext >&5
11030
11031 ac_cv_lib_sasl2_sasl_client_init=no
11032 fi
11033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11034 LIBS=$ac_check_lib_save_LIBS
11035 fi
11036 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
11037 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
11038 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
11039   cat >>confdefs.h <<_ACEOF
11040 #define HAVE_LIBSASL2 1
11041 _ACEOF
11042
11043   LIBS="-lsasl2 $LIBS"
11044
11045 else
11046   { { echo "$as_me:$LINENO: error: could not find libsasl" >&5
11047 echo "$as_me: error: could not find libsasl" >&2;}
11048    { (exit 1); exit 1; }; }
11049 fi
11050
11051
11052           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
11053           MUTTLIBS="$MUTTLIBS -lsasl2"
11054           LIBS="$saved_LIBS"
11055
11056 cat >>confdefs.h <<\_ACEOF
11057 #define USE_SASL 1
11058 _ACEOF
11059
11060
11061 cat >>confdefs.h <<\_ACEOF
11062 #define USE_SASL2 1
11063 _ACEOF
11064
11065           need_sasl=yes
11066         fi
11067
11068 fi;
11069
11070
11071 if test x$need_sasl = xyes; then
11072   USE_SASL_TRUE=
11073   USE_SASL_FALSE='#'
11074 else
11075   USE_SASL_TRUE='#'
11076   USE_SASL_FALSE=
11077 fi
11078
11079
11080
11081 # Check whether --with-idn or --without-idn was given.
11082 if test "${with_idn+set}" = set; then
11083   withval="$with_idn"
11084
11085                   if test "$with_idn" != "no" ; then
11086                         if test "$with_idn" != "yes" ; then
11087                            CPPFLAGS="$CPPFLAGS -I$with_idn/include"
11088                            LDFLAGS="$LDFLAGS -L$with_idn/lib"
11089                         fi
11090                   fi
11091
11092
11093 fi;
11094
11095 if test "x$with_idn" != "xno"; then
11096
11097 echo "$as_me:$LINENO: checking for stringprep_check_version in -lidn" >&5
11098 echo $ECHO_N "checking for stringprep_check_version in -lidn... $ECHO_C" >&6
11099 if test "${ac_cv_lib_idn_stringprep_check_version+set}" = set; then
11100   echo $ECHO_N "(cached) $ECHO_C" >&6
11101 else
11102   ac_check_lib_save_LIBS=$LIBS
11103 LIBS="-lidn  $LIBS"
11104 cat >conftest.$ac_ext <<_ACEOF
11105 #line $LINENO "configure"
11106 /* confdefs.h.  */
11107 _ACEOF
11108 cat confdefs.h >>conftest.$ac_ext
11109 cat >>conftest.$ac_ext <<_ACEOF
11110 /* end confdefs.h.  */
11111
11112 /* Override any gcc2 internal prototype to avoid an error.  */
11113 #ifdef __cplusplus
11114 extern "C"
11115 #endif
11116 /* We use char because int might match the return type of a gcc2
11117    builtin and then its argument prototype would still apply.  */
11118 char stringprep_check_version ();
11119 int
11120 main ()
11121 {
11122 stringprep_check_version ();
11123   ;
11124   return 0;
11125 }
11126 _ACEOF
11127 rm -f conftest.$ac_objext conftest$ac_exeext
11128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11129   (eval $ac_link) 2>&5
11130   ac_status=$?
11131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132   (exit $ac_status); } &&
11133          { ac_try='test -s conftest$ac_exeext'
11134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11135   (eval $ac_try) 2>&5
11136   ac_status=$?
11137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138   (exit $ac_status); }; }; then
11139   ac_cv_lib_idn_stringprep_check_version=yes
11140 else
11141   echo "$as_me: failed program was:" >&5
11142 sed 's/^/| /' conftest.$ac_ext >&5
11143
11144 ac_cv_lib_idn_stringprep_check_version=no
11145 fi
11146 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11147 LIBS=$ac_check_lib_save_LIBS
11148 fi
11149 echo "$as_me:$LINENO: result: $ac_cv_lib_idn_stringprep_check_version" >&5
11150 echo "${ECHO_T}$ac_cv_lib_idn_stringprep_check_version" >&6
11151 if test $ac_cv_lib_idn_stringprep_check_version = yes; then
11152   cat >>confdefs.h <<_ACEOF
11153 #define HAVE_LIBIDN 1
11154 _ACEOF
11155
11156   LIBS="-lidn $LIBS"
11157
11158 fi
11159
11160
11161
11162 for ac_func in idna_to_unicode_utf8_from_utf8 idna_to_unicode_8z8z
11163 do
11164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11165 echo "$as_me:$LINENO: checking for $ac_func" >&5
11166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11167 if eval "test \"\${$as_ac_var+set}\" = set"; then
11168   echo $ECHO_N "(cached) $ECHO_C" >&6
11169 else
11170   cat >conftest.$ac_ext <<_ACEOF
11171 #line $LINENO "configure"
11172 /* confdefs.h.  */
11173 _ACEOF
11174 cat confdefs.h >>conftest.$ac_ext
11175 cat >>conftest.$ac_ext <<_ACEOF
11176 /* end confdefs.h.  */
11177 /* System header to define __stub macros and hopefully few prototypes,
11178     which can conflict with char $ac_func (); below.
11179     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11180     <limits.h> exists even on freestanding compilers.  */
11181 #ifdef __STDC__
11182 # include <limits.h>
11183 #else
11184 # include <assert.h>
11185 #endif
11186 /* Override any gcc2 internal prototype to avoid an error.  */
11187 #ifdef __cplusplus
11188 extern "C"
11189 {
11190 #endif
11191 /* We use char because int might match the return type of a gcc2
11192    builtin and then its argument prototype would still apply.  */
11193 char $ac_func ();
11194 /* The GNU C library defines this for functions which it implements
11195     to always fail with ENOSYS.  Some functions are actually named
11196     something starting with __ and the normal name is an alias.  */
11197 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11198 choke me
11199 #else
11200 char (*f) () = $ac_func;
11201 #endif
11202 #ifdef __cplusplus
11203 }
11204 #endif
11205
11206 int
11207 main ()
11208 {
11209 return f != $ac_func;
11210   ;
11211   return 0;
11212 }
11213 _ACEOF
11214 rm -f conftest.$ac_objext conftest$ac_exeext
11215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11216   (eval $ac_link) 2>&5
11217   ac_status=$?
11218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219   (exit $ac_status); } &&
11220          { ac_try='test -s conftest$ac_exeext'
11221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11222   (eval $ac_try) 2>&5
11223   ac_status=$?
11224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11225   (exit $ac_status); }; }; then
11226   eval "$as_ac_var=yes"
11227 else
11228   echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11230
11231 eval "$as_ac_var=no"
11232 fi
11233 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11234 fi
11235 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11236 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11237 if test `eval echo '${'$as_ac_var'}'` = yes; then
11238   cat >>confdefs.h <<_ACEOF
11239 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11240 _ACEOF
11241
11242 fi
11243 done
11244
11245
11246
11247 for ac_func in idna_to_ascii_from_utf8 idna_to_ascii_8z
11248 do
11249 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11250 echo "$as_me:$LINENO: checking for $ac_func" >&5
11251 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11252 if eval "test \"\${$as_ac_var+set}\" = set"; then
11253   echo $ECHO_N "(cached) $ECHO_C" >&6
11254 else
11255   cat >conftest.$ac_ext <<_ACEOF
11256 #line $LINENO "configure"
11257 /* confdefs.h.  */
11258 _ACEOF
11259 cat confdefs.h >>conftest.$ac_ext
11260 cat >>conftest.$ac_ext <<_ACEOF
11261 /* end confdefs.h.  */
11262 /* System header to define __stub macros and hopefully few prototypes,
11263     which can conflict with char $ac_func (); below.
11264     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11265     <limits.h> exists even on freestanding compilers.  */
11266 #ifdef __STDC__
11267 # include <limits.h>
11268 #else
11269 # include <assert.h>
11270 #endif
11271 /* Override any gcc2 internal prototype to avoid an error.  */
11272 #ifdef __cplusplus
11273 extern "C"
11274 {
11275 #endif
11276 /* We use char because int might match the return type of a gcc2
11277    builtin and then its argument prototype would still apply.  */
11278 char $ac_func ();
11279 /* The GNU C library defines this for functions which it implements
11280     to always fail with ENOSYS.  Some functions are actually named
11281     something starting with __ and the normal name is an alias.  */
11282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11283 choke me
11284 #else
11285 char (*f) () = $ac_func;
11286 #endif
11287 #ifdef __cplusplus
11288 }
11289 #endif
11290
11291 int
11292 main ()
11293 {
11294 return f != $ac_func;
11295   ;
11296   return 0;
11297 }
11298 _ACEOF
11299 rm -f conftest.$ac_objext conftest$ac_exeext
11300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11301   (eval $ac_link) 2>&5
11302   ac_status=$?
11303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304   (exit $ac_status); } &&
11305          { ac_try='test -s conftest$ac_exeext'
11306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11307   (eval $ac_try) 2>&5
11308   ac_status=$?
11309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310   (exit $ac_status); }; }; then
11311   eval "$as_ac_var=yes"
11312 else
11313   echo "$as_me: failed program was:" >&5
11314 sed 's/^/| /' conftest.$ac_ext >&5
11315
11316 eval "$as_ac_var=no"
11317 fi
11318 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11319 fi
11320 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11321 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11322 if test `eval echo '${'$as_ac_var'}'` = yes; then
11323   cat >>confdefs.h <<_ACEOF
11324 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11325 _ACEOF
11326
11327 fi
11328 done
11329
11330
11331
11332 for ac_func in idna_to_ascii_lz idna_to_ascii_from_locale
11333 do
11334 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11335 echo "$as_me:$LINENO: checking for $ac_func" >&5
11336 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11337 if eval "test \"\${$as_ac_var+set}\" = set"; then
11338   echo $ECHO_N "(cached) $ECHO_C" >&6
11339 else
11340   cat >conftest.$ac_ext <<_ACEOF
11341 #line $LINENO "configure"
11342 /* confdefs.h.  */
11343 _ACEOF
11344 cat confdefs.h >>conftest.$ac_ext
11345 cat >>conftest.$ac_ext <<_ACEOF
11346 /* end confdefs.h.  */
11347 /* System header to define __stub macros and hopefully few prototypes,
11348     which can conflict with char $ac_func (); below.
11349     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11350     <limits.h> exists even on freestanding compilers.  */
11351 #ifdef __STDC__
11352 # include <limits.h>
11353 #else
11354 # include <assert.h>
11355 #endif
11356 /* Override any gcc2 internal prototype to avoid an error.  */
11357 #ifdef __cplusplus
11358 extern "C"
11359 {
11360 #endif
11361 /* We use char because int might match the return type of a gcc2
11362    builtin and then its argument prototype would still apply.  */
11363 char $ac_func ();
11364 /* The GNU C library defines this for functions which it implements
11365     to always fail with ENOSYS.  Some functions are actually named
11366     something starting with __ and the normal name is an alias.  */
11367 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11368 choke me
11369 #else
11370 char (*f) () = $ac_func;
11371 #endif
11372 #ifdef __cplusplus
11373 }
11374 #endif
11375
11376 int
11377 main ()
11378 {
11379 return f != $ac_func;
11380   ;
11381   return 0;
11382 }
11383 _ACEOF
11384 rm -f conftest.$ac_objext conftest$ac_exeext
11385 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11386   (eval $ac_link) 2>&5
11387   ac_status=$?
11388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389   (exit $ac_status); } &&
11390          { ac_try='test -s conftest$ac_exeext'
11391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11392   (eval $ac_try) 2>&5
11393   ac_status=$?
11394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395   (exit $ac_status); }; }; then
11396   eval "$as_ac_var=yes"
11397 else
11398   echo "$as_me: failed program was:" >&5
11399 sed 's/^/| /' conftest.$ac_ext >&5
11400
11401 eval "$as_ac_var=no"
11402 fi
11403 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11404 fi
11405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11406 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11407 if test `eval echo '${'$as_ac_var'}'` = yes; then
11408   cat >>confdefs.h <<_ACEOF
11409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11410 _ACEOF
11411
11412 fi
11413 done
11414
11415 fi
11416
11417 if test "$need_md5" = "yes"
11418 then
11419         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS md5c.o"
11420 fi
11421
11422
11423 # Check whether --enable-debug or --disable-debug was given.
11424 if test "${enable_debug+set}" = set; then
11425   enableval="$enable_debug"
11426    if test x$enableval = xyes ; then
11427
11428 cat >>confdefs.h <<\_ACEOF
11429 #define DEBUG 1
11430 _ACEOF
11431
11432           fi
11433
11434 fi;
11435
11436 # Check whether --enable-flock or --disable-flock was given.
11437 if test "${enable_flock+set}" = set; then
11438   enableval="$enable_flock"
11439   if test $enableval = yes; then
11440
11441 cat >>confdefs.h <<\_ACEOF
11442 #define USE_FLOCK 1
11443 _ACEOF
11444
11445         fi
11446 fi;
11447
11448 mutt_cv_fcntl=yes
11449 # Check whether --enable-fcntl or --disable-fcntl was given.
11450 if test "${enable_fcntl+set}" = set; then
11451   enableval="$enable_fcntl"
11452   if test $enableval = no; then mutt_cv_fcntl=no; fi
11453 fi;
11454
11455 if test $mutt_cv_fcntl = yes; then
11456
11457 cat >>confdefs.h <<\_ACEOF
11458 #define USE_FCNTL 1
11459 _ACEOF
11460
11461 fi
11462
11463 mutt_cv_warnings=yes
11464 # Check whether --enable-warnings or --disable-warnings was given.
11465 if test "${enable_warnings+set}" = set; then
11466   enableval="$enable_warnings"
11467   if test $enableval = no; then
11468         mutt_cv_warnings=no
11469 fi
11470 fi;
11471
11472 if test x$GCC = xyes -a $mutt_cv_warnings = yes; then
11473         CFLAGS="-Wall -pedantic $CFLAGS"
11474 fi
11475
11476 # Check whether --enable-nfs-fix or --disable-nfs-fix was given.
11477 if test "${enable_nfs_fix+set}" = set; then
11478   enableval="$enable_nfs_fix"
11479   if test x$enableval = xyes; then
11480
11481 cat >>confdefs.h <<\_ACEOF
11482 #define NFS_ATTRIBUTE_HACK 1
11483 _ACEOF
11484
11485         fi
11486 fi;
11487
11488 # Check whether --enable-buffy-size or --disable-buffy-size was given.
11489 if test "${enable_buffy_size+set}" = set; then
11490   enableval="$enable_buffy_size"
11491   if test x$enableval = xyes; then
11492
11493 cat >>confdefs.h <<\_ACEOF
11494 #define BUFFY_SIZE 1
11495 _ACEOF
11496
11497         fi
11498 fi;
11499
11500 # Check whether --enable-mailtool or --disable-mailtool was given.
11501 if test "${enable_mailtool+set}" = set; then
11502   enableval="$enable_mailtool"
11503   if test x$enableval = xyes; then
11504
11505 cat >>confdefs.h <<\_ACEOF
11506 #define SUN_ATTACHMENT 1
11507 _ACEOF
11508
11509         fi
11510 fi;
11511
11512 # Check whether --enable-compressed or --disable-compressed was given.
11513 if test "${enable_compressed+set}" = set; then
11514   enableval="$enable_compressed"
11515   if test x$enableval = xyes; then
11516                 cat >>confdefs.h <<\_ACEOF
11517 #define USE_COMPRESSED 1
11518 _ACEOF
11519
11520         fi
11521 fi;
11522
11523 # Check whether --enable-locales-fix or --disable-locales-fix was given.
11524 if test "${enable_locales_fix+set}" = set; then
11525   enableval="$enable_locales_fix"
11526   if test x$enableval = xyes; then
11527
11528 cat >>confdefs.h <<\_ACEOF
11529 #define LOCALES_HACK 1
11530 _ACEOF
11531
11532         fi
11533 fi;
11534
11535
11536 # Check whether --with-exec-shell or --without-exec-shell was given.
11537 if test "${with_exec_shell+set}" = set; then
11538   withval="$with_exec_shell"
11539   if test $withval != yes; then
11540
11541 cat >>confdefs.h <<_ACEOF
11542 #define EXECSHELL "$withval"
11543 _ACEOF
11544
11545          else
11546                 cat >>confdefs.h <<_ACEOF
11547 #define EXECSHELL "/bin/sh"
11548 _ACEOF
11549
11550         fi
11551 else
11552   cat >>confdefs.h <<_ACEOF
11553 #define EXECSHELL "/bin/sh"
11554 _ACEOF
11555
11556 fi;
11557
11558 # Check whether --enable-exact-address or --disable-exact-address was given.
11559 if test "${enable_exact_address+set}" = set; then
11560   enableval="$enable_exact_address"
11561   if test $enableval = yes; then
11562
11563 cat >>confdefs.h <<\_ACEOF
11564 #define EXACT_ADDRESS 1
11565 _ACEOF
11566
11567
11568         fi
11569 fi;
11570
11571
11572
11573
11574
11575
11576
11577 # Check whether --enable-iconv or --disable-iconv was given.
11578 if test "${enable_iconv+set}" = set; then
11579   enableval="$enable_iconv"
11580   if test x$enableval = xno ; then
11581                 am_cv_func_iconv=no
11582         fi
11583
11584 fi;
11585
11586 echo "$as_me:$LINENO: checking for off_t" >&5
11587 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11588 if test "${ac_cv_type_off_t+set}" = set; then
11589   echo $ECHO_N "(cached) $ECHO_C" >&6
11590 else
11591   cat >conftest.$ac_ext <<_ACEOF
11592 #line $LINENO "configure"
11593 /* confdefs.h.  */
11594 _ACEOF
11595 cat confdefs.h >>conftest.$ac_ext
11596 cat >>conftest.$ac_ext <<_ACEOF
11597 /* end confdefs.h.  */
11598 $ac_includes_default
11599 int
11600 main ()
11601 {
11602 if ((off_t *) 0)
11603   return 0;
11604 if (sizeof (off_t))
11605   return 0;
11606   ;
11607   return 0;
11608 }
11609 _ACEOF
11610 rm -f conftest.$ac_objext
11611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11612   (eval $ac_compile) 2>&5
11613   ac_status=$?
11614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615   (exit $ac_status); } &&
11616          { ac_try='test -s conftest.$ac_objext'
11617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11618   (eval $ac_try) 2>&5
11619   ac_status=$?
11620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621   (exit $ac_status); }; }; then
11622   ac_cv_type_off_t=yes
11623 else
11624   echo "$as_me: failed program was:" >&5
11625 sed 's/^/| /' conftest.$ac_ext >&5
11626
11627 ac_cv_type_off_t=no
11628 fi
11629 rm -f conftest.$ac_objext conftest.$ac_ext
11630 fi
11631 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11632 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11633 if test $ac_cv_type_off_t = yes; then
11634   :
11635 else
11636
11637 cat >>confdefs.h <<_ACEOF
11638 #define off_t long
11639 _ACEOF
11640
11641 fi
11642
11643 echo "$as_me:$LINENO: checking for size_t" >&5
11644 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11645 if test "${ac_cv_type_size_t+set}" = set; then
11646   echo $ECHO_N "(cached) $ECHO_C" >&6
11647 else
11648   cat >conftest.$ac_ext <<_ACEOF
11649 #line $LINENO "configure"
11650 /* confdefs.h.  */
11651 _ACEOF
11652 cat confdefs.h >>conftest.$ac_ext
11653 cat >>conftest.$ac_ext <<_ACEOF
11654 /* end confdefs.h.  */
11655 $ac_includes_default
11656 int
11657 main ()
11658 {
11659 if ((size_t *) 0)
11660   return 0;
11661 if (sizeof (size_t))
11662   return 0;
11663   ;
11664   return 0;
11665 }
11666 _ACEOF
11667 rm -f conftest.$ac_objext
11668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11669   (eval $ac_compile) 2>&5
11670   ac_status=$?
11671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672   (exit $ac_status); } &&
11673          { ac_try='test -s conftest.$ac_objext'
11674   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11675   (eval $ac_try) 2>&5
11676   ac_status=$?
11677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678   (exit $ac_status); }; }; then
11679   ac_cv_type_size_t=yes
11680 else
11681   echo "$as_me: failed program was:" >&5
11682 sed 's/^/| /' conftest.$ac_ext >&5
11683
11684 ac_cv_type_size_t=no
11685 fi
11686 rm -f conftest.$ac_objext conftest.$ac_ext
11687 fi
11688 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11689 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11690 if test $ac_cv_type_size_t = yes; then
11691   :
11692 else
11693
11694 cat >>confdefs.h <<_ACEOF
11695 #define size_t unsigned
11696 _ACEOF
11697
11698 fi
11699
11700 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11701 # for constant arguments.  Useless!
11702 echo "$as_me:$LINENO: checking for working alloca.h" >&5
11703 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11704 if test "${ac_cv_working_alloca_h+set}" = set; then
11705   echo $ECHO_N "(cached) $ECHO_C" >&6
11706 else
11707   cat >conftest.$ac_ext <<_ACEOF
11708 #line $LINENO "configure"
11709 /* confdefs.h.  */
11710 _ACEOF
11711 cat confdefs.h >>conftest.$ac_ext
11712 cat >>conftest.$ac_ext <<_ACEOF
11713 /* end confdefs.h.  */
11714 #include <alloca.h>
11715 int
11716 main ()
11717 {
11718 char *p = (char *) alloca (2 * sizeof (int));
11719   ;
11720   return 0;
11721 }
11722 _ACEOF
11723 rm -f conftest.$ac_objext conftest$ac_exeext
11724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11725   (eval $ac_link) 2>&5
11726   ac_status=$?
11727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11728   (exit $ac_status); } &&
11729          { ac_try='test -s conftest$ac_exeext'
11730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11731   (eval $ac_try) 2>&5
11732   ac_status=$?
11733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734   (exit $ac_status); }; }; then
11735   ac_cv_working_alloca_h=yes
11736 else
11737   echo "$as_me: failed program was:" >&5
11738 sed 's/^/| /' conftest.$ac_ext >&5
11739
11740 ac_cv_working_alloca_h=no
11741 fi
11742 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11743 fi
11744 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11745 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11746 if test $ac_cv_working_alloca_h = yes; then
11747
11748 cat >>confdefs.h <<\_ACEOF
11749 #define HAVE_ALLOCA_H 1
11750 _ACEOF
11751
11752 fi
11753
11754 echo "$as_me:$LINENO: checking for alloca" >&5
11755 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11756 if test "${ac_cv_func_alloca_works+set}" = set; then
11757   echo $ECHO_N "(cached) $ECHO_C" >&6
11758 else
11759   cat >conftest.$ac_ext <<_ACEOF
11760 #line $LINENO "configure"
11761 /* confdefs.h.  */
11762 _ACEOF
11763 cat confdefs.h >>conftest.$ac_ext
11764 cat >>conftest.$ac_ext <<_ACEOF
11765 /* end confdefs.h.  */
11766 #ifdef __GNUC__
11767 # define alloca __builtin_alloca
11768 #else
11769 # ifdef _MSC_VER
11770 #  include <malloc.h>
11771 #  define alloca _alloca
11772 # else
11773 #  if HAVE_ALLOCA_H
11774 #   include <alloca.h>
11775 #  else
11776 #   ifdef _AIX
11777  #pragma alloca
11778 #   else
11779 #    ifndef alloca /* predefined by HP cc +Olibcalls */
11780 char *alloca ();
11781 #    endif
11782 #   endif
11783 #  endif
11784 # endif
11785 #endif
11786
11787 int
11788 main ()
11789 {
11790 char *p = (char *) alloca (1);
11791   ;
11792   return 0;
11793 }
11794 _ACEOF
11795 rm -f conftest.$ac_objext conftest$ac_exeext
11796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11797   (eval $ac_link) 2>&5
11798   ac_status=$?
11799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11800   (exit $ac_status); } &&
11801          { ac_try='test -s conftest$ac_exeext'
11802   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11803   (eval $ac_try) 2>&5
11804   ac_status=$?
11805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806   (exit $ac_status); }; }; then
11807   ac_cv_func_alloca_works=yes
11808 else
11809   echo "$as_me: failed program was:" >&5
11810 sed 's/^/| /' conftest.$ac_ext >&5
11811
11812 ac_cv_func_alloca_works=no
11813 fi
11814 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11815 fi
11816 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11817 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11818
11819 if test $ac_cv_func_alloca_works = yes; then
11820
11821 cat >>confdefs.h <<\_ACEOF
11822 #define HAVE_ALLOCA 1
11823 _ACEOF
11824
11825 else
11826   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11827 # that cause trouble.  Some versions do not even contain alloca or
11828 # contain a buggy version.  If you still want to use their alloca,
11829 # use ar to extract alloca.o from them instead of compiling alloca.c.
11830
11831 ALLOCA=alloca.$ac_objext
11832
11833 cat >>confdefs.h <<\_ACEOF
11834 #define C_ALLOCA 1
11835 _ACEOF
11836
11837
11838 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11839 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11840 if test "${ac_cv_os_cray+set}" = set; then
11841   echo $ECHO_N "(cached) $ECHO_C" >&6
11842 else
11843   cat >conftest.$ac_ext <<_ACEOF
11844 #line $LINENO "configure"
11845 /* confdefs.h.  */
11846 _ACEOF
11847 cat confdefs.h >>conftest.$ac_ext
11848 cat >>conftest.$ac_ext <<_ACEOF
11849 /* end confdefs.h.  */
11850 #if defined(CRAY) && ! defined(CRAY2)
11851 webecray
11852 #else
11853 wenotbecray
11854 #endif
11855
11856 _ACEOF
11857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11858   $EGREP "webecray" >/dev/null 2>&1; then
11859   ac_cv_os_cray=yes
11860 else
11861   ac_cv_os_cray=no
11862 fi
11863 rm -f conftest*
11864
11865 fi
11866 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11867 echo "${ECHO_T}$ac_cv_os_cray" >&6
11868 if test $ac_cv_os_cray = yes; then
11869   for ac_func in _getb67 GETB67 getb67; do
11870     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11871 echo "$as_me:$LINENO: checking for $ac_func" >&5
11872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11873 if eval "test \"\${$as_ac_var+set}\" = set"; then
11874   echo $ECHO_N "(cached) $ECHO_C" >&6
11875 else
11876   cat >conftest.$ac_ext <<_ACEOF
11877 #line $LINENO "configure"
11878 /* confdefs.h.  */
11879 _ACEOF
11880 cat confdefs.h >>conftest.$ac_ext
11881 cat >>conftest.$ac_ext <<_ACEOF
11882 /* end confdefs.h.  */
11883 /* System header to define __stub macros and hopefully few prototypes,
11884     which can conflict with char $ac_func (); below.
11885     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11886     <limits.h> exists even on freestanding compilers.  */
11887 #ifdef __STDC__
11888 # include <limits.h>
11889 #else
11890 # include <assert.h>
11891 #endif
11892 /* Override any gcc2 internal prototype to avoid an error.  */
11893 #ifdef __cplusplus
11894 extern "C"
11895 {
11896 #endif
11897 /* We use char because int might match the return type of a gcc2
11898    builtin and then its argument prototype would still apply.  */
11899 char $ac_func ();
11900 /* The GNU C library defines this for functions which it implements
11901     to always fail with ENOSYS.  Some functions are actually named
11902     something starting with __ and the normal name is an alias.  */
11903 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11904 choke me
11905 #else
11906 char (*f) () = $ac_func;
11907 #endif
11908 #ifdef __cplusplus
11909 }
11910 #endif
11911
11912 int
11913 main ()
11914 {
11915 return f != $ac_func;
11916   ;
11917   return 0;
11918 }
11919 _ACEOF
11920 rm -f conftest.$ac_objext conftest$ac_exeext
11921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11922   (eval $ac_link) 2>&5
11923   ac_status=$?
11924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925   (exit $ac_status); } &&
11926          { ac_try='test -s conftest$ac_exeext'
11927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11928   (eval $ac_try) 2>&5
11929   ac_status=$?
11930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931   (exit $ac_status); }; }; then
11932   eval "$as_ac_var=yes"
11933 else
11934   echo "$as_me: failed program was:" >&5
11935 sed 's/^/| /' conftest.$ac_ext >&5
11936
11937 eval "$as_ac_var=no"
11938 fi
11939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11940 fi
11941 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11942 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11943 if test `eval echo '${'$as_ac_var'}'` = yes; then
11944
11945 cat >>confdefs.h <<_ACEOF
11946 #define CRAY_STACKSEG_END $ac_func
11947 _ACEOF
11948
11949     break
11950 fi
11951
11952   done
11953 fi
11954
11955 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11956 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11957 if test "${ac_cv_c_stack_direction+set}" = set; then
11958   echo $ECHO_N "(cached) $ECHO_C" >&6
11959 else
11960   if test "$cross_compiling" = yes; then
11961   ac_cv_c_stack_direction=0
11962 else
11963   cat >conftest.$ac_ext <<_ACEOF
11964 #line $LINENO "configure"
11965 /* confdefs.h.  */
11966 _ACEOF
11967 cat confdefs.h >>conftest.$ac_ext
11968 cat >>conftest.$ac_ext <<_ACEOF
11969 /* end confdefs.h.  */
11970 int
11971 find_stack_direction ()
11972 {
11973   static char *addr = 0;
11974   auto char dummy;
11975   if (addr == 0)
11976     {
11977       addr = &dummy;
11978       return find_stack_direction ();
11979     }
11980   else
11981     return (&dummy > addr) ? 1 : -1;
11982 }
11983
11984 int
11985 main ()
11986 {
11987   exit (find_stack_direction () < 0);
11988 }
11989 _ACEOF
11990 rm -f conftest$ac_exeext
11991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11992   (eval $ac_link) 2>&5
11993   ac_status=$?
11994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11997   (eval $ac_try) 2>&5
11998   ac_status=$?
11999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000   (exit $ac_status); }; }; then
12001   ac_cv_c_stack_direction=1
12002 else
12003   echo "$as_me: program exited with status $ac_status" >&5
12004 echo "$as_me: failed program was:" >&5
12005 sed 's/^/| /' conftest.$ac_ext >&5
12006
12007 ( exit $ac_status )
12008 ac_cv_c_stack_direction=-1
12009 fi
12010 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12011 fi
12012 fi
12013 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
12014 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
12015
12016 cat >>confdefs.h <<_ACEOF
12017 #define STACK_DIRECTION $ac_cv_c_stack_direction
12018 _ACEOF
12019
12020
12021 fi
12022
12023
12024
12025 for ac_header in stdlib.h unistd.h
12026 do
12027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12029   echo "$as_me:$LINENO: checking for $ac_header" >&5
12030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12032   echo $ECHO_N "(cached) $ECHO_C" >&6
12033 fi
12034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12036 else
12037   # Is the header compilable?
12038 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12040 cat >conftest.$ac_ext <<_ACEOF
12041 #line $LINENO "configure"
12042 /* confdefs.h.  */
12043 _ACEOF
12044 cat confdefs.h >>conftest.$ac_ext
12045 cat >>conftest.$ac_ext <<_ACEOF
12046 /* end confdefs.h.  */
12047 $ac_includes_default
12048 #include <$ac_header>
12049 _ACEOF
12050 rm -f conftest.$ac_objext
12051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12052   (eval $ac_compile) 2>&5
12053   ac_status=$?
12054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055   (exit $ac_status); } &&
12056          { ac_try='test -s conftest.$ac_objext'
12057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12058   (eval $ac_try) 2>&5
12059   ac_status=$?
12060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061   (exit $ac_status); }; }; then
12062   ac_header_compiler=yes
12063 else
12064   echo "$as_me: failed program was:" >&5
12065 sed 's/^/| /' conftest.$ac_ext >&5
12066
12067 ac_header_compiler=no
12068 fi
12069 rm -f conftest.$ac_objext conftest.$ac_ext
12070 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12071 echo "${ECHO_T}$ac_header_compiler" >&6
12072
12073 # Is the header present?
12074 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12076 cat >conftest.$ac_ext <<_ACEOF
12077 #line $LINENO "configure"
12078 /* confdefs.h.  */
12079 _ACEOF
12080 cat confdefs.h >>conftest.$ac_ext
12081 cat >>conftest.$ac_ext <<_ACEOF
12082 /* end confdefs.h.  */
12083 #include <$ac_header>
12084 _ACEOF
12085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12086   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12087   ac_status=$?
12088   grep -v '^ *+' conftest.er1 >conftest.err
12089   rm -f conftest.er1
12090   cat conftest.err >&5
12091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092   (exit $ac_status); } >/dev/null; then
12093   if test -s conftest.err; then
12094     ac_cpp_err=$ac_c_preproc_warn_flag
12095   else
12096     ac_cpp_err=
12097   fi
12098 else
12099   ac_cpp_err=yes
12100 fi
12101 if test -z "$ac_cpp_err"; then
12102   ac_header_preproc=yes
12103 else
12104   echo "$as_me: failed program was:" >&5
12105 sed 's/^/| /' conftest.$ac_ext >&5
12106
12107   ac_header_preproc=no
12108 fi
12109 rm -f conftest.err conftest.$ac_ext
12110 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12111 echo "${ECHO_T}$ac_header_preproc" >&6
12112
12113 # So?  What about this header?
12114 case $ac_header_compiler:$ac_header_preproc in
12115   yes:no )
12116     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12118     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12120     (
12121       cat <<\_ASBOX
12122 ## ------------------------------------ ##
12123 ## Report this to bug-autoconf@gnu.org. ##
12124 ## ------------------------------------ ##
12125 _ASBOX
12126     ) |
12127       sed "s/^/$as_me: WARNING:     /" >&2
12128     ;;
12129   no:yes )
12130     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12132     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12133 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12134     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12136     (
12137       cat <<\_ASBOX
12138 ## ------------------------------------ ##
12139 ## Report this to bug-autoconf@gnu.org. ##
12140 ## ------------------------------------ ##
12141 _ASBOX
12142     ) |
12143       sed "s/^/$as_me: WARNING:     /" >&2
12144     ;;
12145 esac
12146 echo "$as_me:$LINENO: checking for $ac_header" >&5
12147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12149   echo $ECHO_N "(cached) $ECHO_C" >&6
12150 else
12151   eval "$as_ac_Header=$ac_header_preproc"
12152 fi
12153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12155
12156 fi
12157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12158   cat >>confdefs.h <<_ACEOF
12159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12160 _ACEOF
12161
12162 fi
12163
12164 done
12165
12166
12167 for ac_func in getpagesize
12168 do
12169 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12170 echo "$as_me:$LINENO: checking for $ac_func" >&5
12171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12172 if eval "test \"\${$as_ac_var+set}\" = set"; then
12173   echo $ECHO_N "(cached) $ECHO_C" >&6
12174 else
12175   cat >conftest.$ac_ext <<_ACEOF
12176 #line $LINENO "configure"
12177 /* confdefs.h.  */
12178 _ACEOF
12179 cat confdefs.h >>conftest.$ac_ext
12180 cat >>conftest.$ac_ext <<_ACEOF
12181 /* end confdefs.h.  */
12182 /* System header to define __stub macros and hopefully few prototypes,
12183     which can conflict with char $ac_func (); below.
12184     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12185     <limits.h> exists even on freestanding compilers.  */
12186 #ifdef __STDC__
12187 # include <limits.h>
12188 #else
12189 # include <assert.h>
12190 #endif
12191 /* Override any gcc2 internal prototype to avoid an error.  */
12192 #ifdef __cplusplus
12193 extern "C"
12194 {
12195 #endif
12196 /* We use char because int might match the return type of a gcc2
12197    builtin and then its argument prototype would still apply.  */
12198 char $ac_func ();
12199 /* The GNU C library defines this for functions which it implements
12200     to always fail with ENOSYS.  Some functions are actually named
12201     something starting with __ and the normal name is an alias.  */
12202 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12203 choke me
12204 #else
12205 char (*f) () = $ac_func;
12206 #endif
12207 #ifdef __cplusplus
12208 }
12209 #endif
12210
12211 int
12212 main ()
12213 {
12214 return f != $ac_func;
12215   ;
12216   return 0;
12217 }
12218 _ACEOF
12219 rm -f conftest.$ac_objext conftest$ac_exeext
12220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12221   (eval $ac_link) 2>&5
12222   ac_status=$?
12223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224   (exit $ac_status); } &&
12225          { ac_try='test -s conftest$ac_exeext'
12226   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12227   (eval $ac_try) 2>&5
12228   ac_status=$?
12229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230   (exit $ac_status); }; }; then
12231   eval "$as_ac_var=yes"
12232 else
12233   echo "$as_me: failed program was:" >&5
12234 sed 's/^/| /' conftest.$ac_ext >&5
12235
12236 eval "$as_ac_var=no"
12237 fi
12238 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12239 fi
12240 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12241 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12242 if test `eval echo '${'$as_ac_var'}'` = yes; then
12243   cat >>confdefs.h <<_ACEOF
12244 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12245 _ACEOF
12246
12247 fi
12248 done
12249
12250 echo "$as_me:$LINENO: checking for working mmap" >&5
12251 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12252 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12253   echo $ECHO_N "(cached) $ECHO_C" >&6
12254 else
12255   if test "$cross_compiling" = yes; then
12256   ac_cv_func_mmap_fixed_mapped=no
12257 else
12258   cat >conftest.$ac_ext <<_ACEOF
12259 #line $LINENO "configure"
12260 /* confdefs.h.  */
12261 _ACEOF
12262 cat confdefs.h >>conftest.$ac_ext
12263 cat >>conftest.$ac_ext <<_ACEOF
12264 /* end confdefs.h.  */
12265 $ac_includes_default
12266 /* malloc might have been renamed as rpl_malloc. */
12267 #undef malloc
12268
12269 /* Thanks to Mike Haertel and Jim Avera for this test.
12270    Here is a matrix of mmap possibilities:
12271         mmap private not fixed
12272         mmap private fixed at somewhere currently unmapped
12273         mmap private fixed at somewhere already mapped
12274         mmap shared not fixed
12275         mmap shared fixed at somewhere currently unmapped
12276         mmap shared fixed at somewhere already mapped
12277    For private mappings, we should verify that changes cannot be read()
12278    back from the file, nor mmap's back from the file at a different
12279    address.  (There have been systems where private was not correctly
12280    implemented like the infamous i386 svr4.0, and systems where the
12281    VM page cache was not coherent with the file system buffer cache
12282    like early versions of FreeBSD and possibly contemporary NetBSD.)
12283    For shared mappings, we should conversely verify that changes get
12284    propagated back to all the places they're supposed to be.
12285
12286    Grep wants private fixed already mapped.
12287    The main things grep needs to know about mmap are:
12288    * does it exist and is it safe to write into the mmap'd area
12289    * how to use it (BSD variants)  */
12290
12291 #include <fcntl.h>
12292 #include <sys/mman.h>
12293
12294 #if !STDC_HEADERS && !HAVE_STDLIB_H
12295 char *malloc ();
12296 #endif
12297
12298 /* This mess was copied from the GNU getpagesize.h.  */
12299 #if !HAVE_GETPAGESIZE
12300 /* Assume that all systems that can run configure have sys/param.h.  */
12301 # if !HAVE_SYS_PARAM_H
12302 #  define HAVE_SYS_PARAM_H 1
12303 # endif
12304
12305 # ifdef _SC_PAGESIZE
12306 #  define getpagesize() sysconf(_SC_PAGESIZE)
12307 # else /* no _SC_PAGESIZE */
12308 #  if HAVE_SYS_PARAM_H
12309 #   include <sys/param.h>
12310 #   ifdef EXEC_PAGESIZE
12311 #    define getpagesize() EXEC_PAGESIZE
12312 #   else /* no EXEC_PAGESIZE */
12313 #    ifdef NBPG
12314 #     define getpagesize() NBPG * CLSIZE
12315 #     ifndef CLSIZE
12316 #      define CLSIZE 1
12317 #     endif /* no CLSIZE */
12318 #    else /* no NBPG */
12319 #     ifdef NBPC
12320 #      define getpagesize() NBPC
12321 #     else /* no NBPC */
12322 #      ifdef PAGESIZE
12323 #       define getpagesize() PAGESIZE
12324 #      endif /* PAGESIZE */
12325 #     endif /* no NBPC */
12326 #    endif /* no NBPG */
12327 #   endif /* no EXEC_PAGESIZE */
12328 #  else /* no HAVE_SYS_PARAM_H */
12329 #   define getpagesize() 8192   /* punt totally */
12330 #  endif /* no HAVE_SYS_PARAM_H */
12331 # endif /* no _SC_PAGESIZE */
12332
12333 #endif /* no HAVE_GETPAGESIZE */
12334
12335 int
12336 main ()
12337 {
12338   char *data, *data2, *data3;
12339   int i, pagesize;
12340   int fd;
12341
12342   pagesize = getpagesize ();
12343
12344   /* First, make a file with some known garbage in it. */
12345   data = (char *) malloc (pagesize);
12346   if (!data)
12347     exit (1);
12348   for (i = 0; i < pagesize; ++i)
12349     *(data + i) = rand ();
12350   umask (0);
12351   fd = creat ("conftest.mmap", 0600);
12352   if (fd < 0)
12353     exit (1);
12354   if (write (fd, data, pagesize) != pagesize)
12355     exit (1);
12356   close (fd);
12357
12358   /* Next, try to mmap the file at a fixed address which already has
12359      something else allocated at it.  If we can, also make sure that
12360      we see the same garbage.  */
12361   fd = open ("conftest.mmap", O_RDWR);
12362   if (fd < 0)
12363     exit (1);
12364   data2 = (char *) malloc (2 * pagesize);
12365   if (!data2)
12366     exit (1);
12367   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
12368   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12369                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
12370     exit (1);
12371   for (i = 0; i < pagesize; ++i)
12372     if (*(data + i) != *(data2 + i))
12373       exit (1);
12374
12375   /* Finally, make sure that changes to the mapped area do not
12376      percolate back to the file as seen by read().  (This is a bug on
12377      some variants of i386 svr4.0.)  */
12378   for (i = 0; i < pagesize; ++i)
12379     *(data2 + i) = *(data2 + i) + 1;
12380   data3 = (char *) malloc (pagesize);
12381   if (!data3)
12382     exit (1);
12383   if (read (fd, data3, pagesize) != pagesize)
12384     exit (1);
12385   for (i = 0; i < pagesize; ++i)
12386     if (*(data + i) != *(data3 + i))
12387       exit (1);
12388   close (fd);
12389   exit (0);
12390 }
12391 _ACEOF
12392 rm -f conftest$ac_exeext
12393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12394   (eval $ac_link) 2>&5
12395   ac_status=$?
12396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12399   (eval $ac_try) 2>&5
12400   ac_status=$?
12401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402   (exit $ac_status); }; }; then
12403   ac_cv_func_mmap_fixed_mapped=yes
12404 else
12405   echo "$as_me: program exited with status $ac_status" >&5
12406 echo "$as_me: failed program was:" >&5
12407 sed 's/^/| /' conftest.$ac_ext >&5
12408
12409 ( exit $ac_status )
12410 ac_cv_func_mmap_fixed_mapped=no
12411 fi
12412 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12413 fi
12414 fi
12415 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12416 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12417 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12418
12419 cat >>confdefs.h <<\_ACEOF
12420 #define HAVE_MMAP 1
12421 _ACEOF
12422
12423 fi
12424 rm -f conftest.mmap
12425
12426
12427     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
12428 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
12429 if test "${ac_cv_gnu_library_2_1+set}" = set; then
12430   echo $ECHO_N "(cached) $ECHO_C" >&6
12431 else
12432   cat >conftest.$ac_ext <<_ACEOF
12433 #line $LINENO "configure"
12434 /* confdefs.h.  */
12435 _ACEOF
12436 cat confdefs.h >>conftest.$ac_ext
12437 cat >>conftest.$ac_ext <<_ACEOF
12438 /* end confdefs.h.  */
12439
12440 #include <features.h>
12441 #ifdef __GNU_LIBRARY__
12442  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
12443   Lucky GNU user
12444  #endif
12445 #endif
12446
12447 _ACEOF
12448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12449   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
12450   ac_cv_gnu_library_2_1=yes
12451 else
12452   ac_cv_gnu_library_2_1=no
12453 fi
12454 rm -f conftest*
12455
12456
12457
12458 fi
12459 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
12460 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
12461
12462     GLIBC21="$ac_cv_gnu_library_2_1"
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12477 stdlib.h string.h unistd.h sys/param.h
12478 do
12479 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12480 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12481   echo "$as_me:$LINENO: checking for $ac_header" >&5
12482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12484   echo $ECHO_N "(cached) $ECHO_C" >&6
12485 fi
12486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12488 else
12489   # Is the header compilable?
12490 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12491 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12492 cat >conftest.$ac_ext <<_ACEOF
12493 #line $LINENO "configure"
12494 /* confdefs.h.  */
12495 _ACEOF
12496 cat confdefs.h >>conftest.$ac_ext
12497 cat >>conftest.$ac_ext <<_ACEOF
12498 /* end confdefs.h.  */
12499 $ac_includes_default
12500 #include <$ac_header>
12501 _ACEOF
12502 rm -f conftest.$ac_objext
12503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12504   (eval $ac_compile) 2>&5
12505   ac_status=$?
12506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507   (exit $ac_status); } &&
12508          { ac_try='test -s conftest.$ac_objext'
12509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12510   (eval $ac_try) 2>&5
12511   ac_status=$?
12512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12513   (exit $ac_status); }; }; then
12514   ac_header_compiler=yes
12515 else
12516   echo "$as_me: failed program was:" >&5
12517 sed 's/^/| /' conftest.$ac_ext >&5
12518
12519 ac_header_compiler=no
12520 fi
12521 rm -f conftest.$ac_objext conftest.$ac_ext
12522 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12523 echo "${ECHO_T}$ac_header_compiler" >&6
12524
12525 # Is the header present?
12526 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12527 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12528 cat >conftest.$ac_ext <<_ACEOF
12529 #line $LINENO "configure"
12530 /* confdefs.h.  */
12531 _ACEOF
12532 cat confdefs.h >>conftest.$ac_ext
12533 cat >>conftest.$ac_ext <<_ACEOF
12534 /* end confdefs.h.  */
12535 #include <$ac_header>
12536 _ACEOF
12537 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12538   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12539   ac_status=$?
12540   grep -v '^ *+' conftest.er1 >conftest.err
12541   rm -f conftest.er1
12542   cat conftest.err >&5
12543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544   (exit $ac_status); } >/dev/null; then
12545   if test -s conftest.err; then
12546     ac_cpp_err=$ac_c_preproc_warn_flag
12547   else
12548     ac_cpp_err=
12549   fi
12550 else
12551   ac_cpp_err=yes
12552 fi
12553 if test -z "$ac_cpp_err"; then
12554   ac_header_preproc=yes
12555 else
12556   echo "$as_me: failed program was:" >&5
12557 sed 's/^/| /' conftest.$ac_ext >&5
12558
12559   ac_header_preproc=no
12560 fi
12561 rm -f conftest.err conftest.$ac_ext
12562 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12563 echo "${ECHO_T}$ac_header_preproc" >&6
12564
12565 # So?  What about this header?
12566 case $ac_header_compiler:$ac_header_preproc in
12567   yes:no )
12568     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12569 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12570     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12571 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12572     (
12573       cat <<\_ASBOX
12574 ## ------------------------------------ ##
12575 ## Report this to bug-autoconf@gnu.org. ##
12576 ## ------------------------------------ ##
12577 _ASBOX
12578     ) |
12579       sed "s/^/$as_me: WARNING:     /" >&2
12580     ;;
12581   no:yes )
12582     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12584     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12586     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12588     (
12589       cat <<\_ASBOX
12590 ## ------------------------------------ ##
12591 ## Report this to bug-autoconf@gnu.org. ##
12592 ## ------------------------------------ ##
12593 _ASBOX
12594     ) |
12595       sed "s/^/$as_me: WARNING:     /" >&2
12596     ;;
12597 esac
12598 echo "$as_me:$LINENO: checking for $ac_header" >&5
12599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12601   echo $ECHO_N "(cached) $ECHO_C" >&6
12602 else
12603   eval "$as_ac_Header=$ac_header_preproc"
12604 fi
12605 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12606 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12607
12608 fi
12609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12610   cat >>confdefs.h <<_ACEOF
12611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12612 _ACEOF
12613
12614 fi
12615
12616 done
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
12640 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
12641 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
12642 do
12643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12644 echo "$as_me:$LINENO: checking for $ac_func" >&5
12645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12646 if eval "test \"\${$as_ac_var+set}\" = set"; then
12647   echo $ECHO_N "(cached) $ECHO_C" >&6
12648 else
12649   cat >conftest.$ac_ext <<_ACEOF
12650 #line $LINENO "configure"
12651 /* confdefs.h.  */
12652 _ACEOF
12653 cat confdefs.h >>conftest.$ac_ext
12654 cat >>conftest.$ac_ext <<_ACEOF
12655 /* end confdefs.h.  */
12656 /* System header to define __stub macros and hopefully few prototypes,
12657     which can conflict with char $ac_func (); below.
12658     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12659     <limits.h> exists even on freestanding compilers.  */
12660 #ifdef __STDC__
12661 # include <limits.h>
12662 #else
12663 # include <assert.h>
12664 #endif
12665 /* Override any gcc2 internal prototype to avoid an error.  */
12666 #ifdef __cplusplus
12667 extern "C"
12668 {
12669 #endif
12670 /* We use char because int might match the return type of a gcc2
12671    builtin and then its argument prototype would still apply.  */
12672 char $ac_func ();
12673 /* The GNU C library defines this for functions which it implements
12674     to always fail with ENOSYS.  Some functions are actually named
12675     something starting with __ and the normal name is an alias.  */
12676 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12677 choke me
12678 #else
12679 char (*f) () = $ac_func;
12680 #endif
12681 #ifdef __cplusplus
12682 }
12683 #endif
12684
12685 int
12686 main ()
12687 {
12688 return f != $ac_func;
12689   ;
12690   return 0;
12691 }
12692 _ACEOF
12693 rm -f conftest.$ac_objext conftest$ac_exeext
12694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12695   (eval $ac_link) 2>&5
12696   ac_status=$?
12697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698   (exit $ac_status); } &&
12699          { ac_try='test -s conftest$ac_exeext'
12700   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12701   (eval $ac_try) 2>&5
12702   ac_status=$?
12703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704   (exit $ac_status); }; }; then
12705   eval "$as_ac_var=yes"
12706 else
12707   echo "$as_me: failed program was:" >&5
12708 sed 's/^/| /' conftest.$ac_ext >&5
12709
12710 eval "$as_ac_var=no"
12711 fi
12712 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12713 fi
12714 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12715 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12716 if test `eval echo '${'$as_ac_var'}'` = yes; then
12717   cat >>confdefs.h <<_ACEOF
12718 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12719 _ACEOF
12720
12721 fi
12722 done
12723
12724
12725
12726
12727
12728 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
12729 if test "${with_libiconv_prefix+set}" = set; then
12730   withval="$with_libiconv_prefix"
12731
12732     for dir in `echo "$withval" | tr : ' '`; do
12733       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
12734       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
12735     done
12736
12737 fi;
12738
12739   echo "$as_me:$LINENO: checking for iconv" >&5
12740 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
12741 if test "${am_cv_func_iconv+set}" = set; then
12742   echo $ECHO_N "(cached) $ECHO_C" >&6
12743 else
12744
12745     am_cv_func_iconv="no, consider installing GNU libiconv"
12746     am_cv_lib_iconv=no
12747     cat >conftest.$ac_ext <<_ACEOF
12748 #line $LINENO "configure"
12749 /* confdefs.h.  */
12750 _ACEOF
12751 cat confdefs.h >>conftest.$ac_ext
12752 cat >>conftest.$ac_ext <<_ACEOF
12753 /* end confdefs.h.  */
12754 #include <stdlib.h>
12755 #include <iconv.h>
12756 int
12757 main ()
12758 {
12759 iconv_t cd = iconv_open("","");
12760        iconv(cd,NULL,NULL,NULL,NULL);
12761        iconv_close(cd);
12762   ;
12763   return 0;
12764 }
12765 _ACEOF
12766 rm -f conftest.$ac_objext conftest$ac_exeext
12767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12768   (eval $ac_link) 2>&5
12769   ac_status=$?
12770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771   (exit $ac_status); } &&
12772          { ac_try='test -s conftest$ac_exeext'
12773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12774   (eval $ac_try) 2>&5
12775   ac_status=$?
12776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12777   (exit $ac_status); }; }; then
12778   am_cv_func_iconv=yes
12779 else
12780   echo "$as_me: failed program was:" >&5
12781 sed 's/^/| /' conftest.$ac_ext >&5
12782
12783 fi
12784 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12785     if test "$am_cv_func_iconv" != yes; then
12786       am_save_LIBS="$LIBS"
12787       LIBS="$LIBS -liconv"
12788       cat >conftest.$ac_ext <<_ACEOF
12789 #line $LINENO "configure"
12790 /* confdefs.h.  */
12791 _ACEOF
12792 cat confdefs.h >>conftest.$ac_ext
12793 cat >>conftest.$ac_ext <<_ACEOF
12794 /* end confdefs.h.  */
12795 #include <stdlib.h>
12796 #include <iconv.h>
12797 int
12798 main ()
12799 {
12800 iconv_t cd = iconv_open("","");
12801          iconv(cd,NULL,NULL,NULL,NULL);
12802          iconv_close(cd);
12803   ;
12804   return 0;
12805 }
12806 _ACEOF
12807 rm -f conftest.$ac_objext conftest$ac_exeext
12808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12809   (eval $ac_link) 2>&5
12810   ac_status=$?
12811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812   (exit $ac_status); } &&
12813          { ac_try='test -s conftest$ac_exeext'
12814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12815   (eval $ac_try) 2>&5
12816   ac_status=$?
12817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818   (exit $ac_status); }; }; then
12819   am_cv_lib_iconv=yes
12820         am_cv_func_iconv=yes
12821 else
12822   echo "$as_me: failed program was:" >&5
12823 sed 's/^/| /' conftest.$ac_ext >&5
12824
12825 fi
12826 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12827       LIBS="$am_save_LIBS"
12828     fi
12829
12830 fi
12831 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12832 echo "${ECHO_T}$am_cv_func_iconv" >&6
12833   if test "$am_cv_func_iconv" = yes; then
12834
12835 cat >>confdefs.h <<\_ACEOF
12836 #define HAVE_ICONV 1
12837 _ACEOF
12838
12839     echo "$as_me:$LINENO: checking for iconv declaration" >&5
12840 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
12841     if test "${am_cv_proto_iconv+set}" = set; then
12842   echo $ECHO_N "(cached) $ECHO_C" >&6
12843 else
12844
12845       cat >conftest.$ac_ext <<_ACEOF
12846 #line $LINENO "configure"
12847 /* confdefs.h.  */
12848 _ACEOF
12849 cat confdefs.h >>conftest.$ac_ext
12850 cat >>conftest.$ac_ext <<_ACEOF
12851 /* end confdefs.h.  */
12852
12853 #include <stdlib.h>
12854 #include <iconv.h>
12855 extern
12856 #ifdef __cplusplus
12857 "C"
12858 #endif
12859 #if defined(__STDC__) || defined(__cplusplus)
12860 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12861 #else
12862 size_t iconv();
12863 #endif
12864
12865 int
12866 main ()
12867 {
12868
12869   ;
12870   return 0;
12871 }
12872 _ACEOF
12873 rm -f conftest.$ac_objext
12874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12875   (eval $ac_compile) 2>&5
12876   ac_status=$?
12877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878   (exit $ac_status); } &&
12879          { ac_try='test -s conftest.$ac_objext'
12880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12881   (eval $ac_try) 2>&5
12882   ac_status=$?
12883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884   (exit $ac_status); }; }; then
12885   am_cv_proto_iconv_arg1=""
12886 else
12887   echo "$as_me: failed program was:" >&5
12888 sed 's/^/| /' conftest.$ac_ext >&5
12889
12890 am_cv_proto_iconv_arg1="const"
12891 fi
12892 rm -f conftest.$ac_objext conftest.$ac_ext
12893       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);"
12894 fi
12895
12896     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12897     echo "$as_me:$LINENO: result: ${ac_t:-
12898          }$am_cv_proto_iconv" >&5
12899 echo "${ECHO_T}${ac_t:-
12900          }$am_cv_proto_iconv" >&6
12901
12902 cat >>confdefs.h <<_ACEOF
12903 #define ICONV_CONST $am_cv_proto_iconv_arg1
12904 _ACEOF
12905
12906   fi
12907   LIBICONV=
12908   if test "$am_cv_lib_iconv" = yes; then
12909     LIBICONV="-liconv"
12910   fi
12911
12912
12913
12914   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12915 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
12916 if test "${am_cv_langinfo_codeset+set}" = set; then
12917   echo $ECHO_N "(cached) $ECHO_C" >&6
12918 else
12919   cat >conftest.$ac_ext <<_ACEOF
12920 #line $LINENO "configure"
12921 /* confdefs.h.  */
12922 _ACEOF
12923 cat confdefs.h >>conftest.$ac_ext
12924 cat >>conftest.$ac_ext <<_ACEOF
12925 /* end confdefs.h.  */
12926 #include <langinfo.h>
12927 int
12928 main ()
12929 {
12930 char* cs = nl_langinfo(CODESET);
12931   ;
12932   return 0;
12933 }
12934 _ACEOF
12935 rm -f conftest.$ac_objext conftest$ac_exeext
12936 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12937   (eval $ac_link) 2>&5
12938   ac_status=$?
12939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940   (exit $ac_status); } &&
12941          { ac_try='test -s conftest$ac_exeext'
12942   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12943   (eval $ac_try) 2>&5
12944   ac_status=$?
12945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946   (exit $ac_status); }; }; then
12947   am_cv_langinfo_codeset=yes
12948 else
12949   echo "$as_me: failed program was:" >&5
12950 sed 's/^/| /' conftest.$ac_ext >&5
12951
12952 am_cv_langinfo_codeset=no
12953 fi
12954 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12955
12956 fi
12957 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12958 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
12959   if test $am_cv_langinfo_codeset = yes; then
12960
12961 cat >>confdefs.h <<\_ACEOF
12962 #define HAVE_LANGINFO_CODESET 1
12963 _ACEOF
12964
12965   fi
12966
12967    if test $ac_cv_header_locale_h = yes; then
12968     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12969 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
12970 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
12971   echo $ECHO_N "(cached) $ECHO_C" >&6
12972 else
12973   cat >conftest.$ac_ext <<_ACEOF
12974 #line $LINENO "configure"
12975 /* confdefs.h.  */
12976 _ACEOF
12977 cat confdefs.h >>conftest.$ac_ext
12978 cat >>conftest.$ac_ext <<_ACEOF
12979 /* end confdefs.h.  */
12980 #include <locale.h>
12981 int
12982 main ()
12983 {
12984 return LC_MESSAGES
12985   ;
12986   return 0;
12987 }
12988 _ACEOF
12989 rm -f conftest.$ac_objext conftest$ac_exeext
12990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12991   (eval $ac_link) 2>&5
12992   ac_status=$?
12993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12994   (exit $ac_status); } &&
12995          { ac_try='test -s conftest$ac_exeext'
12996   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12997   (eval $ac_try) 2>&5
12998   ac_status=$?
12999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13000   (exit $ac_status); }; }; then
13001   am_cv_val_LC_MESSAGES=yes
13002 else
13003   echo "$as_me: failed program was:" >&5
13004 sed 's/^/| /' conftest.$ac_ext >&5
13005
13006 am_cv_val_LC_MESSAGES=no
13007 fi
13008 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13009 fi
13010 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
13011 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
13012     if test $am_cv_val_LC_MESSAGES = yes; then
13013
13014 cat >>confdefs.h <<\_ACEOF
13015 #define HAVE_LC_MESSAGES 1
13016 _ACEOF
13017
13018     fi
13019   fi
13020    echo "$as_me:$LINENO: checking whether NLS is requested" >&5
13021 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
13022         # Check whether --enable-nls or --disable-nls was given.
13023 if test "${enable_nls+set}" = set; then
13024   enableval="$enable_nls"
13025   USE_NLS=$enableval
13026 else
13027   USE_NLS=yes
13028 fi;
13029     echo "$as_me:$LINENO: result: $USE_NLS" >&5
13030 echo "${ECHO_T}$USE_NLS" >&6
13031
13032
13033     BUILD_INCLUDED_LIBINTL=no
13034     USE_INCLUDED_LIBINTL=no
13035     INTLLIBS=
13036
13037         if test "$USE_NLS" = "yes"; then
13038
13039 cat >>confdefs.h <<\_ACEOF
13040 #define ENABLE_NLS 1
13041 _ACEOF
13042
13043       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
13044 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
13045
13046 # Check whether --with-included-gettext or --without-included-gettext was given.
13047 if test "${with_included_gettext+set}" = set; then
13048   withval="$with_included_gettext"
13049   nls_cv_force_use_gnu_gettext=$withval
13050 else
13051   nls_cv_force_use_gnu_gettext=no
13052 fi;
13053       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
13054 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
13055
13056       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
13057       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
13058                                 CATOBJEXT=NONE
13059
13060
13061
13062
13063         if test "${ac_cv_header_libintl_h+set}" = set; then
13064   echo "$as_me:$LINENO: checking for libintl.h" >&5
13065 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
13066 if test "${ac_cv_header_libintl_h+set}" = set; then
13067   echo $ECHO_N "(cached) $ECHO_C" >&6
13068 fi
13069 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
13070 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
13071 else
13072   # Is the header compilable?
13073 echo "$as_me:$LINENO: checking libintl.h usability" >&5
13074 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
13075 cat >conftest.$ac_ext <<_ACEOF
13076 #line $LINENO "configure"
13077 /* confdefs.h.  */
13078 _ACEOF
13079 cat confdefs.h >>conftest.$ac_ext
13080 cat >>conftest.$ac_ext <<_ACEOF
13081 /* end confdefs.h.  */
13082 $ac_includes_default
13083 #include <libintl.h>
13084 _ACEOF
13085 rm -f conftest.$ac_objext
13086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13087   (eval $ac_compile) 2>&5
13088   ac_status=$?
13089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13090   (exit $ac_status); } &&
13091          { ac_try='test -s conftest.$ac_objext'
13092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13093   (eval $ac_try) 2>&5
13094   ac_status=$?
13095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096   (exit $ac_status); }; }; then
13097   ac_header_compiler=yes
13098 else
13099   echo "$as_me: failed program was:" >&5
13100 sed 's/^/| /' conftest.$ac_ext >&5
13101
13102 ac_header_compiler=no
13103 fi
13104 rm -f conftest.$ac_objext conftest.$ac_ext
13105 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13106 echo "${ECHO_T}$ac_header_compiler" >&6
13107
13108 # Is the header present?
13109 echo "$as_me:$LINENO: checking libintl.h presence" >&5
13110 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
13111 cat >conftest.$ac_ext <<_ACEOF
13112 #line $LINENO "configure"
13113 /* confdefs.h.  */
13114 _ACEOF
13115 cat confdefs.h >>conftest.$ac_ext
13116 cat >>conftest.$ac_ext <<_ACEOF
13117 /* end confdefs.h.  */
13118 #include <libintl.h>
13119 _ACEOF
13120 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13121   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13122   ac_status=$?
13123   grep -v '^ *+' conftest.er1 >conftest.err
13124   rm -f conftest.er1
13125   cat conftest.err >&5
13126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127   (exit $ac_status); } >/dev/null; then
13128   if test -s conftest.err; then
13129     ac_cpp_err=$ac_c_preproc_warn_flag
13130   else
13131     ac_cpp_err=
13132   fi
13133 else
13134   ac_cpp_err=yes
13135 fi
13136 if test -z "$ac_cpp_err"; then
13137   ac_header_preproc=yes
13138 else
13139   echo "$as_me: failed program was:" >&5
13140 sed 's/^/| /' conftest.$ac_ext >&5
13141
13142   ac_header_preproc=no
13143 fi
13144 rm -f conftest.err conftest.$ac_ext
13145 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13146 echo "${ECHO_T}$ac_header_preproc" >&6
13147
13148 # So?  What about this header?
13149 case $ac_header_compiler:$ac_header_preproc in
13150   yes:no )
13151     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
13152 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13153     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
13154 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
13155     (
13156       cat <<\_ASBOX
13157 ## ------------------------------------ ##
13158 ## Report this to bug-autoconf@gnu.org. ##
13159 ## ------------------------------------ ##
13160 _ASBOX
13161     ) |
13162       sed "s/^/$as_me: WARNING:     /" >&2
13163     ;;
13164   no:yes )
13165     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
13166 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
13167     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
13168 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
13169     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
13170 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
13171     (
13172       cat <<\_ASBOX
13173 ## ------------------------------------ ##
13174 ## Report this to bug-autoconf@gnu.org. ##
13175 ## ------------------------------------ ##
13176 _ASBOX
13177     ) |
13178       sed "s/^/$as_me: WARNING:     /" >&2
13179     ;;
13180 esac
13181 echo "$as_me:$LINENO: checking for libintl.h" >&5
13182 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
13183 if test "${ac_cv_header_libintl_h+set}" = set; then
13184   echo $ECHO_N "(cached) $ECHO_C" >&6
13185 else
13186   ac_cv_header_libintl_h=$ac_header_preproc
13187 fi
13188 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
13189 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
13190
13191 fi
13192 if test $ac_cv_header_libintl_h = yes; then
13193   echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
13194 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
13195 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
13196   echo $ECHO_N "(cached) $ECHO_C" >&6
13197 else
13198   cat >conftest.$ac_ext <<_ACEOF
13199 #line $LINENO "configure"
13200 /* confdefs.h.  */
13201 _ACEOF
13202 cat confdefs.h >>conftest.$ac_ext
13203 cat >>conftest.$ac_ext <<_ACEOF
13204 /* end confdefs.h.  */
13205 #include <libintl.h>
13206 extern int _nl_msg_cat_cntr;
13207 int
13208 main ()
13209 {
13210 bindtextdomain ("", "");
13211 return (int) gettext ("") + _nl_msg_cat_cntr
13212   ;
13213   return 0;
13214 }
13215 _ACEOF
13216 rm -f conftest.$ac_objext conftest$ac_exeext
13217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13218   (eval $ac_link) 2>&5
13219   ac_status=$?
13220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13221   (exit $ac_status); } &&
13222          { ac_try='test -s conftest$ac_exeext'
13223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13224   (eval $ac_try) 2>&5
13225   ac_status=$?
13226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227   (exit $ac_status); }; }; then
13228   gt_cv_func_gnugettext1_libc=yes
13229 else
13230   echo "$as_me: failed program was:" >&5
13231 sed 's/^/| /' conftest.$ac_ext >&5
13232
13233 gt_cv_func_gnugettext1_libc=no
13234 fi
13235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13236 fi
13237 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
13238 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
13239
13240            if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
13241              echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13242 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
13243 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13244   echo $ECHO_N "(cached) $ECHO_C" >&6
13245 else
13246   gt_save_LIBS="$LIBS"
13247                 LIBS="$LIBS -lintl $LIBICONV"
13248                 cat >conftest.$ac_ext <<_ACEOF
13249 #line $LINENO "configure"
13250 /* confdefs.h.  */
13251 _ACEOF
13252 cat confdefs.h >>conftest.$ac_ext
13253 cat >>conftest.$ac_ext <<_ACEOF
13254 /* end confdefs.h.  */
13255 #include <libintl.h>
13256 extern int _nl_msg_cat_cntr;
13257 int
13258 main ()
13259 {
13260 bindtextdomain ("", "");
13261 return (int) gettext ("") + _nl_msg_cat_cntr
13262   ;
13263   return 0;
13264 }
13265 _ACEOF
13266 rm -f conftest.$ac_objext conftest$ac_exeext
13267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13268   (eval $ac_link) 2>&5
13269   ac_status=$?
13270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271   (exit $ac_status); } &&
13272          { ac_try='test -s conftest$ac_exeext'
13273   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13274   (eval $ac_try) 2>&5
13275   ac_status=$?
13276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277   (exit $ac_status); }; }; then
13278   gt_cv_func_gnugettext1_libintl=yes
13279 else
13280   echo "$as_me: failed program was:" >&5
13281 sed 's/^/| /' conftest.$ac_ext >&5
13282
13283 gt_cv_func_gnugettext1_libintl=no
13284 fi
13285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13286                 LIBS="$gt_save_LIBS"
13287 fi
13288 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13289 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
13290            fi
13291
13292                                            if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13293               || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13294                    && test "$PACKAGE" != gettext; }; then
13295
13296 cat >>confdefs.h <<\_ACEOF
13297 #define HAVE_GETTEXT 1
13298 _ACEOF
13299
13300
13301              if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13302                                        INTLLIBS="-lintl $LIBICONV"
13303              fi
13304
13305              gt_save_LIBS="$LIBS"
13306              LIBS="$LIBS $INTLLIBS"
13307
13308 for ac_func in dcgettext
13309 do
13310 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13311 echo "$as_me:$LINENO: checking for $ac_func" >&5
13312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13313 if eval "test \"\${$as_ac_var+set}\" = set"; then
13314   echo $ECHO_N "(cached) $ECHO_C" >&6
13315 else
13316   cat >conftest.$ac_ext <<_ACEOF
13317 #line $LINENO "configure"
13318 /* confdefs.h.  */
13319 _ACEOF
13320 cat confdefs.h >>conftest.$ac_ext
13321 cat >>conftest.$ac_ext <<_ACEOF
13322 /* end confdefs.h.  */
13323 /* System header to define __stub macros and hopefully few prototypes,
13324     which can conflict with char $ac_func (); below.
13325     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13326     <limits.h> exists even on freestanding compilers.  */
13327 #ifdef __STDC__
13328 # include <limits.h>
13329 #else
13330 # include <assert.h>
13331 #endif
13332 /* Override any gcc2 internal prototype to avoid an error.  */
13333 #ifdef __cplusplus
13334 extern "C"
13335 {
13336 #endif
13337 /* We use char because int might match the return type of a gcc2
13338    builtin and then its argument prototype would still apply.  */
13339 char $ac_func ();
13340 /* The GNU C library defines this for functions which it implements
13341     to always fail with ENOSYS.  Some functions are actually named
13342     something starting with __ and the normal name is an alias.  */
13343 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13344 choke me
13345 #else
13346 char (*f) () = $ac_func;
13347 #endif
13348 #ifdef __cplusplus
13349 }
13350 #endif
13351
13352 int
13353 main ()
13354 {
13355 return f != $ac_func;
13356   ;
13357   return 0;
13358 }
13359 _ACEOF
13360 rm -f conftest.$ac_objext conftest$ac_exeext
13361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13362   (eval $ac_link) 2>&5
13363   ac_status=$?
13364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365   (exit $ac_status); } &&
13366          { ac_try='test -s conftest$ac_exeext'
13367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13368   (eval $ac_try) 2>&5
13369   ac_status=$?
13370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371   (exit $ac_status); }; }; then
13372   eval "$as_ac_var=yes"
13373 else
13374   echo "$as_me: failed program was:" >&5
13375 sed 's/^/| /' conftest.$ac_ext >&5
13376
13377 eval "$as_ac_var=no"
13378 fi
13379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13380 fi
13381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13382 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13383 if test `eval echo '${'$as_ac_var'}'` = yes; then
13384   cat >>confdefs.h <<_ACEOF
13385 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13386 _ACEOF
13387
13388 fi
13389 done
13390
13391              LIBS="$gt_save_LIBS"
13392
13393                      # Extract the first word of "msgfmt", so it can be a program name with args.
13394 set dummy msgfmt; ac_word=$2
13395 echo "$as_me:$LINENO: checking for $ac_word" >&5
13396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13397 if test "${ac_cv_path_MSGFMT+set}" = set; then
13398   echo $ECHO_N "(cached) $ECHO_C" >&6
13399 else
13400   case "$MSGFMT" in
13401   /*)
13402   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13403   ;;
13404   *)
13405   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13406   for ac_dir in $PATH; do
13407     test -z "$ac_dir" && ac_dir=.
13408     if test -f $ac_dir/$ac_word; then
13409       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
13410         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
13411         break
13412       fi
13413     fi
13414   done
13415   IFS="$ac_save_ifs"
13416   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13417   ;;
13418 esac
13419 fi
13420 MSGFMT="$ac_cv_path_MSGFMT"
13421 if test "$MSGFMT" != ":"; then
13422   echo "$as_me:$LINENO: result: $MSGFMT" >&5
13423 echo "${ECHO_T}$MSGFMT" >&6
13424 else
13425   echo "$as_me:$LINENO: result: no" >&5
13426 echo "${ECHO_T}no" >&6
13427 fi
13428
13429              # Extract the first word of "gmsgfmt", so it can be a program name with args.
13430 set dummy gmsgfmt; ac_word=$2
13431 echo "$as_me:$LINENO: checking for $ac_word" >&5
13432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13433 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13434   echo $ECHO_N "(cached) $ECHO_C" >&6
13435 else
13436   case $GMSGFMT in
13437   [\\/]* | ?:[\\/]*)
13438   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13439   ;;
13440   *)
13441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13442 for as_dir in $PATH
13443 do
13444   IFS=$as_save_IFS
13445   test -z "$as_dir" && as_dir=.
13446   for ac_exec_ext in '' $ac_executable_extensions; do
13447   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13448     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13450     break 2
13451   fi
13452 done
13453 done
13454
13455   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13456   ;;
13457 esac
13458 fi
13459 GMSGFMT=$ac_cv_path_GMSGFMT
13460
13461 if test -n "$GMSGFMT"; then
13462   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
13463 echo "${ECHO_T}$GMSGFMT" >&6
13464 else
13465   echo "$as_me:$LINENO: result: no" >&5
13466 echo "${ECHO_T}no" >&6
13467 fi
13468
13469
13470                      # Extract the first word of "xgettext", so it can be a program name with args.
13471 set dummy xgettext; ac_word=$2
13472 echo "$as_me:$LINENO: checking for $ac_word" >&5
13473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13474 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13475   echo $ECHO_N "(cached) $ECHO_C" >&6
13476 else
13477   case "$XGETTEXT" in
13478   /*)
13479   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13480   ;;
13481   *)
13482   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13483   for ac_dir in $PATH; do
13484     test -z "$ac_dir" && ac_dir=.
13485     if test -f $ac_dir/$ac_word; then
13486       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
13487         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
13488         break
13489       fi
13490     fi
13491   done
13492   IFS="$ac_save_ifs"
13493   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13494   ;;
13495 esac
13496 fi
13497 XGETTEXT="$ac_cv_path_XGETTEXT"
13498 if test "$XGETTEXT" != ":"; then
13499   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
13500 echo "${ECHO_T}$XGETTEXT" >&6
13501 else
13502   echo "$as_me:$LINENO: result: no" >&5
13503 echo "${ECHO_T}no" >&6
13504 fi
13505
13506
13507              CATOBJEXT=.gmo
13508            fi
13509
13510 fi
13511
13512
13513
13514         if test "$CATOBJEXT" = "NONE"; then
13515                           nls_cv_use_gnu_gettext=yes
13516         fi
13517       fi
13518
13519       if test "$nls_cv_use_gnu_gettext" = "yes"; then
13520                 INTLOBJS="\$(GETTOBJS)"
13521         # Extract the first word of "msgfmt", so it can be a program name with args.
13522 set dummy msgfmt; ac_word=$2
13523 echo "$as_me:$LINENO: checking for $ac_word" >&5
13524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13525 if test "${ac_cv_path_MSGFMT+set}" = set; then
13526   echo $ECHO_N "(cached) $ECHO_C" >&6
13527 else
13528   case "$MSGFMT" in
13529   /*)
13530   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13531   ;;
13532   *)
13533   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13534   for ac_dir in $PATH; do
13535     test -z "$ac_dir" && ac_dir=.
13536     if test -f $ac_dir/$ac_word; then
13537       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
13538         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
13539         break
13540       fi
13541     fi
13542   done
13543   IFS="$ac_save_ifs"
13544   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13545   ;;
13546 esac
13547 fi
13548 MSGFMT="$ac_cv_path_MSGFMT"
13549 if test "$MSGFMT" != ":"; then
13550   echo "$as_me:$LINENO: result: $MSGFMT" >&5
13551 echo "${ECHO_T}$MSGFMT" >&6
13552 else
13553   echo "$as_me:$LINENO: result: no" >&5
13554 echo "${ECHO_T}no" >&6
13555 fi
13556
13557         # Extract the first word of "gmsgfmt", so it can be a program name with args.
13558 set dummy gmsgfmt; ac_word=$2
13559 echo "$as_me:$LINENO: checking for $ac_word" >&5
13560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13561 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13562   echo $ECHO_N "(cached) $ECHO_C" >&6
13563 else
13564   case $GMSGFMT in
13565   [\\/]* | ?:[\\/]*)
13566   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13567   ;;
13568   *)
13569   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13570 for as_dir in $PATH
13571 do
13572   IFS=$as_save_IFS
13573   test -z "$as_dir" && as_dir=.
13574   for ac_exec_ext in '' $ac_executable_extensions; do
13575   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13576     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13577     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13578     break 2
13579   fi
13580 done
13581 done
13582
13583   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13584   ;;
13585 esac
13586 fi
13587 GMSGFMT=$ac_cv_path_GMSGFMT
13588
13589 if test -n "$GMSGFMT"; then
13590   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
13591 echo "${ECHO_T}$GMSGFMT" >&6
13592 else
13593   echo "$as_me:$LINENO: result: no" >&5
13594 echo "${ECHO_T}no" >&6
13595 fi
13596
13597         # Extract the first word of "xgettext", so it can be a program name with args.
13598 set dummy xgettext; ac_word=$2
13599 echo "$as_me:$LINENO: checking for $ac_word" >&5
13600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13601 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13602   echo $ECHO_N "(cached) $ECHO_C" >&6
13603 else
13604   case "$XGETTEXT" in
13605   /*)
13606   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13607   ;;
13608   *)
13609   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13610   for ac_dir in $PATH; do
13611     test -z "$ac_dir" && ac_dir=.
13612     if test -f $ac_dir/$ac_word; then
13613       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
13614         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
13615         break
13616       fi
13617     fi
13618   done
13619   IFS="$ac_save_ifs"
13620   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13621   ;;
13622 esac
13623 fi
13624 XGETTEXT="$ac_cv_path_XGETTEXT"
13625 if test "$XGETTEXT" != ":"; then
13626   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
13627 echo "${ECHO_T}$XGETTEXT" >&6
13628 else
13629   echo "$as_me:$LINENO: result: no" >&5
13630 echo "${ECHO_T}no" >&6
13631 fi
13632
13633
13634         BUILD_INCLUDED_LIBINTL=yes
13635         USE_INCLUDED_LIBINTL=yes
13636         CATOBJEXT=.gmo
13637         INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
13638         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13639       fi
13640
13641                   if test "$GMSGFMT" != ":"; then
13642                         if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
13643           : ;
13644         else
13645           echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
13646 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
13647           GMSGFMT=":"
13648         fi
13649       fi
13650
13651                   if test "$XGETTEXT" != ":"; then
13652                         if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
13653           : ;
13654         else
13655           echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
13656 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
13657           XGETTEXT=":"
13658         fi
13659       fi
13660
13661             POSUB=po
13662     fi
13663               ac_config_commands="$ac_config_commands default-1"
13664
13665
13666
13667             if test "$PACKAGE" = gettext; then
13668       BUILD_INCLUDED_LIBINTL=yes
13669     fi
13670
13671                                             for ac_prog in bison
13672 do
13673   # Extract the first word of "$ac_prog", so it can be a program name with args.
13674 set dummy $ac_prog; ac_word=$2
13675 echo "$as_me:$LINENO: checking for $ac_word" >&5
13676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13677 if test "${ac_cv_prog_INTLBISON+set}" = set; then
13678   echo $ECHO_N "(cached) $ECHO_C" >&6
13679 else
13680   if test -n "$INTLBISON"; then
13681   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13682 else
13683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13684 for as_dir in $PATH
13685 do
13686   IFS=$as_save_IFS
13687   test -z "$as_dir" && as_dir=.
13688   for ac_exec_ext in '' $ac_executable_extensions; do
13689   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13690     ac_cv_prog_INTLBISON="$ac_prog"
13691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13692     break 2
13693   fi
13694 done
13695 done
13696
13697 fi
13698 fi
13699 INTLBISON=$ac_cv_prog_INTLBISON
13700 if test -n "$INTLBISON"; then
13701   echo "$as_me:$LINENO: result: $INTLBISON" >&5
13702 echo "${ECHO_T}$INTLBISON" >&6
13703 else
13704   echo "$as_me:$LINENO: result: no" >&5
13705 echo "${ECHO_T}no" >&6
13706 fi
13707
13708   test -n "$INTLBISON" && break
13709 done
13710
13711     if test -z "$INTLBISON"; then
13712       ac_verc_fail=yes
13713     else
13714             echo "$as_me:$LINENO: checking version of bison" >&5
13715 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
13716       ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13717       case $ac_prog_version in
13718         '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13719         1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13720            ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13721         *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13722       esac
13723       echo "$as_me:$LINENO: result: $ac_prog_version" >&5
13724 echo "${ECHO_T}$ac_prog_version" >&6
13725     fi
13726     if test $ac_verc_fail = yes; then
13727       INTLBISON=:
13728     fi
13729
13730                 for lang in $ALL_LINGUAS; do
13731       GMOFILES="$GMOFILES $lang.gmo"
13732       POFILES="$POFILES $lang.po"
13733     done
13734
13735
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745         nls_cv_header_intl=
13746     nls_cv_header_libgt=
13747
13748         DATADIRNAME=share
13749
13750
13751         INSTOBJEXT=.mo
13752
13753
13754         GENCAT=gencat
13755
13756
13757
13758    if test "x$CATOBJEXT" != "x"; then
13759      if test "x$ALL_LINGUAS" = "x"; then
13760        LINGUAS=
13761      else
13762        echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13763 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
13764        NEW_LINGUAS=
13765        for presentlang in $ALL_LINGUAS; do
13766          useit=no
13767          for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
13768            # Use the presentlang catalog if desiredlang is
13769            #   a. equal to presentlang, or
13770            #   b. a variant of presentlang (because in this case,
13771            #      presentlang can be used as a fallback for messages
13772            #      which are not translated in the desiredlang catalog).
13773            case "$desiredlang" in
13774              "$presentlang"*) useit=yes;;
13775            esac
13776          done
13777          if test $useit = yes; then
13778            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
13779          fi
13780        done
13781        LINGUAS=$NEW_LINGUAS
13782        echo "$as_me:$LINENO: result: $LINGUAS" >&5
13783 echo "${ECHO_T}$LINGUAS" >&6
13784      fi
13785
13786           if test -n "$LINGUAS"; then
13787        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
13788      fi
13789    fi
13790
13791             MKINSTALLDIRS=
13792    if test -n "$ac_aux_dir"; then
13793      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
13794    fi
13795    if test -z "$MKINSTALLDIRS"; then
13796      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13797    fi
13798
13799
13800       INTL_LIBTOOL_SUFFIX_PREFIX=
13801
13802
13803
13804 if test "$am_cv_func_iconv" != "yes"
13805 then
13806   { echo "$as_me:$LINENO: WARNING: Configuring without iconv support. See INSTALL for details" >&5
13807 echo "$as_me: WARNING: Configuring without iconv support. See INSTALL for details" >&2;}
13808 else
13809
13810
13811 for ac_header in iconv.h
13812 do
13813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13815   echo "$as_me:$LINENO: checking for $ac_header" >&5
13816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13818   echo $ECHO_N "(cached) $ECHO_C" >&6
13819 fi
13820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13822 else
13823   # Is the header compilable?
13824 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13826 cat >conftest.$ac_ext <<_ACEOF
13827 #line $LINENO "configure"
13828 /* confdefs.h.  */
13829 _ACEOF
13830 cat confdefs.h >>conftest.$ac_ext
13831 cat >>conftest.$ac_ext <<_ACEOF
13832 /* end confdefs.h.  */
13833 $ac_includes_default
13834 #include <$ac_header>
13835 _ACEOF
13836 rm -f conftest.$ac_objext
13837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13838   (eval $ac_compile) 2>&5
13839   ac_status=$?
13840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841   (exit $ac_status); } &&
13842          { ac_try='test -s conftest.$ac_objext'
13843   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13844   (eval $ac_try) 2>&5
13845   ac_status=$?
13846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847   (exit $ac_status); }; }; then
13848   ac_header_compiler=yes
13849 else
13850   echo "$as_me: failed program was:" >&5
13851 sed 's/^/| /' conftest.$ac_ext >&5
13852
13853 ac_header_compiler=no
13854 fi
13855 rm -f conftest.$ac_objext conftest.$ac_ext
13856 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13857 echo "${ECHO_T}$ac_header_compiler" >&6
13858
13859 # Is the header present?
13860 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13862 cat >conftest.$ac_ext <<_ACEOF
13863 #line $LINENO "configure"
13864 /* confdefs.h.  */
13865 _ACEOF
13866 cat confdefs.h >>conftest.$ac_ext
13867 cat >>conftest.$ac_ext <<_ACEOF
13868 /* end confdefs.h.  */
13869 #include <$ac_header>
13870 _ACEOF
13871 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13872   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13873   ac_status=$?
13874   grep -v '^ *+' conftest.er1 >conftest.err
13875   rm -f conftest.er1
13876   cat conftest.err >&5
13877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878   (exit $ac_status); } >/dev/null; then
13879   if test -s conftest.err; then
13880     ac_cpp_err=$ac_c_preproc_warn_flag
13881   else
13882     ac_cpp_err=
13883   fi
13884 else
13885   ac_cpp_err=yes
13886 fi
13887 if test -z "$ac_cpp_err"; then
13888   ac_header_preproc=yes
13889 else
13890   echo "$as_me: failed program was:" >&5
13891 sed 's/^/| /' conftest.$ac_ext >&5
13892
13893   ac_header_preproc=no
13894 fi
13895 rm -f conftest.err conftest.$ac_ext
13896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13897 echo "${ECHO_T}$ac_header_preproc" >&6
13898
13899 # So?  What about this header?
13900 case $ac_header_compiler:$ac_header_preproc in
13901   yes:no )
13902     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13903 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13904     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13906     (
13907       cat <<\_ASBOX
13908 ## ------------------------------------ ##
13909 ## Report this to bug-autoconf@gnu.org. ##
13910 ## ------------------------------------ ##
13911 _ASBOX
13912     ) |
13913       sed "s/^/$as_me: WARNING:     /" >&2
13914     ;;
13915   no:yes )
13916     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13918     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13919 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13920     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13922     (
13923       cat <<\_ASBOX
13924 ## ------------------------------------ ##
13925 ## Report this to bug-autoconf@gnu.org. ##
13926 ## ------------------------------------ ##
13927 _ASBOX
13928     ) |
13929       sed "s/^/$as_me: WARNING:     /" >&2
13930     ;;
13931 esac
13932 echo "$as_me:$LINENO: checking for $ac_header" >&5
13933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13934 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13935   echo $ECHO_N "(cached) $ECHO_C" >&6
13936 else
13937   eval "$as_ac_Header=$ac_header_preproc"
13938 fi
13939 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13940 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13941
13942 fi
13943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13944   cat >>confdefs.h <<_ACEOF
13945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13946 _ACEOF
13947  echo "$as_me:$LINENO: checking whether iconv.h defines iconv_t" >&5
13948 echo $ECHO_N "checking whether iconv.h defines iconv_t... $ECHO_C" >&6
13949          cat >conftest.$ac_ext <<_ACEOF
13950 #line $LINENO "configure"
13951 /* confdefs.h.  */
13952 _ACEOF
13953 cat confdefs.h >>conftest.$ac_ext
13954 cat >>conftest.$ac_ext <<_ACEOF
13955 /* end confdefs.h.  */
13956 #include <iconv.h>
13957
13958 _ACEOF
13959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13960   $EGREP "typedef.*iconv_t" >/dev/null 2>&1; then
13961   echo "$as_me:$LINENO: result: yes" >&5
13962 echo "${ECHO_T}yes" >&6
13963
13964 cat >>confdefs.h <<\_ACEOF
13965 #define HAVE_ICONV_T_DEF 1
13966 _ACEOF
13967
13968 else
13969   echo "$as_me:$LINENO: result: no" >&5
13970 echo "${ECHO_T}no" >&6
13971 fi
13972 rm -f conftest*
13973
13974 fi
13975
13976 done
13977
13978
13979 echo "$as_me:$LINENO: checking whether this iconv is good enough" >&5
13980 echo $ECHO_N "checking whether this iconv is good enough... $ECHO_C" >&6
13981 if test "${mutt_cv_iconv_good+set}" = set; then
13982   echo $ECHO_N "(cached) $ECHO_C" >&6
13983 else
13984   mutt_save_LIBS="$LIBS"
13985         LIBS="$LIBS $LIBICONV"
13986         if test "$cross_compiling" = yes; then
13987   mutt_cv_iconv_good=yes
13988 else
13989   cat >conftest.$ac_ext <<_ACEOF
13990 #line $LINENO "configure"
13991 /* confdefs.h.  */
13992 _ACEOF
13993 cat confdefs.h >>conftest.$ac_ext
13994 cat >>conftest.$ac_ext <<_ACEOF
13995 /* end confdefs.h.  */
13996
13997 #include <iconv.h>
13998 int main()
13999 {
14000   iconv_t cd;
14001   char buf[4];
14002   char *ob;
14003   size_t obl;
14004   ob = buf, obl = sizeof(buf);
14005   return ((cd = iconv_open("UTF-8", "UTF-8")) != (iconv_t)(-1) &&
14006           (iconv(cd, 0, 0, &ob, &obl) ||
14007            !(ob == buf && obl == sizeof(buf)) ||
14008            iconv_close(cd)));
14009 }
14010
14011 _ACEOF
14012 rm -f conftest$ac_exeext
14013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14014   (eval $ac_link) 2>&5
14015   ac_status=$?
14016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14019   (eval $ac_try) 2>&5
14020   ac_status=$?
14021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022   (exit $ac_status); }; }; then
14023   mutt_cv_iconv_good=yes
14024 else
14025   echo "$as_me: program exited with status $ac_status" >&5
14026 echo "$as_me: failed program was:" >&5
14027 sed 's/^/| /' conftest.$ac_ext >&5
14028
14029 ( exit $ac_status )
14030 mutt_cv_iconv_good=no
14031 fi
14032 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14033 fi
14034         LIBS="$mutt_save_LIBS"
14035 fi
14036 echo "$as_me:$LINENO: result: $mutt_cv_iconv_good" >&5
14037 echo "${ECHO_T}$mutt_cv_iconv_good" >&6
14038 if test "$mutt_cv_iconv_good" = no; then
14039   { { echo "$as_me:$LINENO: error: Try using libiconv instead" >&5
14040 echo "$as_me: error: Try using libiconv instead" >&2;}
14041    { (exit 1); exit 1; }; }
14042 fi
14043
14044 echo "$as_me:$LINENO: checking whether iconv is non-transcribing" >&5
14045 echo $ECHO_N "checking whether iconv is non-transcribing... $ECHO_C" >&6
14046 if test "${mutt_cv_iconv_nontrans+set}" = set; then
14047   echo $ECHO_N "(cached) $ECHO_C" >&6
14048 else
14049   mutt_save_LIBS="$LIBS"
14050         LIBS="$LIBS $LIBICONV"
14051         if test "$cross_compiling" = yes; then
14052   mutt_cv_iconv_nontrans=no
14053 else
14054   cat >conftest.$ac_ext <<_ACEOF
14055 #line $LINENO "configure"
14056 /* confdefs.h.  */
14057 _ACEOF
14058 cat confdefs.h >>conftest.$ac_ext
14059 cat >>conftest.$ac_ext <<_ACEOF
14060 /* end confdefs.h.  */
14061
14062 #include <iconv.h>
14063 #include <string.h>
14064 int main()
14065 {
14066   iconv_t cd;
14067   const char *ib;
14068   char *ob;
14069   size_t ibl, obl;
14070   const char *s = "\304\211";
14071   char t[3];
14072   ib = s, ibl = 2, ob = t, obl = 3;
14073   return ((cd = iconv_open("UTF-8", "UTF-8")) == (iconv_t)(-1) ||
14074           iconv(cd, &ib, &ibl, &ob, &obl));
14075 }
14076
14077 _ACEOF
14078 rm -f conftest$ac_exeext
14079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14080   (eval $ac_link) 2>&5
14081   ac_status=$?
14082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14083   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14085   (eval $ac_try) 2>&5
14086   ac_status=$?
14087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088   (exit $ac_status); }; }; then
14089   mutt_cv_iconv_nontrans=no
14090 else
14091   echo "$as_me: program exited with status $ac_status" >&5
14092 echo "$as_me: failed program was:" >&5
14093 sed 's/^/| /' conftest.$ac_ext >&5
14094
14095 ( exit $ac_status )
14096 mutt_cv_iconv_nontrans=yes
14097 fi
14098 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14099 fi
14100         LIBS="$mutt_save_LIBS"
14101 fi
14102 echo "$as_me:$LINENO: result: $mutt_cv_iconv_nontrans" >&5
14103 echo "${ECHO_T}$mutt_cv_iconv_nontrans" >&6
14104 if test "$mutt_cv_iconv_nontrans" = yes; then
14105   cat >>confdefs.h <<\_ACEOF
14106 #define ICONV_NONTRANS 1
14107 _ACEOF
14108
14109 else
14110   cat >>confdefs.h <<\_ACEOF
14111 #define ICONV_NONTRANS 0
14112 _ACEOF
14113
14114 fi
14115
14116 CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/intl"
14117
14118 if test "$BUILD_INCLUDED_LIBINTL" = "yes"; then
14119
14120 cat >>confdefs.h <<\_ACEOF
14121 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
14122 _ACEOF
14123
14124 else
14125
14126 for ac_func in bind_textdomain_codeset
14127 do
14128 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14129 echo "$as_me:$LINENO: checking for $ac_func" >&5
14130 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14131 if eval "test \"\${$as_ac_var+set}\" = set"; then
14132   echo $ECHO_N "(cached) $ECHO_C" >&6
14133 else
14134   cat >conftest.$ac_ext <<_ACEOF
14135 #line $LINENO "configure"
14136 /* confdefs.h.  */
14137 _ACEOF
14138 cat confdefs.h >>conftest.$ac_ext
14139 cat >>conftest.$ac_ext <<_ACEOF
14140 /* end confdefs.h.  */
14141 /* System header to define __stub macros and hopefully few prototypes,
14142     which can conflict with char $ac_func (); below.
14143     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14144     <limits.h> exists even on freestanding compilers.  */
14145 #ifdef __STDC__
14146 # include <limits.h>
14147 #else
14148 # include <assert.h>
14149 #endif
14150 /* Override any gcc2 internal prototype to avoid an error.  */
14151 #ifdef __cplusplus
14152 extern "C"
14153 {
14154 #endif
14155 /* We use char because int might match the return type of a gcc2
14156    builtin and then its argument prototype would still apply.  */
14157 char $ac_func ();
14158 /* The GNU C library defines this for functions which it implements
14159     to always fail with ENOSYS.  Some functions are actually named
14160     something starting with __ and the normal name is an alias.  */
14161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14162 choke me
14163 #else
14164 char (*f) () = $ac_func;
14165 #endif
14166 #ifdef __cplusplus
14167 }
14168 #endif
14169
14170 int
14171 main ()
14172 {
14173 return f != $ac_func;
14174   ;
14175   return 0;
14176 }
14177 _ACEOF
14178 rm -f conftest.$ac_objext conftest$ac_exeext
14179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14180   (eval $ac_link) 2>&5
14181   ac_status=$?
14182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183   (exit $ac_status); } &&
14184          { ac_try='test -s conftest$ac_exeext'
14185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186   (eval $ac_try) 2>&5
14187   ac_status=$?
14188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189   (exit $ac_status); }; }; then
14190   eval "$as_ac_var=yes"
14191 else
14192   echo "$as_me: failed program was:" >&5
14193 sed 's/^/| /' conftest.$ac_ext >&5
14194
14195 eval "$as_ac_var=no"
14196 fi
14197 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14198 fi
14199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14200 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14201 if test `eval echo '${'$as_ac_var'}'` = yes; then
14202   cat >>confdefs.h <<_ACEOF
14203 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14204 _ACEOF
14205
14206 fi
14207 done
14208
14209 fi
14210
14211 fi # libiconv
14212
14213
14214
14215 for ac_header in wchar.h
14216 do
14217 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14218 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14219   echo "$as_me:$LINENO: checking for $ac_header" >&5
14220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14222   echo $ECHO_N "(cached) $ECHO_C" >&6
14223 fi
14224 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14225 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14226 else
14227   # Is the header compilable?
14228 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14229 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14230 cat >conftest.$ac_ext <<_ACEOF
14231 #line $LINENO "configure"
14232 /* confdefs.h.  */
14233 _ACEOF
14234 cat confdefs.h >>conftest.$ac_ext
14235 cat >>conftest.$ac_ext <<_ACEOF
14236 /* end confdefs.h.  */
14237 $ac_includes_default
14238 #include <$ac_header>
14239 _ACEOF
14240 rm -f conftest.$ac_objext
14241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14242   (eval $ac_compile) 2>&5
14243   ac_status=$?
14244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245   (exit $ac_status); } &&
14246          { ac_try='test -s conftest.$ac_objext'
14247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14248   (eval $ac_try) 2>&5
14249   ac_status=$?
14250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251   (exit $ac_status); }; }; then
14252   ac_header_compiler=yes
14253 else
14254   echo "$as_me: failed program was:" >&5
14255 sed 's/^/| /' conftest.$ac_ext >&5
14256
14257 ac_header_compiler=no
14258 fi
14259 rm -f conftest.$ac_objext conftest.$ac_ext
14260 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14261 echo "${ECHO_T}$ac_header_compiler" >&6
14262
14263 # Is the header present?
14264 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14265 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14266 cat >conftest.$ac_ext <<_ACEOF
14267 #line $LINENO "configure"
14268 /* confdefs.h.  */
14269 _ACEOF
14270 cat confdefs.h >>conftest.$ac_ext
14271 cat >>conftest.$ac_ext <<_ACEOF
14272 /* end confdefs.h.  */
14273 #include <$ac_header>
14274 _ACEOF
14275 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14276   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14277   ac_status=$?
14278   grep -v '^ *+' conftest.er1 >conftest.err
14279   rm -f conftest.er1
14280   cat conftest.err >&5
14281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14282   (exit $ac_status); } >/dev/null; then
14283   if test -s conftest.err; then
14284     ac_cpp_err=$ac_c_preproc_warn_flag
14285   else
14286     ac_cpp_err=
14287   fi
14288 else
14289   ac_cpp_err=yes
14290 fi
14291 if test -z "$ac_cpp_err"; then
14292   ac_header_preproc=yes
14293 else
14294   echo "$as_me: failed program was:" >&5
14295 sed 's/^/| /' conftest.$ac_ext >&5
14296
14297   ac_header_preproc=no
14298 fi
14299 rm -f conftest.err conftest.$ac_ext
14300 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14301 echo "${ECHO_T}$ac_header_preproc" >&6
14302
14303 # So?  What about this header?
14304 case $ac_header_compiler:$ac_header_preproc in
14305   yes:no )
14306     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14307 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14308     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14310     (
14311       cat <<\_ASBOX
14312 ## ------------------------------------ ##
14313 ## Report this to bug-autoconf@gnu.org. ##
14314 ## ------------------------------------ ##
14315 _ASBOX
14316     ) |
14317       sed "s/^/$as_me: WARNING:     /" >&2
14318     ;;
14319   no:yes )
14320     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14321 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14322     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14323 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14324     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14326     (
14327       cat <<\_ASBOX
14328 ## ------------------------------------ ##
14329 ## Report this to bug-autoconf@gnu.org. ##
14330 ## ------------------------------------ ##
14331 _ASBOX
14332     ) |
14333       sed "s/^/$as_me: WARNING:     /" >&2
14334     ;;
14335 esac
14336 echo "$as_me:$LINENO: checking for $ac_header" >&5
14337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14338 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14339   echo $ECHO_N "(cached) $ECHO_C" >&6
14340 else
14341   eval "$as_ac_Header=$ac_header_preproc"
14342 fi
14343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14344 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14345
14346 fi
14347 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14348   cat >>confdefs.h <<_ACEOF
14349 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14350 _ACEOF
14351
14352 fi
14353
14354 done
14355
14356
14357 echo "$as_me:$LINENO: checking for wchar_t" >&5
14358 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
14359 if test "${mutt_cv_wchar_t+set}" = set; then
14360   echo $ECHO_N "(cached) $ECHO_C" >&6
14361 else
14362   cat >conftest.$ac_ext <<_ACEOF
14363 #line $LINENO "configure"
14364 /* confdefs.h.  */
14365 _ACEOF
14366 cat confdefs.h >>conftest.$ac_ext
14367 cat >>conftest.$ac_ext <<_ACEOF
14368 /* end confdefs.h.  */
14369
14370 #include <stddef.h>
14371 #include <stdlib.h>
14372 #ifdef HAVE_WCHAR_H
14373 #include <wchar.h>
14374 #endif
14375
14376 int
14377 main ()
14378 {
14379  wchar_t wc; return 0;
14380   ;
14381   return 0;
14382 }
14383 _ACEOF
14384 rm -f conftest.$ac_objext
14385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14386   (eval $ac_compile) 2>&5
14387   ac_status=$?
14388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389   (exit $ac_status); } &&
14390          { ac_try='test -s conftest.$ac_objext'
14391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14392   (eval $ac_try) 2>&5
14393   ac_status=$?
14394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395   (exit $ac_status); }; }; then
14396   mutt_cv_wchar_t=yes
14397 else
14398   echo "$as_me: failed program was:" >&5
14399 sed 's/^/| /' conftest.$ac_ext >&5
14400
14401 mutt_cv_wchar_t=no
14402 fi
14403 rm -f conftest.$ac_objext conftest.$ac_ext
14404 fi
14405 echo "$as_me:$LINENO: result: $mutt_cv_wchar_t" >&5
14406 echo "${ECHO_T}$mutt_cv_wchar_t" >&6
14407
14408 if test "$mutt_cv_wchar_t" = no; then
14409
14410 cat >>confdefs.h <<\_ACEOF
14411 #define wchar_t int
14412 _ACEOF
14413
14414 fi
14415
14416 echo "$as_me:$LINENO: checking for wint_t" >&5
14417 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
14418 if test "${mutt_cv_wint_t+set}" = set; then
14419   echo $ECHO_N "(cached) $ECHO_C" >&6
14420 else
14421   cat >conftest.$ac_ext <<_ACEOF
14422 #line $LINENO "configure"
14423 /* confdefs.h.  */
14424 _ACEOF
14425 cat confdefs.h >>conftest.$ac_ext
14426 cat >>conftest.$ac_ext <<_ACEOF
14427 /* end confdefs.h.  */
14428
14429 #include <stddef.h>
14430 #include <stdlib.h>
14431 #ifdef HAVE_WCHAR_H
14432 #include <wchar.h>
14433 #endif
14434
14435 int
14436 main ()
14437 {
14438  wint_t wc; return 0;
14439   ;
14440   return 0;
14441 }
14442 _ACEOF
14443 rm -f conftest.$ac_objext
14444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14445   (eval $ac_compile) 2>&5
14446   ac_status=$?
14447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14448   (exit $ac_status); } &&
14449          { ac_try='test -s conftest.$ac_objext'
14450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14451   (eval $ac_try) 2>&5
14452   ac_status=$?
14453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454   (exit $ac_status); }; }; then
14455   mutt_cv_wint_t=yes
14456 else
14457   echo "$as_me: failed program was:" >&5
14458 sed 's/^/| /' conftest.$ac_ext >&5
14459
14460 mutt_cv_wint_t=no
14461 fi
14462 rm -f conftest.$ac_objext conftest.$ac_ext
14463 fi
14464 echo "$as_me:$LINENO: result: $mutt_cv_wint_t" >&5
14465 echo "${ECHO_T}$mutt_cv_wint_t" >&6
14466
14467 if test "$mutt_cv_wint_t" = no; then
14468
14469 cat >>confdefs.h <<\_ACEOF
14470 #define wint_t int
14471 _ACEOF
14472
14473 fi
14474
14475
14476 for ac_header in wctype.h
14477 do
14478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14480   echo "$as_me:$LINENO: checking for $ac_header" >&5
14481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14483   echo $ECHO_N "(cached) $ECHO_C" >&6
14484 fi
14485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14487 else
14488   # Is the header compilable?
14489 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14491 cat >conftest.$ac_ext <<_ACEOF
14492 #line $LINENO "configure"
14493 /* confdefs.h.  */
14494 _ACEOF
14495 cat confdefs.h >>conftest.$ac_ext
14496 cat >>conftest.$ac_ext <<_ACEOF
14497 /* end confdefs.h.  */
14498 $ac_includes_default
14499 #include <$ac_header>
14500 _ACEOF
14501 rm -f conftest.$ac_objext
14502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14503   (eval $ac_compile) 2>&5
14504   ac_status=$?
14505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506   (exit $ac_status); } &&
14507          { ac_try='test -s conftest.$ac_objext'
14508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14509   (eval $ac_try) 2>&5
14510   ac_status=$?
14511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512   (exit $ac_status); }; }; then
14513   ac_header_compiler=yes
14514 else
14515   echo "$as_me: failed program was:" >&5
14516 sed 's/^/| /' conftest.$ac_ext >&5
14517
14518 ac_header_compiler=no
14519 fi
14520 rm -f conftest.$ac_objext conftest.$ac_ext
14521 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14522 echo "${ECHO_T}$ac_header_compiler" >&6
14523
14524 # Is the header present?
14525 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14526 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14527 cat >conftest.$ac_ext <<_ACEOF
14528 #line $LINENO "configure"
14529 /* confdefs.h.  */
14530 _ACEOF
14531 cat confdefs.h >>conftest.$ac_ext
14532 cat >>conftest.$ac_ext <<_ACEOF
14533 /* end confdefs.h.  */
14534 #include <$ac_header>
14535 _ACEOF
14536 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14537   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14538   ac_status=$?
14539   grep -v '^ *+' conftest.er1 >conftest.err
14540   rm -f conftest.er1
14541   cat conftest.err >&5
14542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543   (exit $ac_status); } >/dev/null; then
14544   if test -s conftest.err; then
14545     ac_cpp_err=$ac_c_preproc_warn_flag
14546   else
14547     ac_cpp_err=
14548   fi
14549 else
14550   ac_cpp_err=yes
14551 fi
14552 if test -z "$ac_cpp_err"; then
14553   ac_header_preproc=yes
14554 else
14555   echo "$as_me: failed program was:" >&5
14556 sed 's/^/| /' conftest.$ac_ext >&5
14557
14558   ac_header_preproc=no
14559 fi
14560 rm -f conftest.err conftest.$ac_ext
14561 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14562 echo "${ECHO_T}$ac_header_preproc" >&6
14563
14564 # So?  What about this header?
14565 case $ac_header_compiler:$ac_header_preproc in
14566   yes:no )
14567     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14569     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14571     (
14572       cat <<\_ASBOX
14573 ## ------------------------------------ ##
14574 ## Report this to bug-autoconf@gnu.org. ##
14575 ## ------------------------------------ ##
14576 _ASBOX
14577     ) |
14578       sed "s/^/$as_me: WARNING:     /" >&2
14579     ;;
14580   no:yes )
14581     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14582 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14583     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14584 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14585     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14587     (
14588       cat <<\_ASBOX
14589 ## ------------------------------------ ##
14590 ## Report this to bug-autoconf@gnu.org. ##
14591 ## ------------------------------------ ##
14592 _ASBOX
14593     ) |
14594       sed "s/^/$as_me: WARNING:     /" >&2
14595     ;;
14596 esac
14597 echo "$as_me:$LINENO: checking for $ac_header" >&5
14598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14600   echo $ECHO_N "(cached) $ECHO_C" >&6
14601 else
14602   eval "$as_ac_Header=$ac_header_preproc"
14603 fi
14604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14606
14607 fi
14608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14609   cat >>confdefs.h <<_ACEOF
14610 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14611 _ACEOF
14612
14613 fi
14614
14615 done
14616
14617
14618
14619
14620
14621 for ac_func in iswalnum iswalpha  iswcntrl iswdigit
14622 do
14623 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14624 echo "$as_me:$LINENO: checking for $ac_func" >&5
14625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14626 if eval "test \"\${$as_ac_var+set}\" = set"; then
14627   echo $ECHO_N "(cached) $ECHO_C" >&6
14628 else
14629   cat >conftest.$ac_ext <<_ACEOF
14630 #line $LINENO "configure"
14631 /* confdefs.h.  */
14632 _ACEOF
14633 cat confdefs.h >>conftest.$ac_ext
14634 cat >>conftest.$ac_ext <<_ACEOF
14635 /* end confdefs.h.  */
14636 /* System header to define __stub macros and hopefully few prototypes,
14637     which can conflict with char $ac_func (); below.
14638     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14639     <limits.h> exists even on freestanding compilers.  */
14640 #ifdef __STDC__
14641 # include <limits.h>
14642 #else
14643 # include <assert.h>
14644 #endif
14645 /* Override any gcc2 internal prototype to avoid an error.  */
14646 #ifdef __cplusplus
14647 extern "C"
14648 {
14649 #endif
14650 /* We use char because int might match the return type of a gcc2
14651    builtin and then its argument prototype would still apply.  */
14652 char $ac_func ();
14653 /* The GNU C library defines this for functions which it implements
14654     to always fail with ENOSYS.  Some functions are actually named
14655     something starting with __ and the normal name is an alias.  */
14656 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14657 choke me
14658 #else
14659 char (*f) () = $ac_func;
14660 #endif
14661 #ifdef __cplusplus
14662 }
14663 #endif
14664
14665 int
14666 main ()
14667 {
14668 return f != $ac_func;
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   eval "$as_ac_var=yes"
14686 else
14687   echo "$as_me: failed program was:" >&5
14688 sed 's/^/| /' conftest.$ac_ext >&5
14689
14690 eval "$as_ac_var=no"
14691 fi
14692 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14693 fi
14694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14695 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14696 if test `eval echo '${'$as_ac_var'}'` = yes; then
14697   cat >>confdefs.h <<_ACEOF
14698 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14699 _ACEOF
14700
14701 fi
14702 done
14703
14704
14705
14706
14707
14708
14709
14710 for ac_func in iswgraph iswlower iswprint iswpunct iswspace iswupper
14711 do
14712 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14713 echo "$as_me:$LINENO: checking for $ac_func" >&5
14714 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14715 if eval "test \"\${$as_ac_var+set}\" = set"; then
14716   echo $ECHO_N "(cached) $ECHO_C" >&6
14717 else
14718   cat >conftest.$ac_ext <<_ACEOF
14719 #line $LINENO "configure"
14720 /* confdefs.h.  */
14721 _ACEOF
14722 cat confdefs.h >>conftest.$ac_ext
14723 cat >>conftest.$ac_ext <<_ACEOF
14724 /* end confdefs.h.  */
14725 /* System header to define __stub macros and hopefully few prototypes,
14726     which can conflict with char $ac_func (); below.
14727     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14728     <limits.h> exists even on freestanding compilers.  */
14729 #ifdef __STDC__
14730 # include <limits.h>
14731 #else
14732 # include <assert.h>
14733 #endif
14734 /* Override any gcc2 internal prototype to avoid an error.  */
14735 #ifdef __cplusplus
14736 extern "C"
14737 {
14738 #endif
14739 /* We use char because int might match the return type of a gcc2
14740    builtin and then its argument prototype would still apply.  */
14741 char $ac_func ();
14742 /* The GNU C library defines this for functions which it implements
14743     to always fail with ENOSYS.  Some functions are actually named
14744     something starting with __ and the normal name is an alias.  */
14745 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14746 choke me
14747 #else
14748 char (*f) () = $ac_func;
14749 #endif
14750 #ifdef __cplusplus
14751 }
14752 #endif
14753
14754 int
14755 main ()
14756 {
14757 return f != $ac_func;
14758   ;
14759   return 0;
14760 }
14761 _ACEOF
14762 rm -f conftest.$ac_objext conftest$ac_exeext
14763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14764   (eval $ac_link) 2>&5
14765   ac_status=$?
14766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767   (exit $ac_status); } &&
14768          { ac_try='test -s conftest$ac_exeext'
14769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14770   (eval $ac_try) 2>&5
14771   ac_status=$?
14772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773   (exit $ac_status); }; }; then
14774   eval "$as_ac_var=yes"
14775 else
14776   echo "$as_me: failed program was:" >&5
14777 sed 's/^/| /' conftest.$ac_ext >&5
14778
14779 eval "$as_ac_var=no"
14780 fi
14781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14782 fi
14783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14784 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14785 if test `eval echo '${'$as_ac_var'}'` = yes; then
14786   cat >>confdefs.h <<_ACEOF
14787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14788 _ACEOF
14789
14790 fi
14791 done
14792
14793
14794
14795
14796 for ac_func in iswxdigit towupper towlower
14797 do
14798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14799 echo "$as_me:$LINENO: checking for $ac_func" >&5
14800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14801 if eval "test \"\${$as_ac_var+set}\" = set"; then
14802   echo $ECHO_N "(cached) $ECHO_C" >&6
14803 else
14804   cat >conftest.$ac_ext <<_ACEOF
14805 #line $LINENO "configure"
14806 /* confdefs.h.  */
14807 _ACEOF
14808 cat confdefs.h >>conftest.$ac_ext
14809 cat >>conftest.$ac_ext <<_ACEOF
14810 /* end confdefs.h.  */
14811 /* System header to define __stub macros and hopefully few prototypes,
14812     which can conflict with char $ac_func (); below.
14813     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14814     <limits.h> exists even on freestanding compilers.  */
14815 #ifdef __STDC__
14816 # include <limits.h>
14817 #else
14818 # include <assert.h>
14819 #endif
14820 /* Override any gcc2 internal prototype to avoid an error.  */
14821 #ifdef __cplusplus
14822 extern "C"
14823 {
14824 #endif
14825 /* We use char because int might match the return type of a gcc2
14826    builtin and then its argument prototype would still apply.  */
14827 char $ac_func ();
14828 /* The GNU C library defines this for functions which it implements
14829     to always fail with ENOSYS.  Some functions are actually named
14830     something starting with __ and the normal name is an alias.  */
14831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14832 choke me
14833 #else
14834 char (*f) () = $ac_func;
14835 #endif
14836 #ifdef __cplusplus
14837 }
14838 #endif
14839
14840 int
14841 main ()
14842 {
14843 return f != $ac_func;
14844   ;
14845   return 0;
14846 }
14847 _ACEOF
14848 rm -f conftest.$ac_objext conftest$ac_exeext
14849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14850   (eval $ac_link) 2>&5
14851   ac_status=$?
14852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853   (exit $ac_status); } &&
14854          { ac_try='test -s conftest$ac_exeext'
14855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14856   (eval $ac_try) 2>&5
14857   ac_status=$?
14858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859   (exit $ac_status); }; }; then
14860   eval "$as_ac_var=yes"
14861 else
14862   echo "$as_me: failed program was:" >&5
14863 sed 's/^/| /' conftest.$ac_ext >&5
14864
14865 eval "$as_ac_var=no"
14866 fi
14867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14868 fi
14869 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14870 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14871 if test `eval echo '${'$as_ac_var'}'` = yes; then
14872   cat >>confdefs.h <<_ACEOF
14873 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14874 _ACEOF
14875
14876 fi
14877 done
14878
14879
14880 echo "$as_me:$LINENO: checking for mbstate_t" >&5
14881 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
14882 if test "${mutt_cv_mbstate_t+set}" = set; then
14883   echo $ECHO_N "(cached) $ECHO_C" >&6
14884 else
14885   cat >conftest.$ac_ext <<_ACEOF
14886 #line $LINENO "configure"
14887 /* confdefs.h.  */
14888 _ACEOF
14889 cat confdefs.h >>conftest.$ac_ext
14890 cat >>conftest.$ac_ext <<_ACEOF
14891 /* end confdefs.h.  */
14892
14893 #include <stddef.h>
14894 #include <stdlib.h>
14895 #ifdef HAVE_WCHAR_H
14896 #include <wchar.h>
14897 #endif
14898
14899 int
14900 main ()
14901 {
14902  mbstate_t s; return 0;
14903   ;
14904   return 0;
14905 }
14906 _ACEOF
14907 rm -f conftest.$ac_objext
14908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14909   (eval $ac_compile) 2>&5
14910   ac_status=$?
14911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912   (exit $ac_status); } &&
14913          { ac_try='test -s conftest.$ac_objext'
14914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14915   (eval $ac_try) 2>&5
14916   ac_status=$?
14917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918   (exit $ac_status); }; }; then
14919   mutt_cv_mbstate_t=yes
14920 else
14921   echo "$as_me: failed program was:" >&5
14922 sed 's/^/| /' conftest.$ac_ext >&5
14923
14924 mutt_cv_mbstate_t=no
14925 fi
14926 rm -f conftest.$ac_objext conftest.$ac_ext
14927 fi
14928 echo "$as_me:$LINENO: result: $mutt_cv_mbstate_t" >&5
14929 echo "${ECHO_T}$mutt_cv_mbstate_t" >&6
14930
14931 if test "$mutt_cv_mbstate_t" = no; then
14932
14933 cat >>confdefs.h <<\_ACEOF
14934 #define mbstate_t int
14935 _ACEOF
14936
14937 fi
14938
14939 wc_funcs=maybe
14940
14941 # Check whether --with-wc-funcs or --without-wc-funcs was given.
14942 if test "${with_wc_funcs+set}" = set; then
14943   withval="$with_wc_funcs"
14944   wc_funcs=$withval
14945 fi;
14946
14947 if test "$wc_funcs" != yes -a "$wc_funcs" != no; then
14948         echo "$as_me:$LINENO: checking for wchar_t functions" >&5
14949 echo $ECHO_N "checking for wchar_t functions... $ECHO_C" >&6
14950 if test "${mutt_cv_wc_funcs+set}" = set; then
14951   echo $ECHO_N "(cached) $ECHO_C" >&6
14952 else
14953   mutt_cv_wc_funcs=no
14954                 cat >conftest.$ac_ext <<_ACEOF
14955 #line $LINENO "configure"
14956 /* confdefs.h.  */
14957 _ACEOF
14958 cat confdefs.h >>conftest.$ac_ext
14959 cat >>conftest.$ac_ext <<_ACEOF
14960 /* end confdefs.h.  */
14961
14962 #define _XOPEN_SOURCE 1
14963 #include <stddef.h>
14964 #include <stdlib.h>
14965 #ifdef HAVE_WCTYPE_H
14966 #include <wctype.h>
14967 #endif
14968 #ifdef HAVE_WCHAR_H
14969 #include <wchar.h>
14970 #endif
14971 int
14972 main ()
14973 {
14974 mbrtowc(0, 0, 0, 0); wctomb(0, 0); wcwidth(0);
14975         iswprint(0); iswspace(0); towlower(0); towupper(0); iswalnum(0)
14976   ;
14977   return 0;
14978 }
14979 _ACEOF
14980 rm -f conftest.$ac_objext conftest$ac_exeext
14981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14982   (eval $ac_link) 2>&5
14983   ac_status=$?
14984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985   (exit $ac_status); } &&
14986          { ac_try='test -s conftest$ac_exeext'
14987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14988   (eval $ac_try) 2>&5
14989   ac_status=$?
14990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991   (exit $ac_status); }; }; then
14992   mutt_cv_wc_funcs=yes
14993 else
14994   echo "$as_me: failed program was:" >&5
14995 sed 's/^/| /' conftest.$ac_ext >&5
14996
14997 fi
14998 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14999 fi
15000 echo "$as_me:$LINENO: result: $mutt_cv_wc_funcs" >&5
15001 echo "${ECHO_T}$mutt_cv_wc_funcs" >&6
15002         wc_funcs=$mutt_cv_wc_funcs
15003 fi
15004
15005 if test $wc_funcs = yes; then
15006
15007 cat >>confdefs.h <<\_ACEOF
15008 #define HAVE_WC_FUNCS 1
15009 _ACEOF
15010
15011 fi
15012
15013 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
15014 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
15015 if test "${mutt_cv_langinfo_codeset+set}" = set; then
15016   echo $ECHO_N "(cached) $ECHO_C" >&6
15017 else
15018   cat >conftest.$ac_ext <<_ACEOF
15019 #line $LINENO "configure"
15020 /* confdefs.h.  */
15021 _ACEOF
15022 cat confdefs.h >>conftest.$ac_ext
15023 cat >>conftest.$ac_ext <<_ACEOF
15024 /* end confdefs.h.  */
15025 #include <langinfo.h>
15026 int
15027 main ()
15028 {
15029 char* cs = nl_langinfo(CODESET);
15030   ;
15031   return 0;
15032 }
15033 _ACEOF
15034 rm -f conftest.$ac_objext conftest$ac_exeext
15035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15036   (eval $ac_link) 2>&5
15037   ac_status=$?
15038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039   (exit $ac_status); } &&
15040          { ac_try='test -s conftest$ac_exeext'
15041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15042   (eval $ac_try) 2>&5
15043   ac_status=$?
15044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045   (exit $ac_status); }; }; then
15046   mutt_cv_langinfo_codeset=yes
15047 else
15048   echo "$as_me: failed program was:" >&5
15049 sed 's/^/| /' conftest.$ac_ext >&5
15050
15051 mutt_cv_langinfo_codeset=no
15052 fi
15053 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15054 fi
15055 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_codeset" >&5
15056 echo "${ECHO_T}$mutt_cv_langinfo_codeset" >&6
15057 if test $mutt_cv_langinfo_codeset = yes; then
15058
15059 cat >>confdefs.h <<\_ACEOF
15060 #define HAVE_LANGINFO_CODESET 1
15061 _ACEOF
15062
15063 fi
15064
15065 echo "$as_me:$LINENO: checking for nl_langinfo and YESEXPR" >&5
15066 echo $ECHO_N "checking for nl_langinfo and YESEXPR... $ECHO_C" >&6
15067 if test "${mutt_cv_langinfo_yesexpr+set}" = set; then
15068   echo $ECHO_N "(cached) $ECHO_C" >&6
15069 else
15070   cat >conftest.$ac_ext <<_ACEOF
15071 #line $LINENO "configure"
15072 /* confdefs.h.  */
15073 _ACEOF
15074 cat confdefs.h >>conftest.$ac_ext
15075 cat >>conftest.$ac_ext <<_ACEOF
15076 /* end confdefs.h.  */
15077 #include <langinfo.h>
15078 int
15079 main ()
15080 {
15081 char* cs = nl_langinfo(YESEXPR);
15082   ;
15083   return 0;
15084 }
15085 _ACEOF
15086 rm -f conftest.$ac_objext conftest$ac_exeext
15087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15088   (eval $ac_link) 2>&5
15089   ac_status=$?
15090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15091   (exit $ac_status); } &&
15092          { ac_try='test -s conftest$ac_exeext'
15093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15094   (eval $ac_try) 2>&5
15095   ac_status=$?
15096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097   (exit $ac_status); }; }; then
15098   mutt_cv_langinfo_yesexpr=yes
15099 else
15100   echo "$as_me: failed program was:" >&5
15101 sed 's/^/| /' conftest.$ac_ext >&5
15102
15103 mutt_cv_langinfo_yesexpr=no
15104 fi
15105 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15106 fi
15107 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_yesexpr" >&5
15108 echo "${ECHO_T}$mutt_cv_langinfo_yesexpr" >&6
15109 if test $mutt_cv_langinfo_yesexpr = yes; then
15110
15111 cat >>confdefs.h <<\_ACEOF
15112 #define HAVE_LANGINFO_YESEXPR 1
15113 _ACEOF
15114
15115 fi
15116
15117
15118
15119 # Check whether --with-libesmtp or --without-libesmtp was given.
15120 if test "${with_libesmtp+set}" = set; then
15121   withval="$with_libesmtp"
15122    if test "$with_libesmtp" != "no"
15123       then
15124         mutt_libesmtp_check_path="$PATH"
15125
15126         if test "$with_libesmtp" != "yes"
15127         then
15128           mutt_libesmtp_check_path="$tmp_path:$withval/bin"
15129         fi
15130
15131                 # Extract the first word of "libesmtp-config", so it can be a program name with args.
15132 set dummy libesmtp-config; ac_word=$2
15133 echo "$as_me:$LINENO: checking for $ac_word" >&5
15134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15135 if test "${ac_cv_path_mutt_libesmtp_config_path+set}" = set; then
15136   echo $ECHO_N "(cached) $ECHO_C" >&6
15137 else
15138   case $mutt_libesmtp_config_path in
15139   [\\/]* | ?:[\\/]*)
15140   ac_cv_path_mutt_libesmtp_config_path="$mutt_libesmtp_config_path" # Let the user override the test with a path.
15141   ;;
15142   *)
15143   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15144 for as_dir in $mutt_libesmtp_check_path
15145 do
15146   IFS=$as_save_IFS
15147   test -z "$as_dir" && as_dir=.
15148   for ac_exec_ext in '' $ac_executable_extensions; do
15149   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15150     ac_cv_path_mutt_libesmtp_config_path="$as_dir/$ac_word$ac_exec_ext"
15151     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15152     break 2
15153   fi
15154 done
15155 done
15156
15157   test -z "$ac_cv_path_mutt_libesmtp_config_path" && ac_cv_path_mutt_libesmtp_config_path="no"
15158   ;;
15159 esac
15160 fi
15161 mutt_libesmtp_config_path=$ac_cv_path_mutt_libesmtp_config_path
15162
15163 if test -n "$mutt_libesmtp_config_path"; then
15164   echo "$as_me:$LINENO: result: $mutt_libesmtp_config_path" >&5
15165 echo "${ECHO_T}$mutt_libesmtp_config_path" >&6
15166 else
15167   echo "$as_me:$LINENO: result: no" >&5
15168 echo "${ECHO_T}no" >&6
15169 fi
15170
15171
15172         if test "$mutt_libesmtp_config_path" = "no"
15173         then
15174           { { echo "$as_me:$LINENO: error: libesmtp-config binary not found." >&5
15175 echo "$as_me: error: libesmtp-config binary not found." >&2;}
15176    { (exit 1); exit 1; }; }
15177         fi
15178
15179                 mutt_libesmtp_cflags=`$mutt_libesmtp_config_path --cflags`
15180         mutt_libesmtp_libs=`$mutt_libesmtp_config_path --libs`
15181
15182                 temp_CFLAGS="$CFLAGS"
15183         CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
15184         if test "${ac_cv_header_libesmtp_h+set}" = set; then
15185   echo "$as_me:$LINENO: checking for libesmtp.h" >&5
15186 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
15187 if test "${ac_cv_header_libesmtp_h+set}" = set; then
15188   echo $ECHO_N "(cached) $ECHO_C" >&6
15189 fi
15190 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
15191 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
15192 else
15193   # Is the header compilable?
15194 echo "$as_me:$LINENO: checking libesmtp.h usability" >&5
15195 echo $ECHO_N "checking libesmtp.h usability... $ECHO_C" >&6
15196 cat >conftest.$ac_ext <<_ACEOF
15197 #line $LINENO "configure"
15198 /* confdefs.h.  */
15199 _ACEOF
15200 cat confdefs.h >>conftest.$ac_ext
15201 cat >>conftest.$ac_ext <<_ACEOF
15202 /* end confdefs.h.  */
15203 $ac_includes_default
15204 #include <libesmtp.h>
15205 _ACEOF
15206 rm -f conftest.$ac_objext
15207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15208   (eval $ac_compile) 2>&5
15209   ac_status=$?
15210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211   (exit $ac_status); } &&
15212          { ac_try='test -s conftest.$ac_objext'
15213   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15214   (eval $ac_try) 2>&5
15215   ac_status=$?
15216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15217   (exit $ac_status); }; }; then
15218   ac_header_compiler=yes
15219 else
15220   echo "$as_me: failed program was:" >&5
15221 sed 's/^/| /' conftest.$ac_ext >&5
15222
15223 ac_header_compiler=no
15224 fi
15225 rm -f conftest.$ac_objext conftest.$ac_ext
15226 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15227 echo "${ECHO_T}$ac_header_compiler" >&6
15228
15229 # Is the header present?
15230 echo "$as_me:$LINENO: checking libesmtp.h presence" >&5
15231 echo $ECHO_N "checking libesmtp.h presence... $ECHO_C" >&6
15232 cat >conftest.$ac_ext <<_ACEOF
15233 #line $LINENO "configure"
15234 /* confdefs.h.  */
15235 _ACEOF
15236 cat confdefs.h >>conftest.$ac_ext
15237 cat >>conftest.$ac_ext <<_ACEOF
15238 /* end confdefs.h.  */
15239 #include <libesmtp.h>
15240 _ACEOF
15241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15242   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15243   ac_status=$?
15244   grep -v '^ *+' conftest.er1 >conftest.err
15245   rm -f conftest.er1
15246   cat conftest.err >&5
15247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248   (exit $ac_status); } >/dev/null; then
15249   if test -s conftest.err; then
15250     ac_cpp_err=$ac_c_preproc_warn_flag
15251   else
15252     ac_cpp_err=
15253   fi
15254 else
15255   ac_cpp_err=yes
15256 fi
15257 if test -z "$ac_cpp_err"; then
15258   ac_header_preproc=yes
15259 else
15260   echo "$as_me: failed program was:" >&5
15261 sed 's/^/| /' conftest.$ac_ext >&5
15262
15263   ac_header_preproc=no
15264 fi
15265 rm -f conftest.err conftest.$ac_ext
15266 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15267 echo "${ECHO_T}$ac_header_preproc" >&6
15268
15269 # So?  What about this header?
15270 case $ac_header_compiler:$ac_header_preproc in
15271   yes:no )
15272     { echo "$as_me:$LINENO: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&5
15273 echo "$as_me: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15274     { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&5
15275 echo "$as_me: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&2;}
15276     (
15277       cat <<\_ASBOX
15278 ## ------------------------------------ ##
15279 ## Report this to bug-autoconf@gnu.org. ##
15280 ## ------------------------------------ ##
15281 _ASBOX
15282     ) |
15283       sed "s/^/$as_me: WARNING:     /" >&2
15284     ;;
15285   no:yes )
15286     { echo "$as_me:$LINENO: WARNING: libesmtp.h: present but cannot be compiled" >&5
15287 echo "$as_me: WARNING: libesmtp.h: present but cannot be compiled" >&2;}
15288     { echo "$as_me:$LINENO: WARNING: libesmtp.h: check for missing prerequisite headers?" >&5
15289 echo "$as_me: WARNING: libesmtp.h: check for missing prerequisite headers?" >&2;}
15290     { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&5
15291 echo "$as_me: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&2;}
15292     (
15293       cat <<\_ASBOX
15294 ## ------------------------------------ ##
15295 ## Report this to bug-autoconf@gnu.org. ##
15296 ## ------------------------------------ ##
15297 _ASBOX
15298     ) |
15299       sed "s/^/$as_me: WARNING:     /" >&2
15300     ;;
15301 esac
15302 echo "$as_me:$LINENO: checking for libesmtp.h" >&5
15303 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
15304 if test "${ac_cv_header_libesmtp_h+set}" = set; then
15305   echo $ECHO_N "(cached) $ECHO_C" >&6
15306 else
15307   ac_cv_header_libesmtp_h=$ac_header_preproc
15308 fi
15309 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
15310 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
15311
15312 fi
15313 if test $ac_cv_header_libesmtp_h = yes; then
15314   :
15315 else
15316   { { echo "$as_me:$LINENO: error: Could not find libesmtp.h" >&5
15317 echo "$as_me: error: Could not find libesmtp.h" >&2;}
15318    { (exit 1); exit 1; }; }
15319 fi
15320
15321
15322         CFLAGS="$temp_CFLAGS"
15323
15324                 temp_CFLAGS="$CFLAGS"
15325         temp_LIBS="$LIBS"
15326         CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
15327         LIBS="$LIBS $mutt_libesmtp_libs"
15328
15329 echo "$as_me:$LINENO: checking for smtp_create_session in -lesmtp" >&5
15330 echo $ECHO_N "checking for smtp_create_session in -lesmtp... $ECHO_C" >&6
15331 if test "${ac_cv_lib_esmtp_smtp_create_session+set}" = set; then
15332   echo $ECHO_N "(cached) $ECHO_C" >&6
15333 else
15334   ac_check_lib_save_LIBS=$LIBS
15335 LIBS="-lesmtp  $LIBS"
15336 cat >conftest.$ac_ext <<_ACEOF
15337 #line $LINENO "configure"
15338 /* confdefs.h.  */
15339 _ACEOF
15340 cat confdefs.h >>conftest.$ac_ext
15341 cat >>conftest.$ac_ext <<_ACEOF
15342 /* end confdefs.h.  */
15343
15344 /* Override any gcc2 internal prototype to avoid an error.  */
15345 #ifdef __cplusplus
15346 extern "C"
15347 #endif
15348 /* We use char because int might match the return type of a gcc2
15349    builtin and then its argument prototype would still apply.  */
15350 char smtp_create_session ();
15351 int
15352 main ()
15353 {
15354 smtp_create_session ();
15355   ;
15356   return 0;
15357 }
15358 _ACEOF
15359 rm -f conftest.$ac_objext conftest$ac_exeext
15360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15361   (eval $ac_link) 2>&5
15362   ac_status=$?
15363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364   (exit $ac_status); } &&
15365          { ac_try='test -s conftest$ac_exeext'
15366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15367   (eval $ac_try) 2>&5
15368   ac_status=$?
15369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15370   (exit $ac_status); }; }; then
15371   ac_cv_lib_esmtp_smtp_create_session=yes
15372 else
15373   echo "$as_me: failed program was:" >&5
15374 sed 's/^/| /' conftest.$ac_ext >&5
15375
15376 ac_cv_lib_esmtp_smtp_create_session=no
15377 fi
15378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15379 LIBS=$ac_check_lib_save_LIBS
15380 fi
15381 echo "$as_me:$LINENO: result: $ac_cv_lib_esmtp_smtp_create_session" >&5
15382 echo "${ECHO_T}$ac_cv_lib_esmtp_smtp_create_session" >&6
15383 if test $ac_cv_lib_esmtp_smtp_create_session = yes; then
15384   cat >>confdefs.h <<_ACEOF
15385 #define HAVE_LIBESMTP 1
15386 _ACEOF
15387
15388   LIBS="-lesmtp $LIBS"
15389
15390 else
15391   { { echo "$as_me:$LINENO: error: Could not find libesmtp" >&5
15392 echo "$as_me: error: Could not find libesmtp" >&2;}
15393    { (exit 1); exit 1; }; }
15394 fi
15395
15396         CFLAGS="$temp_CFLAGS"
15397         LIBS="$temp_LIBS"
15398
15399                         use_libesmtp=yes
15400       fi
15401
15402
15403 fi;
15404
15405 if test x$use_libesmtp = xyes; then
15406     CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
15407     MUTTLIBS="$MUTTLIBS $mutt_libesmtp_libs"
15408     MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_libesmtp.o"
15409
15410
15411 cat >>confdefs.h <<\_ACEOF
15412 #define USE_LIBESMTP 1
15413 _ACEOF
15414
15415 fi
15416
15417                                                                                                     ac_config_files="$ac_config_files Makefile intl/Makefile m4/Makefile po/Makefile.in doc/Makefile contrib/Makefile muttbug.sh imap/Makefile Muttrc.head doc/instdoc.sh"
15418 cat >confcache <<\_ACEOF
15419 # This file is a shell script that caches the results of configure
15420 # tests run on this system so they can be shared between configure
15421 # scripts and configure runs, see configure's option --config-cache.
15422 # It is not useful on other systems.  If it contains results you don't
15423 # want to keep, you may remove or edit it.
15424 #
15425 # config.status only pays attention to the cache file if you give it
15426 # the --recheck option to rerun configure.
15427 #
15428 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15429 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15430 # following values.
15431
15432 _ACEOF
15433
15434 # The following way of writing the cache mishandles newlines in values,
15435 # but we know of no workaround that is simple, portable, and efficient.
15436 # So, don't put newlines in cache variables' values.
15437 # Ultrix sh set writes to stderr and can't be redirected directly,
15438 # and sets the high bit in the cache file unless we assign to the vars.
15439 {
15440   (set) 2>&1 |
15441     case `(ac_space=' '; set | grep ac_space) 2>&1` in
15442     *ac_space=\ *)
15443       # `set' does not quote correctly, so add quotes (double-quote
15444       # substitution turns \\\\ into \\, and sed turns \\ into \).
15445       sed -n \
15446         "s/'/'\\\\''/g;
15447           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15448       ;;
15449     *)
15450       # `set' quotes correctly as required by POSIX, so do not add quotes.
15451       sed -n \
15452         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15453       ;;
15454     esac;
15455 } |
15456   sed '
15457      t clear
15458      : clear
15459      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15460      t end
15461      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15462      : end' >>confcache
15463 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15464   if test -w $cache_file; then
15465     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15466     cat confcache >$cache_file
15467   else
15468     echo "not updating unwritable cache $cache_file"
15469   fi
15470 fi
15471 rm -f confcache
15472
15473 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15474 # Let make expand exec_prefix.
15475 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15476
15477 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15478 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15479 # trailing colons and then remove the whole line if VPATH becomes empty
15480 # (actually we leave an empty line to preserve line numbers).
15481 if test "x$srcdir" = x.; then
15482   ac_vpsub='/^[         ]*VPATH[        ]*=/{
15483 s/:*\$(srcdir):*/:/;
15484 s/:*\${srcdir}:*/:/;
15485 s/:*@srcdir@:*/:/;
15486 s/^\([^=]*=[    ]*\):*/\1/;
15487 s/:*$//;
15488 s/^[^=]*=[      ]*$//;
15489 }'
15490 fi
15491
15492 DEFS=-DHAVE_CONFIG_H
15493
15494 ac_libobjs=
15495 ac_ltlibobjs=
15496 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15497   # 1. Remove the extension, and $U if already installed.
15498   ac_i=`echo "$ac_i" |
15499          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15500   # 2. Add them.
15501   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15502   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15503 done
15504 LIBOBJS=$ac_libobjs
15505
15506 LTLIBOBJS=$ac_ltlibobjs
15507
15508
15509 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15510   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15511 Usually this means the macro was only invoked conditionally." >&5
15512 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15513 Usually this means the macro was only invoked conditionally." >&2;}
15514    { (exit 1); exit 1; }; }
15515 fi
15516 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15517   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15518 Usually this means the macro was only invoked conditionally." >&5
15519 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15520 Usually this means the macro was only invoked conditionally." >&2;}
15521    { (exit 1); exit 1; }; }
15522 fi
15523 if test -z "${BUILD_IMAP_TRUE}" && test -z "${BUILD_IMAP_FALSE}"; then
15524   { { echo "$as_me:$LINENO: error: conditional \"BUILD_IMAP\" was never defined.
15525 Usually this means the macro was only invoked conditionally." >&5
15526 echo "$as_me: error: conditional \"BUILD_IMAP\" was never defined.
15527 Usually this means the macro was only invoked conditionally." >&2;}
15528    { (exit 1); exit 1; }; }
15529 fi
15530 if test -z "${USE_GSS_TRUE}" && test -z "${USE_GSS_FALSE}"; then
15531   { { echo "$as_me:$LINENO: error: conditional \"USE_GSS\" was never defined.
15532 Usually this means the macro was only invoked conditionally." >&5
15533 echo "$as_me: error: conditional \"USE_GSS\" was never defined.
15534 Usually this means the macro was only invoked conditionally." >&2;}
15535    { (exit 1); exit 1; }; }
15536 fi
15537 if test -z "${USE_SSL_TRUE}" && test -z "${USE_SSL_FALSE}"; then
15538   { { echo "$as_me:$LINENO: error: conditional \"USE_SSL\" was never defined.
15539 Usually this means the macro was only invoked conditionally." >&5
15540 echo "$as_me: error: conditional \"USE_SSL\" was never defined.
15541 Usually this means the macro was only invoked conditionally." >&2;}
15542    { (exit 1); exit 1; }; }
15543 fi
15544 if test -z "${USE_GNUTLS_TRUE}" && test -z "${USE_GNUTLS_FALSE}"; then
15545   { { echo "$as_me:$LINENO: error: conditional \"USE_GNUTLS\" was never defined.
15546 Usually this means the macro was only invoked conditionally." >&5
15547 echo "$as_me: error: conditional \"USE_GNUTLS\" was never defined.
15548 Usually this means the macro was only invoked conditionally." >&2;}
15549    { (exit 1); exit 1; }; }
15550 fi
15551 if test -z "${USE_SASL_TRUE}" && test -z "${USE_SASL_FALSE}"; then
15552   { { echo "$as_me:$LINENO: error: conditional \"USE_SASL\" was never defined.
15553 Usually this means the macro was only invoked conditionally." >&5
15554 echo "$as_me: error: conditional \"USE_SASL\" was never defined.
15555 Usually this means the macro was only invoked conditionally." >&2;}
15556    { (exit 1); exit 1; }; }
15557 fi
15558 if test -z "${USE_SASL_TRUE}" && test -z "${USE_SASL_FALSE}"; then
15559   { { echo "$as_me:$LINENO: error: conditional \"USE_SASL\" was never defined.
15560 Usually this means the macro was only invoked conditionally." >&5
15561 echo "$as_me: error: conditional \"USE_SASL\" was never defined.
15562 Usually this means the macro was only invoked conditionally." >&2;}
15563    { (exit 1); exit 1; }; }
15564 fi
15565
15566 : ${CONFIG_STATUS=./config.status}
15567 ac_clean_files_save=$ac_clean_files
15568 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15569 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15570 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15571 cat >$CONFIG_STATUS <<_ACEOF
15572 #! $SHELL
15573 # Generated by $as_me.
15574 # Run this file to recreate the current configuration.
15575 # Compiler output produced by configure, useful for debugging
15576 # configure, is in config.log if it exists.
15577
15578 debug=false
15579 ac_cs_recheck=false
15580 ac_cs_silent=false
15581 SHELL=\${CONFIG_SHELL-$SHELL}
15582 _ACEOF
15583
15584 cat >>$CONFIG_STATUS <<\_ACEOF
15585 ## --------------------- ##
15586 ## M4sh Initialization.  ##
15587 ## --------------------- ##
15588
15589 # Be Bourne compatible
15590 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15591   emulate sh
15592   NULLCMD=:
15593   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15594   # is contrary to our usage.  Disable this feature.
15595   alias -g '${1+"$@"}'='"$@"'
15596 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15597   set -o posix
15598 fi
15599
15600 # Support unset when possible.
15601 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15602   as_unset=unset
15603 else
15604   as_unset=false
15605 fi
15606
15607
15608 # Work around bugs in pre-3.0 UWIN ksh.
15609 $as_unset ENV MAIL MAILPATH
15610 PS1='$ '
15611 PS2='> '
15612 PS4='+ '
15613
15614 # NLS nuisances.
15615 for as_var in \
15616   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15617   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15618   LC_TELEPHONE LC_TIME
15619 do
15620   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
15621     eval $as_var=C; export $as_var
15622   else
15623     $as_unset $as_var
15624   fi
15625 done
15626
15627 # Required to use basename.
15628 if expr a : '\(a\)' >/dev/null 2>&1; then
15629   as_expr=expr
15630 else
15631   as_expr=false
15632 fi
15633
15634 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15635   as_basename=basename
15636 else
15637   as_basename=false
15638 fi
15639
15640
15641 # Name of the executable.
15642 as_me=`$as_basename "$0" ||
15643 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15644          X"$0" : 'X\(//\)$' \| \
15645          X"$0" : 'X\(/\)$' \| \
15646          .     : '\(.\)' 2>/dev/null ||
15647 echo X/"$0" |
15648     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15649           /^X\/\(\/\/\)$/{ s//\1/; q; }
15650           /^X\/\(\/\).*/{ s//\1/; q; }
15651           s/.*/./; q'`
15652
15653
15654 # PATH needs CR, and LINENO needs CR and PATH.
15655 # Avoid depending upon Character Ranges.
15656 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15657 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15658 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15659 as_cr_digits='0123456789'
15660 as_cr_alnum=$as_cr_Letters$as_cr_digits
15661
15662 # The user is always right.
15663 if test "${PATH_SEPARATOR+set}" != set; then
15664   echo "#! /bin/sh" >conf$$.sh
15665   echo  "exit 0"   >>conf$$.sh
15666   chmod +x conf$$.sh
15667   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15668     PATH_SEPARATOR=';'
15669   else
15670     PATH_SEPARATOR=:
15671   fi
15672   rm -f conf$$.sh
15673 fi
15674
15675
15676   as_lineno_1=$LINENO
15677   as_lineno_2=$LINENO
15678   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15679   test "x$as_lineno_1" != "x$as_lineno_2" &&
15680   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
15681   # Find who we are.  Look in the path if we contain no path at all
15682   # relative or not.
15683   case $0 in
15684     *[\\/]* ) as_myself=$0 ;;
15685     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15686 for as_dir in $PATH
15687 do
15688   IFS=$as_save_IFS
15689   test -z "$as_dir" && as_dir=.
15690   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15691 done
15692
15693        ;;
15694   esac
15695   # We did not find ourselves, most probably we were run as `sh COMMAND'
15696   # in which case we are not to be found in the path.
15697   if test "x$as_myself" = x; then
15698     as_myself=$0
15699   fi
15700   if test ! -f "$as_myself"; then
15701     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15702 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15703    { (exit 1); exit 1; }; }
15704   fi
15705   case $CONFIG_SHELL in
15706   '')
15707     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15708 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15709 do
15710   IFS=$as_save_IFS
15711   test -z "$as_dir" && as_dir=.
15712   for as_base in sh bash ksh sh5; do
15713          case $as_dir in
15714          /*)
15715            if ("$as_dir/$as_base" -c '
15716   as_lineno_1=$LINENO
15717   as_lineno_2=$LINENO
15718   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15719   test "x$as_lineno_1" != "x$as_lineno_2" &&
15720   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
15721              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15722              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15723              CONFIG_SHELL=$as_dir/$as_base
15724              export CONFIG_SHELL
15725              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15726            fi;;
15727          esac
15728        done
15729 done
15730 ;;
15731   esac
15732
15733   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15734   # uniformly replaced by the line number.  The first 'sed' inserts a
15735   # line-number line before each line; the second 'sed' does the real
15736   # work.  The second script uses 'N' to pair each line-number line
15737   # with the numbered line, and appends trailing '-' during
15738   # substitution so that $LINENO is not a special case at line end.
15739   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15740   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
15741   sed '=' <$as_myself |
15742     sed '
15743       N
15744       s,$,-,
15745       : loop
15746       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15747       t loop
15748       s,-$,,
15749       s,^['$as_cr_digits']*\n,,
15750     ' >$as_me.lineno &&
15751   chmod +x $as_me.lineno ||
15752     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15753 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15754    { (exit 1); exit 1; }; }
15755
15756   # Don't try to exec as it changes $[0], causing all sort of problems
15757   # (the dirname of $[0] is not the place where we might find the
15758   # original and so on.  Autoconf is especially sensible to this).
15759   . ./$as_me.lineno
15760   # Exit status is that of the last command.
15761   exit
15762 }
15763
15764
15765 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15766   *c*,-n*) ECHO_N= ECHO_C='
15767 ' ECHO_T='      ' ;;
15768   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15769   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
15770 esac
15771
15772 if expr a : '\(a\)' >/dev/null 2>&1; then
15773   as_expr=expr
15774 else
15775   as_expr=false
15776 fi
15777
15778 rm -f conf$$ conf$$.exe conf$$.file
15779 echo >conf$$.file
15780 if ln -s conf$$.file conf$$ 2>/dev/null; then
15781   # We could just check for DJGPP; but this test a) works b) is more generic
15782   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15783   if test -f conf$$.exe; then
15784     # Don't use ln at all; we don't have any links
15785     as_ln_s='cp -p'
15786   else
15787     as_ln_s='ln -s'
15788   fi
15789 elif ln conf$$.file conf$$ 2>/dev/null; then
15790   as_ln_s=ln
15791 else
15792   as_ln_s='cp -p'
15793 fi
15794 rm -f conf$$ conf$$.exe conf$$.file
15795
15796 if mkdir -p . 2>/dev/null; then
15797   as_mkdir_p=:
15798 else
15799   as_mkdir_p=false
15800 fi
15801
15802 as_executable_p="test -f"
15803
15804 # Sed expression to map a string onto a valid CPP name.
15805 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15806
15807 # Sed expression to map a string onto a valid variable name.
15808 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15809
15810
15811 # IFS
15812 # We need space, tab and new line, in precisely that order.
15813 as_nl='
15814 '
15815 IFS="   $as_nl"
15816
15817 # CDPATH.
15818 $as_unset CDPATH
15819
15820 exec 6>&1
15821
15822 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15823 # report actual input values of CONFIG_FILES etc. instead of their
15824 # values after options handling.  Logging --version etc. is OK.
15825 exec 5>>config.log
15826 {
15827   echo
15828   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15829 ## Running $as_me. ##
15830 _ASBOX
15831 } >&5
15832 cat >&5 <<_CSEOF
15833
15834 This file was extended by $as_me, which was
15835 generated by GNU Autoconf 2.57.  Invocation command line was
15836
15837   CONFIG_FILES    = $CONFIG_FILES
15838   CONFIG_HEADERS  = $CONFIG_HEADERS
15839   CONFIG_LINKS    = $CONFIG_LINKS
15840   CONFIG_COMMANDS = $CONFIG_COMMANDS
15841   $ $0 $@
15842
15843 _CSEOF
15844 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15845 echo >&5
15846 _ACEOF
15847
15848 # Files that config.status was made for.
15849 if test -n "$ac_config_files"; then
15850   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15851 fi
15852
15853 if test -n "$ac_config_headers"; then
15854   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15855 fi
15856
15857 if test -n "$ac_config_links"; then
15858   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15859 fi
15860
15861 if test -n "$ac_config_commands"; then
15862   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15863 fi
15864
15865 cat >>$CONFIG_STATUS <<\_ACEOF
15866
15867 ac_cs_usage="\
15868 \`$as_me' instantiates files from templates according to the
15869 current configuration.
15870
15871 Usage: $0 [OPTIONS] [FILE]...
15872
15873   -h, --help       print this help, then exit
15874   -V, --version    print version number, then exit
15875   -q, --quiet      do not print progress messages
15876   -d, --debug      don't remove temporary files
15877       --recheck    update $as_me by reconfiguring in the same conditions
15878   --file=FILE[:TEMPLATE]
15879                    instantiate the configuration file FILE
15880   --header=FILE[:TEMPLATE]
15881                    instantiate the configuration header FILE
15882
15883 Configuration files:
15884 $config_files
15885
15886 Configuration headers:
15887 $config_headers
15888
15889 Configuration commands:
15890 $config_commands
15891
15892 Report bugs to <bug-autoconf@gnu.org>."
15893 _ACEOF
15894
15895 cat >>$CONFIG_STATUS <<_ACEOF
15896 ac_cs_version="\\
15897 config.status
15898 configured by $0, generated by GNU Autoconf 2.57,
15899   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15900
15901 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
15902 Free Software Foundation, Inc.
15903 This config.status script is free software; the Free Software Foundation
15904 gives unlimited permission to copy, distribute and modify it."
15905 srcdir=$srcdir
15906 INSTALL="$INSTALL"
15907 _ACEOF
15908
15909 cat >>$CONFIG_STATUS <<\_ACEOF
15910 # If no file are specified by the user, then we need to provide default
15911 # value.  By we need to know if files were specified by the user.
15912 ac_need_defaults=:
15913 while test $# != 0
15914 do
15915   case $1 in
15916   --*=*)
15917     ac_option=`expr "x$1" : 'x\([^=]*\)='`
15918     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15919     ac_shift=:
15920     ;;
15921   -*)
15922     ac_option=$1
15923     ac_optarg=$2
15924     ac_shift=shift
15925     ;;
15926   *) # This is not an option, so the user has probably given explicit
15927      # arguments.
15928      ac_option=$1
15929      ac_need_defaults=false;;
15930   esac
15931
15932   case $ac_option in
15933   # Handling of the options.
15934 _ACEOF
15935 cat >>$CONFIG_STATUS <<\_ACEOF
15936   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15937     ac_cs_recheck=: ;;
15938   --version | --vers* | -V )
15939     echo "$ac_cs_version"; exit 0 ;;
15940   --he | --h)
15941     # Conflict between --help and --header
15942     { { echo "$as_me:$LINENO: error: ambiguous option: $1
15943 Try \`$0 --help' for more information." >&5
15944 echo "$as_me: error: ambiguous option: $1
15945 Try \`$0 --help' for more information." >&2;}
15946    { (exit 1); exit 1; }; };;
15947   --help | --hel | -h )
15948     echo "$ac_cs_usage"; exit 0 ;;
15949   --debug | --d* | -d )
15950     debug=: ;;
15951   --file | --fil | --fi | --f )
15952     $ac_shift
15953     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15954     ac_need_defaults=false;;
15955   --header | --heade | --head | --hea )
15956     $ac_shift
15957     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15958     ac_need_defaults=false;;
15959   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15960   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15961     ac_cs_silent=: ;;
15962
15963   # This is an error.
15964   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15965 Try \`$0 --help' for more information." >&5
15966 echo "$as_me: error: unrecognized option: $1
15967 Try \`$0 --help' for more information." >&2;}
15968    { (exit 1); exit 1; }; } ;;
15969
15970   *) ac_config_targets="$ac_config_targets $1" ;;
15971
15972   esac
15973   shift
15974 done
15975
15976 ac_configure_extra_args=
15977
15978 if $ac_cs_silent; then
15979   exec 6>/dev/null
15980   ac_configure_extra_args="$ac_configure_extra_args --silent"
15981 fi
15982
15983 _ACEOF
15984 cat >>$CONFIG_STATUS <<_ACEOF
15985 if \$ac_cs_recheck; then
15986   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15987   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15988 fi
15989
15990 _ACEOF
15991
15992 cat >>$CONFIG_STATUS <<_ACEOF
15993 #
15994 # INIT-COMMANDS section.
15995 #
15996
15997 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15998
15999
16000 _ACEOF
16001
16002
16003
16004 cat >>$CONFIG_STATUS <<\_ACEOF
16005 for ac_config_target in $ac_config_targets
16006 do
16007   case "$ac_config_target" in
16008   # Handling of arguments.
16009   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16010   "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
16011   "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
16012   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
16013   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16014   "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
16015   "muttbug.sh" ) CONFIG_FILES="$CONFIG_FILES muttbug.sh" ;;
16016   "imap/Makefile" ) CONFIG_FILES="$CONFIG_FILES imap/Makefile" ;;
16017   "Muttrc.head" ) CONFIG_FILES="$CONFIG_FILES Muttrc.head" ;;
16018   "doc/instdoc.sh" ) CONFIG_FILES="$CONFIG_FILES doc/instdoc.sh" ;;
16019   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16020   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16021   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16022   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16023 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16024    { (exit 1); exit 1; }; };;
16025   esac
16026 done
16027
16028 # If the user did not use the arguments to specify the items to instantiate,
16029 # then the envvar interface is used.  Set only those that are not.
16030 # We use the long form for the default assignment because of an extremely
16031 # bizarre bug on SunOS 4.1.3.
16032 if $ac_need_defaults; then
16033   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16034   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16035   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16036 fi
16037
16038 # Have a temporary directory for convenience.  Make it in the build tree
16039 # simply because there is no reason to put it here, and in addition,
16040 # creating and moving files from /tmp can sometimes cause problems.
16041 # Create a temporary directory, and hook for its removal unless debugging.
16042 $debug ||
16043 {
16044   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16045   trap '{ (exit 1); exit 1; }' 1 2 13 15
16046 }
16047
16048 # Create a (secure) tmp directory for tmp files.
16049
16050 {
16051   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
16052   test -n "$tmp" && test -d "$tmp"
16053 }  ||
16054 {
16055   tmp=./confstat$$-$RANDOM
16056   (umask 077 && mkdir $tmp)
16057 } ||
16058 {
16059    echo "$me: cannot create a temporary directory in ." >&2
16060    { (exit 1); exit 1; }
16061 }
16062
16063 _ACEOF
16064
16065 cat >>$CONFIG_STATUS <<_ACEOF
16066
16067 #
16068 # CONFIG_FILES section.
16069 #
16070
16071 # No need to generate the scripts if there are no CONFIG_FILES.
16072 # This happens for instance when ./config.status config.h
16073 if test -n "\$CONFIG_FILES"; then
16074   # Protect against being on the right side of a sed subst in config.status.
16075   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16076    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16077 s,@SHELL@,$SHELL,;t t
16078 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16079 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16080 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16081 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16082 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16083 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16084 s,@exec_prefix@,$exec_prefix,;t t
16085 s,@prefix@,$prefix,;t t
16086 s,@program_transform_name@,$program_transform_name,;t t
16087 s,@bindir@,$bindir,;t t
16088 s,@sbindir@,$sbindir,;t t
16089 s,@libexecdir@,$libexecdir,;t t
16090 s,@datadir@,$datadir,;t t
16091 s,@sysconfdir@,$sysconfdir,;t t
16092 s,@sharedstatedir@,$sharedstatedir,;t t
16093 s,@localstatedir@,$localstatedir,;t t
16094 s,@libdir@,$libdir,;t t
16095 s,@includedir@,$includedir,;t t
16096 s,@oldincludedir@,$oldincludedir,;t t
16097 s,@infodir@,$infodir,;t t
16098 s,@mandir@,$mandir,;t t
16099 s,@build_alias@,$build_alias,;t t
16100 s,@host_alias@,$host_alias,;t t
16101 s,@target_alias@,$target_alias,;t t
16102 s,@DEFS@,$DEFS,;t t
16103 s,@ECHO_C@,$ECHO_C,;t t
16104 s,@ECHO_N@,$ECHO_N,;t t
16105 s,@ECHO_T@,$ECHO_T,;t t
16106 s,@LIBS@,$LIBS,;t t
16107 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16108 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16109 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16110 s,@CYGPATH_W@,$CYGPATH_W,;t t
16111 s,@PACKAGE@,$PACKAGE,;t t
16112 s,@VERSION@,$VERSION,;t t
16113 s,@ACLOCAL@,$ACLOCAL,;t t
16114 s,@AUTOCONF@,$AUTOCONF,;t t
16115 s,@AUTOMAKE@,$AUTOMAKE,;t t
16116 s,@AUTOHEADER@,$AUTOHEADER,;t t
16117 s,@MAKEINFO@,$MAKEINFO,;t t
16118 s,@AMTAR@,$AMTAR,;t t
16119 s,@install_sh@,$install_sh,;t t
16120 s,@STRIP@,$STRIP,;t t
16121 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16122 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
16123 s,@AWK@,$AWK,;t t
16124 s,@SET_MAKE@,$SET_MAKE,;t t
16125 s,@am__leading_dot@,$am__leading_dot,;t t
16126 s,@build@,$build,;t t
16127 s,@build_cpu@,$build_cpu,;t t
16128 s,@build_vendor@,$build_vendor,;t t
16129 s,@build_os@,$build_os,;t t
16130 s,@host@,$host,;t t
16131 s,@host_cpu@,$host_cpu,;t t
16132 s,@host_vendor@,$host_vendor,;t t
16133 s,@host_os@,$host_os,;t t
16134 s,@CC@,$CC,;t t
16135 s,@CFLAGS@,$CFLAGS,;t t
16136 s,@LDFLAGS@,$LDFLAGS,;t t
16137 s,@CPPFLAGS@,$CPPFLAGS,;t t
16138 s,@ac_ct_CC@,$ac_ct_CC,;t t
16139 s,@EXEEXT@,$EXEEXT,;t t
16140 s,@OBJEXT@,$OBJEXT,;t t
16141 s,@DEPDIR@,$DEPDIR,;t t
16142 s,@am__include@,$am__include,;t t
16143 s,@am__quote@,$am__quote,;t t
16144 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16145 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16146 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16147 s,@CCDEPMODE@,$CCDEPMODE,;t t
16148 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16149 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
16150 s,@CPP@,$CPP,;t t
16151 s,@EGREP@,$EGREP,;t t
16152 s,@U@,$U,;t t
16153 s,@ANSI2KNR@,$ANSI2KNR,;t t
16154 s,@RANLIB@,$RANLIB,;t t
16155 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16156 s,@AR@,$AR,;t t
16157 s,@ac_ct_AR@,$ac_ct_AR,;t t
16158 s,@DBX@,$DBX,;t t
16159 s,@GDB@,$GDB,;t t
16160 s,@SDB@,$SDB,;t t
16161 s,@DEBUGGER@,$DEBUGGER,;t t
16162 s,@SENDMAIL@,$SENDMAIL,;t t
16163 s,@OPS@,$OPS,;t t
16164 s,@PGPAUX_TARGET@,$PGPAUX_TARGET,;t t
16165 s,@SMIMEAUX_TARGET@,$SMIMEAUX_TARGET,;t t
16166 s,@SUBVERSION@,$SUBVERSION,;t t
16167 s,@ISPELL@,$ISPELL,;t t
16168 s,@LIBOBJS@,$LIBOBJS,;t t
16169 s,@DOTLOCK_TARGET@,$DOTLOCK_TARGET,;t t
16170 s,@docdir@,$docdir,;t t
16171 s,@DOTLOCK_GROUP@,$DOTLOCK_GROUP,;t t
16172 s,@DOTLOCK_PERMISSION@,$DOTLOCK_PERMISSION,;t t
16173 s,@BUILD_IMAP_TRUE@,$BUILD_IMAP_TRUE,;t t
16174 s,@BUILD_IMAP_FALSE@,$BUILD_IMAP_FALSE,;t t
16175 s,@KRB5CFGPATH@,$KRB5CFGPATH,;t t
16176 s,@USE_GSS_TRUE@,$USE_GSS_TRUE,;t t
16177 s,@USE_GSS_FALSE@,$USE_GSS_FALSE,;t t
16178 s,@USE_SSL_TRUE@,$USE_SSL_TRUE,;t t
16179 s,@USE_SSL_FALSE@,$USE_SSL_FALSE,;t t
16180 s,@USE_GNUTLS_TRUE@,$USE_GNUTLS_TRUE,;t t
16181 s,@USE_GNUTLS_FALSE@,$USE_GNUTLS_FALSE,;t t
16182 s,@USE_SASL_TRUE@,$USE_SASL_TRUE,;t t
16183 s,@USE_SASL_FALSE@,$USE_SASL_FALSE,;t t
16184 s,@MUTTLIBS@,$MUTTLIBS,;t t
16185 s,@MUTT_LIB_OBJECTS@,$MUTT_LIB_OBJECTS,;t t
16186 s,@LIBIMAP@,$LIBIMAP,;t t
16187 s,@LIBIMAPDEPS@,$LIBIMAPDEPS,;t t
16188 s,@ALLOCA@,$ALLOCA,;t t
16189 s,@GLIBC21@,$GLIBC21,;t t
16190 s,@LIBICONV@,$LIBICONV,;t t
16191 s,@USE_NLS@,$USE_NLS,;t t
16192 s,@MSGFMT@,$MSGFMT,;t t
16193 s,@GMSGFMT@,$GMSGFMT,;t t
16194 s,@XGETTEXT@,$XGETTEXT,;t t
16195 s,@INTLBISON@,$INTLBISON,;t t
16196 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
16197 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
16198 s,@CATALOGS@,$CATALOGS,;t t
16199 s,@CATOBJEXT@,$CATOBJEXT,;t t
16200 s,@GMOFILES@,$GMOFILES,;t t
16201 s,@INTLLIBS@,$INTLLIBS,;t t
16202 s,@INTLOBJS@,$INTLOBJS,;t t
16203 s,@POFILES@,$POFILES,;t t
16204 s,@POSUB@,$POSUB,;t t
16205 s,@DATADIRNAME@,$DATADIRNAME,;t t
16206 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
16207 s,@GENCAT@,$GENCAT,;t t
16208 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
16209 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
16210 s,@mutt_libesmtp_config_path@,$mutt_libesmtp_config_path,;t t
16211 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16212 CEOF
16213
16214 _ACEOF
16215
16216   cat >>$CONFIG_STATUS <<\_ACEOF
16217   # Split the substitutions into bite-sized pieces for seds with
16218   # small command number limits, like on Digital OSF/1 and HP-UX.
16219   ac_max_sed_lines=48
16220   ac_sed_frag=1 # Number of current file.
16221   ac_beg=1 # First line for current file.
16222   ac_end=$ac_max_sed_lines # Line after last line for current file.
16223   ac_more_lines=:
16224   ac_sed_cmds=
16225   while $ac_more_lines; do
16226     if test $ac_beg -gt 1; then
16227       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16228     else
16229       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16230     fi
16231     if test ! -s $tmp/subs.frag; then
16232       ac_more_lines=false
16233     else
16234       # The purpose of the label and of the branching condition is to
16235       # speed up the sed processing (if there are no `@' at all, there
16236       # is no need to browse any of the substitutions).
16237       # These are the two extra sed commands mentioned above.
16238       (echo ':t
16239   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16240       if test -z "$ac_sed_cmds"; then
16241         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16242       else
16243         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16244       fi
16245       ac_sed_frag=`expr $ac_sed_frag + 1`
16246       ac_beg=$ac_end
16247       ac_end=`expr $ac_end + $ac_max_sed_lines`
16248     fi
16249   done
16250   if test -z "$ac_sed_cmds"; then
16251     ac_sed_cmds=cat
16252   fi
16253 fi # test -n "$CONFIG_FILES"
16254
16255 _ACEOF
16256 cat >>$CONFIG_STATUS <<\_ACEOF
16257 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16258   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16259   case $ac_file in
16260   - | *:- | *:-:* ) # input from stdin
16261         cat >$tmp/stdin
16262         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16263         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16264   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16265         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16266   * )   ac_file_in=$ac_file.in ;;
16267   esac
16268
16269   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16270   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16271 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16272          X"$ac_file" : 'X\(//\)[^/]' \| \
16273          X"$ac_file" : 'X\(//\)$' \| \
16274          X"$ac_file" : 'X\(/\)' \| \
16275          .     : '\(.\)' 2>/dev/null ||
16276 echo X"$ac_file" |
16277     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16278           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16279           /^X\(\/\/\)$/{ s//\1/; q; }
16280           /^X\(\/\).*/{ s//\1/; q; }
16281           s/.*/./; q'`
16282   { if $as_mkdir_p; then
16283     mkdir -p "$ac_dir"
16284   else
16285     as_dir="$ac_dir"
16286     as_dirs=
16287     while test ! -d "$as_dir"; do
16288       as_dirs="$as_dir $as_dirs"
16289       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16290 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16291          X"$as_dir" : 'X\(//\)[^/]' \| \
16292          X"$as_dir" : 'X\(//\)$' \| \
16293          X"$as_dir" : 'X\(/\)' \| \
16294          .     : '\(.\)' 2>/dev/null ||
16295 echo X"$as_dir" |
16296     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16297           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16298           /^X\(\/\/\)$/{ s//\1/; q; }
16299           /^X\(\/\).*/{ s//\1/; q; }
16300           s/.*/./; q'`
16301     done
16302     test ! -n "$as_dirs" || mkdir $as_dirs
16303   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16304 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16305    { (exit 1); exit 1; }; }; }
16306
16307   ac_builddir=.
16308
16309 if test "$ac_dir" != .; then
16310   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16311   # A "../" for each directory in $ac_dir_suffix.
16312   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16313 else
16314   ac_dir_suffix= ac_top_builddir=
16315 fi
16316
16317 case $srcdir in
16318   .)  # No --srcdir option.  We are building in place.
16319     ac_srcdir=.
16320     if test -z "$ac_top_builddir"; then
16321        ac_top_srcdir=.
16322     else
16323        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16324     fi ;;
16325   [\\/]* | ?:[\\/]* )  # Absolute path.
16326     ac_srcdir=$srcdir$ac_dir_suffix;
16327     ac_top_srcdir=$srcdir ;;
16328   *) # Relative path.
16329     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16330     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16331 esac
16332 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16333 # absolute.
16334 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16335 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16336 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16337 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16338
16339
16340   case $INSTALL in
16341   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16342   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16343   esac
16344
16345   if test x"$ac_file" != x-; then
16346     { echo "$as_me:$LINENO: creating $ac_file" >&5
16347 echo "$as_me: creating $ac_file" >&6;}
16348     rm -f "$ac_file"
16349   fi
16350   # Let's still pretend it is `configure' which instantiates (i.e., don't
16351   # use $as_me), people would be surprised to read:
16352   #    /* config.h.  Generated by config.status.  */
16353   if test x"$ac_file" = x-; then
16354     configure_input=
16355   else
16356     configure_input="$ac_file.  "
16357   fi
16358   configure_input=$configure_input"Generated from `echo $ac_file_in |
16359                                      sed 's,.*/,,'` by configure."
16360
16361   # First look for the input files in the build tree, otherwise in the
16362   # src tree.
16363   ac_file_inputs=`IFS=:
16364     for f in $ac_file_in; do
16365       case $f in
16366       -) echo $tmp/stdin ;;
16367       [\\/$]*)
16368          # Absolute (can't be DOS-style, as IFS=:)
16369          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16370 echo "$as_me: error: cannot find input file: $f" >&2;}
16371    { (exit 1); exit 1; }; }
16372          echo $f;;
16373       *) # Relative
16374          if test -f "$f"; then
16375            # Build tree
16376            echo $f
16377          elif test -f "$srcdir/$f"; then
16378            # Source tree
16379            echo $srcdir/$f
16380          else
16381            # /dev/null tree
16382            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16383 echo "$as_me: error: cannot find input file: $f" >&2;}
16384    { (exit 1); exit 1; }; }
16385          fi;;
16386       esac
16387     done` || { (exit 1); exit 1; }
16388 _ACEOF
16389 cat >>$CONFIG_STATUS <<_ACEOF
16390   sed "$ac_vpsub
16391 $extrasub
16392 _ACEOF
16393 cat >>$CONFIG_STATUS <<\_ACEOF
16394 :t
16395 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16396 s,@configure_input@,$configure_input,;t t
16397 s,@srcdir@,$ac_srcdir,;t t
16398 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16399 s,@top_srcdir@,$ac_top_srcdir,;t t
16400 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16401 s,@builddir@,$ac_builddir,;t t
16402 s,@abs_builddir@,$ac_abs_builddir,;t t
16403 s,@top_builddir@,$ac_top_builddir,;t t
16404 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16405 s,@INSTALL@,$ac_INSTALL,;t t
16406 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16407   rm -f $tmp/stdin
16408   if test x"$ac_file" != x-; then
16409     mv $tmp/out $ac_file
16410   else
16411     cat $tmp/out
16412     rm -f $tmp/out
16413   fi
16414
16415 done
16416 _ACEOF
16417 cat >>$CONFIG_STATUS <<\_ACEOF
16418
16419 #
16420 # CONFIG_HEADER section.
16421 #
16422
16423 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16424 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16425 #
16426 # ac_d sets the value in "#define NAME VALUE" lines.
16427 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
16428 ac_dB='[        ].*$,\1#\2'
16429 ac_dC=' '
16430 ac_dD=',;t'
16431 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16432 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16433 ac_uB='$,\1#\2define\3'
16434 ac_uC=' '
16435 ac_uD=',;t'
16436
16437 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16438   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16439   case $ac_file in
16440   - | *:- | *:-:* ) # input from stdin
16441         cat >$tmp/stdin
16442         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16443         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16444   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16445         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16446   * )   ac_file_in=$ac_file.in ;;
16447   esac
16448
16449   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16450 echo "$as_me: creating $ac_file" >&6;}
16451
16452   # First look for the input files in the build tree, otherwise in the
16453   # src tree.
16454   ac_file_inputs=`IFS=:
16455     for f in $ac_file_in; do
16456       case $f in
16457       -) echo $tmp/stdin ;;
16458       [\\/$]*)
16459          # Absolute (can't be DOS-style, as IFS=:)
16460          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16461 echo "$as_me: error: cannot find input file: $f" >&2;}
16462    { (exit 1); exit 1; }; }
16463          echo $f;;
16464       *) # Relative
16465          if test -f "$f"; then
16466            # Build tree
16467            echo $f
16468          elif test -f "$srcdir/$f"; then
16469            # Source tree
16470            echo $srcdir/$f
16471          else
16472            # /dev/null tree
16473            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16474 echo "$as_me: error: cannot find input file: $f" >&2;}
16475    { (exit 1); exit 1; }; }
16476          fi;;
16477       esac
16478     done` || { (exit 1); exit 1; }
16479   # Remove the trailing spaces.
16480   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
16481
16482 _ACEOF
16483
16484 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16485 # `conftest.undefs', that substitutes the proper values into
16486 # config.h.in to produce config.h.  The first handles `#define'
16487 # templates, and the second `#undef' templates.
16488 # And first: Protect against being on the right side of a sed subst in
16489 # config.status.  Protect against being in an unquoted here document
16490 # in config.status.
16491 rm -f conftest.defines conftest.undefs
16492 # Using a here document instead of a string reduces the quoting nightmare.
16493 # Putting comments in sed scripts is not portable.
16494 #
16495 # `end' is used to avoid that the second main sed command (meant for
16496 # 0-ary CPP macros) applies to n-ary macro definitions.
16497 # See the Autoconf documentation for `clear'.
16498 cat >confdef2sed.sed <<\_ACEOF
16499 s/[\\&,]/\\&/g
16500 s,[\\$`],\\&,g
16501 t clear
16502 : clear
16503 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16504 t end
16505 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16506 : end
16507 _ACEOF
16508 # If some macros were called several times there might be several times
16509 # the same #defines, which is useless.  Nevertheless, we may not want to
16510 # sort them, since we want the *last* AC-DEFINE to be honored.
16511 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16512 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16513 rm -f confdef2sed.sed
16514
16515 # This sed command replaces #undef with comments.  This is necessary, for
16516 # example, in the case of _POSIX_SOURCE, which is predefined and required
16517 # on some systems where configure will not decide to define it.
16518 cat >>conftest.undefs <<\_ACEOF
16519 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16520 _ACEOF
16521
16522 # Break up conftest.defines because some shells have a limit on the size
16523 # of here documents, and old seds have small limits too (100 cmds).
16524 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16525 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16526 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16527 echo '  :' >>$CONFIG_STATUS
16528 rm -f conftest.tail
16529 while grep . conftest.defines >/dev/null
16530 do
16531   # Write a limited-size here document to $tmp/defines.sed.
16532   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16533   # Speed up: don't consider the non `#define' lines.
16534   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
16535   # Work around the forget-to-reset-the-flag bug.
16536   echo 't clr' >>$CONFIG_STATUS
16537   echo ': clr' >>$CONFIG_STATUS
16538   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16539   echo 'CEOF
16540   sed -f $tmp/defines.sed $tmp/in >$tmp/out
16541   rm -f $tmp/in
16542   mv $tmp/out $tmp/in
16543 ' >>$CONFIG_STATUS
16544   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16545   rm -f conftest.defines
16546   mv conftest.tail conftest.defines
16547 done
16548 rm -f conftest.defines
16549 echo '  fi # grep' >>$CONFIG_STATUS
16550 echo >>$CONFIG_STATUS
16551
16552 # Break up conftest.undefs because some shells have a limit on the size
16553 # of here documents, and old seds have small limits too (100 cmds).
16554 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
16555 rm -f conftest.tail
16556 while grep . conftest.undefs >/dev/null
16557 do
16558   # Write a limited-size here document to $tmp/undefs.sed.
16559   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16560   # Speed up: don't consider the non `#undef'
16561   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
16562   # Work around the forget-to-reset-the-flag bug.
16563   echo 't clr' >>$CONFIG_STATUS
16564   echo ': clr' >>$CONFIG_STATUS
16565   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16566   echo 'CEOF
16567   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16568   rm -f $tmp/in
16569   mv $tmp/out $tmp/in
16570 ' >>$CONFIG_STATUS
16571   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16572   rm -f conftest.undefs
16573   mv conftest.tail conftest.undefs
16574 done
16575 rm -f conftest.undefs
16576
16577 cat >>$CONFIG_STATUS <<\_ACEOF
16578   # Let's still pretend it is `configure' which instantiates (i.e., don't
16579   # use $as_me), people would be surprised to read:
16580   #    /* config.h.  Generated by config.status.  */
16581   if test x"$ac_file" = x-; then
16582     echo "/* Generated by configure.  */" >$tmp/config.h
16583   else
16584     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
16585   fi
16586   cat $tmp/in >>$tmp/config.h
16587   rm -f $tmp/in
16588   if test x"$ac_file" != x-; then
16589     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16590       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16591 echo "$as_me: $ac_file is unchanged" >&6;}
16592     else
16593       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16594 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16595          X"$ac_file" : 'X\(//\)[^/]' \| \
16596          X"$ac_file" : 'X\(//\)$' \| \
16597          X"$ac_file" : 'X\(/\)' \| \
16598          .     : '\(.\)' 2>/dev/null ||
16599 echo X"$ac_file" |
16600     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16601           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16602           /^X\(\/\/\)$/{ s//\1/; q; }
16603           /^X\(\/\).*/{ s//\1/; q; }
16604           s/.*/./; q'`
16605       { if $as_mkdir_p; then
16606     mkdir -p "$ac_dir"
16607   else
16608     as_dir="$ac_dir"
16609     as_dirs=
16610     while test ! -d "$as_dir"; do
16611       as_dirs="$as_dir $as_dirs"
16612       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16613 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16614          X"$as_dir" : 'X\(//\)[^/]' \| \
16615          X"$as_dir" : 'X\(//\)$' \| \
16616          X"$as_dir" : 'X\(/\)' \| \
16617          .     : '\(.\)' 2>/dev/null ||
16618 echo X"$as_dir" |
16619     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16620           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16621           /^X\(\/\/\)$/{ s//\1/; q; }
16622           /^X\(\/\).*/{ s//\1/; q; }
16623           s/.*/./; q'`
16624     done
16625     test ! -n "$as_dirs" || mkdir $as_dirs
16626   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16627 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16628    { (exit 1); exit 1; }; }; }
16629
16630       rm -f $ac_file
16631       mv $tmp/config.h $ac_file
16632     fi
16633   else
16634     cat $tmp/config.h
16635     rm -f $tmp/config.h
16636   fi
16637 # Compute $ac_file's index in $config_headers.
16638 _am_stamp_count=1
16639 for _am_header in $config_headers :; do
16640   case $_am_header in
16641     $ac_file | $ac_file:* )
16642       break ;;
16643     * )
16644       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16645   esac
16646 done
16647 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
16648 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16649          X$ac_file : 'X\(//\)[^/]' \| \
16650          X$ac_file : 'X\(//\)$' \| \
16651          X$ac_file : 'X\(/\)' \| \
16652          .     : '\(.\)' 2>/dev/null ||
16653 echo X$ac_file |
16654     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16655           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16656           /^X\(\/\/\)$/{ s//\1/; q; }
16657           /^X\(\/\).*/{ s//\1/; q; }
16658           s/.*/./; q'`/stamp-h$_am_stamp_count
16659 done
16660 _ACEOF
16661 cat >>$CONFIG_STATUS <<\_ACEOF
16662
16663 #
16664 # CONFIG_COMMANDS section.
16665 #
16666 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16667   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16668   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16669   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16670 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16671          X"$ac_dest" : 'X\(//\)[^/]' \| \
16672          X"$ac_dest" : 'X\(//\)$' \| \
16673          X"$ac_dest" : 'X\(/\)' \| \
16674          .     : '\(.\)' 2>/dev/null ||
16675 echo X"$ac_dest" |
16676     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16677           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16678           /^X\(\/\/\)$/{ s//\1/; q; }
16679           /^X\(\/\).*/{ s//\1/; q; }
16680           s/.*/./; q'`
16681   ac_builddir=.
16682
16683 if test "$ac_dir" != .; then
16684   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16685   # A "../" for each directory in $ac_dir_suffix.
16686   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16687 else
16688   ac_dir_suffix= ac_top_builddir=
16689 fi
16690
16691 case $srcdir in
16692   .)  # No --srcdir option.  We are building in place.
16693     ac_srcdir=.
16694     if test -z "$ac_top_builddir"; then
16695        ac_top_srcdir=.
16696     else
16697        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16698     fi ;;
16699   [\\/]* | ?:[\\/]* )  # Absolute path.
16700     ac_srcdir=$srcdir$ac_dir_suffix;
16701     ac_top_srcdir=$srcdir ;;
16702   *) # Relative path.
16703     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16704     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16705 esac
16706 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16707 # absolute.
16708 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16709 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16710 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16711 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16712
16713
16714   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16715 echo "$as_me: executing $ac_dest commands" >&6;}
16716   case $ac_dest in
16717     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16718   # Strip MF so we end up with the name of the file.
16719   mf=`echo "$mf" | sed -e 's/:.*$//'`
16720   # Check whether this is an Automake generated Makefile or not.
16721   # We used to match only the files named `Makefile.in', but
16722   # some people rename them; so instead we look at the file content.
16723   # Grep'ing the first line is not enough: some people post-process
16724   # each Makefile.in and add a new line on top of each file to say so.
16725   # So let's grep whole file.
16726   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
16727     dirpart=`(dirname "$mf") 2>/dev/null ||
16728 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16729          X"$mf" : 'X\(//\)[^/]' \| \
16730          X"$mf" : 'X\(//\)$' \| \
16731          X"$mf" : 'X\(/\)' \| \
16732          .     : '\(.\)' 2>/dev/null ||
16733 echo X"$mf" |
16734     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16735           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16736           /^X\(\/\/\)$/{ s//\1/; q; }
16737           /^X\(\/\).*/{ s//\1/; q; }
16738           s/.*/./; q'`
16739   else
16740     continue
16741   fi
16742   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
16743   # Extract the definition of DEP_FILES from the Makefile without
16744   # running `make'.
16745   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
16746   test -z "$DEPDIR" && continue
16747   # When using ansi2knr, U may be empty or an underscore; expand it
16748   U=`sed -n -e '/^U = / s///p' < "$mf"`
16749   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
16750   # We invoke sed twice because it is the simplest approach to
16751   # changing $(DEPDIR) to its actual value in the expansion.
16752   for file in `sed -n -e '
16753     /^DEP_FILES = .*\\\\$/ {
16754       s/^DEP_FILES = //
16755       :loop
16756         s/\\\\$//
16757         p
16758         n
16759         /\\\\$/ b loop
16760       p
16761     }
16762     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
16763        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16764     # Make sure the directory exists.
16765     test -f "$dirpart/$file" && continue
16766     fdir=`(dirname "$file") 2>/dev/null ||
16767 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16768          X"$file" : 'X\(//\)[^/]' \| \
16769          X"$file" : 'X\(//\)$' \| \
16770          X"$file" : 'X\(/\)' \| \
16771          .     : '\(.\)' 2>/dev/null ||
16772 echo X"$file" |
16773     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16774           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16775           /^X\(\/\/\)$/{ s//\1/; q; }
16776           /^X\(\/\).*/{ s//\1/; q; }
16777           s/.*/./; q'`
16778     { if $as_mkdir_p; then
16779     mkdir -p $dirpart/$fdir
16780   else
16781     as_dir=$dirpart/$fdir
16782     as_dirs=
16783     while test ! -d "$as_dir"; do
16784       as_dirs="$as_dir $as_dirs"
16785       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16786 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16787          X"$as_dir" : 'X\(//\)[^/]' \| \
16788          X"$as_dir" : 'X\(//\)$' \| \
16789          X"$as_dir" : 'X\(/\)' \| \
16790          .     : '\(.\)' 2>/dev/null ||
16791 echo X"$as_dir" |
16792     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16793           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16794           /^X\(\/\/\)$/{ s//\1/; q; }
16795           /^X\(\/\).*/{ s//\1/; q; }
16796           s/.*/./; q'`
16797     done
16798     test ! -n "$as_dirs" || mkdir $as_dirs
16799   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
16800 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
16801    { (exit 1); exit 1; }; }; }
16802
16803     # echo "creating $dirpart/$file"
16804     echo '# dummy' > "$dirpart/$file"
16805   done
16806 done
16807  ;;
16808     default-1 ) for ac_file in $CONFIG_FILES; do
16809         # Support "outfile[:infile[:infile...]]"
16810         case "$ac_file" in
16811           *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16812         esac
16813         # PO directories have a Makefile.in generated from Makefile.in.in.
16814         case "$ac_file" in */Makefile.in)
16815           # Adjust a relative srcdir.
16816           ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16817           ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16818           ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16819           # In autoconf-2.13 it is called $ac_given_srcdir.
16820           # In autoconf-2.50 it is called $srcdir.
16821           test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16822           case "$ac_given_srcdir" in
16823             .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16824             /*) top_srcdir="$ac_given_srcdir" ;;
16825             *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
16826           esac
16827           if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16828             rm -f "$ac_dir/POTFILES"
16829             test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16830             sed -e "/^#/d" -e "/^[      ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
16831             test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16832             sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
16833           fi
16834           ;;
16835         esac
16836       done ;;
16837   esac
16838 done
16839 _ACEOF
16840
16841 cat >>$CONFIG_STATUS <<\_ACEOF
16842
16843 { (exit 0); exit 0; }
16844 _ACEOF
16845 chmod +x $CONFIG_STATUS
16846 ac_clean_files=$ac_clean_files_save
16847
16848
16849 # configure is writing to config.log, and then calls config.status.
16850 # config.status does its own redirection, appending to config.log.
16851 # Unfortunately, on DOS this fails, as config.log is still kept open
16852 # by configure, so config.status won't be able to write to it; its
16853 # output is simply discarded.  So we exec the FD to /dev/null,
16854 # effectively closing config.log, so it can be properly (re)opened and
16855 # appended to by config.status.  When coming back to configure, we
16856 # need to make the FD available again.
16857 if test "$no_create" != yes; then
16858   ac_cs_success=:
16859   ac_config_status_args=
16860   test "$silent" = yes &&
16861     ac_config_status_args="$ac_config_status_args --quiet"
16862   exec 5>/dev/null
16863   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16864   exec 5>>config.log
16865   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16866   # would make configure fail if this is the last instruction.
16867   $ac_cs_success || { (exit 1); exit 1; }
16868 fi
16869