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_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-locales-fix       The result of isprint() is unreliable
867   --enable-exact-address     Enable regeneration of email addresses
868   --disable-iconv            Disable iconv support
869   --disable-nls              Do not use Native Language Support
870
871 Optional Packages:
872   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
873   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
874   --with-mixmaster=PATH    Include Mixmaster support
875   --with-slang=DIR         Use S-Lang instead of ncurses
876   --with-curses=DIR          Where ncurses is installed
877   --with-regex               Use the GNU regex library
878   --with-homespool=FILE    File in user's directory where new mail is spooled
879   --with-mailpath=DIR        Directory where spool mailboxes are located
880   --with-docdir=PATH         Specify where to put the documentation
881   --with-domain=DOMAIN       Specify your DNS domain name
882     --with-gss=PFX         Compile in GSSAPI authentication for IMAP
883   --with-ssl=PFX           Compile in SSL support for POP/IMAP
884   --with-nss=PFX           Compile in SSL support for POP/IMAP via NSS
885   --with-sasl=PFX          Use Cyrus SASL library for POP/IMAP authentication
886   --with-sasl2=PFX         Use Cyrus SASL library version 2 for POP/IMAP authentication
887   --with-idn=PFX                Use GNU libidn for domain names
888   --with-exec-shell=SHELL    Specify alternate shell (ONLY if /bin/sh is broken)
889   --with-libiconv-prefix=DIR Search for libiconv in DIR/include and DIR/lib
890   --with-included-gettext    Use the GNU gettext library included here
891   --without-wc-funcs         Do not use the system's wchar_t functions
892   --with-libesmtp=DIR      Compile in support for libesmtp for the MTA
893
894 Some influential environment variables:
895   CC          C compiler command
896   CFLAGS      C compiler flags
897   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
898               nonstandard directory <lib dir>
899   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
900               headers in a nonstandard directory <include dir>
901   CPP         C preprocessor
902
903 Use these variables to override the choices made by `configure' or to help
904 it to find libraries and programs with nonstandard names/locations.
905
906 _ACEOF
907 fi
908
909 if test "$ac_init_help" = "recursive"; then
910   # If there are subdirs, report their specific --help.
911   ac_popdir=`pwd`
912   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
913     test -d $ac_dir || continue
914     ac_builddir=.
915
916 if test "$ac_dir" != .; then
917   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
918   # A "../" for each directory in $ac_dir_suffix.
919   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
920 else
921   ac_dir_suffix= ac_top_builddir=
922 fi
923
924 case $srcdir in
925   .)  # No --srcdir option.  We are building in place.
926     ac_srcdir=.
927     if test -z "$ac_top_builddir"; then
928        ac_top_srcdir=.
929     else
930        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
931     fi ;;
932   [\\/]* | ?:[\\/]* )  # Absolute path.
933     ac_srcdir=$srcdir$ac_dir_suffix;
934     ac_top_srcdir=$srcdir ;;
935   *) # Relative path.
936     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
937     ac_top_srcdir=$ac_top_builddir$srcdir ;;
938 esac
939 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
940 # absolute.
941 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
942 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
943 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
944 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
945
946     cd $ac_dir
947     # Check for guested configure; otherwise get Cygnus style configure.
948     if test -f $ac_srcdir/configure.gnu; then
949       echo
950       $SHELL $ac_srcdir/configure.gnu  --help=recursive
951     elif test -f $ac_srcdir/configure; then
952       echo
953       $SHELL $ac_srcdir/configure  --help=recursive
954     elif test -f $ac_srcdir/configure.ac ||
955            test -f $ac_srcdir/configure.in; then
956       echo
957       $ac_configure --help
958     else
959       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
960     fi
961     cd $ac_popdir
962   done
963 fi
964
965 test -n "$ac_init_help" && exit 0
966 if $ac_init_version; then
967   cat <<\_ACEOF
968
969 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
970 Free Software Foundation, Inc.
971 This configure script is free software; the Free Software Foundation
972 gives unlimited permission to copy, distribute and modify it.
973 _ACEOF
974   exit 0
975 fi
976 exec 5>config.log
977 cat >&5 <<_ACEOF
978 This file contains any messages produced by compilers while
979 running configure, to aid debugging if configure makes a mistake.
980
981 It was created by $as_me, which was
982 generated by GNU Autoconf 2.57.  Invocation command line was
983
984   $ $0 $@
985
986 _ACEOF
987 {
988 cat <<_ASUNAME
989 ## --------- ##
990 ## Platform. ##
991 ## --------- ##
992
993 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
994 uname -m = `(uname -m) 2>/dev/null || echo unknown`
995 uname -r = `(uname -r) 2>/dev/null || echo unknown`
996 uname -s = `(uname -s) 2>/dev/null || echo unknown`
997 uname -v = `(uname -v) 2>/dev/null || echo unknown`
998
999 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1000 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1001
1002 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1003 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1004 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1005 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1006 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1007 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1008 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1009
1010 _ASUNAME
1011
1012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1013 for as_dir in $PATH
1014 do
1015   IFS=$as_save_IFS
1016   test -z "$as_dir" && as_dir=.
1017   echo "PATH: $as_dir"
1018 done
1019
1020 } >&5
1021
1022 cat >&5 <<_ACEOF
1023
1024
1025 ## ----------- ##
1026 ## Core tests. ##
1027 ## ----------- ##
1028
1029 _ACEOF
1030
1031
1032 # Keep a trace of the command line.
1033 # Strip out --no-create and --no-recursion so they do not pile up.
1034 # Strip out --silent because we don't want to record it for future runs.
1035 # Also quote any args containing shell meta-characters.
1036 # Make two passes to allow for proper duplicate-argument suppression.
1037 ac_configure_args=
1038 ac_configure_args0=
1039 ac_configure_args1=
1040 ac_sep=
1041 ac_must_keep_next=false
1042 for ac_pass in 1 2
1043 do
1044   for ac_arg
1045   do
1046     case $ac_arg in
1047     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1048     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049     | -silent | --silent | --silen | --sile | --sil)
1050       continue ;;
1051     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1052       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1053     esac
1054     case $ac_pass in
1055     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1056     2)
1057       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1058       if test $ac_must_keep_next = true; then
1059         ac_must_keep_next=false # Got value, back to normal.
1060       else
1061         case $ac_arg in
1062           *=* | --config-cache | -C | -disable-* | --disable-* \
1063           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1064           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1065           | -with-* | --with-* | -without-* | --without-* | --x)
1066             case "$ac_configure_args0 " in
1067               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1068             esac
1069             ;;
1070           -* ) ac_must_keep_next=true ;;
1071         esac
1072       fi
1073       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1074       # Get rid of the leading space.
1075       ac_sep=" "
1076       ;;
1077     esac
1078   done
1079 done
1080 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1081 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1082
1083 # When interrupted or exit'd, cleanup temporary files, and complete
1084 # config.log.  We remove comments because anyway the quotes in there
1085 # would cause problems or look ugly.
1086 # WARNING: Be sure not to use single quotes in there, as some shells,
1087 # such as our DU 5.0 friend, will then `close' the trap.
1088 trap 'exit_status=$?
1089   # Save into config.log some information that might help in debugging.
1090   {
1091     echo
1092
1093     cat <<\_ASBOX
1094 ## ---------------- ##
1095 ## Cache variables. ##
1096 ## ---------------- ##
1097 _ASBOX
1098     echo
1099     # The following way of writing the cache mishandles newlines in values,
1100 {
1101   (set) 2>&1 |
1102     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1103     *ac_space=\ *)
1104       sed -n \
1105         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1106           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1107       ;;
1108     *)
1109       sed -n \
1110         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1111       ;;
1112     esac;
1113 }
1114     echo
1115
1116     cat <<\_ASBOX
1117 ## ----------------- ##
1118 ## Output variables. ##
1119 ## ----------------- ##
1120 _ASBOX
1121     echo
1122     for ac_var in $ac_subst_vars
1123     do
1124       eval ac_val=$`echo $ac_var`
1125       echo "$ac_var='"'"'$ac_val'"'"'"
1126     done | sort
1127     echo
1128
1129     if test -n "$ac_subst_files"; then
1130       cat <<\_ASBOX
1131 ## ------------- ##
1132 ## Output files. ##
1133 ## ------------- ##
1134 _ASBOX
1135       echo
1136       for ac_var in $ac_subst_files
1137       do
1138         eval ac_val=$`echo $ac_var`
1139         echo "$ac_var='"'"'$ac_val'"'"'"
1140       done | sort
1141       echo
1142     fi
1143
1144     if test -s confdefs.h; then
1145       cat <<\_ASBOX
1146 ## ----------- ##
1147 ## confdefs.h. ##
1148 ## ----------- ##
1149 _ASBOX
1150       echo
1151       sed "/^$/d" confdefs.h | sort
1152       echo
1153     fi
1154     test "$ac_signal" != 0 &&
1155       echo "$as_me: caught signal $ac_signal"
1156     echo "$as_me: exit $exit_status"
1157   } >&5
1158   rm -f core core.* *.core &&
1159   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1160     exit $exit_status
1161      ' 0
1162 for ac_signal in 1 2 13 15; do
1163   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1164 done
1165 ac_signal=0
1166
1167 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1168 rm -rf conftest* confdefs.h
1169 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1170 echo >confdefs.h
1171
1172 # Predefined preprocessor variables.
1173
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_NAME "$PACKAGE_NAME"
1176 _ACEOF
1177
1178
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1181 _ACEOF
1182
1183
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1186 _ACEOF
1187
1188
1189 cat >>confdefs.h <<_ACEOF
1190 #define PACKAGE_STRING "$PACKAGE_STRING"
1191 _ACEOF
1192
1193
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1196 _ACEOF
1197
1198
1199 # Let the site file select an alternate cache file if it wants to.
1200 # Prefer explicitly selected file to automatically selected ones.
1201 if test -z "$CONFIG_SITE"; then
1202   if test "x$prefix" != xNONE; then
1203     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1204   else
1205     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1206   fi
1207 fi
1208 for ac_site_file in $CONFIG_SITE; do
1209   if test -r "$ac_site_file"; then
1210     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1211 echo "$as_me: loading site script $ac_site_file" >&6;}
1212     sed 's/^/| /' "$ac_site_file" >&5
1213     . "$ac_site_file"
1214   fi
1215 done
1216
1217 if test -r "$cache_file"; then
1218   # Some versions of bash will fail to source /dev/null (special
1219   # files actually), so we avoid doing that.
1220   if test -f "$cache_file"; then
1221     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1222 echo "$as_me: loading cache $cache_file" >&6;}
1223     case $cache_file in
1224       [\\/]* | ?:[\\/]* ) . $cache_file;;
1225       *)                      . ./$cache_file;;
1226     esac
1227   fi
1228 else
1229   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1230 echo "$as_me: creating cache $cache_file" >&6;}
1231   >$cache_file
1232 fi
1233
1234 # Check that the precious variables saved in the cache have kept the same
1235 # value.
1236 ac_cache_corrupted=false
1237 for ac_var in `(set) 2>&1 |
1238                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1239   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1240   eval ac_new_set=\$ac_env_${ac_var}_set
1241   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1242   eval ac_new_val="\$ac_env_${ac_var}_value"
1243   case $ac_old_set,$ac_new_set in
1244     set,)
1245       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1246 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1247       ac_cache_corrupted=: ;;
1248     ,set)
1249       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1250 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1251       ac_cache_corrupted=: ;;
1252     ,);;
1253     *)
1254       if test "x$ac_old_val" != "x$ac_new_val"; then
1255         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1256 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1257         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1258 echo "$as_me:   former value:  $ac_old_val" >&2;}
1259         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1260 echo "$as_me:   current value: $ac_new_val" >&2;}
1261         ac_cache_corrupted=:
1262       fi;;
1263   esac
1264   # Pass precious variables to config.status.
1265   if test "$ac_new_set" = set; then
1266     case $ac_new_val in
1267     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1268       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1269     *) ac_arg=$ac_var=$ac_new_val ;;
1270     esac
1271     case " $ac_configure_args " in
1272       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1273       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1274     esac
1275   fi
1276 done
1277 if $ac_cache_corrupted; then
1278   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1279 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1280   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1281 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1282    { (exit 1); exit 1; }; }
1283 fi
1284
1285 ac_ext=c
1286 ac_cpp='$CPP $CPPFLAGS'
1287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309           ac_config_headers="$ac_config_headers config.h"
1310
1311
1312 mutt_cv_version=`cat $srcdir/VERSION`
1313
1314
1315 am__api_version="1.7"
1316 ac_aux_dir=
1317 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1318   if test -f $ac_dir/install-sh; then
1319     ac_aux_dir=$ac_dir
1320     ac_install_sh="$ac_aux_dir/install-sh -c"
1321     break
1322   elif test -f $ac_dir/install.sh; then
1323     ac_aux_dir=$ac_dir
1324     ac_install_sh="$ac_aux_dir/install.sh -c"
1325     break
1326   elif test -f $ac_dir/shtool; then
1327     ac_aux_dir=$ac_dir
1328     ac_install_sh="$ac_aux_dir/shtool install -c"
1329     break
1330   fi
1331 done
1332 if test -z "$ac_aux_dir"; then
1333   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1334 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1335    { (exit 1); exit 1; }; }
1336 fi
1337 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1338 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1339 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1340
1341 # Find a good install program.  We prefer a C program (faster),
1342 # so one script is as good as another.  But avoid the broken or
1343 # incompatible versions:
1344 # SysV /etc/install, /usr/sbin/install
1345 # SunOS /usr/etc/install
1346 # IRIX /sbin/install
1347 # AIX /bin/install
1348 # AmigaOS /C/install, which installs bootblocks on floppy discs
1349 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1350 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1351 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1352 # ./install, which can be erroneously created by make from ./install.sh.
1353 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1354 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1355 if test -z "$INSTALL"; then
1356 if test "${ac_cv_path_install+set}" = set; then
1357   echo $ECHO_N "(cached) $ECHO_C" >&6
1358 else
1359   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1360 for as_dir in $PATH
1361 do
1362   IFS=$as_save_IFS
1363   test -z "$as_dir" && as_dir=.
1364   # Account for people who put trailing slashes in PATH elements.
1365 case $as_dir/ in
1366   ./ | .// | /cC/* | \
1367   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1368   /usr/ucb/* ) ;;
1369   *)
1370     # OSF1 and SCO ODT 3.0 have their own names for install.
1371     # Don't use installbsd from OSF since it installs stuff as root
1372     # by default.
1373     for ac_prog in ginstall scoinst install; do
1374       for ac_exec_ext in '' $ac_executable_extensions; do
1375         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1376           if test $ac_prog = install &&
1377             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1378             # AIX install.  It has an incompatible calling convention.
1379             :
1380           elif test $ac_prog = install &&
1381             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1382             # program-specific install script used by HP pwplus--don't use.
1383             :
1384           else
1385             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1386             break 3
1387           fi
1388         fi
1389       done
1390     done
1391     ;;
1392 esac
1393 done
1394
1395
1396 fi
1397   if test "${ac_cv_path_install+set}" = set; then
1398     INSTALL=$ac_cv_path_install
1399   else
1400     # As a last resort, use the slow shell script.  We don't cache a
1401     # path for INSTALL within a source directory, because that will
1402     # break other packages using the cache if that directory is
1403     # removed, or if the path is relative.
1404     INSTALL=$ac_install_sh
1405   fi
1406 fi
1407 echo "$as_me:$LINENO: result: $INSTALL" >&5
1408 echo "${ECHO_T}$INSTALL" >&6
1409
1410 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1411 # It thinks the first close brace ends the variable substitution.
1412 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1413
1414 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1415
1416 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1417
1418 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1419 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1420 # Just in case
1421 sleep 1
1422 echo timestamp > conftest.file
1423 # Do `set' in a subshell so we don't clobber the current shell's
1424 # arguments.  Must try -L first in case configure is actually a
1425 # symlink; some systems play weird games with the mod time of symlinks
1426 # (eg FreeBSD returns the mod time of the symlink's containing
1427 # directory).
1428 if (
1429    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1430    if test "$*" = "X"; then
1431       # -L didn't work.
1432       set X `ls -t $srcdir/configure conftest.file`
1433    fi
1434    rm -f conftest.file
1435    if test "$*" != "X $srcdir/configure conftest.file" \
1436       && test "$*" != "X conftest.file $srcdir/configure"; then
1437
1438       # If neither matched, then we have a broken ls.  This can happen
1439       # if, for instance, CONFIG_SHELL is bash and it inherits a
1440       # broken ls alias from the environment.  This has actually
1441       # happened.  Such a system could not be considered "sane".
1442       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1443 alias in your environment" >&5
1444 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1445 alias in your environment" >&2;}
1446    { (exit 1); exit 1; }; }
1447    fi
1448
1449    test "$2" = conftest.file
1450    )
1451 then
1452    # Ok.
1453    :
1454 else
1455    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1456 Check your system clock" >&5
1457 echo "$as_me: error: newly created file is older than distributed files!
1458 Check your system clock" >&2;}
1459    { (exit 1); exit 1; }; }
1460 fi
1461 echo "$as_me:$LINENO: result: yes" >&5
1462 echo "${ECHO_T}yes" >&6
1463 test "$program_prefix" != NONE &&
1464   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1465 # Use a double $ so make ignores it.
1466 test "$program_suffix" != NONE &&
1467   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1468 # Double any \ or $.  echo might interpret backslashes.
1469 # By default was `s,x,x', remove it if useless.
1470 cat <<\_ACEOF >conftest.sed
1471 s/[\\$]/&&/g;s/;s,x,x,$//
1472 _ACEOF
1473 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1474 rm conftest.sed
1475
1476
1477 # expand $ac_aux_dir to an absolute path
1478 am_aux_dir=`cd $ac_aux_dir && pwd`
1479
1480 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1481 # Use eval to expand $SHELL
1482 if eval "$MISSING --run true"; then
1483   am_missing_run="$MISSING --run "
1484 else
1485   am_missing_run=
1486   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1487 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1488 fi
1489
1490 for ac_prog in gawk mawk nawk awk
1491 do
1492   # Extract the first word of "$ac_prog", so it can be a program name with args.
1493 set dummy $ac_prog; ac_word=$2
1494 echo "$as_me:$LINENO: checking for $ac_word" >&5
1495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1496 if test "${ac_cv_prog_AWK+set}" = set; then
1497   echo $ECHO_N "(cached) $ECHO_C" >&6
1498 else
1499   if test -n "$AWK"; then
1500   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1501 else
1502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1503 for as_dir in $PATH
1504 do
1505   IFS=$as_save_IFS
1506   test -z "$as_dir" && as_dir=.
1507   for ac_exec_ext in '' $ac_executable_extensions; do
1508   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1509     ac_cv_prog_AWK="$ac_prog"
1510     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1511     break 2
1512   fi
1513 done
1514 done
1515
1516 fi
1517 fi
1518 AWK=$ac_cv_prog_AWK
1519 if test -n "$AWK"; then
1520   echo "$as_me:$LINENO: result: $AWK" >&5
1521 echo "${ECHO_T}$AWK" >&6
1522 else
1523   echo "$as_me:$LINENO: result: no" >&5
1524 echo "${ECHO_T}no" >&6
1525 fi
1526
1527   test -n "$AWK" && break
1528 done
1529
1530 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1531 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1532 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1533 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1534   echo $ECHO_N "(cached) $ECHO_C" >&6
1535 else
1536   cat >conftest.make <<\_ACEOF
1537 all:
1538         @echo 'ac_maketemp="$(MAKE)"'
1539 _ACEOF
1540 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1541 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1542 if test -n "$ac_maketemp"; then
1543   eval ac_cv_prog_make_${ac_make}_set=yes
1544 else
1545   eval ac_cv_prog_make_${ac_make}_set=no
1546 fi
1547 rm -f conftest.make
1548 fi
1549 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1550   echo "$as_me:$LINENO: result: yes" >&5
1551 echo "${ECHO_T}yes" >&6
1552   SET_MAKE=
1553 else
1554   echo "$as_me:$LINENO: result: no" >&5
1555 echo "${ECHO_T}no" >&6
1556   SET_MAKE="MAKE=${MAKE-make}"
1557 fi
1558
1559 rm -rf .tst 2>/dev/null
1560 mkdir .tst 2>/dev/null
1561 if test -d .tst; then
1562   am__leading_dot=.
1563 else
1564   am__leading_dot=_
1565 fi
1566 rmdir .tst 2>/dev/null
1567
1568  # test to see if srcdir already configured
1569 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1570    test -f $srcdir/config.status; then
1571   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1572 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1573    { (exit 1); exit 1; }; }
1574 fi
1575
1576 # test whether we have cygpath
1577 if test -z "$CYGPATH_W"; then
1578   if (cygpath --version) >/dev/null 2>/dev/null; then
1579     CYGPATH_W='cygpath -w'
1580   else
1581     CYGPATH_W=echo
1582   fi
1583 fi
1584
1585
1586 # Define the identity of the package.
1587  PACKAGE=muttng
1588  VERSION=$mutt_cv_version
1589
1590
1591 cat >>confdefs.h <<_ACEOF
1592 #define PACKAGE "$PACKAGE"
1593 _ACEOF
1594
1595
1596 cat >>confdefs.h <<_ACEOF
1597 #define VERSION "$VERSION"
1598 _ACEOF
1599
1600 # Some tools Automake needs.
1601
1602 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1603
1604
1605 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1606
1607
1608 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1609
1610
1611 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1612
1613
1614 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1615
1616
1617 AMTAR=${AMTAR-"${am_missing_run}tar"}
1618
1619 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1620
1621 # Installed binaries are usually stripped using `strip' when the user
1622 # run `make install-strip'.  However `strip' might not be the right
1623 # tool to use in cross-compilation environments, therefore Automake
1624 # will honor the `STRIP' environment variable to overrule this program.
1625 if test "$cross_compiling" != no; then
1626   if test -n "$ac_tool_prefix"; then
1627   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1628 set dummy ${ac_tool_prefix}strip; ac_word=$2
1629 echo "$as_me:$LINENO: checking for $ac_word" >&5
1630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1631 if test "${ac_cv_prog_STRIP+set}" = set; then
1632   echo $ECHO_N "(cached) $ECHO_C" >&6
1633 else
1634   if test -n "$STRIP"; then
1635   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1636 else
1637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1638 for as_dir in $PATH
1639 do
1640   IFS=$as_save_IFS
1641   test -z "$as_dir" && as_dir=.
1642   for ac_exec_ext in '' $ac_executable_extensions; do
1643   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1644     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1646     break 2
1647   fi
1648 done
1649 done
1650
1651 fi
1652 fi
1653 STRIP=$ac_cv_prog_STRIP
1654 if test -n "$STRIP"; then
1655   echo "$as_me:$LINENO: result: $STRIP" >&5
1656 echo "${ECHO_T}$STRIP" >&6
1657 else
1658   echo "$as_me:$LINENO: result: no" >&5
1659 echo "${ECHO_T}no" >&6
1660 fi
1661
1662 fi
1663 if test -z "$ac_cv_prog_STRIP"; then
1664   ac_ct_STRIP=$STRIP
1665   # Extract the first word of "strip", so it can be a program name with args.
1666 set dummy strip; ac_word=$2
1667 echo "$as_me:$LINENO: checking for $ac_word" >&5
1668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1669 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1670   echo $ECHO_N "(cached) $ECHO_C" >&6
1671 else
1672   if test -n "$ac_ct_STRIP"; then
1673   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1674 else
1675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1676 for as_dir in $PATH
1677 do
1678   IFS=$as_save_IFS
1679   test -z "$as_dir" && as_dir=.
1680   for ac_exec_ext in '' $ac_executable_extensions; do
1681   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1682     ac_cv_prog_ac_ct_STRIP="strip"
1683     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1684     break 2
1685   fi
1686 done
1687 done
1688
1689   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1690 fi
1691 fi
1692 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1693 if test -n "$ac_ct_STRIP"; then
1694   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1695 echo "${ECHO_T}$ac_ct_STRIP" >&6
1696 else
1697   echo "$as_me:$LINENO: result: no" >&5
1698 echo "${ECHO_T}no" >&6
1699 fi
1700
1701   STRIP=$ac_ct_STRIP
1702 else
1703   STRIP="$ac_cv_prog_STRIP"
1704 fi
1705
1706 fi
1707 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1708
1709 # We need awk for the "check" target.  The system "awk" is bad on
1710 # some platforms.
1711
1712
1713
1714
1715
1716
1717 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"
1718
1719 # Make sure we can run config.sub.
1720 $ac_config_sub sun4 >/dev/null 2>&1 ||
1721   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1722 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1723    { (exit 1); exit 1; }; }
1724
1725 echo "$as_me:$LINENO: checking build system type" >&5
1726 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1727 if test "${ac_cv_build+set}" = set; then
1728   echo $ECHO_N "(cached) $ECHO_C" >&6
1729 else
1730   ac_cv_build_alias=$build_alias
1731 test -z "$ac_cv_build_alias" &&
1732   ac_cv_build_alias=`$ac_config_guess`
1733 test -z "$ac_cv_build_alias" &&
1734   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1735 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1736    { (exit 1); exit 1; }; }
1737 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1738   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1739 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1740    { (exit 1); exit 1; }; }
1741
1742 fi
1743 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1744 echo "${ECHO_T}$ac_cv_build" >&6
1745 build=$ac_cv_build
1746 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1747 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1748 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1749
1750
1751 echo "$as_me:$LINENO: checking host system type" >&5
1752 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1753 if test "${ac_cv_host+set}" = set; then
1754   echo $ECHO_N "(cached) $ECHO_C" >&6
1755 else
1756   ac_cv_host_alias=$host_alias
1757 test -z "$ac_cv_host_alias" &&
1758   ac_cv_host_alias=$ac_cv_build_alias
1759 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1760   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1761 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1762    { (exit 1); exit 1; }; }
1763
1764 fi
1765 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1766 echo "${ECHO_T}$ac_cv_host" >&6
1767 host=$ac_cv_host
1768 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1769 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1770 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1771
1772
1773
1774 echo "$as_me:$LINENO: checking for prefix" >&5
1775 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1776 if test x$prefix = xNONE; then
1777         mutt_cv_prefix=$ac_default_prefix
1778 else
1779         mutt_cv_prefix=$prefix
1780 fi
1781 echo "$as_me:$LINENO: result: $mutt_cv_prefix" >&5
1782 echo "${ECHO_T}$mutt_cv_prefix" >&6
1783
1784 ac_ext=c
1785 ac_cpp='$CPP $CPPFLAGS'
1786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1789 if test -n "$ac_tool_prefix"; then
1790   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1791 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1792 echo "$as_me:$LINENO: checking for $ac_word" >&5
1793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1794 if test "${ac_cv_prog_CC+set}" = set; then
1795   echo $ECHO_N "(cached) $ECHO_C" >&6
1796 else
1797   if test -n "$CC"; then
1798   ac_cv_prog_CC="$CC" # Let the user override the test.
1799 else
1800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1801 for as_dir in $PATH
1802 do
1803   IFS=$as_save_IFS
1804   test -z "$as_dir" && as_dir=.
1805   for ac_exec_ext in '' $ac_executable_extensions; do
1806   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1807     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1808     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1809     break 2
1810   fi
1811 done
1812 done
1813
1814 fi
1815 fi
1816 CC=$ac_cv_prog_CC
1817 if test -n "$CC"; then
1818   echo "$as_me:$LINENO: result: $CC" >&5
1819 echo "${ECHO_T}$CC" >&6
1820 else
1821   echo "$as_me:$LINENO: result: no" >&5
1822 echo "${ECHO_T}no" >&6
1823 fi
1824
1825 fi
1826 if test -z "$ac_cv_prog_CC"; then
1827   ac_ct_CC=$CC
1828   # Extract the first word of "gcc", so it can be a program name with args.
1829 set dummy gcc; ac_word=$2
1830 echo "$as_me:$LINENO: checking for $ac_word" >&5
1831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1832 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1833   echo $ECHO_N "(cached) $ECHO_C" >&6
1834 else
1835   if test -n "$ac_ct_CC"; then
1836   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1837 else
1838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1839 for as_dir in $PATH
1840 do
1841   IFS=$as_save_IFS
1842   test -z "$as_dir" && as_dir=.
1843   for ac_exec_ext in '' $ac_executable_extensions; do
1844   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1845     ac_cv_prog_ac_ct_CC="gcc"
1846     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1847     break 2
1848   fi
1849 done
1850 done
1851
1852 fi
1853 fi
1854 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1855 if test -n "$ac_ct_CC"; then
1856   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1857 echo "${ECHO_T}$ac_ct_CC" >&6
1858 else
1859   echo "$as_me:$LINENO: result: no" >&5
1860 echo "${ECHO_T}no" >&6
1861 fi
1862
1863   CC=$ac_ct_CC
1864 else
1865   CC="$ac_cv_prog_CC"
1866 fi
1867
1868 if test -z "$CC"; then
1869   if test -n "$ac_tool_prefix"; then
1870   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1871 set dummy ${ac_tool_prefix}cc; ac_word=$2
1872 echo "$as_me:$LINENO: checking for $ac_word" >&5
1873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1874 if test "${ac_cv_prog_CC+set}" = set; then
1875   echo $ECHO_N "(cached) $ECHO_C" >&6
1876 else
1877   if test -n "$CC"; then
1878   ac_cv_prog_CC="$CC" # Let the user override the test.
1879 else
1880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1881 for as_dir in $PATH
1882 do
1883   IFS=$as_save_IFS
1884   test -z "$as_dir" && as_dir=.
1885   for ac_exec_ext in '' $ac_executable_extensions; do
1886   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1887     ac_cv_prog_CC="${ac_tool_prefix}cc"
1888     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1889     break 2
1890   fi
1891 done
1892 done
1893
1894 fi
1895 fi
1896 CC=$ac_cv_prog_CC
1897 if test -n "$CC"; then
1898   echo "$as_me:$LINENO: result: $CC" >&5
1899 echo "${ECHO_T}$CC" >&6
1900 else
1901   echo "$as_me:$LINENO: result: no" >&5
1902 echo "${ECHO_T}no" >&6
1903 fi
1904
1905 fi
1906 if test -z "$ac_cv_prog_CC"; then
1907   ac_ct_CC=$CC
1908   # Extract the first word of "cc", so it can be a program name with args.
1909 set dummy cc; ac_word=$2
1910 echo "$as_me:$LINENO: checking for $ac_word" >&5
1911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1912 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1913   echo $ECHO_N "(cached) $ECHO_C" >&6
1914 else
1915   if test -n "$ac_ct_CC"; then
1916   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1917 else
1918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919 for as_dir in $PATH
1920 do
1921   IFS=$as_save_IFS
1922   test -z "$as_dir" && as_dir=.
1923   for ac_exec_ext in '' $ac_executable_extensions; do
1924   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1925     ac_cv_prog_ac_ct_CC="cc"
1926     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1927     break 2
1928   fi
1929 done
1930 done
1931
1932 fi
1933 fi
1934 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1935 if test -n "$ac_ct_CC"; then
1936   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1937 echo "${ECHO_T}$ac_ct_CC" >&6
1938 else
1939   echo "$as_me:$LINENO: result: no" >&5
1940 echo "${ECHO_T}no" >&6
1941 fi
1942
1943   CC=$ac_ct_CC
1944 else
1945   CC="$ac_cv_prog_CC"
1946 fi
1947
1948 fi
1949 if test -z "$CC"; then
1950   # Extract the first word of "cc", so it can be a program name with args.
1951 set dummy cc; ac_word=$2
1952 echo "$as_me:$LINENO: checking for $ac_word" >&5
1953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1954 if test "${ac_cv_prog_CC+set}" = set; then
1955   echo $ECHO_N "(cached) $ECHO_C" >&6
1956 else
1957   if test -n "$CC"; then
1958   ac_cv_prog_CC="$CC" # Let the user override the test.
1959 else
1960   ac_prog_rejected=no
1961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1962 for as_dir in $PATH
1963 do
1964   IFS=$as_save_IFS
1965   test -z "$as_dir" && as_dir=.
1966   for ac_exec_ext in '' $ac_executable_extensions; do
1967   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1968     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1969        ac_prog_rejected=yes
1970        continue
1971      fi
1972     ac_cv_prog_CC="cc"
1973     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1974     break 2
1975   fi
1976 done
1977 done
1978
1979 if test $ac_prog_rejected = yes; then
1980   # We found a bogon in the path, so make sure we never use it.
1981   set dummy $ac_cv_prog_CC
1982   shift
1983   if test $# != 0; then
1984     # We chose a different compiler from the bogus one.
1985     # However, it has the same basename, so the bogon will be chosen
1986     # first if we set CC to just the basename; use the full file name.
1987     shift
1988     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1989   fi
1990 fi
1991 fi
1992 fi
1993 CC=$ac_cv_prog_CC
1994 if test -n "$CC"; then
1995   echo "$as_me:$LINENO: result: $CC" >&5
1996 echo "${ECHO_T}$CC" >&6
1997 else
1998   echo "$as_me:$LINENO: result: no" >&5
1999 echo "${ECHO_T}no" >&6
2000 fi
2001
2002 fi
2003 if test -z "$CC"; then
2004   if test -n "$ac_tool_prefix"; then
2005   for ac_prog in cl
2006   do
2007     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2008 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2009 echo "$as_me:$LINENO: checking for $ac_word" >&5
2010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2011 if test "${ac_cv_prog_CC+set}" = set; then
2012   echo $ECHO_N "(cached) $ECHO_C" >&6
2013 else
2014   if test -n "$CC"; then
2015   ac_cv_prog_CC="$CC" # Let the user override the test.
2016 else
2017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2018 for as_dir in $PATH
2019 do
2020   IFS=$as_save_IFS
2021   test -z "$as_dir" && as_dir=.
2022   for ac_exec_ext in '' $ac_executable_extensions; do
2023   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2024     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2026     break 2
2027   fi
2028 done
2029 done
2030
2031 fi
2032 fi
2033 CC=$ac_cv_prog_CC
2034 if test -n "$CC"; then
2035   echo "$as_me:$LINENO: result: $CC" >&5
2036 echo "${ECHO_T}$CC" >&6
2037 else
2038   echo "$as_me:$LINENO: result: no" >&5
2039 echo "${ECHO_T}no" >&6
2040 fi
2041
2042     test -n "$CC" && break
2043   done
2044 fi
2045 if test -z "$CC"; then
2046   ac_ct_CC=$CC
2047   for ac_prog in cl
2048 do
2049   # Extract the first word of "$ac_prog", so it can be a program name with args.
2050 set dummy $ac_prog; ac_word=$2
2051 echo "$as_me:$LINENO: checking for $ac_word" >&5
2052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2053 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2054   echo $ECHO_N "(cached) $ECHO_C" >&6
2055 else
2056   if test -n "$ac_ct_CC"; then
2057   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2058 else
2059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 for as_dir in $PATH
2061 do
2062   IFS=$as_save_IFS
2063   test -z "$as_dir" && as_dir=.
2064   for ac_exec_ext in '' $ac_executable_extensions; do
2065   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2066     ac_cv_prog_ac_ct_CC="$ac_prog"
2067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2068     break 2
2069   fi
2070 done
2071 done
2072
2073 fi
2074 fi
2075 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2076 if test -n "$ac_ct_CC"; then
2077   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2078 echo "${ECHO_T}$ac_ct_CC" >&6
2079 else
2080   echo "$as_me:$LINENO: result: no" >&5
2081 echo "${ECHO_T}no" >&6
2082 fi
2083
2084   test -n "$ac_ct_CC" && break
2085 done
2086
2087   CC=$ac_ct_CC
2088 fi
2089
2090 fi
2091
2092
2093 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2094 See \`config.log' for more details." >&5
2095 echo "$as_me: error: no acceptable C compiler found in \$PATH
2096 See \`config.log' for more details." >&2;}
2097    { (exit 1); exit 1; }; }
2098
2099 # Provide some information about the compiler.
2100 echo "$as_me:$LINENO:" \
2101      "checking for C compiler version" >&5
2102 ac_compiler=`set X $ac_compile; echo $2`
2103 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2104   (eval $ac_compiler --version </dev/null >&5) 2>&5
2105   ac_status=$?
2106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107   (exit $ac_status); }
2108 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2109   (eval $ac_compiler -v </dev/null >&5) 2>&5
2110   ac_status=$?
2111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112   (exit $ac_status); }
2113 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2114   (eval $ac_compiler -V </dev/null >&5) 2>&5
2115   ac_status=$?
2116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117   (exit $ac_status); }
2118
2119 cat >conftest.$ac_ext <<_ACEOF
2120 #line $LINENO "configure"
2121 /* confdefs.h.  */
2122 _ACEOF
2123 cat confdefs.h >>conftest.$ac_ext
2124 cat >>conftest.$ac_ext <<_ACEOF
2125 /* end confdefs.h.  */
2126
2127 int
2128 main ()
2129 {
2130
2131   ;
2132   return 0;
2133 }
2134 _ACEOF
2135 ac_clean_files_save=$ac_clean_files
2136 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2137 # Try to create an executable without -o first, disregard a.out.
2138 # It will help us diagnose broken compilers, and finding out an intuition
2139 # of exeext.
2140 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2141 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2142 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2143 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2144   (eval $ac_link_default) 2>&5
2145   ac_status=$?
2146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2147   (exit $ac_status); }; then
2148   # Find the output, starting from the most likely.  This scheme is
2149 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2150 # resort.
2151
2152 # Be careful to initialize this variable, since it used to be cached.
2153 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2154 ac_cv_exeext=
2155 # b.out is created by i960 compilers.
2156 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2157 do
2158   test -f "$ac_file" || continue
2159   case $ac_file in
2160     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2161         ;;
2162     conftest.$ac_ext )
2163         # This is the source file.
2164         ;;
2165     [ab].out )
2166         # We found the default executable, but exeext='' is most
2167         # certainly right.
2168         break;;
2169     *.* )
2170         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2171         # FIXME: I believe we export ac_cv_exeext for Libtool,
2172         # but it would be cool to find out if it's true.  Does anybody
2173         # maintain Libtool? --akim.
2174         export ac_cv_exeext
2175         break;;
2176     * )
2177         break;;
2178   esac
2179 done
2180 else
2181   echo "$as_me: failed program was:" >&5
2182 sed 's/^/| /' conftest.$ac_ext >&5
2183
2184 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2185 See \`config.log' for more details." >&5
2186 echo "$as_me: error: C compiler cannot create executables
2187 See \`config.log' for more details." >&2;}
2188    { (exit 77); exit 77; }; }
2189 fi
2190
2191 ac_exeext=$ac_cv_exeext
2192 echo "$as_me:$LINENO: result: $ac_file" >&5
2193 echo "${ECHO_T}$ac_file" >&6
2194
2195 # Check the compiler produces executables we can run.  If not, either
2196 # the compiler is broken, or we cross compile.
2197 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2198 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2199 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2200 # If not cross compiling, check that we can run a simple program.
2201 if test "$cross_compiling" != yes; then
2202   if { ac_try='./$ac_file'
2203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2204   (eval $ac_try) 2>&5
2205   ac_status=$?
2206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207   (exit $ac_status); }; }; then
2208     cross_compiling=no
2209   else
2210     if test "$cross_compiling" = maybe; then
2211         cross_compiling=yes
2212     else
2213         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2214 If you meant to cross compile, use \`--host'.
2215 See \`config.log' for more details." >&5
2216 echo "$as_me: error: cannot run C compiled programs.
2217 If you meant to cross compile, use \`--host'.
2218 See \`config.log' for more details." >&2;}
2219    { (exit 1); exit 1; }; }
2220     fi
2221   fi
2222 fi
2223 echo "$as_me:$LINENO: result: yes" >&5
2224 echo "${ECHO_T}yes" >&6
2225
2226 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2227 ac_clean_files=$ac_clean_files_save
2228 # Check the compiler produces executables we can run.  If not, either
2229 # the compiler is broken, or we cross compile.
2230 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2231 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2232 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2233 echo "${ECHO_T}$cross_compiling" >&6
2234
2235 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2236 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2238   (eval $ac_link) 2>&5
2239   ac_status=$?
2240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241   (exit $ac_status); }; then
2242   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2243 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2244 # work properly (i.e., refer to `conftest.exe'), while it won't with
2245 # `rm'.
2246 for ac_file in conftest.exe conftest conftest.*; do
2247   test -f "$ac_file" || continue
2248   case $ac_file in
2249     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2250     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2251           export ac_cv_exeext
2252           break;;
2253     * ) break;;
2254   esac
2255 done
2256 else
2257   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2258 See \`config.log' for more details." >&5
2259 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2260 See \`config.log' for more details." >&2;}
2261    { (exit 1); exit 1; }; }
2262 fi
2263
2264 rm -f conftest$ac_cv_exeext
2265 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2266 echo "${ECHO_T}$ac_cv_exeext" >&6
2267
2268 rm -f conftest.$ac_ext
2269 EXEEXT=$ac_cv_exeext
2270 ac_exeext=$EXEEXT
2271 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2272 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2273 if test "${ac_cv_objext+set}" = set; then
2274   echo $ECHO_N "(cached) $ECHO_C" >&6
2275 else
2276   cat >conftest.$ac_ext <<_ACEOF
2277 #line $LINENO "configure"
2278 /* confdefs.h.  */
2279 _ACEOF
2280 cat confdefs.h >>conftest.$ac_ext
2281 cat >>conftest.$ac_ext <<_ACEOF
2282 /* end confdefs.h.  */
2283
2284 int
2285 main ()
2286 {
2287
2288   ;
2289   return 0;
2290 }
2291 _ACEOF
2292 rm -f conftest.o conftest.obj
2293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2294   (eval $ac_compile) 2>&5
2295   ac_status=$?
2296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297   (exit $ac_status); }; then
2298   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2299   case $ac_file in
2300     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2301     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2302        break;;
2303   esac
2304 done
2305 else
2306   echo "$as_me: failed program was:" >&5
2307 sed 's/^/| /' conftest.$ac_ext >&5
2308
2309 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2310 See \`config.log' for more details." >&5
2311 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2312 See \`config.log' for more details." >&2;}
2313    { (exit 1); exit 1; }; }
2314 fi
2315
2316 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2317 fi
2318 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2319 echo "${ECHO_T}$ac_cv_objext" >&6
2320 OBJEXT=$ac_cv_objext
2321 ac_objext=$OBJEXT
2322 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2323 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2324 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2325   echo $ECHO_N "(cached) $ECHO_C" >&6
2326 else
2327   cat >conftest.$ac_ext <<_ACEOF
2328 #line $LINENO "configure"
2329 /* confdefs.h.  */
2330 _ACEOF
2331 cat confdefs.h >>conftest.$ac_ext
2332 cat >>conftest.$ac_ext <<_ACEOF
2333 /* end confdefs.h.  */
2334
2335 int
2336 main ()
2337 {
2338 #ifndef __GNUC__
2339        choke me
2340 #endif
2341
2342   ;
2343   return 0;
2344 }
2345 _ACEOF
2346 rm -f conftest.$ac_objext
2347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2348   (eval $ac_compile) 2>&5
2349   ac_status=$?
2350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351   (exit $ac_status); } &&
2352          { ac_try='test -s conftest.$ac_objext'
2353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354   (eval $ac_try) 2>&5
2355   ac_status=$?
2356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357   (exit $ac_status); }; }; then
2358   ac_compiler_gnu=yes
2359 else
2360   echo "$as_me: failed program was:" >&5
2361 sed 's/^/| /' conftest.$ac_ext >&5
2362
2363 ac_compiler_gnu=no
2364 fi
2365 rm -f conftest.$ac_objext conftest.$ac_ext
2366 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2367
2368 fi
2369 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2370 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2371 GCC=`test $ac_compiler_gnu = yes && echo yes`
2372 ac_test_CFLAGS=${CFLAGS+set}
2373 ac_save_CFLAGS=$CFLAGS
2374 CFLAGS="-g"
2375 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2376 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2377 if test "${ac_cv_prog_cc_g+set}" = set; then
2378   echo $ECHO_N "(cached) $ECHO_C" >&6
2379 else
2380   cat >conftest.$ac_ext <<_ACEOF
2381 #line $LINENO "configure"
2382 /* confdefs.h.  */
2383 _ACEOF
2384 cat confdefs.h >>conftest.$ac_ext
2385 cat >>conftest.$ac_ext <<_ACEOF
2386 /* end confdefs.h.  */
2387
2388 int
2389 main ()
2390 {
2391
2392   ;
2393   return 0;
2394 }
2395 _ACEOF
2396 rm -f conftest.$ac_objext
2397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2398   (eval $ac_compile) 2>&5
2399   ac_status=$?
2400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401   (exit $ac_status); } &&
2402          { ac_try='test -s conftest.$ac_objext'
2403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2404   (eval $ac_try) 2>&5
2405   ac_status=$?
2406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2407   (exit $ac_status); }; }; then
2408   ac_cv_prog_cc_g=yes
2409 else
2410   echo "$as_me: failed program was:" >&5
2411 sed 's/^/| /' conftest.$ac_ext >&5
2412
2413 ac_cv_prog_cc_g=no
2414 fi
2415 rm -f conftest.$ac_objext conftest.$ac_ext
2416 fi
2417 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2418 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2419 if test "$ac_test_CFLAGS" = set; then
2420   CFLAGS=$ac_save_CFLAGS
2421 elif test $ac_cv_prog_cc_g = yes; then
2422   if test "$GCC" = yes; then
2423     CFLAGS="-g -O2"
2424   else
2425     CFLAGS="-g"
2426   fi
2427 else
2428   if test "$GCC" = yes; then
2429     CFLAGS="-O2"
2430   else
2431     CFLAGS=
2432   fi
2433 fi
2434 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2435 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2436 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2437   echo $ECHO_N "(cached) $ECHO_C" >&6
2438 else
2439   ac_cv_prog_cc_stdc=no
2440 ac_save_CC=$CC
2441 cat >conftest.$ac_ext <<_ACEOF
2442 #line $LINENO "configure"
2443 /* confdefs.h.  */
2444 _ACEOF
2445 cat confdefs.h >>conftest.$ac_ext
2446 cat >>conftest.$ac_ext <<_ACEOF
2447 /* end confdefs.h.  */
2448 #include <stdarg.h>
2449 #include <stdio.h>
2450 #include <sys/types.h>
2451 #include <sys/stat.h>
2452 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2453 struct buf { int x; };
2454 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2455 static char *e (p, i)
2456      char **p;
2457      int i;
2458 {
2459   return p[i];
2460 }
2461 static char *f (char * (*g) (char **, int), char **p, ...)
2462 {
2463   char *s;
2464   va_list v;
2465   va_start (v,p);
2466   s = g (p, va_arg (v,int));
2467   va_end (v);
2468   return s;
2469 }
2470 int test (int i, double x);
2471 struct s1 {int (*f) (int a);};
2472 struct s2 {int (*f) (double a);};
2473 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2474 int argc;
2475 char **argv;
2476 int
2477 main ()
2478 {
2479 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2480   ;
2481   return 0;
2482 }
2483 _ACEOF
2484 # Don't try gcc -ansi; that turns off useful extensions and
2485 # breaks some systems' header files.
2486 # AIX                   -qlanglvl=ansi
2487 # Ultrix and OSF/1      -std1
2488 # HP-UX 10.20 and later -Ae
2489 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2490 # SVR4                  -Xc -D__EXTENSIONS__
2491 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2492 do
2493   CC="$ac_save_CC $ac_arg"
2494   rm -f conftest.$ac_objext
2495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2496   (eval $ac_compile) 2>&5
2497   ac_status=$?
2498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499   (exit $ac_status); } &&
2500          { ac_try='test -s conftest.$ac_objext'
2501   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2502   (eval $ac_try) 2>&5
2503   ac_status=$?
2504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505   (exit $ac_status); }; }; then
2506   ac_cv_prog_cc_stdc=$ac_arg
2507 break
2508 else
2509   echo "$as_me: failed program was:" >&5
2510 sed 's/^/| /' conftest.$ac_ext >&5
2511
2512 fi
2513 rm -f conftest.$ac_objext
2514 done
2515 rm -f conftest.$ac_ext conftest.$ac_objext
2516 CC=$ac_save_CC
2517
2518 fi
2519
2520 case "x$ac_cv_prog_cc_stdc" in
2521   x|xno)
2522     echo "$as_me:$LINENO: result: none needed" >&5
2523 echo "${ECHO_T}none needed" >&6 ;;
2524   *)
2525     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2526 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2527     CC="$CC $ac_cv_prog_cc_stdc" ;;
2528 esac
2529
2530 # Some people use a C++ compiler to compile C.  Since we use `exit',
2531 # in C++ we need to declare it.  In case someone uses the same compiler
2532 # for both compiling C and C++ we need to have the C++ compiler decide
2533 # the declaration of exit, since it's the most demanding environment.
2534 cat >conftest.$ac_ext <<_ACEOF
2535 #ifndef __cplusplus
2536   choke me
2537 #endif
2538 _ACEOF
2539 rm -f conftest.$ac_objext
2540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2541   (eval $ac_compile) 2>&5
2542   ac_status=$?
2543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544   (exit $ac_status); } &&
2545          { ac_try='test -s conftest.$ac_objext'
2546   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547   (eval $ac_try) 2>&5
2548   ac_status=$?
2549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550   (exit $ac_status); }; }; then
2551   for ac_declaration in \
2552    ''\
2553    '#include <stdlib.h>' \
2554    'extern "C" void std::exit (int) throw (); using std::exit;' \
2555    'extern "C" void std::exit (int); using std::exit;' \
2556    'extern "C" void exit (int) throw ();' \
2557    'extern "C" void exit (int);' \
2558    'void exit (int);'
2559 do
2560   cat >conftest.$ac_ext <<_ACEOF
2561 #line $LINENO "configure"
2562 /* confdefs.h.  */
2563 _ACEOF
2564 cat confdefs.h >>conftest.$ac_ext
2565 cat >>conftest.$ac_ext <<_ACEOF
2566 /* end confdefs.h.  */
2567 #include <stdlib.h>
2568 $ac_declaration
2569 int
2570 main ()
2571 {
2572 exit (42);
2573   ;
2574   return 0;
2575 }
2576 _ACEOF
2577 rm -f conftest.$ac_objext
2578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2579   (eval $ac_compile) 2>&5
2580   ac_status=$?
2581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582   (exit $ac_status); } &&
2583          { ac_try='test -s conftest.$ac_objext'
2584   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585   (eval $ac_try) 2>&5
2586   ac_status=$?
2587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588   (exit $ac_status); }; }; then
2589   :
2590 else
2591   echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2593
2594 continue
2595 fi
2596 rm -f conftest.$ac_objext conftest.$ac_ext
2597   cat >conftest.$ac_ext <<_ACEOF
2598 #line $LINENO "configure"
2599 /* confdefs.h.  */
2600 _ACEOF
2601 cat confdefs.h >>conftest.$ac_ext
2602 cat >>conftest.$ac_ext <<_ACEOF
2603 /* end confdefs.h.  */
2604 $ac_declaration
2605 int
2606 main ()
2607 {
2608 exit (42);
2609   ;
2610   return 0;
2611 }
2612 _ACEOF
2613 rm -f conftest.$ac_objext
2614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2615   (eval $ac_compile) 2>&5
2616   ac_status=$?
2617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2618   (exit $ac_status); } &&
2619          { ac_try='test -s conftest.$ac_objext'
2620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2621   (eval $ac_try) 2>&5
2622   ac_status=$?
2623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624   (exit $ac_status); }; }; then
2625   break
2626 else
2627   echo "$as_me: failed program was:" >&5
2628 sed 's/^/| /' conftest.$ac_ext >&5
2629
2630 fi
2631 rm -f conftest.$ac_objext conftest.$ac_ext
2632 done
2633 rm -f conftest*
2634 if test -n "$ac_declaration"; then
2635   echo '#ifdef __cplusplus' >>confdefs.h
2636   echo $ac_declaration      >>confdefs.h
2637   echo '#endif'             >>confdefs.h
2638 fi
2639
2640 else
2641   echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2643
2644 fi
2645 rm -f conftest.$ac_objext conftest.$ac_ext
2646 ac_ext=c
2647 ac_cpp='$CPP $CPPFLAGS'
2648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2651 DEPDIR="${am__leading_dot}deps"
2652
2653           ac_config_commands="$ac_config_commands depfiles"
2654
2655
2656 am_make=${MAKE-make}
2657 cat > confinc << 'END'
2658 am__doit:
2659         @echo done
2660 .PHONY: am__doit
2661 END
2662 # If we don't find an include directive, just comment out the code.
2663 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2664 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2665 am__include="#"
2666 am__quote=
2667 _am_result=none
2668 # First try GNU make style include.
2669 echo "include confinc" > confmf
2670 # We grep out `Entering directory' and `Leaving directory'
2671 # messages which can occur if `w' ends up in MAKEFLAGS.
2672 # In particular we don't look at `^make:' because GNU make might
2673 # be invoked under some other name (usually "gmake"), in which
2674 # case it prints its new name instead of `make'.
2675 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2676    am__include=include
2677    am__quote=
2678    _am_result=GNU
2679 fi
2680 # Now try BSD make style include.
2681 if test "$am__include" = "#"; then
2682    echo '.include "confinc"' > confmf
2683    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2684       am__include=.include
2685       am__quote="\""
2686       _am_result=BSD
2687    fi
2688 fi
2689
2690
2691 echo "$as_me:$LINENO: result: $_am_result" >&5
2692 echo "${ECHO_T}$_am_result" >&6
2693 rm -f confinc confmf
2694
2695 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2696 if test "${enable_dependency_tracking+set}" = set; then
2697   enableval="$enable_dependency_tracking"
2698
2699 fi;
2700 if test "x$enable_dependency_tracking" != xno; then
2701   am_depcomp="$ac_aux_dir/depcomp"
2702   AMDEPBACKSLASH='\'
2703 fi
2704
2705
2706 if test "x$enable_dependency_tracking" != xno; then
2707   AMDEP_TRUE=
2708   AMDEP_FALSE='#'
2709 else
2710   AMDEP_TRUE='#'
2711   AMDEP_FALSE=
2712 fi
2713
2714
2715
2716
2717 depcc="$CC"   am_compiler_list=
2718
2719 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2720 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2721 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2722   echo $ECHO_N "(cached) $ECHO_C" >&6
2723 else
2724   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2725   # We make a subdir and do the tests there.  Otherwise we can end up
2726   # making bogus files that we don't know about and never remove.  For
2727   # instance it was reported that on HP-UX the gcc test will end up
2728   # making a dummy file named `D' -- because `-MD' means `put the output
2729   # in D'.
2730   mkdir conftest.dir
2731   # Copy depcomp to subdir because otherwise we won't find it if we're
2732   # using a relative directory.
2733   cp "$am_depcomp" conftest.dir
2734   cd conftest.dir
2735   # We will build objects and dependencies in a subdirectory because
2736   # it helps to detect inapplicable dependency modes.  For instance
2737   # both Tru64's cc and ICC support -MD to output dependencies as a
2738   # side effect of compilation, but ICC will put the dependencies in
2739   # the current directory while Tru64 will put them in the object
2740   # directory.
2741   mkdir sub
2742
2743   am_cv_CC_dependencies_compiler_type=none
2744   if test "$am_compiler_list" = ""; then
2745      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2746   fi
2747   for depmode in $am_compiler_list; do
2748     # Setup a source with many dependencies, because some compilers
2749     # like to wrap large dependency lists on column 80 (with \), and
2750     # we should not choose a depcomp mode which is confused by this.
2751     #
2752     # We need to recreate these files for each test, as the compiler may
2753     # overwrite some of them when testing with obscure command lines.
2754     # This happens at least with the AIX C compiler.
2755     : > sub/conftest.c
2756     for i in 1 2 3 4 5 6; do
2757       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2758       : > sub/conftst$i.h
2759     done
2760     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2761
2762     case $depmode in
2763     nosideeffect)
2764       # after this tag, mechanisms are not by side-effect, so they'll
2765       # only be used when explicitly requested
2766       if test "x$enable_dependency_tracking" = xyes; then
2767         continue
2768       else
2769         break
2770       fi
2771       ;;
2772     none) break ;;
2773     esac
2774     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2775     # mode.  It turns out that the SunPro C++ compiler does not properly
2776     # handle `-M -o', and we need to detect this.
2777     if depmode=$depmode \
2778        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2779        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2780        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2781          >/dev/null 2>conftest.err &&
2782        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2783        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2784        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2785       # icc doesn't choke on unknown options, it will just issue warnings
2786       # (even with -Werror).  So we grep stderr for any message
2787       # that says an option was ignored.
2788       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2789         am_cv_CC_dependencies_compiler_type=$depmode
2790         break
2791       fi
2792     fi
2793   done
2794
2795   cd ..
2796   rm -rf conftest.dir
2797 else
2798   am_cv_CC_dependencies_compiler_type=none
2799 fi
2800
2801 fi
2802 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2803 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2804 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2805
2806
2807
2808 if
2809   test "x$enable_dependency_tracking" != xno \
2810   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2811   am__fastdepCC_TRUE=
2812   am__fastdepCC_FALSE='#'
2813 else
2814   am__fastdepCC_TRUE='#'
2815   am__fastdepCC_FALSE=
2816 fi
2817
2818
2819
2820
2821         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2822 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2823 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2824   echo $ECHO_N "(cached) $ECHO_C" >&6
2825 else
2826   ac_check_lib_save_LIBS=$LIBS
2827 LIBS="-lcposix  $LIBS"
2828 cat >conftest.$ac_ext <<_ACEOF
2829 #line $LINENO "configure"
2830 /* confdefs.h.  */
2831 _ACEOF
2832 cat confdefs.h >>conftest.$ac_ext
2833 cat >>conftest.$ac_ext <<_ACEOF
2834 /* end confdefs.h.  */
2835
2836 /* Override any gcc2 internal prototype to avoid an error.  */
2837 #ifdef __cplusplus
2838 extern "C"
2839 #endif
2840 /* We use char because int might match the return type of a gcc2
2841    builtin and then its argument prototype would still apply.  */
2842 char strerror ();
2843 int
2844 main ()
2845 {
2846 strerror ();
2847   ;
2848   return 0;
2849 }
2850 _ACEOF
2851 rm -f conftest.$ac_objext conftest$ac_exeext
2852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2853   (eval $ac_link) 2>&5
2854   ac_status=$?
2855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856   (exit $ac_status); } &&
2857          { ac_try='test -s conftest$ac_exeext'
2858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859   (eval $ac_try) 2>&5
2860   ac_status=$?
2861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862   (exit $ac_status); }; }; then
2863   ac_cv_lib_cposix_strerror=yes
2864 else
2865   echo "$as_me: failed program was:" >&5
2866 sed 's/^/| /' conftest.$ac_ext >&5
2867
2868 ac_cv_lib_cposix_strerror=no
2869 fi
2870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2871 LIBS=$ac_check_lib_save_LIBS
2872 fi
2873 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2874 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2875 if test $ac_cv_lib_cposix_strerror = yes; then
2876   LIBS="$LIBS -lcposix"
2877 fi
2878
2879
2880
2881
2882
2883
2884 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2885 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2886 if test "${am_cv_prog_cc_stdc+set}" = set; then
2887   echo $ECHO_N "(cached) $ECHO_C" >&6
2888 else
2889   am_cv_prog_cc_stdc=no
2890 ac_save_CC="$CC"
2891 # Don't try gcc -ansi; that turns off useful extensions and
2892 # breaks some systems' header files.
2893 # AIX                   -qlanglvl=ansi
2894 # Ultrix and OSF/1      -std1
2895 # HP-UX 10.20 and later -Ae
2896 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2897 # SVR4                  -Xc -D__EXTENSIONS__
2898 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2899 do
2900   CC="$ac_save_CC $ac_arg"
2901   cat >conftest.$ac_ext <<_ACEOF
2902 #line $LINENO "configure"
2903 /* confdefs.h.  */
2904 _ACEOF
2905 cat confdefs.h >>conftest.$ac_ext
2906 cat >>conftest.$ac_ext <<_ACEOF
2907 /* end confdefs.h.  */
2908 #include <stdarg.h>
2909 #include <stdio.h>
2910 #include <sys/types.h>
2911 #include <sys/stat.h>
2912 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2913 struct buf { int x; };
2914 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2915 static char *e (p, i)
2916      char **p;
2917      int i;
2918 {
2919   return p[i];
2920 }
2921 static char *f (char * (*g) (char **, int), char **p, ...)
2922 {
2923   char *s;
2924   va_list v;
2925   va_start (v,p);
2926   s = g (p, va_arg (v,int));
2927   va_end (v);
2928   return s;
2929 }
2930 int test (int i, double x);
2931 struct s1 {int (*f) (int a);};
2932 struct s2 {int (*f) (double a);};
2933 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2934 int argc;
2935 char **argv;
2936
2937 int
2938 main ()
2939 {
2940
2941 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2942
2943   ;
2944   return 0;
2945 }
2946 _ACEOF
2947 rm -f conftest.$ac_objext
2948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2949   (eval $ac_compile) 2>&5
2950   ac_status=$?
2951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952   (exit $ac_status); } &&
2953          { ac_try='test -s conftest.$ac_objext'
2954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955   (eval $ac_try) 2>&5
2956   ac_status=$?
2957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958   (exit $ac_status); }; }; then
2959   am_cv_prog_cc_stdc="$ac_arg"; break
2960 else
2961   echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2963
2964 fi
2965 rm -f conftest.$ac_objext conftest.$ac_ext
2966 done
2967 CC="$ac_save_CC"
2968
2969 fi
2970
2971 if test -z "$am_cv_prog_cc_stdc"; then
2972   echo "$as_me:$LINENO: result: none needed" >&5
2973 echo "${ECHO_T}none needed" >&6
2974 else
2975   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2976 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2977 fi
2978 case "x$am_cv_prog_cc_stdc" in
2979   x|xno) ;;
2980   *) CC="$CC $am_cv_prog_cc_stdc" ;;
2981 esac
2982
2983 ac_ext=c
2984 ac_cpp='$CPP $CPPFLAGS'
2985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2988 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2989 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2990 # On Suns, sometimes $CPP names a directory.
2991 if test -n "$CPP" && test -d "$CPP"; then
2992   CPP=
2993 fi
2994 if test -z "$CPP"; then
2995   if test "${ac_cv_prog_CPP+set}" = set; then
2996   echo $ECHO_N "(cached) $ECHO_C" >&6
2997 else
2998       # Double quotes because CPP needs to be expanded
2999     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3000     do
3001       ac_preproc_ok=false
3002 for ac_c_preproc_warn_flag in '' yes
3003 do
3004   # Use a header file that comes with gcc, so configuring glibc
3005   # with a fresh cross-compiler works.
3006   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3007   # <limits.h> exists even on freestanding compilers.
3008   # On the NeXT, cc -E runs the code through the compiler's parser,
3009   # not just through cpp. "Syntax error" is here to catch this case.
3010   cat >conftest.$ac_ext <<_ACEOF
3011 #line $LINENO "configure"
3012 /* confdefs.h.  */
3013 _ACEOF
3014 cat confdefs.h >>conftest.$ac_ext
3015 cat >>conftest.$ac_ext <<_ACEOF
3016 /* end confdefs.h.  */
3017 #ifdef __STDC__
3018 # include <limits.h>
3019 #else
3020 # include <assert.h>
3021 #endif
3022                      Syntax error
3023 _ACEOF
3024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3025   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3026   ac_status=$?
3027   grep -v '^ *+' conftest.er1 >conftest.err
3028   rm -f conftest.er1
3029   cat conftest.err >&5
3030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031   (exit $ac_status); } >/dev/null; then
3032   if test -s conftest.err; then
3033     ac_cpp_err=$ac_c_preproc_warn_flag
3034   else
3035     ac_cpp_err=
3036   fi
3037 else
3038   ac_cpp_err=yes
3039 fi
3040 if test -z "$ac_cpp_err"; then
3041   :
3042 else
3043   echo "$as_me: failed program was:" >&5
3044 sed 's/^/| /' conftest.$ac_ext >&5
3045
3046   # Broken: fails on valid input.
3047 continue
3048 fi
3049 rm -f conftest.err conftest.$ac_ext
3050
3051   # OK, works on sane cases.  Now check whether non-existent headers
3052   # can be detected and how.
3053   cat >conftest.$ac_ext <<_ACEOF
3054 #line $LINENO "configure"
3055 /* confdefs.h.  */
3056 _ACEOF
3057 cat confdefs.h >>conftest.$ac_ext
3058 cat >>conftest.$ac_ext <<_ACEOF
3059 /* end confdefs.h.  */
3060 #include <ac_nonexistent.h>
3061 _ACEOF
3062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3063   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3064   ac_status=$?
3065   grep -v '^ *+' conftest.er1 >conftest.err
3066   rm -f conftest.er1
3067   cat conftest.err >&5
3068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069   (exit $ac_status); } >/dev/null; then
3070   if test -s conftest.err; then
3071     ac_cpp_err=$ac_c_preproc_warn_flag
3072   else
3073     ac_cpp_err=
3074   fi
3075 else
3076   ac_cpp_err=yes
3077 fi
3078 if test -z "$ac_cpp_err"; then
3079   # Broken: success on invalid input.
3080 continue
3081 else
3082   echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3084
3085   # Passes both tests.
3086 ac_preproc_ok=:
3087 break
3088 fi
3089 rm -f conftest.err conftest.$ac_ext
3090
3091 done
3092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3093 rm -f conftest.err conftest.$ac_ext
3094 if $ac_preproc_ok; then
3095   break
3096 fi
3097
3098     done
3099     ac_cv_prog_CPP=$CPP
3100
3101 fi
3102   CPP=$ac_cv_prog_CPP
3103 else
3104   ac_cv_prog_CPP=$CPP
3105 fi
3106 echo "$as_me:$LINENO: result: $CPP" >&5
3107 echo "${ECHO_T}$CPP" >&6
3108 ac_preproc_ok=false
3109 for ac_c_preproc_warn_flag in '' yes
3110 do
3111   # Use a header file that comes with gcc, so configuring glibc
3112   # with a fresh cross-compiler works.
3113   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3114   # <limits.h> exists even on freestanding compilers.
3115   # On the NeXT, cc -E runs the code through the compiler's parser,
3116   # not just through cpp. "Syntax error" is here to catch this case.
3117   cat >conftest.$ac_ext <<_ACEOF
3118 #line $LINENO "configure"
3119 /* confdefs.h.  */
3120 _ACEOF
3121 cat confdefs.h >>conftest.$ac_ext
3122 cat >>conftest.$ac_ext <<_ACEOF
3123 /* end confdefs.h.  */
3124 #ifdef __STDC__
3125 # include <limits.h>
3126 #else
3127 # include <assert.h>
3128 #endif
3129                      Syntax error
3130 _ACEOF
3131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3132   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3133   ac_status=$?
3134   grep -v '^ *+' conftest.er1 >conftest.err
3135   rm -f conftest.er1
3136   cat conftest.err >&5
3137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3138   (exit $ac_status); } >/dev/null; then
3139   if test -s conftest.err; then
3140     ac_cpp_err=$ac_c_preproc_warn_flag
3141   else
3142     ac_cpp_err=
3143   fi
3144 else
3145   ac_cpp_err=yes
3146 fi
3147 if test -z "$ac_cpp_err"; then
3148   :
3149 else
3150   echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3152
3153   # Broken: fails on valid input.
3154 continue
3155 fi
3156 rm -f conftest.err conftest.$ac_ext
3157
3158   # OK, works on sane cases.  Now check whether non-existent headers
3159   # can be detected and how.
3160   cat >conftest.$ac_ext <<_ACEOF
3161 #line $LINENO "configure"
3162 /* confdefs.h.  */
3163 _ACEOF
3164 cat confdefs.h >>conftest.$ac_ext
3165 cat >>conftest.$ac_ext <<_ACEOF
3166 /* end confdefs.h.  */
3167 #include <ac_nonexistent.h>
3168 _ACEOF
3169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3170   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3171   ac_status=$?
3172   grep -v '^ *+' conftest.er1 >conftest.err
3173   rm -f conftest.er1
3174   cat conftest.err >&5
3175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176   (exit $ac_status); } >/dev/null; then
3177   if test -s conftest.err; then
3178     ac_cpp_err=$ac_c_preproc_warn_flag
3179   else
3180     ac_cpp_err=
3181   fi
3182 else
3183   ac_cpp_err=yes
3184 fi
3185 if test -z "$ac_cpp_err"; then
3186   # Broken: success on invalid input.
3187 continue
3188 else
3189   echo "$as_me: failed program was:" >&5
3190 sed 's/^/| /' conftest.$ac_ext >&5
3191
3192   # Passes both tests.
3193 ac_preproc_ok=:
3194 break
3195 fi
3196 rm -f conftest.err conftest.$ac_ext
3197
3198 done
3199 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3200 rm -f conftest.err conftest.$ac_ext
3201 if $ac_preproc_ok; then
3202   :
3203 else
3204   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3205 See \`config.log' for more details." >&5
3206 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3207 See \`config.log' for more details." >&2;}
3208    { (exit 1); exit 1; }; }
3209 fi
3210
3211 ac_ext=c
3212 ac_cpp='$CPP $CPPFLAGS'
3213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3215 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3216
3217
3218 echo "$as_me:$LINENO: checking for egrep" >&5
3219 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3220 if test "${ac_cv_prog_egrep+set}" = set; then
3221   echo $ECHO_N "(cached) $ECHO_C" >&6
3222 else
3223   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3224     then ac_cv_prog_egrep='grep -E'
3225     else ac_cv_prog_egrep='egrep'
3226     fi
3227 fi
3228 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3229 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3230  EGREP=$ac_cv_prog_egrep
3231
3232
3233 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3244                   inttypes.h stdint.h unistd.h
3245 do
3246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3247 echo "$as_me:$LINENO: checking for $ac_header" >&5
3248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3250   echo $ECHO_N "(cached) $ECHO_C" >&6
3251 else
3252   cat >conftest.$ac_ext <<_ACEOF
3253 #line $LINENO "configure"
3254 /* confdefs.h.  */
3255 _ACEOF
3256 cat confdefs.h >>conftest.$ac_ext
3257 cat >>conftest.$ac_ext <<_ACEOF
3258 /* end confdefs.h.  */
3259 $ac_includes_default
3260
3261 #include <$ac_header>
3262 _ACEOF
3263 rm -f conftest.$ac_objext
3264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3265   (eval $ac_compile) 2>&5
3266   ac_status=$?
3267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268   (exit $ac_status); } &&
3269          { ac_try='test -s conftest.$ac_objext'
3270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3271   (eval $ac_try) 2>&5
3272   ac_status=$?
3273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274   (exit $ac_status); }; }; then
3275   eval "$as_ac_Header=yes"
3276 else
3277   echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3279
3280 eval "$as_ac_Header=no"
3281 fi
3282 rm -f conftest.$ac_objext conftest.$ac_ext
3283 fi
3284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3286 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3287   cat >>confdefs.h <<_ACEOF
3288 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3289 _ACEOF
3290
3291 fi
3292
3293 done
3294
3295
3296
3297
3298 echo "$as_me:$LINENO: checking for function prototypes" >&5
3299 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3300 if test "$am_cv_prog_cc_stdc" != no; then
3301   echo "$as_me:$LINENO: result: yes" >&5
3302 echo "${ECHO_T}yes" >&6
3303
3304 cat >>confdefs.h <<\_ACEOF
3305 #define PROTOTYPES 1
3306 _ACEOF
3307
3308   U= ANSI2KNR=
3309 else
3310   echo "$as_me:$LINENO: result: no" >&5
3311 echo "${ECHO_T}no" >&6
3312   U=_ ANSI2KNR=./ansi2knr
3313 fi
3314 # Ensure some checks needed by ansi2knr itself.
3315 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3316 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3317 if test "${ac_cv_header_stdc+set}" = set; then
3318   echo $ECHO_N "(cached) $ECHO_C" >&6
3319 else
3320   cat >conftest.$ac_ext <<_ACEOF
3321 #line $LINENO "configure"
3322 /* confdefs.h.  */
3323 _ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h.  */
3327 #include <stdlib.h>
3328 #include <stdarg.h>
3329 #include <string.h>
3330 #include <float.h>
3331
3332 int
3333 main ()
3334 {
3335
3336   ;
3337   return 0;
3338 }
3339 _ACEOF
3340 rm -f conftest.$ac_objext
3341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3342   (eval $ac_compile) 2>&5
3343   ac_status=$?
3344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345   (exit $ac_status); } &&
3346          { ac_try='test -s conftest.$ac_objext'
3347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3348   (eval $ac_try) 2>&5
3349   ac_status=$?
3350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351   (exit $ac_status); }; }; then
3352   ac_cv_header_stdc=yes
3353 else
3354   echo "$as_me: failed program was:" >&5
3355 sed 's/^/| /' conftest.$ac_ext >&5
3356
3357 ac_cv_header_stdc=no
3358 fi
3359 rm -f conftest.$ac_objext conftest.$ac_ext
3360
3361 if test $ac_cv_header_stdc = yes; then
3362   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3363   cat >conftest.$ac_ext <<_ACEOF
3364 #line $LINENO "configure"
3365 /* confdefs.h.  */
3366 _ACEOF
3367 cat confdefs.h >>conftest.$ac_ext
3368 cat >>conftest.$ac_ext <<_ACEOF
3369 /* end confdefs.h.  */
3370 #include <string.h>
3371
3372 _ACEOF
3373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3374   $EGREP "memchr" >/dev/null 2>&1; then
3375   :
3376 else
3377   ac_cv_header_stdc=no
3378 fi
3379 rm -f conftest*
3380
3381 fi
3382
3383 if test $ac_cv_header_stdc = yes; then
3384   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3385   cat >conftest.$ac_ext <<_ACEOF
3386 #line $LINENO "configure"
3387 /* confdefs.h.  */
3388 _ACEOF
3389 cat confdefs.h >>conftest.$ac_ext
3390 cat >>conftest.$ac_ext <<_ACEOF
3391 /* end confdefs.h.  */
3392 #include <stdlib.h>
3393
3394 _ACEOF
3395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3396   $EGREP "free" >/dev/null 2>&1; then
3397   :
3398 else
3399   ac_cv_header_stdc=no
3400 fi
3401 rm -f conftest*
3402
3403 fi
3404
3405 if test $ac_cv_header_stdc = yes; then
3406   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3407   if test "$cross_compiling" = yes; then
3408   :
3409 else
3410   cat >conftest.$ac_ext <<_ACEOF
3411 #line $LINENO "configure"
3412 /* confdefs.h.  */
3413 _ACEOF
3414 cat confdefs.h >>conftest.$ac_ext
3415 cat >>conftest.$ac_ext <<_ACEOF
3416 /* end confdefs.h.  */
3417 #include <ctype.h>
3418 #if ((' ' & 0x0FF) == 0x020)
3419 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3420 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3421 #else
3422 # define ISLOWER(c) \
3423                    (('a' <= (c) && (c) <= 'i') \
3424                      || ('j' <= (c) && (c) <= 'r') \
3425                      || ('s' <= (c) && (c) <= 'z'))
3426 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3427 #endif
3428
3429 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3430 int
3431 main ()
3432 {
3433   int i;
3434   for (i = 0; i < 256; i++)
3435     if (XOR (islower (i), ISLOWER (i))
3436         || toupper (i) != TOUPPER (i))
3437       exit(2);
3438   exit (0);
3439 }
3440 _ACEOF
3441 rm -f conftest$ac_exeext
3442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3443   (eval $ac_link) 2>&5
3444   ac_status=$?
3445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3448   (eval $ac_try) 2>&5
3449   ac_status=$?
3450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451   (exit $ac_status); }; }; then
3452   :
3453 else
3454   echo "$as_me: program exited with status $ac_status" >&5
3455 echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3457
3458 ( exit $ac_status )
3459 ac_cv_header_stdc=no
3460 fi
3461 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3462 fi
3463 fi
3464 fi
3465 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3466 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3467 if test $ac_cv_header_stdc = yes; then
3468
3469 cat >>confdefs.h <<\_ACEOF
3470 #define STDC_HEADERS 1
3471 _ACEOF
3472
3473 fi
3474
3475
3476 for ac_header in string.h
3477 do
3478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3480   echo "$as_me:$LINENO: checking for $ac_header" >&5
3481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3483   echo $ECHO_N "(cached) $ECHO_C" >&6
3484 fi
3485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3486 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3487 else
3488   # Is the header compilable?
3489 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3490 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3491 cat >conftest.$ac_ext <<_ACEOF
3492 #line $LINENO "configure"
3493 /* confdefs.h.  */
3494 _ACEOF
3495 cat confdefs.h >>conftest.$ac_ext
3496 cat >>conftest.$ac_ext <<_ACEOF
3497 /* end confdefs.h.  */
3498 $ac_includes_default
3499 #include <$ac_header>
3500 _ACEOF
3501 rm -f conftest.$ac_objext
3502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3503   (eval $ac_compile) 2>&5
3504   ac_status=$?
3505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506   (exit $ac_status); } &&
3507          { ac_try='test -s conftest.$ac_objext'
3508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3509   (eval $ac_try) 2>&5
3510   ac_status=$?
3511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512   (exit $ac_status); }; }; then
3513   ac_header_compiler=yes
3514 else
3515   echo "$as_me: failed program was:" >&5
3516 sed 's/^/| /' conftest.$ac_ext >&5
3517
3518 ac_header_compiler=no
3519 fi
3520 rm -f conftest.$ac_objext conftest.$ac_ext
3521 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3522 echo "${ECHO_T}$ac_header_compiler" >&6
3523
3524 # Is the header present?
3525 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3526 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3527 cat >conftest.$ac_ext <<_ACEOF
3528 #line $LINENO "configure"
3529 /* confdefs.h.  */
3530 _ACEOF
3531 cat confdefs.h >>conftest.$ac_ext
3532 cat >>conftest.$ac_ext <<_ACEOF
3533 /* end confdefs.h.  */
3534 #include <$ac_header>
3535 _ACEOF
3536 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3537   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3538   ac_status=$?
3539   grep -v '^ *+' conftest.er1 >conftest.err
3540   rm -f conftest.er1
3541   cat conftest.err >&5
3542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543   (exit $ac_status); } >/dev/null; then
3544   if test -s conftest.err; then
3545     ac_cpp_err=$ac_c_preproc_warn_flag
3546   else
3547     ac_cpp_err=
3548   fi
3549 else
3550   ac_cpp_err=yes
3551 fi
3552 if test -z "$ac_cpp_err"; then
3553   ac_header_preproc=yes
3554 else
3555   echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3557
3558   ac_header_preproc=no
3559 fi
3560 rm -f conftest.err conftest.$ac_ext
3561 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3562 echo "${ECHO_T}$ac_header_preproc" >&6
3563
3564 # So?  What about this header?
3565 case $ac_header_compiler:$ac_header_preproc in
3566   yes:no )
3567     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3569     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3571     (
3572       cat <<\_ASBOX
3573 ## ------------------------------------ ##
3574 ## Report this to bug-autoconf@gnu.org. ##
3575 ## ------------------------------------ ##
3576 _ASBOX
3577     ) |
3578       sed "s/^/$as_me: WARNING:     /" >&2
3579     ;;
3580   no:yes )
3581     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3582 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3583     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3584 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3585     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3587     (
3588       cat <<\_ASBOX
3589 ## ------------------------------------ ##
3590 ## Report this to bug-autoconf@gnu.org. ##
3591 ## ------------------------------------ ##
3592 _ASBOX
3593     ) |
3594       sed "s/^/$as_me: WARNING:     /" >&2
3595     ;;
3596 esac
3597 echo "$as_me:$LINENO: checking for $ac_header" >&5
3598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3600   echo $ECHO_N "(cached) $ECHO_C" >&6
3601 else
3602   eval "$as_ac_Header=$ac_header_preproc"
3603 fi
3604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3606
3607 fi
3608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3609   cat >>confdefs.h <<_ACEOF
3610 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3611 _ACEOF
3612
3613 fi
3614
3615 done
3616
3617
3618 if test "x$U" != "x"; then
3619   { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
3620 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
3621    { (exit 1); exit 1; }; }
3622 fi
3623 ac_ext=c
3624 ac_cpp='$CPP $CPPFLAGS'
3625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3628 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3629 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3630 # On Suns, sometimes $CPP names a directory.
3631 if test -n "$CPP" && test -d "$CPP"; then
3632   CPP=
3633 fi
3634 if test -z "$CPP"; then
3635   if test "${ac_cv_prog_CPP+set}" = set; then
3636   echo $ECHO_N "(cached) $ECHO_C" >&6
3637 else
3638       # Double quotes because CPP needs to be expanded
3639     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3640     do
3641       ac_preproc_ok=false
3642 for ac_c_preproc_warn_flag in '' yes
3643 do
3644   # Use a header file that comes with gcc, so configuring glibc
3645   # with a fresh cross-compiler works.
3646   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3647   # <limits.h> exists even on freestanding compilers.
3648   # On the NeXT, cc -E runs the code through the compiler's parser,
3649   # not just through cpp. "Syntax error" is here to catch this case.
3650   cat >conftest.$ac_ext <<_ACEOF
3651 #line $LINENO "configure"
3652 /* confdefs.h.  */
3653 _ACEOF
3654 cat confdefs.h >>conftest.$ac_ext
3655 cat >>conftest.$ac_ext <<_ACEOF
3656 /* end confdefs.h.  */
3657 #ifdef __STDC__
3658 # include <limits.h>
3659 #else
3660 # include <assert.h>
3661 #endif
3662                      Syntax error
3663 _ACEOF
3664 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3665   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3666   ac_status=$?
3667   grep -v '^ *+' conftest.er1 >conftest.err
3668   rm -f conftest.er1
3669   cat conftest.err >&5
3670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671   (exit $ac_status); } >/dev/null; then
3672   if test -s conftest.err; then
3673     ac_cpp_err=$ac_c_preproc_warn_flag
3674   else
3675     ac_cpp_err=
3676   fi
3677 else
3678   ac_cpp_err=yes
3679 fi
3680 if test -z "$ac_cpp_err"; then
3681   :
3682 else
3683   echo "$as_me: failed program was:" >&5
3684 sed 's/^/| /' conftest.$ac_ext >&5
3685
3686   # Broken: fails on valid input.
3687 continue
3688 fi
3689 rm -f conftest.err conftest.$ac_ext
3690
3691   # OK, works on sane cases.  Now check whether non-existent headers
3692   # can be detected and how.
3693   cat >conftest.$ac_ext <<_ACEOF
3694 #line $LINENO "configure"
3695 /* confdefs.h.  */
3696 _ACEOF
3697 cat confdefs.h >>conftest.$ac_ext
3698 cat >>conftest.$ac_ext <<_ACEOF
3699 /* end confdefs.h.  */
3700 #include <ac_nonexistent.h>
3701 _ACEOF
3702 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3703   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3704   ac_status=$?
3705   grep -v '^ *+' conftest.er1 >conftest.err
3706   rm -f conftest.er1
3707   cat conftest.err >&5
3708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709   (exit $ac_status); } >/dev/null; then
3710   if test -s conftest.err; then
3711     ac_cpp_err=$ac_c_preproc_warn_flag
3712   else
3713     ac_cpp_err=
3714   fi
3715 else
3716   ac_cpp_err=yes
3717 fi
3718 if test -z "$ac_cpp_err"; then
3719   # Broken: success on invalid input.
3720 continue
3721 else
3722   echo "$as_me: failed program was:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3724
3725   # Passes both tests.
3726 ac_preproc_ok=:
3727 break
3728 fi
3729 rm -f conftest.err conftest.$ac_ext
3730
3731 done
3732 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3733 rm -f conftest.err conftest.$ac_ext
3734 if $ac_preproc_ok; then
3735   break
3736 fi
3737
3738     done
3739     ac_cv_prog_CPP=$CPP
3740
3741 fi
3742   CPP=$ac_cv_prog_CPP
3743 else
3744   ac_cv_prog_CPP=$CPP
3745 fi
3746 echo "$as_me:$LINENO: result: $CPP" >&5
3747 echo "${ECHO_T}$CPP" >&6
3748 ac_preproc_ok=false
3749 for ac_c_preproc_warn_flag in '' yes
3750 do
3751   # Use a header file that comes with gcc, so configuring glibc
3752   # with a fresh cross-compiler works.
3753   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3754   # <limits.h> exists even on freestanding compilers.
3755   # On the NeXT, cc -E runs the code through the compiler's parser,
3756   # not just through cpp. "Syntax error" is here to catch this case.
3757   cat >conftest.$ac_ext <<_ACEOF
3758 #line $LINENO "configure"
3759 /* confdefs.h.  */
3760 _ACEOF
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h.  */
3764 #ifdef __STDC__
3765 # include <limits.h>
3766 #else
3767 # include <assert.h>
3768 #endif
3769                      Syntax error
3770 _ACEOF
3771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3772   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3773   ac_status=$?
3774   grep -v '^ *+' conftest.er1 >conftest.err
3775   rm -f conftest.er1
3776   cat conftest.err >&5
3777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778   (exit $ac_status); } >/dev/null; then
3779   if test -s conftest.err; then
3780     ac_cpp_err=$ac_c_preproc_warn_flag
3781   else
3782     ac_cpp_err=
3783   fi
3784 else
3785   ac_cpp_err=yes
3786 fi
3787 if test -z "$ac_cpp_err"; then
3788   :
3789 else
3790   echo "$as_me: failed program was:" >&5
3791 sed 's/^/| /' conftest.$ac_ext >&5
3792
3793   # Broken: fails on valid input.
3794 continue
3795 fi
3796 rm -f conftest.err conftest.$ac_ext
3797
3798   # OK, works on sane cases.  Now check whether non-existent headers
3799   # can be detected and how.
3800   cat >conftest.$ac_ext <<_ACEOF
3801 #line $LINENO "configure"
3802 /* confdefs.h.  */
3803 _ACEOF
3804 cat confdefs.h >>conftest.$ac_ext
3805 cat >>conftest.$ac_ext <<_ACEOF
3806 /* end confdefs.h.  */
3807 #include <ac_nonexistent.h>
3808 _ACEOF
3809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3810   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3811   ac_status=$?
3812   grep -v '^ *+' conftest.er1 >conftest.err
3813   rm -f conftest.er1
3814   cat conftest.err >&5
3815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816   (exit $ac_status); } >/dev/null; then
3817   if test -s conftest.err; then
3818     ac_cpp_err=$ac_c_preproc_warn_flag
3819   else
3820     ac_cpp_err=
3821   fi
3822 else
3823   ac_cpp_err=yes
3824 fi
3825 if test -z "$ac_cpp_err"; then
3826   # Broken: success on invalid input.
3827 continue
3828 else
3829   echo "$as_me: failed program was:" >&5
3830 sed 's/^/| /' conftest.$ac_ext >&5
3831
3832   # Passes both tests.
3833 ac_preproc_ok=:
3834 break
3835 fi
3836 rm -f conftest.err conftest.$ac_ext
3837
3838 done
3839 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3840 rm -f conftest.err conftest.$ac_ext
3841 if $ac_preproc_ok; then
3842   :
3843 else
3844   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3845 See \`config.log' for more details." >&5
3846 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3847 See \`config.log' for more details." >&2;}
3848    { (exit 1); exit 1; }; }
3849 fi
3850
3851 ac_ext=c
3852 ac_cpp='$CPP $CPPFLAGS'
3853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3856
3857 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3858 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3859 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3860 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3861   echo $ECHO_N "(cached) $ECHO_C" >&6
3862 else
3863   cat >conftest.make <<\_ACEOF
3864 all:
3865         @echo 'ac_maketemp="$(MAKE)"'
3866 _ACEOF
3867 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3868 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3869 if test -n "$ac_maketemp"; then
3870   eval ac_cv_prog_make_${ac_make}_set=yes
3871 else
3872   eval ac_cv_prog_make_${ac_make}_set=no
3873 fi
3874 rm -f conftest.make
3875 fi
3876 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3877   echo "$as_me:$LINENO: result: yes" >&5
3878 echo "${ECHO_T}yes" >&6
3879   SET_MAKE=
3880 else
3881   echo "$as_me:$LINENO: result: no" >&5
3882 echo "${ECHO_T}no" >&6
3883   SET_MAKE="MAKE=${MAKE-make}"
3884 fi
3885
3886 # Find a good install program.  We prefer a C program (faster),
3887 # so one script is as good as another.  But avoid the broken or
3888 # incompatible versions:
3889 # SysV /etc/install, /usr/sbin/install
3890 # SunOS /usr/etc/install
3891 # IRIX /sbin/install
3892 # AIX /bin/install
3893 # AmigaOS /C/install, which installs bootblocks on floppy discs
3894 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3895 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3896 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3897 # ./install, which can be erroneously created by make from ./install.sh.
3898 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3899 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3900 if test -z "$INSTALL"; then
3901 if test "${ac_cv_path_install+set}" = set; then
3902   echo $ECHO_N "(cached) $ECHO_C" >&6
3903 else
3904   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905 for as_dir in $PATH
3906 do
3907   IFS=$as_save_IFS
3908   test -z "$as_dir" && as_dir=.
3909   # Account for people who put trailing slashes in PATH elements.
3910 case $as_dir/ in
3911   ./ | .// | /cC/* | \
3912   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3913   /usr/ucb/* ) ;;
3914   *)
3915     # OSF1 and SCO ODT 3.0 have their own names for install.
3916     # Don't use installbsd from OSF since it installs stuff as root
3917     # by default.
3918     for ac_prog in ginstall scoinst install; do
3919       for ac_exec_ext in '' $ac_executable_extensions; do
3920         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3921           if test $ac_prog = install &&
3922             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3923             # AIX install.  It has an incompatible calling convention.
3924             :
3925           elif test $ac_prog = install &&
3926             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3927             # program-specific install script used by HP pwplus--don't use.
3928             :
3929           else
3930             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3931             break 3
3932           fi
3933         fi
3934       done
3935     done
3936     ;;
3937 esac
3938 done
3939
3940
3941 fi
3942   if test "${ac_cv_path_install+set}" = set; then
3943     INSTALL=$ac_cv_path_install
3944   else
3945     # As a last resort, use the slow shell script.  We don't cache a
3946     # path for INSTALL within a source directory, because that will
3947     # break other packages using the cache if that directory is
3948     # removed, or if the path is relative.
3949     INSTALL=$ac_install_sh
3950   fi
3951 fi
3952 echo "$as_me:$LINENO: result: $INSTALL" >&5
3953 echo "${ECHO_T}$INSTALL" >&6
3954
3955 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3956 # It thinks the first close brace ends the variable substitution.
3957 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3958
3959 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3960
3961 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3962
3963 if test -n "$ac_tool_prefix"; then
3964   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3965 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3966 echo "$as_me:$LINENO: checking for $ac_word" >&5
3967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3968 if test "${ac_cv_prog_RANLIB+set}" = set; then
3969   echo $ECHO_N "(cached) $ECHO_C" >&6
3970 else
3971   if test -n "$RANLIB"; then
3972   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3973 else
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 for as_dir in $PATH
3976 do
3977   IFS=$as_save_IFS
3978   test -z "$as_dir" && as_dir=.
3979   for ac_exec_ext in '' $ac_executable_extensions; do
3980   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3981     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3982     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3983     break 2
3984   fi
3985 done
3986 done
3987
3988 fi
3989 fi
3990 RANLIB=$ac_cv_prog_RANLIB
3991 if test -n "$RANLIB"; then
3992   echo "$as_me:$LINENO: result: $RANLIB" >&5
3993 echo "${ECHO_T}$RANLIB" >&6
3994 else
3995   echo "$as_me:$LINENO: result: no" >&5
3996 echo "${ECHO_T}no" >&6
3997 fi
3998
3999 fi
4000 if test -z "$ac_cv_prog_RANLIB"; then
4001   ac_ct_RANLIB=$RANLIB
4002   # Extract the first word of "ranlib", so it can be a program name with args.
4003 set dummy ranlib; ac_word=$2
4004 echo "$as_me:$LINENO: checking for $ac_word" >&5
4005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4006 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4007   echo $ECHO_N "(cached) $ECHO_C" >&6
4008 else
4009   if test -n "$ac_ct_RANLIB"; then
4010   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4011 else
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 for as_dir in $PATH
4014 do
4015   IFS=$as_save_IFS
4016   test -z "$as_dir" && as_dir=.
4017   for ac_exec_ext in '' $ac_executable_extensions; do
4018   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4019     ac_cv_prog_ac_ct_RANLIB="ranlib"
4020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4021     break 2
4022   fi
4023 done
4024 done
4025
4026   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4027 fi
4028 fi
4029 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4030 if test -n "$ac_ct_RANLIB"; then
4031   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4032 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4033 else
4034   echo "$as_me:$LINENO: result: no" >&5
4035 echo "${ECHO_T}no" >&6
4036 fi
4037
4038   RANLIB=$ac_ct_RANLIB
4039 else
4040   RANLIB="$ac_cv_prog_RANLIB"
4041 fi
4042
4043 if test -n "$ac_tool_prefix"; then
4044   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4045 set dummy ${ac_tool_prefix}ar; ac_word=$2
4046 echo "$as_me:$LINENO: checking for $ac_word" >&5
4047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4048 if test "${ac_cv_prog_AR+set}" = set; then
4049   echo $ECHO_N "(cached) $ECHO_C" >&6
4050 else
4051   if test -n "$AR"; then
4052   ac_cv_prog_AR="$AR" # Let the user override the test.
4053 else
4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055 for as_dir in $PATH
4056 do
4057   IFS=$as_save_IFS
4058   test -z "$as_dir" && as_dir=.
4059   for ac_exec_ext in '' $ac_executable_extensions; do
4060   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4061     ac_cv_prog_AR="${ac_tool_prefix}ar"
4062     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4063     break 2
4064   fi
4065 done
4066 done
4067
4068 fi
4069 fi
4070 AR=$ac_cv_prog_AR
4071 if test -n "$AR"; then
4072   echo "$as_me:$LINENO: result: $AR" >&5
4073 echo "${ECHO_T}$AR" >&6
4074 else
4075   echo "$as_me:$LINENO: result: no" >&5
4076 echo "${ECHO_T}no" >&6
4077 fi
4078
4079 fi
4080 if test -z "$ac_cv_prog_AR"; then
4081   ac_ct_AR=$AR
4082   # Extract the first word of "ar", so it can be a program name with args.
4083 set dummy ar; ac_word=$2
4084 echo "$as_me:$LINENO: checking for $ac_word" >&5
4085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4086 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4087   echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089   if test -n "$ac_ct_AR"; then
4090   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4091 else
4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093 for as_dir in $PATH
4094 do
4095   IFS=$as_save_IFS
4096   test -z "$as_dir" && as_dir=.
4097   for ac_exec_ext in '' $ac_executable_extensions; do
4098   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4099     ac_cv_prog_ac_ct_AR="ar"
4100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4101     break 2
4102   fi
4103 done
4104 done
4105
4106   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4107 fi
4108 fi
4109 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4110 if test -n "$ac_ct_AR"; then
4111   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4112 echo "${ECHO_T}$ac_ct_AR" >&6
4113 else
4114   echo "$as_me:$LINENO: result: no" >&5
4115 echo "${ECHO_T}no" >&6
4116 fi
4117
4118   AR=$ac_ct_AR
4119 else
4120   AR="$ac_cv_prog_AR"
4121 fi
4122
4123
4124 echo "$as_me:$LINENO: checking for inline" >&5
4125 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4126 if test "${ac_cv_c_inline+set}" = set; then
4127   echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129   ac_cv_c_inline=no
4130 for ac_kw in inline __inline__ __inline; do
4131   cat >conftest.$ac_ext <<_ACEOF
4132 #line $LINENO "configure"
4133 /* confdefs.h.  */
4134 _ACEOF
4135 cat confdefs.h >>conftest.$ac_ext
4136 cat >>conftest.$ac_ext <<_ACEOF
4137 /* end confdefs.h.  */
4138 #ifndef __cplusplus
4139 typedef int foo_t;
4140 static $ac_kw foo_t static_foo () {return 0; }
4141 $ac_kw foo_t foo () {return 0; }
4142 #endif
4143
4144 _ACEOF
4145 rm -f conftest.$ac_objext
4146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4147   (eval $ac_compile) 2>&5
4148   ac_status=$?
4149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150   (exit $ac_status); } &&
4151          { ac_try='test -s conftest.$ac_objext'
4152   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4153   (eval $ac_try) 2>&5
4154   ac_status=$?
4155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4156   (exit $ac_status); }; }; then
4157   ac_cv_c_inline=$ac_kw; break
4158 else
4159   echo "$as_me: failed program was:" >&5
4160 sed 's/^/| /' conftest.$ac_ext >&5
4161
4162 fi
4163 rm -f conftest.$ac_objext conftest.$ac_ext
4164 done
4165
4166 fi
4167 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4168 echo "${ECHO_T}$ac_cv_c_inline" >&6
4169 case $ac_cv_c_inline in
4170   inline | yes) ;;
4171   no)
4172 cat >>confdefs.h <<\_ACEOF
4173 #define inline
4174 _ACEOF
4175  ;;
4176   *)  cat >>confdefs.h <<_ACEOF
4177 #define inline $ac_cv_c_inline
4178 _ACEOF
4179  ;;
4180 esac
4181
4182 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4183 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4184 if test "${ac_cv_c_const+set}" = set; then
4185   echo $ECHO_N "(cached) $ECHO_C" >&6
4186 else
4187   cat >conftest.$ac_ext <<_ACEOF
4188 #line $LINENO "configure"
4189 /* confdefs.h.  */
4190 _ACEOF
4191 cat confdefs.h >>conftest.$ac_ext
4192 cat >>conftest.$ac_ext <<_ACEOF
4193 /* end confdefs.h.  */
4194
4195 int
4196 main ()
4197 {
4198 /* FIXME: Include the comments suggested by Paul. */
4199 #ifndef __cplusplus
4200   /* Ultrix mips cc rejects this.  */
4201   typedef int charset[2];
4202   const charset x;
4203   /* SunOS 4.1.1 cc rejects this.  */
4204   char const *const *ccp;
4205   char **p;
4206   /* NEC SVR4.0.2 mips cc rejects this.  */
4207   struct point {int x, y;};
4208   static struct point const zero = {0,0};
4209   /* AIX XL C 1.02.0.0 rejects this.
4210      It does not let you subtract one const X* pointer from another in
4211      an arm of an if-expression whose if-part is not a constant
4212      expression */
4213   const char *g = "string";
4214   ccp = &g + (g ? g-g : 0);
4215   /* HPUX 7.0 cc rejects these. */
4216   ++ccp;
4217   p = (char**) ccp;
4218   ccp = (char const *const *) p;
4219   { /* SCO 3.2v4 cc rejects this.  */
4220     char *t;
4221     char const *s = 0 ? (char *) 0 : (char const *) 0;
4222
4223     *t++ = 0;
4224   }
4225   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4226     int x[] = {25, 17};
4227     const int *foo = &x[0];
4228     ++foo;
4229   }
4230   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4231     typedef const int *iptr;
4232     iptr p = 0;
4233     ++p;
4234   }
4235   { /* AIX XL C 1.02.0.0 rejects this saying
4236        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4237     struct s { int j; const int *ap[3]; };
4238     struct s *b; b->j = 5;
4239   }
4240   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4241     const int foo = 10;
4242   }
4243 #endif
4244
4245   ;
4246   return 0;
4247 }
4248 _ACEOF
4249 rm -f conftest.$ac_objext
4250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4251   (eval $ac_compile) 2>&5
4252   ac_status=$?
4253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254   (exit $ac_status); } &&
4255          { ac_try='test -s conftest.$ac_objext'
4256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4257   (eval $ac_try) 2>&5
4258   ac_status=$?
4259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260   (exit $ac_status); }; }; then
4261   ac_cv_c_const=yes
4262 else
4263   echo "$as_me: failed program was:" >&5
4264 sed 's/^/| /' conftest.$ac_ext >&5
4265
4266 ac_cv_c_const=no
4267 fi
4268 rm -f conftest.$ac_objext conftest.$ac_ext
4269 fi
4270 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4271 echo "${ECHO_T}$ac_cv_c_const" >&6
4272 if test $ac_cv_c_const = no; then
4273
4274 cat >>confdefs.h <<\_ACEOF
4275 #define const
4276 _ACEOF
4277
4278 fi
4279
4280
4281 # Extract the first word of "dbx", so it can be a program name with args.
4282 set dummy dbx; ac_word=$2
4283 echo "$as_me:$LINENO: checking for $ac_word" >&5
4284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4285 if test "${ac_cv_path_DBX+set}" = set; then
4286   echo $ECHO_N "(cached) $ECHO_C" >&6
4287 else
4288   case $DBX in
4289   [\\/]* | ?:[\\/]*)
4290   ac_cv_path_DBX="$DBX" # Let the user override the test with a path.
4291   ;;
4292   *)
4293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH
4295 do
4296   IFS=$as_save_IFS
4297   test -z "$as_dir" && as_dir=.
4298   for ac_exec_ext in '' $ac_executable_extensions; do
4299   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4300     ac_cv_path_DBX="$as_dir/$ac_word$ac_exec_ext"
4301     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4302     break 2
4303   fi
4304 done
4305 done
4306
4307   test -z "$ac_cv_path_DBX" && ac_cv_path_DBX="no"
4308   ;;
4309 esac
4310 fi
4311 DBX=$ac_cv_path_DBX
4312
4313 if test -n "$DBX"; then
4314   echo "$as_me:$LINENO: result: $DBX" >&5
4315 echo "${ECHO_T}$DBX" >&6
4316 else
4317   echo "$as_me:$LINENO: result: no" >&5
4318 echo "${ECHO_T}no" >&6
4319 fi
4320
4321 # Extract the first word of "gdb", so it can be a program name with args.
4322 set dummy gdb; ac_word=$2
4323 echo "$as_me:$LINENO: checking for $ac_word" >&5
4324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4325 if test "${ac_cv_path_GDB+set}" = set; then
4326   echo $ECHO_N "(cached) $ECHO_C" >&6
4327 else
4328   case $GDB in
4329   [\\/]* | ?:[\\/]*)
4330   ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
4331   ;;
4332   *)
4333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334 for as_dir in $PATH
4335 do
4336   IFS=$as_save_IFS
4337   test -z "$as_dir" && as_dir=.
4338   for ac_exec_ext in '' $ac_executable_extensions; do
4339   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4340     ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
4341     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4342     break 2
4343   fi
4344 done
4345 done
4346
4347   test -z "$ac_cv_path_GDB" && ac_cv_path_GDB="no"
4348   ;;
4349 esac
4350 fi
4351 GDB=$ac_cv_path_GDB
4352
4353 if test -n "$GDB"; then
4354   echo "$as_me:$LINENO: result: $GDB" >&5
4355 echo "${ECHO_T}$GDB" >&6
4356 else
4357   echo "$as_me:$LINENO: result: no" >&5
4358 echo "${ECHO_T}no" >&6
4359 fi
4360
4361 # Extract the first word of "sdb", so it can be a program name with args.
4362 set dummy sdb; ac_word=$2
4363 echo "$as_me:$LINENO: checking for $ac_word" >&5
4364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4365 if test "${ac_cv_path_SDB+set}" = set; then
4366   echo $ECHO_N "(cached) $ECHO_C" >&6
4367 else
4368   case $SDB in
4369   [\\/]* | ?:[\\/]*)
4370   ac_cv_path_SDB="$SDB" # Let the user override the test with a path.
4371   ;;
4372   *)
4373   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374 for as_dir in $PATH
4375 do
4376   IFS=$as_save_IFS
4377   test -z "$as_dir" && as_dir=.
4378   for ac_exec_ext in '' $ac_executable_extensions; do
4379   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4380     ac_cv_path_SDB="$as_dir/$ac_word$ac_exec_ext"
4381     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4382     break 2
4383   fi
4384 done
4385 done
4386
4387   test -z "$ac_cv_path_SDB" && ac_cv_path_SDB="no"
4388   ;;
4389 esac
4390 fi
4391 SDB=$ac_cv_path_SDB
4392
4393 if test -n "$SDB"; then
4394   echo "$as_me:$LINENO: result: $SDB" >&5
4395 echo "${ECHO_T}$SDB" >&6
4396 else
4397   echo "$as_me:$LINENO: result: no" >&5
4398 echo "${ECHO_T}no" >&6
4399 fi
4400
4401
4402 if test $GDB != no ; then
4403         DEBUGGER=$GDB
4404 elif test $DBX != no ; then
4405         DEBUGGER=$DBX
4406 elif test $SDB != no ; then
4407         DEBUGGER=$SDB
4408 else
4409         DEBUGGER=no
4410 fi
4411
4412
4413
4414 # The following templates should be used with newer automakes
4415 # instead of acconfig.h
4416 #
4417 #AH_TEMPLATE([sig_atomic_t],
4418 #            [/* Define to `int' if <signal.h> doesn't define.])
4419 #AH_TEMPLATE([HAVE_START_COLOR],
4420 #            [Define if you have start_color, as a function or macro.])
4421 #AH_TEMPLATE([HAVE_TYPEAHEAD],
4422 #            [Define if you have typeahead, as a function or macro.])
4423 #AH_TEMPLATE([HAVE_BKGDSET],
4424 #            [Define if you have bkgdset, as a function or macro.])
4425 #AH_TEMPLATE([HAVE_CURS_SET],
4426 #            [Define if you have curs_set, as a function or macro.])
4427 #AH_TEMPLATE([HAVE_META],
4428 #            [Define if you have meta, as a function or macro.])
4429 #AH_TEMPLATE([HAVE_USE_DEFAULT_COLORS],
4430 #            [Define if you have use_default_colors, as a function or macro.])
4431 #AH_TEMPLATE([HAVE_RESIZETERM],
4432 #            [Define if you have resizeterm, as a function or macro.])
4433 #AH_TEMPLATE([SIG_ATOMIC_VOLATILE_T],
4434 #            [Some systems declare sig_atomic_t as volatile, some others -- no.
4435 #             This define will have value `sig_atomic_t' or
4436 #             `volatile sig_atomic_t' accordingly.])
4437 #AH_TEMPLATE([ICONV_NONTRANS],
4438 #            [Define as 1 if iconv() only converts exactly and we should treat
4439 #             all return values other than (size_t)(-1) as equivalent.])
4440
4441
4442 ac_aux_path_sendmail=/usr/sbin:/usr/lib
4443 # Extract the first word of "sendmail", so it can be a program name with args.
4444 set dummy sendmail; ac_word=$2
4445 echo "$as_me:$LINENO: checking for $ac_word" >&5
4446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4447 if test "${ac_cv_path_SENDMAIL+set}" = set; then
4448   echo $ECHO_N "(cached) $ECHO_C" >&6
4449 else
4450   case $SENDMAIL in
4451   [\\/]* | ?:[\\/]*)
4452   ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
4453   ;;
4454   *)
4455   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 as_dummy="$PATH:$ac_aux_path_sendmail"
4457 for as_dir in $as_dummy
4458 do
4459   IFS=$as_save_IFS
4460   test -z "$as_dir" && as_dir=.
4461   for ac_exec_ext in '' $ac_executable_extensions; do
4462   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4463     ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
4464     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4465     break 2
4466   fi
4467 done
4468 done
4469
4470   test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/sbin/sendmail"
4471   ;;
4472 esac
4473 fi
4474 SENDMAIL=$ac_cv_path_SENDMAIL
4475
4476 if test -n "$SENDMAIL"; then
4477   echo "$as_me:$LINENO: result: $SENDMAIL" >&5
4478 echo "${ECHO_T}$SENDMAIL" >&6
4479 else
4480   echo "$as_me:$LINENO: result: no" >&5
4481 echo "${ECHO_T}no" >&6
4482 fi
4483
4484
4485 cat >>confdefs.h <<_ACEOF
4486 #define SENDMAIL "$ac_cv_path_SENDMAIL"
4487 _ACEOF
4488
4489
4490 OPS='$(srcdir)/OPS'
4491 if test -f $srcdir/EXPORTABLE ; then
4492         SUBVERSION="us"
4493 else
4494         SUBVERSION="i"
4495
4496         # Check whether --enable-pgp or --disable-pgp was given.
4497 if test "${enable_pgp+set}" = set; then
4498   enableval="$enable_pgp"
4499          if test x$enableval = xno ; then
4500                         have_pgp=no
4501                 fi
4502
4503 fi;
4504
4505         if test x$have_pgp != xno ; then
4506
4507 cat >>confdefs.h <<\_ACEOF
4508 #define CRYPT_BACKEND_CLASSIC_PGP 1
4509 _ACEOF
4510
4511                 PGPAUX_TARGET="pgpring pgpewrap"
4512                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pgp.o pgpinvoke.o pgpkey.o pgplib.o gnupgparse.o pgpmicalg.o pgppacket.o"
4513         fi
4514
4515         # Check whether --enable-smime or --disable-smime was given.
4516 if test "${enable_smime+set}" = set; then
4517   enableval="$enable_smime"
4518         if test x$enableval = xno ; then
4519                         have_smime=no
4520                 fi
4521
4522 fi;
4523
4524         if test x$have_smime != xno ; then
4525
4526 cat >>confdefs.h <<\_ACEOF
4527 #define CRYPT_BACKEND_CLASSIC_SMIME 1
4528 _ACEOF
4529
4530                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS smime.o "
4531                 SMIMEAUX_TARGET="smime_keys"
4532         fi
4533
4534
4535 # Check whether --with-mixmaster or --without-mixmaster was given.
4536 if test "${with_mixmaster+set}" = set; then
4537   withval="$with_mixmaster"
4538   if test -x "$withval" ; then
4539                         MIXMASTER="$withval"
4540                  else
4541                         MIXMASTER="mixmaster"
4542                  fi
4543                  OPS="$OPS \$(srcdir)/OPS.MIX"
4544                  MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS remailer.o"
4545
4546 cat >>confdefs.h <<_ACEOF
4547 #define MIXMASTER "$MIXMASTER"
4548 _ACEOF
4549
4550
4551 fi;
4552
4553 fi
4554 # We now require all OPS
4555 OPS="$OPS \$(srcdir)/OPS.PGP \$(srcdir)/OPS.SMIME \$(srcdir)/OPS.CRYPT "
4556
4557
4558
4559
4560
4561
4562
4563 cat >>confdefs.h <<_ACEOF
4564 #define SUBVERSION "$SUBVERSION"
4565 _ACEOF
4566
4567
4568
4569 # Extract the first word of "ispell", so it can be a program name with args.
4570 set dummy ispell; ac_word=$2
4571 echo "$as_me:$LINENO: checking for $ac_word" >&5
4572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4573 if test "${ac_cv_path_ISPELL+set}" = set; then
4574   echo $ECHO_N "(cached) $ECHO_C" >&6
4575 else
4576   case $ISPELL in
4577   [\\/]* | ?:[\\/]*)
4578   ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a path.
4579   ;;
4580   *)
4581   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 for as_dir in $PATH
4583 do
4584   IFS=$as_save_IFS
4585   test -z "$as_dir" && as_dir=.
4586   for ac_exec_ext in '' $ac_executable_extensions; do
4587   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4588     ac_cv_path_ISPELL="$as_dir/$ac_word$ac_exec_ext"
4589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4590     break 2
4591   fi
4592 done
4593 done
4594
4595   test -z "$ac_cv_path_ISPELL" && ac_cv_path_ISPELL="no"
4596   ;;
4597 esac
4598 fi
4599 ISPELL=$ac_cv_path_ISPELL
4600
4601 if test -n "$ISPELL"; then
4602   echo "$as_me:$LINENO: result: $ISPELL" >&5
4603 echo "${ECHO_T}$ISPELL" >&6
4604 else
4605   echo "$as_me:$LINENO: result: no" >&5
4606 echo "${ECHO_T}no" >&6
4607 fi
4608
4609 if test $ISPELL != no; then
4610
4611 cat >>confdefs.h <<_ACEOF
4612 #define ISPELL "$ISPELL"
4613 _ACEOF
4614
4615 fi
4616
4617
4618 # Check whether --with-slang or --without-slang was given.
4619 if test "${with_slang+set}" = set; then
4620   withval="$with_slang"
4621   echo "$as_me:$LINENO: checking if this is a BSD system" >&5
4622 echo $ECHO_N "checking if this is a BSD system... $ECHO_C" >&6
4623 if test "${mutt_cv_bsdish+set}" = set; then
4624   echo $ECHO_N "(cached) $ECHO_C" >&6
4625 else
4626   if test "$cross_compiling" = yes; then
4627   mutt_cv_bsdish=no
4628 else
4629   cat >conftest.$ac_ext <<_ACEOF
4630 #line $LINENO "configure"
4631 /* confdefs.h.  */
4632 _ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h.  */
4636 #include <sys/param.h>
4637
4638 main ()
4639 {
4640 #ifdef BSD
4641         exit (0);
4642 #else
4643         exit (1);
4644 #endif
4645 }
4646 _ACEOF
4647 rm -f conftest$ac_exeext
4648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4649   (eval $ac_link) 2>&5
4650   ac_status=$?
4651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4654   (eval $ac_try) 2>&5
4655   ac_status=$?
4656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657   (exit $ac_status); }; }; then
4658   mutt_cv_bsdish=yes
4659 else
4660   echo "$as_me: program exited with status $ac_status" >&5
4661 echo "$as_me: failed program was:" >&5
4662 sed 's/^/| /' conftest.$ac_ext >&5
4663
4664 ( exit $ac_status )
4665 mutt_cv_bsdish=no
4666 fi
4667 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4668 fi
4669 fi
4670 echo "$as_me:$LINENO: result: $mutt_cv_bsdish" >&5
4671 echo "${ECHO_T}$mutt_cv_bsdish" >&6
4672
4673         echo "$as_me:$LINENO: checking for S-Lang" >&5
4674 echo $ECHO_N "checking for S-Lang... $ECHO_C" >&6
4675         if test $withval = yes; then
4676                 if test -d $srcdir/../slang; then
4677                         mutt_cv_slang=$srcdir/../slang/src
4678                         CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
4679                         LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
4680                 else
4681                         if test -d $mutt_cv_prefix/include/slang; then
4682                                 CPPFLAGS="$CPPFLAGS -I$mutt_cv_prefix/include/slang"
4683                         elif test -d /usr/include/slang; then
4684                                 CPPFLAGS="$CPPFLAGS -I/usr/include/slang"
4685                         fi
4686                         mutt_cv_slang=yes
4687                 fi
4688         else
4689                                 if test -f $withval/src/slang.h; then
4690                         mutt_cv_slang=$withval/src
4691                         CPPFLAGS="$CPPFLAGS -I${mutt_cv_slang}"
4692                         LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
4693                 else
4694                                                 mutt_cv_slang=$withval
4695                         if test -d $withval/include/slang; then
4696                                 CPPFLAGS="$CPPFLAGS -I${withval}/include/slang"
4697                         elif test -d $withval/include; then
4698                                 CPPFLAGS="$CPPFLAGS -I${withval}/include"
4699                         fi
4700                         LDFLAGS="$LDFLAGS -L${withval}/lib"
4701                 fi
4702         fi
4703         echo "$as_me:$LINENO: result: $mutt_cv_slang" >&5
4704 echo "${ECHO_T}$mutt_cv_slang" >&6
4705         if test $mutt_cv_bsdish = yes; then
4706
4707 echo "$as_me:$LINENO: checking for main in -ltermlib" >&5
4708 echo $ECHO_N "checking for main in -ltermlib... $ECHO_C" >&6
4709 if test "${ac_cv_lib_termlib_main+set}" = set; then
4710   echo $ECHO_N "(cached) $ECHO_C" >&6
4711 else
4712   ac_check_lib_save_LIBS=$LIBS
4713 LIBS="-ltermlib  $LIBS"
4714 cat >conftest.$ac_ext <<_ACEOF
4715 #line $LINENO "configure"
4716 /* confdefs.h.  */
4717 _ACEOF
4718 cat confdefs.h >>conftest.$ac_ext
4719 cat >>conftest.$ac_ext <<_ACEOF
4720 /* end confdefs.h.  */
4721
4722
4723 int
4724 main ()
4725 {
4726 main ();
4727   ;
4728   return 0;
4729 }
4730 _ACEOF
4731 rm -f conftest.$ac_objext conftest$ac_exeext
4732 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4733   (eval $ac_link) 2>&5
4734   ac_status=$?
4735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736   (exit $ac_status); } &&
4737          { ac_try='test -s conftest$ac_exeext'
4738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4739   (eval $ac_try) 2>&5
4740   ac_status=$?
4741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742   (exit $ac_status); }; }; then
4743   ac_cv_lib_termlib_main=yes
4744 else
4745   echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4747
4748 ac_cv_lib_termlib_main=no
4749 fi
4750 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4751 LIBS=$ac_check_lib_save_LIBS
4752 fi
4753 echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_main" >&5
4754 echo "${ECHO_T}$ac_cv_lib_termlib_main" >&6
4755 if test $ac_cv_lib_termlib_main = yes; then
4756   cat >>confdefs.h <<_ACEOF
4757 #define HAVE_LIBTERMLIB 1
4758 _ACEOF
4759
4760   LIBS="-ltermlib $LIBS"
4761
4762 fi
4763
4764         fi
4765
4766 cat >>confdefs.h <<\_ACEOF
4767 #define USE_SLANG_CURSES 1
4768 _ACEOF
4769
4770
4771 cat >>confdefs.h <<\_ACEOF
4772 #define HAVE_COLOR 1
4773 _ACEOF
4774
4775         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
4776
4777
4778         echo "$as_me:$LINENO: checking for SLtt_get_terminfo in -lslang" >&5
4779 echo $ECHO_N "checking for SLtt_get_terminfo in -lslang... $ECHO_C" >&6
4780 if test "${ac_cv_lib_slang_SLtt_get_terminfo+set}" = set; then
4781   echo $ECHO_N "(cached) $ECHO_C" >&6
4782 else
4783   ac_check_lib_save_LIBS=$LIBS
4784 LIBS="-lslang -lm $LIBS"
4785 cat >conftest.$ac_ext <<_ACEOF
4786 #line $LINENO "configure"
4787 /* confdefs.h.  */
4788 _ACEOF
4789 cat confdefs.h >>conftest.$ac_ext
4790 cat >>conftest.$ac_ext <<_ACEOF
4791 /* end confdefs.h.  */
4792
4793 /* Override any gcc2 internal prototype to avoid an error.  */
4794 #ifdef __cplusplus
4795 extern "C"
4796 #endif
4797 /* We use char because int might match the return type of a gcc2
4798    builtin and then its argument prototype would still apply.  */
4799 char SLtt_get_terminfo ();
4800 int
4801 main ()
4802 {
4803 SLtt_get_terminfo ();
4804   ;
4805   return 0;
4806 }
4807 _ACEOF
4808 rm -f conftest.$ac_objext conftest$ac_exeext
4809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4810   (eval $ac_link) 2>&5
4811   ac_status=$?
4812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813   (exit $ac_status); } &&
4814          { ac_try='test -s conftest$ac_exeext'
4815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4816   (eval $ac_try) 2>&5
4817   ac_status=$?
4818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819   (exit $ac_status); }; }; then
4820   ac_cv_lib_slang_SLtt_get_terminfo=yes
4821 else
4822   echo "$as_me: failed program was:" >&5
4823 sed 's/^/| /' conftest.$ac_ext >&5
4824
4825 ac_cv_lib_slang_SLtt_get_terminfo=no
4826 fi
4827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4828 LIBS=$ac_check_lib_save_LIBS
4829 fi
4830 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLtt_get_terminfo" >&5
4831 echo "${ECHO_T}$ac_cv_lib_slang_SLtt_get_terminfo" >&6
4832 if test $ac_cv_lib_slang_SLtt_get_terminfo = yes; then
4833   MUTTLIBS="$MUTTLIBS -lslang -lm"
4834 else
4835   { { echo "$as_me:$LINENO: error: unable to compile.  check config.log" >&5
4836 echo "$as_me: error: unable to compile.  check config.log" >&2;}
4837    { (exit 1); exit 1; }; }
4838 fi
4839
4840
4841
4842 else
4843   mutt_cv_curses=/usr
4844
4845 # Check whether --with-curses or --without-curses was given.
4846 if test "${with_curses+set}" = set; then
4847   withval="$with_curses"
4848   if test $withval != yes; then
4849                         mutt_cv_curses=$withval
4850                 fi
4851                 if test x$mutt_cv_curses != x/usr; then
4852                         LDFLAGS="-L${mutt_cv_curses}/lib $LDFLAGS"
4853                         CPPFLAGS="$CPPFLAGS -I${mutt_cv_curses}/include"
4854                 fi
4855 fi;
4856
4857         echo "$as_me:$LINENO: checking for initscr" >&5
4858 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
4859 if test "${ac_cv_func_initscr+set}" = set; then
4860   echo $ECHO_N "(cached) $ECHO_C" >&6
4861 else
4862   cat >conftest.$ac_ext <<_ACEOF
4863 #line $LINENO "configure"
4864 /* confdefs.h.  */
4865 _ACEOF
4866 cat confdefs.h >>conftest.$ac_ext
4867 cat >>conftest.$ac_ext <<_ACEOF
4868 /* end confdefs.h.  */
4869 /* System header to define __stub macros and hopefully few prototypes,
4870     which can conflict with char initscr (); below.
4871     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4872     <limits.h> exists even on freestanding compilers.  */
4873 #ifdef __STDC__
4874 # include <limits.h>
4875 #else
4876 # include <assert.h>
4877 #endif
4878 /* Override any gcc2 internal prototype to avoid an error.  */
4879 #ifdef __cplusplus
4880 extern "C"
4881 {
4882 #endif
4883 /* We use char because int might match the return type of a gcc2
4884    builtin and then its argument prototype would still apply.  */
4885 char initscr ();
4886 /* The GNU C library defines this for functions which it implements
4887     to always fail with ENOSYS.  Some functions are actually named
4888     something starting with __ and the normal name is an alias.  */
4889 #if defined (__stub_initscr) || defined (__stub___initscr)
4890 choke me
4891 #else
4892 char (*f) () = initscr;
4893 #endif
4894 #ifdef __cplusplus
4895 }
4896 #endif
4897
4898 int
4899 main ()
4900 {
4901 return f != initscr;
4902   ;
4903   return 0;
4904 }
4905 _ACEOF
4906 rm -f conftest.$ac_objext conftest$ac_exeext
4907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4908   (eval $ac_link) 2>&5
4909   ac_status=$?
4910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911   (exit $ac_status); } &&
4912          { ac_try='test -s conftest$ac_exeext'
4913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4914   (eval $ac_try) 2>&5
4915   ac_status=$?
4916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917   (exit $ac_status); }; }; then
4918   ac_cv_func_initscr=yes
4919 else
4920   echo "$as_me: failed program was:" >&5
4921 sed 's/^/| /' conftest.$ac_ext >&5
4922
4923 ac_cv_func_initscr=no
4924 fi
4925 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4926 fi
4927 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
4928 echo "${ECHO_T}$ac_cv_func_initscr" >&6
4929 if test $ac_cv_func_initscr = yes; then
4930   :
4931 else
4932
4933         cf_ncurses="ncurses"
4934         for lib in ncurses ncursesw
4935         do
4936                 as_ac_Lib=`echo "ac_cv_lib_$lib''_waddnwstr" | $as_tr_sh`
4937 echo "$as_me:$LINENO: checking for waddnwstr in -l$lib" >&5
4938 echo $ECHO_N "checking for waddnwstr in -l$lib... $ECHO_C" >&6
4939 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
4940   echo $ECHO_N "(cached) $ECHO_C" >&6
4941 else
4942   ac_check_lib_save_LIBS=$LIBS
4943 LIBS="-l$lib  $LIBS"
4944 cat >conftest.$ac_ext <<_ACEOF
4945 #line $LINENO "configure"
4946 /* confdefs.h.  */
4947 _ACEOF
4948 cat confdefs.h >>conftest.$ac_ext
4949 cat >>conftest.$ac_ext <<_ACEOF
4950 /* end confdefs.h.  */
4951
4952 /* Override any gcc2 internal prototype to avoid an error.  */
4953 #ifdef __cplusplus
4954 extern "C"
4955 #endif
4956 /* We use char because int might match the return type of a gcc2
4957    builtin and then its argument prototype would still apply.  */
4958 char waddnwstr ();
4959 int
4960 main ()
4961 {
4962 waddnwstr ();
4963   ;
4964   return 0;
4965 }
4966 _ACEOF
4967 rm -f conftest.$ac_objext conftest$ac_exeext
4968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4969   (eval $ac_link) 2>&5
4970   ac_status=$?
4971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972   (exit $ac_status); } &&
4973          { ac_try='test -s conftest$ac_exeext'
4974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4975   (eval $ac_try) 2>&5
4976   ac_status=$?
4977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978   (exit $ac_status); }; }; then
4979   eval "$as_ac_Lib=yes"
4980 else
4981   echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4983
4984 eval "$as_ac_Lib=no"
4985 fi
4986 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4987 LIBS=$ac_check_lib_save_LIBS
4988 fi
4989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
4990 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
4991 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
4992   cf_ncurses="$lib"; break
4993 fi
4994
4995         done
4996         as_ac_Lib=`echo "ac_cv_lib_$cf_ncurses''_initscr" | $as_tr_sh`
4997 echo "$as_me:$LINENO: checking for initscr in -l$cf_ncurses" >&5
4998 echo $ECHO_N "checking for initscr in -l$cf_ncurses... $ECHO_C" >&6
4999 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5000   echo $ECHO_N "(cached) $ECHO_C" >&6
5001 else
5002   ac_check_lib_save_LIBS=$LIBS
5003 LIBS="-l$cf_ncurses  $LIBS"
5004 cat >conftest.$ac_ext <<_ACEOF
5005 #line $LINENO "configure"
5006 /* confdefs.h.  */
5007 _ACEOF
5008 cat confdefs.h >>conftest.$ac_ext
5009 cat >>conftest.$ac_ext <<_ACEOF
5010 /* end confdefs.h.  */
5011
5012 /* Override any gcc2 internal prototype to avoid an error.  */
5013 #ifdef __cplusplus
5014 extern "C"
5015 #endif
5016 /* We use char because int might match the return type of a gcc2
5017    builtin and then its argument prototype would still apply.  */
5018 char initscr ();
5019 int
5020 main ()
5021 {
5022 initscr ();
5023   ;
5024   return 0;
5025 }
5026 _ACEOF
5027 rm -f conftest.$ac_objext conftest$ac_exeext
5028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5029   (eval $ac_link) 2>&5
5030   ac_status=$?
5031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032   (exit $ac_status); } &&
5033          { ac_try='test -s conftest$ac_exeext'
5034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5035   (eval $ac_try) 2>&5
5036   ac_status=$?
5037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038   (exit $ac_status); }; }; then
5039   eval "$as_ac_Lib=yes"
5040 else
5041   echo "$as_me: failed program was:" >&5
5042 sed 's/^/| /' conftest.$ac_ext >&5
5043
5044 eval "$as_ac_Lib=no"
5045 fi
5046 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5047 LIBS=$ac_check_lib_save_LIBS
5048 fi
5049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5050 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5051 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5052   MUTTLIBS="$MUTTLIBS -l$cf_ncurses"
5053                 if test x$mutt_cv_curses = x/usr -a -d /usr/include/ncurses; then
5054                         CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
5055                 fi
5056
5057                 if test "$cf_ncurses" = ncursesw; then
5058
5059 for ac_header in ncursesw/ncurses.h
5060 do
5061 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5063   echo "$as_me:$LINENO: checking for $ac_header" >&5
5064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5065 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5066   echo $ECHO_N "(cached) $ECHO_C" >&6
5067 fi
5068 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5069 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5070 else
5071   # Is the header compilable?
5072 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5073 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5074 cat >conftest.$ac_ext <<_ACEOF
5075 #line $LINENO "configure"
5076 /* confdefs.h.  */
5077 _ACEOF
5078 cat confdefs.h >>conftest.$ac_ext
5079 cat >>conftest.$ac_ext <<_ACEOF
5080 /* end confdefs.h.  */
5081 $ac_includes_default
5082 #include <$ac_header>
5083 _ACEOF
5084 rm -f conftest.$ac_objext
5085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5086   (eval $ac_compile) 2>&5
5087   ac_status=$?
5088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089   (exit $ac_status); } &&
5090          { ac_try='test -s conftest.$ac_objext'
5091   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5092   (eval $ac_try) 2>&5
5093   ac_status=$?
5094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095   (exit $ac_status); }; }; then
5096   ac_header_compiler=yes
5097 else
5098   echo "$as_me: failed program was:" >&5
5099 sed 's/^/| /' conftest.$ac_ext >&5
5100
5101 ac_header_compiler=no
5102 fi
5103 rm -f conftest.$ac_objext conftest.$ac_ext
5104 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5105 echo "${ECHO_T}$ac_header_compiler" >&6
5106
5107 # Is the header present?
5108 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5109 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5110 cat >conftest.$ac_ext <<_ACEOF
5111 #line $LINENO "configure"
5112 /* confdefs.h.  */
5113 _ACEOF
5114 cat confdefs.h >>conftest.$ac_ext
5115 cat >>conftest.$ac_ext <<_ACEOF
5116 /* end confdefs.h.  */
5117 #include <$ac_header>
5118 _ACEOF
5119 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5120   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5121   ac_status=$?
5122   grep -v '^ *+' conftest.er1 >conftest.err
5123   rm -f conftest.er1
5124   cat conftest.err >&5
5125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126   (exit $ac_status); } >/dev/null; then
5127   if test -s conftest.err; then
5128     ac_cpp_err=$ac_c_preproc_warn_flag
5129   else
5130     ac_cpp_err=
5131   fi
5132 else
5133   ac_cpp_err=yes
5134 fi
5135 if test -z "$ac_cpp_err"; then
5136   ac_header_preproc=yes
5137 else
5138   echo "$as_me: failed program was:" >&5
5139 sed 's/^/| /' conftest.$ac_ext >&5
5140
5141   ac_header_preproc=no
5142 fi
5143 rm -f conftest.err conftest.$ac_ext
5144 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5145 echo "${ECHO_T}$ac_header_preproc" >&6
5146
5147 # So?  What about this header?
5148 case $ac_header_compiler:$ac_header_preproc in
5149   yes:no )
5150     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5151 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5152     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5153 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5154     (
5155       cat <<\_ASBOX
5156 ## ------------------------------------ ##
5157 ## Report this to bug-autoconf@gnu.org. ##
5158 ## ------------------------------------ ##
5159 _ASBOX
5160     ) |
5161       sed "s/^/$as_me: WARNING:     /" >&2
5162     ;;
5163   no:yes )
5164     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5165 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5166     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5167 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5168     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5170     (
5171       cat <<\_ASBOX
5172 ## ------------------------------------ ##
5173 ## Report this to bug-autoconf@gnu.org. ##
5174 ## ------------------------------------ ##
5175 _ASBOX
5176     ) |
5177       sed "s/^/$as_me: WARNING:     /" >&2
5178     ;;
5179 esac
5180 echo "$as_me:$LINENO: checking for $ac_header" >&5
5181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5182 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5183   echo $ECHO_N "(cached) $ECHO_C" >&6
5184 else
5185   eval "$as_ac_Header=$ac_header_preproc"
5186 fi
5187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5189
5190 fi
5191 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5192   cat >>confdefs.h <<_ACEOF
5193 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5194 _ACEOF
5195  cf_cv_ncurses_header="ncursesw/ncurses.h"
5196 fi
5197
5198 done
5199
5200                 else
5201
5202 for ac_header in ncurses.h
5203 do
5204 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5206   echo "$as_me:$LINENO: checking for $ac_header" >&5
5207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5209   echo $ECHO_N "(cached) $ECHO_C" >&6
5210 fi
5211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5213 else
5214   # Is the header compilable?
5215 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5216 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5217 cat >conftest.$ac_ext <<_ACEOF
5218 #line $LINENO "configure"
5219 /* confdefs.h.  */
5220 _ACEOF
5221 cat confdefs.h >>conftest.$ac_ext
5222 cat >>conftest.$ac_ext <<_ACEOF
5223 /* end confdefs.h.  */
5224 $ac_includes_default
5225 #include <$ac_header>
5226 _ACEOF
5227 rm -f conftest.$ac_objext
5228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5229   (eval $ac_compile) 2>&5
5230   ac_status=$?
5231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232   (exit $ac_status); } &&
5233          { ac_try='test -s conftest.$ac_objext'
5234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5235   (eval $ac_try) 2>&5
5236   ac_status=$?
5237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5238   (exit $ac_status); }; }; then
5239   ac_header_compiler=yes
5240 else
5241   echo "$as_me: failed program was:" >&5
5242 sed 's/^/| /' conftest.$ac_ext >&5
5243
5244 ac_header_compiler=no
5245 fi
5246 rm -f conftest.$ac_objext conftest.$ac_ext
5247 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5248 echo "${ECHO_T}$ac_header_compiler" >&6
5249
5250 # Is the header present?
5251 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5252 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5253 cat >conftest.$ac_ext <<_ACEOF
5254 #line $LINENO "configure"
5255 /* confdefs.h.  */
5256 _ACEOF
5257 cat confdefs.h >>conftest.$ac_ext
5258 cat >>conftest.$ac_ext <<_ACEOF
5259 /* end confdefs.h.  */
5260 #include <$ac_header>
5261 _ACEOF
5262 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5263   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5264   ac_status=$?
5265   grep -v '^ *+' conftest.er1 >conftest.err
5266   rm -f conftest.er1
5267   cat conftest.err >&5
5268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269   (exit $ac_status); } >/dev/null; then
5270   if test -s conftest.err; then
5271     ac_cpp_err=$ac_c_preproc_warn_flag
5272   else
5273     ac_cpp_err=
5274   fi
5275 else
5276   ac_cpp_err=yes
5277 fi
5278 if test -z "$ac_cpp_err"; then
5279   ac_header_preproc=yes
5280 else
5281   echo "$as_me: failed program was:" >&5
5282 sed 's/^/| /' conftest.$ac_ext >&5
5283
5284   ac_header_preproc=no
5285 fi
5286 rm -f conftest.err conftest.$ac_ext
5287 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5288 echo "${ECHO_T}$ac_header_preproc" >&6
5289
5290 # So?  What about this header?
5291 case $ac_header_compiler:$ac_header_preproc in
5292   yes:no )
5293     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5294 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5295     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5297     (
5298       cat <<\_ASBOX
5299 ## ------------------------------------ ##
5300 ## Report this to bug-autoconf@gnu.org. ##
5301 ## ------------------------------------ ##
5302 _ASBOX
5303     ) |
5304       sed "s/^/$as_me: WARNING:     /" >&2
5305     ;;
5306   no:yes )
5307     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5308 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5309     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5310 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5311     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5312 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5313     (
5314       cat <<\_ASBOX
5315 ## ------------------------------------ ##
5316 ## Report this to bug-autoconf@gnu.org. ##
5317 ## ------------------------------------ ##
5318 _ASBOX
5319     ) |
5320       sed "s/^/$as_me: WARNING:     /" >&2
5321     ;;
5322 esac
5323 echo "$as_me:$LINENO: checking for $ac_header" >&5
5324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5326   echo $ECHO_N "(cached) $ECHO_C" >&6
5327 else
5328   eval "$as_ac_Header=$ac_header_preproc"
5329 fi
5330 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5331 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5332
5333 fi
5334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5335   cat >>confdefs.h <<_ACEOF
5336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5337 _ACEOF
5338  cf_cv_ncurses_header="ncurses.h"
5339 fi
5340
5341 done
5342
5343                 fi
5344 else
5345
5346 echo "$as_me:$LINENO: checking for initscr" >&5
5347 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
5348 if test "${ac_cv_func_initscr+set}" = set; then
5349   echo $ECHO_N "(cached) $ECHO_C" >&6
5350 else
5351   cat >conftest.$ac_ext <<_ACEOF
5352 #line $LINENO "configure"
5353 /* confdefs.h.  */
5354 _ACEOF
5355 cat confdefs.h >>conftest.$ac_ext
5356 cat >>conftest.$ac_ext <<_ACEOF
5357 /* end confdefs.h.  */
5358 /* System header to define __stub macros and hopefully few prototypes,
5359     which can conflict with char initscr (); below.
5360     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5361     <limits.h> exists even on freestanding compilers.  */
5362 #ifdef __STDC__
5363 # include <limits.h>
5364 #else
5365 # include <assert.h>
5366 #endif
5367 /* Override any gcc2 internal prototype to avoid an error.  */
5368 #ifdef __cplusplus
5369 extern "C"
5370 {
5371 #endif
5372 /* We use char because int might match the return type of a gcc2
5373    builtin and then its argument prototype would still apply.  */
5374 char initscr ();
5375 /* The GNU C library defines this for functions which it implements
5376     to always fail with ENOSYS.  Some functions are actually named
5377     something starting with __ and the normal name is an alias.  */
5378 #if defined (__stub_initscr) || defined (__stub___initscr)
5379 choke me
5380 #else
5381 char (*f) () = initscr;
5382 #endif
5383 #ifdef __cplusplus
5384 }
5385 #endif
5386
5387 int
5388 main ()
5389 {
5390 return f != initscr;
5391   ;
5392   return 0;
5393 }
5394 _ACEOF
5395 rm -f conftest.$ac_objext conftest$ac_exeext
5396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5397   (eval $ac_link) 2>&5
5398   ac_status=$?
5399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400   (exit $ac_status); } &&
5401          { ac_try='test -s conftest$ac_exeext'
5402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5403   (eval $ac_try) 2>&5
5404   ac_status=$?
5405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406   (exit $ac_status); }; }; then
5407   ac_cv_func_initscr=yes
5408 else
5409   echo "$as_me: failed program was:" >&5
5410 sed 's/^/| /' conftest.$ac_ext >&5
5411
5412 ac_cv_func_initscr=no
5413 fi
5414 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5415 fi
5416 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
5417 echo "${ECHO_T}$ac_cv_func_initscr" >&6
5418 if test $ac_cv_func_initscr = yes; then
5419   :
5420 else
5421
5422 case $host_os in #(vi
5423 freebsd*) #(vi
5424         echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5
5425 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
5426 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
5427   echo $ECHO_N "(cached) $ECHO_C" >&6
5428 else
5429   ac_check_lib_save_LIBS=$LIBS
5430 LIBS="-lmytinfo  $LIBS"
5431 cat >conftest.$ac_ext <<_ACEOF
5432 #line $LINENO "configure"
5433 /* confdefs.h.  */
5434 _ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h.  */
5438
5439 /* Override any gcc2 internal prototype to avoid an error.  */
5440 #ifdef __cplusplus
5441 extern "C"
5442 #endif
5443 /* We use char because int might match the return type of a gcc2
5444    builtin and then its argument prototype would still apply.  */
5445 char tgoto ();
5446 int
5447 main ()
5448 {
5449 tgoto ();
5450   ;
5451   return 0;
5452 }
5453 _ACEOF
5454 rm -f conftest.$ac_objext conftest$ac_exeext
5455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5456   (eval $ac_link) 2>&5
5457   ac_status=$?
5458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5459   (exit $ac_status); } &&
5460          { ac_try='test -s conftest$ac_exeext'
5461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5462   (eval $ac_try) 2>&5
5463   ac_status=$?
5464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5465   (exit $ac_status); }; }; then
5466   ac_cv_lib_mytinfo_tgoto=yes
5467 else
5468   echo "$as_me: failed program was:" >&5
5469 sed 's/^/| /' conftest.$ac_ext >&5
5470
5471 ac_cv_lib_mytinfo_tgoto=no
5472 fi
5473 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5474 LIBS=$ac_check_lib_save_LIBS
5475 fi
5476 echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5
5477 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
5478 if test $ac_cv_lib_mytinfo_tgoto = yes; then
5479   LIBS="-lmytinfo $LIBS"
5480 fi
5481
5482         ;;
5483 hpux10.*|hpux11.*)
5484         echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5
5485 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
5486 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
5487   echo $ECHO_N "(cached) $ECHO_C" >&6
5488 else
5489   ac_check_lib_save_LIBS=$LIBS
5490 LIBS="-lcur_colr  $LIBS"
5491 cat >conftest.$ac_ext <<_ACEOF
5492 #line $LINENO "configure"
5493 /* confdefs.h.  */
5494 _ACEOF
5495 cat confdefs.h >>conftest.$ac_ext
5496 cat >>conftest.$ac_ext <<_ACEOF
5497 /* end confdefs.h.  */
5498
5499 /* Override any gcc2 internal prototype to avoid an error.  */
5500 #ifdef __cplusplus
5501 extern "C"
5502 #endif
5503 /* We use char because int might match the return type of a gcc2
5504    builtin and then its argument prototype would still apply.  */
5505 char initscr ();
5506 int
5507 main ()
5508 {
5509 initscr ();
5510   ;
5511   return 0;
5512 }
5513 _ACEOF
5514 rm -f conftest.$ac_objext conftest$ac_exeext
5515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5516   (eval $ac_link) 2>&5
5517   ac_status=$?
5518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519   (exit $ac_status); } &&
5520          { ac_try='test -s conftest$ac_exeext'
5521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5522   (eval $ac_try) 2>&5
5523   ac_status=$?
5524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525   (exit $ac_status); }; }; then
5526   ac_cv_lib_cur_colr_initscr=yes
5527 else
5528   echo "$as_me: failed program was:" >&5
5529 sed 's/^/| /' conftest.$ac_ext >&5
5530
5531 ac_cv_lib_cur_colr_initscr=no
5532 fi
5533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5534 LIBS=$ac_check_lib_save_LIBS
5535 fi
5536 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5
5537 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
5538 if test $ac_cv_lib_cur_colr_initscr = yes; then
5539
5540                 LIBS="-lcur_colr $LIBS"
5541                 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
5542                 ac_cv_func_initscr=yes
5543
5544 else
5545
5546         echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5
5547 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
5548 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
5549   echo $ECHO_N "(cached) $ECHO_C" >&6
5550 else
5551   ac_check_lib_save_LIBS=$LIBS
5552 LIBS="-lHcurses  $LIBS"
5553 cat >conftest.$ac_ext <<_ACEOF
5554 #line $LINENO "configure"
5555 /* confdefs.h.  */
5556 _ACEOF
5557 cat confdefs.h >>conftest.$ac_ext
5558 cat >>conftest.$ac_ext <<_ACEOF
5559 /* end confdefs.h.  */
5560
5561 /* Override any gcc2 internal prototype to avoid an error.  */
5562 #ifdef __cplusplus
5563 extern "C"
5564 #endif
5565 /* We use char because int might match the return type of a gcc2
5566    builtin and then its argument prototype would still apply.  */
5567 char initscr ();
5568 int
5569 main ()
5570 {
5571 initscr ();
5572   ;
5573   return 0;
5574 }
5575 _ACEOF
5576 rm -f conftest.$ac_objext conftest$ac_exeext
5577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5578   (eval $ac_link) 2>&5
5579   ac_status=$?
5580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581   (exit $ac_status); } &&
5582          { ac_try='test -s conftest$ac_exeext'
5583   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5584   (eval $ac_try) 2>&5
5585   ac_status=$?
5586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587   (exit $ac_status); }; }; then
5588   ac_cv_lib_Hcurses_initscr=yes
5589 else
5590   echo "$as_me: failed program was:" >&5
5591 sed 's/^/| /' conftest.$ac_ext >&5
5592
5593 ac_cv_lib_Hcurses_initscr=no
5594 fi
5595 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5596 LIBS=$ac_check_lib_save_LIBS
5597 fi
5598 echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5
5599 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
5600 if test $ac_cv_lib_Hcurses_initscr = yes; then
5601
5602                 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
5603                 LIBS="-lHcurses $LIBS"
5604                 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
5605                 ac_cv_func_initscr=yes
5606
5607 fi
5608
5609 fi
5610
5611         ;;
5612 linux*) # Suse Linux does not follow /usr/lib convention
5613         LIBS="$LIBS -L/lib"
5614         ;;
5615 esac
5616
5617 if test ".$With5lib" != ".no" ; then
5618 if test -d /usr/5lib ; then
5619         # SunOS 3.x or 4.x
5620         CPPFLAGS="$CPPFLAGS -I/usr/5include"
5621         LIBS="$LIBS -L/usr/5lib"
5622 fi
5623 fi
5624
5625 if test ".$ac_cv_func_initscr" != .yes ; then
5626         cf_save_LIBS="$LIBS"
5627         cf_term_lib=""
5628         cf_curs_lib=""
5629
5630         # Check for library containing tgoto.  Do this before curses library
5631         # because it may be needed to link the test-case for initscr.
5632         echo "$as_me:$LINENO: checking for tgoto" >&5
5633 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
5634 if test "${ac_cv_func_tgoto+set}" = set; then
5635   echo $ECHO_N "(cached) $ECHO_C" >&6
5636 else
5637   cat >conftest.$ac_ext <<_ACEOF
5638 #line $LINENO "configure"
5639 /* confdefs.h.  */
5640 _ACEOF
5641 cat confdefs.h >>conftest.$ac_ext
5642 cat >>conftest.$ac_ext <<_ACEOF
5643 /* end confdefs.h.  */
5644 /* System header to define __stub macros and hopefully few prototypes,
5645     which can conflict with char tgoto (); below.
5646     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5647     <limits.h> exists even on freestanding compilers.  */
5648 #ifdef __STDC__
5649 # include <limits.h>
5650 #else
5651 # include <assert.h>
5652 #endif
5653 /* Override any gcc2 internal prototype to avoid an error.  */
5654 #ifdef __cplusplus
5655 extern "C"
5656 {
5657 #endif
5658 /* We use char because int might match the return type of a gcc2
5659    builtin and then its argument prototype would still apply.  */
5660 char tgoto ();
5661 /* The GNU C library defines this for functions which it implements
5662     to always fail with ENOSYS.  Some functions are actually named
5663     something starting with __ and the normal name is an alias.  */
5664 #if defined (__stub_tgoto) || defined (__stub___tgoto)
5665 choke me
5666 #else
5667 char (*f) () = tgoto;
5668 #endif
5669 #ifdef __cplusplus
5670 }
5671 #endif
5672
5673 int
5674 main ()
5675 {
5676 return f != tgoto;
5677   ;
5678   return 0;
5679 }
5680 _ACEOF
5681 rm -f conftest.$ac_objext conftest$ac_exeext
5682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5683   (eval $ac_link) 2>&5
5684   ac_status=$?
5685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686   (exit $ac_status); } &&
5687          { ac_try='test -s conftest$ac_exeext'
5688   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5689   (eval $ac_try) 2>&5
5690   ac_status=$?
5691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692   (exit $ac_status); }; }; then
5693   ac_cv_func_tgoto=yes
5694 else
5695   echo "$as_me: failed program was:" >&5
5696 sed 's/^/| /' conftest.$ac_ext >&5
5697
5698 ac_cv_func_tgoto=no
5699 fi
5700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5701 fi
5702 echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5
5703 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
5704 if test $ac_cv_func_tgoto = yes; then
5705   cf_term_lib=predefined
5706 else
5707
5708                 for cf_term_lib in termcap termlib unknown
5709                 do
5710                         as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
5711 echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5
5712 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
5713 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5714   echo $ECHO_N "(cached) $ECHO_C" >&6
5715 else
5716   ac_check_lib_save_LIBS=$LIBS
5717 LIBS="-l$cf_term_lib  $LIBS"
5718 cat >conftest.$ac_ext <<_ACEOF
5719 #line $LINENO "configure"
5720 /* confdefs.h.  */
5721 _ACEOF
5722 cat confdefs.h >>conftest.$ac_ext
5723 cat >>conftest.$ac_ext <<_ACEOF
5724 /* end confdefs.h.  */
5725
5726 /* Override any gcc2 internal prototype to avoid an error.  */
5727 #ifdef __cplusplus
5728 extern "C"
5729 #endif
5730 /* We use char because int might match the return type of a gcc2
5731    builtin and then its argument prototype would still apply.  */
5732 char tgoto ();
5733 int
5734 main ()
5735 {
5736 tgoto ();
5737   ;
5738   return 0;
5739 }
5740 _ACEOF
5741 rm -f conftest.$ac_objext conftest$ac_exeext
5742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5743   (eval $ac_link) 2>&5
5744   ac_status=$?
5745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746   (exit $ac_status); } &&
5747          { ac_try='test -s conftest$ac_exeext'
5748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749   (eval $ac_try) 2>&5
5750   ac_status=$?
5751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752   (exit $ac_status); }; }; then
5753   eval "$as_ac_Lib=yes"
5754 else
5755   echo "$as_me: failed program was:" >&5
5756 sed 's/^/| /' conftest.$ac_ext >&5
5757
5758 eval "$as_ac_Lib=no"
5759 fi
5760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5761 LIBS=$ac_check_lib_save_LIBS
5762 fi
5763 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5764 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5765 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5766   break
5767 fi
5768
5769                 done
5770
5771 fi
5772
5773
5774         # Check for library containing initscr
5775         test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
5776         for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
5777         do
5778                 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
5779 echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5
5780 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
5781 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
5782   echo $ECHO_N "(cached) $ECHO_C" >&6
5783 else
5784   ac_check_lib_save_LIBS=$LIBS
5785 LIBS="-l$cf_curs_lib  $LIBS"
5786 cat >conftest.$ac_ext <<_ACEOF
5787 #line $LINENO "configure"
5788 /* confdefs.h.  */
5789 _ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h.  */
5793
5794 /* Override any gcc2 internal prototype to avoid an error.  */
5795 #ifdef __cplusplus
5796 extern "C"
5797 #endif
5798 /* We use char because int might match the return type of a gcc2
5799    builtin and then its argument prototype would still apply.  */
5800 char initscr ();
5801 int
5802 main ()
5803 {
5804 initscr ();
5805   ;
5806   return 0;
5807 }
5808 _ACEOF
5809 rm -f conftest.$ac_objext conftest$ac_exeext
5810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5811   (eval $ac_link) 2>&5
5812   ac_status=$?
5813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814   (exit $ac_status); } &&
5815          { ac_try='test -s conftest$ac_exeext'
5816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5817   (eval $ac_try) 2>&5
5818   ac_status=$?
5819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820   (exit $ac_status); }; }; then
5821   eval "$as_ac_Lib=yes"
5822 else
5823   echo "$as_me: failed program was:" >&5
5824 sed 's/^/| /' conftest.$ac_ext >&5
5825
5826 eval "$as_ac_Lib=no"
5827 fi
5828 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5829 LIBS=$ac_check_lib_save_LIBS
5830 fi
5831 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
5832 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
5833 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
5834   break
5835 fi
5836
5837         done
5838         test $cf_curs_lib = unknown && { { echo "$as_me:$LINENO: error: no curses library found" >&5
5839 echo "$as_me: error: no curses library found" >&2;}
5840    { (exit 1); exit 1; }; }
5841
5842         LIBS="-l$cf_curs_lib $cf_save_LIBS"
5843         if test "$cf_term_lib" = unknown ; then
5844                 echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5
5845 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
5846                 cat >conftest.$ac_ext <<_ACEOF
5847 #line $LINENO "configure"
5848 /* confdefs.h.  */
5849 _ACEOF
5850 cat confdefs.h >>conftest.$ac_ext
5851 cat >>conftest.$ac_ext <<_ACEOF
5852 /* end confdefs.h.  */
5853 #include <${cf_cv_ncurses_header-curses.h}>
5854 int
5855 main ()
5856 {
5857 initscr()
5858   ;
5859   return 0;
5860 }
5861 _ACEOF
5862 rm -f conftest.$ac_objext conftest$ac_exeext
5863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5864   (eval $ac_link) 2>&5
5865   ac_status=$?
5866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867   (exit $ac_status); } &&
5868          { ac_try='test -s conftest$ac_exeext'
5869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5870   (eval $ac_try) 2>&5
5871   ac_status=$?
5872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873   (exit $ac_status); }; }; then
5874   cf_result=yes
5875 else
5876   echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.$ac_ext >&5
5878
5879 cf_result=no
5880 fi
5881 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5882                 echo "$as_me:$LINENO: result: $cf_result" >&5
5883 echo "${ECHO_T}$cf_result" >&6
5884                 test $cf_result = no && { { echo "$as_me:$LINENO: error: Cannot link curses library" >&5
5885 echo "$as_me: error: Cannot link curses library" >&2;}
5886    { (exit 1); exit 1; }; }
5887         elif test "$cf_term_lib" != predefined ; then
5888                 echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
5889 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
5890                 cat >conftest.$ac_ext <<_ACEOF
5891 #line $LINENO "configure"
5892 /* confdefs.h.  */
5893 _ACEOF
5894 cat confdefs.h >>conftest.$ac_ext
5895 cat >>conftest.$ac_ext <<_ACEOF
5896 /* end confdefs.h.  */
5897 #include <${cf_cv_ncurses_header-curses.h}>
5898 int
5899 main ()
5900 {
5901 initscr(); tgoto((char *)0, 0, 0);
5902   ;
5903   return 0;
5904 }
5905 _ACEOF
5906 rm -f conftest.$ac_objext conftest$ac_exeext
5907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5908   (eval $ac_link) 2>&5
5909   ac_status=$?
5910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911   (exit $ac_status); } &&
5912          { ac_try='test -s conftest$ac_exeext'
5913   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5914   (eval $ac_try) 2>&5
5915   ac_status=$?
5916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917   (exit $ac_status); }; }; then
5918   cf_result=no
5919 else
5920   echo "$as_me: failed program was:" >&5
5921 sed 's/^/| /' conftest.$ac_ext >&5
5922
5923
5924                         LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
5925                         cat >conftest.$ac_ext <<_ACEOF
5926 #line $LINENO "configure"
5927 /* confdefs.h.  */
5928 _ACEOF
5929 cat confdefs.h >>conftest.$ac_ext
5930 cat >>conftest.$ac_ext <<_ACEOF
5931 /* end confdefs.h.  */
5932 #include <${cf_cv_ncurses_header-curses.h}>
5933 int
5934 main ()
5935 {
5936 initscr()
5937   ;
5938   return 0;
5939 }
5940 _ACEOF
5941 rm -f conftest.$ac_objext conftest$ac_exeext
5942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5943   (eval $ac_link) 2>&5
5944   ac_status=$?
5945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946   (exit $ac_status); } &&
5947          { ac_try='test -s conftest$ac_exeext'
5948   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5949   (eval $ac_try) 2>&5
5950   ac_status=$?
5951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952   (exit $ac_status); }; }; then
5953   cf_result=yes
5954 else
5955   echo "$as_me: failed program was:" >&5
5956 sed 's/^/| /' conftest.$ac_ext >&5
5957
5958 cf_result=error
5959 fi
5960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5961
5962 fi
5963 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5964                 echo "$as_me:$LINENO: result: $cf_result" >&5
5965 echo "${ECHO_T}$cf_result" >&6
5966         fi
5967 fi
5968
5969
5970 fi
5971
5972 fi
5973
5974
5975 fi
5976
5977
5978         old_LIBS="$LIBS"
5979         LIBS="$LIBS $MUTTLIBS"
5980         for ac_func in start_color typeahead bkgdset curs_set meta use_default_colors resizeterm
5981 do
5982
5983 echo "$as_me:$LINENO: checking for $ac_func declaration" >&5
5984 echo $ECHO_N "checking for $ac_func declaration... $ECHO_C" >&6
5985 if eval "test \"\${ac_cv_func_decl_$ac_func+set}\" = set"; then
5986   echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5988   cat >conftest.$ac_ext <<_ACEOF
5989 #line $LINENO "configure"
5990 /* confdefs.h.  */
5991 _ACEOF
5992 cat confdefs.h >>conftest.$ac_ext
5993 cat >>conftest.$ac_ext <<_ACEOF
5994 /* end confdefs.h.  */
5995 #include <${cf_cv_ncurses_header-curses.h}>
5996 int
5997 main ()
5998 {
5999 #ifndef ${ac_func}
6000 extern  int     ${ac_func}();
6001 #endif
6002   ;
6003   return 0;
6004 }
6005 _ACEOF
6006 rm -f conftest.$ac_objext
6007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6008   (eval $ac_compile) 2>&5
6009   ac_status=$?
6010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011   (exit $ac_status); } &&
6012          { ac_try='test -s conftest.$ac_objext'
6013   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6014   (eval $ac_try) 2>&5
6015   ac_status=$?
6016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017   (exit $ac_status); }; }; then
6018
6019 cat >conftest.$ac_ext <<_ACEOF
6020 #line $LINENO "configure"
6021 /* confdefs.h.  */
6022 _ACEOF
6023 cat confdefs.h >>conftest.$ac_ext
6024 cat >>conftest.$ac_ext <<_ACEOF
6025 /* end confdefs.h.  */
6026 #include <${cf_cv_ncurses_header-curses.h}>
6027 int
6028 main ()
6029 {
6030 #ifndef ${ac_func}
6031 int     (*p)() = ${ac_func};
6032 #endif
6033   ;
6034   return 0;
6035 }
6036 _ACEOF
6037 rm -f conftest.$ac_objext
6038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6039   (eval $ac_compile) 2>&5
6040   ac_status=$?
6041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042   (exit $ac_status); } &&
6043          { ac_try='test -s conftest.$ac_objext'
6044   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6045   (eval $ac_try) 2>&5
6046   ac_status=$?
6047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048   (exit $ac_status); }; }; then
6049
6050 eval "ac_cv_func_decl_$ac_func=yes"
6051 else
6052   echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6054
6055
6056 eval "ac_cv_func_decl_$ac_func=no"
6057 fi
6058 rm -f conftest.$ac_objext conftest.$ac_ext
6059 else
6060   echo "$as_me: failed program was:" >&5
6061 sed 's/^/| /' conftest.$ac_ext >&5
6062
6063
6064 eval "ac_cv_func_decl_$ac_func=yes"
6065 fi
6066 rm -f conftest.$ac_objext conftest.$ac_ext
6067 fi
6068
6069 if eval "test \"`echo '$ac_cv_func_'decl_$ac_func`\" = yes"; then
6070   echo "$as_me:$LINENO: result: yes" >&5
6071 echo "${ECHO_T}yes" >&6
6072
6073
6074 ac_tr_func=`echo HAVE_$ac_func | tr '[a-z]' '[A-Z]'`
6075
6076   cat >>confdefs.h <<_ACEOF
6077 #define $ac_tr_func 1
6078 _ACEOF
6079
6080 else
6081   echo "$as_me:$LINENO: result: no" >&5
6082 echo "${ECHO_T}no" >&6
6083 fi
6084 done
6085
6086         if test "$ac_cv_func_decl_start_color" = yes; then
6087
6088 cat >>confdefs.h <<\_ACEOF
6089 #define HAVE_COLOR 1
6090 _ACEOF
6091
6092         fi
6093         if test "$ac_cv_func_decl_resizeterm" = yes; then
6094                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
6095         fi
6096         LIBS="$old_LIBS"
6097
6098 fi;
6099
6100 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6101 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6102 if test "${ac_cv_header_stdc+set}" = set; then
6103   echo $ECHO_N "(cached) $ECHO_C" >&6
6104 else
6105   cat >conftest.$ac_ext <<_ACEOF
6106 #line $LINENO "configure"
6107 /* confdefs.h.  */
6108 _ACEOF
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h.  */
6112 #include <stdlib.h>
6113 #include <stdarg.h>
6114 #include <string.h>
6115 #include <float.h>
6116
6117 int
6118 main ()
6119 {
6120
6121   ;
6122   return 0;
6123 }
6124 _ACEOF
6125 rm -f conftest.$ac_objext
6126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6127   (eval $ac_compile) 2>&5
6128   ac_status=$?
6129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130   (exit $ac_status); } &&
6131          { ac_try='test -s conftest.$ac_objext'
6132   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6133   (eval $ac_try) 2>&5
6134   ac_status=$?
6135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136   (exit $ac_status); }; }; then
6137   ac_cv_header_stdc=yes
6138 else
6139   echo "$as_me: failed program was:" >&5
6140 sed 's/^/| /' conftest.$ac_ext >&5
6141
6142 ac_cv_header_stdc=no
6143 fi
6144 rm -f conftest.$ac_objext conftest.$ac_ext
6145
6146 if test $ac_cv_header_stdc = yes; then
6147   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6148   cat >conftest.$ac_ext <<_ACEOF
6149 #line $LINENO "configure"
6150 /* confdefs.h.  */
6151 _ACEOF
6152 cat confdefs.h >>conftest.$ac_ext
6153 cat >>conftest.$ac_ext <<_ACEOF
6154 /* end confdefs.h.  */
6155 #include <string.h>
6156
6157 _ACEOF
6158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6159   $EGREP "memchr" >/dev/null 2>&1; then
6160   :
6161 else
6162   ac_cv_header_stdc=no
6163 fi
6164 rm -f conftest*
6165
6166 fi
6167
6168 if test $ac_cv_header_stdc = yes; then
6169   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6170   cat >conftest.$ac_ext <<_ACEOF
6171 #line $LINENO "configure"
6172 /* confdefs.h.  */
6173 _ACEOF
6174 cat confdefs.h >>conftest.$ac_ext
6175 cat >>conftest.$ac_ext <<_ACEOF
6176 /* end confdefs.h.  */
6177 #include <stdlib.h>
6178
6179 _ACEOF
6180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6181   $EGREP "free" >/dev/null 2>&1; then
6182   :
6183 else
6184   ac_cv_header_stdc=no
6185 fi
6186 rm -f conftest*
6187
6188 fi
6189
6190 if test $ac_cv_header_stdc = yes; then
6191   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6192   if test "$cross_compiling" = yes; then
6193   :
6194 else
6195   cat >conftest.$ac_ext <<_ACEOF
6196 #line $LINENO "configure"
6197 /* confdefs.h.  */
6198 _ACEOF
6199 cat confdefs.h >>conftest.$ac_ext
6200 cat >>conftest.$ac_ext <<_ACEOF
6201 /* end confdefs.h.  */
6202 #include <ctype.h>
6203 #if ((' ' & 0x0FF) == 0x020)
6204 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6205 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6206 #else
6207 # define ISLOWER(c) \
6208                    (('a' <= (c) && (c) <= 'i') \
6209                      || ('j' <= (c) && (c) <= 'r') \
6210                      || ('s' <= (c) && (c) <= 'z'))
6211 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6212 #endif
6213
6214 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6215 int
6216 main ()
6217 {
6218   int i;
6219   for (i = 0; i < 256; i++)
6220     if (XOR (islower (i), ISLOWER (i))
6221         || toupper (i) != TOUPPER (i))
6222       exit(2);
6223   exit (0);
6224 }
6225 _ACEOF
6226 rm -f conftest$ac_exeext
6227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6228   (eval $ac_link) 2>&5
6229   ac_status=$?
6230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6232   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6233   (eval $ac_try) 2>&5
6234   ac_status=$?
6235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236   (exit $ac_status); }; }; then
6237   :
6238 else
6239   echo "$as_me: program exited with status $ac_status" >&5
6240 echo "$as_me: failed program was:" >&5
6241 sed 's/^/| /' conftest.$ac_ext >&5
6242
6243 ( exit $ac_status )
6244 ac_cv_header_stdc=no
6245 fi
6246 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6247 fi
6248 fi
6249 fi
6250 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6251 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6252 if test $ac_cv_header_stdc = yes; then
6253
6254 cat >>confdefs.h <<\_ACEOF
6255 #define STDC_HEADERS 1
6256 _ACEOF
6257
6258 fi
6259
6260
6261
6262
6263
6264
6265 for ac_header in stdarg.h sys/ioctl.h ioctl.h sysexits.h
6266 do
6267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6268 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6269   echo "$as_me:$LINENO: checking for $ac_header" >&5
6270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6271 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6272   echo $ECHO_N "(cached) $ECHO_C" >&6
6273 fi
6274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6276 else
6277   # Is the header compilable?
6278 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6279 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6280 cat >conftest.$ac_ext <<_ACEOF
6281 #line $LINENO "configure"
6282 /* confdefs.h.  */
6283 _ACEOF
6284 cat confdefs.h >>conftest.$ac_ext
6285 cat >>conftest.$ac_ext <<_ACEOF
6286 /* end confdefs.h.  */
6287 $ac_includes_default
6288 #include <$ac_header>
6289 _ACEOF
6290 rm -f conftest.$ac_objext
6291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6292   (eval $ac_compile) 2>&5
6293   ac_status=$?
6294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295   (exit $ac_status); } &&
6296          { ac_try='test -s conftest.$ac_objext'
6297   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6298   (eval $ac_try) 2>&5
6299   ac_status=$?
6300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6301   (exit $ac_status); }; }; then
6302   ac_header_compiler=yes
6303 else
6304   echo "$as_me: failed program was:" >&5
6305 sed 's/^/| /' conftest.$ac_ext >&5
6306
6307 ac_header_compiler=no
6308 fi
6309 rm -f conftest.$ac_objext conftest.$ac_ext
6310 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6311 echo "${ECHO_T}$ac_header_compiler" >&6
6312
6313 # Is the header present?
6314 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6315 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6316 cat >conftest.$ac_ext <<_ACEOF
6317 #line $LINENO "configure"
6318 /* confdefs.h.  */
6319 _ACEOF
6320 cat confdefs.h >>conftest.$ac_ext
6321 cat >>conftest.$ac_ext <<_ACEOF
6322 /* end confdefs.h.  */
6323 #include <$ac_header>
6324 _ACEOF
6325 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6326   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6327   ac_status=$?
6328   grep -v '^ *+' conftest.er1 >conftest.err
6329   rm -f conftest.er1
6330   cat conftest.err >&5
6331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332   (exit $ac_status); } >/dev/null; then
6333   if test -s conftest.err; then
6334     ac_cpp_err=$ac_c_preproc_warn_flag
6335   else
6336     ac_cpp_err=
6337   fi
6338 else
6339   ac_cpp_err=yes
6340 fi
6341 if test -z "$ac_cpp_err"; then
6342   ac_header_preproc=yes
6343 else
6344   echo "$as_me: failed program was:" >&5
6345 sed 's/^/| /' conftest.$ac_ext >&5
6346
6347   ac_header_preproc=no
6348 fi
6349 rm -f conftest.err conftest.$ac_ext
6350 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6351 echo "${ECHO_T}$ac_header_preproc" >&6
6352
6353 # So?  What about this header?
6354 case $ac_header_compiler:$ac_header_preproc in
6355   yes:no )
6356     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6357 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6358     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6360     (
6361       cat <<\_ASBOX
6362 ## ------------------------------------ ##
6363 ## Report this to bug-autoconf@gnu.org. ##
6364 ## ------------------------------------ ##
6365 _ASBOX
6366     ) |
6367       sed "s/^/$as_me: WARNING:     /" >&2
6368     ;;
6369   no:yes )
6370     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6371 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6372     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6373 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6374     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6375 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6376     (
6377       cat <<\_ASBOX
6378 ## ------------------------------------ ##
6379 ## Report this to bug-autoconf@gnu.org. ##
6380 ## ------------------------------------ ##
6381 _ASBOX
6382     ) |
6383       sed "s/^/$as_me: WARNING:     /" >&2
6384     ;;
6385 esac
6386 echo "$as_me:$LINENO: checking for $ac_header" >&5
6387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6388 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6389   echo $ECHO_N "(cached) $ECHO_C" >&6
6390 else
6391   eval "$as_ac_Header=$ac_header_preproc"
6392 fi
6393 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6394 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6395
6396 fi
6397 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6398   cat >>confdefs.h <<_ACEOF
6399 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6400 _ACEOF
6401
6402 fi
6403
6404 done
6405
6406
6407
6408 for ac_header in sys/time.h sys/resource.h
6409 do
6410 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6411 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6412   echo "$as_me:$LINENO: checking for $ac_header" >&5
6413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6415   echo $ECHO_N "(cached) $ECHO_C" >&6
6416 fi
6417 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6418 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6419 else
6420   # Is the header compilable?
6421 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6423 cat >conftest.$ac_ext <<_ACEOF
6424 #line $LINENO "configure"
6425 /* confdefs.h.  */
6426 _ACEOF
6427 cat confdefs.h >>conftest.$ac_ext
6428 cat >>conftest.$ac_ext <<_ACEOF
6429 /* end confdefs.h.  */
6430 $ac_includes_default
6431 #include <$ac_header>
6432 _ACEOF
6433 rm -f conftest.$ac_objext
6434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6435   (eval $ac_compile) 2>&5
6436   ac_status=$?
6437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438   (exit $ac_status); } &&
6439          { ac_try='test -s conftest.$ac_objext'
6440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6441   (eval $ac_try) 2>&5
6442   ac_status=$?
6443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6444   (exit $ac_status); }; }; then
6445   ac_header_compiler=yes
6446 else
6447   echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6449
6450 ac_header_compiler=no
6451 fi
6452 rm -f conftest.$ac_objext conftest.$ac_ext
6453 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6454 echo "${ECHO_T}$ac_header_compiler" >&6
6455
6456 # Is the header present?
6457 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6458 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6459 cat >conftest.$ac_ext <<_ACEOF
6460 #line $LINENO "configure"
6461 /* confdefs.h.  */
6462 _ACEOF
6463 cat confdefs.h >>conftest.$ac_ext
6464 cat >>conftest.$ac_ext <<_ACEOF
6465 /* end confdefs.h.  */
6466 #include <$ac_header>
6467 _ACEOF
6468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6469   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6470   ac_status=$?
6471   grep -v '^ *+' conftest.er1 >conftest.err
6472   rm -f conftest.er1
6473   cat conftest.err >&5
6474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475   (exit $ac_status); } >/dev/null; then
6476   if test -s conftest.err; then
6477     ac_cpp_err=$ac_c_preproc_warn_flag
6478   else
6479     ac_cpp_err=
6480   fi
6481 else
6482   ac_cpp_err=yes
6483 fi
6484 if test -z "$ac_cpp_err"; then
6485   ac_header_preproc=yes
6486 else
6487   echo "$as_me: failed program was:" >&5
6488 sed 's/^/| /' conftest.$ac_ext >&5
6489
6490   ac_header_preproc=no
6491 fi
6492 rm -f conftest.err conftest.$ac_ext
6493 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6494 echo "${ECHO_T}$ac_header_preproc" >&6
6495
6496 # So?  What about this header?
6497 case $ac_header_compiler:$ac_header_preproc in
6498   yes:no )
6499     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6500 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6501     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6502 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6503     (
6504       cat <<\_ASBOX
6505 ## ------------------------------------ ##
6506 ## Report this to bug-autoconf@gnu.org. ##
6507 ## ------------------------------------ ##
6508 _ASBOX
6509     ) |
6510       sed "s/^/$as_me: WARNING:     /" >&2
6511     ;;
6512   no:yes )
6513     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6515     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6516 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6517     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6519     (
6520       cat <<\_ASBOX
6521 ## ------------------------------------ ##
6522 ## Report this to bug-autoconf@gnu.org. ##
6523 ## ------------------------------------ ##
6524 _ASBOX
6525     ) |
6526       sed "s/^/$as_me: WARNING:     /" >&2
6527     ;;
6528 esac
6529 echo "$as_me:$LINENO: checking for $ac_header" >&5
6530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6532   echo $ECHO_N "(cached) $ECHO_C" >&6
6533 else
6534   eval "$as_ac_Header=$ac_header_preproc"
6535 fi
6536 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6537 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6538
6539 fi
6540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6541   cat >>confdefs.h <<_ACEOF
6542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6543 _ACEOF
6544
6545 fi
6546
6547 done
6548
6549
6550 for ac_header in unix.h
6551 do
6552 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6553 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6554   echo "$as_me:$LINENO: checking for $ac_header" >&5
6555 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6556 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6557   echo $ECHO_N "(cached) $ECHO_C" >&6
6558 fi
6559 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6560 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6561 else
6562   # Is the header compilable?
6563 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6564 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6565 cat >conftest.$ac_ext <<_ACEOF
6566 #line $LINENO "configure"
6567 /* confdefs.h.  */
6568 _ACEOF
6569 cat confdefs.h >>conftest.$ac_ext
6570 cat >>conftest.$ac_ext <<_ACEOF
6571 /* end confdefs.h.  */
6572 $ac_includes_default
6573 #include <$ac_header>
6574 _ACEOF
6575 rm -f conftest.$ac_objext
6576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6577   (eval $ac_compile) 2>&5
6578   ac_status=$?
6579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580   (exit $ac_status); } &&
6581          { ac_try='test -s conftest.$ac_objext'
6582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6583   (eval $ac_try) 2>&5
6584   ac_status=$?
6585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586   (exit $ac_status); }; }; then
6587   ac_header_compiler=yes
6588 else
6589   echo "$as_me: failed program was:" >&5
6590 sed 's/^/| /' conftest.$ac_ext >&5
6591
6592 ac_header_compiler=no
6593 fi
6594 rm -f conftest.$ac_objext conftest.$ac_ext
6595 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6596 echo "${ECHO_T}$ac_header_compiler" >&6
6597
6598 # Is the header present?
6599 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6600 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6601 cat >conftest.$ac_ext <<_ACEOF
6602 #line $LINENO "configure"
6603 /* confdefs.h.  */
6604 _ACEOF
6605 cat confdefs.h >>conftest.$ac_ext
6606 cat >>conftest.$ac_ext <<_ACEOF
6607 /* end confdefs.h.  */
6608 #include <$ac_header>
6609 _ACEOF
6610 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6611   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6612   ac_status=$?
6613   grep -v '^ *+' conftest.er1 >conftest.err
6614   rm -f conftest.er1
6615   cat conftest.err >&5
6616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6617   (exit $ac_status); } >/dev/null; then
6618   if test -s conftest.err; then
6619     ac_cpp_err=$ac_c_preproc_warn_flag
6620   else
6621     ac_cpp_err=
6622   fi
6623 else
6624   ac_cpp_err=yes
6625 fi
6626 if test -z "$ac_cpp_err"; then
6627   ac_header_preproc=yes
6628 else
6629   echo "$as_me: failed program was:" >&5
6630 sed 's/^/| /' conftest.$ac_ext >&5
6631
6632   ac_header_preproc=no
6633 fi
6634 rm -f conftest.err conftest.$ac_ext
6635 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6636 echo "${ECHO_T}$ac_header_preproc" >&6
6637
6638 # So?  What about this header?
6639 case $ac_header_compiler:$ac_header_preproc in
6640   yes:no )
6641     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6642 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6643     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6644 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6645     (
6646       cat <<\_ASBOX
6647 ## ------------------------------------ ##
6648 ## Report this to bug-autoconf@gnu.org. ##
6649 ## ------------------------------------ ##
6650 _ASBOX
6651     ) |
6652       sed "s/^/$as_me: WARNING:     /" >&2
6653     ;;
6654   no:yes )
6655     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6656 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6657     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6658 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6659     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6661     (
6662       cat <<\_ASBOX
6663 ## ------------------------------------ ##
6664 ## Report this to bug-autoconf@gnu.org. ##
6665 ## ------------------------------------ ##
6666 _ASBOX
6667     ) |
6668       sed "s/^/$as_me: WARNING:     /" >&2
6669     ;;
6670 esac
6671 echo "$as_me:$LINENO: checking for $ac_header" >&5
6672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6674   echo $ECHO_N "(cached) $ECHO_C" >&6
6675 else
6676   eval "$as_ac_Header=$ac_header_preproc"
6677 fi
6678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6680
6681 fi
6682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6683   cat >>confdefs.h <<_ACEOF
6684 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6685 _ACEOF
6686
6687 fi
6688
6689 done
6690
6691
6692
6693
6694 for ac_func in setrlimit getsid
6695 do
6696 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6697 echo "$as_me:$LINENO: checking for $ac_func" >&5
6698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6699 if eval "test \"\${$as_ac_var+set}\" = set"; then
6700   echo $ECHO_N "(cached) $ECHO_C" >&6
6701 else
6702   cat >conftest.$ac_ext <<_ACEOF
6703 #line $LINENO "configure"
6704 /* confdefs.h.  */
6705 _ACEOF
6706 cat confdefs.h >>conftest.$ac_ext
6707 cat >>conftest.$ac_ext <<_ACEOF
6708 /* end confdefs.h.  */
6709 /* System header to define __stub macros and hopefully few prototypes,
6710     which can conflict with char $ac_func (); below.
6711     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6712     <limits.h> exists even on freestanding compilers.  */
6713 #ifdef __STDC__
6714 # include <limits.h>
6715 #else
6716 # include <assert.h>
6717 #endif
6718 /* Override any gcc2 internal prototype to avoid an error.  */
6719 #ifdef __cplusplus
6720 extern "C"
6721 {
6722 #endif
6723 /* We use char because int might match the return type of a gcc2
6724    builtin and then its argument prototype would still apply.  */
6725 char $ac_func ();
6726 /* The GNU C library defines this for functions which it implements
6727     to always fail with ENOSYS.  Some functions are actually named
6728     something starting with __ and the normal name is an alias.  */
6729 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6730 choke me
6731 #else
6732 char (*f) () = $ac_func;
6733 #endif
6734 #ifdef __cplusplus
6735 }
6736 #endif
6737
6738 int
6739 main ()
6740 {
6741 return f != $ac_func;
6742   ;
6743   return 0;
6744 }
6745 _ACEOF
6746 rm -f conftest.$ac_objext conftest$ac_exeext
6747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6748   (eval $ac_link) 2>&5
6749   ac_status=$?
6750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751   (exit $ac_status); } &&
6752          { ac_try='test -s conftest$ac_exeext'
6753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6754   (eval $ac_try) 2>&5
6755   ac_status=$?
6756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6757   (exit $ac_status); }; }; then
6758   eval "$as_ac_var=yes"
6759 else
6760   echo "$as_me: failed program was:" >&5
6761 sed 's/^/| /' conftest.$ac_ext >&5
6762
6763 eval "$as_ac_var=no"
6764 fi
6765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6766 fi
6767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6768 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6769 if test `eval echo '${'$as_ac_var'}'` = yes; then
6770   cat >>confdefs.h <<_ACEOF
6771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6772 _ACEOF
6773
6774 fi
6775 done
6776
6777
6778 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6779 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
6780 if test "${ac_cv_type_signal+set}" = set; then
6781   echo $ECHO_N "(cached) $ECHO_C" >&6
6782 else
6783   cat >conftest.$ac_ext <<_ACEOF
6784 #line $LINENO "configure"
6785 /* confdefs.h.  */
6786 _ACEOF
6787 cat confdefs.h >>conftest.$ac_ext
6788 cat >>conftest.$ac_ext <<_ACEOF
6789 /* end confdefs.h.  */
6790 #include <sys/types.h>
6791 #include <signal.h>
6792 #ifdef signal
6793 # undef signal
6794 #endif
6795 #ifdef __cplusplus
6796 extern "C" void (*signal (int, void (*)(int)))(int);
6797 #else
6798 void (*signal ()) ();
6799 #endif
6800
6801 int
6802 main ()
6803 {
6804 int i;
6805   ;
6806   return 0;
6807 }
6808 _ACEOF
6809 rm -f conftest.$ac_objext
6810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6811   (eval $ac_compile) 2>&5
6812   ac_status=$?
6813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814   (exit $ac_status); } &&
6815          { ac_try='test -s conftest.$ac_objext'
6816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817   (eval $ac_try) 2>&5
6818   ac_status=$?
6819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820   (exit $ac_status); }; }; then
6821   ac_cv_type_signal=void
6822 else
6823   echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.$ac_ext >&5
6825
6826 ac_cv_type_signal=int
6827 fi
6828 rm -f conftest.$ac_objext conftest.$ac_ext
6829 fi
6830 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6831 echo "${ECHO_T}$ac_cv_type_signal" >&6
6832
6833 cat >>confdefs.h <<_ACEOF
6834 #define RETSIGTYPE $ac_cv_type_signal
6835 _ACEOF
6836
6837
6838
6839 echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5
6840 echo $ECHO_N "checking for sig_atomic_t in signal.h... $ECHO_C" >&6
6841 cat >conftest.$ac_ext <<_ACEOF
6842 #line $LINENO "configure"
6843 /* confdefs.h.  */
6844 _ACEOF
6845 cat confdefs.h >>conftest.$ac_ext
6846 cat >>conftest.$ac_ext <<_ACEOF
6847 /* end confdefs.h.  */
6848 #include <signal.h>
6849
6850 _ACEOF
6851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6852   $EGREP "sig_atomic_t" >/dev/null 2>&1; then
6853
6854     ac_cv_type_sig_atomic_t=yes;
6855     cat >conftest.$ac_ext <<_ACEOF
6856 #line $LINENO "configure"
6857 /* confdefs.h.  */
6858 _ACEOF
6859 cat confdefs.h >>conftest.$ac_ext
6860 cat >>conftest.$ac_ext <<_ACEOF
6861 /* end confdefs.h.  */
6862 #include <signal.h>
6863
6864 _ACEOF
6865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6866   $EGREP "volatile.*sig_atomic_t" >/dev/null 2>&1; then
6867
6868                         is_sig_atomic_t_volatile=yes;
6869                         echo "$as_me:$LINENO: result: yes, volatile" >&5
6870 echo "${ECHO_T}yes, volatile" >&6
6871
6872 else
6873
6874                         is_sig_atomic_t_volatile=no;
6875                         echo "$as_me:$LINENO: result: yes, non volatile" >&5
6876 echo "${ECHO_T}yes, non volatile" >&6
6877
6878 fi
6879 rm -f conftest*
6880
6881
6882 else
6883
6884     echo "$as_me:$LINENO: result: no" >&5
6885 echo "${ECHO_T}no" >&6
6886     echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
6887 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
6888 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
6889   echo $ECHO_N "(cached) $ECHO_C" >&6
6890 else
6891   cat >conftest.$ac_ext <<_ACEOF
6892 #line $LINENO "configure"
6893 /* confdefs.h.  */
6894 _ACEOF
6895 cat confdefs.h >>conftest.$ac_ext
6896 cat >>conftest.$ac_ext <<_ACEOF
6897 /* end confdefs.h.  */
6898 $ac_includes_default
6899 int
6900 main ()
6901 {
6902 if ((sig_atomic_t *) 0)
6903   return 0;
6904 if (sizeof (sig_atomic_t))
6905   return 0;
6906   ;
6907   return 0;
6908 }
6909 _ACEOF
6910 rm -f conftest.$ac_objext
6911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6912   (eval $ac_compile) 2>&5
6913   ac_status=$?
6914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915   (exit $ac_status); } &&
6916          { ac_try='test -s conftest.$ac_objext'
6917   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6918   (eval $ac_try) 2>&5
6919   ac_status=$?
6920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921   (exit $ac_status); }; }; then
6922   ac_cv_type_sig_atomic_t=yes
6923 else
6924   echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.$ac_ext >&5
6926
6927 ac_cv_type_sig_atomic_t=no
6928 fi
6929 rm -f conftest.$ac_objext conftest.$ac_ext
6930 fi
6931 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
6932 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
6933 if test $ac_cv_type_sig_atomic_t = yes; then
6934   :
6935 else
6936
6937 cat >>confdefs.h <<_ACEOF
6938 #define sig_atomic_t int
6939 _ACEOF
6940
6941 fi
6942
6943     is_sig_atomic_t_volatile=no
6944
6945 fi
6946 rm -f conftest*
6947
6948 if test $is_sig_atomic_t_volatile = 'yes'
6949 then
6950     cat >>confdefs.h <<\_ACEOF
6951 #define SIG_ATOMIC_VOLATILE_T sig_atomic_t
6952 _ACEOF
6953
6954 else
6955     cat >>confdefs.h <<\_ACEOF
6956 #define SIG_ATOMIC_VOLATILE_T volatile sig_atomic_t
6957 _ACEOF
6958
6959 fi
6960
6961 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6962 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
6963 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6964   echo $ECHO_N "(cached) $ECHO_C" >&6
6965 else
6966   cat >conftest.$ac_ext <<_ACEOF
6967 #line $LINENO "configure"
6968 /* confdefs.h.  */
6969 _ACEOF
6970 cat confdefs.h >>conftest.$ac_ext
6971 cat >>conftest.$ac_ext <<_ACEOF
6972 /* end confdefs.h.  */
6973 $ac_includes_default
6974 int
6975 main ()
6976 {
6977 #ifndef sys_siglist
6978   char *p = (char *) sys_siglist;
6979 #endif
6980
6981   ;
6982   return 0;
6983 }
6984 _ACEOF
6985 rm -f conftest.$ac_objext
6986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6987   (eval $ac_compile) 2>&5
6988   ac_status=$?
6989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990   (exit $ac_status); } &&
6991          { ac_try='test -s conftest.$ac_objext'
6992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6993   (eval $ac_try) 2>&5
6994   ac_status=$?
6995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996   (exit $ac_status); }; }; then
6997   ac_cv_have_decl_sys_siglist=yes
6998 else
6999   echo "$as_me: failed program was:" >&5
7000 sed 's/^/| /' conftest.$ac_ext >&5
7001
7002 ac_cv_have_decl_sys_siglist=no
7003 fi
7004 rm -f conftest.$ac_objext conftest.$ac_ext
7005 fi
7006 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7007 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
7008 if test $ac_cv_have_decl_sys_siglist = yes; then
7009
7010 cat >>confdefs.h <<_ACEOF
7011 #define HAVE_DECL_SYS_SIGLIST 1
7012 _ACEOF
7013
7014
7015 else
7016   cat >>confdefs.h <<_ACEOF
7017 #define HAVE_DECL_SYS_SIGLIST 0
7018 _ACEOF
7019
7020
7021 fi
7022
7023
7024
7025
7026 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7027 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7028 if test "${ac_cv_c_bigendian+set}" = set; then
7029   echo $ECHO_N "(cached) $ECHO_C" >&6
7030 else
7031   # See if sys/param.h defines the BYTE_ORDER macro.
7032 cat >conftest.$ac_ext <<_ACEOF
7033 #line $LINENO "configure"
7034 /* confdefs.h.  */
7035 _ACEOF
7036 cat confdefs.h >>conftest.$ac_ext
7037 cat >>conftest.$ac_ext <<_ACEOF
7038 /* end confdefs.h.  */
7039 #include <sys/types.h>
7040 #include <sys/param.h>
7041
7042 int
7043 main ()
7044 {
7045 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7046  bogus endian macros
7047 #endif
7048
7049   ;
7050   return 0;
7051 }
7052 _ACEOF
7053 rm -f conftest.$ac_objext
7054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7055   (eval $ac_compile) 2>&5
7056   ac_status=$?
7057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058   (exit $ac_status); } &&
7059          { ac_try='test -s conftest.$ac_objext'
7060   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7061   (eval $ac_try) 2>&5
7062   ac_status=$?
7063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064   (exit $ac_status); }; }; then
7065   # It does; now see whether it defined to BIG_ENDIAN or not.
7066 cat >conftest.$ac_ext <<_ACEOF
7067 #line $LINENO "configure"
7068 /* confdefs.h.  */
7069 _ACEOF
7070 cat confdefs.h >>conftest.$ac_ext
7071 cat >>conftest.$ac_ext <<_ACEOF
7072 /* end confdefs.h.  */
7073 #include <sys/types.h>
7074 #include <sys/param.h>
7075
7076 int
7077 main ()
7078 {
7079 #if BYTE_ORDER != BIG_ENDIAN
7080  not big endian
7081 #endif
7082
7083   ;
7084   return 0;
7085 }
7086 _ACEOF
7087 rm -f conftest.$ac_objext
7088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7089   (eval $ac_compile) 2>&5
7090   ac_status=$?
7091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092   (exit $ac_status); } &&
7093          { ac_try='test -s conftest.$ac_objext'
7094   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7095   (eval $ac_try) 2>&5
7096   ac_status=$?
7097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098   (exit $ac_status); }; }; then
7099   ac_cv_c_bigendian=yes
7100 else
7101   echo "$as_me: failed program was:" >&5
7102 sed 's/^/| /' conftest.$ac_ext >&5
7103
7104 ac_cv_c_bigendian=no
7105 fi
7106 rm -f conftest.$ac_objext conftest.$ac_ext
7107 else
7108   echo "$as_me: failed program was:" >&5
7109 sed 's/^/| /' conftest.$ac_ext >&5
7110
7111 # It does not; compile a test program.
7112 if test "$cross_compiling" = yes; then
7113   # try to guess the endianness by grepping values into an object file
7114   ac_cv_c_bigendian=unknown
7115   cat >conftest.$ac_ext <<_ACEOF
7116 #line $LINENO "configure"
7117 /* confdefs.h.  */
7118 _ACEOF
7119 cat confdefs.h >>conftest.$ac_ext
7120 cat >>conftest.$ac_ext <<_ACEOF
7121 /* end confdefs.h.  */
7122 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7123 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7124 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7125 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7126 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7127 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7128 int
7129 main ()
7130 {
7131  _ascii (); _ebcdic ();
7132   ;
7133   return 0;
7134 }
7135 _ACEOF
7136 rm -f conftest.$ac_objext
7137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7138   (eval $ac_compile) 2>&5
7139   ac_status=$?
7140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141   (exit $ac_status); } &&
7142          { ac_try='test -s conftest.$ac_objext'
7143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7144   (eval $ac_try) 2>&5
7145   ac_status=$?
7146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147   (exit $ac_status); }; }; then
7148   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7149   ac_cv_c_bigendian=yes
7150 fi
7151 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7152   if test "$ac_cv_c_bigendian" = unknown; then
7153     ac_cv_c_bigendian=no
7154   else
7155     # finding both strings is unlikely to happen, but who knows?
7156     ac_cv_c_bigendian=unknown
7157   fi
7158 fi
7159 else
7160   echo "$as_me: failed program was:" >&5
7161 sed 's/^/| /' conftest.$ac_ext >&5
7162
7163 fi
7164 rm -f conftest.$ac_objext conftest.$ac_ext
7165 else
7166   cat >conftest.$ac_ext <<_ACEOF
7167 #line $LINENO "configure"
7168 /* confdefs.h.  */
7169 _ACEOF
7170 cat confdefs.h >>conftest.$ac_ext
7171 cat >>conftest.$ac_ext <<_ACEOF
7172 /* end confdefs.h.  */
7173 int
7174 main ()
7175 {
7176   /* Are we little or big endian?  From Harbison&Steele.  */
7177   union
7178   {
7179     long l;
7180     char c[sizeof (long)];
7181   } u;
7182   u.l = 1;
7183   exit (u.c[sizeof (long) - 1] == 1);
7184 }
7185 _ACEOF
7186 rm -f conftest$ac_exeext
7187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7188   (eval $ac_link) 2>&5
7189   ac_status=$?
7190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7193   (eval $ac_try) 2>&5
7194   ac_status=$?
7195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196   (exit $ac_status); }; }; then
7197   ac_cv_c_bigendian=no
7198 else
7199   echo "$as_me: program exited with status $ac_status" >&5
7200 echo "$as_me: failed program was:" >&5
7201 sed 's/^/| /' conftest.$ac_ext >&5
7202
7203 ( exit $ac_status )
7204 ac_cv_c_bigendian=yes
7205 fi
7206 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7207 fi
7208 fi
7209 rm -f conftest.$ac_objext conftest.$ac_ext
7210 fi
7211 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7212 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7213 case $ac_cv_c_bigendian in
7214   yes)
7215
7216 cat >>confdefs.h <<\_ACEOF
7217 #define WORDS_BIGENDIAN 1
7218 _ACEOF
7219  ;;
7220   no)
7221      ;;
7222   *)
7223     { { echo "$as_me:$LINENO: error: unknown endianness
7224 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7225 echo "$as_me: error: unknown endianness
7226 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7227    { (exit 1); exit 1; }; } ;;
7228 esac
7229
7230
7231
7232 for ac_header in inttypes.h stdint.h
7233 do
7234 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7235 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7236   echo "$as_me:$LINENO: checking for $ac_header" >&5
7237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7239   echo $ECHO_N "(cached) $ECHO_C" >&6
7240 fi
7241 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7242 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7243 else
7244   # Is the header compilable?
7245 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7247 cat >conftest.$ac_ext <<_ACEOF
7248 #line $LINENO "configure"
7249 /* confdefs.h.  */
7250 _ACEOF
7251 cat confdefs.h >>conftest.$ac_ext
7252 cat >>conftest.$ac_ext <<_ACEOF
7253 /* end confdefs.h.  */
7254 $ac_includes_default
7255 #include <$ac_header>
7256 _ACEOF
7257 rm -f conftest.$ac_objext
7258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7259   (eval $ac_compile) 2>&5
7260   ac_status=$?
7261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262   (exit $ac_status); } &&
7263          { ac_try='test -s conftest.$ac_objext'
7264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7265   (eval $ac_try) 2>&5
7266   ac_status=$?
7267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268   (exit $ac_status); }; }; then
7269   ac_header_compiler=yes
7270 else
7271   echo "$as_me: failed program was:" >&5
7272 sed 's/^/| /' conftest.$ac_ext >&5
7273
7274 ac_header_compiler=no
7275 fi
7276 rm -f conftest.$ac_objext conftest.$ac_ext
7277 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7278 echo "${ECHO_T}$ac_header_compiler" >&6
7279
7280 # Is the header present?
7281 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7282 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7283 cat >conftest.$ac_ext <<_ACEOF
7284 #line $LINENO "configure"
7285 /* confdefs.h.  */
7286 _ACEOF
7287 cat confdefs.h >>conftest.$ac_ext
7288 cat >>conftest.$ac_ext <<_ACEOF
7289 /* end confdefs.h.  */
7290 #include <$ac_header>
7291 _ACEOF
7292 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7293   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7294   ac_status=$?
7295   grep -v '^ *+' conftest.er1 >conftest.err
7296   rm -f conftest.er1
7297   cat conftest.err >&5
7298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299   (exit $ac_status); } >/dev/null; then
7300   if test -s conftest.err; then
7301     ac_cpp_err=$ac_c_preproc_warn_flag
7302   else
7303     ac_cpp_err=
7304   fi
7305 else
7306   ac_cpp_err=yes
7307 fi
7308 if test -z "$ac_cpp_err"; then
7309   ac_header_preproc=yes
7310 else
7311   echo "$as_me: failed program was:" >&5
7312 sed 's/^/| /' conftest.$ac_ext >&5
7313
7314   ac_header_preproc=no
7315 fi
7316 rm -f conftest.err conftest.$ac_ext
7317 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7318 echo "${ECHO_T}$ac_header_preproc" >&6
7319
7320 # So?  What about this header?
7321 case $ac_header_compiler:$ac_header_preproc in
7322   yes:no )
7323     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7324 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7325     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7326 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7327     (
7328       cat <<\_ASBOX
7329 ## ------------------------------------ ##
7330 ## Report this to bug-autoconf@gnu.org. ##
7331 ## ------------------------------------ ##
7332 _ASBOX
7333     ) |
7334       sed "s/^/$as_me: WARNING:     /" >&2
7335     ;;
7336   no:yes )
7337     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7338 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7339     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7340 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7341     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7343     (
7344       cat <<\_ASBOX
7345 ## ------------------------------------ ##
7346 ## Report this to bug-autoconf@gnu.org. ##
7347 ## ------------------------------------ ##
7348 _ASBOX
7349     ) |
7350       sed "s/^/$as_me: WARNING:     /" >&2
7351     ;;
7352 esac
7353 echo "$as_me:$LINENO: checking for $ac_header" >&5
7354 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7356   echo $ECHO_N "(cached) $ECHO_C" >&6
7357 else
7358   eval "$as_ac_Header=$ac_header_preproc"
7359 fi
7360 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7361 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7362
7363 fi
7364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7365   cat >>confdefs.h <<_ACEOF
7366 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7367 _ACEOF
7368
7369 fi
7370
7371 done
7372
7373 echo "$as_me:$LINENO: checking for uint32_t" >&5
7374 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
7375 cat >conftest.$ac_ext <<_ACEOF
7376 #line $LINENO "configure"
7377 /* confdefs.h.  */
7378 _ACEOF
7379 cat confdefs.h >>conftest.$ac_ext
7380 cat >>conftest.$ac_ext <<_ACEOF
7381 /* end confdefs.h.  */
7382
7383 #include <sys/types.h>
7384 #if HAVE_INTTYPES_H
7385 #include <inttypes.h>
7386 #else
7387 #if HAVE_STDINT_H
7388 #include <stdint.h>
7389 #endif
7390 #endif
7391 int
7392 main ()
7393 {
7394 if ((uint32_t *) 0)
7395   return 0;
7396 if (sizeof (uint32_t))
7397   return 0;
7398
7399   ;
7400   return 0;
7401 }
7402 _ACEOF
7403 rm -f conftest.$ac_objext
7404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7405   (eval $ac_compile) 2>&5
7406   ac_status=$?
7407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408   (exit $ac_status); } &&
7409          { ac_try='test -s conftest.$ac_objext'
7410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7411   (eval $ac_try) 2>&5
7412   ac_status=$?
7413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414   (exit $ac_status); }; }; then
7415
7416
7417 cat >>confdefs.h <<\_ACEOF
7418 #define HAVE_UINT32_T 1
7419 _ACEOF
7420
7421     echo "$as_me:$LINENO: result: yes" >&5
7422 echo "${ECHO_T}yes" >&6
7423
7424 else
7425   echo "$as_me: failed program was:" >&5
7426 sed 's/^/| /' conftest.$ac_ext >&5
7427
7428 echo "$as_me:$LINENO: result: no" >&5
7429 echo "${ECHO_T}no" >&6
7430
7431 fi
7432 rm -f conftest.$ac_objext conftest.$ac_ext
7433 echo "$as_me:$LINENO: checking for int" >&5
7434 echo $ECHO_N "checking for int... $ECHO_C" >&6
7435 if test "${ac_cv_type_int+set}" = set; then
7436   echo $ECHO_N "(cached) $ECHO_C" >&6
7437 else
7438   cat >conftest.$ac_ext <<_ACEOF
7439 #line $LINENO "configure"
7440 /* confdefs.h.  */
7441 _ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h.  */
7445 $ac_includes_default
7446 int
7447 main ()
7448 {
7449 if ((int *) 0)
7450   return 0;
7451 if (sizeof (int))
7452   return 0;
7453   ;
7454   return 0;
7455 }
7456 _ACEOF
7457 rm -f conftest.$ac_objext
7458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7459   (eval $ac_compile) 2>&5
7460   ac_status=$?
7461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462   (exit $ac_status); } &&
7463          { ac_try='test -s conftest.$ac_objext'
7464   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7465   (eval $ac_try) 2>&5
7466   ac_status=$?
7467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468   (exit $ac_status); }; }; then
7469   ac_cv_type_int=yes
7470 else
7471   echo "$as_me: failed program was:" >&5
7472 sed 's/^/| /' conftest.$ac_ext >&5
7473
7474 ac_cv_type_int=no
7475 fi
7476 rm -f conftest.$ac_objext conftest.$ac_ext
7477 fi
7478 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
7479 echo "${ECHO_T}$ac_cv_type_int" >&6
7480
7481 echo "$as_me:$LINENO: checking size of int" >&5
7482 echo $ECHO_N "checking size of int... $ECHO_C" >&6
7483 if test "${ac_cv_sizeof_int+set}" = set; then
7484   echo $ECHO_N "(cached) $ECHO_C" >&6
7485 else
7486   if test "$ac_cv_type_int" = yes; then
7487   # The cast to unsigned long works around a bug in the HP C Compiler
7488   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7489   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7490   # This bug is HP SR number 8606223364.
7491   if test "$cross_compiling" = yes; then
7492   # Depending upon the size, compute the lo and hi bounds.
7493 cat >conftest.$ac_ext <<_ACEOF
7494 #line $LINENO "configure"
7495 /* confdefs.h.  */
7496 _ACEOF
7497 cat confdefs.h >>conftest.$ac_ext
7498 cat >>conftest.$ac_ext <<_ACEOF
7499 /* end confdefs.h.  */
7500 $ac_includes_default
7501 int
7502 main ()
7503 {
7504 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
7505 test_array [0] = 0
7506
7507   ;
7508   return 0;
7509 }
7510 _ACEOF
7511 rm -f conftest.$ac_objext
7512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7513   (eval $ac_compile) 2>&5
7514   ac_status=$?
7515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516   (exit $ac_status); } &&
7517          { ac_try='test -s conftest.$ac_objext'
7518   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7519   (eval $ac_try) 2>&5
7520   ac_status=$?
7521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522   (exit $ac_status); }; }; then
7523   ac_lo=0 ac_mid=0
7524   while :; do
7525     cat >conftest.$ac_ext <<_ACEOF
7526 #line $LINENO "configure"
7527 /* confdefs.h.  */
7528 _ACEOF
7529 cat confdefs.h >>conftest.$ac_ext
7530 cat >>conftest.$ac_ext <<_ACEOF
7531 /* end confdefs.h.  */
7532 $ac_includes_default
7533 int
7534 main ()
7535 {
7536 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7537 test_array [0] = 0
7538
7539   ;
7540   return 0;
7541 }
7542 _ACEOF
7543 rm -f conftest.$ac_objext
7544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7545   (eval $ac_compile) 2>&5
7546   ac_status=$?
7547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548   (exit $ac_status); } &&
7549          { ac_try='test -s conftest.$ac_objext'
7550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7551   (eval $ac_try) 2>&5
7552   ac_status=$?
7553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554   (exit $ac_status); }; }; then
7555   ac_hi=$ac_mid; break
7556 else
7557   echo "$as_me: failed program was:" >&5
7558 sed 's/^/| /' conftest.$ac_ext >&5
7559
7560 ac_lo=`expr $ac_mid + 1`
7561                     if test $ac_lo -le $ac_mid; then
7562                       ac_lo= ac_hi=
7563                       break
7564                     fi
7565                     ac_mid=`expr 2 '*' $ac_mid + 1`
7566 fi
7567 rm -f conftest.$ac_objext conftest.$ac_ext
7568   done
7569 else
7570   echo "$as_me: failed program was:" >&5
7571 sed 's/^/| /' conftest.$ac_ext >&5
7572
7573 cat >conftest.$ac_ext <<_ACEOF
7574 #line $LINENO "configure"
7575 /* confdefs.h.  */
7576 _ACEOF
7577 cat confdefs.h >>conftest.$ac_ext
7578 cat >>conftest.$ac_ext <<_ACEOF
7579 /* end confdefs.h.  */
7580 $ac_includes_default
7581 int
7582 main ()
7583 {
7584 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
7585 test_array [0] = 0
7586
7587   ;
7588   return 0;
7589 }
7590 _ACEOF
7591 rm -f conftest.$ac_objext
7592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7593   (eval $ac_compile) 2>&5
7594   ac_status=$?
7595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596   (exit $ac_status); } &&
7597          { ac_try='test -s conftest.$ac_objext'
7598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7599   (eval $ac_try) 2>&5
7600   ac_status=$?
7601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602   (exit $ac_status); }; }; then
7603   ac_hi=-1 ac_mid=-1
7604   while :; do
7605     cat >conftest.$ac_ext <<_ACEOF
7606 #line $LINENO "configure"
7607 /* confdefs.h.  */
7608 _ACEOF
7609 cat confdefs.h >>conftest.$ac_ext
7610 cat >>conftest.$ac_ext <<_ACEOF
7611 /* end confdefs.h.  */
7612 $ac_includes_default
7613 int
7614 main ()
7615 {
7616 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
7617 test_array [0] = 0
7618
7619   ;
7620   return 0;
7621 }
7622 _ACEOF
7623 rm -f conftest.$ac_objext
7624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7625   (eval $ac_compile) 2>&5
7626   ac_status=$?
7627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628   (exit $ac_status); } &&
7629          { ac_try='test -s conftest.$ac_objext'
7630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7631   (eval $ac_try) 2>&5
7632   ac_status=$?
7633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634   (exit $ac_status); }; }; then
7635   ac_lo=$ac_mid; break
7636 else
7637   echo "$as_me: failed program was:" >&5
7638 sed 's/^/| /' conftest.$ac_ext >&5
7639
7640 ac_hi=`expr '(' $ac_mid ')' - 1`
7641                        if test $ac_mid -le $ac_hi; then
7642                          ac_lo= ac_hi=
7643                          break
7644                        fi
7645                        ac_mid=`expr 2 '*' $ac_mid`
7646 fi
7647 rm -f conftest.$ac_objext conftest.$ac_ext
7648   done
7649 else
7650   echo "$as_me: failed program was:" >&5
7651 sed 's/^/| /' conftest.$ac_ext >&5
7652
7653 ac_lo= ac_hi=
7654 fi
7655 rm -f conftest.$ac_objext conftest.$ac_ext
7656 fi
7657 rm -f conftest.$ac_objext conftest.$ac_ext
7658 # Binary search between lo and hi bounds.
7659 while test "x$ac_lo" != "x$ac_hi"; do
7660   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7661   cat >conftest.$ac_ext <<_ACEOF
7662 #line $LINENO "configure"
7663 /* confdefs.h.  */
7664 _ACEOF
7665 cat confdefs.h >>conftest.$ac_ext
7666 cat >>conftest.$ac_ext <<_ACEOF
7667 /* end confdefs.h.  */
7668 $ac_includes_default
7669 int
7670 main ()
7671 {
7672 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
7673 test_array [0] = 0
7674
7675   ;
7676   return 0;
7677 }
7678 _ACEOF
7679 rm -f conftest.$ac_objext
7680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7681   (eval $ac_compile) 2>&5
7682   ac_status=$?
7683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7684   (exit $ac_status); } &&
7685          { ac_try='test -s conftest.$ac_objext'
7686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7687   (eval $ac_try) 2>&5
7688   ac_status=$?
7689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7690   (exit $ac_status); }; }; then
7691   ac_hi=$ac_mid
7692 else
7693   echo "$as_me: failed program was:" >&5
7694 sed 's/^/| /' conftest.$ac_ext >&5
7695
7696 ac_lo=`expr '(' $ac_mid ')' + 1`
7697 fi
7698 rm -f conftest.$ac_objext conftest.$ac_ext
7699 done
7700 case $ac_lo in
7701 ?*) ac_cv_sizeof_int=$ac_lo;;
7702 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7703 See \`config.log' for more details." >&5
7704 echo "$as_me: error: cannot compute sizeof (int), 77
7705 See \`config.log' for more details." >&2;}
7706    { (exit 1); exit 1; }; } ;;
7707 esac
7708 else
7709   if test "$cross_compiling" = yes; then
7710   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7711 See \`config.log' for more details." >&5
7712 echo "$as_me: error: cannot run test program while cross compiling
7713 See \`config.log' for more details." >&2;}
7714    { (exit 1); exit 1; }; }
7715 else
7716   cat >conftest.$ac_ext <<_ACEOF
7717 #line $LINENO "configure"
7718 /* confdefs.h.  */
7719 _ACEOF
7720 cat confdefs.h >>conftest.$ac_ext
7721 cat >>conftest.$ac_ext <<_ACEOF
7722 /* end confdefs.h.  */
7723 $ac_includes_default
7724 long longval () { return (long) (sizeof (int)); }
7725 unsigned long ulongval () { return (long) (sizeof (int)); }
7726 #include <stdio.h>
7727 #include <stdlib.h>
7728 int
7729 main ()
7730 {
7731
7732   FILE *f = fopen ("conftest.val", "w");
7733   if (! f)
7734     exit (1);
7735   if (((long) (sizeof (int))) < 0)
7736     {
7737       long i = longval ();
7738       if (i != ((long) (sizeof (int))))
7739         exit (1);
7740       fprintf (f, "%ld\n", i);
7741     }
7742   else
7743     {
7744       unsigned long i = ulongval ();
7745       if (i != ((long) (sizeof (int))))
7746         exit (1);
7747       fprintf (f, "%lu\n", i);
7748     }
7749   exit (ferror (f) || fclose (f) != 0);
7750
7751   ;
7752   return 0;
7753 }
7754 _ACEOF
7755 rm -f conftest$ac_exeext
7756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7757   (eval $ac_link) 2>&5
7758   ac_status=$?
7759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7762   (eval $ac_try) 2>&5
7763   ac_status=$?
7764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765   (exit $ac_status); }; }; then
7766   ac_cv_sizeof_int=`cat conftest.val`
7767 else
7768   echo "$as_me: program exited with status $ac_status" >&5
7769 echo "$as_me: failed program was:" >&5
7770 sed 's/^/| /' conftest.$ac_ext >&5
7771
7772 ( exit $ac_status )
7773 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
7774 See \`config.log' for more details." >&5
7775 echo "$as_me: error: cannot compute sizeof (int), 77
7776 See \`config.log' for more details." >&2;}
7777    { (exit 1); exit 1; }; }
7778 fi
7779 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7780 fi
7781 fi
7782 rm -f conftest.val
7783 else
7784   ac_cv_sizeof_int=0
7785 fi
7786 fi
7787 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
7788 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
7789 cat >>confdefs.h <<_ACEOF
7790 #define SIZEOF_INT $ac_cv_sizeof_int
7791 _ACEOF
7792
7793
7794 echo "$as_me:$LINENO: checking for long" >&5
7795 echo $ECHO_N "checking for long... $ECHO_C" >&6
7796 if test "${ac_cv_type_long+set}" = set; then
7797   echo $ECHO_N "(cached) $ECHO_C" >&6
7798 else
7799   cat >conftest.$ac_ext <<_ACEOF
7800 #line $LINENO "configure"
7801 /* confdefs.h.  */
7802 _ACEOF
7803 cat confdefs.h >>conftest.$ac_ext
7804 cat >>conftest.$ac_ext <<_ACEOF
7805 /* end confdefs.h.  */
7806 $ac_includes_default
7807 int
7808 main ()
7809 {
7810 if ((long *) 0)
7811   return 0;
7812 if (sizeof (long))
7813   return 0;
7814   ;
7815   return 0;
7816 }
7817 _ACEOF
7818 rm -f conftest.$ac_objext
7819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7820   (eval $ac_compile) 2>&5
7821   ac_status=$?
7822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823   (exit $ac_status); } &&
7824          { ac_try='test -s conftest.$ac_objext'
7825   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7826   (eval $ac_try) 2>&5
7827   ac_status=$?
7828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829   (exit $ac_status); }; }; then
7830   ac_cv_type_long=yes
7831 else
7832   echo "$as_me: failed program was:" >&5
7833 sed 's/^/| /' conftest.$ac_ext >&5
7834
7835 ac_cv_type_long=no
7836 fi
7837 rm -f conftest.$ac_objext conftest.$ac_ext
7838 fi
7839 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7840 echo "${ECHO_T}$ac_cv_type_long" >&6
7841
7842 echo "$as_me:$LINENO: checking size of long" >&5
7843 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7844 if test "${ac_cv_sizeof_long+set}" = set; then
7845   echo $ECHO_N "(cached) $ECHO_C" >&6
7846 else
7847   if test "$ac_cv_type_long" = yes; then
7848   # The cast to unsigned long works around a bug in the HP C Compiler
7849   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7850   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7851   # This bug is HP SR number 8606223364.
7852   if test "$cross_compiling" = yes; then
7853   # Depending upon the size, compute the lo and hi bounds.
7854 cat >conftest.$ac_ext <<_ACEOF
7855 #line $LINENO "configure"
7856 /* confdefs.h.  */
7857 _ACEOF
7858 cat confdefs.h >>conftest.$ac_ext
7859 cat >>conftest.$ac_ext <<_ACEOF
7860 /* end confdefs.h.  */
7861 $ac_includes_default
7862 int
7863 main ()
7864 {
7865 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7866 test_array [0] = 0
7867
7868   ;
7869   return 0;
7870 }
7871 _ACEOF
7872 rm -f conftest.$ac_objext
7873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7874   (eval $ac_compile) 2>&5
7875   ac_status=$?
7876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877   (exit $ac_status); } &&
7878          { ac_try='test -s conftest.$ac_objext'
7879   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7880   (eval $ac_try) 2>&5
7881   ac_status=$?
7882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883   (exit $ac_status); }; }; then
7884   ac_lo=0 ac_mid=0
7885   while :; do
7886     cat >conftest.$ac_ext <<_ACEOF
7887 #line $LINENO "configure"
7888 /* confdefs.h.  */
7889 _ACEOF
7890 cat confdefs.h >>conftest.$ac_ext
7891 cat >>conftest.$ac_ext <<_ACEOF
7892 /* end confdefs.h.  */
7893 $ac_includes_default
7894 int
7895 main ()
7896 {
7897 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7898 test_array [0] = 0
7899
7900   ;
7901   return 0;
7902 }
7903 _ACEOF
7904 rm -f conftest.$ac_objext
7905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7906   (eval $ac_compile) 2>&5
7907   ac_status=$?
7908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909   (exit $ac_status); } &&
7910          { ac_try='test -s conftest.$ac_objext'
7911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7912   (eval $ac_try) 2>&5
7913   ac_status=$?
7914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915   (exit $ac_status); }; }; then
7916   ac_hi=$ac_mid; break
7917 else
7918   echo "$as_me: failed program was:" >&5
7919 sed 's/^/| /' conftest.$ac_ext >&5
7920
7921 ac_lo=`expr $ac_mid + 1`
7922                     if test $ac_lo -le $ac_mid; then
7923                       ac_lo= ac_hi=
7924                       break
7925                     fi
7926                     ac_mid=`expr 2 '*' $ac_mid + 1`
7927 fi
7928 rm -f conftest.$ac_objext conftest.$ac_ext
7929   done
7930 else
7931   echo "$as_me: failed program was:" >&5
7932 sed 's/^/| /' conftest.$ac_ext >&5
7933
7934 cat >conftest.$ac_ext <<_ACEOF
7935 #line $LINENO "configure"
7936 /* confdefs.h.  */
7937 _ACEOF
7938 cat confdefs.h >>conftest.$ac_ext
7939 cat >>conftest.$ac_ext <<_ACEOF
7940 /* end confdefs.h.  */
7941 $ac_includes_default
7942 int
7943 main ()
7944 {
7945 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7946 test_array [0] = 0
7947
7948   ;
7949   return 0;
7950 }
7951 _ACEOF
7952 rm -f conftest.$ac_objext
7953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7954   (eval $ac_compile) 2>&5
7955   ac_status=$?
7956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957   (exit $ac_status); } &&
7958          { ac_try='test -s conftest.$ac_objext'
7959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7960   (eval $ac_try) 2>&5
7961   ac_status=$?
7962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963   (exit $ac_status); }; }; then
7964   ac_hi=-1 ac_mid=-1
7965   while :; do
7966     cat >conftest.$ac_ext <<_ACEOF
7967 #line $LINENO "configure"
7968 /* confdefs.h.  */
7969 _ACEOF
7970 cat confdefs.h >>conftest.$ac_ext
7971 cat >>conftest.$ac_ext <<_ACEOF
7972 /* end confdefs.h.  */
7973 $ac_includes_default
7974 int
7975 main ()
7976 {
7977 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7978 test_array [0] = 0
7979
7980   ;
7981   return 0;
7982 }
7983 _ACEOF
7984 rm -f conftest.$ac_objext
7985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7986   (eval $ac_compile) 2>&5
7987   ac_status=$?
7988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7989   (exit $ac_status); } &&
7990          { ac_try='test -s conftest.$ac_objext'
7991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7992   (eval $ac_try) 2>&5
7993   ac_status=$?
7994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7995   (exit $ac_status); }; }; then
7996   ac_lo=$ac_mid; break
7997 else
7998   echo "$as_me: failed program was:" >&5
7999 sed 's/^/| /' conftest.$ac_ext >&5
8000
8001 ac_hi=`expr '(' $ac_mid ')' - 1`
8002                        if test $ac_mid -le $ac_hi; then
8003                          ac_lo= ac_hi=
8004                          break
8005                        fi
8006                        ac_mid=`expr 2 '*' $ac_mid`
8007 fi
8008 rm -f conftest.$ac_objext conftest.$ac_ext
8009   done
8010 else
8011   echo "$as_me: failed program was:" >&5
8012 sed 's/^/| /' conftest.$ac_ext >&5
8013
8014 ac_lo= ac_hi=
8015 fi
8016 rm -f conftest.$ac_objext conftest.$ac_ext
8017 fi
8018 rm -f conftest.$ac_objext conftest.$ac_ext
8019 # Binary search between lo and hi bounds.
8020 while test "x$ac_lo" != "x$ac_hi"; do
8021   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8022   cat >conftest.$ac_ext <<_ACEOF
8023 #line $LINENO "configure"
8024 /* confdefs.h.  */
8025 _ACEOF
8026 cat confdefs.h >>conftest.$ac_ext
8027 cat >>conftest.$ac_ext <<_ACEOF
8028 /* end confdefs.h.  */
8029 $ac_includes_default
8030 int
8031 main ()
8032 {
8033 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
8034 test_array [0] = 0
8035
8036   ;
8037   return 0;
8038 }
8039 _ACEOF
8040 rm -f conftest.$ac_objext
8041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8042   (eval $ac_compile) 2>&5
8043   ac_status=$?
8044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045   (exit $ac_status); } &&
8046          { ac_try='test -s conftest.$ac_objext'
8047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8048   (eval $ac_try) 2>&5
8049   ac_status=$?
8050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051   (exit $ac_status); }; }; then
8052   ac_hi=$ac_mid
8053 else
8054   echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.$ac_ext >&5
8056
8057 ac_lo=`expr '(' $ac_mid ')' + 1`
8058 fi
8059 rm -f conftest.$ac_objext conftest.$ac_ext
8060 done
8061 case $ac_lo in
8062 ?*) ac_cv_sizeof_long=$ac_lo;;
8063 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
8064 See \`config.log' for more details." >&5
8065 echo "$as_me: error: cannot compute sizeof (long), 77
8066 See \`config.log' for more details." >&2;}
8067    { (exit 1); exit 1; }; } ;;
8068 esac
8069 else
8070   if test "$cross_compiling" = yes; then
8071   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8072 See \`config.log' for more details." >&5
8073 echo "$as_me: error: cannot run test program while cross compiling
8074 See \`config.log' for more details." >&2;}
8075    { (exit 1); exit 1; }; }
8076 else
8077   cat >conftest.$ac_ext <<_ACEOF
8078 #line $LINENO "configure"
8079 /* confdefs.h.  */
8080 _ACEOF
8081 cat confdefs.h >>conftest.$ac_ext
8082 cat >>conftest.$ac_ext <<_ACEOF
8083 /* end confdefs.h.  */
8084 $ac_includes_default
8085 long longval () { return (long) (sizeof (long)); }
8086 unsigned long ulongval () { return (long) (sizeof (long)); }
8087 #include <stdio.h>
8088 #include <stdlib.h>
8089 int
8090 main ()
8091 {
8092
8093   FILE *f = fopen ("conftest.val", "w");
8094   if (! f)
8095     exit (1);
8096   if (((long) (sizeof (long))) < 0)
8097     {
8098       long i = longval ();
8099       if (i != ((long) (sizeof (long))))
8100         exit (1);
8101       fprintf (f, "%ld\n", i);
8102     }
8103   else
8104     {
8105       unsigned long i = ulongval ();
8106       if (i != ((long) (sizeof (long))))
8107         exit (1);
8108       fprintf (f, "%lu\n", i);
8109     }
8110   exit (ferror (f) || fclose (f) != 0);
8111
8112   ;
8113   return 0;
8114 }
8115 _ACEOF
8116 rm -f conftest$ac_exeext
8117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8118   (eval $ac_link) 2>&5
8119   ac_status=$?
8120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8123   (eval $ac_try) 2>&5
8124   ac_status=$?
8125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126   (exit $ac_status); }; }; then
8127   ac_cv_sizeof_long=`cat conftest.val`
8128 else
8129   echo "$as_me: program exited with status $ac_status" >&5
8130 echo "$as_me: failed program was:" >&5
8131 sed 's/^/| /' conftest.$ac_ext >&5
8132
8133 ( exit $ac_status )
8134 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
8135 See \`config.log' for more details." >&5
8136 echo "$as_me: error: cannot compute sizeof (long), 77
8137 See \`config.log' for more details." >&2;}
8138    { (exit 1); exit 1; }; }
8139 fi
8140 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8141 fi
8142 fi
8143 rm -f conftest.val
8144 else
8145   ac_cv_sizeof_long=0
8146 fi
8147 fi
8148 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
8149 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
8150 cat >>confdefs.h <<_ACEOF
8151 #define SIZEOF_LONG $ac_cv_sizeof_long
8152 _ACEOF
8153
8154
8155
8156 echo "$as_me:$LINENO: checking for pid_t" >&5
8157 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
8158 if test "${ac_cv_type_pid_t+set}" = set; then
8159   echo $ECHO_N "(cached) $ECHO_C" >&6
8160 else
8161   cat >conftest.$ac_ext <<_ACEOF
8162 #line $LINENO "configure"
8163 /* confdefs.h.  */
8164 _ACEOF
8165 cat confdefs.h >>conftest.$ac_ext
8166 cat >>conftest.$ac_ext <<_ACEOF
8167 /* end confdefs.h.  */
8168 $ac_includes_default
8169 int
8170 main ()
8171 {
8172 if ((pid_t *) 0)
8173   return 0;
8174 if (sizeof (pid_t))
8175   return 0;
8176   ;
8177   return 0;
8178 }
8179 _ACEOF
8180 rm -f conftest.$ac_objext
8181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8182   (eval $ac_compile) 2>&5
8183   ac_status=$?
8184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185   (exit $ac_status); } &&
8186          { ac_try='test -s conftest.$ac_objext'
8187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8188   (eval $ac_try) 2>&5
8189   ac_status=$?
8190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191   (exit $ac_status); }; }; then
8192   ac_cv_type_pid_t=yes
8193 else
8194   echo "$as_me: failed program was:" >&5
8195 sed 's/^/| /' conftest.$ac_ext >&5
8196
8197 ac_cv_type_pid_t=no
8198 fi
8199 rm -f conftest.$ac_objext conftest.$ac_ext
8200 fi
8201 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8202 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8203 if test $ac_cv_type_pid_t = yes; then
8204   :
8205 else
8206
8207 cat >>confdefs.h <<_ACEOF
8208 #define pid_t int
8209 _ACEOF
8210
8211 fi
8212
8213
8214
8215
8216
8217
8218
8219 for ac_func in fgetpos memmove setegid srand48 strerror
8220 do
8221 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8222 echo "$as_me:$LINENO: checking for $ac_func" >&5
8223 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8224 if eval "test \"\${$as_ac_var+set}\" = set"; then
8225   echo $ECHO_N "(cached) $ECHO_C" >&6
8226 else
8227   cat >conftest.$ac_ext <<_ACEOF
8228 #line $LINENO "configure"
8229 /* confdefs.h.  */
8230 _ACEOF
8231 cat confdefs.h >>conftest.$ac_ext
8232 cat >>conftest.$ac_ext <<_ACEOF
8233 /* end confdefs.h.  */
8234 /* System header to define __stub macros and hopefully few prototypes,
8235     which can conflict with char $ac_func (); below.
8236     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8237     <limits.h> exists even on freestanding compilers.  */
8238 #ifdef __STDC__
8239 # include <limits.h>
8240 #else
8241 # include <assert.h>
8242 #endif
8243 /* Override any gcc2 internal prototype to avoid an error.  */
8244 #ifdef __cplusplus
8245 extern "C"
8246 {
8247 #endif
8248 /* We use char because int might match the return type of a gcc2
8249    builtin and then its argument prototype would still apply.  */
8250 char $ac_func ();
8251 /* The GNU C library defines this for functions which it implements
8252     to always fail with ENOSYS.  Some functions are actually named
8253     something starting with __ and the normal name is an alias.  */
8254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8255 choke me
8256 #else
8257 char (*f) () = $ac_func;
8258 #endif
8259 #ifdef __cplusplus
8260 }
8261 #endif
8262
8263 int
8264 main ()
8265 {
8266 return f != $ac_func;
8267   ;
8268   return 0;
8269 }
8270 _ACEOF
8271 rm -f conftest.$ac_objext conftest$ac_exeext
8272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8273   (eval $ac_link) 2>&5
8274   ac_status=$?
8275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276   (exit $ac_status); } &&
8277          { ac_try='test -s conftest$ac_exeext'
8278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8279   (eval $ac_try) 2>&5
8280   ac_status=$?
8281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282   (exit $ac_status); }; }; then
8283   eval "$as_ac_var=yes"
8284 else
8285   echo "$as_me: failed program was:" >&5
8286 sed 's/^/| /' conftest.$ac_ext >&5
8287
8288 eval "$as_ac_var=no"
8289 fi
8290 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8291 fi
8292 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8293 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8294 if test `eval echo '${'$as_ac_var'}'` = yes; then
8295   cat >>confdefs.h <<_ACEOF
8296 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8297 _ACEOF
8298
8299 fi
8300 done
8301
8302
8303
8304
8305 for ac_func in strcasecmp strdup
8306 do
8307 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8308 echo "$as_me:$LINENO: checking for $ac_func" >&5
8309 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8310 if eval "test \"\${$as_ac_var+set}\" = set"; then
8311   echo $ECHO_N "(cached) $ECHO_C" >&6
8312 else
8313   cat >conftest.$ac_ext <<_ACEOF
8314 #line $LINENO "configure"
8315 /* confdefs.h.  */
8316 _ACEOF
8317 cat confdefs.h >>conftest.$ac_ext
8318 cat >>conftest.$ac_ext <<_ACEOF
8319 /* end confdefs.h.  */
8320 /* System header to define __stub macros and hopefully few prototypes,
8321     which can conflict with char $ac_func (); below.
8322     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8323     <limits.h> exists even on freestanding compilers.  */
8324 #ifdef __STDC__
8325 # include <limits.h>
8326 #else
8327 # include <assert.h>
8328 #endif
8329 /* Override any gcc2 internal prototype to avoid an error.  */
8330 #ifdef __cplusplus
8331 extern "C"
8332 {
8333 #endif
8334 /* We use char because int might match the return type of a gcc2
8335    builtin and then its argument prototype would still apply.  */
8336 char $ac_func ();
8337 /* The GNU C library defines this for functions which it implements
8338     to always fail with ENOSYS.  Some functions are actually named
8339     something starting with __ and the normal name is an alias.  */
8340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8341 choke me
8342 #else
8343 char (*f) () = $ac_func;
8344 #endif
8345 #ifdef __cplusplus
8346 }
8347 #endif
8348
8349 int
8350 main ()
8351 {
8352 return f != $ac_func;
8353   ;
8354   return 0;
8355 }
8356 _ACEOF
8357 rm -f conftest.$ac_objext conftest$ac_exeext
8358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8359   (eval $ac_link) 2>&5
8360   ac_status=$?
8361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8362   (exit $ac_status); } &&
8363          { ac_try='test -s conftest$ac_exeext'
8364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8365   (eval $ac_try) 2>&5
8366   ac_status=$?
8367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368   (exit $ac_status); }; }; then
8369   eval "$as_ac_var=yes"
8370 else
8371   echo "$as_me: failed program was:" >&5
8372 sed 's/^/| /' conftest.$ac_ext >&5
8373
8374 eval "$as_ac_var=no"
8375 fi
8376 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8377 fi
8378 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8379 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8380 if test `eval echo '${'$as_ac_var'}'` = yes; then
8381   cat >>confdefs.h <<_ACEOF
8382 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8383 _ACEOF
8384
8385 else
8386   LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
8387 fi
8388 done
8389
8390
8391
8392 echo "$as_me:$LINENO: checking for getopt" >&5
8393 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
8394 if test "${ac_cv_func_getopt+set}" = set; then
8395   echo $ECHO_N "(cached) $ECHO_C" >&6
8396 else
8397   cat >conftest.$ac_ext <<_ACEOF
8398 #line $LINENO "configure"
8399 /* confdefs.h.  */
8400 _ACEOF
8401 cat confdefs.h >>conftest.$ac_ext
8402 cat >>conftest.$ac_ext <<_ACEOF
8403 /* end confdefs.h.  */
8404 /* System header to define __stub macros and hopefully few prototypes,
8405     which can conflict with char getopt (); below.
8406     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8407     <limits.h> exists even on freestanding compilers.  */
8408 #ifdef __STDC__
8409 # include <limits.h>
8410 #else
8411 # include <assert.h>
8412 #endif
8413 /* Override any gcc2 internal prototype to avoid an error.  */
8414 #ifdef __cplusplus
8415 extern "C"
8416 {
8417 #endif
8418 /* We use char because int might match the return type of a gcc2
8419    builtin and then its argument prototype would still apply.  */
8420 char getopt ();
8421 /* The GNU C library defines this for functions which it implements
8422     to always fail with ENOSYS.  Some functions are actually named
8423     something starting with __ and the normal name is an alias.  */
8424 #if defined (__stub_getopt) || defined (__stub___getopt)
8425 choke me
8426 #else
8427 char (*f) () = getopt;
8428 #endif
8429 #ifdef __cplusplus
8430 }
8431 #endif
8432
8433 int
8434 main ()
8435 {
8436 return f != getopt;
8437   ;
8438   return 0;
8439 }
8440 _ACEOF
8441 rm -f conftest.$ac_objext conftest$ac_exeext
8442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8443   (eval $ac_link) 2>&5
8444   ac_status=$?
8445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446   (exit $ac_status); } &&
8447          { ac_try='test -s conftest$ac_exeext'
8448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8449   (eval $ac_try) 2>&5
8450   ac_status=$?
8451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452   (exit $ac_status); }; }; then
8453   ac_cv_func_getopt=yes
8454 else
8455   echo "$as_me: failed program was:" >&5
8456 sed 's/^/| /' conftest.$ac_ext >&5
8457
8458 ac_cv_func_getopt=no
8459 fi
8460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8461 fi
8462 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
8463 echo "${ECHO_T}$ac_cv_func_getopt" >&6
8464
8465 if test $ac_cv_func_getopt = yes; then
8466
8467 for ac_header in getopt.h
8468 do
8469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8471   echo "$as_me:$LINENO: checking for $ac_header" >&5
8472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8474   echo $ECHO_N "(cached) $ECHO_C" >&6
8475 fi
8476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8478 else
8479   # Is the header compilable?
8480 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8482 cat >conftest.$ac_ext <<_ACEOF
8483 #line $LINENO "configure"
8484 /* confdefs.h.  */
8485 _ACEOF
8486 cat confdefs.h >>conftest.$ac_ext
8487 cat >>conftest.$ac_ext <<_ACEOF
8488 /* end confdefs.h.  */
8489 $ac_includes_default
8490 #include <$ac_header>
8491 _ACEOF
8492 rm -f conftest.$ac_objext
8493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8494   (eval $ac_compile) 2>&5
8495   ac_status=$?
8496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8497   (exit $ac_status); } &&
8498          { ac_try='test -s conftest.$ac_objext'
8499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8500   (eval $ac_try) 2>&5
8501   ac_status=$?
8502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503   (exit $ac_status); }; }; then
8504   ac_header_compiler=yes
8505 else
8506   echo "$as_me: failed program was:" >&5
8507 sed 's/^/| /' conftest.$ac_ext >&5
8508
8509 ac_header_compiler=no
8510 fi
8511 rm -f conftest.$ac_objext conftest.$ac_ext
8512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8513 echo "${ECHO_T}$ac_header_compiler" >&6
8514
8515 # Is the header present?
8516 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8518 cat >conftest.$ac_ext <<_ACEOF
8519 #line $LINENO "configure"
8520 /* confdefs.h.  */
8521 _ACEOF
8522 cat confdefs.h >>conftest.$ac_ext
8523 cat >>conftest.$ac_ext <<_ACEOF
8524 /* end confdefs.h.  */
8525 #include <$ac_header>
8526 _ACEOF
8527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8528   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8529   ac_status=$?
8530   grep -v '^ *+' conftest.er1 >conftest.err
8531   rm -f conftest.er1
8532   cat conftest.err >&5
8533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534   (exit $ac_status); } >/dev/null; then
8535   if test -s conftest.err; then
8536     ac_cpp_err=$ac_c_preproc_warn_flag
8537   else
8538     ac_cpp_err=
8539   fi
8540 else
8541   ac_cpp_err=yes
8542 fi
8543 if test -z "$ac_cpp_err"; then
8544   ac_header_preproc=yes
8545 else
8546   echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.$ac_ext >&5
8548
8549   ac_header_preproc=no
8550 fi
8551 rm -f conftest.err conftest.$ac_ext
8552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8553 echo "${ECHO_T}$ac_header_preproc" >&6
8554
8555 # So?  What about this header?
8556 case $ac_header_compiler:$ac_header_preproc in
8557   yes:no )
8558     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8560     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8562     (
8563       cat <<\_ASBOX
8564 ## ------------------------------------ ##
8565 ## Report this to bug-autoconf@gnu.org. ##
8566 ## ------------------------------------ ##
8567 _ASBOX
8568     ) |
8569       sed "s/^/$as_me: WARNING:     /" >&2
8570     ;;
8571   no:yes )
8572     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8574     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8575 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8576     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8578     (
8579       cat <<\_ASBOX
8580 ## ------------------------------------ ##
8581 ## Report this to bug-autoconf@gnu.org. ##
8582 ## ------------------------------------ ##
8583 _ASBOX
8584     ) |
8585       sed "s/^/$as_me: WARNING:     /" >&2
8586     ;;
8587 esac
8588 echo "$as_me:$LINENO: checking for $ac_header" >&5
8589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8591   echo $ECHO_N "(cached) $ECHO_C" >&6
8592 else
8593   eval "$as_ac_Header=$ac_header_preproc"
8594 fi
8595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8597
8598 fi
8599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8600   cat >>confdefs.h <<_ACEOF
8601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8602 _ACEOF
8603
8604 fi
8605
8606 done
8607
8608 fi
8609
8610 mutt_cv_snprintf=no
8611 SNPRINTFOBJS=""
8612
8613 for ac_func in snprintf
8614 do
8615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8616 echo "$as_me:$LINENO: checking for $ac_func" >&5
8617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8618 if eval "test \"\${$as_ac_var+set}\" = set"; then
8619   echo $ECHO_N "(cached) $ECHO_C" >&6
8620 else
8621   cat >conftest.$ac_ext <<_ACEOF
8622 #line $LINENO "configure"
8623 /* confdefs.h.  */
8624 _ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h.  */
8628 /* System header to define __stub macros and hopefully few prototypes,
8629     which can conflict with char $ac_func (); below.
8630     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8631     <limits.h> exists even on freestanding compilers.  */
8632 #ifdef __STDC__
8633 # include <limits.h>
8634 #else
8635 # include <assert.h>
8636 #endif
8637 /* Override any gcc2 internal prototype to avoid an error.  */
8638 #ifdef __cplusplus
8639 extern "C"
8640 {
8641 #endif
8642 /* We use char because int might match the return type of a gcc2
8643    builtin and then its argument prototype would still apply.  */
8644 char $ac_func ();
8645 /* The GNU C library defines this for functions which it implements
8646     to always fail with ENOSYS.  Some functions are actually named
8647     something starting with __ and the normal name is an alias.  */
8648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8649 choke me
8650 #else
8651 char (*f) () = $ac_func;
8652 #endif
8653 #ifdef __cplusplus
8654 }
8655 #endif
8656
8657 int
8658 main ()
8659 {
8660 return f != $ac_func;
8661   ;
8662   return 0;
8663 }
8664 _ACEOF
8665 rm -f conftest.$ac_objext conftest$ac_exeext
8666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8667   (eval $ac_link) 2>&5
8668   ac_status=$?
8669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670   (exit $ac_status); } &&
8671          { ac_try='test -s conftest$ac_exeext'
8672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8673   (eval $ac_try) 2>&5
8674   ac_status=$?
8675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676   (exit $ac_status); }; }; then
8677   eval "$as_ac_var=yes"
8678 else
8679   echo "$as_me: failed program was:" >&5
8680 sed 's/^/| /' conftest.$ac_ext >&5
8681
8682 eval "$as_ac_var=no"
8683 fi
8684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8685 fi
8686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8687 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8688 if test `eval echo '${'$as_ac_var'}'` = yes; then
8689   cat >>confdefs.h <<_ACEOF
8690 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8691 _ACEOF
8692
8693 else
8694   mutt_cv_snprintf=yes
8695 fi
8696 done
8697
8698
8699 for ac_func in vsnprintf
8700 do
8701 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8702 echo "$as_me:$LINENO: checking for $ac_func" >&5
8703 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8704 if eval "test \"\${$as_ac_var+set}\" = set"; then
8705   echo $ECHO_N "(cached) $ECHO_C" >&6
8706 else
8707   cat >conftest.$ac_ext <<_ACEOF
8708 #line $LINENO "configure"
8709 /* confdefs.h.  */
8710 _ACEOF
8711 cat confdefs.h >>conftest.$ac_ext
8712 cat >>conftest.$ac_ext <<_ACEOF
8713 /* end confdefs.h.  */
8714 /* System header to define __stub macros and hopefully few prototypes,
8715     which can conflict with char $ac_func (); below.
8716     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8717     <limits.h> exists even on freestanding compilers.  */
8718 #ifdef __STDC__
8719 # include <limits.h>
8720 #else
8721 # include <assert.h>
8722 #endif
8723 /* Override any gcc2 internal prototype to avoid an error.  */
8724 #ifdef __cplusplus
8725 extern "C"
8726 {
8727 #endif
8728 /* We use char because int might match the return type of a gcc2
8729    builtin and then its argument prototype would still apply.  */
8730 char $ac_func ();
8731 /* The GNU C library defines this for functions which it implements
8732     to always fail with ENOSYS.  Some functions are actually named
8733     something starting with __ and the normal name is an alias.  */
8734 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8735 choke me
8736 #else
8737 char (*f) () = $ac_func;
8738 #endif
8739 #ifdef __cplusplus
8740 }
8741 #endif
8742
8743 int
8744 main ()
8745 {
8746 return f != $ac_func;
8747   ;
8748   return 0;
8749 }
8750 _ACEOF
8751 rm -f conftest.$ac_objext conftest$ac_exeext
8752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8753   (eval $ac_link) 2>&5
8754   ac_status=$?
8755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756   (exit $ac_status); } &&
8757          { ac_try='test -s conftest$ac_exeext'
8758   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8759   (eval $ac_try) 2>&5
8760   ac_status=$?
8761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762   (exit $ac_status); }; }; then
8763   eval "$as_ac_var=yes"
8764 else
8765   echo "$as_me: failed program was:" >&5
8766 sed 's/^/| /' conftest.$ac_ext >&5
8767
8768 eval "$as_ac_var=no"
8769 fi
8770 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8771 fi
8772 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8773 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8774 if test `eval echo '${'$as_ac_var'}'` = yes; then
8775   cat >>confdefs.h <<_ACEOF
8776 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8777 _ACEOF
8778
8779 else
8780   mutt_cv_snprintf=yes
8781 fi
8782 done
8783
8784 if test $mutt_cv_snprintf = yes; then
8785         LIBOBJS="$LIBOBJS snprintf.$ac_objext"
8786 fi
8787
8788
8789 for ac_func in ftruncate
8790 do
8791 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8792 echo "$as_me:$LINENO: checking for $ac_func" >&5
8793 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8794 if eval "test \"\${$as_ac_var+set}\" = set"; then
8795   echo $ECHO_N "(cached) $ECHO_C" >&6
8796 else
8797   cat >conftest.$ac_ext <<_ACEOF
8798 #line $LINENO "configure"
8799 /* confdefs.h.  */
8800 _ACEOF
8801 cat confdefs.h >>conftest.$ac_ext
8802 cat >>conftest.$ac_ext <<_ACEOF
8803 /* end confdefs.h.  */
8804 /* System header to define __stub macros and hopefully few prototypes,
8805     which can conflict with char $ac_func (); below.
8806     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8807     <limits.h> exists even on freestanding compilers.  */
8808 #ifdef __STDC__
8809 # include <limits.h>
8810 #else
8811 # include <assert.h>
8812 #endif
8813 /* Override any gcc2 internal prototype to avoid an error.  */
8814 #ifdef __cplusplus
8815 extern "C"
8816 {
8817 #endif
8818 /* We use char because int might match the return type of a gcc2
8819    builtin and then its argument prototype would still apply.  */
8820 char $ac_func ();
8821 /* The GNU C library defines this for functions which it implements
8822     to always fail with ENOSYS.  Some functions are actually named
8823     something starting with __ and the normal name is an alias.  */
8824 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8825 choke me
8826 #else
8827 char (*f) () = $ac_func;
8828 #endif
8829 #ifdef __cplusplus
8830 }
8831 #endif
8832
8833 int
8834 main ()
8835 {
8836 return f != $ac_func;
8837   ;
8838   return 0;
8839 }
8840 _ACEOF
8841 rm -f conftest.$ac_objext conftest$ac_exeext
8842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8843   (eval $ac_link) 2>&5
8844   ac_status=$?
8845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846   (exit $ac_status); } &&
8847          { ac_try='test -s conftest$ac_exeext'
8848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8849   (eval $ac_try) 2>&5
8850   ac_status=$?
8851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8852   (exit $ac_status); }; }; then
8853   eval "$as_ac_var=yes"
8854 else
8855   echo "$as_me: failed program was:" >&5
8856 sed 's/^/| /' conftest.$ac_ext >&5
8857
8858 eval "$as_ac_var=no"
8859 fi
8860 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8861 fi
8862 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8863 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8864 if test `eval echo '${'$as_ac_var'}'` = yes; then
8865   cat >>confdefs.h <<_ACEOF
8866 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8867 _ACEOF
8868
8869 else
8870
8871 echo "$as_me:$LINENO: checking for chsize in -lx" >&5
8872 echo $ECHO_N "checking for chsize in -lx... $ECHO_C" >&6
8873 if test "${ac_cv_lib_x_chsize+set}" = set; then
8874   echo $ECHO_N "(cached) $ECHO_C" >&6
8875 else
8876   ac_check_lib_save_LIBS=$LIBS
8877 LIBS="-lx  $LIBS"
8878 cat >conftest.$ac_ext <<_ACEOF
8879 #line $LINENO "configure"
8880 /* confdefs.h.  */
8881 _ACEOF
8882 cat confdefs.h >>conftest.$ac_ext
8883 cat >>conftest.$ac_ext <<_ACEOF
8884 /* end confdefs.h.  */
8885
8886 /* Override any gcc2 internal prototype to avoid an error.  */
8887 #ifdef __cplusplus
8888 extern "C"
8889 #endif
8890 /* We use char because int might match the return type of a gcc2
8891    builtin and then its argument prototype would still apply.  */
8892 char chsize ();
8893 int
8894 main ()
8895 {
8896 chsize ();
8897   ;
8898   return 0;
8899 }
8900 _ACEOF
8901 rm -f conftest.$ac_objext conftest$ac_exeext
8902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8903   (eval $ac_link) 2>&5
8904   ac_status=$?
8905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906   (exit $ac_status); } &&
8907          { ac_try='test -s conftest$ac_exeext'
8908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8909   (eval $ac_try) 2>&5
8910   ac_status=$?
8911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912   (exit $ac_status); }; }; then
8913   ac_cv_lib_x_chsize=yes
8914 else
8915   echo "$as_me: failed program was:" >&5
8916 sed 's/^/| /' conftest.$ac_ext >&5
8917
8918 ac_cv_lib_x_chsize=no
8919 fi
8920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8921 LIBS=$ac_check_lib_save_LIBS
8922 fi
8923 echo "$as_me:$LINENO: result: $ac_cv_lib_x_chsize" >&5
8924 echo "${ECHO_T}$ac_cv_lib_x_chsize" >&6
8925 if test $ac_cv_lib_x_chsize = yes; then
8926   cat >>confdefs.h <<_ACEOF
8927 #define HAVE_LIBX 1
8928 _ACEOF
8929
8930   LIBS="-lx $LIBS"
8931
8932 fi
8933
8934 fi
8935 done
8936
8937
8938
8939 for ac_func in strftime
8940 do
8941 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8942 echo "$as_me:$LINENO: checking for $ac_func" >&5
8943 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8944 if eval "test \"\${$as_ac_var+set}\" = set"; then
8945   echo $ECHO_N "(cached) $ECHO_C" >&6
8946 else
8947   cat >conftest.$ac_ext <<_ACEOF
8948 #line $LINENO "configure"
8949 /* confdefs.h.  */
8950 _ACEOF
8951 cat confdefs.h >>conftest.$ac_ext
8952 cat >>conftest.$ac_ext <<_ACEOF
8953 /* end confdefs.h.  */
8954 /* System header to define __stub macros and hopefully few prototypes,
8955     which can conflict with char $ac_func (); below.
8956     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8957     <limits.h> exists even on freestanding compilers.  */
8958 #ifdef __STDC__
8959 # include <limits.h>
8960 #else
8961 # include <assert.h>
8962 #endif
8963 /* Override any gcc2 internal prototype to avoid an error.  */
8964 #ifdef __cplusplus
8965 extern "C"
8966 {
8967 #endif
8968 /* We use char because int might match the return type of a gcc2
8969    builtin and then its argument prototype would still apply.  */
8970 char $ac_func ();
8971 /* The GNU C library defines this for functions which it implements
8972     to always fail with ENOSYS.  Some functions are actually named
8973     something starting with __ and the normal name is an alias.  */
8974 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8975 choke me
8976 #else
8977 char (*f) () = $ac_func;
8978 #endif
8979 #ifdef __cplusplus
8980 }
8981 #endif
8982
8983 int
8984 main ()
8985 {
8986 return f != $ac_func;
8987   ;
8988   return 0;
8989 }
8990 _ACEOF
8991 rm -f conftest.$ac_objext conftest$ac_exeext
8992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8993   (eval $ac_link) 2>&5
8994   ac_status=$?
8995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996   (exit $ac_status); } &&
8997          { ac_try='test -s conftest$ac_exeext'
8998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8999   (eval $ac_try) 2>&5
9000   ac_status=$?
9001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002   (exit $ac_status); }; }; then
9003   eval "$as_ac_var=yes"
9004 else
9005   echo "$as_me: failed program was:" >&5
9006 sed 's/^/| /' conftest.$ac_ext >&5
9007
9008 eval "$as_ac_var=no"
9009 fi
9010 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9011 fi
9012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9013 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9014 if test `eval echo '${'$as_ac_var'}'` = yes; then
9015   cat >>confdefs.h <<_ACEOF
9016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9017 _ACEOF
9018
9019 else
9020
9021 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
9022 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
9023 if test "${ac_cv_lib_intl_strftime+set}" = set; then
9024   echo $ECHO_N "(cached) $ECHO_C" >&6
9025 else
9026   ac_check_lib_save_LIBS=$LIBS
9027 LIBS="-lintl  $LIBS"
9028 cat >conftest.$ac_ext <<_ACEOF
9029 #line $LINENO "configure"
9030 /* confdefs.h.  */
9031 _ACEOF
9032 cat confdefs.h >>conftest.$ac_ext
9033 cat >>conftest.$ac_ext <<_ACEOF
9034 /* end confdefs.h.  */
9035
9036 /* Override any gcc2 internal prototype to avoid an error.  */
9037 #ifdef __cplusplus
9038 extern "C"
9039 #endif
9040 /* We use char because int might match the return type of a gcc2
9041    builtin and then its argument prototype would still apply.  */
9042 char strftime ();
9043 int
9044 main ()
9045 {
9046 strftime ();
9047   ;
9048   return 0;
9049 }
9050 _ACEOF
9051 rm -f conftest.$ac_objext conftest$ac_exeext
9052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9053   (eval $ac_link) 2>&5
9054   ac_status=$?
9055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056   (exit $ac_status); } &&
9057          { ac_try='test -s conftest$ac_exeext'
9058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9059   (eval $ac_try) 2>&5
9060   ac_status=$?
9061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062   (exit $ac_status); }; }; then
9063   ac_cv_lib_intl_strftime=yes
9064 else
9065   echo "$as_me: failed program was:" >&5
9066 sed 's/^/| /' conftest.$ac_ext >&5
9067
9068 ac_cv_lib_intl_strftime=no
9069 fi
9070 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9071 LIBS=$ac_check_lib_save_LIBS
9072 fi
9073 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
9074 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
9075 if test $ac_cv_lib_intl_strftime = yes; then
9076   cat >>confdefs.h <<_ACEOF
9077 #define HAVE_LIBINTL 1
9078 _ACEOF
9079
9080   LIBS="-lintl $LIBS"
9081
9082 fi
9083
9084 fi
9085 done
9086
9087
9088
9089 for ac_func in fchdir
9090 do
9091 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9092 echo "$as_me:$LINENO: checking for $ac_func" >&5
9093 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9094 if eval "test \"\${$as_ac_var+set}\" = set"; then
9095   echo $ECHO_N "(cached) $ECHO_C" >&6
9096 else
9097   cat >conftest.$ac_ext <<_ACEOF
9098 #line $LINENO "configure"
9099 /* confdefs.h.  */
9100 _ACEOF
9101 cat confdefs.h >>conftest.$ac_ext
9102 cat >>conftest.$ac_ext <<_ACEOF
9103 /* end confdefs.h.  */
9104 /* System header to define __stub macros and hopefully few prototypes,
9105     which can conflict with char $ac_func (); below.
9106     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9107     <limits.h> exists even on freestanding compilers.  */
9108 #ifdef __STDC__
9109 # include <limits.h>
9110 #else
9111 # include <assert.h>
9112 #endif
9113 /* Override any gcc2 internal prototype to avoid an error.  */
9114 #ifdef __cplusplus
9115 extern "C"
9116 {
9117 #endif
9118 /* We use char because int might match the return type of a gcc2
9119    builtin and then its argument prototype would still apply.  */
9120 char $ac_func ();
9121 /* The GNU C library defines this for functions which it implements
9122     to always fail with ENOSYS.  Some functions are actually named
9123     something starting with __ and the normal name is an alias.  */
9124 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9125 choke me
9126 #else
9127 char (*f) () = $ac_func;
9128 #endif
9129 #ifdef __cplusplus
9130 }
9131 #endif
9132
9133 int
9134 main ()
9135 {
9136 return f != $ac_func;
9137   ;
9138   return 0;
9139 }
9140 _ACEOF
9141 rm -f conftest.$ac_objext conftest$ac_exeext
9142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9143   (eval $ac_link) 2>&5
9144   ac_status=$?
9145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146   (exit $ac_status); } &&
9147          { ac_try='test -s conftest$ac_exeext'
9148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9149   (eval $ac_try) 2>&5
9150   ac_status=$?
9151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152   (exit $ac_status); }; }; then
9153   eval "$as_ac_var=yes"
9154 else
9155   echo "$as_me: failed program was:" >&5
9156 sed 's/^/| /' conftest.$ac_ext >&5
9157
9158 eval "$as_ac_var=no"
9159 fi
9160 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9161 fi
9162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9163 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9164 if test `eval echo '${'$as_ac_var'}'` = yes; then
9165   cat >>confdefs.h <<_ACEOF
9166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9167 _ACEOF
9168
9169 else
9170   mutt_cv_fchdir=no
9171 fi
9172 done
9173
9174
9175
9176 # Check whether --with-regex or --without-regex was given.
9177 if test "${with_regex+set}" = set; then
9178   withval="$with_regex"
9179   mutt_cv_regex=yes
9180 else
9181
9182 for ac_func in regcomp
9183 do
9184 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9185 echo "$as_me:$LINENO: checking for $ac_func" >&5
9186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9187 if eval "test \"\${$as_ac_var+set}\" = set"; then
9188   echo $ECHO_N "(cached) $ECHO_C" >&6
9189 else
9190   cat >conftest.$ac_ext <<_ACEOF
9191 #line $LINENO "configure"
9192 /* confdefs.h.  */
9193 _ACEOF
9194 cat confdefs.h >>conftest.$ac_ext
9195 cat >>conftest.$ac_ext <<_ACEOF
9196 /* end confdefs.h.  */
9197 /* System header to define __stub macros and hopefully few prototypes,
9198     which can conflict with char $ac_func (); below.
9199     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9200     <limits.h> exists even on freestanding compilers.  */
9201 #ifdef __STDC__
9202 # include <limits.h>
9203 #else
9204 # include <assert.h>
9205 #endif
9206 /* Override any gcc2 internal prototype to avoid an error.  */
9207 #ifdef __cplusplus
9208 extern "C"
9209 {
9210 #endif
9211 /* We use char because int might match the return type of a gcc2
9212    builtin and then its argument prototype would still apply.  */
9213 char $ac_func ();
9214 /* The GNU C library defines this for functions which it implements
9215     to always fail with ENOSYS.  Some functions are actually named
9216     something starting with __ and the normal name is an alias.  */
9217 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9218 choke me
9219 #else
9220 char (*f) () = $ac_func;
9221 #endif
9222 #ifdef __cplusplus
9223 }
9224 #endif
9225
9226 int
9227 main ()
9228 {
9229 return f != $ac_func;
9230   ;
9231   return 0;
9232 }
9233 _ACEOF
9234 rm -f conftest.$ac_objext conftest$ac_exeext
9235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9236   (eval $ac_link) 2>&5
9237   ac_status=$?
9238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239   (exit $ac_status); } &&
9240          { ac_try='test -s conftest$ac_exeext'
9241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9242   (eval $ac_try) 2>&5
9243   ac_status=$?
9244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245   (exit $ac_status); }; }; then
9246   eval "$as_ac_var=yes"
9247 else
9248   echo "$as_me: failed program was:" >&5
9249 sed 's/^/| /' conftest.$ac_ext >&5
9250
9251 eval "$as_ac_var=no"
9252 fi
9253 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9254 fi
9255 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9256 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9257 if test `eval echo '${'$as_ac_var'}'` = yes; then
9258   cat >>confdefs.h <<_ACEOF
9259 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9260 _ACEOF
9261  mutt_cv_regex=no
9262 else
9263   mutt_cv_regex=yes
9264 fi
9265 done
9266
9267 fi;
9268
9269 if test $mutt_cv_regex = no ; then
9270 echo "$as_me:$LINENO: checking whether your system's regexp library is completely broken" >&5
9271 echo $ECHO_N "checking whether your system's regexp library is completely broken... $ECHO_C" >&6
9272 if test "${mutt_cv_regex_broken+set}" = set; then
9273   echo $ECHO_N "(cached) $ECHO_C" >&6
9274 else
9275   if test "$cross_compiling" = yes; then
9276   mutt_cv_regex_broken=yes
9277 else
9278   cat >conftest.$ac_ext <<_ACEOF
9279 #line $LINENO "configure"
9280 /* confdefs.h.  */
9281 _ACEOF
9282 cat confdefs.h >>conftest.$ac_ext
9283 cat >>conftest.$ac_ext <<_ACEOF
9284 /* end confdefs.h.  */
9285
9286 #include <unistd.h>
9287 #include <regex.h>
9288 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); }
9289 _ACEOF
9290 rm -f conftest$ac_exeext
9291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9292   (eval $ac_link) 2>&5
9293   ac_status=$?
9294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9297   (eval $ac_try) 2>&5
9298   ac_status=$?
9299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300   (exit $ac_status); }; }; then
9301   mutt_cv_regex_broken=no
9302 else
9303   echo "$as_me: program exited with status $ac_status" >&5
9304 echo "$as_me: failed program was:" >&5
9305 sed 's/^/| /' conftest.$ac_ext >&5
9306
9307 ( exit $ac_status )
9308 mutt_cv_regex_broken=yes
9309 fi
9310 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9311 fi
9312 fi
9313 echo "$as_me:$LINENO: result: $mutt_cv_regex_broken" >&5
9314 echo "${ECHO_T}$mutt_cv_regex_broken" >&6
9315         if test $mutt_cv_regex_broken = yes ; then
9316                 echo "Using the included GNU regex instead." >&6
9317                 mutt_cv_regex=yes
9318         fi
9319 fi
9320
9321 if test $mutt_cv_regex = yes; then
9322
9323 cat >>confdefs.h <<\_ACEOF
9324 #define USE_GNU_REGEX 1
9325 _ACEOF
9326
9327         LIBOBJS="$LIBOBJS regex.$ac_objext"
9328 fi
9329
9330
9331
9332 # Check whether --with-homespool or --without-homespool was given.
9333 if test "${with_homespool+set}" = set; then
9334   withval="$with_homespool"
9335   with_homespool=${withval}
9336 fi;
9337 if test x$with_homespool != x; then
9338         if test $with_homespool = yes; then
9339                 with_homespool=mailbox
9340         fi
9341
9342 cat >>confdefs.h <<_ACEOF
9343 #define MAILPATH "$with_homespool"
9344 _ACEOF
9345
9346
9347 cat >>confdefs.h <<\_ACEOF
9348 #define HOMESPOOL 1
9349 _ACEOF
9350
9351
9352 cat >>confdefs.h <<\_ACEOF
9353 #define USE_DOTLOCK 1
9354 _ACEOF
9355
9356         mutt_cv_setgid=no
9357 else
9358
9359 # Check whether --with-mailpath or --without-mailpath was given.
9360 if test "${with_mailpath+set}" = set; then
9361   withval="$with_mailpath"
9362   mutt_cv_mailpath=$withval
9363 else
9364    echo "$as_me:$LINENO: checking where new mail is stored" >&5
9365 echo $ECHO_N "checking where new mail is stored... $ECHO_C" >&6
9366 if test "${mutt_cv_mailpath+set}" = set; then
9367   echo $ECHO_N "(cached) $ECHO_C" >&6
9368 else
9369   mutt_cv_mailpath=no
9370                         if test -d /var/mail; then
9371                                 mutt_cv_mailpath=/var/mail
9372                         elif test -d /var/spool/mail; then
9373                                 mutt_cv_mailpath=/var/spool/mail
9374                         elif test -d /usr/spool/mail; then
9375                                 mutt_cv_mailpath=/usr/spool/mail
9376                         elif test -d /usr/mail; then
9377                                 mutt_cv_mailpath=/usr/mail
9378                         fi
9379 fi
9380 echo "$as_me:$LINENO: result: $mutt_cv_mailpath" >&5
9381 echo "${ECHO_T}$mutt_cv_mailpath" >&6
9382
9383 fi;
9384         if test "$mutt_cv_mailpath" = no; then
9385                 { { echo "$as_me:$LINENO: error: \"Could not determine where new mail is stored.\"" >&5
9386 echo "$as_me: error: \"Could not determine where new mail is stored.\"" >&2;}
9387    { (exit 1); exit 1; }; }
9388         fi
9389
9390 cat >>confdefs.h <<_ACEOF
9391 #define MAILPATH "$mutt_cv_mailpath"
9392 _ACEOF
9393
9394
9395         echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is world writable" >&5
9396 echo $ECHO_N "checking if $mutt_cv_mailpath is world writable... $ECHO_C" >&6
9397 if test "${mutt_cv_worldwrite+set}" = set; then
9398   echo $ECHO_N "(cached) $ECHO_C" >&6
9399 else
9400   if test "$cross_compiling" = yes; then
9401   mutt_cv_worldwrite=no
9402 else
9403   cat >conftest.$ac_ext <<_ACEOF
9404 #line $LINENO "configure"
9405 /* confdefs.h.  */
9406 _ACEOF
9407 cat confdefs.h >>conftest.$ac_ext
9408 cat >>conftest.$ac_ext <<_ACEOF
9409 /* end confdefs.h.  */
9410 #include <sys/types.h>
9411 #include <sys/stat.h>
9412
9413 int main (int argc, char **argv)
9414 {
9415         struct stat s;
9416
9417         stat ("$mutt_cv_mailpath", &s);
9418         if (s.st_mode & S_IWOTH) exit (0);
9419         exit (1);
9420 }
9421 _ACEOF
9422 rm -f conftest$ac_exeext
9423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9424   (eval $ac_link) 2>&5
9425   ac_status=$?
9426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9429   (eval $ac_try) 2>&5
9430   ac_status=$?
9431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432   (exit $ac_status); }; }; then
9433   mutt_cv_worldwrite=yes
9434 else
9435   echo "$as_me: program exited with status $ac_status" >&5
9436 echo "$as_me: failed program was:" >&5
9437 sed 's/^/| /' conftest.$ac_ext >&5
9438
9439 ( exit $ac_status )
9440 mutt_cv_worldwrite=no
9441 fi
9442 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9443 fi
9444 fi
9445 echo "$as_me:$LINENO: result: $mutt_cv_worldwrite" >&5
9446 echo "${ECHO_T}$mutt_cv_worldwrite" >&6
9447
9448         mutt_cv_setgid=no
9449         if test $mutt_cv_worldwrite = yes; then
9450
9451 cat >>confdefs.h <<\_ACEOF
9452 #define USE_DOTLOCK 1
9453 _ACEOF
9454
9455         else
9456
9457                 echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is group writable" >&5
9458 echo $ECHO_N "checking if $mutt_cv_mailpath is group writable... $ECHO_C" >&6
9459 if test "${mutt_cv_groupwrite+set}" = set; then
9460   echo $ECHO_N "(cached) $ECHO_C" >&6
9461 else
9462   if test "$cross_compiling" = yes; then
9463   mutt_cv_groupwrite=no
9464 else
9465   cat >conftest.$ac_ext <<_ACEOF
9466 #line $LINENO "configure"
9467 /* confdefs.h.  */
9468 _ACEOF
9469 cat confdefs.h >>conftest.$ac_ext
9470 cat >>conftest.$ac_ext <<_ACEOF
9471 /* end confdefs.h.  */
9472 #include <sys/types.h>
9473 #include <sys/stat.h>
9474
9475 int main (int argc, char **argv)
9476 {
9477         struct stat s;
9478
9479         stat ("$mutt_cv_mailpath", &s);
9480         if (s.st_mode & S_IWGRP) exit (0);
9481         exit (1);
9482 }
9483 _ACEOF
9484 rm -f conftest$ac_exeext
9485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9486   (eval $ac_link) 2>&5
9487   ac_status=$?
9488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9489   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9490   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9491   (eval $ac_try) 2>&5
9492   ac_status=$?
9493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494   (exit $ac_status); }; }; then
9495   mutt_cv_groupwrite=yes
9496 else
9497   echo "$as_me: program exited with status $ac_status" >&5
9498 echo "$as_me: failed program was:" >&5
9499 sed 's/^/| /' conftest.$ac_ext >&5
9500
9501 ( exit $ac_status )
9502 mutt_cv_groupwrite=no
9503 fi
9504 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9505 fi
9506 fi
9507 echo "$as_me:$LINENO: result: $mutt_cv_groupwrite" >&5
9508 echo "${ECHO_T}$mutt_cv_groupwrite" >&6
9509
9510                 if test $mutt_cv_groupwrite = yes; then
9511
9512 cat >>confdefs.h <<\_ACEOF
9513 #define USE_DOTLOCK 1
9514 _ACEOF
9515
9516
9517 cat >>confdefs.h <<\_ACEOF
9518 #define USE_SETGID 1
9519 _ACEOF
9520
9521                         mutt_cv_setgid=yes
9522                 fi
9523         fi
9524 fi
9525
9526 # Check whether --enable-external_dotlock or --disable-external_dotlock was given.
9527 if test "${enable_external_dotlock+set}" = set; then
9528   enableval="$enable_external_dotlock"
9529   mutt_cv_external_dotlock="$enableval"
9530 fi;
9531
9532 if test "x$mutt_cv_setgid" = "xyes" || test "x$mutt_cv_fchdir" = "xno" \
9533         || test "x$mutt_cv_external_dotlock" = "xyes"
9534 then
9535
9536 cat >>confdefs.h <<\_ACEOF
9537 #define DL_STANDALONE 1
9538 _ACEOF
9539
9540         DOTLOCK_TARGET="mutt_dotlock"
9541 else
9542         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS dotlock.o"
9543 fi
9544
9545
9546
9547
9548 echo "$as_me:$LINENO: checking where to put the documentation" >&5
9549 echo $ECHO_N "checking where to put the documentation... $ECHO_C" >&6
9550
9551 # Check whether --with-docdir or --without-docdir was given.
9552 if test "${with_docdir+set}" = set; then
9553   withval="$with_docdir"
9554   mutt_cv_docdir=$withval
9555 else
9556   mutt_cv_docdir="$mutt_cv_prefix/doc/mutt"
9557 fi;
9558 echo "$as_me:$LINENO: result: $mutt_cv_docdir" >&5
9559 echo "${ECHO_T}$mutt_cv_docdir" >&6
9560
9561 docdir=$mutt_cv_docdir
9562
9563
9564 if test x$mutt_cv_setgid = xyes; then
9565         DOTLOCK_GROUP='mail'
9566         DOTLOCK_PERMISSION=2755
9567 else
9568         DOTLOCK_GROUP=''
9569         DOTLOCK_PERMISSION=755
9570 fi
9571
9572
9573
9574
9575 # Check whether --with-domain or --without-domain was given.
9576 if test "${with_domain+set}" = set; then
9577   withval="$with_domain"
9578   if test $withval != yes; then
9579
9580 cat >>confdefs.h <<_ACEOF
9581 #define DOMAIN "$withval"
9582 _ACEOF
9583
9584         fi
9585 fi;
9586
9587 need_socket="no"
9588
9589
9590 # Check whether --enable-pop or --disable-pop was given.
9591 if test "${enable_pop+set}" = set; then
9592   enableval="$enable_pop"
9593          if test x$enableval = xyes ; then
9594
9595 cat >>confdefs.h <<\_ACEOF
9596 #define USE_POP 1
9597 _ACEOF
9598
9599                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pop.o pop_lib.o pop_auth.o"
9600                 need_socket="yes"
9601                 need_md5="yes"
9602         fi
9603
9604 fi;
9605
9606 # Check whether --enable-imap or --disable-imap was given.
9607 if test "${enable_imap+set}" = set; then
9608   enableval="$enable_imap"
9609          if test x$enableval = xyes ; then
9610
9611 cat >>confdefs.h <<\_ACEOF
9612 #define USE_IMAP 1
9613 _ACEOF
9614
9615                 LIBIMAP="-Limap -limap"
9616                 LIBIMAPDEPS="\$(top_srcdir)/imap/imap.h imap/libimap.a"
9617                 need_imap="yes"
9618                 need_socket="yes"
9619                 need_md5="yes"
9620         fi
9621
9622 fi;
9623
9624
9625 if test x$need_imap = xyes; then
9626   BUILD_IMAP_TRUE=
9627   BUILD_IMAP_FALSE='#'
9628 else
9629   BUILD_IMAP_TRUE='#'
9630   BUILD_IMAP_FALSE=
9631 fi
9632
9633
9634 # Check whether --enable-nntp or --disable-nntp was given.
9635 if test "${enable_nntp+set}" = set; then
9636   enableval="$enable_nntp"
9637         if test x$enableval = xyes ; then
9638                 cat >>confdefs.h <<\_ACEOF
9639 #define USE_NNTP 1
9640 _ACEOF
9641
9642                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS nntp.o newsrc.o"
9643                 need_socket="yes"
9644         fi
9645
9646 fi;
9647
9648
9649 if test "$need_socket" = "yes"
9650 then
9651         echo "$as_me:$LINENO: checking for socklen_t" >&5
9652 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
9653         cat >conftest.$ac_ext <<_ACEOF
9654 #line $LINENO "configure"
9655 /* confdefs.h.  */
9656 _ACEOF
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h.  */
9660 #include <sys/socket.h>
9661
9662 _ACEOF
9663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9664   $EGREP "socklen_t" >/dev/null 2>&1; then
9665   echo "$as_me:$LINENO: result: yes" >&5
9666 echo "${ECHO_T}yes" >&6
9667 else
9668   echo "$as_me:$LINENO: result: no" >&5
9669 echo "${ECHO_T}no" >&6
9670
9671 cat >>confdefs.h <<\_ACEOF
9672 #define socklen_t int
9673 _ACEOF
9674
9675 fi
9676 rm -f conftest*
9677
9678         echo "$as_me:$LINENO: checking for gethostent" >&5
9679 echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
9680 if test "${ac_cv_func_gethostent+set}" = set; then
9681   echo $ECHO_N "(cached) $ECHO_C" >&6
9682 else
9683   cat >conftest.$ac_ext <<_ACEOF
9684 #line $LINENO "configure"
9685 /* confdefs.h.  */
9686 _ACEOF
9687 cat confdefs.h >>conftest.$ac_ext
9688 cat >>conftest.$ac_ext <<_ACEOF
9689 /* end confdefs.h.  */
9690 /* System header to define __stub macros and hopefully few prototypes,
9691     which can conflict with char gethostent (); below.
9692     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9693     <limits.h> exists even on freestanding compilers.  */
9694 #ifdef __STDC__
9695 # include <limits.h>
9696 #else
9697 # include <assert.h>
9698 #endif
9699 /* Override any gcc2 internal prototype to avoid an error.  */
9700 #ifdef __cplusplus
9701 extern "C"
9702 {
9703 #endif
9704 /* We use char because int might match the return type of a gcc2
9705    builtin and then its argument prototype would still apply.  */
9706 char gethostent ();
9707 /* The GNU C library defines this for functions which it implements
9708     to always fail with ENOSYS.  Some functions are actually named
9709     something starting with __ and the normal name is an alias.  */
9710 #if defined (__stub_gethostent) || defined (__stub___gethostent)
9711 choke me
9712 #else
9713 char (*f) () = gethostent;
9714 #endif
9715 #ifdef __cplusplus
9716 }
9717 #endif
9718
9719 int
9720 main ()
9721 {
9722 return f != gethostent;
9723   ;
9724   return 0;
9725 }
9726 _ACEOF
9727 rm -f conftest.$ac_objext conftest$ac_exeext
9728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9729   (eval $ac_link) 2>&5
9730   ac_status=$?
9731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732   (exit $ac_status); } &&
9733          { ac_try='test -s conftest$ac_exeext'
9734   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9735   (eval $ac_try) 2>&5
9736   ac_status=$?
9737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738   (exit $ac_status); }; }; then
9739   ac_cv_func_gethostent=yes
9740 else
9741   echo "$as_me: failed program was:" >&5
9742 sed 's/^/| /' conftest.$ac_ext >&5
9743
9744 ac_cv_func_gethostent=no
9745 fi
9746 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9747 fi
9748 echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5
9749 echo "${ECHO_T}$ac_cv_func_gethostent" >&6
9750 if test $ac_cv_func_gethostent = yes; then
9751   :
9752 else
9753
9754 echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
9755 echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
9756 if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
9757   echo $ECHO_N "(cached) $ECHO_C" >&6
9758 else
9759   ac_check_lib_save_LIBS=$LIBS
9760 LIBS="-lnsl  $LIBS"
9761 cat >conftest.$ac_ext <<_ACEOF
9762 #line $LINENO "configure"
9763 /* confdefs.h.  */
9764 _ACEOF
9765 cat confdefs.h >>conftest.$ac_ext
9766 cat >>conftest.$ac_ext <<_ACEOF
9767 /* end confdefs.h.  */
9768
9769 /* Override any gcc2 internal prototype to avoid an error.  */
9770 #ifdef __cplusplus
9771 extern "C"
9772 #endif
9773 /* We use char because int might match the return type of a gcc2
9774    builtin and then its argument prototype would still apply.  */
9775 char gethostent ();
9776 int
9777 main ()
9778 {
9779 gethostent ();
9780   ;
9781   return 0;
9782 }
9783 _ACEOF
9784 rm -f conftest.$ac_objext conftest$ac_exeext
9785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9786   (eval $ac_link) 2>&5
9787   ac_status=$?
9788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789   (exit $ac_status); } &&
9790          { ac_try='test -s conftest$ac_exeext'
9791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9792   (eval $ac_try) 2>&5
9793   ac_status=$?
9794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9795   (exit $ac_status); }; }; then
9796   ac_cv_lib_nsl_gethostent=yes
9797 else
9798   echo "$as_me: failed program was:" >&5
9799 sed 's/^/| /' conftest.$ac_ext >&5
9800
9801 ac_cv_lib_nsl_gethostent=no
9802 fi
9803 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9804 LIBS=$ac_check_lib_save_LIBS
9805 fi
9806 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
9807 echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
9808 if test $ac_cv_lib_nsl_gethostent = yes; then
9809   cat >>confdefs.h <<_ACEOF
9810 #define HAVE_LIBNSL 1
9811 _ACEOF
9812
9813   LIBS="-lnsl $LIBS"
9814
9815 fi
9816
9817 fi
9818
9819         echo "$as_me:$LINENO: checking for setsockopt" >&5
9820 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
9821 if test "${ac_cv_func_setsockopt+set}" = set; then
9822   echo $ECHO_N "(cached) $ECHO_C" >&6
9823 else
9824   cat >conftest.$ac_ext <<_ACEOF
9825 #line $LINENO "configure"
9826 /* confdefs.h.  */
9827 _ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h.  */
9831 /* System header to define __stub macros and hopefully few prototypes,
9832     which can conflict with char setsockopt (); below.
9833     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9834     <limits.h> exists even on freestanding compilers.  */
9835 #ifdef __STDC__
9836 # include <limits.h>
9837 #else
9838 # include <assert.h>
9839 #endif
9840 /* Override any gcc2 internal prototype to avoid an error.  */
9841 #ifdef __cplusplus
9842 extern "C"
9843 {
9844 #endif
9845 /* We use char because int might match the return type of a gcc2
9846    builtin and then its argument prototype would still apply.  */
9847 char setsockopt ();
9848 /* The GNU C library defines this for functions which it implements
9849     to always fail with ENOSYS.  Some functions are actually named
9850     something starting with __ and the normal name is an alias.  */
9851 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
9852 choke me
9853 #else
9854 char (*f) () = setsockopt;
9855 #endif
9856 #ifdef __cplusplus
9857 }
9858 #endif
9859
9860 int
9861 main ()
9862 {
9863 return f != setsockopt;
9864   ;
9865   return 0;
9866 }
9867 _ACEOF
9868 rm -f conftest.$ac_objext conftest$ac_exeext
9869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9870   (eval $ac_link) 2>&5
9871   ac_status=$?
9872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873   (exit $ac_status); } &&
9874          { ac_try='test -s conftest$ac_exeext'
9875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9876   (eval $ac_try) 2>&5
9877   ac_status=$?
9878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879   (exit $ac_status); }; }; then
9880   ac_cv_func_setsockopt=yes
9881 else
9882   echo "$as_me: failed program was:" >&5
9883 sed 's/^/| /' conftest.$ac_ext >&5
9884
9885 ac_cv_func_setsockopt=no
9886 fi
9887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9888 fi
9889 echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
9890 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
9891 if test $ac_cv_func_setsockopt = yes; then
9892   :
9893 else
9894
9895 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
9896 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
9897 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
9898   echo $ECHO_N "(cached) $ECHO_C" >&6
9899 else
9900   ac_check_lib_save_LIBS=$LIBS
9901 LIBS="-lsocket  $LIBS"
9902 cat >conftest.$ac_ext <<_ACEOF
9903 #line $LINENO "configure"
9904 /* confdefs.h.  */
9905 _ACEOF
9906 cat confdefs.h >>conftest.$ac_ext
9907 cat >>conftest.$ac_ext <<_ACEOF
9908 /* end confdefs.h.  */
9909
9910 /* Override any gcc2 internal prototype to avoid an error.  */
9911 #ifdef __cplusplus
9912 extern "C"
9913 #endif
9914 /* We use char because int might match the return type of a gcc2
9915    builtin and then its argument prototype would still apply.  */
9916 char setsockopt ();
9917 int
9918 main ()
9919 {
9920 setsockopt ();
9921   ;
9922   return 0;
9923 }
9924 _ACEOF
9925 rm -f conftest.$ac_objext conftest$ac_exeext
9926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9927   (eval $ac_link) 2>&5
9928   ac_status=$?
9929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930   (exit $ac_status); } &&
9931          { ac_try='test -s conftest$ac_exeext'
9932   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9933   (eval $ac_try) 2>&5
9934   ac_status=$?
9935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936   (exit $ac_status); }; }; then
9937   ac_cv_lib_socket_setsockopt=yes
9938 else
9939   echo "$as_me: failed program was:" >&5
9940 sed 's/^/| /' conftest.$ac_ext >&5
9941
9942 ac_cv_lib_socket_setsockopt=no
9943 fi
9944 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9945 LIBS=$ac_check_lib_save_LIBS
9946 fi
9947 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
9948 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
9949 if test $ac_cv_lib_socket_setsockopt = yes; then
9950   cat >>confdefs.h <<_ACEOF
9951 #define HAVE_LIBSOCKET 1
9952 _ACEOF
9953
9954   LIBS="-lsocket $LIBS"
9955
9956 fi
9957
9958 fi
9959
9960
9961 for ac_func in getaddrinfo
9962 do
9963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9964 echo "$as_me:$LINENO: checking for $ac_func" >&5
9965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9966 if eval "test \"\${$as_ac_var+set}\" = set"; then
9967   echo $ECHO_N "(cached) $ECHO_C" >&6
9968 else
9969   cat >conftest.$ac_ext <<_ACEOF
9970 #line $LINENO "configure"
9971 /* confdefs.h.  */
9972 _ACEOF
9973 cat confdefs.h >>conftest.$ac_ext
9974 cat >>conftest.$ac_ext <<_ACEOF
9975 /* end confdefs.h.  */
9976 /* System header to define __stub macros and hopefully few prototypes,
9977     which can conflict with char $ac_func (); below.
9978     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9979     <limits.h> exists even on freestanding compilers.  */
9980 #ifdef __STDC__
9981 # include <limits.h>
9982 #else
9983 # include <assert.h>
9984 #endif
9985 /* Override any gcc2 internal prototype to avoid an error.  */
9986 #ifdef __cplusplus
9987 extern "C"
9988 {
9989 #endif
9990 /* We use char because int might match the return type of a gcc2
9991    builtin and then its argument prototype would still apply.  */
9992 char $ac_func ();
9993 /* The GNU C library defines this for functions which it implements
9994     to always fail with ENOSYS.  Some functions are actually named
9995     something starting with __ and the normal name is an alias.  */
9996 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9997 choke me
9998 #else
9999 char (*f) () = $ac_func;
10000 #endif
10001 #ifdef __cplusplus
10002 }
10003 #endif
10004
10005 int
10006 main ()
10007 {
10008 return f != $ac_func;
10009   ;
10010   return 0;
10011 }
10012 _ACEOF
10013 rm -f conftest.$ac_objext conftest$ac_exeext
10014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10015   (eval $ac_link) 2>&5
10016   ac_status=$?
10017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018   (exit $ac_status); } &&
10019          { ac_try='test -s conftest$ac_exeext'
10020   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10021   (eval $ac_try) 2>&5
10022   ac_status=$?
10023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024   (exit $ac_status); }; }; then
10025   eval "$as_ac_var=yes"
10026 else
10027   echo "$as_me: failed program was:" >&5
10028 sed 's/^/| /' conftest.$ac_ext >&5
10029
10030 eval "$as_ac_var=no"
10031 fi
10032 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10033 fi
10034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10035 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10036 if test `eval echo '${'$as_ac_var'}'` = yes; then
10037   cat >>confdefs.h <<_ACEOF
10038 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10039 _ACEOF
10040
10041 fi
10042 done
10043
10044
10045 cat >>confdefs.h <<\_ACEOF
10046 #define USE_SOCKET 1
10047 _ACEOF
10048
10049         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS account.o mutt_socket.o mutt_tunnel.o"
10050 fi
10051
10052
10053
10054 # Check whether --with-gss or --without-gss was given.
10055 if test "${with_gss+set}" = set; then
10056   withval="$with_gss"
10057   gss_prefix="$withval"
10058 else
10059   gss_prefix="no"
10060 fi;
10061 if test "$gss_prefix" != "no"
10062 then
10063   if test "$need_imap" = "yes"
10064   then
10065
10066   GSSAPI_PREFIX=$gss_prefix
10067   GSSAPI_IMPL="none"
10068   saved_CPPFLAGS="$CPPFLAGS"
10069   saved_LDFLAGS="$LDFLAGS"
10070   saved_LIBS="$LIBS"
10071     if test "$GSSAPI_PREFIX" != "yes"
10072   then
10073     krb5_path="$GSSAPI_PREFIX/bin"
10074   else
10075     krb5_path="$PATH"
10076   fi
10077   # Extract the first word of "krb5-config", so it can be a program name with args.
10078 set dummy krb5-config; ac_word=$2
10079 echo "$as_me:$LINENO: checking for $ac_word" >&5
10080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10081 if test "${ac_cv_path_KRB5CFGPATH+set}" = set; then
10082   echo $ECHO_N "(cached) $ECHO_C" >&6
10083 else
10084   case $KRB5CFGPATH in
10085   [\\/]* | ?:[\\/]*)
10086   ac_cv_path_KRB5CFGPATH="$KRB5CFGPATH" # Let the user override the test with a path.
10087   ;;
10088   *)
10089   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10090 for as_dir in $krb5_path
10091 do
10092   IFS=$as_save_IFS
10093   test -z "$as_dir" && as_dir=.
10094   for ac_exec_ext in '' $ac_executable_extensions; do
10095   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10096     ac_cv_path_KRB5CFGPATH="$as_dir/$ac_word$ac_exec_ext"
10097     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10098     break 2
10099   fi
10100 done
10101 done
10102
10103   test -z "$ac_cv_path_KRB5CFGPATH" && ac_cv_path_KRB5CFGPATH="none"
10104   ;;
10105 esac
10106 fi
10107 KRB5CFGPATH=$ac_cv_path_KRB5CFGPATH
10108
10109 if test -n "$KRB5CFGPATH"; then
10110   echo "$as_me:$LINENO: result: $KRB5CFGPATH" >&5
10111 echo "${ECHO_T}$KRB5CFGPATH" >&6
10112 else
10113   echo "$as_me:$LINENO: result: no" >&5
10114 echo "${ECHO_T}no" >&6
10115 fi
10116
10117   if test "$KRB5CFGPATH" != "none"
10118   then
10119     GSSAPI_CFLAGS="$CPPFLAGS `$KRB5CFGPATH --cflags gssapi`"
10120     GSSAPI_LIBS="$MUTTLIBS `$KRB5CFGPATH --libs gssapi`"
10121     case "`$KRB5CFGPATH --version`" in
10122       "Kerberos 5 "*)   GSSAPI_IMPL="MIT";;
10123       ?eimdal*)         GSSAPI_IMPL="Heimdal";;
10124       *)                GSSAPI_IMPL="Unknown";;
10125    esac
10126   else
10127         if test "$GSSAPI_PREFIX" != "yes"
10128     then
10129       GSSAPI_CFLAGS="-I$GSSAPI_PREFIX/include"
10130       GSSAPI_LDFLAGS="-L$GSSAPI_PREFIX/lib"
10131       CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
10132       LDFLAGS="$LDFLAGS $GSSAPI_LDFLAGS"
10133     fi
10134
10135         echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
10136 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6
10137 if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
10138   echo $ECHO_N "(cached) $ECHO_C" >&6
10139 else
10140   ac_check_lib_save_LIBS=$LIBS
10141 LIBS="-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err $LIBS"
10142 cat >conftest.$ac_ext <<_ACEOF
10143 #line $LINENO "configure"
10144 /* confdefs.h.  */
10145 _ACEOF
10146 cat confdefs.h >>conftest.$ac_ext
10147 cat >>conftest.$ac_ext <<_ACEOF
10148 /* end confdefs.h.  */
10149
10150 /* Override any gcc2 internal prototype to avoid an error.  */
10151 #ifdef __cplusplus
10152 extern "C"
10153 #endif
10154 /* We use char because int might match the return type of a gcc2
10155    builtin and then its argument prototype would still apply.  */
10156 char gss_init_sec_context ();
10157 int
10158 main ()
10159 {
10160 gss_init_sec_context ();
10161   ;
10162   return 0;
10163 }
10164 _ACEOF
10165 rm -f conftest.$ac_objext conftest$ac_exeext
10166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10167   (eval $ac_link) 2>&5
10168   ac_status=$?
10169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170   (exit $ac_status); } &&
10171          { ac_try='test -s conftest$ac_exeext'
10172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10173   (eval $ac_try) 2>&5
10174   ac_status=$?
10175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176   (exit $ac_status); }; }; then
10177   ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
10178 else
10179   echo "$as_me: failed program was:" >&5
10180 sed 's/^/| /' conftest.$ac_ext >&5
10181
10182 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
10183 fi
10184 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10185 LIBS=$ac_check_lib_save_LIBS
10186 fi
10187 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
10188 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6
10189 if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
10190
10191       GSSAPI_IMPL="MIT",
10192       GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err"
10193
10194 fi
10195
10196
10197         if test "$GSSAPI_IMPL" = "none"
10198     then
10199       echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
10200 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6
10201 if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
10202   echo $ECHO_N "(cached) $ECHO_C" >&6
10203 else
10204   ac_check_lib_save_LIBS=$LIBS
10205 LIBS="-lgssapi -lkrb5 -ldes -lasn1 -lroken -lcrypt -lcom_err $LIBS"
10206 cat >conftest.$ac_ext <<_ACEOF
10207 #line $LINENO "configure"
10208 /* confdefs.h.  */
10209 _ACEOF
10210 cat confdefs.h >>conftest.$ac_ext
10211 cat >>conftest.$ac_ext <<_ACEOF
10212 /* end confdefs.h.  */
10213
10214 /* Override any gcc2 internal prototype to avoid an error.  */
10215 #ifdef __cplusplus
10216 extern "C"
10217 #endif
10218 /* We use char because int might match the return type of a gcc2
10219    builtin and then its argument prototype would still apply.  */
10220 char gss_init_sec_context ();
10221 int
10222 main ()
10223 {
10224 gss_init_sec_context ();
10225   ;
10226   return 0;
10227 }
10228 _ACEOF
10229 rm -f conftest.$ac_objext conftest$ac_exeext
10230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10231   (eval $ac_link) 2>&5
10232   ac_status=$?
10233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234   (exit $ac_status); } &&
10235          { ac_try='test -s conftest$ac_exeext'
10236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10237   (eval $ac_try) 2>&5
10238   ac_status=$?
10239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240   (exit $ac_status); }; }; then
10241   ac_cv_lib_gssapi_gss_init_sec_context=yes
10242 else
10243   echo "$as_me: failed program was:" >&5
10244 sed 's/^/| /' conftest.$ac_ext >&5
10245
10246 ac_cv_lib_gssapi_gss_init_sec_context=no
10247 fi
10248 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10249 LIBS=$ac_check_lib_save_LIBS
10250 fi
10251 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
10252 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6
10253 if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
10254
10255           GSSAPI_IMPL="Heimdal"
10256           GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi -lkrb5 -ldes -lasn1 -lroken"
10257           GSSAPI_LIBS="$GSSAPI_LIBS -lcrypt -lcom_err"
10258
10259 fi
10260
10261     fi
10262
10263                             if test "$GSSAPI_IMPL" = "none"
10264     then
10265       echo "$as_me:$LINENO: checking for g_order_init in -lgssapi_krb5" >&5
10266 echo $ECHO_N "checking for g_order_init in -lgssapi_krb5... $ECHO_C" >&6
10267 if test "${ac_cv_lib_gssapi_krb5_g_order_init+set}" = set; then
10268   echo $ECHO_N "(cached) $ECHO_C" >&6
10269 else
10270   ac_check_lib_save_LIBS=$LIBS
10271 LIBS="-lgssapi_krb5 -lkrb5 -lcrypto -lcom_err $LIBS"
10272 cat >conftest.$ac_ext <<_ACEOF
10273 #line $LINENO "configure"
10274 /* confdefs.h.  */
10275 _ACEOF
10276 cat confdefs.h >>conftest.$ac_ext
10277 cat >>conftest.$ac_ext <<_ACEOF
10278 /* end confdefs.h.  */
10279
10280 /* Override any gcc2 internal prototype to avoid an error.  */
10281 #ifdef __cplusplus
10282 extern "C"
10283 #endif
10284 /* We use char because int might match the return type of a gcc2
10285    builtin and then its argument prototype would still apply.  */
10286 char g_order_init ();
10287 int
10288 main ()
10289 {
10290 g_order_init ();
10291   ;
10292   return 0;
10293 }
10294 _ACEOF
10295 rm -f conftest.$ac_objext conftest$ac_exeext
10296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10297   (eval $ac_link) 2>&5
10298   ac_status=$?
10299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300   (exit $ac_status); } &&
10301          { ac_try='test -s conftest$ac_exeext'
10302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10303   (eval $ac_try) 2>&5
10304   ac_status=$?
10305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306   (exit $ac_status); }; }; then
10307   ac_cv_lib_gssapi_krb5_g_order_init=yes
10308 else
10309   echo "$as_me: failed program was:" >&5
10310 sed 's/^/| /' conftest.$ac_ext >&5
10311
10312 ac_cv_lib_gssapi_krb5_g_order_init=no
10313 fi
10314 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10315 LIBS=$ac_check_lib_save_LIBS
10316 fi
10317 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_g_order_init" >&5
10318 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_g_order_init" >&6
10319 if test $ac_cv_lib_gssapi_krb5_g_order_init = yes; then
10320
10321         GSSAPI_IMPL="OldMIT",
10322         GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err"
10323
10324 fi
10325
10326     fi
10327   fi
10328
10329   CPPFLAGS="$saved_CPPFLAGS"
10330   LDFLAGS="$saved_LDFLAGS"
10331   LIBS="$saved_LIBS"
10332
10333     echo "$as_me:$LINENO: checking GSSAPI implementation" >&5
10334 echo $ECHO_N "checking GSSAPI implementation... $ECHO_C" >&6
10335     echo "$as_me:$LINENO: result: $GSSAPI_IMPL" >&5
10336 echo "${ECHO_T}$GSSAPI_IMPL" >&6
10337     if test "$GSSAPI_IMPL" = "none"
10338     then
10339       cat >confcache <<\_ACEOF
10340 # This file is a shell script that caches the results of configure
10341 # tests run on this system so they can be shared between configure
10342 # scripts and configure runs, see configure's option --config-cache.
10343 # It is not useful on other systems.  If it contains results you don't
10344 # want to keep, you may remove or edit it.
10345 #
10346 # config.status only pays attention to the cache file if you give it
10347 # the --recheck option to rerun configure.
10348 #
10349 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10350 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10351 # following values.
10352
10353 _ACEOF
10354
10355 # The following way of writing the cache mishandles newlines in values,
10356 # but we know of no workaround that is simple, portable, and efficient.
10357 # So, don't put newlines in cache variables' values.
10358 # Ultrix sh set writes to stderr and can't be redirected directly,
10359 # and sets the high bit in the cache file unless we assign to the vars.
10360 {
10361   (set) 2>&1 |
10362     case `(ac_space=' '; set | grep ac_space) 2>&1` in
10363     *ac_space=\ *)
10364       # `set' does not quote correctly, so add quotes (double-quote
10365       # substitution turns \\\\ into \\, and sed turns \\ into \).
10366       sed -n \
10367         "s/'/'\\\\''/g;
10368           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10369       ;;
10370     *)
10371       # `set' quotes correctly as required by POSIX, so do not add quotes.
10372       sed -n \
10373         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
10374       ;;
10375     esac;
10376 } |
10377   sed '
10378      t clear
10379      : clear
10380      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10381      t end
10382      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10383      : end' >>confcache
10384 if diff $cache_file confcache >/dev/null 2>&1; then :; else
10385   if test -w $cache_file; then
10386     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
10387     cat confcache >$cache_file
10388   else
10389     echo "not updating unwritable cache $cache_file"
10390   fi
10391 fi
10392 rm -f confcache
10393       echo "$as_me:$LINENO: result: GSSAPI libraries not found" >&5
10394 echo "${ECHO_T}GSSAPI libraries not found" >&6
10395     fi
10396     if test "$GSSAPI_IMPL" = "Heimdal"
10397     then
10398
10399 cat >>confdefs.h <<\_ACEOF
10400 #define HAVE_HEIMDAL 1
10401 _ACEOF
10402
10403     fi
10404     CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
10405     MUTTLIBS="$MUTTLIBS $GSSAPI_LIBS"
10406
10407 cat >>confdefs.h <<\_ACEOF
10408 #define USE_GSS 1
10409 _ACEOF
10410
10411     need_gss="yes"
10412   else
10413     { echo "$as_me:$LINENO: WARNING: GSS was requested but IMAP is not enabled" >&5
10414 echo "$as_me: WARNING: GSS was requested but IMAP is not enabled" >&2;}
10415   fi
10416 fi
10417
10418
10419 if test x$need_gss = xyes; then
10420   USE_GSS_TRUE=
10421   USE_GSS_FALSE='#'
10422 else
10423   USE_GSS_TRUE='#'
10424   USE_GSS_FALSE=
10425 fi
10426
10427
10428
10429
10430 # Check whether --with-ssl or --without-ssl was given.
10431 if test "${with_ssl+set}" = set; then
10432   withval="$with_ssl"
10433          if test "$with_ssl" != "no"
10434         then
10435           if test "$need_socket" != "yes"; then
10436            { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
10437 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
10438    { (exit 1); exit 1; }; }
10439           fi
10440
10441           if test "$with_ssl" != "yes"
10442           then
10443            LDFLAGS="$LDFLAGS -L$withval/lib"
10444            CPPFLAGS="$CPPFLAGS -I$withval/include"
10445           fi
10446           saved_LIBS="$LIBS"
10447
10448
10449 echo "$as_me:$LINENO: checking for X509_new in -lcrypto" >&5
10450 echo $ECHO_N "checking for X509_new in -lcrypto... $ECHO_C" >&6
10451 if test "${ac_cv_lib_crypto_X509_new+set}" = set; then
10452   echo $ECHO_N "(cached) $ECHO_C" >&6
10453 else
10454   ac_check_lib_save_LIBS=$LIBS
10455 LIBS="-lcrypto  $LIBS"
10456 cat >conftest.$ac_ext <<_ACEOF
10457 #line $LINENO "configure"
10458 /* confdefs.h.  */
10459 _ACEOF
10460 cat confdefs.h >>conftest.$ac_ext
10461 cat >>conftest.$ac_ext <<_ACEOF
10462 /* end confdefs.h.  */
10463
10464 /* Override any gcc2 internal prototype to avoid an error.  */
10465 #ifdef __cplusplus
10466 extern "C"
10467 #endif
10468 /* We use char because int might match the return type of a gcc2
10469    builtin and then its argument prototype would still apply.  */
10470 char X509_new ();
10471 int
10472 main ()
10473 {
10474 X509_new ();
10475   ;
10476   return 0;
10477 }
10478 _ACEOF
10479 rm -f conftest.$ac_objext conftest$ac_exeext
10480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10481   (eval $ac_link) 2>&5
10482   ac_status=$?
10483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484   (exit $ac_status); } &&
10485          { ac_try='test -s conftest$ac_exeext'
10486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10487   (eval $ac_try) 2>&5
10488   ac_status=$?
10489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490   (exit $ac_status); }; }; then
10491   ac_cv_lib_crypto_X509_new=yes
10492 else
10493   echo "$as_me: failed program was:" >&5
10494 sed 's/^/| /' conftest.$ac_ext >&5
10495
10496 ac_cv_lib_crypto_X509_new=no
10497 fi
10498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10499 LIBS=$ac_check_lib_save_LIBS
10500 fi
10501 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_X509_new" >&5
10502 echo "${ECHO_T}$ac_cv_lib_crypto_X509_new" >&6
10503 if test $ac_cv_lib_crypto_X509_new = yes; then
10504   cat >>confdefs.h <<_ACEOF
10505 #define HAVE_LIBCRYPTO 1
10506 _ACEOF
10507
10508   LIBS="-lcrypto $LIBS"
10509
10510 else
10511   { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
10512 echo "$as_me: error: Unable to find SSL library" >&2;}
10513    { (exit 1); exit 1; }; }
10514 fi
10515
10516
10517 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
10518 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
10519 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
10520   echo $ECHO_N "(cached) $ECHO_C" >&6
10521 else
10522   ac_check_lib_save_LIBS=$LIBS
10523 LIBS="-lssl -lcrypto $LIBS"
10524 cat >conftest.$ac_ext <<_ACEOF
10525 #line $LINENO "configure"
10526 /* confdefs.h.  */
10527 _ACEOF
10528 cat confdefs.h >>conftest.$ac_ext
10529 cat >>conftest.$ac_ext <<_ACEOF
10530 /* end confdefs.h.  */
10531
10532 /* Override any gcc2 internal prototype to avoid an error.  */
10533 #ifdef __cplusplus
10534 extern "C"
10535 #endif
10536 /* We use char because int might match the return type of a gcc2
10537    builtin and then its argument prototype would still apply.  */
10538 char SSL_new ();
10539 int
10540 main ()
10541 {
10542 SSL_new ();
10543   ;
10544   return 0;
10545 }
10546 _ACEOF
10547 rm -f conftest.$ac_objext conftest$ac_exeext
10548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10549   (eval $ac_link) 2>&5
10550   ac_status=$?
10551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552   (exit $ac_status); } &&
10553          { ac_try='test -s conftest$ac_exeext'
10554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10555   (eval $ac_try) 2>&5
10556   ac_status=$?
10557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558   (exit $ac_status); }; }; then
10559   ac_cv_lib_ssl_SSL_new=yes
10560 else
10561   echo "$as_me: failed program was:" >&5
10562 sed 's/^/| /' conftest.$ac_ext >&5
10563
10564 ac_cv_lib_ssl_SSL_new=no
10565 fi
10566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10567 LIBS=$ac_check_lib_save_LIBS
10568 fi
10569 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
10570 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6
10571 if test $ac_cv_lib_ssl_SSL_new = yes; then
10572   cat >>confdefs.h <<_ACEOF
10573 #define HAVE_LIBSSL 1
10574 _ACEOF
10575
10576   LIBS="-lssl $LIBS"
10577
10578 else
10579   { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
10580 echo "$as_me: error: Unable to find SSL library" >&2;}
10581    { (exit 1); exit 1; }; }
10582 fi
10583
10584
10585
10586
10587 for ac_func in RAND_status RAND_egd
10588 do
10589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10590 echo "$as_me:$LINENO: checking for $ac_func" >&5
10591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10592 if eval "test \"\${$as_ac_var+set}\" = set"; then
10593   echo $ECHO_N "(cached) $ECHO_C" >&6
10594 else
10595   cat >conftest.$ac_ext <<_ACEOF
10596 #line $LINENO "configure"
10597 /* confdefs.h.  */
10598 _ACEOF
10599 cat confdefs.h >>conftest.$ac_ext
10600 cat >>conftest.$ac_ext <<_ACEOF
10601 /* end confdefs.h.  */
10602 /* System header to define __stub macros and hopefully few prototypes,
10603     which can conflict with char $ac_func (); below.
10604     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10605     <limits.h> exists even on freestanding compilers.  */
10606 #ifdef __STDC__
10607 # include <limits.h>
10608 #else
10609 # include <assert.h>
10610 #endif
10611 /* Override any gcc2 internal prototype to avoid an error.  */
10612 #ifdef __cplusplus
10613 extern "C"
10614 {
10615 #endif
10616 /* We use char because int might match the return type of a gcc2
10617    builtin and then its argument prototype would still apply.  */
10618 char $ac_func ();
10619 /* The GNU C library defines this for functions which it implements
10620     to always fail with ENOSYS.  Some functions are actually named
10621     something starting with __ and the normal name is an alias.  */
10622 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10623 choke me
10624 #else
10625 char (*f) () = $ac_func;
10626 #endif
10627 #ifdef __cplusplus
10628 }
10629 #endif
10630
10631 int
10632 main ()
10633 {
10634 return f != $ac_func;
10635   ;
10636   return 0;
10637 }
10638 _ACEOF
10639 rm -f conftest.$ac_objext conftest$ac_exeext
10640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10641   (eval $ac_link) 2>&5
10642   ac_status=$?
10643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644   (exit $ac_status); } &&
10645          { ac_try='test -s conftest$ac_exeext'
10646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10647   (eval $ac_try) 2>&5
10648   ac_status=$?
10649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10650   (exit $ac_status); }; }; then
10651   eval "$as_ac_var=yes"
10652 else
10653   echo "$as_me: failed program was:" >&5
10654 sed 's/^/| /' conftest.$ac_ext >&5
10655
10656 eval "$as_ac_var=no"
10657 fi
10658 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10659 fi
10660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10661 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10662 if test `eval echo '${'$as_ac_var'}'` = yes; then
10663   cat >>confdefs.h <<_ACEOF
10664 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10665 _ACEOF
10666
10667 fi
10668 done
10669
10670
10671
10672 cat >>confdefs.h <<\_ACEOF
10673 #define USE_SSL 1
10674 _ACEOF
10675
10676           LIBS="$saved_LIBS"
10677           MUTTLIBS="$MUTTLIBS -lssl -lcrypto"
10678           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl.o"
10679           need_ssl=yes
10680
10681         fi
10682
10683 fi;
10684
10685
10686 if test x$need_ssl = xyes; then
10687   USE_SSL_TRUE=
10688   USE_SSL_FALSE='#'
10689 else
10690   USE_SSL_TRUE='#'
10691   USE_SSL_FALSE=
10692 fi
10693
10694
10695
10696 # Check whether --with-nss or --without-nss was given.
10697 if test "${with_nss+set}" = set; then
10698   withval="$with_nss"
10699          if test "$with_nss" != no
10700         then
10701           if test "$need_socket" != "yes"; then
10702            { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
10703 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
10704    { (exit 1); exit 1; }; }
10705           fi
10706
10707           if test "$with_nss" != "yes"
10708           then
10709            LDFLAGS="$LDFLAGS -L$withval/lib"
10710            CPPFLAGS="$CPPFLAGS -I$withval/include -I$withval/public/security"
10711           fi
10712
10713
10714 cat >>confdefs.h <<\_ACEOF
10715 #define USE_NSS 1
10716 _ACEOF
10717
10718           MUTTLIBS="$MUTTLIBS -lssl -lnss -lcertdb -lcerthi -lcryptohi"
10719           MUTTLIBS="$MUTTLIBS -lpk11wrap -lsoftoken -lsecutil -ldbm -lplds4 -lplc4 -lfreebl"
10720           MUTTLIBS="$MUTTLIBS -lnspr4"
10721
10722           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_nss.o"
10723           need_ssl=yes
10724         fi
10725
10726 fi;
10727
10728
10729 # Check whether --with-sasl or --without-sasl was given.
10730 if test "${with_sasl+set}" = set; then
10731   withval="$with_sasl"
10732
10733         if test "$need_socket" != "yes"
10734         then
10735           { { echo "$as_me:$LINENO: error: SASL support is only useful with POP or IMAP support" >&5
10736 echo "$as_me: error: SASL support is only useful with POP or IMAP support" >&2;}
10737    { (exit 1); exit 1; }; }
10738         fi
10739
10740         if test "$with_sasl" != "no"
10741         then
10742           if test "$with_sasl" != "yes"
10743           then
10744             CPPFLAGS="$CPPFLAGS -I$with_sasl/include"
10745             LDFLAGS="$LDFLAGS -L$with_sasl/lib"
10746           fi
10747
10748           saved_LIBS="$LIBS"
10749
10750
10751 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
10752 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
10753 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
10754   echo $ECHO_N "(cached) $ECHO_C" >&6
10755 else
10756   ac_check_lib_save_LIBS=$LIBS
10757 LIBS="-lsasl  $LIBS"
10758 cat >conftest.$ac_ext <<_ACEOF
10759 #line $LINENO "configure"
10760 /* confdefs.h.  */
10761 _ACEOF
10762 cat confdefs.h >>conftest.$ac_ext
10763 cat >>conftest.$ac_ext <<_ACEOF
10764 /* end confdefs.h.  */
10765
10766 /* Override any gcc2 internal prototype to avoid an error.  */
10767 #ifdef __cplusplus
10768 extern "C"
10769 #endif
10770 /* We use char because int might match the return type of a gcc2
10771    builtin and then its argument prototype would still apply.  */
10772 char sasl_client_init ();
10773 int
10774 main ()
10775 {
10776 sasl_client_init ();
10777   ;
10778   return 0;
10779 }
10780 _ACEOF
10781 rm -f conftest.$ac_objext conftest$ac_exeext
10782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10783   (eval $ac_link) 2>&5
10784   ac_status=$?
10785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10786   (exit $ac_status); } &&
10787          { ac_try='test -s conftest$ac_exeext'
10788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10789   (eval $ac_try) 2>&5
10790   ac_status=$?
10791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792   (exit $ac_status); }; }; then
10793   ac_cv_lib_sasl_sasl_client_init=yes
10794 else
10795   echo "$as_me: failed program was:" >&5
10796 sed 's/^/| /' conftest.$ac_ext >&5
10797
10798 ac_cv_lib_sasl_sasl_client_init=no
10799 fi
10800 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10801 LIBS=$ac_check_lib_save_LIBS
10802 fi
10803 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
10804 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
10805 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
10806   cat >>confdefs.h <<_ACEOF
10807 #define HAVE_LIBSASL 1
10808 _ACEOF
10809
10810   LIBS="-lsasl $LIBS"
10811
10812 else
10813   { { echo "$as_me:$LINENO: error: could not find libsasl" >&5
10814 echo "$as_me: error: could not find libsasl" >&2;}
10815    { (exit 1); exit 1; }; }
10816 fi
10817
10818
10819           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
10820           MUTTLIBS="$MUTTLIBS -lsasl"
10821           LIBS="$saved_LIBS"
10822
10823 cat >>confdefs.h <<\_ACEOF
10824 #define USE_SASL 1
10825 _ACEOF
10826
10827           need_sasl=yes
10828         fi
10829
10830 fi;
10831
10832
10833 if test x$need_sasl = xyes; then
10834   USE_SASL_TRUE=
10835   USE_SASL_FALSE='#'
10836 else
10837   USE_SASL_TRUE='#'
10838   USE_SASL_FALSE=
10839 fi
10840
10841
10842
10843 # Check whether --with-sasl2 or --without-sasl2 was given.
10844 if test "${with_sasl2+set}" = set; then
10845   withval="$with_sasl2"
10846
10847         if test "$need_socket" != "yes"
10848         then
10849           { { echo "$as_me:$LINENO: error: SASL support is only useful with POP or IMAP support" >&5
10850 echo "$as_me: error: SASL support is only useful with POP or IMAP support" >&2;}
10851    { (exit 1); exit 1; }; }
10852         fi
10853
10854         if test "$with_sasl2" != "no"
10855         then
10856           if test "$with_sasl2" != "yes"
10857           then
10858             CPPFLAGS="$CPPFLAGS -I$with_sasl2/include"
10859             LDFLAGS="$LDFLAGS -L$with_sasl2/lib"
10860           fi
10861
10862           saved_LIBS="$LIBS"
10863
10864
10865 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
10866 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
10867 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
10868   echo $ECHO_N "(cached) $ECHO_C" >&6
10869 else
10870   ac_check_lib_save_LIBS=$LIBS
10871 LIBS="-lsasl2  $LIBS"
10872 cat >conftest.$ac_ext <<_ACEOF
10873 #line $LINENO "configure"
10874 /* confdefs.h.  */
10875 _ACEOF
10876 cat confdefs.h >>conftest.$ac_ext
10877 cat >>conftest.$ac_ext <<_ACEOF
10878 /* end confdefs.h.  */
10879
10880 /* Override any gcc2 internal prototype to avoid an error.  */
10881 #ifdef __cplusplus
10882 extern "C"
10883 #endif
10884 /* We use char because int might match the return type of a gcc2
10885    builtin and then its argument prototype would still apply.  */
10886 char sasl_client_init ();
10887 int
10888 main ()
10889 {
10890 sasl_client_init ();
10891   ;
10892   return 0;
10893 }
10894 _ACEOF
10895 rm -f conftest.$ac_objext conftest$ac_exeext
10896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10897   (eval $ac_link) 2>&5
10898   ac_status=$?
10899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10900   (exit $ac_status); } &&
10901          { ac_try='test -s conftest$ac_exeext'
10902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10903   (eval $ac_try) 2>&5
10904   ac_status=$?
10905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10906   (exit $ac_status); }; }; then
10907   ac_cv_lib_sasl2_sasl_client_init=yes
10908 else
10909   echo "$as_me: failed program was:" >&5
10910 sed 's/^/| /' conftest.$ac_ext >&5
10911
10912 ac_cv_lib_sasl2_sasl_client_init=no
10913 fi
10914 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10915 LIBS=$ac_check_lib_save_LIBS
10916 fi
10917 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
10918 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
10919 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
10920   cat >>confdefs.h <<_ACEOF
10921 #define HAVE_LIBSASL2 1
10922 _ACEOF
10923
10924   LIBS="-lsasl2 $LIBS"
10925
10926 else
10927   { { echo "$as_me:$LINENO: error: could not find libsasl" >&5
10928 echo "$as_me: error: could not find libsasl" >&2;}
10929    { (exit 1); exit 1; }; }
10930 fi
10931
10932
10933           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
10934           MUTTLIBS="$MUTTLIBS -lsasl2"
10935           LIBS="$saved_LIBS"
10936
10937 cat >>confdefs.h <<\_ACEOF
10938 #define USE_SASL 1
10939 _ACEOF
10940
10941
10942 cat >>confdefs.h <<\_ACEOF
10943 #define USE_SASL2 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-idn or --without-idn was given.
10963 if test "${with_idn+set}" = set; then
10964   withval="$with_idn"
10965
10966                   if test "$with_idn" != "no" ; then
10967                         if test "$with_idn" != "yes" ; then
10968                            CPPFLAGS="$CPPFLAGS -I$with_idn/include"
10969                            LDFLAGS="$LDFLAGS -L$with_idn/lib"
10970                         fi
10971                   fi
10972
10973
10974 fi;
10975
10976 if test "x$with_idn" != "xno"; then
10977
10978 echo "$as_me:$LINENO: checking for stringprep_check_version in -lidn" >&5
10979 echo $ECHO_N "checking for stringprep_check_version in -lidn... $ECHO_C" >&6
10980 if test "${ac_cv_lib_idn_stringprep_check_version+set}" = set; then
10981   echo $ECHO_N "(cached) $ECHO_C" >&6
10982 else
10983   ac_check_lib_save_LIBS=$LIBS
10984 LIBS="-lidn  $LIBS"
10985 cat >conftest.$ac_ext <<_ACEOF
10986 #line $LINENO "configure"
10987 /* confdefs.h.  */
10988 _ACEOF
10989 cat confdefs.h >>conftest.$ac_ext
10990 cat >>conftest.$ac_ext <<_ACEOF
10991 /* end confdefs.h.  */
10992
10993 /* Override any gcc2 internal prototype to avoid an error.  */
10994 #ifdef __cplusplus
10995 extern "C"
10996 #endif
10997 /* We use char because int might match the return type of a gcc2
10998    builtin and then its argument prototype would still apply.  */
10999 char stringprep_check_version ();
11000 int
11001 main ()
11002 {
11003 stringprep_check_version ();
11004   ;
11005   return 0;
11006 }
11007 _ACEOF
11008 rm -f conftest.$ac_objext conftest$ac_exeext
11009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11010   (eval $ac_link) 2>&5
11011   ac_status=$?
11012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013   (exit $ac_status); } &&
11014          { ac_try='test -s conftest$ac_exeext'
11015   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11016   (eval $ac_try) 2>&5
11017   ac_status=$?
11018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019   (exit $ac_status); }; }; then
11020   ac_cv_lib_idn_stringprep_check_version=yes
11021 else
11022   echo "$as_me: failed program was:" >&5
11023 sed 's/^/| /' conftest.$ac_ext >&5
11024
11025 ac_cv_lib_idn_stringprep_check_version=no
11026 fi
11027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11028 LIBS=$ac_check_lib_save_LIBS
11029 fi
11030 echo "$as_me:$LINENO: result: $ac_cv_lib_idn_stringprep_check_version" >&5
11031 echo "${ECHO_T}$ac_cv_lib_idn_stringprep_check_version" >&6
11032 if test $ac_cv_lib_idn_stringprep_check_version = yes; then
11033   cat >>confdefs.h <<_ACEOF
11034 #define HAVE_LIBIDN 1
11035 _ACEOF
11036
11037   LIBS="-lidn $LIBS"
11038
11039 fi
11040
11041
11042
11043 for ac_func in idna_to_unicode_utf8_from_utf8 idna_to_unicode_8z8z
11044 do
11045 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11046 echo "$as_me:$LINENO: checking for $ac_func" >&5
11047 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11048 if eval "test \"\${$as_ac_var+set}\" = set"; then
11049   echo $ECHO_N "(cached) $ECHO_C" >&6
11050 else
11051   cat >conftest.$ac_ext <<_ACEOF
11052 #line $LINENO "configure"
11053 /* confdefs.h.  */
11054 _ACEOF
11055 cat confdefs.h >>conftest.$ac_ext
11056 cat >>conftest.$ac_ext <<_ACEOF
11057 /* end confdefs.h.  */
11058 /* System header to define __stub macros and hopefully few prototypes,
11059     which can conflict with char $ac_func (); below.
11060     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11061     <limits.h> exists even on freestanding compilers.  */
11062 #ifdef __STDC__
11063 # include <limits.h>
11064 #else
11065 # include <assert.h>
11066 #endif
11067 /* Override any gcc2 internal prototype to avoid an error.  */
11068 #ifdef __cplusplus
11069 extern "C"
11070 {
11071 #endif
11072 /* We use char because int might match the return type of a gcc2
11073    builtin and then its argument prototype would still apply.  */
11074 char $ac_func ();
11075 /* The GNU C library defines this for functions which it implements
11076     to always fail with ENOSYS.  Some functions are actually named
11077     something starting with __ and the normal name is an alias.  */
11078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11079 choke me
11080 #else
11081 char (*f) () = $ac_func;
11082 #endif
11083 #ifdef __cplusplus
11084 }
11085 #endif
11086
11087 int
11088 main ()
11089 {
11090 return f != $ac_func;
11091   ;
11092   return 0;
11093 }
11094 _ACEOF
11095 rm -f conftest.$ac_objext conftest$ac_exeext
11096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11097   (eval $ac_link) 2>&5
11098   ac_status=$?
11099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100   (exit $ac_status); } &&
11101          { ac_try='test -s conftest$ac_exeext'
11102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11103   (eval $ac_try) 2>&5
11104   ac_status=$?
11105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106   (exit $ac_status); }; }; then
11107   eval "$as_ac_var=yes"
11108 else
11109   echo "$as_me: failed program was:" >&5
11110 sed 's/^/| /' conftest.$ac_ext >&5
11111
11112 eval "$as_ac_var=no"
11113 fi
11114 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11115 fi
11116 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11117 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11118 if test `eval echo '${'$as_ac_var'}'` = yes; then
11119   cat >>confdefs.h <<_ACEOF
11120 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11121 _ACEOF
11122
11123 fi
11124 done
11125
11126
11127
11128 for ac_func in idna_to_ascii_from_utf8 idna_to_ascii_8z
11129 do
11130 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11131 echo "$as_me:$LINENO: checking for $ac_func" >&5
11132 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11133 if eval "test \"\${$as_ac_var+set}\" = set"; then
11134   echo $ECHO_N "(cached) $ECHO_C" >&6
11135 else
11136   cat >conftest.$ac_ext <<_ACEOF
11137 #line $LINENO "configure"
11138 /* confdefs.h.  */
11139 _ACEOF
11140 cat confdefs.h >>conftest.$ac_ext
11141 cat >>conftest.$ac_ext <<_ACEOF
11142 /* end confdefs.h.  */
11143 /* System header to define __stub macros and hopefully few prototypes,
11144     which can conflict with char $ac_func (); below.
11145     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11146     <limits.h> exists even on freestanding compilers.  */
11147 #ifdef __STDC__
11148 # include <limits.h>
11149 #else
11150 # include <assert.h>
11151 #endif
11152 /* Override any gcc2 internal prototype to avoid an error.  */
11153 #ifdef __cplusplus
11154 extern "C"
11155 {
11156 #endif
11157 /* We use char because int might match the return type of a gcc2
11158    builtin and then its argument prototype would still apply.  */
11159 char $ac_func ();
11160 /* The GNU C library defines this for functions which it implements
11161     to always fail with ENOSYS.  Some functions are actually named
11162     something starting with __ and the normal name is an alias.  */
11163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11164 choke me
11165 #else
11166 char (*f) () = $ac_func;
11167 #endif
11168 #ifdef __cplusplus
11169 }
11170 #endif
11171
11172 int
11173 main ()
11174 {
11175 return f != $ac_func;
11176   ;
11177   return 0;
11178 }
11179 _ACEOF
11180 rm -f conftest.$ac_objext conftest$ac_exeext
11181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11182   (eval $ac_link) 2>&5
11183   ac_status=$?
11184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185   (exit $ac_status); } &&
11186          { ac_try='test -s conftest$ac_exeext'
11187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11188   (eval $ac_try) 2>&5
11189   ac_status=$?
11190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191   (exit $ac_status); }; }; then
11192   eval "$as_ac_var=yes"
11193 else
11194   echo "$as_me: failed program was:" >&5
11195 sed 's/^/| /' conftest.$ac_ext >&5
11196
11197 eval "$as_ac_var=no"
11198 fi
11199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11200 fi
11201 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11202 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11203 if test `eval echo '${'$as_ac_var'}'` = yes; then
11204   cat >>confdefs.h <<_ACEOF
11205 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11206 _ACEOF
11207
11208 fi
11209 done
11210
11211
11212
11213 for ac_func in idna_to_ascii_lz idna_to_ascii_from_locale
11214 do
11215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11216 echo "$as_me:$LINENO: checking for $ac_func" >&5
11217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11218 if eval "test \"\${$as_ac_var+set}\" = set"; then
11219   echo $ECHO_N "(cached) $ECHO_C" >&6
11220 else
11221   cat >conftest.$ac_ext <<_ACEOF
11222 #line $LINENO "configure"
11223 /* confdefs.h.  */
11224 _ACEOF
11225 cat confdefs.h >>conftest.$ac_ext
11226 cat >>conftest.$ac_ext <<_ACEOF
11227 /* end confdefs.h.  */
11228 /* System header to define __stub macros and hopefully few prototypes,
11229     which can conflict with char $ac_func (); below.
11230     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11231     <limits.h> exists even on freestanding compilers.  */
11232 #ifdef __STDC__
11233 # include <limits.h>
11234 #else
11235 # include <assert.h>
11236 #endif
11237 /* Override any gcc2 internal prototype to avoid an error.  */
11238 #ifdef __cplusplus
11239 extern "C"
11240 {
11241 #endif
11242 /* We use char because int might match the return type of a gcc2
11243    builtin and then its argument prototype would still apply.  */
11244 char $ac_func ();
11245 /* The GNU C library defines this for functions which it implements
11246     to always fail with ENOSYS.  Some functions are actually named
11247     something starting with __ and the normal name is an alias.  */
11248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11249 choke me
11250 #else
11251 char (*f) () = $ac_func;
11252 #endif
11253 #ifdef __cplusplus
11254 }
11255 #endif
11256
11257 int
11258 main ()
11259 {
11260 return f != $ac_func;
11261   ;
11262   return 0;
11263 }
11264 _ACEOF
11265 rm -f conftest.$ac_objext conftest$ac_exeext
11266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11267   (eval $ac_link) 2>&5
11268   ac_status=$?
11269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270   (exit $ac_status); } &&
11271          { ac_try='test -s conftest$ac_exeext'
11272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11273   (eval $ac_try) 2>&5
11274   ac_status=$?
11275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276   (exit $ac_status); }; }; then
11277   eval "$as_ac_var=yes"
11278 else
11279   echo "$as_me: failed program was:" >&5
11280 sed 's/^/| /' conftest.$ac_ext >&5
11281
11282 eval "$as_ac_var=no"
11283 fi
11284 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11285 fi
11286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11287 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11288 if test `eval echo '${'$as_ac_var'}'` = yes; then
11289   cat >>confdefs.h <<_ACEOF
11290 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11291 _ACEOF
11292
11293 fi
11294 done
11295
11296 fi
11297
11298 if test "$need_md5" = "yes"
11299 then
11300         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS md5c.o"
11301 fi
11302
11303
11304 # Check whether --enable-debug or --disable-debug was given.
11305 if test "${enable_debug+set}" = set; then
11306   enableval="$enable_debug"
11307    if test x$enableval = xyes ; then
11308
11309 cat >>confdefs.h <<\_ACEOF
11310 #define DEBUG 1
11311 _ACEOF
11312
11313           fi
11314
11315 fi;
11316
11317 # Check whether --enable-flock or --disable-flock was given.
11318 if test "${enable_flock+set}" = set; then
11319   enableval="$enable_flock"
11320   if test $enableval = yes; then
11321
11322 cat >>confdefs.h <<\_ACEOF
11323 #define USE_FLOCK 1
11324 _ACEOF
11325
11326         fi
11327 fi;
11328
11329 mutt_cv_fcntl=yes
11330 # Check whether --enable-fcntl or --disable-fcntl was given.
11331 if test "${enable_fcntl+set}" = set; then
11332   enableval="$enable_fcntl"
11333   if test $enableval = no; then mutt_cv_fcntl=no; fi
11334 fi;
11335
11336 if test $mutt_cv_fcntl = yes; then
11337
11338 cat >>confdefs.h <<\_ACEOF
11339 #define USE_FCNTL 1
11340 _ACEOF
11341
11342 fi
11343
11344 mutt_cv_warnings=yes
11345 # Check whether --enable-warnings or --disable-warnings was given.
11346 if test "${enable_warnings+set}" = set; then
11347   enableval="$enable_warnings"
11348   if test $enableval = no; then
11349         mutt_cv_warnings=no
11350 fi
11351 fi;
11352
11353 if test x$GCC = xyes -a $mutt_cv_warnings = yes; then
11354         CFLAGS="-Wall -pedantic $CFLAGS"
11355 fi
11356
11357 # Check whether --enable-nfs-fix or --disable-nfs-fix was given.
11358 if test "${enable_nfs_fix+set}" = set; then
11359   enableval="$enable_nfs_fix"
11360   if test x$enableval = xyes; then
11361
11362 cat >>confdefs.h <<\_ACEOF
11363 #define NFS_ATTRIBUTE_HACK 1
11364 _ACEOF
11365
11366         fi
11367 fi;
11368
11369 # Check whether --enable-buffy-size or --disable-buffy-size was given.
11370 if test "${enable_buffy_size+set}" = set; then
11371   enableval="$enable_buffy_size"
11372   if test x$enableval = xyes; then
11373
11374 cat >>confdefs.h <<\_ACEOF
11375 #define BUFFY_SIZE 1
11376 _ACEOF
11377
11378         fi
11379 fi;
11380
11381 # Check whether --enable-mailtool or --disable-mailtool was given.
11382 if test "${enable_mailtool+set}" = set; then
11383   enableval="$enable_mailtool"
11384   if test x$enableval = xyes; then
11385
11386 cat >>confdefs.h <<\_ACEOF
11387 #define SUN_ATTACHMENT 1
11388 _ACEOF
11389
11390         fi
11391 fi;
11392
11393 # Check whether --enable-locales-fix or --disable-locales-fix was given.
11394 if test "${enable_locales_fix+set}" = set; then
11395   enableval="$enable_locales_fix"
11396   if test x$enableval = xyes; then
11397
11398 cat >>confdefs.h <<\_ACEOF
11399 #define LOCALES_HACK 1
11400 _ACEOF
11401
11402         fi
11403 fi;
11404
11405
11406 # Check whether --with-exec-shell or --without-exec-shell was given.
11407 if test "${with_exec_shell+set}" = set; then
11408   withval="$with_exec_shell"
11409   if test $withval != yes; then
11410
11411 cat >>confdefs.h <<_ACEOF
11412 #define EXECSHELL "$withval"
11413 _ACEOF
11414
11415          else
11416                 cat >>confdefs.h <<_ACEOF
11417 #define EXECSHELL "/bin/sh"
11418 _ACEOF
11419
11420         fi
11421 else
11422   cat >>confdefs.h <<_ACEOF
11423 #define EXECSHELL "/bin/sh"
11424 _ACEOF
11425
11426 fi;
11427
11428 # Check whether --enable-exact-address or --disable-exact-address was given.
11429 if test "${enable_exact_address+set}" = set; then
11430   enableval="$enable_exact_address"
11431   if test $enableval = yes; then
11432
11433 cat >>confdefs.h <<\_ACEOF
11434 #define EXACT_ADDRESS 1
11435 _ACEOF
11436
11437
11438         fi
11439 fi;
11440
11441
11442
11443
11444
11445
11446
11447 # Check whether --enable-iconv or --disable-iconv was given.
11448 if test "${enable_iconv+set}" = set; then
11449   enableval="$enable_iconv"
11450   if test x$enableval = xno ; then
11451                 am_cv_func_iconv=no
11452         fi
11453
11454 fi;
11455
11456 echo "$as_me:$LINENO: checking for off_t" >&5
11457 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11458 if test "${ac_cv_type_off_t+set}" = set; then
11459   echo $ECHO_N "(cached) $ECHO_C" >&6
11460 else
11461   cat >conftest.$ac_ext <<_ACEOF
11462 #line $LINENO "configure"
11463 /* confdefs.h.  */
11464 _ACEOF
11465 cat confdefs.h >>conftest.$ac_ext
11466 cat >>conftest.$ac_ext <<_ACEOF
11467 /* end confdefs.h.  */
11468 $ac_includes_default
11469 int
11470 main ()
11471 {
11472 if ((off_t *) 0)
11473   return 0;
11474 if (sizeof (off_t))
11475   return 0;
11476   ;
11477   return 0;
11478 }
11479 _ACEOF
11480 rm -f conftest.$ac_objext
11481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11482   (eval $ac_compile) 2>&5
11483   ac_status=$?
11484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485   (exit $ac_status); } &&
11486          { ac_try='test -s conftest.$ac_objext'
11487   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11488   (eval $ac_try) 2>&5
11489   ac_status=$?
11490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11491   (exit $ac_status); }; }; then
11492   ac_cv_type_off_t=yes
11493 else
11494   echo "$as_me: failed program was:" >&5
11495 sed 's/^/| /' conftest.$ac_ext >&5
11496
11497 ac_cv_type_off_t=no
11498 fi
11499 rm -f conftest.$ac_objext conftest.$ac_ext
11500 fi
11501 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11502 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11503 if test $ac_cv_type_off_t = yes; then
11504   :
11505 else
11506
11507 cat >>confdefs.h <<_ACEOF
11508 #define off_t long
11509 _ACEOF
11510
11511 fi
11512
11513 echo "$as_me:$LINENO: checking for size_t" >&5
11514 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11515 if test "${ac_cv_type_size_t+set}" = set; then
11516   echo $ECHO_N "(cached) $ECHO_C" >&6
11517 else
11518   cat >conftest.$ac_ext <<_ACEOF
11519 #line $LINENO "configure"
11520 /* confdefs.h.  */
11521 _ACEOF
11522 cat confdefs.h >>conftest.$ac_ext
11523 cat >>conftest.$ac_ext <<_ACEOF
11524 /* end confdefs.h.  */
11525 $ac_includes_default
11526 int
11527 main ()
11528 {
11529 if ((size_t *) 0)
11530   return 0;
11531 if (sizeof (size_t))
11532   return 0;
11533   ;
11534   return 0;
11535 }
11536 _ACEOF
11537 rm -f conftest.$ac_objext
11538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11539   (eval $ac_compile) 2>&5
11540   ac_status=$?
11541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11542   (exit $ac_status); } &&
11543          { ac_try='test -s conftest.$ac_objext'
11544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11545   (eval $ac_try) 2>&5
11546   ac_status=$?
11547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548   (exit $ac_status); }; }; then
11549   ac_cv_type_size_t=yes
11550 else
11551   echo "$as_me: failed program was:" >&5
11552 sed 's/^/| /' conftest.$ac_ext >&5
11553
11554 ac_cv_type_size_t=no
11555 fi
11556 rm -f conftest.$ac_objext conftest.$ac_ext
11557 fi
11558 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11559 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11560 if test $ac_cv_type_size_t = yes; then
11561   :
11562 else
11563
11564 cat >>confdefs.h <<_ACEOF
11565 #define size_t unsigned
11566 _ACEOF
11567
11568 fi
11569
11570 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
11571 # for constant arguments.  Useless!
11572 echo "$as_me:$LINENO: checking for working alloca.h" >&5
11573 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
11574 if test "${ac_cv_working_alloca_h+set}" = set; then
11575   echo $ECHO_N "(cached) $ECHO_C" >&6
11576 else
11577   cat >conftest.$ac_ext <<_ACEOF
11578 #line $LINENO "configure"
11579 /* confdefs.h.  */
11580 _ACEOF
11581 cat confdefs.h >>conftest.$ac_ext
11582 cat >>conftest.$ac_ext <<_ACEOF
11583 /* end confdefs.h.  */
11584 #include <alloca.h>
11585 int
11586 main ()
11587 {
11588 char *p = (char *) alloca (2 * sizeof (int));
11589   ;
11590   return 0;
11591 }
11592 _ACEOF
11593 rm -f conftest.$ac_objext conftest$ac_exeext
11594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11595   (eval $ac_link) 2>&5
11596   ac_status=$?
11597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11598   (exit $ac_status); } &&
11599          { ac_try='test -s conftest$ac_exeext'
11600   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11601   (eval $ac_try) 2>&5
11602   ac_status=$?
11603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11604   (exit $ac_status); }; }; then
11605   ac_cv_working_alloca_h=yes
11606 else
11607   echo "$as_me: failed program was:" >&5
11608 sed 's/^/| /' conftest.$ac_ext >&5
11609
11610 ac_cv_working_alloca_h=no
11611 fi
11612 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11613 fi
11614 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
11615 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
11616 if test $ac_cv_working_alloca_h = yes; then
11617
11618 cat >>confdefs.h <<\_ACEOF
11619 #define HAVE_ALLOCA_H 1
11620 _ACEOF
11621
11622 fi
11623
11624 echo "$as_me:$LINENO: checking for alloca" >&5
11625 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
11626 if test "${ac_cv_func_alloca_works+set}" = set; then
11627   echo $ECHO_N "(cached) $ECHO_C" >&6
11628 else
11629   cat >conftest.$ac_ext <<_ACEOF
11630 #line $LINENO "configure"
11631 /* confdefs.h.  */
11632 _ACEOF
11633 cat confdefs.h >>conftest.$ac_ext
11634 cat >>conftest.$ac_ext <<_ACEOF
11635 /* end confdefs.h.  */
11636 #ifdef __GNUC__
11637 # define alloca __builtin_alloca
11638 #else
11639 # ifdef _MSC_VER
11640 #  include <malloc.h>
11641 #  define alloca _alloca
11642 # else
11643 #  if HAVE_ALLOCA_H
11644 #   include <alloca.h>
11645 #  else
11646 #   ifdef _AIX
11647  #pragma alloca
11648 #   else
11649 #    ifndef alloca /* predefined by HP cc +Olibcalls */
11650 char *alloca ();
11651 #    endif
11652 #   endif
11653 #  endif
11654 # endif
11655 #endif
11656
11657 int
11658 main ()
11659 {
11660 char *p = (char *) alloca (1);
11661   ;
11662   return 0;
11663 }
11664 _ACEOF
11665 rm -f conftest.$ac_objext conftest$ac_exeext
11666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11667   (eval $ac_link) 2>&5
11668   ac_status=$?
11669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670   (exit $ac_status); } &&
11671          { ac_try='test -s conftest$ac_exeext'
11672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11673   (eval $ac_try) 2>&5
11674   ac_status=$?
11675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676   (exit $ac_status); }; }; then
11677   ac_cv_func_alloca_works=yes
11678 else
11679   echo "$as_me: failed program was:" >&5
11680 sed 's/^/| /' conftest.$ac_ext >&5
11681
11682 ac_cv_func_alloca_works=no
11683 fi
11684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11685 fi
11686 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
11687 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
11688
11689 if test $ac_cv_func_alloca_works = yes; then
11690
11691 cat >>confdefs.h <<\_ACEOF
11692 #define HAVE_ALLOCA 1
11693 _ACEOF
11694
11695 else
11696   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
11697 # that cause trouble.  Some versions do not even contain alloca or
11698 # contain a buggy version.  If you still want to use their alloca,
11699 # use ar to extract alloca.o from them instead of compiling alloca.c.
11700
11701 ALLOCA=alloca.$ac_objext
11702
11703 cat >>confdefs.h <<\_ACEOF
11704 #define C_ALLOCA 1
11705 _ACEOF
11706
11707
11708 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
11709 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
11710 if test "${ac_cv_os_cray+set}" = set; then
11711   echo $ECHO_N "(cached) $ECHO_C" >&6
11712 else
11713   cat >conftest.$ac_ext <<_ACEOF
11714 #line $LINENO "configure"
11715 /* confdefs.h.  */
11716 _ACEOF
11717 cat confdefs.h >>conftest.$ac_ext
11718 cat >>conftest.$ac_ext <<_ACEOF
11719 /* end confdefs.h.  */
11720 #if defined(CRAY) && ! defined(CRAY2)
11721 webecray
11722 #else
11723 wenotbecray
11724 #endif
11725
11726 _ACEOF
11727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11728   $EGREP "webecray" >/dev/null 2>&1; then
11729   ac_cv_os_cray=yes
11730 else
11731   ac_cv_os_cray=no
11732 fi
11733 rm -f conftest*
11734
11735 fi
11736 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
11737 echo "${ECHO_T}$ac_cv_os_cray" >&6
11738 if test $ac_cv_os_cray = yes; then
11739   for ac_func in _getb67 GETB67 getb67; do
11740     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11741 echo "$as_me:$LINENO: checking for $ac_func" >&5
11742 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11743 if eval "test \"\${$as_ac_var+set}\" = set"; then
11744   echo $ECHO_N "(cached) $ECHO_C" >&6
11745 else
11746   cat >conftest.$ac_ext <<_ACEOF
11747 #line $LINENO "configure"
11748 /* confdefs.h.  */
11749 _ACEOF
11750 cat confdefs.h >>conftest.$ac_ext
11751 cat >>conftest.$ac_ext <<_ACEOF
11752 /* end confdefs.h.  */
11753 /* System header to define __stub macros and hopefully few prototypes,
11754     which can conflict with char $ac_func (); below.
11755     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11756     <limits.h> exists even on freestanding compilers.  */
11757 #ifdef __STDC__
11758 # include <limits.h>
11759 #else
11760 # include <assert.h>
11761 #endif
11762 /* Override any gcc2 internal prototype to avoid an error.  */
11763 #ifdef __cplusplus
11764 extern "C"
11765 {
11766 #endif
11767 /* We use char because int might match the return type of a gcc2
11768    builtin and then its argument prototype would still apply.  */
11769 char $ac_func ();
11770 /* The GNU C library defines this for functions which it implements
11771     to always fail with ENOSYS.  Some functions are actually named
11772     something starting with __ and the normal name is an alias.  */
11773 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11774 choke me
11775 #else
11776 char (*f) () = $ac_func;
11777 #endif
11778 #ifdef __cplusplus
11779 }
11780 #endif
11781
11782 int
11783 main ()
11784 {
11785 return f != $ac_func;
11786   ;
11787   return 0;
11788 }
11789 _ACEOF
11790 rm -f conftest.$ac_objext conftest$ac_exeext
11791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11792   (eval $ac_link) 2>&5
11793   ac_status=$?
11794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795   (exit $ac_status); } &&
11796          { ac_try='test -s conftest$ac_exeext'
11797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11798   (eval $ac_try) 2>&5
11799   ac_status=$?
11800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801   (exit $ac_status); }; }; then
11802   eval "$as_ac_var=yes"
11803 else
11804   echo "$as_me: failed program was:" >&5
11805 sed 's/^/| /' conftest.$ac_ext >&5
11806
11807 eval "$as_ac_var=no"
11808 fi
11809 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11810 fi
11811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11812 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11813 if test `eval echo '${'$as_ac_var'}'` = yes; then
11814
11815 cat >>confdefs.h <<_ACEOF
11816 #define CRAY_STACKSEG_END $ac_func
11817 _ACEOF
11818
11819     break
11820 fi
11821
11822   done
11823 fi
11824
11825 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
11826 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
11827 if test "${ac_cv_c_stack_direction+set}" = set; then
11828   echo $ECHO_N "(cached) $ECHO_C" >&6
11829 else
11830   if test "$cross_compiling" = yes; then
11831   ac_cv_c_stack_direction=0
11832 else
11833   cat >conftest.$ac_ext <<_ACEOF
11834 #line $LINENO "configure"
11835 /* confdefs.h.  */
11836 _ACEOF
11837 cat confdefs.h >>conftest.$ac_ext
11838 cat >>conftest.$ac_ext <<_ACEOF
11839 /* end confdefs.h.  */
11840 int
11841 find_stack_direction ()
11842 {
11843   static char *addr = 0;
11844   auto char dummy;
11845   if (addr == 0)
11846     {
11847       addr = &dummy;
11848       return find_stack_direction ();
11849     }
11850   else
11851     return (&dummy > addr) ? 1 : -1;
11852 }
11853
11854 int
11855 main ()
11856 {
11857   exit (find_stack_direction () < 0);
11858 }
11859 _ACEOF
11860 rm -f conftest$ac_exeext
11861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11862   (eval $ac_link) 2>&5
11863   ac_status=$?
11864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11867   (eval $ac_try) 2>&5
11868   ac_status=$?
11869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870   (exit $ac_status); }; }; then
11871   ac_cv_c_stack_direction=1
11872 else
11873   echo "$as_me: program exited with status $ac_status" >&5
11874 echo "$as_me: failed program was:" >&5
11875 sed 's/^/| /' conftest.$ac_ext >&5
11876
11877 ( exit $ac_status )
11878 ac_cv_c_stack_direction=-1
11879 fi
11880 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11881 fi
11882 fi
11883 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
11884 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
11885
11886 cat >>confdefs.h <<_ACEOF
11887 #define STACK_DIRECTION $ac_cv_c_stack_direction
11888 _ACEOF
11889
11890
11891 fi
11892
11893
11894
11895 for ac_header in stdlib.h unistd.h
11896 do
11897 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11899   echo "$as_me:$LINENO: checking for $ac_header" >&5
11900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11902   echo $ECHO_N "(cached) $ECHO_C" >&6
11903 fi
11904 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11905 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11906 else
11907   # Is the header compilable?
11908 echo "$as_me:$LINENO: checking $ac_header usability" >&5
11909 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11910 cat >conftest.$ac_ext <<_ACEOF
11911 #line $LINENO "configure"
11912 /* confdefs.h.  */
11913 _ACEOF
11914 cat confdefs.h >>conftest.$ac_ext
11915 cat >>conftest.$ac_ext <<_ACEOF
11916 /* end confdefs.h.  */
11917 $ac_includes_default
11918 #include <$ac_header>
11919 _ACEOF
11920 rm -f conftest.$ac_objext
11921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11922   (eval $ac_compile) 2>&5
11923   ac_status=$?
11924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925   (exit $ac_status); } &&
11926          { ac_try='test -s conftest.$ac_objext'
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   ac_header_compiler=yes
11933 else
11934   echo "$as_me: failed program was:" >&5
11935 sed 's/^/| /' conftest.$ac_ext >&5
11936
11937 ac_header_compiler=no
11938 fi
11939 rm -f conftest.$ac_objext conftest.$ac_ext
11940 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11941 echo "${ECHO_T}$ac_header_compiler" >&6
11942
11943 # Is the header present?
11944 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11945 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11946 cat >conftest.$ac_ext <<_ACEOF
11947 #line $LINENO "configure"
11948 /* confdefs.h.  */
11949 _ACEOF
11950 cat confdefs.h >>conftest.$ac_ext
11951 cat >>conftest.$ac_ext <<_ACEOF
11952 /* end confdefs.h.  */
11953 #include <$ac_header>
11954 _ACEOF
11955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11956   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11957   ac_status=$?
11958   grep -v '^ *+' conftest.er1 >conftest.err
11959   rm -f conftest.er1
11960   cat conftest.err >&5
11961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962   (exit $ac_status); } >/dev/null; then
11963   if test -s conftest.err; then
11964     ac_cpp_err=$ac_c_preproc_warn_flag
11965   else
11966     ac_cpp_err=
11967   fi
11968 else
11969   ac_cpp_err=yes
11970 fi
11971 if test -z "$ac_cpp_err"; then
11972   ac_header_preproc=yes
11973 else
11974   echo "$as_me: failed program was:" >&5
11975 sed 's/^/| /' conftest.$ac_ext >&5
11976
11977   ac_header_preproc=no
11978 fi
11979 rm -f conftest.err conftest.$ac_ext
11980 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11981 echo "${ECHO_T}$ac_header_preproc" >&6
11982
11983 # So?  What about this header?
11984 case $ac_header_compiler:$ac_header_preproc in
11985   yes:no )
11986     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11988     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11989 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11990     (
11991       cat <<\_ASBOX
11992 ## ------------------------------------ ##
11993 ## Report this to bug-autoconf@gnu.org. ##
11994 ## ------------------------------------ ##
11995 _ASBOX
11996     ) |
11997       sed "s/^/$as_me: WARNING:     /" >&2
11998     ;;
11999   no:yes )
12000     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12001 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12002     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12003 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12004     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12005 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12006     (
12007       cat <<\_ASBOX
12008 ## ------------------------------------ ##
12009 ## Report this to bug-autoconf@gnu.org. ##
12010 ## ------------------------------------ ##
12011 _ASBOX
12012     ) |
12013       sed "s/^/$as_me: WARNING:     /" >&2
12014     ;;
12015 esac
12016 echo "$as_me:$LINENO: checking for $ac_header" >&5
12017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12018 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12019   echo $ECHO_N "(cached) $ECHO_C" >&6
12020 else
12021   eval "$as_ac_Header=$ac_header_preproc"
12022 fi
12023 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12024 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12025
12026 fi
12027 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12028   cat >>confdefs.h <<_ACEOF
12029 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12030 _ACEOF
12031
12032 fi
12033
12034 done
12035
12036
12037 for ac_func in getpagesize
12038 do
12039 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12040 echo "$as_me:$LINENO: checking for $ac_func" >&5
12041 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12042 if eval "test \"\${$as_ac_var+set}\" = set"; then
12043   echo $ECHO_N "(cached) $ECHO_C" >&6
12044 else
12045   cat >conftest.$ac_ext <<_ACEOF
12046 #line $LINENO "configure"
12047 /* confdefs.h.  */
12048 _ACEOF
12049 cat confdefs.h >>conftest.$ac_ext
12050 cat >>conftest.$ac_ext <<_ACEOF
12051 /* end confdefs.h.  */
12052 /* System header to define __stub macros and hopefully few prototypes,
12053     which can conflict with char $ac_func (); below.
12054     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12055     <limits.h> exists even on freestanding compilers.  */
12056 #ifdef __STDC__
12057 # include <limits.h>
12058 #else
12059 # include <assert.h>
12060 #endif
12061 /* Override any gcc2 internal prototype to avoid an error.  */
12062 #ifdef __cplusplus
12063 extern "C"
12064 {
12065 #endif
12066 /* We use char because int might match the return type of a gcc2
12067    builtin and then its argument prototype would still apply.  */
12068 char $ac_func ();
12069 /* The GNU C library defines this for functions which it implements
12070     to always fail with ENOSYS.  Some functions are actually named
12071     something starting with __ and the normal name is an alias.  */
12072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12073 choke me
12074 #else
12075 char (*f) () = $ac_func;
12076 #endif
12077 #ifdef __cplusplus
12078 }
12079 #endif
12080
12081 int
12082 main ()
12083 {
12084 return f != $ac_func;
12085   ;
12086   return 0;
12087 }
12088 _ACEOF
12089 rm -f conftest.$ac_objext conftest$ac_exeext
12090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12091   (eval $ac_link) 2>&5
12092   ac_status=$?
12093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094   (exit $ac_status); } &&
12095          { ac_try='test -s conftest$ac_exeext'
12096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12097   (eval $ac_try) 2>&5
12098   ac_status=$?
12099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100   (exit $ac_status); }; }; then
12101   eval "$as_ac_var=yes"
12102 else
12103   echo "$as_me: failed program was:" >&5
12104 sed 's/^/| /' conftest.$ac_ext >&5
12105
12106 eval "$as_ac_var=no"
12107 fi
12108 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12109 fi
12110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12111 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12112 if test `eval echo '${'$as_ac_var'}'` = yes; then
12113   cat >>confdefs.h <<_ACEOF
12114 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12115 _ACEOF
12116
12117 fi
12118 done
12119
12120 echo "$as_me:$LINENO: checking for working mmap" >&5
12121 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
12122 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
12123   echo $ECHO_N "(cached) $ECHO_C" >&6
12124 else
12125   if test "$cross_compiling" = yes; then
12126   ac_cv_func_mmap_fixed_mapped=no
12127 else
12128   cat >conftest.$ac_ext <<_ACEOF
12129 #line $LINENO "configure"
12130 /* confdefs.h.  */
12131 _ACEOF
12132 cat confdefs.h >>conftest.$ac_ext
12133 cat >>conftest.$ac_ext <<_ACEOF
12134 /* end confdefs.h.  */
12135 $ac_includes_default
12136 /* malloc might have been renamed as rpl_malloc. */
12137 #undef malloc
12138
12139 /* Thanks to Mike Haertel and Jim Avera for this test.
12140    Here is a matrix of mmap possibilities:
12141         mmap private not fixed
12142         mmap private fixed at somewhere currently unmapped
12143         mmap private fixed at somewhere already mapped
12144         mmap shared not fixed
12145         mmap shared fixed at somewhere currently unmapped
12146         mmap shared fixed at somewhere already mapped
12147    For private mappings, we should verify that changes cannot be read()
12148    back from the file, nor mmap's back from the file at a different
12149    address.  (There have been systems where private was not correctly
12150    implemented like the infamous i386 svr4.0, and systems where the
12151    VM page cache was not coherent with the file system buffer cache
12152    like early versions of FreeBSD and possibly contemporary NetBSD.)
12153    For shared mappings, we should conversely verify that changes get
12154    propagated back to all the places they're supposed to be.
12155
12156    Grep wants private fixed already mapped.
12157    The main things grep needs to know about mmap are:
12158    * does it exist and is it safe to write into the mmap'd area
12159    * how to use it (BSD variants)  */
12160
12161 #include <fcntl.h>
12162 #include <sys/mman.h>
12163
12164 #if !STDC_HEADERS && !HAVE_STDLIB_H
12165 char *malloc ();
12166 #endif
12167
12168 /* This mess was copied from the GNU getpagesize.h.  */
12169 #if !HAVE_GETPAGESIZE
12170 /* Assume that all systems that can run configure have sys/param.h.  */
12171 # if !HAVE_SYS_PARAM_H
12172 #  define HAVE_SYS_PARAM_H 1
12173 # endif
12174
12175 # ifdef _SC_PAGESIZE
12176 #  define getpagesize() sysconf(_SC_PAGESIZE)
12177 # else /* no _SC_PAGESIZE */
12178 #  if HAVE_SYS_PARAM_H
12179 #   include <sys/param.h>
12180 #   ifdef EXEC_PAGESIZE
12181 #    define getpagesize() EXEC_PAGESIZE
12182 #   else /* no EXEC_PAGESIZE */
12183 #    ifdef NBPG
12184 #     define getpagesize() NBPG * CLSIZE
12185 #     ifndef CLSIZE
12186 #      define CLSIZE 1
12187 #     endif /* no CLSIZE */
12188 #    else /* no NBPG */
12189 #     ifdef NBPC
12190 #      define getpagesize() NBPC
12191 #     else /* no NBPC */
12192 #      ifdef PAGESIZE
12193 #       define getpagesize() PAGESIZE
12194 #      endif /* PAGESIZE */
12195 #     endif /* no NBPC */
12196 #    endif /* no NBPG */
12197 #   endif /* no EXEC_PAGESIZE */
12198 #  else /* no HAVE_SYS_PARAM_H */
12199 #   define getpagesize() 8192   /* punt totally */
12200 #  endif /* no HAVE_SYS_PARAM_H */
12201 # endif /* no _SC_PAGESIZE */
12202
12203 #endif /* no HAVE_GETPAGESIZE */
12204
12205 int
12206 main ()
12207 {
12208   char *data, *data2, *data3;
12209   int i, pagesize;
12210   int fd;
12211
12212   pagesize = getpagesize ();
12213
12214   /* First, make a file with some known garbage in it. */
12215   data = (char *) malloc (pagesize);
12216   if (!data)
12217     exit (1);
12218   for (i = 0; i < pagesize; ++i)
12219     *(data + i) = rand ();
12220   umask (0);
12221   fd = creat ("conftest.mmap", 0600);
12222   if (fd < 0)
12223     exit (1);
12224   if (write (fd, data, pagesize) != pagesize)
12225     exit (1);
12226   close (fd);
12227
12228   /* Next, try to mmap the file at a fixed address which already has
12229      something else allocated at it.  If we can, also make sure that
12230      we see the same garbage.  */
12231   fd = open ("conftest.mmap", O_RDWR);
12232   if (fd < 0)
12233     exit (1);
12234   data2 = (char *) malloc (2 * pagesize);
12235   if (!data2)
12236     exit (1);
12237   data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
12238   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12239                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
12240     exit (1);
12241   for (i = 0; i < pagesize; ++i)
12242     if (*(data + i) != *(data2 + i))
12243       exit (1);
12244
12245   /* Finally, make sure that changes to the mapped area do not
12246      percolate back to the file as seen by read().  (This is a bug on
12247      some variants of i386 svr4.0.)  */
12248   for (i = 0; i < pagesize; ++i)
12249     *(data2 + i) = *(data2 + i) + 1;
12250   data3 = (char *) malloc (pagesize);
12251   if (!data3)
12252     exit (1);
12253   if (read (fd, data3, pagesize) != pagesize)
12254     exit (1);
12255   for (i = 0; i < pagesize; ++i)
12256     if (*(data + i) != *(data3 + i))
12257       exit (1);
12258   close (fd);
12259   exit (0);
12260 }
12261 _ACEOF
12262 rm -f conftest$ac_exeext
12263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12264   (eval $ac_link) 2>&5
12265   ac_status=$?
12266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12269   (eval $ac_try) 2>&5
12270   ac_status=$?
12271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272   (exit $ac_status); }; }; then
12273   ac_cv_func_mmap_fixed_mapped=yes
12274 else
12275   echo "$as_me: program exited with status $ac_status" >&5
12276 echo "$as_me: failed program was:" >&5
12277 sed 's/^/| /' conftest.$ac_ext >&5
12278
12279 ( exit $ac_status )
12280 ac_cv_func_mmap_fixed_mapped=no
12281 fi
12282 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12283 fi
12284 fi
12285 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
12286 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
12287 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12288
12289 cat >>confdefs.h <<\_ACEOF
12290 #define HAVE_MMAP 1
12291 _ACEOF
12292
12293 fi
12294 rm -f conftest.mmap
12295
12296
12297     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
12298 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
12299 if test "${ac_cv_gnu_library_2_1+set}" = set; then
12300   echo $ECHO_N "(cached) $ECHO_C" >&6
12301 else
12302   cat >conftest.$ac_ext <<_ACEOF
12303 #line $LINENO "configure"
12304 /* confdefs.h.  */
12305 _ACEOF
12306 cat confdefs.h >>conftest.$ac_ext
12307 cat >>conftest.$ac_ext <<_ACEOF
12308 /* end confdefs.h.  */
12309
12310 #include <features.h>
12311 #ifdef __GNU_LIBRARY__
12312  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
12313   Lucky GNU user
12314  #endif
12315 #endif
12316
12317 _ACEOF
12318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12319   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
12320   ac_cv_gnu_library_2_1=yes
12321 else
12322   ac_cv_gnu_library_2_1=no
12323 fi
12324 rm -f conftest*
12325
12326
12327
12328 fi
12329 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
12330 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
12331
12332     GLIBC21="$ac_cv_gnu_library_2_1"
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
12347 stdlib.h string.h unistd.h sys/param.h
12348 do
12349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12350 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12351   echo "$as_me:$LINENO: checking for $ac_header" >&5
12352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12354   echo $ECHO_N "(cached) $ECHO_C" >&6
12355 fi
12356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12357 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12358 else
12359   # Is the header compilable?
12360 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12362 cat >conftest.$ac_ext <<_ACEOF
12363 #line $LINENO "configure"
12364 /* confdefs.h.  */
12365 _ACEOF
12366 cat confdefs.h >>conftest.$ac_ext
12367 cat >>conftest.$ac_ext <<_ACEOF
12368 /* end confdefs.h.  */
12369 $ac_includes_default
12370 #include <$ac_header>
12371 _ACEOF
12372 rm -f conftest.$ac_objext
12373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12374   (eval $ac_compile) 2>&5
12375   ac_status=$?
12376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377   (exit $ac_status); } &&
12378          { ac_try='test -s conftest.$ac_objext'
12379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12380   (eval $ac_try) 2>&5
12381   ac_status=$?
12382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383   (exit $ac_status); }; }; then
12384   ac_header_compiler=yes
12385 else
12386   echo "$as_me: failed program was:" >&5
12387 sed 's/^/| /' conftest.$ac_ext >&5
12388
12389 ac_header_compiler=no
12390 fi
12391 rm -f conftest.$ac_objext conftest.$ac_ext
12392 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12393 echo "${ECHO_T}$ac_header_compiler" >&6
12394
12395 # Is the header present?
12396 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12397 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12398 cat >conftest.$ac_ext <<_ACEOF
12399 #line $LINENO "configure"
12400 /* confdefs.h.  */
12401 _ACEOF
12402 cat confdefs.h >>conftest.$ac_ext
12403 cat >>conftest.$ac_ext <<_ACEOF
12404 /* end confdefs.h.  */
12405 #include <$ac_header>
12406 _ACEOF
12407 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12408   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12409   ac_status=$?
12410   grep -v '^ *+' conftest.er1 >conftest.err
12411   rm -f conftest.er1
12412   cat conftest.err >&5
12413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414   (exit $ac_status); } >/dev/null; then
12415   if test -s conftest.err; then
12416     ac_cpp_err=$ac_c_preproc_warn_flag
12417   else
12418     ac_cpp_err=
12419   fi
12420 else
12421   ac_cpp_err=yes
12422 fi
12423 if test -z "$ac_cpp_err"; then
12424   ac_header_preproc=yes
12425 else
12426   echo "$as_me: failed program was:" >&5
12427 sed 's/^/| /' conftest.$ac_ext >&5
12428
12429   ac_header_preproc=no
12430 fi
12431 rm -f conftest.err conftest.$ac_ext
12432 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12433 echo "${ECHO_T}$ac_header_preproc" >&6
12434
12435 # So?  What about this header?
12436 case $ac_header_compiler:$ac_header_preproc in
12437   yes:no )
12438     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12439 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12440     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12442     (
12443       cat <<\_ASBOX
12444 ## ------------------------------------ ##
12445 ## Report this to bug-autoconf@gnu.org. ##
12446 ## ------------------------------------ ##
12447 _ASBOX
12448     ) |
12449       sed "s/^/$as_me: WARNING:     /" >&2
12450     ;;
12451   no:yes )
12452     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12454     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12455 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12456     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12457 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12458     (
12459       cat <<\_ASBOX
12460 ## ------------------------------------ ##
12461 ## Report this to bug-autoconf@gnu.org. ##
12462 ## ------------------------------------ ##
12463 _ASBOX
12464     ) |
12465       sed "s/^/$as_me: WARNING:     /" >&2
12466     ;;
12467 esac
12468 echo "$as_me:$LINENO: checking for $ac_header" >&5
12469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12471   echo $ECHO_N "(cached) $ECHO_C" >&6
12472 else
12473   eval "$as_ac_Header=$ac_header_preproc"
12474 fi
12475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12476 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12477
12478 fi
12479 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12480   cat >>confdefs.h <<_ACEOF
12481 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12482 _ACEOF
12483
12484 fi
12485
12486 done
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
12510 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
12511 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
12512 do
12513 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12514 echo "$as_me:$LINENO: checking for $ac_func" >&5
12515 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12516 if eval "test \"\${$as_ac_var+set}\" = set"; then
12517   echo $ECHO_N "(cached) $ECHO_C" >&6
12518 else
12519   cat >conftest.$ac_ext <<_ACEOF
12520 #line $LINENO "configure"
12521 /* confdefs.h.  */
12522 _ACEOF
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h.  */
12526 /* System header to define __stub macros and hopefully few prototypes,
12527     which can conflict with char $ac_func (); below.
12528     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12529     <limits.h> exists even on freestanding compilers.  */
12530 #ifdef __STDC__
12531 # include <limits.h>
12532 #else
12533 # include <assert.h>
12534 #endif
12535 /* Override any gcc2 internal prototype to avoid an error.  */
12536 #ifdef __cplusplus
12537 extern "C"
12538 {
12539 #endif
12540 /* We use char because int might match the return type of a gcc2
12541    builtin and then its argument prototype would still apply.  */
12542 char $ac_func ();
12543 /* The GNU C library defines this for functions which it implements
12544     to always fail with ENOSYS.  Some functions are actually named
12545     something starting with __ and the normal name is an alias.  */
12546 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12547 choke me
12548 #else
12549 char (*f) () = $ac_func;
12550 #endif
12551 #ifdef __cplusplus
12552 }
12553 #endif
12554
12555 int
12556 main ()
12557 {
12558 return f != $ac_func;
12559   ;
12560   return 0;
12561 }
12562 _ACEOF
12563 rm -f conftest.$ac_objext conftest$ac_exeext
12564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12565   (eval $ac_link) 2>&5
12566   ac_status=$?
12567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568   (exit $ac_status); } &&
12569          { ac_try='test -s conftest$ac_exeext'
12570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12571   (eval $ac_try) 2>&5
12572   ac_status=$?
12573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574   (exit $ac_status); }; }; then
12575   eval "$as_ac_var=yes"
12576 else
12577   echo "$as_me: failed program was:" >&5
12578 sed 's/^/| /' conftest.$ac_ext >&5
12579
12580 eval "$as_ac_var=no"
12581 fi
12582 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12583 fi
12584 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12585 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12586 if test `eval echo '${'$as_ac_var'}'` = yes; then
12587   cat >>confdefs.h <<_ACEOF
12588 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12589 _ACEOF
12590
12591 fi
12592 done
12593
12594
12595
12596
12597
12598 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
12599 if test "${with_libiconv_prefix+set}" = set; then
12600   withval="$with_libiconv_prefix"
12601
12602     for dir in `echo "$withval" | tr : ' '`; do
12603       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
12604       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
12605     done
12606
12607 fi;
12608
12609   echo "$as_me:$LINENO: checking for iconv" >&5
12610 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
12611 if test "${am_cv_func_iconv+set}" = set; then
12612   echo $ECHO_N "(cached) $ECHO_C" >&6
12613 else
12614
12615     am_cv_func_iconv="no, consider installing GNU libiconv"
12616     am_cv_lib_iconv=no
12617     cat >conftest.$ac_ext <<_ACEOF
12618 #line $LINENO "configure"
12619 /* confdefs.h.  */
12620 _ACEOF
12621 cat confdefs.h >>conftest.$ac_ext
12622 cat >>conftest.$ac_ext <<_ACEOF
12623 /* end confdefs.h.  */
12624 #include <stdlib.h>
12625 #include <iconv.h>
12626 int
12627 main ()
12628 {
12629 iconv_t cd = iconv_open("","");
12630        iconv(cd,NULL,NULL,NULL,NULL);
12631        iconv_close(cd);
12632   ;
12633   return 0;
12634 }
12635 _ACEOF
12636 rm -f conftest.$ac_objext conftest$ac_exeext
12637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12638   (eval $ac_link) 2>&5
12639   ac_status=$?
12640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641   (exit $ac_status); } &&
12642          { ac_try='test -s conftest$ac_exeext'
12643   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12644   (eval $ac_try) 2>&5
12645   ac_status=$?
12646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647   (exit $ac_status); }; }; then
12648   am_cv_func_iconv=yes
12649 else
12650   echo "$as_me: failed program was:" >&5
12651 sed 's/^/| /' conftest.$ac_ext >&5
12652
12653 fi
12654 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12655     if test "$am_cv_func_iconv" != yes; then
12656       am_save_LIBS="$LIBS"
12657       LIBS="$LIBS -liconv"
12658       cat >conftest.$ac_ext <<_ACEOF
12659 #line $LINENO "configure"
12660 /* confdefs.h.  */
12661 _ACEOF
12662 cat confdefs.h >>conftest.$ac_ext
12663 cat >>conftest.$ac_ext <<_ACEOF
12664 /* end confdefs.h.  */
12665 #include <stdlib.h>
12666 #include <iconv.h>
12667 int
12668 main ()
12669 {
12670 iconv_t cd = iconv_open("","");
12671          iconv(cd,NULL,NULL,NULL,NULL);
12672          iconv_close(cd);
12673   ;
12674   return 0;
12675 }
12676 _ACEOF
12677 rm -f conftest.$ac_objext conftest$ac_exeext
12678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12679   (eval $ac_link) 2>&5
12680   ac_status=$?
12681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682   (exit $ac_status); } &&
12683          { ac_try='test -s conftest$ac_exeext'
12684   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12685   (eval $ac_try) 2>&5
12686   ac_status=$?
12687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12688   (exit $ac_status); }; }; then
12689   am_cv_lib_iconv=yes
12690         am_cv_func_iconv=yes
12691 else
12692   echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12694
12695 fi
12696 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12697       LIBS="$am_save_LIBS"
12698     fi
12699
12700 fi
12701 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12702 echo "${ECHO_T}$am_cv_func_iconv" >&6
12703   if test "$am_cv_func_iconv" = yes; then
12704
12705 cat >>confdefs.h <<\_ACEOF
12706 #define HAVE_ICONV 1
12707 _ACEOF
12708
12709     echo "$as_me:$LINENO: checking for iconv declaration" >&5
12710 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
12711     if test "${am_cv_proto_iconv+set}" = set; then
12712   echo $ECHO_N "(cached) $ECHO_C" >&6
12713 else
12714
12715       cat >conftest.$ac_ext <<_ACEOF
12716 #line $LINENO "configure"
12717 /* confdefs.h.  */
12718 _ACEOF
12719 cat confdefs.h >>conftest.$ac_ext
12720 cat >>conftest.$ac_ext <<_ACEOF
12721 /* end confdefs.h.  */
12722
12723 #include <stdlib.h>
12724 #include <iconv.h>
12725 extern
12726 #ifdef __cplusplus
12727 "C"
12728 #endif
12729 #if defined(__STDC__) || defined(__cplusplus)
12730 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12731 #else
12732 size_t iconv();
12733 #endif
12734
12735 int
12736 main ()
12737 {
12738
12739   ;
12740   return 0;
12741 }
12742 _ACEOF
12743 rm -f conftest.$ac_objext
12744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12745   (eval $ac_compile) 2>&5
12746   ac_status=$?
12747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748   (exit $ac_status); } &&
12749          { ac_try='test -s conftest.$ac_objext'
12750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12751   (eval $ac_try) 2>&5
12752   ac_status=$?
12753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754   (exit $ac_status); }; }; then
12755   am_cv_proto_iconv_arg1=""
12756 else
12757   echo "$as_me: failed program was:" >&5
12758 sed 's/^/| /' conftest.$ac_ext >&5
12759
12760 am_cv_proto_iconv_arg1="const"
12761 fi
12762 rm -f conftest.$ac_objext conftest.$ac_ext
12763       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);"
12764 fi
12765
12766     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12767     echo "$as_me:$LINENO: result: ${ac_t:-
12768          }$am_cv_proto_iconv" >&5
12769 echo "${ECHO_T}${ac_t:-
12770          }$am_cv_proto_iconv" >&6
12771
12772 cat >>confdefs.h <<_ACEOF
12773 #define ICONV_CONST $am_cv_proto_iconv_arg1
12774 _ACEOF
12775
12776   fi
12777   LIBICONV=
12778   if test "$am_cv_lib_iconv" = yes; then
12779     LIBICONV="-liconv"
12780   fi
12781
12782
12783
12784   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12785 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
12786 if test "${am_cv_langinfo_codeset+set}" = set; then
12787   echo $ECHO_N "(cached) $ECHO_C" >&6
12788 else
12789   cat >conftest.$ac_ext <<_ACEOF
12790 #line $LINENO "configure"
12791 /* confdefs.h.  */
12792 _ACEOF
12793 cat confdefs.h >>conftest.$ac_ext
12794 cat >>conftest.$ac_ext <<_ACEOF
12795 /* end confdefs.h.  */
12796 #include <langinfo.h>
12797 int
12798 main ()
12799 {
12800 char* cs = nl_langinfo(CODESET);
12801   ;
12802   return 0;
12803 }
12804 _ACEOF
12805 rm -f conftest.$ac_objext conftest$ac_exeext
12806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12807   (eval $ac_link) 2>&5
12808   ac_status=$?
12809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810   (exit $ac_status); } &&
12811          { ac_try='test -s conftest$ac_exeext'
12812   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12813   (eval $ac_try) 2>&5
12814   ac_status=$?
12815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816   (exit $ac_status); }; }; then
12817   am_cv_langinfo_codeset=yes
12818 else
12819   echo "$as_me: failed program was:" >&5
12820 sed 's/^/| /' conftest.$ac_ext >&5
12821
12822 am_cv_langinfo_codeset=no
12823 fi
12824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12825
12826 fi
12827 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12828 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
12829   if test $am_cv_langinfo_codeset = yes; then
12830
12831 cat >>confdefs.h <<\_ACEOF
12832 #define HAVE_LANGINFO_CODESET 1
12833 _ACEOF
12834
12835   fi
12836
12837    if test $ac_cv_header_locale_h = yes; then
12838     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12839 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
12840 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
12841   echo $ECHO_N "(cached) $ECHO_C" >&6
12842 else
12843   cat >conftest.$ac_ext <<_ACEOF
12844 #line $LINENO "configure"
12845 /* confdefs.h.  */
12846 _ACEOF
12847 cat confdefs.h >>conftest.$ac_ext
12848 cat >>conftest.$ac_ext <<_ACEOF
12849 /* end confdefs.h.  */
12850 #include <locale.h>
12851 int
12852 main ()
12853 {
12854 return LC_MESSAGES
12855   ;
12856   return 0;
12857 }
12858 _ACEOF
12859 rm -f conftest.$ac_objext conftest$ac_exeext
12860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12861   (eval $ac_link) 2>&5
12862   ac_status=$?
12863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864   (exit $ac_status); } &&
12865          { ac_try='test -s conftest$ac_exeext'
12866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12867   (eval $ac_try) 2>&5
12868   ac_status=$?
12869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870   (exit $ac_status); }; }; then
12871   am_cv_val_LC_MESSAGES=yes
12872 else
12873   echo "$as_me: failed program was:" >&5
12874 sed 's/^/| /' conftest.$ac_ext >&5
12875
12876 am_cv_val_LC_MESSAGES=no
12877 fi
12878 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12879 fi
12880 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
12881 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
12882     if test $am_cv_val_LC_MESSAGES = yes; then
12883
12884 cat >>confdefs.h <<\_ACEOF
12885 #define HAVE_LC_MESSAGES 1
12886 _ACEOF
12887
12888     fi
12889   fi
12890    echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12891 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
12892         # Check whether --enable-nls or --disable-nls was given.
12893 if test "${enable_nls+set}" = set; then
12894   enableval="$enable_nls"
12895   USE_NLS=$enableval
12896 else
12897   USE_NLS=yes
12898 fi;
12899     echo "$as_me:$LINENO: result: $USE_NLS" >&5
12900 echo "${ECHO_T}$USE_NLS" >&6
12901
12902
12903     BUILD_INCLUDED_LIBINTL=no
12904     USE_INCLUDED_LIBINTL=no
12905     INTLLIBS=
12906
12907         if test "$USE_NLS" = "yes"; then
12908
12909 cat >>confdefs.h <<\_ACEOF
12910 #define ENABLE_NLS 1
12911 _ACEOF
12912
12913       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12914 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
12915
12916 # Check whether --with-included-gettext or --without-included-gettext was given.
12917 if test "${with_included_gettext+set}" = set; then
12918   withval="$with_included_gettext"
12919   nls_cv_force_use_gnu_gettext=$withval
12920 else
12921   nls_cv_force_use_gnu_gettext=no
12922 fi;
12923       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12924 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
12925
12926       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12927       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12928                                 CATOBJEXT=NONE
12929
12930
12931
12932
12933         if test "${ac_cv_header_libintl_h+set}" = set; then
12934   echo "$as_me:$LINENO: checking for libintl.h" >&5
12935 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
12936 if test "${ac_cv_header_libintl_h+set}" = set; then
12937   echo $ECHO_N "(cached) $ECHO_C" >&6
12938 fi
12939 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
12940 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
12941 else
12942   # Is the header compilable?
12943 echo "$as_me:$LINENO: checking libintl.h usability" >&5
12944 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
12945 cat >conftest.$ac_ext <<_ACEOF
12946 #line $LINENO "configure"
12947 /* confdefs.h.  */
12948 _ACEOF
12949 cat confdefs.h >>conftest.$ac_ext
12950 cat >>conftest.$ac_ext <<_ACEOF
12951 /* end confdefs.h.  */
12952 $ac_includes_default
12953 #include <libintl.h>
12954 _ACEOF
12955 rm -f conftest.$ac_objext
12956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12957   (eval $ac_compile) 2>&5
12958   ac_status=$?
12959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960   (exit $ac_status); } &&
12961          { ac_try='test -s conftest.$ac_objext'
12962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12963   (eval $ac_try) 2>&5
12964   ac_status=$?
12965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966   (exit $ac_status); }; }; then
12967   ac_header_compiler=yes
12968 else
12969   echo "$as_me: failed program was:" >&5
12970 sed 's/^/| /' conftest.$ac_ext >&5
12971
12972 ac_header_compiler=no
12973 fi
12974 rm -f conftest.$ac_objext conftest.$ac_ext
12975 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12976 echo "${ECHO_T}$ac_header_compiler" >&6
12977
12978 # Is the header present?
12979 echo "$as_me:$LINENO: checking libintl.h presence" >&5
12980 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
12981 cat >conftest.$ac_ext <<_ACEOF
12982 #line $LINENO "configure"
12983 /* confdefs.h.  */
12984 _ACEOF
12985 cat confdefs.h >>conftest.$ac_ext
12986 cat >>conftest.$ac_ext <<_ACEOF
12987 /* end confdefs.h.  */
12988 #include <libintl.h>
12989 _ACEOF
12990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12991   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12992   ac_status=$?
12993   grep -v '^ *+' conftest.er1 >conftest.err
12994   rm -f conftest.er1
12995   cat conftest.err >&5
12996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997   (exit $ac_status); } >/dev/null; then
12998   if test -s conftest.err; then
12999     ac_cpp_err=$ac_c_preproc_warn_flag
13000   else
13001     ac_cpp_err=
13002   fi
13003 else
13004   ac_cpp_err=yes
13005 fi
13006 if test -z "$ac_cpp_err"; then
13007   ac_header_preproc=yes
13008 else
13009   echo "$as_me: failed program was:" >&5
13010 sed 's/^/| /' conftest.$ac_ext >&5
13011
13012   ac_header_preproc=no
13013 fi
13014 rm -f conftest.err conftest.$ac_ext
13015 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13016 echo "${ECHO_T}$ac_header_preproc" >&6
13017
13018 # So?  What about this header?
13019 case $ac_header_compiler:$ac_header_preproc in
13020   yes:no )
13021     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
13022 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13023     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
13024 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
13025     (
13026       cat <<\_ASBOX
13027 ## ------------------------------------ ##
13028 ## Report this to bug-autoconf@gnu.org. ##
13029 ## ------------------------------------ ##
13030 _ASBOX
13031     ) |
13032       sed "s/^/$as_me: WARNING:     /" >&2
13033     ;;
13034   no:yes )
13035     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
13036 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
13037     { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5
13038 echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;}
13039     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
13040 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
13041     (
13042       cat <<\_ASBOX
13043 ## ------------------------------------ ##
13044 ## Report this to bug-autoconf@gnu.org. ##
13045 ## ------------------------------------ ##
13046 _ASBOX
13047     ) |
13048       sed "s/^/$as_me: WARNING:     /" >&2
13049     ;;
13050 esac
13051 echo "$as_me:$LINENO: checking for libintl.h" >&5
13052 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
13053 if test "${ac_cv_header_libintl_h+set}" = set; then
13054   echo $ECHO_N "(cached) $ECHO_C" >&6
13055 else
13056   ac_cv_header_libintl_h=$ac_header_preproc
13057 fi
13058 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
13059 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
13060
13061 fi
13062 if test $ac_cv_header_libintl_h = yes; then
13063   echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
13064 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
13065 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
13066   echo $ECHO_N "(cached) $ECHO_C" >&6
13067 else
13068   cat >conftest.$ac_ext <<_ACEOF
13069 #line $LINENO "configure"
13070 /* confdefs.h.  */
13071 _ACEOF
13072 cat confdefs.h >>conftest.$ac_ext
13073 cat >>conftest.$ac_ext <<_ACEOF
13074 /* end confdefs.h.  */
13075 #include <libintl.h>
13076 extern int _nl_msg_cat_cntr;
13077 int
13078 main ()
13079 {
13080 bindtextdomain ("", "");
13081 return (int) gettext ("") + _nl_msg_cat_cntr
13082   ;
13083   return 0;
13084 }
13085 _ACEOF
13086 rm -f conftest.$ac_objext conftest$ac_exeext
13087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13088   (eval $ac_link) 2>&5
13089   ac_status=$?
13090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091   (exit $ac_status); } &&
13092          { ac_try='test -s conftest$ac_exeext'
13093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13094   (eval $ac_try) 2>&5
13095   ac_status=$?
13096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13097   (exit $ac_status); }; }; then
13098   gt_cv_func_gnugettext1_libc=yes
13099 else
13100   echo "$as_me: failed program was:" >&5
13101 sed 's/^/| /' conftest.$ac_ext >&5
13102
13103 gt_cv_func_gnugettext1_libc=no
13104 fi
13105 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13106 fi
13107 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
13108 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
13109
13110            if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
13111              echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13112 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
13113 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13114   echo $ECHO_N "(cached) $ECHO_C" >&6
13115 else
13116   gt_save_LIBS="$LIBS"
13117                 LIBS="$LIBS -lintl $LIBICONV"
13118                 cat >conftest.$ac_ext <<_ACEOF
13119 #line $LINENO "configure"
13120 /* confdefs.h.  */
13121 _ACEOF
13122 cat confdefs.h >>conftest.$ac_ext
13123 cat >>conftest.$ac_ext <<_ACEOF
13124 /* end confdefs.h.  */
13125 #include <libintl.h>
13126 extern int _nl_msg_cat_cntr;
13127 int
13128 main ()
13129 {
13130 bindtextdomain ("", "");
13131 return (int) gettext ("") + _nl_msg_cat_cntr
13132   ;
13133   return 0;
13134 }
13135 _ACEOF
13136 rm -f conftest.$ac_objext conftest$ac_exeext
13137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13138   (eval $ac_link) 2>&5
13139   ac_status=$?
13140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141   (exit $ac_status); } &&
13142          { ac_try='test -s conftest$ac_exeext'
13143   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13144   (eval $ac_try) 2>&5
13145   ac_status=$?
13146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147   (exit $ac_status); }; }; then
13148   gt_cv_func_gnugettext1_libintl=yes
13149 else
13150   echo "$as_me: failed program was:" >&5
13151 sed 's/^/| /' conftest.$ac_ext >&5
13152
13153 gt_cv_func_gnugettext1_libintl=no
13154 fi
13155 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13156                 LIBS="$gt_save_LIBS"
13157 fi
13158 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13159 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
13160            fi
13161
13162                                            if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13163               || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13164                    && test "$PACKAGE" != gettext; }; then
13165
13166 cat >>confdefs.h <<\_ACEOF
13167 #define HAVE_GETTEXT 1
13168 _ACEOF
13169
13170
13171              if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13172                                        INTLLIBS="-lintl $LIBICONV"
13173              fi
13174
13175              gt_save_LIBS="$LIBS"
13176              LIBS="$LIBS $INTLLIBS"
13177
13178 for ac_func in dcgettext
13179 do
13180 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13181 echo "$as_me:$LINENO: checking for $ac_func" >&5
13182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13183 if eval "test \"\${$as_ac_var+set}\" = set"; then
13184   echo $ECHO_N "(cached) $ECHO_C" >&6
13185 else
13186   cat >conftest.$ac_ext <<_ACEOF
13187 #line $LINENO "configure"
13188 /* confdefs.h.  */
13189 _ACEOF
13190 cat confdefs.h >>conftest.$ac_ext
13191 cat >>conftest.$ac_ext <<_ACEOF
13192 /* end confdefs.h.  */
13193 /* System header to define __stub macros and hopefully few prototypes,
13194     which can conflict with char $ac_func (); below.
13195     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13196     <limits.h> exists even on freestanding compilers.  */
13197 #ifdef __STDC__
13198 # include <limits.h>
13199 #else
13200 # include <assert.h>
13201 #endif
13202 /* Override any gcc2 internal prototype to avoid an error.  */
13203 #ifdef __cplusplus
13204 extern "C"
13205 {
13206 #endif
13207 /* We use char because int might match the return type of a gcc2
13208    builtin and then its argument prototype would still apply.  */
13209 char $ac_func ();
13210 /* The GNU C library defines this for functions which it implements
13211     to always fail with ENOSYS.  Some functions are actually named
13212     something starting with __ and the normal name is an alias.  */
13213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13214 choke me
13215 #else
13216 char (*f) () = $ac_func;
13217 #endif
13218 #ifdef __cplusplus
13219 }
13220 #endif
13221
13222 int
13223 main ()
13224 {
13225 return f != $ac_func;
13226   ;
13227   return 0;
13228 }
13229 _ACEOF
13230 rm -f conftest.$ac_objext conftest$ac_exeext
13231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13232   (eval $ac_link) 2>&5
13233   ac_status=$?
13234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235   (exit $ac_status); } &&
13236          { ac_try='test -s conftest$ac_exeext'
13237   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13238   (eval $ac_try) 2>&5
13239   ac_status=$?
13240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241   (exit $ac_status); }; }; then
13242   eval "$as_ac_var=yes"
13243 else
13244   echo "$as_me: failed program was:" >&5
13245 sed 's/^/| /' conftest.$ac_ext >&5
13246
13247 eval "$as_ac_var=no"
13248 fi
13249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13250 fi
13251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13252 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13253 if test `eval echo '${'$as_ac_var'}'` = yes; then
13254   cat >>confdefs.h <<_ACEOF
13255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13256 _ACEOF
13257
13258 fi
13259 done
13260
13261              LIBS="$gt_save_LIBS"
13262
13263                      # Extract the first word of "msgfmt", so it can be a program name with args.
13264 set dummy msgfmt; ac_word=$2
13265 echo "$as_me:$LINENO: checking for $ac_word" >&5
13266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13267 if test "${ac_cv_path_MSGFMT+set}" = set; then
13268   echo $ECHO_N "(cached) $ECHO_C" >&6
13269 else
13270   case "$MSGFMT" in
13271   /*)
13272   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13273   ;;
13274   *)
13275   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13276   for ac_dir in $PATH; do
13277     test -z "$ac_dir" && ac_dir=.
13278     if test -f $ac_dir/$ac_word; then
13279       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
13280         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
13281         break
13282       fi
13283     fi
13284   done
13285   IFS="$ac_save_ifs"
13286   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13287   ;;
13288 esac
13289 fi
13290 MSGFMT="$ac_cv_path_MSGFMT"
13291 if test "$MSGFMT" != ":"; then
13292   echo "$as_me:$LINENO: result: $MSGFMT" >&5
13293 echo "${ECHO_T}$MSGFMT" >&6
13294 else
13295   echo "$as_me:$LINENO: result: no" >&5
13296 echo "${ECHO_T}no" >&6
13297 fi
13298
13299              # Extract the first word of "gmsgfmt", so it can be a program name with args.
13300 set dummy gmsgfmt; ac_word=$2
13301 echo "$as_me:$LINENO: checking for $ac_word" >&5
13302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13303 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13304   echo $ECHO_N "(cached) $ECHO_C" >&6
13305 else
13306   case $GMSGFMT in
13307   [\\/]* | ?:[\\/]*)
13308   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13309   ;;
13310   *)
13311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13312 for as_dir in $PATH
13313 do
13314   IFS=$as_save_IFS
13315   test -z "$as_dir" && as_dir=.
13316   for ac_exec_ext in '' $ac_executable_extensions; do
13317   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13318     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13320     break 2
13321   fi
13322 done
13323 done
13324
13325   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13326   ;;
13327 esac
13328 fi
13329 GMSGFMT=$ac_cv_path_GMSGFMT
13330
13331 if test -n "$GMSGFMT"; then
13332   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
13333 echo "${ECHO_T}$GMSGFMT" >&6
13334 else
13335   echo "$as_me:$LINENO: result: no" >&5
13336 echo "${ECHO_T}no" >&6
13337 fi
13338
13339
13340                      # Extract the first word of "xgettext", so it can be a program name with args.
13341 set dummy xgettext; ac_word=$2
13342 echo "$as_me:$LINENO: checking for $ac_word" >&5
13343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13344 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13345   echo $ECHO_N "(cached) $ECHO_C" >&6
13346 else
13347   case "$XGETTEXT" in
13348   /*)
13349   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13350   ;;
13351   *)
13352   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13353   for ac_dir in $PATH; do
13354     test -z "$ac_dir" && ac_dir=.
13355     if test -f $ac_dir/$ac_word; then
13356       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
13357         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
13358         break
13359       fi
13360     fi
13361   done
13362   IFS="$ac_save_ifs"
13363   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13364   ;;
13365 esac
13366 fi
13367 XGETTEXT="$ac_cv_path_XGETTEXT"
13368 if test "$XGETTEXT" != ":"; then
13369   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
13370 echo "${ECHO_T}$XGETTEXT" >&6
13371 else
13372   echo "$as_me:$LINENO: result: no" >&5
13373 echo "${ECHO_T}no" >&6
13374 fi
13375
13376
13377              CATOBJEXT=.gmo
13378            fi
13379
13380 fi
13381
13382
13383
13384         if test "$CATOBJEXT" = "NONE"; then
13385                           nls_cv_use_gnu_gettext=yes
13386         fi
13387       fi
13388
13389       if test "$nls_cv_use_gnu_gettext" = "yes"; then
13390                 INTLOBJS="\$(GETTOBJS)"
13391         # Extract the first word of "msgfmt", so it can be a program name with args.
13392 set dummy msgfmt; ac_word=$2
13393 echo "$as_me:$LINENO: checking for $ac_word" >&5
13394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13395 if test "${ac_cv_path_MSGFMT+set}" = set; then
13396   echo $ECHO_N "(cached) $ECHO_C" >&6
13397 else
13398   case "$MSGFMT" in
13399   /*)
13400   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
13401   ;;
13402   *)
13403   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13404   for ac_dir in $PATH; do
13405     test -z "$ac_dir" && ac_dir=.
13406     if test -f $ac_dir/$ac_word; then
13407       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
13408         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
13409         break
13410       fi
13411     fi
13412   done
13413   IFS="$ac_save_ifs"
13414   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
13415   ;;
13416 esac
13417 fi
13418 MSGFMT="$ac_cv_path_MSGFMT"
13419 if test "$MSGFMT" != ":"; then
13420   echo "$as_me:$LINENO: result: $MSGFMT" >&5
13421 echo "${ECHO_T}$MSGFMT" >&6
13422 else
13423   echo "$as_me:$LINENO: result: no" >&5
13424 echo "${ECHO_T}no" >&6
13425 fi
13426
13427         # Extract the first word of "gmsgfmt", so it can be a program name with args.
13428 set dummy gmsgfmt; ac_word=$2
13429 echo "$as_me:$LINENO: checking for $ac_word" >&5
13430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13431 if test "${ac_cv_path_GMSGFMT+set}" = set; then
13432   echo $ECHO_N "(cached) $ECHO_C" >&6
13433 else
13434   case $GMSGFMT in
13435   [\\/]* | ?:[\\/]*)
13436   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
13437   ;;
13438   *)
13439   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13440 for as_dir in $PATH
13441 do
13442   IFS=$as_save_IFS
13443   test -z "$as_dir" && as_dir=.
13444   for ac_exec_ext in '' $ac_executable_extensions; do
13445   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13446     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
13447     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13448     break 2
13449   fi
13450 done
13451 done
13452
13453   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
13454   ;;
13455 esac
13456 fi
13457 GMSGFMT=$ac_cv_path_GMSGFMT
13458
13459 if test -n "$GMSGFMT"; then
13460   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
13461 echo "${ECHO_T}$GMSGFMT" >&6
13462 else
13463   echo "$as_me:$LINENO: result: no" >&5
13464 echo "${ECHO_T}no" >&6
13465 fi
13466
13467         # Extract the first word of "xgettext", so it can be a program name with args.
13468 set dummy xgettext; ac_word=$2
13469 echo "$as_me:$LINENO: checking for $ac_word" >&5
13470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13471 if test "${ac_cv_path_XGETTEXT+set}" = set; then
13472   echo $ECHO_N "(cached) $ECHO_C" >&6
13473 else
13474   case "$XGETTEXT" in
13475   /*)
13476   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
13477   ;;
13478   *)
13479   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
13480   for ac_dir in $PATH; do
13481     test -z "$ac_dir" && ac_dir=.
13482     if test -f $ac_dir/$ac_word; then
13483       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
13484         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
13485         break
13486       fi
13487     fi
13488   done
13489   IFS="$ac_save_ifs"
13490   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
13491   ;;
13492 esac
13493 fi
13494 XGETTEXT="$ac_cv_path_XGETTEXT"
13495 if test "$XGETTEXT" != ":"; then
13496   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
13497 echo "${ECHO_T}$XGETTEXT" >&6
13498 else
13499   echo "$as_me:$LINENO: result: no" >&5
13500 echo "${ECHO_T}no" >&6
13501 fi
13502
13503
13504         BUILD_INCLUDED_LIBINTL=yes
13505         USE_INCLUDED_LIBINTL=yes
13506         CATOBJEXT=.gmo
13507         INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
13508         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13509       fi
13510
13511                   if test "$GMSGFMT" != ":"; then
13512                         if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
13513           : ;
13514         else
13515           echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
13516 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
13517           GMSGFMT=":"
13518         fi
13519       fi
13520
13521                   if test "$XGETTEXT" != ":"; then
13522                         if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
13523           : ;
13524         else
13525           echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
13526 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
13527           XGETTEXT=":"
13528         fi
13529       fi
13530
13531             POSUB=po
13532     fi
13533               ac_config_commands="$ac_config_commands default-1"
13534
13535
13536
13537             if test "$PACKAGE" = gettext; then
13538       BUILD_INCLUDED_LIBINTL=yes
13539     fi
13540
13541                                             for ac_prog in bison
13542 do
13543   # Extract the first word of "$ac_prog", so it can be a program name with args.
13544 set dummy $ac_prog; ac_word=$2
13545 echo "$as_me:$LINENO: checking for $ac_word" >&5
13546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13547 if test "${ac_cv_prog_INTLBISON+set}" = set; then
13548   echo $ECHO_N "(cached) $ECHO_C" >&6
13549 else
13550   if test -n "$INTLBISON"; then
13551   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
13552 else
13553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13554 for as_dir in $PATH
13555 do
13556   IFS=$as_save_IFS
13557   test -z "$as_dir" && as_dir=.
13558   for ac_exec_ext in '' $ac_executable_extensions; do
13559   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13560     ac_cv_prog_INTLBISON="$ac_prog"
13561     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13562     break 2
13563   fi
13564 done
13565 done
13566
13567 fi
13568 fi
13569 INTLBISON=$ac_cv_prog_INTLBISON
13570 if test -n "$INTLBISON"; then
13571   echo "$as_me:$LINENO: result: $INTLBISON" >&5
13572 echo "${ECHO_T}$INTLBISON" >&6
13573 else
13574   echo "$as_me:$LINENO: result: no" >&5
13575 echo "${ECHO_T}no" >&6
13576 fi
13577
13578   test -n "$INTLBISON" && break
13579 done
13580
13581     if test -z "$INTLBISON"; then
13582       ac_verc_fail=yes
13583     else
13584             echo "$as_me:$LINENO: checking version of bison" >&5
13585 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
13586       ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
13587       case $ac_prog_version in
13588         '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
13589         1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
13590            ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
13591         *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
13592       esac
13593       echo "$as_me:$LINENO: result: $ac_prog_version" >&5
13594 echo "${ECHO_T}$ac_prog_version" >&6
13595     fi
13596     if test $ac_verc_fail = yes; then
13597       INTLBISON=:
13598     fi
13599
13600                 for lang in $ALL_LINGUAS; do
13601       GMOFILES="$GMOFILES $lang.gmo"
13602       POFILES="$POFILES $lang.po"
13603     done
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615         nls_cv_header_intl=
13616     nls_cv_header_libgt=
13617
13618         DATADIRNAME=share
13619
13620
13621         INSTOBJEXT=.mo
13622
13623
13624         GENCAT=gencat
13625
13626
13627
13628    if test "x$CATOBJEXT" != "x"; then
13629      if test "x$ALL_LINGUAS" = "x"; then
13630        LINGUAS=
13631      else
13632        echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
13633 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
13634        NEW_LINGUAS=
13635        for presentlang in $ALL_LINGUAS; do
13636          useit=no
13637          for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
13638            # Use the presentlang catalog if desiredlang is
13639            #   a. equal to presentlang, or
13640            #   b. a variant of presentlang (because in this case,
13641            #      presentlang can be used as a fallback for messages
13642            #      which are not translated in the desiredlang catalog).
13643            case "$desiredlang" in
13644              "$presentlang"*) useit=yes;;
13645            esac
13646          done
13647          if test $useit = yes; then
13648            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
13649          fi
13650        done
13651        LINGUAS=$NEW_LINGUAS
13652        echo "$as_me:$LINENO: result: $LINGUAS" >&5
13653 echo "${ECHO_T}$LINGUAS" >&6
13654      fi
13655
13656           if test -n "$LINGUAS"; then
13657        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
13658      fi
13659    fi
13660
13661             MKINSTALLDIRS=
13662    if test -n "$ac_aux_dir"; then
13663      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
13664    fi
13665    if test -z "$MKINSTALLDIRS"; then
13666      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13667    fi
13668
13669
13670       INTL_LIBTOOL_SUFFIX_PREFIX=
13671
13672
13673
13674 if test "$am_cv_func_iconv" != "yes"
13675 then
13676   { echo "$as_me:$LINENO: WARNING: Configuring without iconv support. See INSTALL for details" >&5
13677 echo "$as_me: WARNING: Configuring without iconv support. See INSTALL for details" >&2;}
13678 else
13679
13680
13681 for ac_header in iconv.h
13682 do
13683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13685   echo "$as_me:$LINENO: checking for $ac_header" >&5
13686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13688   echo $ECHO_N "(cached) $ECHO_C" >&6
13689 fi
13690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13692 else
13693   # Is the header compilable?
13694 echo "$as_me:$LINENO: checking $ac_header usability" >&5
13695 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13696 cat >conftest.$ac_ext <<_ACEOF
13697 #line $LINENO "configure"
13698 /* confdefs.h.  */
13699 _ACEOF
13700 cat confdefs.h >>conftest.$ac_ext
13701 cat >>conftest.$ac_ext <<_ACEOF
13702 /* end confdefs.h.  */
13703 $ac_includes_default
13704 #include <$ac_header>
13705 _ACEOF
13706 rm -f conftest.$ac_objext
13707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13708   (eval $ac_compile) 2>&5
13709   ac_status=$?
13710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711   (exit $ac_status); } &&
13712          { ac_try='test -s conftest.$ac_objext'
13713   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13714   (eval $ac_try) 2>&5
13715   ac_status=$?
13716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717   (exit $ac_status); }; }; then
13718   ac_header_compiler=yes
13719 else
13720   echo "$as_me: failed program was:" >&5
13721 sed 's/^/| /' conftest.$ac_ext >&5
13722
13723 ac_header_compiler=no
13724 fi
13725 rm -f conftest.$ac_objext conftest.$ac_ext
13726 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13727 echo "${ECHO_T}$ac_header_compiler" >&6
13728
13729 # Is the header present?
13730 echo "$as_me:$LINENO: checking $ac_header presence" >&5
13731 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13732 cat >conftest.$ac_ext <<_ACEOF
13733 #line $LINENO "configure"
13734 /* confdefs.h.  */
13735 _ACEOF
13736 cat confdefs.h >>conftest.$ac_ext
13737 cat >>conftest.$ac_ext <<_ACEOF
13738 /* end confdefs.h.  */
13739 #include <$ac_header>
13740 _ACEOF
13741 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13742   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13743   ac_status=$?
13744   grep -v '^ *+' conftest.er1 >conftest.err
13745   rm -f conftest.er1
13746   cat conftest.err >&5
13747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748   (exit $ac_status); } >/dev/null; then
13749   if test -s conftest.err; then
13750     ac_cpp_err=$ac_c_preproc_warn_flag
13751   else
13752     ac_cpp_err=
13753   fi
13754 else
13755   ac_cpp_err=yes
13756 fi
13757 if test -z "$ac_cpp_err"; then
13758   ac_header_preproc=yes
13759 else
13760   echo "$as_me: failed program was:" >&5
13761 sed 's/^/| /' conftest.$ac_ext >&5
13762
13763   ac_header_preproc=no
13764 fi
13765 rm -f conftest.err conftest.$ac_ext
13766 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13767 echo "${ECHO_T}$ac_header_preproc" >&6
13768
13769 # So?  What about this header?
13770 case $ac_header_compiler:$ac_header_preproc in
13771   yes:no )
13772     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13773 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13774     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13776     (
13777       cat <<\_ASBOX
13778 ## ------------------------------------ ##
13779 ## Report this to bug-autoconf@gnu.org. ##
13780 ## ------------------------------------ ##
13781 _ASBOX
13782     ) |
13783       sed "s/^/$as_me: WARNING:     /" >&2
13784     ;;
13785   no:yes )
13786     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13787 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13788     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13789 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13790     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13792     (
13793       cat <<\_ASBOX
13794 ## ------------------------------------ ##
13795 ## Report this to bug-autoconf@gnu.org. ##
13796 ## ------------------------------------ ##
13797 _ASBOX
13798     ) |
13799       sed "s/^/$as_me: WARNING:     /" >&2
13800     ;;
13801 esac
13802 echo "$as_me:$LINENO: checking for $ac_header" >&5
13803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13804 if eval "test \"\${$as_ac_Header+set}\" = set"; then
13805   echo $ECHO_N "(cached) $ECHO_C" >&6
13806 else
13807   eval "$as_ac_Header=$ac_header_preproc"
13808 fi
13809 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13810 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13811
13812 fi
13813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13814   cat >>confdefs.h <<_ACEOF
13815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13816 _ACEOF
13817  echo "$as_me:$LINENO: checking whether iconv.h defines iconv_t" >&5
13818 echo $ECHO_N "checking whether iconv.h defines iconv_t... $ECHO_C" >&6
13819          cat >conftest.$ac_ext <<_ACEOF
13820 #line $LINENO "configure"
13821 /* confdefs.h.  */
13822 _ACEOF
13823 cat confdefs.h >>conftest.$ac_ext
13824 cat >>conftest.$ac_ext <<_ACEOF
13825 /* end confdefs.h.  */
13826 #include <iconv.h>
13827
13828 _ACEOF
13829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13830   $EGREP "typedef.*iconv_t" >/dev/null 2>&1; then
13831   echo "$as_me:$LINENO: result: yes" >&5
13832 echo "${ECHO_T}yes" >&6
13833
13834 cat >>confdefs.h <<\_ACEOF
13835 #define HAVE_ICONV_T_DEF 1
13836 _ACEOF
13837
13838 else
13839   echo "$as_me:$LINENO: result: no" >&5
13840 echo "${ECHO_T}no" >&6
13841 fi
13842 rm -f conftest*
13843
13844 fi
13845
13846 done
13847
13848
13849 echo "$as_me:$LINENO: checking whether this iconv is good enough" >&5
13850 echo $ECHO_N "checking whether this iconv is good enough... $ECHO_C" >&6
13851 if test "${mutt_cv_iconv_good+set}" = set; then
13852   echo $ECHO_N "(cached) $ECHO_C" >&6
13853 else
13854   mutt_save_LIBS="$LIBS"
13855         LIBS="$LIBS $LIBICONV"
13856         if test "$cross_compiling" = yes; then
13857   mutt_cv_iconv_good=yes
13858 else
13859   cat >conftest.$ac_ext <<_ACEOF
13860 #line $LINENO "configure"
13861 /* confdefs.h.  */
13862 _ACEOF
13863 cat confdefs.h >>conftest.$ac_ext
13864 cat >>conftest.$ac_ext <<_ACEOF
13865 /* end confdefs.h.  */
13866
13867 #include <iconv.h>
13868 int main()
13869 {
13870   iconv_t cd;
13871   char buf[4];
13872   char *ob;
13873   size_t obl;
13874   ob = buf, obl = sizeof(buf);
13875   return ((cd = iconv_open("UTF-8", "UTF-8")) != (iconv_t)(-1) &&
13876           (iconv(cd, 0, 0, &ob, &obl) ||
13877            !(ob == buf && obl == sizeof(buf)) ||
13878            iconv_close(cd)));
13879 }
13880
13881 _ACEOF
13882 rm -f conftest$ac_exeext
13883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13884   (eval $ac_link) 2>&5
13885   ac_status=$?
13886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889   (eval $ac_try) 2>&5
13890   ac_status=$?
13891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892   (exit $ac_status); }; }; then
13893   mutt_cv_iconv_good=yes
13894 else
13895   echo "$as_me: program exited with status $ac_status" >&5
13896 echo "$as_me: failed program was:" >&5
13897 sed 's/^/| /' conftest.$ac_ext >&5
13898
13899 ( exit $ac_status )
13900 mutt_cv_iconv_good=no
13901 fi
13902 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13903 fi
13904         LIBS="$mutt_save_LIBS"
13905 fi
13906 echo "$as_me:$LINENO: result: $mutt_cv_iconv_good" >&5
13907 echo "${ECHO_T}$mutt_cv_iconv_good" >&6
13908 if test "$mutt_cv_iconv_good" = no; then
13909   { { echo "$as_me:$LINENO: error: Try using libiconv instead" >&5
13910 echo "$as_me: error: Try using libiconv instead" >&2;}
13911    { (exit 1); exit 1; }; }
13912 fi
13913
13914 echo "$as_me:$LINENO: checking whether iconv is non-transcribing" >&5
13915 echo $ECHO_N "checking whether iconv is non-transcribing... $ECHO_C" >&6
13916 if test "${mutt_cv_iconv_nontrans+set}" = set; then
13917   echo $ECHO_N "(cached) $ECHO_C" >&6
13918 else
13919   mutt_save_LIBS="$LIBS"
13920         LIBS="$LIBS $LIBICONV"
13921         if test "$cross_compiling" = yes; then
13922   mutt_cv_iconv_nontrans=no
13923 else
13924   cat >conftest.$ac_ext <<_ACEOF
13925 #line $LINENO "configure"
13926 /* confdefs.h.  */
13927 _ACEOF
13928 cat confdefs.h >>conftest.$ac_ext
13929 cat >>conftest.$ac_ext <<_ACEOF
13930 /* end confdefs.h.  */
13931
13932 #include <iconv.h>
13933 #include <string.h>
13934 int main()
13935 {
13936   iconv_t cd;
13937   const char *ib;
13938   char *ob;
13939   size_t ibl, obl;
13940   const char *s = "\304\211";
13941   char t[3];
13942   ib = s, ibl = 2, ob = t, obl = 3;
13943   return ((cd = iconv_open("UTF-8", "UTF-8")) == (iconv_t)(-1) ||
13944           iconv(cd, &ib, &ibl, &ob, &obl));
13945 }
13946
13947 _ACEOF
13948 rm -f conftest$ac_exeext
13949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13950   (eval $ac_link) 2>&5
13951   ac_status=$?
13952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955   (eval $ac_try) 2>&5
13956   ac_status=$?
13957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958   (exit $ac_status); }; }; then
13959   mutt_cv_iconv_nontrans=no
13960 else
13961   echo "$as_me: program exited with status $ac_status" >&5
13962 echo "$as_me: failed program was:" >&5
13963 sed 's/^/| /' conftest.$ac_ext >&5
13964
13965 ( exit $ac_status )
13966 mutt_cv_iconv_nontrans=yes
13967 fi
13968 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13969 fi
13970         LIBS="$mutt_save_LIBS"
13971 fi
13972 echo "$as_me:$LINENO: result: $mutt_cv_iconv_nontrans" >&5
13973 echo "${ECHO_T}$mutt_cv_iconv_nontrans" >&6
13974 if test "$mutt_cv_iconv_nontrans" = yes; then
13975   cat >>confdefs.h <<\_ACEOF
13976 #define ICONV_NONTRANS 1
13977 _ACEOF
13978
13979 else
13980   cat >>confdefs.h <<\_ACEOF
13981 #define ICONV_NONTRANS 0
13982 _ACEOF
13983
13984 fi
13985
13986 CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/intl"
13987
13988 if test "$BUILD_INCLUDED_LIBINTL" = "yes"; then
13989
13990 cat >>confdefs.h <<\_ACEOF
13991 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
13992 _ACEOF
13993
13994 else
13995
13996 for ac_func in bind_textdomain_codeset
13997 do
13998 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13999 echo "$as_me:$LINENO: checking for $ac_func" >&5
14000 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14001 if eval "test \"\${$as_ac_var+set}\" = set"; then
14002   echo $ECHO_N "(cached) $ECHO_C" >&6
14003 else
14004   cat >conftest.$ac_ext <<_ACEOF
14005 #line $LINENO "configure"
14006 /* confdefs.h.  */
14007 _ACEOF
14008 cat confdefs.h >>conftest.$ac_ext
14009 cat >>conftest.$ac_ext <<_ACEOF
14010 /* end confdefs.h.  */
14011 /* System header to define __stub macros and hopefully few prototypes,
14012     which can conflict with char $ac_func (); below.
14013     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14014     <limits.h> exists even on freestanding compilers.  */
14015 #ifdef __STDC__
14016 # include <limits.h>
14017 #else
14018 # include <assert.h>
14019 #endif
14020 /* Override any gcc2 internal prototype to avoid an error.  */
14021 #ifdef __cplusplus
14022 extern "C"
14023 {
14024 #endif
14025 /* We use char because int might match the return type of a gcc2
14026    builtin and then its argument prototype would still apply.  */
14027 char $ac_func ();
14028 /* The GNU C library defines this for functions which it implements
14029     to always fail with ENOSYS.  Some functions are actually named
14030     something starting with __ and the normal name is an alias.  */
14031 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14032 choke me
14033 #else
14034 char (*f) () = $ac_func;
14035 #endif
14036 #ifdef __cplusplus
14037 }
14038 #endif
14039
14040 int
14041 main ()
14042 {
14043 return f != $ac_func;
14044   ;
14045   return 0;
14046 }
14047 _ACEOF
14048 rm -f conftest.$ac_objext conftest$ac_exeext
14049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14050   (eval $ac_link) 2>&5
14051   ac_status=$?
14052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053   (exit $ac_status); } &&
14054          { ac_try='test -s conftest$ac_exeext'
14055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14056   (eval $ac_try) 2>&5
14057   ac_status=$?
14058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14059   (exit $ac_status); }; }; then
14060   eval "$as_ac_var=yes"
14061 else
14062   echo "$as_me: failed program was:" >&5
14063 sed 's/^/| /' conftest.$ac_ext >&5
14064
14065 eval "$as_ac_var=no"
14066 fi
14067 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14068 fi
14069 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14070 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14071 if test `eval echo '${'$as_ac_var'}'` = yes; then
14072   cat >>confdefs.h <<_ACEOF
14073 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14074 _ACEOF
14075
14076 fi
14077 done
14078
14079 fi
14080
14081 fi # libiconv
14082
14083
14084
14085 for ac_header in wchar.h
14086 do
14087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14089   echo "$as_me:$LINENO: checking for $ac_header" >&5
14090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14092   echo $ECHO_N "(cached) $ECHO_C" >&6
14093 fi
14094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14096 else
14097   # Is the header compilable?
14098 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14099 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14100 cat >conftest.$ac_ext <<_ACEOF
14101 #line $LINENO "configure"
14102 /* confdefs.h.  */
14103 _ACEOF
14104 cat confdefs.h >>conftest.$ac_ext
14105 cat >>conftest.$ac_ext <<_ACEOF
14106 /* end confdefs.h.  */
14107 $ac_includes_default
14108 #include <$ac_header>
14109 _ACEOF
14110 rm -f conftest.$ac_objext
14111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14112   (eval $ac_compile) 2>&5
14113   ac_status=$?
14114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115   (exit $ac_status); } &&
14116          { ac_try='test -s conftest.$ac_objext'
14117   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118   (eval $ac_try) 2>&5
14119   ac_status=$?
14120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121   (exit $ac_status); }; }; then
14122   ac_header_compiler=yes
14123 else
14124   echo "$as_me: failed program was:" >&5
14125 sed 's/^/| /' conftest.$ac_ext >&5
14126
14127 ac_header_compiler=no
14128 fi
14129 rm -f conftest.$ac_objext conftest.$ac_ext
14130 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14131 echo "${ECHO_T}$ac_header_compiler" >&6
14132
14133 # Is the header present?
14134 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14136 cat >conftest.$ac_ext <<_ACEOF
14137 #line $LINENO "configure"
14138 /* confdefs.h.  */
14139 _ACEOF
14140 cat confdefs.h >>conftest.$ac_ext
14141 cat >>conftest.$ac_ext <<_ACEOF
14142 /* end confdefs.h.  */
14143 #include <$ac_header>
14144 _ACEOF
14145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14146   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14147   ac_status=$?
14148   grep -v '^ *+' conftest.er1 >conftest.err
14149   rm -f conftest.er1
14150   cat conftest.err >&5
14151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152   (exit $ac_status); } >/dev/null; then
14153   if test -s conftest.err; then
14154     ac_cpp_err=$ac_c_preproc_warn_flag
14155   else
14156     ac_cpp_err=
14157   fi
14158 else
14159   ac_cpp_err=yes
14160 fi
14161 if test -z "$ac_cpp_err"; then
14162   ac_header_preproc=yes
14163 else
14164   echo "$as_me: failed program was:" >&5
14165 sed 's/^/| /' conftest.$ac_ext >&5
14166
14167   ac_header_preproc=no
14168 fi
14169 rm -f conftest.err conftest.$ac_ext
14170 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14171 echo "${ECHO_T}$ac_header_preproc" >&6
14172
14173 # So?  What about this header?
14174 case $ac_header_compiler:$ac_header_preproc in
14175   yes:no )
14176     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14177 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14178     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14179 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14180     (
14181       cat <<\_ASBOX
14182 ## ------------------------------------ ##
14183 ## Report this to bug-autoconf@gnu.org. ##
14184 ## ------------------------------------ ##
14185 _ASBOX
14186     ) |
14187       sed "s/^/$as_me: WARNING:     /" >&2
14188     ;;
14189   no:yes )
14190     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14192     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14193 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14194     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14196     (
14197       cat <<\_ASBOX
14198 ## ------------------------------------ ##
14199 ## Report this to bug-autoconf@gnu.org. ##
14200 ## ------------------------------------ ##
14201 _ASBOX
14202     ) |
14203       sed "s/^/$as_me: WARNING:     /" >&2
14204     ;;
14205 esac
14206 echo "$as_me:$LINENO: checking for $ac_header" >&5
14207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14208 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14209   echo $ECHO_N "(cached) $ECHO_C" >&6
14210 else
14211   eval "$as_ac_Header=$ac_header_preproc"
14212 fi
14213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14214 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14215
14216 fi
14217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14218   cat >>confdefs.h <<_ACEOF
14219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14220 _ACEOF
14221
14222 fi
14223
14224 done
14225
14226
14227 echo "$as_me:$LINENO: checking for wchar_t" >&5
14228 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
14229 if test "${mutt_cv_wchar_t+set}" = set; then
14230   echo $ECHO_N "(cached) $ECHO_C" >&6
14231 else
14232   cat >conftest.$ac_ext <<_ACEOF
14233 #line $LINENO "configure"
14234 /* confdefs.h.  */
14235 _ACEOF
14236 cat confdefs.h >>conftest.$ac_ext
14237 cat >>conftest.$ac_ext <<_ACEOF
14238 /* end confdefs.h.  */
14239
14240 #include <stddef.h>
14241 #include <stdlib.h>
14242 #ifdef HAVE_WCHAR_H
14243 #include <wchar.h>
14244 #endif
14245
14246 int
14247 main ()
14248 {
14249  wchar_t wc; return 0;
14250   ;
14251   return 0;
14252 }
14253 _ACEOF
14254 rm -f conftest.$ac_objext
14255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14256   (eval $ac_compile) 2>&5
14257   ac_status=$?
14258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14259   (exit $ac_status); } &&
14260          { ac_try='test -s conftest.$ac_objext'
14261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14262   (eval $ac_try) 2>&5
14263   ac_status=$?
14264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14265   (exit $ac_status); }; }; then
14266   mutt_cv_wchar_t=yes
14267 else
14268   echo "$as_me: failed program was:" >&5
14269 sed 's/^/| /' conftest.$ac_ext >&5
14270
14271 mutt_cv_wchar_t=no
14272 fi
14273 rm -f conftest.$ac_objext conftest.$ac_ext
14274 fi
14275 echo "$as_me:$LINENO: result: $mutt_cv_wchar_t" >&5
14276 echo "${ECHO_T}$mutt_cv_wchar_t" >&6
14277
14278 if test "$mutt_cv_wchar_t" = no; then
14279
14280 cat >>confdefs.h <<\_ACEOF
14281 #define wchar_t int
14282 _ACEOF
14283
14284 fi
14285
14286 echo "$as_me:$LINENO: checking for wint_t" >&5
14287 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
14288 if test "${mutt_cv_wint_t+set}" = set; then
14289   echo $ECHO_N "(cached) $ECHO_C" >&6
14290 else
14291   cat >conftest.$ac_ext <<_ACEOF
14292 #line $LINENO "configure"
14293 /* confdefs.h.  */
14294 _ACEOF
14295 cat confdefs.h >>conftest.$ac_ext
14296 cat >>conftest.$ac_ext <<_ACEOF
14297 /* end confdefs.h.  */
14298
14299 #include <stddef.h>
14300 #include <stdlib.h>
14301 #ifdef HAVE_WCHAR_H
14302 #include <wchar.h>
14303 #endif
14304
14305 int
14306 main ()
14307 {
14308  wint_t wc; return 0;
14309   ;
14310   return 0;
14311 }
14312 _ACEOF
14313 rm -f conftest.$ac_objext
14314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14315   (eval $ac_compile) 2>&5
14316   ac_status=$?
14317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318   (exit $ac_status); } &&
14319          { ac_try='test -s conftest.$ac_objext'
14320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14321   (eval $ac_try) 2>&5
14322   ac_status=$?
14323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324   (exit $ac_status); }; }; then
14325   mutt_cv_wint_t=yes
14326 else
14327   echo "$as_me: failed program was:" >&5
14328 sed 's/^/| /' conftest.$ac_ext >&5
14329
14330 mutt_cv_wint_t=no
14331 fi
14332 rm -f conftest.$ac_objext conftest.$ac_ext
14333 fi
14334 echo "$as_me:$LINENO: result: $mutt_cv_wint_t" >&5
14335 echo "${ECHO_T}$mutt_cv_wint_t" >&6
14336
14337 if test "$mutt_cv_wint_t" = no; then
14338
14339 cat >>confdefs.h <<\_ACEOF
14340 #define wint_t int
14341 _ACEOF
14342
14343 fi
14344
14345
14346 for ac_header in wctype.h
14347 do
14348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14349 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14350   echo "$as_me:$LINENO: checking for $ac_header" >&5
14351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14353   echo $ECHO_N "(cached) $ECHO_C" >&6
14354 fi
14355 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14356 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14357 else
14358   # Is the header compilable?
14359 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14361 cat >conftest.$ac_ext <<_ACEOF
14362 #line $LINENO "configure"
14363 /* confdefs.h.  */
14364 _ACEOF
14365 cat confdefs.h >>conftest.$ac_ext
14366 cat >>conftest.$ac_ext <<_ACEOF
14367 /* end confdefs.h.  */
14368 $ac_includes_default
14369 #include <$ac_header>
14370 _ACEOF
14371 rm -f conftest.$ac_objext
14372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14373   (eval $ac_compile) 2>&5
14374   ac_status=$?
14375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376   (exit $ac_status); } &&
14377          { ac_try='test -s conftest.$ac_objext'
14378   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14379   (eval $ac_try) 2>&5
14380   ac_status=$?
14381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382   (exit $ac_status); }; }; then
14383   ac_header_compiler=yes
14384 else
14385   echo "$as_me: failed program was:" >&5
14386 sed 's/^/| /' conftest.$ac_ext >&5
14387
14388 ac_header_compiler=no
14389 fi
14390 rm -f conftest.$ac_objext conftest.$ac_ext
14391 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14392 echo "${ECHO_T}$ac_header_compiler" >&6
14393
14394 # Is the header present?
14395 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14396 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14397 cat >conftest.$ac_ext <<_ACEOF
14398 #line $LINENO "configure"
14399 /* confdefs.h.  */
14400 _ACEOF
14401 cat confdefs.h >>conftest.$ac_ext
14402 cat >>conftest.$ac_ext <<_ACEOF
14403 /* end confdefs.h.  */
14404 #include <$ac_header>
14405 _ACEOF
14406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14407   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14408   ac_status=$?
14409   grep -v '^ *+' conftest.er1 >conftest.err
14410   rm -f conftest.er1
14411   cat conftest.err >&5
14412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413   (exit $ac_status); } >/dev/null; then
14414   if test -s conftest.err; then
14415     ac_cpp_err=$ac_c_preproc_warn_flag
14416   else
14417     ac_cpp_err=
14418   fi
14419 else
14420   ac_cpp_err=yes
14421 fi
14422 if test -z "$ac_cpp_err"; then
14423   ac_header_preproc=yes
14424 else
14425   echo "$as_me: failed program was:" >&5
14426 sed 's/^/| /' conftest.$ac_ext >&5
14427
14428   ac_header_preproc=no
14429 fi
14430 rm -f conftest.err conftest.$ac_ext
14431 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14432 echo "${ECHO_T}$ac_header_preproc" >&6
14433
14434 # So?  What about this header?
14435 case $ac_header_compiler:$ac_header_preproc in
14436   yes:no )
14437     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14438 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14439     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14441     (
14442       cat <<\_ASBOX
14443 ## ------------------------------------ ##
14444 ## Report this to bug-autoconf@gnu.org. ##
14445 ## ------------------------------------ ##
14446 _ASBOX
14447     ) |
14448       sed "s/^/$as_me: WARNING:     /" >&2
14449     ;;
14450   no:yes )
14451     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14453     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14454 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14455     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14457     (
14458       cat <<\_ASBOX
14459 ## ------------------------------------ ##
14460 ## Report this to bug-autoconf@gnu.org. ##
14461 ## ------------------------------------ ##
14462 _ASBOX
14463     ) |
14464       sed "s/^/$as_me: WARNING:     /" >&2
14465     ;;
14466 esac
14467 echo "$as_me:$LINENO: checking for $ac_header" >&5
14468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14469 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14470   echo $ECHO_N "(cached) $ECHO_C" >&6
14471 else
14472   eval "$as_ac_Header=$ac_header_preproc"
14473 fi
14474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14475 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14476
14477 fi
14478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14479   cat >>confdefs.h <<_ACEOF
14480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14481 _ACEOF
14482
14483 fi
14484
14485 done
14486
14487
14488
14489
14490
14491 for ac_func in iswalnum iswalpha  iswcntrl iswdigit
14492 do
14493 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14494 echo "$as_me:$LINENO: checking for $ac_func" >&5
14495 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14496 if eval "test \"\${$as_ac_var+set}\" = set"; then
14497   echo $ECHO_N "(cached) $ECHO_C" >&6
14498 else
14499   cat >conftest.$ac_ext <<_ACEOF
14500 #line $LINENO "configure"
14501 /* confdefs.h.  */
14502 _ACEOF
14503 cat confdefs.h >>conftest.$ac_ext
14504 cat >>conftest.$ac_ext <<_ACEOF
14505 /* end confdefs.h.  */
14506 /* System header to define __stub macros and hopefully few prototypes,
14507     which can conflict with char $ac_func (); below.
14508     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14509     <limits.h> exists even on freestanding compilers.  */
14510 #ifdef __STDC__
14511 # include <limits.h>
14512 #else
14513 # include <assert.h>
14514 #endif
14515 /* Override any gcc2 internal prototype to avoid an error.  */
14516 #ifdef __cplusplus
14517 extern "C"
14518 {
14519 #endif
14520 /* We use char because int might match the return type of a gcc2
14521    builtin and then its argument prototype would still apply.  */
14522 char $ac_func ();
14523 /* The GNU C library defines this for functions which it implements
14524     to always fail with ENOSYS.  Some functions are actually named
14525     something starting with __ and the normal name is an alias.  */
14526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14527 choke me
14528 #else
14529 char (*f) () = $ac_func;
14530 #endif
14531 #ifdef __cplusplus
14532 }
14533 #endif
14534
14535 int
14536 main ()
14537 {
14538 return f != $ac_func;
14539   ;
14540   return 0;
14541 }
14542 _ACEOF
14543 rm -f conftest.$ac_objext conftest$ac_exeext
14544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14545   (eval $ac_link) 2>&5
14546   ac_status=$?
14547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548   (exit $ac_status); } &&
14549          { ac_try='test -s conftest$ac_exeext'
14550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14551   (eval $ac_try) 2>&5
14552   ac_status=$?
14553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554   (exit $ac_status); }; }; then
14555   eval "$as_ac_var=yes"
14556 else
14557   echo "$as_me: failed program was:" >&5
14558 sed 's/^/| /' conftest.$ac_ext >&5
14559
14560 eval "$as_ac_var=no"
14561 fi
14562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14563 fi
14564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14565 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14566 if test `eval echo '${'$as_ac_var'}'` = yes; then
14567   cat >>confdefs.h <<_ACEOF
14568 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14569 _ACEOF
14570
14571 fi
14572 done
14573
14574
14575
14576
14577
14578
14579
14580 for ac_func in iswgraph iswlower iswprint iswpunct iswspace iswupper
14581 do
14582 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14583 echo "$as_me:$LINENO: checking for $ac_func" >&5
14584 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14585 if eval "test \"\${$as_ac_var+set}\" = set"; then
14586   echo $ECHO_N "(cached) $ECHO_C" >&6
14587 else
14588   cat >conftest.$ac_ext <<_ACEOF
14589 #line $LINENO "configure"
14590 /* confdefs.h.  */
14591 _ACEOF
14592 cat confdefs.h >>conftest.$ac_ext
14593 cat >>conftest.$ac_ext <<_ACEOF
14594 /* end confdefs.h.  */
14595 /* System header to define __stub macros and hopefully few prototypes,
14596     which can conflict with char $ac_func (); below.
14597     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14598     <limits.h> exists even on freestanding compilers.  */
14599 #ifdef __STDC__
14600 # include <limits.h>
14601 #else
14602 # include <assert.h>
14603 #endif
14604 /* Override any gcc2 internal prototype to avoid an error.  */
14605 #ifdef __cplusplus
14606 extern "C"
14607 {
14608 #endif
14609 /* We use char because int might match the return type of a gcc2
14610    builtin and then its argument prototype would still apply.  */
14611 char $ac_func ();
14612 /* The GNU C library defines this for functions which it implements
14613     to always fail with ENOSYS.  Some functions are actually named
14614     something starting with __ and the normal name is an alias.  */
14615 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14616 choke me
14617 #else
14618 char (*f) () = $ac_func;
14619 #endif
14620 #ifdef __cplusplus
14621 }
14622 #endif
14623
14624 int
14625 main ()
14626 {
14627 return f != $ac_func;
14628   ;
14629   return 0;
14630 }
14631 _ACEOF
14632 rm -f conftest.$ac_objext conftest$ac_exeext
14633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14634   (eval $ac_link) 2>&5
14635   ac_status=$?
14636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637   (exit $ac_status); } &&
14638          { ac_try='test -s conftest$ac_exeext'
14639   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14640   (eval $ac_try) 2>&5
14641   ac_status=$?
14642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643   (exit $ac_status); }; }; then
14644   eval "$as_ac_var=yes"
14645 else
14646   echo "$as_me: failed program was:" >&5
14647 sed 's/^/| /' conftest.$ac_ext >&5
14648
14649 eval "$as_ac_var=no"
14650 fi
14651 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14652 fi
14653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14654 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14655 if test `eval echo '${'$as_ac_var'}'` = yes; then
14656   cat >>confdefs.h <<_ACEOF
14657 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14658 _ACEOF
14659
14660 fi
14661 done
14662
14663
14664
14665
14666 for ac_func in iswxdigit towupper towlower
14667 do
14668 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14669 echo "$as_me:$LINENO: checking for $ac_func" >&5
14670 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14671 if eval "test \"\${$as_ac_var+set}\" = set"; then
14672   echo $ECHO_N "(cached) $ECHO_C" >&6
14673 else
14674   cat >conftest.$ac_ext <<_ACEOF
14675 #line $LINENO "configure"
14676 /* confdefs.h.  */
14677 _ACEOF
14678 cat confdefs.h >>conftest.$ac_ext
14679 cat >>conftest.$ac_ext <<_ACEOF
14680 /* end confdefs.h.  */
14681 /* System header to define __stub macros and hopefully few prototypes,
14682     which can conflict with char $ac_func (); below.
14683     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14684     <limits.h> exists even on freestanding compilers.  */
14685 #ifdef __STDC__
14686 # include <limits.h>
14687 #else
14688 # include <assert.h>
14689 #endif
14690 /* Override any gcc2 internal prototype to avoid an error.  */
14691 #ifdef __cplusplus
14692 extern "C"
14693 {
14694 #endif
14695 /* We use char because int might match the return type of a gcc2
14696    builtin and then its argument prototype would still apply.  */
14697 char $ac_func ();
14698 /* The GNU C library defines this for functions which it implements
14699     to always fail with ENOSYS.  Some functions are actually named
14700     something starting with __ and the normal name is an alias.  */
14701 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14702 choke me
14703 #else
14704 char (*f) () = $ac_func;
14705 #endif
14706 #ifdef __cplusplus
14707 }
14708 #endif
14709
14710 int
14711 main ()
14712 {
14713 return f != $ac_func;
14714   ;
14715   return 0;
14716 }
14717 _ACEOF
14718 rm -f conftest.$ac_objext conftest$ac_exeext
14719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14720   (eval $ac_link) 2>&5
14721   ac_status=$?
14722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723   (exit $ac_status); } &&
14724          { ac_try='test -s conftest$ac_exeext'
14725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14726   (eval $ac_try) 2>&5
14727   ac_status=$?
14728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729   (exit $ac_status); }; }; then
14730   eval "$as_ac_var=yes"
14731 else
14732   echo "$as_me: failed program was:" >&5
14733 sed 's/^/| /' conftest.$ac_ext >&5
14734
14735 eval "$as_ac_var=no"
14736 fi
14737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14738 fi
14739 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14740 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14741 if test `eval echo '${'$as_ac_var'}'` = yes; then
14742   cat >>confdefs.h <<_ACEOF
14743 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14744 _ACEOF
14745
14746 fi
14747 done
14748
14749
14750 echo "$as_me:$LINENO: checking for mbstate_t" >&5
14751 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
14752 if test "${mutt_cv_mbstate_t+set}" = set; then
14753   echo $ECHO_N "(cached) $ECHO_C" >&6
14754 else
14755   cat >conftest.$ac_ext <<_ACEOF
14756 #line $LINENO "configure"
14757 /* confdefs.h.  */
14758 _ACEOF
14759 cat confdefs.h >>conftest.$ac_ext
14760 cat >>conftest.$ac_ext <<_ACEOF
14761 /* end confdefs.h.  */
14762
14763 #include <stddef.h>
14764 #include <stdlib.h>
14765 #ifdef HAVE_WCHAR_H
14766 #include <wchar.h>
14767 #endif
14768
14769 int
14770 main ()
14771 {
14772  mbstate_t s; return 0;
14773   ;
14774   return 0;
14775 }
14776 _ACEOF
14777 rm -f conftest.$ac_objext
14778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14779   (eval $ac_compile) 2>&5
14780   ac_status=$?
14781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782   (exit $ac_status); } &&
14783          { ac_try='test -s conftest.$ac_objext'
14784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14785   (eval $ac_try) 2>&5
14786   ac_status=$?
14787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788   (exit $ac_status); }; }; then
14789   mutt_cv_mbstate_t=yes
14790 else
14791   echo "$as_me: failed program was:" >&5
14792 sed 's/^/| /' conftest.$ac_ext >&5
14793
14794 mutt_cv_mbstate_t=no
14795 fi
14796 rm -f conftest.$ac_objext conftest.$ac_ext
14797 fi
14798 echo "$as_me:$LINENO: result: $mutt_cv_mbstate_t" >&5
14799 echo "${ECHO_T}$mutt_cv_mbstate_t" >&6
14800
14801 if test "$mutt_cv_mbstate_t" = no; then
14802
14803 cat >>confdefs.h <<\_ACEOF
14804 #define mbstate_t int
14805 _ACEOF
14806
14807 fi
14808
14809 wc_funcs=maybe
14810
14811 # Check whether --with-wc-funcs or --without-wc-funcs was given.
14812 if test "${with_wc_funcs+set}" = set; then
14813   withval="$with_wc_funcs"
14814   wc_funcs=$withval
14815 fi;
14816
14817 if test "$wc_funcs" != yes -a "$wc_funcs" != no; then
14818         echo "$as_me:$LINENO: checking for wchar_t functions" >&5
14819 echo $ECHO_N "checking for wchar_t functions... $ECHO_C" >&6
14820 if test "${mutt_cv_wc_funcs+set}" = set; then
14821   echo $ECHO_N "(cached) $ECHO_C" >&6
14822 else
14823   mutt_cv_wc_funcs=no
14824                 cat >conftest.$ac_ext <<_ACEOF
14825 #line $LINENO "configure"
14826 /* confdefs.h.  */
14827 _ACEOF
14828 cat confdefs.h >>conftest.$ac_ext
14829 cat >>conftest.$ac_ext <<_ACEOF
14830 /* end confdefs.h.  */
14831
14832 #define _XOPEN_SOURCE 1
14833 #include <stddef.h>
14834 #include <stdlib.h>
14835 #ifdef HAVE_WCTYPE_H
14836 #include <wctype.h>
14837 #endif
14838 #ifdef HAVE_WCHAR_H
14839 #include <wchar.h>
14840 #endif
14841 int
14842 main ()
14843 {
14844 mbrtowc(0, 0, 0, 0); wctomb(0, 0); wcwidth(0);
14845         iswprint(0); iswspace(0); towlower(0); towupper(0); iswalnum(0)
14846   ;
14847   return 0;
14848 }
14849 _ACEOF
14850 rm -f conftest.$ac_objext conftest$ac_exeext
14851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14852   (eval $ac_link) 2>&5
14853   ac_status=$?
14854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855   (exit $ac_status); } &&
14856          { ac_try='test -s conftest$ac_exeext'
14857   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14858   (eval $ac_try) 2>&5
14859   ac_status=$?
14860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861   (exit $ac_status); }; }; then
14862   mutt_cv_wc_funcs=yes
14863 else
14864   echo "$as_me: failed program was:" >&5
14865 sed 's/^/| /' conftest.$ac_ext >&5
14866
14867 fi
14868 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14869 fi
14870 echo "$as_me:$LINENO: result: $mutt_cv_wc_funcs" >&5
14871 echo "${ECHO_T}$mutt_cv_wc_funcs" >&6
14872         wc_funcs=$mutt_cv_wc_funcs
14873 fi
14874
14875 if test $wc_funcs = yes; then
14876
14877 cat >>confdefs.h <<\_ACEOF
14878 #define HAVE_WC_FUNCS 1
14879 _ACEOF
14880
14881 fi
14882
14883 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
14884 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
14885 if test "${mutt_cv_langinfo_codeset+set}" = set; then
14886   echo $ECHO_N "(cached) $ECHO_C" >&6
14887 else
14888   cat >conftest.$ac_ext <<_ACEOF
14889 #line $LINENO "configure"
14890 /* confdefs.h.  */
14891 _ACEOF
14892 cat confdefs.h >>conftest.$ac_ext
14893 cat >>conftest.$ac_ext <<_ACEOF
14894 /* end confdefs.h.  */
14895 #include <langinfo.h>
14896 int
14897 main ()
14898 {
14899 char* cs = nl_langinfo(CODESET);
14900   ;
14901   return 0;
14902 }
14903 _ACEOF
14904 rm -f conftest.$ac_objext conftest$ac_exeext
14905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14906   (eval $ac_link) 2>&5
14907   ac_status=$?
14908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909   (exit $ac_status); } &&
14910          { ac_try='test -s conftest$ac_exeext'
14911   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14912   (eval $ac_try) 2>&5
14913   ac_status=$?
14914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915   (exit $ac_status); }; }; then
14916   mutt_cv_langinfo_codeset=yes
14917 else
14918   echo "$as_me: failed program was:" >&5
14919 sed 's/^/| /' conftest.$ac_ext >&5
14920
14921 mutt_cv_langinfo_codeset=no
14922 fi
14923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14924 fi
14925 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_codeset" >&5
14926 echo "${ECHO_T}$mutt_cv_langinfo_codeset" >&6
14927 if test $mutt_cv_langinfo_codeset = yes; then
14928
14929 cat >>confdefs.h <<\_ACEOF
14930 #define HAVE_LANGINFO_CODESET 1
14931 _ACEOF
14932
14933 fi
14934
14935 echo "$as_me:$LINENO: checking for nl_langinfo and YESEXPR" >&5
14936 echo $ECHO_N "checking for nl_langinfo and YESEXPR... $ECHO_C" >&6
14937 if test "${mutt_cv_langinfo_yesexpr+set}" = set; then
14938   echo $ECHO_N "(cached) $ECHO_C" >&6
14939 else
14940   cat >conftest.$ac_ext <<_ACEOF
14941 #line $LINENO "configure"
14942 /* confdefs.h.  */
14943 _ACEOF
14944 cat confdefs.h >>conftest.$ac_ext
14945 cat >>conftest.$ac_ext <<_ACEOF
14946 /* end confdefs.h.  */
14947 #include <langinfo.h>
14948 int
14949 main ()
14950 {
14951 char* cs = nl_langinfo(YESEXPR);
14952   ;
14953   return 0;
14954 }
14955 _ACEOF
14956 rm -f conftest.$ac_objext conftest$ac_exeext
14957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14958   (eval $ac_link) 2>&5
14959   ac_status=$?
14960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961   (exit $ac_status); } &&
14962          { ac_try='test -s conftest$ac_exeext'
14963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14964   (eval $ac_try) 2>&5
14965   ac_status=$?
14966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967   (exit $ac_status); }; }; then
14968   mutt_cv_langinfo_yesexpr=yes
14969 else
14970   echo "$as_me: failed program was:" >&5
14971 sed 's/^/| /' conftest.$ac_ext >&5
14972
14973 mutt_cv_langinfo_yesexpr=no
14974 fi
14975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14976 fi
14977 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_yesexpr" >&5
14978 echo "${ECHO_T}$mutt_cv_langinfo_yesexpr" >&6
14979 if test $mutt_cv_langinfo_yesexpr = yes; then
14980
14981 cat >>confdefs.h <<\_ACEOF
14982 #define HAVE_LANGINFO_YESEXPR 1
14983 _ACEOF
14984
14985 fi
14986
14987
14988
14989 # Check whether --with-libesmtp or --without-libesmtp was given.
14990 if test "${with_libesmtp+set}" = set; then
14991   withval="$with_libesmtp"
14992    if test "$with_libesmtp" != "no"
14993       then
14994         mutt_libesmtp_check_path="$PATH"
14995
14996         if test "$with_libesmtp" != "yes"
14997         then
14998           mutt_libesmtp_check_path="$tmp_path:$withval/bin"
14999         fi
15000
15001                 # Extract the first word of "libesmtp-config", so it can be a program name with args.
15002 set dummy libesmtp-config; ac_word=$2
15003 echo "$as_me:$LINENO: checking for $ac_word" >&5
15004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15005 if test "${ac_cv_path_mutt_libesmtp_config_path+set}" = set; then
15006   echo $ECHO_N "(cached) $ECHO_C" >&6
15007 else
15008   case $mutt_libesmtp_config_path in
15009   [\\/]* | ?:[\\/]*)
15010   ac_cv_path_mutt_libesmtp_config_path="$mutt_libesmtp_config_path" # Let the user override the test with a path.
15011   ;;
15012   *)
15013   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15014 for as_dir in $mutt_libesmtp_check_path
15015 do
15016   IFS=$as_save_IFS
15017   test -z "$as_dir" && as_dir=.
15018   for ac_exec_ext in '' $ac_executable_extensions; do
15019   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15020     ac_cv_path_mutt_libesmtp_config_path="$as_dir/$ac_word$ac_exec_ext"
15021     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15022     break 2
15023   fi
15024 done
15025 done
15026
15027   test -z "$ac_cv_path_mutt_libesmtp_config_path" && ac_cv_path_mutt_libesmtp_config_path="no"
15028   ;;
15029 esac
15030 fi
15031 mutt_libesmtp_config_path=$ac_cv_path_mutt_libesmtp_config_path
15032
15033 if test -n "$mutt_libesmtp_config_path"; then
15034   echo "$as_me:$LINENO: result: $mutt_libesmtp_config_path" >&5
15035 echo "${ECHO_T}$mutt_libesmtp_config_path" >&6
15036 else
15037   echo "$as_me:$LINENO: result: no" >&5
15038 echo "${ECHO_T}no" >&6
15039 fi
15040
15041
15042         if test "$mutt_libesmtp_config_path" = "no"
15043         then
15044           { { echo "$as_me:$LINENO: error: libesmtp-config binary not found." >&5
15045 echo "$as_me: error: libesmtp-config binary not found." >&2;}
15046    { (exit 1); exit 1; }; }
15047         fi
15048
15049                 mutt_libesmtp_cflags=`$mutt_libesmtp_config_path --cflags`
15050         mutt_libesmtp_libs=`$mutt_libesmtp_config_path --libs`
15051
15052                 temp_CFLAGS="$CFLAGS"
15053         CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
15054         if test "${ac_cv_header_libesmtp_h+set}" = set; then
15055   echo "$as_me:$LINENO: checking for libesmtp.h" >&5
15056 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
15057 if test "${ac_cv_header_libesmtp_h+set}" = set; then
15058   echo $ECHO_N "(cached) $ECHO_C" >&6
15059 fi
15060 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
15061 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
15062 else
15063   # Is the header compilable?
15064 echo "$as_me:$LINENO: checking libesmtp.h usability" >&5
15065 echo $ECHO_N "checking libesmtp.h usability... $ECHO_C" >&6
15066 cat >conftest.$ac_ext <<_ACEOF
15067 #line $LINENO "configure"
15068 /* confdefs.h.  */
15069 _ACEOF
15070 cat confdefs.h >>conftest.$ac_ext
15071 cat >>conftest.$ac_ext <<_ACEOF
15072 /* end confdefs.h.  */
15073 $ac_includes_default
15074 #include <libesmtp.h>
15075 _ACEOF
15076 rm -f conftest.$ac_objext
15077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15078   (eval $ac_compile) 2>&5
15079   ac_status=$?
15080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15081   (exit $ac_status); } &&
15082          { ac_try='test -s conftest.$ac_objext'
15083   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15084   (eval $ac_try) 2>&5
15085   ac_status=$?
15086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087   (exit $ac_status); }; }; then
15088   ac_header_compiler=yes
15089 else
15090   echo "$as_me: failed program was:" >&5
15091 sed 's/^/| /' conftest.$ac_ext >&5
15092
15093 ac_header_compiler=no
15094 fi
15095 rm -f conftest.$ac_objext conftest.$ac_ext
15096 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15097 echo "${ECHO_T}$ac_header_compiler" >&6
15098
15099 # Is the header present?
15100 echo "$as_me:$LINENO: checking libesmtp.h presence" >&5
15101 echo $ECHO_N "checking libesmtp.h presence... $ECHO_C" >&6
15102 cat >conftest.$ac_ext <<_ACEOF
15103 #line $LINENO "configure"
15104 /* confdefs.h.  */
15105 _ACEOF
15106 cat confdefs.h >>conftest.$ac_ext
15107 cat >>conftest.$ac_ext <<_ACEOF
15108 /* end confdefs.h.  */
15109 #include <libesmtp.h>
15110 _ACEOF
15111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15112   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15113   ac_status=$?
15114   grep -v '^ *+' conftest.er1 >conftest.err
15115   rm -f conftest.er1
15116   cat conftest.err >&5
15117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118   (exit $ac_status); } >/dev/null; then
15119   if test -s conftest.err; then
15120     ac_cpp_err=$ac_c_preproc_warn_flag
15121   else
15122     ac_cpp_err=
15123   fi
15124 else
15125   ac_cpp_err=yes
15126 fi
15127 if test -z "$ac_cpp_err"; then
15128   ac_header_preproc=yes
15129 else
15130   echo "$as_me: failed program was:" >&5
15131 sed 's/^/| /' conftest.$ac_ext >&5
15132
15133   ac_header_preproc=no
15134 fi
15135 rm -f conftest.err conftest.$ac_ext
15136 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15137 echo "${ECHO_T}$ac_header_preproc" >&6
15138
15139 # So?  What about this header?
15140 case $ac_header_compiler:$ac_header_preproc in
15141   yes:no )
15142     { echo "$as_me:$LINENO: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&5
15143 echo "$as_me: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15144     { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&5
15145 echo "$as_me: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&2;}
15146     (
15147       cat <<\_ASBOX
15148 ## ------------------------------------ ##
15149 ## Report this to bug-autoconf@gnu.org. ##
15150 ## ------------------------------------ ##
15151 _ASBOX
15152     ) |
15153       sed "s/^/$as_me: WARNING:     /" >&2
15154     ;;
15155   no:yes )
15156     { echo "$as_me:$LINENO: WARNING: libesmtp.h: present but cannot be compiled" >&5
15157 echo "$as_me: WARNING: libesmtp.h: present but cannot be compiled" >&2;}
15158     { echo "$as_me:$LINENO: WARNING: libesmtp.h: check for missing prerequisite headers?" >&5
15159 echo "$as_me: WARNING: libesmtp.h: check for missing prerequisite headers?" >&2;}
15160     { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&5
15161 echo "$as_me: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&2;}
15162     (
15163       cat <<\_ASBOX
15164 ## ------------------------------------ ##
15165 ## Report this to bug-autoconf@gnu.org. ##
15166 ## ------------------------------------ ##
15167 _ASBOX
15168     ) |
15169       sed "s/^/$as_me: WARNING:     /" >&2
15170     ;;
15171 esac
15172 echo "$as_me:$LINENO: checking for libesmtp.h" >&5
15173 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
15174 if test "${ac_cv_header_libesmtp_h+set}" = set; then
15175   echo $ECHO_N "(cached) $ECHO_C" >&6
15176 else
15177   ac_cv_header_libesmtp_h=$ac_header_preproc
15178 fi
15179 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
15180 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
15181
15182 fi
15183 if test $ac_cv_header_libesmtp_h = yes; then
15184   :
15185 else
15186   { { echo "$as_me:$LINENO: error: Could not find libesmtp.h" >&5
15187 echo "$as_me: error: Could not find libesmtp.h" >&2;}
15188    { (exit 1); exit 1; }; }
15189 fi
15190
15191
15192         CFLAGS="$temp_CFLAGS"
15193
15194                 temp_CFLAGS="$CFLAGS"
15195         temp_LIBS="$LIBS"
15196         CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
15197         LIBS="$LIBS $mutt_libesmtp_libs"
15198
15199 echo "$as_me:$LINENO: checking for smtp_create_session in -lesmtp" >&5
15200 echo $ECHO_N "checking for smtp_create_session in -lesmtp... $ECHO_C" >&6
15201 if test "${ac_cv_lib_esmtp_smtp_create_session+set}" = set; then
15202   echo $ECHO_N "(cached) $ECHO_C" >&6
15203 else
15204   ac_check_lib_save_LIBS=$LIBS
15205 LIBS="-lesmtp  $LIBS"
15206 cat >conftest.$ac_ext <<_ACEOF
15207 #line $LINENO "configure"
15208 /* confdefs.h.  */
15209 _ACEOF
15210 cat confdefs.h >>conftest.$ac_ext
15211 cat >>conftest.$ac_ext <<_ACEOF
15212 /* end confdefs.h.  */
15213
15214 /* Override any gcc2 internal prototype to avoid an error.  */
15215 #ifdef __cplusplus
15216 extern "C"
15217 #endif
15218 /* We use char because int might match the return type of a gcc2
15219    builtin and then its argument prototype would still apply.  */
15220 char smtp_create_session ();
15221 int
15222 main ()
15223 {
15224 smtp_create_session ();
15225   ;
15226   return 0;
15227 }
15228 _ACEOF
15229 rm -f conftest.$ac_objext conftest$ac_exeext
15230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15231   (eval $ac_link) 2>&5
15232   ac_status=$?
15233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234   (exit $ac_status); } &&
15235          { ac_try='test -s conftest$ac_exeext'
15236   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15237   (eval $ac_try) 2>&5
15238   ac_status=$?
15239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15240   (exit $ac_status); }; }; then
15241   ac_cv_lib_esmtp_smtp_create_session=yes
15242 else
15243   echo "$as_me: failed program was:" >&5
15244 sed 's/^/| /' conftest.$ac_ext >&5
15245
15246 ac_cv_lib_esmtp_smtp_create_session=no
15247 fi
15248 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15249 LIBS=$ac_check_lib_save_LIBS
15250 fi
15251 echo "$as_me:$LINENO: result: $ac_cv_lib_esmtp_smtp_create_session" >&5
15252 echo "${ECHO_T}$ac_cv_lib_esmtp_smtp_create_session" >&6
15253 if test $ac_cv_lib_esmtp_smtp_create_session = yes; then
15254   cat >>confdefs.h <<_ACEOF
15255 #define HAVE_LIBESMTP 1
15256 _ACEOF
15257
15258   LIBS="-lesmtp $LIBS"
15259
15260 else
15261   { { echo "$as_me:$LINENO: error: Could not find libesmtp" >&5
15262 echo "$as_me: error: Could not find libesmtp" >&2;}
15263    { (exit 1); exit 1; }; }
15264 fi
15265
15266         CFLAGS="$temp_CFLAGS"
15267         LIBS="$temp_LIBS"
15268
15269                         use_libesmtp=yes
15270       fi
15271
15272
15273 fi;
15274
15275 if test x$use_libesmtp = xyes; then
15276     CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
15277     MUTTLIBS="$MUTTLIBS $mutt_libesmtp_libs"
15278     MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_libesmtp.o"
15279
15280
15281 cat >>confdefs.h <<\_ACEOF
15282 #define USE_LIBESMTP 1
15283 _ACEOF
15284
15285 fi
15286
15287                                                                                                     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"
15288 cat >confcache <<\_ACEOF
15289 # This file is a shell script that caches the results of configure
15290 # tests run on this system so they can be shared between configure
15291 # scripts and configure runs, see configure's option --config-cache.
15292 # It is not useful on other systems.  If it contains results you don't
15293 # want to keep, you may remove or edit it.
15294 #
15295 # config.status only pays attention to the cache file if you give it
15296 # the --recheck option to rerun configure.
15297 #
15298 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15299 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15300 # following values.
15301
15302 _ACEOF
15303
15304 # The following way of writing the cache mishandles newlines in values,
15305 # but we know of no workaround that is simple, portable, and efficient.
15306 # So, don't put newlines in cache variables' values.
15307 # Ultrix sh set writes to stderr and can't be redirected directly,
15308 # and sets the high bit in the cache file unless we assign to the vars.
15309 {
15310   (set) 2>&1 |
15311     case `(ac_space=' '; set | grep ac_space) 2>&1` in
15312     *ac_space=\ *)
15313       # `set' does not quote correctly, so add quotes (double-quote
15314       # substitution turns \\\\ into \\, and sed turns \\ into \).
15315       sed -n \
15316         "s/'/'\\\\''/g;
15317           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15318       ;;
15319     *)
15320       # `set' quotes correctly as required by POSIX, so do not add quotes.
15321       sed -n \
15322         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
15323       ;;
15324     esac;
15325 } |
15326   sed '
15327      t clear
15328      : clear
15329      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15330      t end
15331      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15332      : end' >>confcache
15333 if diff $cache_file confcache >/dev/null 2>&1; then :; else
15334   if test -w $cache_file; then
15335     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
15336     cat confcache >$cache_file
15337   else
15338     echo "not updating unwritable cache $cache_file"
15339   fi
15340 fi
15341 rm -f confcache
15342
15343 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15344 # Let make expand exec_prefix.
15345 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15346
15347 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15348 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15349 # trailing colons and then remove the whole line if VPATH becomes empty
15350 # (actually we leave an empty line to preserve line numbers).
15351 if test "x$srcdir" = x.; then
15352   ac_vpsub='/^[         ]*VPATH[        ]*=/{
15353 s/:*\$(srcdir):*/:/;
15354 s/:*\${srcdir}:*/:/;
15355 s/:*@srcdir@:*/:/;
15356 s/^\([^=]*=[    ]*\):*/\1/;
15357 s/:*$//;
15358 s/^[^=]*=[      ]*$//;
15359 }'
15360 fi
15361
15362 DEFS=-DHAVE_CONFIG_H
15363
15364 ac_libobjs=
15365 ac_ltlibobjs=
15366 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15367   # 1. Remove the extension, and $U if already installed.
15368   ac_i=`echo "$ac_i" |
15369          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
15370   # 2. Add them.
15371   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
15372   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
15373 done
15374 LIBOBJS=$ac_libobjs
15375
15376 LTLIBOBJS=$ac_ltlibobjs
15377
15378
15379 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15380   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
15381 Usually this means the macro was only invoked conditionally." >&5
15382 echo "$as_me: error: conditional \"AMDEP\" was never defined.
15383 Usually this means the macro was only invoked conditionally." >&2;}
15384    { (exit 1); exit 1; }; }
15385 fi
15386 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15387   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
15388 Usually this means the macro was only invoked conditionally." >&5
15389 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
15390 Usually this means the macro was only invoked conditionally." >&2;}
15391    { (exit 1); exit 1; }; }
15392 fi
15393 if test -z "${BUILD_IMAP_TRUE}" && test -z "${BUILD_IMAP_FALSE}"; then
15394   { { echo "$as_me:$LINENO: error: conditional \"BUILD_IMAP\" was never defined.
15395 Usually this means the macro was only invoked conditionally." >&5
15396 echo "$as_me: error: conditional \"BUILD_IMAP\" was never defined.
15397 Usually this means the macro was only invoked conditionally." >&2;}
15398    { (exit 1); exit 1; }; }
15399 fi
15400 if test -z "${USE_GSS_TRUE}" && test -z "${USE_GSS_FALSE}"; then
15401   { { echo "$as_me:$LINENO: error: conditional \"USE_GSS\" was never defined.
15402 Usually this means the macro was only invoked conditionally." >&5
15403 echo "$as_me: error: conditional \"USE_GSS\" was never defined.
15404 Usually this means the macro was only invoked conditionally." >&2;}
15405    { (exit 1); exit 1; }; }
15406 fi
15407 if test -z "${USE_SSL_TRUE}" && test -z "${USE_SSL_FALSE}"; then
15408   { { echo "$as_me:$LINENO: error: conditional \"USE_SSL\" was never defined.
15409 Usually this means the macro was only invoked conditionally." >&5
15410 echo "$as_me: error: conditional \"USE_SSL\" was never defined.
15411 Usually this means the macro was only invoked conditionally." >&2;}
15412    { (exit 1); exit 1; }; }
15413 fi
15414 if test -z "${USE_SASL_TRUE}" && test -z "${USE_SASL_FALSE}"; then
15415   { { echo "$as_me:$LINENO: error: conditional \"USE_SASL\" was never defined.
15416 Usually this means the macro was only invoked conditionally." >&5
15417 echo "$as_me: error: conditional \"USE_SASL\" was never defined.
15418 Usually this means the macro was only invoked conditionally." >&2;}
15419    { (exit 1); exit 1; }; }
15420 fi
15421 if test -z "${USE_SASL_TRUE}" && test -z "${USE_SASL_FALSE}"; then
15422   { { echo "$as_me:$LINENO: error: conditional \"USE_SASL\" was never defined.
15423 Usually this means the macro was only invoked conditionally." >&5
15424 echo "$as_me: error: conditional \"USE_SASL\" was never defined.
15425 Usually this means the macro was only invoked conditionally." >&2;}
15426    { (exit 1); exit 1; }; }
15427 fi
15428
15429 : ${CONFIG_STATUS=./config.status}
15430 ac_clean_files_save=$ac_clean_files
15431 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15432 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15433 echo "$as_me: creating $CONFIG_STATUS" >&6;}
15434 cat >$CONFIG_STATUS <<_ACEOF
15435 #! $SHELL
15436 # Generated by $as_me.
15437 # Run this file to recreate the current configuration.
15438 # Compiler output produced by configure, useful for debugging
15439 # configure, is in config.log if it exists.
15440
15441 debug=false
15442 ac_cs_recheck=false
15443 ac_cs_silent=false
15444 SHELL=\${CONFIG_SHELL-$SHELL}
15445 _ACEOF
15446
15447 cat >>$CONFIG_STATUS <<\_ACEOF
15448 ## --------------------- ##
15449 ## M4sh Initialization.  ##
15450 ## --------------------- ##
15451
15452 # Be Bourne compatible
15453 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15454   emulate sh
15455   NULLCMD=:
15456   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15457   # is contrary to our usage.  Disable this feature.
15458   alias -g '${1+"$@"}'='"$@"'
15459 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
15460   set -o posix
15461 fi
15462
15463 # Support unset when possible.
15464 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
15465   as_unset=unset
15466 else
15467   as_unset=false
15468 fi
15469
15470
15471 # Work around bugs in pre-3.0 UWIN ksh.
15472 $as_unset ENV MAIL MAILPATH
15473 PS1='$ '
15474 PS2='> '
15475 PS4='+ '
15476
15477 # NLS nuisances.
15478 for as_var in \
15479   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15480   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15481   LC_TELEPHONE LC_TIME
15482 do
15483   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
15484     eval $as_var=C; export $as_var
15485   else
15486     $as_unset $as_var
15487   fi
15488 done
15489
15490 # Required to use basename.
15491 if expr a : '\(a\)' >/dev/null 2>&1; then
15492   as_expr=expr
15493 else
15494   as_expr=false
15495 fi
15496
15497 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
15498   as_basename=basename
15499 else
15500   as_basename=false
15501 fi
15502
15503
15504 # Name of the executable.
15505 as_me=`$as_basename "$0" ||
15506 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15507          X"$0" : 'X\(//\)$' \| \
15508          X"$0" : 'X\(/\)$' \| \
15509          .     : '\(.\)' 2>/dev/null ||
15510 echo X/"$0" |
15511     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
15512           /^X\/\(\/\/\)$/{ s//\1/; q; }
15513           /^X\/\(\/\).*/{ s//\1/; q; }
15514           s/.*/./; q'`
15515
15516
15517 # PATH needs CR, and LINENO needs CR and PATH.
15518 # Avoid depending upon Character Ranges.
15519 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15520 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15521 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15522 as_cr_digits='0123456789'
15523 as_cr_alnum=$as_cr_Letters$as_cr_digits
15524
15525 # The user is always right.
15526 if test "${PATH_SEPARATOR+set}" != set; then
15527   echo "#! /bin/sh" >conf$$.sh
15528   echo  "exit 0"   >>conf$$.sh
15529   chmod +x conf$$.sh
15530   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15531     PATH_SEPARATOR=';'
15532   else
15533     PATH_SEPARATOR=:
15534   fi
15535   rm -f conf$$.sh
15536 fi
15537
15538
15539   as_lineno_1=$LINENO
15540   as_lineno_2=$LINENO
15541   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15542   test "x$as_lineno_1" != "x$as_lineno_2" &&
15543   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
15544   # Find who we are.  Look in the path if we contain no path at all
15545   # relative or not.
15546   case $0 in
15547     *[\\/]* ) as_myself=$0 ;;
15548     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15549 for as_dir in $PATH
15550 do
15551   IFS=$as_save_IFS
15552   test -z "$as_dir" && as_dir=.
15553   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15554 done
15555
15556        ;;
15557   esac
15558   # We did not find ourselves, most probably we were run as `sh COMMAND'
15559   # in which case we are not to be found in the path.
15560   if test "x$as_myself" = x; then
15561     as_myself=$0
15562   fi
15563   if test ! -f "$as_myself"; then
15564     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
15565 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
15566    { (exit 1); exit 1; }; }
15567   fi
15568   case $CONFIG_SHELL in
15569   '')
15570     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15571 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
15572 do
15573   IFS=$as_save_IFS
15574   test -z "$as_dir" && as_dir=.
15575   for as_base in sh bash ksh sh5; do
15576          case $as_dir in
15577          /*)
15578            if ("$as_dir/$as_base" -c '
15579   as_lineno_1=$LINENO
15580   as_lineno_2=$LINENO
15581   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
15582   test "x$as_lineno_1" != "x$as_lineno_2" &&
15583   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
15584              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
15585              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
15586              CONFIG_SHELL=$as_dir/$as_base
15587              export CONFIG_SHELL
15588              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
15589            fi;;
15590          esac
15591        done
15592 done
15593 ;;
15594   esac
15595
15596   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15597   # uniformly replaced by the line number.  The first 'sed' inserts a
15598   # line-number line before each line; the second 'sed' does the real
15599   # work.  The second script uses 'N' to pair each line-number line
15600   # with the numbered line, and appends trailing '-' during
15601   # substitution so that $LINENO is not a special case at line end.
15602   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
15603   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
15604   sed '=' <$as_myself |
15605     sed '
15606       N
15607       s,$,-,
15608       : loop
15609       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
15610       t loop
15611       s,-$,,
15612       s,^['$as_cr_digits']*\n,,
15613     ' >$as_me.lineno &&
15614   chmod +x $as_me.lineno ||
15615     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
15616 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
15617    { (exit 1); exit 1; }; }
15618
15619   # Don't try to exec as it changes $[0], causing all sort of problems
15620   # (the dirname of $[0] is not the place where we might find the
15621   # original and so on.  Autoconf is especially sensible to this).
15622   . ./$as_me.lineno
15623   # Exit status is that of the last command.
15624   exit
15625 }
15626
15627
15628 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
15629   *c*,-n*) ECHO_N= ECHO_C='
15630 ' ECHO_T='      ' ;;
15631   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
15632   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
15633 esac
15634
15635 if expr a : '\(a\)' >/dev/null 2>&1; then
15636   as_expr=expr
15637 else
15638   as_expr=false
15639 fi
15640
15641 rm -f conf$$ conf$$.exe conf$$.file
15642 echo >conf$$.file
15643 if ln -s conf$$.file conf$$ 2>/dev/null; then
15644   # We could just check for DJGPP; but this test a) works b) is more generic
15645   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
15646   if test -f conf$$.exe; then
15647     # Don't use ln at all; we don't have any links
15648     as_ln_s='cp -p'
15649   else
15650     as_ln_s='ln -s'
15651   fi
15652 elif ln conf$$.file conf$$ 2>/dev/null; then
15653   as_ln_s=ln
15654 else
15655   as_ln_s='cp -p'
15656 fi
15657 rm -f conf$$ conf$$.exe conf$$.file
15658
15659 if mkdir -p . 2>/dev/null; then
15660   as_mkdir_p=:
15661 else
15662   as_mkdir_p=false
15663 fi
15664
15665 as_executable_p="test -f"
15666
15667 # Sed expression to map a string onto a valid CPP name.
15668 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
15669
15670 # Sed expression to map a string onto a valid variable name.
15671 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
15672
15673
15674 # IFS
15675 # We need space, tab and new line, in precisely that order.
15676 as_nl='
15677 '
15678 IFS="   $as_nl"
15679
15680 # CDPATH.
15681 $as_unset CDPATH
15682
15683 exec 6>&1
15684
15685 # Open the log real soon, to keep \$[0] and so on meaningful, and to
15686 # report actual input values of CONFIG_FILES etc. instead of their
15687 # values after options handling.  Logging --version etc. is OK.
15688 exec 5>>config.log
15689 {
15690   echo
15691   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15692 ## Running $as_me. ##
15693 _ASBOX
15694 } >&5
15695 cat >&5 <<_CSEOF
15696
15697 This file was extended by $as_me, which was
15698 generated by GNU Autoconf 2.57.  Invocation command line was
15699
15700   CONFIG_FILES    = $CONFIG_FILES
15701   CONFIG_HEADERS  = $CONFIG_HEADERS
15702   CONFIG_LINKS    = $CONFIG_LINKS
15703   CONFIG_COMMANDS = $CONFIG_COMMANDS
15704   $ $0 $@
15705
15706 _CSEOF
15707 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
15708 echo >&5
15709 _ACEOF
15710
15711 # Files that config.status was made for.
15712 if test -n "$ac_config_files"; then
15713   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
15714 fi
15715
15716 if test -n "$ac_config_headers"; then
15717   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
15718 fi
15719
15720 if test -n "$ac_config_links"; then
15721   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
15722 fi
15723
15724 if test -n "$ac_config_commands"; then
15725   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
15726 fi
15727
15728 cat >>$CONFIG_STATUS <<\_ACEOF
15729
15730 ac_cs_usage="\
15731 \`$as_me' instantiates files from templates according to the
15732 current configuration.
15733
15734 Usage: $0 [OPTIONS] [FILE]...
15735
15736   -h, --help       print this help, then exit
15737   -V, --version    print version number, then exit
15738   -q, --quiet      do not print progress messages
15739   -d, --debug      don't remove temporary files
15740       --recheck    update $as_me by reconfiguring in the same conditions
15741   --file=FILE[:TEMPLATE]
15742                    instantiate the configuration file FILE
15743   --header=FILE[:TEMPLATE]
15744                    instantiate the configuration header FILE
15745
15746 Configuration files:
15747 $config_files
15748
15749 Configuration headers:
15750 $config_headers
15751
15752 Configuration commands:
15753 $config_commands
15754
15755 Report bugs to <bug-autoconf@gnu.org>."
15756 _ACEOF
15757
15758 cat >>$CONFIG_STATUS <<_ACEOF
15759 ac_cs_version="\\
15760 config.status
15761 configured by $0, generated by GNU Autoconf 2.57,
15762   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
15763
15764 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
15765 Free Software Foundation, Inc.
15766 This config.status script is free software; the Free Software Foundation
15767 gives unlimited permission to copy, distribute and modify it."
15768 srcdir=$srcdir
15769 INSTALL="$INSTALL"
15770 _ACEOF
15771
15772 cat >>$CONFIG_STATUS <<\_ACEOF
15773 # If no file are specified by the user, then we need to provide default
15774 # value.  By we need to know if files were specified by the user.
15775 ac_need_defaults=:
15776 while test $# != 0
15777 do
15778   case $1 in
15779   --*=*)
15780     ac_option=`expr "x$1" : 'x\([^=]*\)='`
15781     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
15782     ac_shift=:
15783     ;;
15784   -*)
15785     ac_option=$1
15786     ac_optarg=$2
15787     ac_shift=shift
15788     ;;
15789   *) # This is not an option, so the user has probably given explicit
15790      # arguments.
15791      ac_option=$1
15792      ac_need_defaults=false;;
15793   esac
15794
15795   case $ac_option in
15796   # Handling of the options.
15797 _ACEOF
15798 cat >>$CONFIG_STATUS <<\_ACEOF
15799   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15800     ac_cs_recheck=: ;;
15801   --version | --vers* | -V )
15802     echo "$ac_cs_version"; exit 0 ;;
15803   --he | --h)
15804     # Conflict between --help and --header
15805     { { echo "$as_me:$LINENO: error: ambiguous option: $1
15806 Try \`$0 --help' for more information." >&5
15807 echo "$as_me: error: ambiguous option: $1
15808 Try \`$0 --help' for more information." >&2;}
15809    { (exit 1); exit 1; }; };;
15810   --help | --hel | -h )
15811     echo "$ac_cs_usage"; exit 0 ;;
15812   --debug | --d* | -d )
15813     debug=: ;;
15814   --file | --fil | --fi | --f )
15815     $ac_shift
15816     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15817     ac_need_defaults=false;;
15818   --header | --heade | --head | --hea )
15819     $ac_shift
15820     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
15821     ac_need_defaults=false;;
15822   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15823   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15824     ac_cs_silent=: ;;
15825
15826   # This is an error.
15827   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
15828 Try \`$0 --help' for more information." >&5
15829 echo "$as_me: error: unrecognized option: $1
15830 Try \`$0 --help' for more information." >&2;}
15831    { (exit 1); exit 1; }; } ;;
15832
15833   *) ac_config_targets="$ac_config_targets $1" ;;
15834
15835   esac
15836   shift
15837 done
15838
15839 ac_configure_extra_args=
15840
15841 if $ac_cs_silent; then
15842   exec 6>/dev/null
15843   ac_configure_extra_args="$ac_configure_extra_args --silent"
15844 fi
15845
15846 _ACEOF
15847 cat >>$CONFIG_STATUS <<_ACEOF
15848 if \$ac_cs_recheck; then
15849   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15850   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15851 fi
15852
15853 _ACEOF
15854
15855 cat >>$CONFIG_STATUS <<_ACEOF
15856 #
15857 # INIT-COMMANDS section.
15858 #
15859
15860 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15861
15862
15863 _ACEOF
15864
15865
15866
15867 cat >>$CONFIG_STATUS <<\_ACEOF
15868 for ac_config_target in $ac_config_targets
15869 do
15870   case "$ac_config_target" in
15871   # Handling of arguments.
15872   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15873   "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
15874   "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
15875   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
15876   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15877   "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
15878   "muttbug.sh" ) CONFIG_FILES="$CONFIG_FILES muttbug.sh" ;;
15879   "imap/Makefile" ) CONFIG_FILES="$CONFIG_FILES imap/Makefile" ;;
15880   "Muttrc.head" ) CONFIG_FILES="$CONFIG_FILES Muttrc.head" ;;
15881   "doc/instdoc.sh" ) CONFIG_FILES="$CONFIG_FILES doc/instdoc.sh" ;;
15882   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15883   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15884   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15885   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15886 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15887    { (exit 1); exit 1; }; };;
15888   esac
15889 done
15890
15891 # If the user did not use the arguments to specify the items to instantiate,
15892 # then the envvar interface is used.  Set only those that are not.
15893 # We use the long form for the default assignment because of an extremely
15894 # bizarre bug on SunOS 4.1.3.
15895 if $ac_need_defaults; then
15896   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15897   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15898   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15899 fi
15900
15901 # Have a temporary directory for convenience.  Make it in the build tree
15902 # simply because there is no reason to put it here, and in addition,
15903 # creating and moving files from /tmp can sometimes cause problems.
15904 # Create a temporary directory, and hook for its removal unless debugging.
15905 $debug ||
15906 {
15907   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
15908   trap '{ (exit 1); exit 1; }' 1 2 13 15
15909 }
15910
15911 # Create a (secure) tmp directory for tmp files.
15912
15913 {
15914   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
15915   test -n "$tmp" && test -d "$tmp"
15916 }  ||
15917 {
15918   tmp=./confstat$$-$RANDOM
15919   (umask 077 && mkdir $tmp)
15920 } ||
15921 {
15922    echo "$me: cannot create a temporary directory in ." >&2
15923    { (exit 1); exit 1; }
15924 }
15925
15926 _ACEOF
15927
15928 cat >>$CONFIG_STATUS <<_ACEOF
15929
15930 #
15931 # CONFIG_FILES section.
15932 #
15933
15934 # No need to generate the scripts if there are no CONFIG_FILES.
15935 # This happens for instance when ./config.status config.h
15936 if test -n "\$CONFIG_FILES"; then
15937   # Protect against being on the right side of a sed subst in config.status.
15938   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
15939    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
15940 s,@SHELL@,$SHELL,;t t
15941 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
15942 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
15943 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
15944 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
15945 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
15946 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
15947 s,@exec_prefix@,$exec_prefix,;t t
15948 s,@prefix@,$prefix,;t t
15949 s,@program_transform_name@,$program_transform_name,;t t
15950 s,@bindir@,$bindir,;t t
15951 s,@sbindir@,$sbindir,;t t
15952 s,@libexecdir@,$libexecdir,;t t
15953 s,@datadir@,$datadir,;t t
15954 s,@sysconfdir@,$sysconfdir,;t t
15955 s,@sharedstatedir@,$sharedstatedir,;t t
15956 s,@localstatedir@,$localstatedir,;t t
15957 s,@libdir@,$libdir,;t t
15958 s,@includedir@,$includedir,;t t
15959 s,@oldincludedir@,$oldincludedir,;t t
15960 s,@infodir@,$infodir,;t t
15961 s,@mandir@,$mandir,;t t
15962 s,@build_alias@,$build_alias,;t t
15963 s,@host_alias@,$host_alias,;t t
15964 s,@target_alias@,$target_alias,;t t
15965 s,@DEFS@,$DEFS,;t t
15966 s,@ECHO_C@,$ECHO_C,;t t
15967 s,@ECHO_N@,$ECHO_N,;t t
15968 s,@ECHO_T@,$ECHO_T,;t t
15969 s,@LIBS@,$LIBS,;t t
15970 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
15971 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
15972 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
15973 s,@CYGPATH_W@,$CYGPATH_W,;t t
15974 s,@PACKAGE@,$PACKAGE,;t t
15975 s,@VERSION@,$VERSION,;t t
15976 s,@ACLOCAL@,$ACLOCAL,;t t
15977 s,@AUTOCONF@,$AUTOCONF,;t t
15978 s,@AUTOMAKE@,$AUTOMAKE,;t t
15979 s,@AUTOHEADER@,$AUTOHEADER,;t t
15980 s,@MAKEINFO@,$MAKEINFO,;t t
15981 s,@AMTAR@,$AMTAR,;t t
15982 s,@install_sh@,$install_sh,;t t
15983 s,@STRIP@,$STRIP,;t t
15984 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
15985 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
15986 s,@AWK@,$AWK,;t t
15987 s,@SET_MAKE@,$SET_MAKE,;t t
15988 s,@am__leading_dot@,$am__leading_dot,;t t
15989 s,@build@,$build,;t t
15990 s,@build_cpu@,$build_cpu,;t t
15991 s,@build_vendor@,$build_vendor,;t t
15992 s,@build_os@,$build_os,;t t
15993 s,@host@,$host,;t t
15994 s,@host_cpu@,$host_cpu,;t t
15995 s,@host_vendor@,$host_vendor,;t t
15996 s,@host_os@,$host_os,;t t
15997 s,@CC@,$CC,;t t
15998 s,@CFLAGS@,$CFLAGS,;t t
15999 s,@LDFLAGS@,$LDFLAGS,;t t
16000 s,@CPPFLAGS@,$CPPFLAGS,;t t
16001 s,@ac_ct_CC@,$ac_ct_CC,;t t
16002 s,@EXEEXT@,$EXEEXT,;t t
16003 s,@OBJEXT@,$OBJEXT,;t t
16004 s,@DEPDIR@,$DEPDIR,;t t
16005 s,@am__include@,$am__include,;t t
16006 s,@am__quote@,$am__quote,;t t
16007 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16008 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16009 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16010 s,@CCDEPMODE@,$CCDEPMODE,;t t
16011 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
16012 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
16013 s,@CPP@,$CPP,;t t
16014 s,@EGREP@,$EGREP,;t t
16015 s,@U@,$U,;t t
16016 s,@ANSI2KNR@,$ANSI2KNR,;t t
16017 s,@RANLIB@,$RANLIB,;t t
16018 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16019 s,@AR@,$AR,;t t
16020 s,@ac_ct_AR@,$ac_ct_AR,;t t
16021 s,@DBX@,$DBX,;t t
16022 s,@GDB@,$GDB,;t t
16023 s,@SDB@,$SDB,;t t
16024 s,@DEBUGGER@,$DEBUGGER,;t t
16025 s,@SENDMAIL@,$SENDMAIL,;t t
16026 s,@OPS@,$OPS,;t t
16027 s,@PGPAUX_TARGET@,$PGPAUX_TARGET,;t t
16028 s,@SMIMEAUX_TARGET@,$SMIMEAUX_TARGET,;t t
16029 s,@SUBVERSION@,$SUBVERSION,;t t
16030 s,@ISPELL@,$ISPELL,;t t
16031 s,@LIBOBJS@,$LIBOBJS,;t t
16032 s,@DOTLOCK_TARGET@,$DOTLOCK_TARGET,;t t
16033 s,@docdir@,$docdir,;t t
16034 s,@DOTLOCK_GROUP@,$DOTLOCK_GROUP,;t t
16035 s,@DOTLOCK_PERMISSION@,$DOTLOCK_PERMISSION,;t t
16036 s,@BUILD_IMAP_TRUE@,$BUILD_IMAP_TRUE,;t t
16037 s,@BUILD_IMAP_FALSE@,$BUILD_IMAP_FALSE,;t t
16038 s,@KRB5CFGPATH@,$KRB5CFGPATH,;t t
16039 s,@USE_GSS_TRUE@,$USE_GSS_TRUE,;t t
16040 s,@USE_GSS_FALSE@,$USE_GSS_FALSE,;t t
16041 s,@USE_SSL_TRUE@,$USE_SSL_TRUE,;t t
16042 s,@USE_SSL_FALSE@,$USE_SSL_FALSE,;t t
16043 s,@USE_SASL_TRUE@,$USE_SASL_TRUE,;t t
16044 s,@USE_SASL_FALSE@,$USE_SASL_FALSE,;t t
16045 s,@MUTTLIBS@,$MUTTLIBS,;t t
16046 s,@MUTT_LIB_OBJECTS@,$MUTT_LIB_OBJECTS,;t t
16047 s,@LIBIMAP@,$LIBIMAP,;t t
16048 s,@LIBIMAPDEPS@,$LIBIMAPDEPS,;t t
16049 s,@ALLOCA@,$ALLOCA,;t t
16050 s,@GLIBC21@,$GLIBC21,;t t
16051 s,@LIBICONV@,$LIBICONV,;t t
16052 s,@USE_NLS@,$USE_NLS,;t t
16053 s,@MSGFMT@,$MSGFMT,;t t
16054 s,@GMSGFMT@,$GMSGFMT,;t t
16055 s,@XGETTEXT@,$XGETTEXT,;t t
16056 s,@INTLBISON@,$INTLBISON,;t t
16057 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
16058 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
16059 s,@CATALOGS@,$CATALOGS,;t t
16060 s,@CATOBJEXT@,$CATOBJEXT,;t t
16061 s,@GMOFILES@,$GMOFILES,;t t
16062 s,@INTLLIBS@,$INTLLIBS,;t t
16063 s,@INTLOBJS@,$INTLOBJS,;t t
16064 s,@POFILES@,$POFILES,;t t
16065 s,@POSUB@,$POSUB,;t t
16066 s,@DATADIRNAME@,$DATADIRNAME,;t t
16067 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
16068 s,@GENCAT@,$GENCAT,;t t
16069 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
16070 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
16071 s,@mutt_libesmtp_config_path@,$mutt_libesmtp_config_path,;t t
16072 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
16073 CEOF
16074
16075 _ACEOF
16076
16077   cat >>$CONFIG_STATUS <<\_ACEOF
16078   # Split the substitutions into bite-sized pieces for seds with
16079   # small command number limits, like on Digital OSF/1 and HP-UX.
16080   ac_max_sed_lines=48
16081   ac_sed_frag=1 # Number of current file.
16082   ac_beg=1 # First line for current file.
16083   ac_end=$ac_max_sed_lines # Line after last line for current file.
16084   ac_more_lines=:
16085   ac_sed_cmds=
16086   while $ac_more_lines; do
16087     if test $ac_beg -gt 1; then
16088       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16089     else
16090       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16091     fi
16092     if test ! -s $tmp/subs.frag; then
16093       ac_more_lines=false
16094     else
16095       # The purpose of the label and of the branching condition is to
16096       # speed up the sed processing (if there are no `@' at all, there
16097       # is no need to browse any of the substitutions).
16098       # These are the two extra sed commands mentioned above.
16099       (echo ':t
16100   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16101       if test -z "$ac_sed_cmds"; then
16102         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16103       else
16104         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16105       fi
16106       ac_sed_frag=`expr $ac_sed_frag + 1`
16107       ac_beg=$ac_end
16108       ac_end=`expr $ac_end + $ac_max_sed_lines`
16109     fi
16110   done
16111   if test -z "$ac_sed_cmds"; then
16112     ac_sed_cmds=cat
16113   fi
16114 fi # test -n "$CONFIG_FILES"
16115
16116 _ACEOF
16117 cat >>$CONFIG_STATUS <<\_ACEOF
16118 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16119   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16120   case $ac_file in
16121   - | *:- | *:-:* ) # input from stdin
16122         cat >$tmp/stdin
16123         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16124         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16125   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16126         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16127   * )   ac_file_in=$ac_file.in ;;
16128   esac
16129
16130   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16131   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16132 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16133          X"$ac_file" : 'X\(//\)[^/]' \| \
16134          X"$ac_file" : 'X\(//\)$' \| \
16135          X"$ac_file" : 'X\(/\)' \| \
16136          .     : '\(.\)' 2>/dev/null ||
16137 echo X"$ac_file" |
16138     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16139           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16140           /^X\(\/\/\)$/{ s//\1/; q; }
16141           /^X\(\/\).*/{ s//\1/; q; }
16142           s/.*/./; q'`
16143   { if $as_mkdir_p; then
16144     mkdir -p "$ac_dir"
16145   else
16146     as_dir="$ac_dir"
16147     as_dirs=
16148     while test ! -d "$as_dir"; do
16149       as_dirs="$as_dir $as_dirs"
16150       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16151 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16152          X"$as_dir" : 'X\(//\)[^/]' \| \
16153          X"$as_dir" : 'X\(//\)$' \| \
16154          X"$as_dir" : 'X\(/\)' \| \
16155          .     : '\(.\)' 2>/dev/null ||
16156 echo X"$as_dir" |
16157     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16158           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16159           /^X\(\/\/\)$/{ s//\1/; q; }
16160           /^X\(\/\).*/{ s//\1/; q; }
16161           s/.*/./; q'`
16162     done
16163     test ! -n "$as_dirs" || mkdir $as_dirs
16164   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16165 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16166    { (exit 1); exit 1; }; }; }
16167
16168   ac_builddir=.
16169
16170 if test "$ac_dir" != .; then
16171   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16172   # A "../" for each directory in $ac_dir_suffix.
16173   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16174 else
16175   ac_dir_suffix= ac_top_builddir=
16176 fi
16177
16178 case $srcdir in
16179   .)  # No --srcdir option.  We are building in place.
16180     ac_srcdir=.
16181     if test -z "$ac_top_builddir"; then
16182        ac_top_srcdir=.
16183     else
16184        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16185     fi ;;
16186   [\\/]* | ?:[\\/]* )  # Absolute path.
16187     ac_srcdir=$srcdir$ac_dir_suffix;
16188     ac_top_srcdir=$srcdir ;;
16189   *) # Relative path.
16190     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16191     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16192 esac
16193 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16194 # absolute.
16195 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16196 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16197 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16198 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16199
16200
16201   case $INSTALL in
16202   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16203   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
16204   esac
16205
16206   if test x"$ac_file" != x-; then
16207     { echo "$as_me:$LINENO: creating $ac_file" >&5
16208 echo "$as_me: creating $ac_file" >&6;}
16209     rm -f "$ac_file"
16210   fi
16211   # Let's still pretend it is `configure' which instantiates (i.e., don't
16212   # use $as_me), people would be surprised to read:
16213   #    /* config.h.  Generated by config.status.  */
16214   if test x"$ac_file" = x-; then
16215     configure_input=
16216   else
16217     configure_input="$ac_file.  "
16218   fi
16219   configure_input=$configure_input"Generated from `echo $ac_file_in |
16220                                      sed 's,.*/,,'` by configure."
16221
16222   # First look for the input files in the build tree, otherwise in the
16223   # src tree.
16224   ac_file_inputs=`IFS=:
16225     for f in $ac_file_in; do
16226       case $f in
16227       -) echo $tmp/stdin ;;
16228       [\\/$]*)
16229          # Absolute (can't be DOS-style, as IFS=:)
16230          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16231 echo "$as_me: error: cannot find input file: $f" >&2;}
16232    { (exit 1); exit 1; }; }
16233          echo $f;;
16234       *) # Relative
16235          if test -f "$f"; then
16236            # Build tree
16237            echo $f
16238          elif test -f "$srcdir/$f"; then
16239            # Source tree
16240            echo $srcdir/$f
16241          else
16242            # /dev/null tree
16243            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16244 echo "$as_me: error: cannot find input file: $f" >&2;}
16245    { (exit 1); exit 1; }; }
16246          fi;;
16247       esac
16248     done` || { (exit 1); exit 1; }
16249 _ACEOF
16250 cat >>$CONFIG_STATUS <<_ACEOF
16251   sed "$ac_vpsub
16252 $extrasub
16253 _ACEOF
16254 cat >>$CONFIG_STATUS <<\_ACEOF
16255 :t
16256 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16257 s,@configure_input@,$configure_input,;t t
16258 s,@srcdir@,$ac_srcdir,;t t
16259 s,@abs_srcdir@,$ac_abs_srcdir,;t t
16260 s,@top_srcdir@,$ac_top_srcdir,;t t
16261 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
16262 s,@builddir@,$ac_builddir,;t t
16263 s,@abs_builddir@,$ac_abs_builddir,;t t
16264 s,@top_builddir@,$ac_top_builddir,;t t
16265 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
16266 s,@INSTALL@,$ac_INSTALL,;t t
16267 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
16268   rm -f $tmp/stdin
16269   if test x"$ac_file" != x-; then
16270     mv $tmp/out $ac_file
16271   else
16272     cat $tmp/out
16273     rm -f $tmp/out
16274   fi
16275
16276 done
16277 _ACEOF
16278 cat >>$CONFIG_STATUS <<\_ACEOF
16279
16280 #
16281 # CONFIG_HEADER section.
16282 #
16283
16284 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
16285 # NAME is the cpp macro being defined and VALUE is the value it is being given.
16286 #
16287 # ac_d sets the value in "#define NAME VALUE" lines.
16288 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
16289 ac_dB='[        ].*$,\1#\2'
16290 ac_dC=' '
16291 ac_dD=',;t'
16292 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
16293 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
16294 ac_uB='$,\1#\2define\3'
16295 ac_uC=' '
16296 ac_uD=',;t'
16297
16298 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
16299   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16300   case $ac_file in
16301   - | *:- | *:-:* ) # input from stdin
16302         cat >$tmp/stdin
16303         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16304         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16305   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16306         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16307   * )   ac_file_in=$ac_file.in ;;
16308   esac
16309
16310   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
16311 echo "$as_me: creating $ac_file" >&6;}
16312
16313   # First look for the input files in the build tree, otherwise in the
16314   # src tree.
16315   ac_file_inputs=`IFS=:
16316     for f in $ac_file_in; do
16317       case $f in
16318       -) echo $tmp/stdin ;;
16319       [\\/$]*)
16320          # Absolute (can't be DOS-style, as IFS=:)
16321          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16322 echo "$as_me: error: cannot find input file: $f" >&2;}
16323    { (exit 1); exit 1; }; }
16324          echo $f;;
16325       *) # Relative
16326          if test -f "$f"; then
16327            # Build tree
16328            echo $f
16329          elif test -f "$srcdir/$f"; then
16330            # Source tree
16331            echo $srcdir/$f
16332          else
16333            # /dev/null tree
16334            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
16335 echo "$as_me: error: cannot find input file: $f" >&2;}
16336    { (exit 1); exit 1; }; }
16337          fi;;
16338       esac
16339     done` || { (exit 1); exit 1; }
16340   # Remove the trailing spaces.
16341   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
16342
16343 _ACEOF
16344
16345 # Transform confdefs.h into two sed scripts, `conftest.defines' and
16346 # `conftest.undefs', that substitutes the proper values into
16347 # config.h.in to produce config.h.  The first handles `#define'
16348 # templates, and the second `#undef' templates.
16349 # And first: Protect against being on the right side of a sed subst in
16350 # config.status.  Protect against being in an unquoted here document
16351 # in config.status.
16352 rm -f conftest.defines conftest.undefs
16353 # Using a here document instead of a string reduces the quoting nightmare.
16354 # Putting comments in sed scripts is not portable.
16355 #
16356 # `end' is used to avoid that the second main sed command (meant for
16357 # 0-ary CPP macros) applies to n-ary macro definitions.
16358 # See the Autoconf documentation for `clear'.
16359 cat >confdef2sed.sed <<\_ACEOF
16360 s/[\\&,]/\\&/g
16361 s,[\\$`],\\&,g
16362 t clear
16363 : clear
16364 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
16365 t end
16366 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
16367 : end
16368 _ACEOF
16369 # If some macros were called several times there might be several times
16370 # the same #defines, which is useless.  Nevertheless, we may not want to
16371 # sort them, since we want the *last* AC-DEFINE to be honored.
16372 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
16373 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
16374 rm -f confdef2sed.sed
16375
16376 # This sed command replaces #undef with comments.  This is necessary, for
16377 # example, in the case of _POSIX_SOURCE, which is predefined and required
16378 # on some systems where configure will not decide to define it.
16379 cat >>conftest.undefs <<\_ACEOF
16380 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
16381 _ACEOF
16382
16383 # Break up conftest.defines because some shells have a limit on the size
16384 # of here documents, and old seds have small limits too (100 cmds).
16385 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
16386 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
16387 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
16388 echo '  :' >>$CONFIG_STATUS
16389 rm -f conftest.tail
16390 while grep . conftest.defines >/dev/null
16391 do
16392   # Write a limited-size here document to $tmp/defines.sed.
16393   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
16394   # Speed up: don't consider the non `#define' lines.
16395   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
16396   # Work around the forget-to-reset-the-flag bug.
16397   echo 't clr' >>$CONFIG_STATUS
16398   echo ': clr' >>$CONFIG_STATUS
16399   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
16400   echo 'CEOF
16401   sed -f $tmp/defines.sed $tmp/in >$tmp/out
16402   rm -f $tmp/in
16403   mv $tmp/out $tmp/in
16404 ' >>$CONFIG_STATUS
16405   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
16406   rm -f conftest.defines
16407   mv conftest.tail conftest.defines
16408 done
16409 rm -f conftest.defines
16410 echo '  fi # grep' >>$CONFIG_STATUS
16411 echo >>$CONFIG_STATUS
16412
16413 # Break up conftest.undefs because some shells have a limit on the size
16414 # of here documents, and old seds have small limits too (100 cmds).
16415 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
16416 rm -f conftest.tail
16417 while grep . conftest.undefs >/dev/null
16418 do
16419   # Write a limited-size here document to $tmp/undefs.sed.
16420   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
16421   # Speed up: don't consider the non `#undef'
16422   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
16423   # Work around the forget-to-reset-the-flag bug.
16424   echo 't clr' >>$CONFIG_STATUS
16425   echo ': clr' >>$CONFIG_STATUS
16426   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
16427   echo 'CEOF
16428   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
16429   rm -f $tmp/in
16430   mv $tmp/out $tmp/in
16431 ' >>$CONFIG_STATUS
16432   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
16433   rm -f conftest.undefs
16434   mv conftest.tail conftest.undefs
16435 done
16436 rm -f conftest.undefs
16437
16438 cat >>$CONFIG_STATUS <<\_ACEOF
16439   # Let's still pretend it is `configure' which instantiates (i.e., don't
16440   # use $as_me), people would be surprised to read:
16441   #    /* config.h.  Generated by config.status.  */
16442   if test x"$ac_file" = x-; then
16443     echo "/* Generated by configure.  */" >$tmp/config.h
16444   else
16445     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
16446   fi
16447   cat $tmp/in >>$tmp/config.h
16448   rm -f $tmp/in
16449   if test x"$ac_file" != x-; then
16450     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
16451       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
16452 echo "$as_me: $ac_file is unchanged" >&6;}
16453     else
16454       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16455 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16456          X"$ac_file" : 'X\(//\)[^/]' \| \
16457          X"$ac_file" : 'X\(//\)$' \| \
16458          X"$ac_file" : 'X\(/\)' \| \
16459          .     : '\(.\)' 2>/dev/null ||
16460 echo X"$ac_file" |
16461     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16462           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16463           /^X\(\/\/\)$/{ s//\1/; q; }
16464           /^X\(\/\).*/{ s//\1/; q; }
16465           s/.*/./; q'`
16466       { if $as_mkdir_p; then
16467     mkdir -p "$ac_dir"
16468   else
16469     as_dir="$ac_dir"
16470     as_dirs=
16471     while test ! -d "$as_dir"; do
16472       as_dirs="$as_dir $as_dirs"
16473       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16474 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16475          X"$as_dir" : 'X\(//\)[^/]' \| \
16476          X"$as_dir" : 'X\(//\)$' \| \
16477          X"$as_dir" : 'X\(/\)' \| \
16478          .     : '\(.\)' 2>/dev/null ||
16479 echo X"$as_dir" |
16480     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16481           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16482           /^X\(\/\/\)$/{ s//\1/; q; }
16483           /^X\(\/\).*/{ s//\1/; q; }
16484           s/.*/./; q'`
16485     done
16486     test ! -n "$as_dirs" || mkdir $as_dirs
16487   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
16488 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
16489    { (exit 1); exit 1; }; }; }
16490
16491       rm -f $ac_file
16492       mv $tmp/config.h $ac_file
16493     fi
16494   else
16495     cat $tmp/config.h
16496     rm -f $tmp/config.h
16497   fi
16498 # Compute $ac_file's index in $config_headers.
16499 _am_stamp_count=1
16500 for _am_header in $config_headers :; do
16501   case $_am_header in
16502     $ac_file | $ac_file:* )
16503       break ;;
16504     * )
16505       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16506   esac
16507 done
16508 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
16509 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16510          X$ac_file : 'X\(//\)[^/]' \| \
16511          X$ac_file : 'X\(//\)$' \| \
16512          X$ac_file : 'X\(/\)' \| \
16513          .     : '\(.\)' 2>/dev/null ||
16514 echo X$ac_file |
16515     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16516           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16517           /^X\(\/\/\)$/{ s//\1/; q; }
16518           /^X\(\/\).*/{ s//\1/; q; }
16519           s/.*/./; q'`/stamp-h$_am_stamp_count
16520 done
16521 _ACEOF
16522 cat >>$CONFIG_STATUS <<\_ACEOF
16523
16524 #
16525 # CONFIG_COMMANDS section.
16526 #
16527 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
16528   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
16529   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
16530   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
16531 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16532          X"$ac_dest" : 'X\(//\)[^/]' \| \
16533          X"$ac_dest" : 'X\(//\)$' \| \
16534          X"$ac_dest" : 'X\(/\)' \| \
16535          .     : '\(.\)' 2>/dev/null ||
16536 echo X"$ac_dest" |
16537     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16538           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16539           /^X\(\/\/\)$/{ s//\1/; q; }
16540           /^X\(\/\).*/{ s//\1/; q; }
16541           s/.*/./; q'`
16542   ac_builddir=.
16543
16544 if test "$ac_dir" != .; then
16545   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16546   # A "../" for each directory in $ac_dir_suffix.
16547   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16548 else
16549   ac_dir_suffix= ac_top_builddir=
16550 fi
16551
16552 case $srcdir in
16553   .)  # No --srcdir option.  We are building in place.
16554     ac_srcdir=.
16555     if test -z "$ac_top_builddir"; then
16556        ac_top_srcdir=.
16557     else
16558        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
16559     fi ;;
16560   [\\/]* | ?:[\\/]* )  # Absolute path.
16561     ac_srcdir=$srcdir$ac_dir_suffix;
16562     ac_top_srcdir=$srcdir ;;
16563   *) # Relative path.
16564     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
16565     ac_top_srcdir=$ac_top_builddir$srcdir ;;
16566 esac
16567 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
16568 # absolute.
16569 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
16570 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
16571 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
16572 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
16573
16574
16575   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
16576 echo "$as_me: executing $ac_dest commands" >&6;}
16577   case $ac_dest in
16578     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
16579   # Strip MF so we end up with the name of the file.
16580   mf=`echo "$mf" | sed -e 's/:.*$//'`
16581   # Check whether this is an Automake generated Makefile or not.
16582   # We used to match only the files named `Makefile.in', but
16583   # some people rename them; so instead we look at the file content.
16584   # Grep'ing the first line is not enough: some people post-process
16585   # each Makefile.in and add a new line on top of each file to say so.
16586   # So let's grep whole file.
16587   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
16588     dirpart=`(dirname "$mf") 2>/dev/null ||
16589 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16590          X"$mf" : 'X\(//\)[^/]' \| \
16591          X"$mf" : 'X\(//\)$' \| \
16592          X"$mf" : 'X\(/\)' \| \
16593          .     : '\(.\)' 2>/dev/null ||
16594 echo X"$mf" |
16595     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16596           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16597           /^X\(\/\/\)$/{ s//\1/; q; }
16598           /^X\(\/\).*/{ s//\1/; q; }
16599           s/.*/./; q'`
16600   else
16601     continue
16602   fi
16603   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
16604   # Extract the definition of DEP_FILES from the Makefile without
16605   # running `make'.
16606   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
16607   test -z "$DEPDIR" && continue
16608   # When using ansi2knr, U may be empty or an underscore; expand it
16609   U=`sed -n -e '/^U = / s///p' < "$mf"`
16610   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
16611   # We invoke sed twice because it is the simplest approach to
16612   # changing $(DEPDIR) to its actual value in the expansion.
16613   for file in `sed -n -e '
16614     /^DEP_FILES = .*\\\\$/ {
16615       s/^DEP_FILES = //
16616       :loop
16617         s/\\\\$//
16618         p
16619         n
16620         /\\\\$/ b loop
16621       p
16622     }
16623     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
16624        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16625     # Make sure the directory exists.
16626     test -f "$dirpart/$file" && continue
16627     fdir=`(dirname "$file") 2>/dev/null ||
16628 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16629          X"$file" : 'X\(//\)[^/]' \| \
16630          X"$file" : 'X\(//\)$' \| \
16631          X"$file" : 'X\(/\)' \| \
16632          .     : '\(.\)' 2>/dev/null ||
16633 echo X"$file" |
16634     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16635           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16636           /^X\(\/\/\)$/{ s//\1/; q; }
16637           /^X\(\/\).*/{ s//\1/; q; }
16638           s/.*/./; q'`
16639     { if $as_mkdir_p; then
16640     mkdir -p $dirpart/$fdir
16641   else
16642     as_dir=$dirpart/$fdir
16643     as_dirs=
16644     while test ! -d "$as_dir"; do
16645       as_dirs="$as_dir $as_dirs"
16646       as_dir=`(dirname "$as_dir") 2>/dev/null ||
16647 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16648          X"$as_dir" : 'X\(//\)[^/]' \| \
16649          X"$as_dir" : 'X\(//\)$' \| \
16650          X"$as_dir" : 'X\(/\)' \| \
16651          .     : '\(.\)' 2>/dev/null ||
16652 echo X"$as_dir" |
16653     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16654           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
16655           /^X\(\/\/\)$/{ s//\1/; q; }
16656           /^X\(\/\).*/{ s//\1/; q; }
16657           s/.*/./; q'`
16658     done
16659     test ! -n "$as_dirs" || mkdir $as_dirs
16660   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
16661 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
16662    { (exit 1); exit 1; }; }; }
16663
16664     # echo "creating $dirpart/$file"
16665     echo '# dummy' > "$dirpart/$file"
16666   done
16667 done
16668  ;;
16669     default-1 ) for ac_file in $CONFIG_FILES; do
16670         # Support "outfile[:infile[:infile...]]"
16671         case "$ac_file" in
16672           *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16673         esac
16674         # PO directories have a Makefile.in generated from Makefile.in.in.
16675         case "$ac_file" in */Makefile.in)
16676           # Adjust a relative srcdir.
16677           ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16678           ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16679           ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16680           # In autoconf-2.13 it is called $ac_given_srcdir.
16681           # In autoconf-2.50 it is called $srcdir.
16682           test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16683           case "$ac_given_srcdir" in
16684             .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16685             /*) top_srcdir="$ac_given_srcdir" ;;
16686             *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
16687           esac
16688           if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16689             rm -f "$ac_dir/POTFILES"
16690             test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16691             sed -e "/^#/d" -e "/^[      ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
16692             test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16693             sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
16694           fi
16695           ;;
16696         esac
16697       done ;;
16698   esac
16699 done
16700 _ACEOF
16701
16702 cat >>$CONFIG_STATUS <<\_ACEOF
16703
16704 { (exit 0); exit 0; }
16705 _ACEOF
16706 chmod +x $CONFIG_STATUS
16707 ac_clean_files=$ac_clean_files_save
16708
16709
16710 # configure is writing to config.log, and then calls config.status.
16711 # config.status does its own redirection, appending to config.log.
16712 # Unfortunately, on DOS this fails, as config.log is still kept open
16713 # by configure, so config.status won't be able to write to it; its
16714 # output is simply discarded.  So we exec the FD to /dev/null,
16715 # effectively closing config.log, so it can be properly (re)opened and
16716 # appended to by config.status.  When coming back to configure, we
16717 # need to make the FD available again.
16718 if test "$no_create" != yes; then
16719   ac_cs_success=:
16720   ac_config_status_args=
16721   test "$silent" = yes &&
16722     ac_config_status_args="$ac_config_status_args --quiet"
16723   exec 5>/dev/null
16724   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16725   exec 5>>config.log
16726   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16727   # would make configure fail if this is the last instruction.
16728   $ac_cs_success || { (exit 1); exit 1; }
16729 fi
16730