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.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="mutt.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 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 PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP U ANSI2KNR RANLIB ac_ct_RANLIB AR ac_ct_AR DBX GDB SDB DEBUGGER SENDMAIL GPGME_CONFIG LIBGPGME_CFLAGS LIBGPGME_LIBS OPS PGPAUX_TARGET SMIMEAUX_TARGET SUBVERSION ISPELL LIBOBJS DOTLOCK_TARGET docdir DOTLOCK_GROUP DOTLOCK_PERMISSION BUILD_IMAP_TRUE BUILD_IMAP_FALSE KRB5CFGPATH USE_GSS_TRUE USE_GSS_FALSE USE_SSL_TRUE USE_SSL_FALSE LIBGNUTLS_CONFIG LIBGNUTLS_CFLAGS LIBGNUTLS_LIBS USE_SASL_TRUE USE_SASL_FALSE MUTTLIBS MUTT_LIB_OBJECTS LIBIMAP LIBIMAPDEPS ALLOCA GLIBC21 LIBICONV USE_NLS MSGFMT GMSGFMT XGETTEXT INTLBISON BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT GMOFILES INTLLIBS INTLOBJS POFILES POSUB DATADIRNAME INSTOBJEXT GENCAT MKINSTALLDIRS INTL_LIBTOOL_SUFFIX_PREFIX mutt_libesmtp_config_path LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778   # Omit some internal or obsolete options to make the list less imposing.
779   # This message is too long to be a string in the A/UX 3.1 sh.
780   cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791   -h, --help              display this help and exit
792       --help=short        display options specific to this package
793       --help=recursive    display the short help of all the included packages
794   -V, --version           display version information and exit
795   -q, --quiet, --silent   do not print \`checking...' messages
796       --cache-file=FILE   cache test results in FILE [disabled]
797   -C, --config-cache      alias for \`--cache-file=config.cache'
798   -n, --no-create         do not create output files
799       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803   cat <<_ACEOF
804 Installation directories:
805   --prefix=PREFIX         install architecture-independent files in PREFIX
806                           [$ac_default_prefix]
807   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808                           [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818   --bindir=DIR           user executables [EPREFIX/bin]
819   --sbindir=DIR          system admin executables [EPREFIX/sbin]
820   --libexecdir=DIR       program executables [EPREFIX/libexec]
821   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825   --libdir=DIR           object code libraries [EPREFIX/lib]
826   --includedir=DIR       C header files [PREFIX/include]
827   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828   --infodir=DIR          info documentation [PREFIX/info]
829   --mandir=DIR           man documentation [PREFIX/man]
830 _ACEOF
831
832   cat <<\_ACEOF
833
834 Program names:
835   --program-prefix=PREFIX            prepend PREFIX to installed program names
836   --program-suffix=SUFFIX            append SUFFIX to installed program names
837   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
838
839 System types:
840   --build=BUILD     configure for building on BUILD [guessed]
841   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
842 _ACEOF
843 fi
844
845 if test -n "$ac_init_help"; then
846
847   cat <<\_ACEOF
848
849 Optional Features:
850   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
851   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
852   --disable-largefile     omit support for large files
853   --enable-gpgme          Enable GPGME support
854   --disable-pgp           Disable PGP support
855   --disable-smime         Disable SMIME support
856   --enable-external-dotlock
857                           Force use of an external dotlock program
858   --enable-pop            Enable POP3 support
859   --enable-imap           Enable IMAP support
860   --enable-nntp              Enable NNTP support
861   --enable-debug          Enable debugging support
862   --enable-flock          Use flock() to lock files
863   --disable-fcntl         Do NOT use fcntl() to lock files
864   --enable-inodesort      Read files in maildir folders sorted by inode.
865   --disable-warnings      Turn off compiler warnings (not recommended)
866   --enable-nfs-fix        Work around an NFS with broken attributes caching
867   --enable-buffy-size     Use file size attribute instead of access time
868   --enable-mailtool       Enable Sun mailtool attachments support
869   --enable-compressed        Enable compressed folders support
870   --enable-locales-fix    The result of isprint() is unreliable
871   --enable-exact-address  Enable regeneration of email addresses
872   --enable-hcache         Enable header caching
873   --disable-iconv         Disable iconv support
874   --disable-nls           Do not use Native Language Support
875
876 Optional Packages:
877   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
878   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
879   --with-gpgme-prefix=PFX prefix where GPGME is installed (optional)
880   --with-mixmaster=PATH Include Mixmaster support
881   --with-slang=DIR      Use S-Lang instead of ncurses
882   --with-curses=DIR       Where ncurses is installed
883   --with-regex            Use the GNU regex library
884   --with-homespool=FILE File in user's directory where new mail is spooled
885   --with-mailpath=DIR     Directory where spool mailboxes are located
886   --with-docdir=PATH      Specify where to put the documentation
887   --with-domain=DOMAIN    Specify your DNS domain name
888   --with-gss=PFX        Compile in GSSAPI authentication for IMAP
889   --with-ssl=PFX        Compile in SSL support for POP/IMAP
890   --with-nss=PFX        Compile in SSL support for POP/IMAP via NSS
891   --with-gnutls=PFX     Enable SSL support using gnutls
892   --with-sasl=PFX       Use Cyrus SASL library for POP/IMAP authentication
893   --with-sasl2=PFX      Use Cyrus SASL library version 2 for POP/IMAP
894                           authentication
895   --with-idn=PFX        Use GNU libidn for domain names
896   --with-exec-shell=SHELL Specify alternate shell (ONLY if /bin/sh is broken)
897   --without-gdbm          Don't use gdbm even if it is available
898   --with-bdb=DIR        Use BerkeleyDB4 if gdbm is not available
899   --with-libiconv-prefix=DIR
900                           Search for libiconv in DIR/include and DIR/lib
901   --with-included-gettext Use the GNU gettext library included here
902   --without-wc-funcs      Do not use the system's wchar_t functions
903   --with-libesmtp=DIR      Compile in support for libesmtp for the MTA
904
905 Some influential environment variables:
906   CC          C compiler command
907   CFLAGS      C compiler flags
908   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
909               nonstandard directory <lib dir>
910   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
911               headers in a nonstandard directory <include dir>
912   CPP         C preprocessor
913
914 Use these variables to override the choices made by `configure' or to help
915 it to find libraries and programs with nonstandard names/locations.
916
917 _ACEOF
918 fi
919
920 if test "$ac_init_help" = "recursive"; then
921   # If there are subdirs, report their specific --help.
922   ac_popdir=`pwd`
923   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
924     test -d $ac_dir || continue
925     ac_builddir=.
926
927 if test "$ac_dir" != .; then
928   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
929   # A "../" for each directory in $ac_dir_suffix.
930   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
931 else
932   ac_dir_suffix= ac_top_builddir=
933 fi
934
935 case $srcdir in
936   .)  # No --srcdir option.  We are building in place.
937     ac_srcdir=.
938     if test -z "$ac_top_builddir"; then
939        ac_top_srcdir=.
940     else
941        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
942     fi ;;
943   [\\/]* | ?:[\\/]* )  # Absolute path.
944     ac_srcdir=$srcdir$ac_dir_suffix;
945     ac_top_srcdir=$srcdir ;;
946   *) # Relative path.
947     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
948     ac_top_srcdir=$ac_top_builddir$srcdir ;;
949 esac
950
951 # Do not use `cd foo && pwd` to compute absolute paths, because
952 # the directories may not exist.
953 case `pwd` in
954 .) ac_abs_builddir="$ac_dir";;
955 *)
956   case "$ac_dir" in
957   .) ac_abs_builddir=`pwd`;;
958   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
959   *) ac_abs_builddir=`pwd`/"$ac_dir";;
960   esac;;
961 esac
962 case $ac_abs_builddir in
963 .) ac_abs_top_builddir=${ac_top_builddir}.;;
964 *)
965   case ${ac_top_builddir}. in
966   .) ac_abs_top_builddir=$ac_abs_builddir;;
967   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
968   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
969   esac;;
970 esac
971 case $ac_abs_builddir in
972 .) ac_abs_srcdir=$ac_srcdir;;
973 *)
974   case $ac_srcdir in
975   .) ac_abs_srcdir=$ac_abs_builddir;;
976   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
977   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
978   esac;;
979 esac
980 case $ac_abs_builddir in
981 .) ac_abs_top_srcdir=$ac_top_srcdir;;
982 *)
983   case $ac_top_srcdir in
984   .) ac_abs_top_srcdir=$ac_abs_builddir;;
985   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
986   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
987   esac;;
988 esac
989
990     cd $ac_dir
991     # Check for guested configure; otherwise get Cygnus style configure.
992     if test -f $ac_srcdir/configure.gnu; then
993       echo
994       $SHELL $ac_srcdir/configure.gnu  --help=recursive
995     elif test -f $ac_srcdir/configure; then
996       echo
997       $SHELL $ac_srcdir/configure  --help=recursive
998     elif test -f $ac_srcdir/configure.ac ||
999            test -f $ac_srcdir/configure.in; then
1000       echo
1001       $ac_configure --help
1002     else
1003       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1004     fi
1005     cd "$ac_popdir"
1006   done
1007 fi
1008
1009 test -n "$ac_init_help" && exit 0
1010 if $ac_init_version; then
1011   cat <<\_ACEOF
1012
1013 Copyright (C) 2003 Free Software Foundation, Inc.
1014 This configure script is free software; the Free Software Foundation
1015 gives unlimited permission to copy, distribute and modify it.
1016 _ACEOF
1017   exit 0
1018 fi
1019 exec 5>config.log
1020 cat >&5 <<_ACEOF
1021 This file contains any messages produced by compilers while
1022 running configure, to aid debugging if configure makes a mistake.
1023
1024 It was created by $as_me, which was
1025 generated by GNU Autoconf 2.59.  Invocation command line was
1026
1027   $ $0 $@
1028
1029 _ACEOF
1030 {
1031 cat <<_ASUNAME
1032 ## --------- ##
1033 ## Platform. ##
1034 ## --------- ##
1035
1036 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1037 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1038 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1039 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1040 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1041
1042 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1043 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1044
1045 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1046 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1047 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1048 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1049 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1050 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1051 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1052
1053 _ASUNAME
1054
1055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1056 for as_dir in $PATH
1057 do
1058   IFS=$as_save_IFS
1059   test -z "$as_dir" && as_dir=.
1060   echo "PATH: $as_dir"
1061 done
1062
1063 } >&5
1064
1065 cat >&5 <<_ACEOF
1066
1067
1068 ## ----------- ##
1069 ## Core tests. ##
1070 ## ----------- ##
1071
1072 _ACEOF
1073
1074
1075 # Keep a trace of the command line.
1076 # Strip out --no-create and --no-recursion so they do not pile up.
1077 # Strip out --silent because we don't want to record it for future runs.
1078 # Also quote any args containing shell meta-characters.
1079 # Make two passes to allow for proper duplicate-argument suppression.
1080 ac_configure_args=
1081 ac_configure_args0=
1082 ac_configure_args1=
1083 ac_sep=
1084 ac_must_keep_next=false
1085 for ac_pass in 1 2
1086 do
1087   for ac_arg
1088   do
1089     case $ac_arg in
1090     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1091     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092     | -silent | --silent | --silen | --sile | --sil)
1093       continue ;;
1094     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1095       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1096     esac
1097     case $ac_pass in
1098     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1099     2)
1100       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1101       if test $ac_must_keep_next = true; then
1102         ac_must_keep_next=false # Got value, back to normal.
1103       else
1104         case $ac_arg in
1105           *=* | --config-cache | -C | -disable-* | --disable-* \
1106           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1107           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1108           | -with-* | --with-* | -without-* | --without-* | --x)
1109             case "$ac_configure_args0 " in
1110               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1111             esac
1112             ;;
1113           -* ) ac_must_keep_next=true ;;
1114         esac
1115       fi
1116       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1117       # Get rid of the leading space.
1118       ac_sep=" "
1119       ;;
1120     esac
1121   done
1122 done
1123 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1124 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1125
1126 # When interrupted or exit'd, cleanup temporary files, and complete
1127 # config.log.  We remove comments because anyway the quotes in there
1128 # would cause problems or look ugly.
1129 # WARNING: Be sure not to use single quotes in there, as some shells,
1130 # such as our DU 5.0 friend, will then `close' the trap.
1131 trap 'exit_status=$?
1132   # Save into config.log some information that might help in debugging.
1133   {
1134     echo
1135
1136     cat <<\_ASBOX
1137 ## ---------------- ##
1138 ## Cache variables. ##
1139 ## ---------------- ##
1140 _ASBOX
1141     echo
1142     # The following way of writing the cache mishandles newlines in values,
1143 {
1144   (set) 2>&1 |
1145     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1146     *ac_space=\ *)
1147       sed -n \
1148         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1149           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1150       ;;
1151     *)
1152       sed -n \
1153         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1154       ;;
1155     esac;
1156 }
1157     echo
1158
1159     cat <<\_ASBOX
1160 ## ----------------- ##
1161 ## Output variables. ##
1162 ## ----------------- ##
1163 _ASBOX
1164     echo
1165     for ac_var in $ac_subst_vars
1166     do
1167       eval ac_val=$`echo $ac_var`
1168       echo "$ac_var='"'"'$ac_val'"'"'"
1169     done | sort
1170     echo
1171
1172     if test -n "$ac_subst_files"; then
1173       cat <<\_ASBOX
1174 ## ------------- ##
1175 ## Output files. ##
1176 ## ------------- ##
1177 _ASBOX
1178       echo
1179       for ac_var in $ac_subst_files
1180       do
1181         eval ac_val=$`echo $ac_var`
1182         echo "$ac_var='"'"'$ac_val'"'"'"
1183       done | sort
1184       echo
1185     fi
1186
1187     if test -s confdefs.h; then
1188       cat <<\_ASBOX
1189 ## ----------- ##
1190 ## confdefs.h. ##
1191 ## ----------- ##
1192 _ASBOX
1193       echo
1194       sed "/^$/d" confdefs.h | sort
1195       echo
1196     fi
1197     test "$ac_signal" != 0 &&
1198       echo "$as_me: caught signal $ac_signal"
1199     echo "$as_me: exit $exit_status"
1200   } >&5
1201   rm -f core *.core &&
1202   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1203     exit $exit_status
1204      ' 0
1205 for ac_signal in 1 2 13 15; do
1206   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1207 done
1208 ac_signal=0
1209
1210 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1211 rm -rf conftest* confdefs.h
1212 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1213 echo >confdefs.h
1214
1215 # Predefined preprocessor variables.
1216
1217 cat >>confdefs.h <<_ACEOF
1218 #define PACKAGE_NAME "$PACKAGE_NAME"
1219 _ACEOF
1220
1221
1222 cat >>confdefs.h <<_ACEOF
1223 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1224 _ACEOF
1225
1226
1227 cat >>confdefs.h <<_ACEOF
1228 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1229 _ACEOF
1230
1231
1232 cat >>confdefs.h <<_ACEOF
1233 #define PACKAGE_STRING "$PACKAGE_STRING"
1234 _ACEOF
1235
1236
1237 cat >>confdefs.h <<_ACEOF
1238 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1239 _ACEOF
1240
1241
1242 # Let the site file select an alternate cache file if it wants to.
1243 # Prefer explicitly selected file to automatically selected ones.
1244 if test -z "$CONFIG_SITE"; then
1245   if test "x$prefix" != xNONE; then
1246     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1247   else
1248     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1249   fi
1250 fi
1251 for ac_site_file in $CONFIG_SITE; do
1252   if test -r "$ac_site_file"; then
1253     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1254 echo "$as_me: loading site script $ac_site_file" >&6;}
1255     sed 's/^/| /' "$ac_site_file" >&5
1256     . "$ac_site_file"
1257   fi
1258 done
1259
1260 if test -r "$cache_file"; then
1261   # Some versions of bash will fail to source /dev/null (special
1262   # files actually), so we avoid doing that.
1263   if test -f "$cache_file"; then
1264     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1265 echo "$as_me: loading cache $cache_file" >&6;}
1266     case $cache_file in
1267       [\\/]* | ?:[\\/]* ) . $cache_file;;
1268       *)                      . ./$cache_file;;
1269     esac
1270   fi
1271 else
1272   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1273 echo "$as_me: creating cache $cache_file" >&6;}
1274   >$cache_file
1275 fi
1276
1277 # Check that the precious variables saved in the cache have kept the same
1278 # value.
1279 ac_cache_corrupted=false
1280 for ac_var in `(set) 2>&1 |
1281                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1282   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1283   eval ac_new_set=\$ac_env_${ac_var}_set
1284   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1285   eval ac_new_val="\$ac_env_${ac_var}_value"
1286   case $ac_old_set,$ac_new_set in
1287     set,)
1288       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1289 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1290       ac_cache_corrupted=: ;;
1291     ,set)
1292       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1293 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1294       ac_cache_corrupted=: ;;
1295     ,);;
1296     *)
1297       if test "x$ac_old_val" != "x$ac_new_val"; then
1298         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1299 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1300         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1301 echo "$as_me:   former value:  $ac_old_val" >&2;}
1302         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1303 echo "$as_me:   current value: $ac_new_val" >&2;}
1304         ac_cache_corrupted=:
1305       fi;;
1306   esac
1307   # Pass precious variables to config.status.
1308   if test "$ac_new_set" = set; then
1309     case $ac_new_val in
1310     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1311       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1312     *) ac_arg=$ac_var=$ac_new_val ;;
1313     esac
1314     case " $ac_configure_args " in
1315       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1316       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1317     esac
1318   fi
1319 done
1320 if $ac_cache_corrupted; then
1321   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1322 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1323   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1324 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1325    { (exit 1); exit 1; }; }
1326 fi
1327
1328 ac_ext=c
1329 ac_cpp='$CPP $CPPFLAGS'
1330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353           ac_config_headers="$ac_config_headers config.h"
1354
1355           ac_config_commands="$ac_config_commands default-1"
1356
1357
1358 mutt_cv_version=`cat $srcdir/VERSION`
1359
1360 ac_aux_dir=
1361 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1362   if test -f $ac_dir/install-sh; then
1363     ac_aux_dir=$ac_dir
1364     ac_install_sh="$ac_aux_dir/install-sh -c"
1365     break
1366   elif test -f $ac_dir/install.sh; then
1367     ac_aux_dir=$ac_dir
1368     ac_install_sh="$ac_aux_dir/install.sh -c"
1369     break
1370   elif test -f $ac_dir/shtool; then
1371     ac_aux_dir=$ac_dir
1372     ac_install_sh="$ac_aux_dir/shtool install -c"
1373     break
1374   fi
1375 done
1376 if test -z "$ac_aux_dir"; then
1377   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1378 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1379    { (exit 1); exit 1; }; }
1380 fi
1381 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1382 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1383 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1384
1385 # Find a good install program.  We prefer a C program (faster),
1386 # so one script is as good as another.  But avoid the broken or
1387 # incompatible versions:
1388 # SysV /etc/install, /usr/sbin/install
1389 # SunOS /usr/etc/install
1390 # IRIX /sbin/install
1391 # AIX /bin/install
1392 # AmigaOS /C/install, which installs bootblocks on floppy discs
1393 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1394 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1395 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1396 # OS/2's system install, which has a completely different semantic
1397 # ./install, which can be erroneously created by make from ./install.sh.
1398 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1399 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1400 if test -z "$INSTALL"; then
1401 if test "${ac_cv_path_install+set}" = set; then
1402   echo $ECHO_N "(cached) $ECHO_C" >&6
1403 else
1404   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1405 for as_dir in $PATH
1406 do
1407   IFS=$as_save_IFS
1408   test -z "$as_dir" && as_dir=.
1409   # Account for people who put trailing slashes in PATH elements.
1410 case $as_dir/ in
1411   ./ | .// | /cC/* | \
1412   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1413   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1414   /usr/ucb/* ) ;;
1415   *)
1416     # OSF1 and SCO ODT 3.0 have their own names for install.
1417     # Don't use installbsd from OSF since it installs stuff as root
1418     # by default.
1419     for ac_prog in ginstall scoinst install; do
1420       for ac_exec_ext in '' $ac_executable_extensions; do
1421         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1422           if test $ac_prog = install &&
1423             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1424             # AIX install.  It has an incompatible calling convention.
1425             :
1426           elif test $ac_prog = install &&
1427             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1428             # program-specific install script used by HP pwplus--don't use.
1429             :
1430           else
1431             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1432             break 3
1433           fi
1434         fi
1435       done
1436     done
1437     ;;
1438 esac
1439 done
1440
1441
1442 fi
1443   if test "${ac_cv_path_install+set}" = set; then
1444     INSTALL=$ac_cv_path_install
1445   else
1446     # As a last resort, use the slow shell script.  We don't cache a
1447     # path for INSTALL within a source directory, because that will
1448     # break other packages using the cache if that directory is
1449     # removed, or if the path is relative.
1450     INSTALL=$ac_install_sh
1451   fi
1452 fi
1453 echo "$as_me:$LINENO: result: $INSTALL" >&5
1454 echo "${ECHO_T}$INSTALL" >&6
1455
1456 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1457 # It thinks the first close brace ends the variable substitution.
1458 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1459
1460 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1461
1462 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1463
1464 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1465 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1466 # Just in case
1467 sleep 1
1468 echo timestamp > conftestfile
1469 # Do `set' in a subshell so we don't clobber the current shell's
1470 # arguments.  Must try -L first in case configure is actually a
1471 # symlink; some systems play weird games with the mod time of symlinks
1472 # (eg FreeBSD returns the mod time of the symlink's containing
1473 # directory).
1474 if (
1475    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1476    if test "$*" = "X"; then
1477       # -L didn't work.
1478       set X `ls -t $srcdir/configure conftestfile`
1479    fi
1480    if test "$*" != "X $srcdir/configure conftestfile" \
1481       && test "$*" != "X conftestfile $srcdir/configure"; then
1482
1483       # If neither matched, then we have a broken ls.  This can happen
1484       # if, for instance, CONFIG_SHELL is bash and it inherits a
1485       # broken ls alias from the environment.  This has actually
1486       # happened.  Such a system could not be considered "sane".
1487       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1488 alias in your environment" >&5
1489 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1490 alias in your environment" >&2;}
1491    { (exit 1); exit 1; }; }
1492    fi
1493
1494    test "$2" = conftestfile
1495    )
1496 then
1497    # Ok.
1498    :
1499 else
1500    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1501 Check your system clock" >&5
1502 echo "$as_me: error: newly created file is older than distributed files!
1503 Check your system clock" >&2;}
1504    { (exit 1); exit 1; }; }
1505 fi
1506 rm -f conftest*
1507 echo "$as_me:$LINENO: result: yes" >&5
1508 echo "${ECHO_T}yes" >&6
1509 test "$program_prefix" != NONE &&
1510   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1511 # Use a double $ so make ignores it.
1512 test "$program_suffix" != NONE &&
1513   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1514 # Double any \ or $.  echo might interpret backslashes.
1515 # By default was `s,x,x', remove it if useless.
1516 cat <<\_ACEOF >conftest.sed
1517 s/[\\$]/&&/g;s/;s,x,x,$//
1518 _ACEOF
1519 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1520 rm conftest.sed
1521
1522 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1523 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1524 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1525 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1526   echo $ECHO_N "(cached) $ECHO_C" >&6
1527 else
1528   cat >conftest.make <<\_ACEOF
1529 all:
1530         @echo 'ac_maketemp="$(MAKE)"'
1531 _ACEOF
1532 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1533 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1534 if test -n "$ac_maketemp"; then
1535   eval ac_cv_prog_make_${ac_make}_set=yes
1536 else
1537   eval ac_cv_prog_make_${ac_make}_set=no
1538 fi
1539 rm -f conftest.make
1540 fi
1541 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1542   echo "$as_me:$LINENO: result: yes" >&5
1543 echo "${ECHO_T}yes" >&6
1544   SET_MAKE=
1545 else
1546   echo "$as_me:$LINENO: result: no" >&5
1547 echo "${ECHO_T}no" >&6
1548   SET_MAKE="MAKE=${MAKE-make}"
1549 fi
1550
1551
1552 PACKAGE=muttng
1553
1554 VERSION=$mutt_cv_version
1555
1556 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1557   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1558 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1559    { (exit 1); exit 1; }; }
1560 fi
1561
1562 cat >>confdefs.h <<_ACEOF
1563 #define PACKAGE "$PACKAGE"
1564 _ACEOF
1565
1566
1567 cat >>confdefs.h <<_ACEOF
1568 #define VERSION "$VERSION"
1569 _ACEOF
1570
1571
1572
1573 missing_dir=`cd $ac_aux_dir && pwd`
1574 echo "$as_me:$LINENO: checking for working aclocal" >&5
1575 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1576 # Run test in a subshell; some versions of sh will print an error if
1577 # an executable is not found, even if stderr is redirected.
1578 # Redirect stdin to placate older versions of autoconf.  Sigh.
1579 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1580    ACLOCAL=aclocal
1581    echo "$as_me:$LINENO: result: found" >&5
1582 echo "${ECHO_T}found" >&6
1583 else
1584    ACLOCAL="$missing_dir/missing aclocal"
1585    echo "$as_me:$LINENO: result: missing" >&5
1586 echo "${ECHO_T}missing" >&6
1587 fi
1588
1589 echo "$as_me:$LINENO: checking for working autoconf" >&5
1590 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1591 # Run test in a subshell; some versions of sh will print an error if
1592 # an executable is not found, even if stderr is redirected.
1593 # Redirect stdin to placate older versions of autoconf.  Sigh.
1594 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1595    AUTOCONF=autoconf
1596    echo "$as_me:$LINENO: result: found" >&5
1597 echo "${ECHO_T}found" >&6
1598 else
1599    AUTOCONF="$missing_dir/missing autoconf"
1600    echo "$as_me:$LINENO: result: missing" >&5
1601 echo "${ECHO_T}missing" >&6
1602 fi
1603
1604 echo "$as_me:$LINENO: checking for working automake" >&5
1605 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1606 # Run test in a subshell; some versions of sh will print an error if
1607 # an executable is not found, even if stderr is redirected.
1608 # Redirect stdin to placate older versions of autoconf.  Sigh.
1609 if (automake --version) < /dev/null > /dev/null 2>&1; then
1610    AUTOMAKE=automake
1611    echo "$as_me:$LINENO: result: found" >&5
1612 echo "${ECHO_T}found" >&6
1613 else
1614    AUTOMAKE="$missing_dir/missing automake"
1615    echo "$as_me:$LINENO: result: missing" >&5
1616 echo "${ECHO_T}missing" >&6
1617 fi
1618
1619 echo "$as_me:$LINENO: checking for working autoheader" >&5
1620 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1621 # Run test in a subshell; some versions of sh will print an error if
1622 # an executable is not found, even if stderr is redirected.
1623 # Redirect stdin to placate older versions of autoconf.  Sigh.
1624 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1625    AUTOHEADER=autoheader
1626    echo "$as_me:$LINENO: result: found" >&5
1627 echo "${ECHO_T}found" >&6
1628 else
1629    AUTOHEADER="$missing_dir/missing autoheader"
1630    echo "$as_me:$LINENO: result: missing" >&5
1631 echo "${ECHO_T}missing" >&6
1632 fi
1633
1634 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1635 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1636 # Run test in a subshell; some versions of sh will print an error if
1637 # an executable is not found, even if stderr is redirected.
1638 # Redirect stdin to placate older versions of autoconf.  Sigh.
1639 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1640    MAKEINFO=makeinfo
1641    echo "$as_me:$LINENO: result: found" >&5
1642 echo "${ECHO_T}found" >&6
1643 else
1644    MAKEINFO="$missing_dir/missing makeinfo"
1645    echo "$as_me:$LINENO: result: missing" >&5
1646 echo "${ECHO_T}missing" >&6
1647 fi
1648
1649
1650
1651
1652
1653 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"
1654
1655 # Make sure we can run config.sub.
1656 $ac_config_sub sun4 >/dev/null 2>&1 ||
1657   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1658 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1659    { (exit 1); exit 1; }; }
1660
1661 echo "$as_me:$LINENO: checking build system type" >&5
1662 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1663 if test "${ac_cv_build+set}" = set; then
1664   echo $ECHO_N "(cached) $ECHO_C" >&6
1665 else
1666   ac_cv_build_alias=$build_alias
1667 test -z "$ac_cv_build_alias" &&
1668   ac_cv_build_alias=`$ac_config_guess`
1669 test -z "$ac_cv_build_alias" &&
1670   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1671 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1672    { (exit 1); exit 1; }; }
1673 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1674   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1675 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1676    { (exit 1); exit 1; }; }
1677
1678 fi
1679 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1680 echo "${ECHO_T}$ac_cv_build" >&6
1681 build=$ac_cv_build
1682 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1683 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1684 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1685
1686
1687 echo "$as_me:$LINENO: checking host system type" >&5
1688 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1689 if test "${ac_cv_host+set}" = set; then
1690   echo $ECHO_N "(cached) $ECHO_C" >&6
1691 else
1692   ac_cv_host_alias=$host_alias
1693 test -z "$ac_cv_host_alias" &&
1694   ac_cv_host_alias=$ac_cv_build_alias
1695 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1696   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1697 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1698    { (exit 1); exit 1; }; }
1699
1700 fi
1701 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1702 echo "${ECHO_T}$ac_cv_host" >&6
1703 host=$ac_cv_host
1704 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1705 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1706 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1707
1708
1709
1710 echo "$as_me:$LINENO: checking for prefix" >&5
1711 echo $ECHO_N "checking for prefix... $ECHO_C" >&6
1712 if test x$prefix = xNONE; then
1713         mutt_cv_prefix=$ac_default_prefix
1714 else
1715         mutt_cv_prefix=$prefix
1716 fi
1717 echo "$as_me:$LINENO: result: $mutt_cv_prefix" >&5
1718 echo "${ECHO_T}$mutt_cv_prefix" >&6
1719
1720 ac_ext=c
1721 ac_cpp='$CPP $CPPFLAGS'
1722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1725 if test -n "$ac_tool_prefix"; then
1726   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1727 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1728 echo "$as_me:$LINENO: checking for $ac_word" >&5
1729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1730 if test "${ac_cv_prog_CC+set}" = set; then
1731   echo $ECHO_N "(cached) $ECHO_C" >&6
1732 else
1733   if test -n "$CC"; then
1734   ac_cv_prog_CC="$CC" # Let the user override the test.
1735 else
1736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1737 for as_dir in $PATH
1738 do
1739   IFS=$as_save_IFS
1740   test -z "$as_dir" && as_dir=.
1741   for ac_exec_ext in '' $ac_executable_extensions; do
1742   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1743     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1744     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1745     break 2
1746   fi
1747 done
1748 done
1749
1750 fi
1751 fi
1752 CC=$ac_cv_prog_CC
1753 if test -n "$CC"; then
1754   echo "$as_me:$LINENO: result: $CC" >&5
1755 echo "${ECHO_T}$CC" >&6
1756 else
1757   echo "$as_me:$LINENO: result: no" >&5
1758 echo "${ECHO_T}no" >&6
1759 fi
1760
1761 fi
1762 if test -z "$ac_cv_prog_CC"; then
1763   ac_ct_CC=$CC
1764   # Extract the first word of "gcc", so it can be a program name with args.
1765 set dummy gcc; ac_word=$2
1766 echo "$as_me:$LINENO: checking for $ac_word" >&5
1767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1768 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1769   echo $ECHO_N "(cached) $ECHO_C" >&6
1770 else
1771   if test -n "$ac_ct_CC"; then
1772   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1773 else
1774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1775 for as_dir in $PATH
1776 do
1777   IFS=$as_save_IFS
1778   test -z "$as_dir" && as_dir=.
1779   for ac_exec_ext in '' $ac_executable_extensions; do
1780   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1781     ac_cv_prog_ac_ct_CC="gcc"
1782     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1783     break 2
1784   fi
1785 done
1786 done
1787
1788 fi
1789 fi
1790 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1791 if test -n "$ac_ct_CC"; then
1792   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1793 echo "${ECHO_T}$ac_ct_CC" >&6
1794 else
1795   echo "$as_me:$LINENO: result: no" >&5
1796 echo "${ECHO_T}no" >&6
1797 fi
1798
1799   CC=$ac_ct_CC
1800 else
1801   CC="$ac_cv_prog_CC"
1802 fi
1803
1804 if test -z "$CC"; then
1805   if test -n "$ac_tool_prefix"; then
1806   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1807 set dummy ${ac_tool_prefix}cc; ac_word=$2
1808 echo "$as_me:$LINENO: checking for $ac_word" >&5
1809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810 if test "${ac_cv_prog_CC+set}" = set; then
1811   echo $ECHO_N "(cached) $ECHO_C" >&6
1812 else
1813   if test -n "$CC"; then
1814   ac_cv_prog_CC="$CC" # Let the user override the test.
1815 else
1816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817 for as_dir in $PATH
1818 do
1819   IFS=$as_save_IFS
1820   test -z "$as_dir" && as_dir=.
1821   for ac_exec_ext in '' $ac_executable_extensions; do
1822   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823     ac_cv_prog_CC="${ac_tool_prefix}cc"
1824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825     break 2
1826   fi
1827 done
1828 done
1829
1830 fi
1831 fi
1832 CC=$ac_cv_prog_CC
1833 if test -n "$CC"; then
1834   echo "$as_me:$LINENO: result: $CC" >&5
1835 echo "${ECHO_T}$CC" >&6
1836 else
1837   echo "$as_me:$LINENO: result: no" >&5
1838 echo "${ECHO_T}no" >&6
1839 fi
1840
1841 fi
1842 if test -z "$ac_cv_prog_CC"; then
1843   ac_ct_CC=$CC
1844   # Extract the first word of "cc", so it can be a program name with args.
1845 set dummy cc; ac_word=$2
1846 echo "$as_me:$LINENO: checking for $ac_word" >&5
1847 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1848 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1849   echo $ECHO_N "(cached) $ECHO_C" >&6
1850 else
1851   if test -n "$ac_ct_CC"; then
1852   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1853 else
1854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1855 for as_dir in $PATH
1856 do
1857   IFS=$as_save_IFS
1858   test -z "$as_dir" && as_dir=.
1859   for ac_exec_ext in '' $ac_executable_extensions; do
1860   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1861     ac_cv_prog_ac_ct_CC="cc"
1862     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1863     break 2
1864   fi
1865 done
1866 done
1867
1868 fi
1869 fi
1870 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1871 if test -n "$ac_ct_CC"; then
1872   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1873 echo "${ECHO_T}$ac_ct_CC" >&6
1874 else
1875   echo "$as_me:$LINENO: result: no" >&5
1876 echo "${ECHO_T}no" >&6
1877 fi
1878
1879   CC=$ac_ct_CC
1880 else
1881   CC="$ac_cv_prog_CC"
1882 fi
1883
1884 fi
1885 if test -z "$CC"; then
1886   # Extract the first word of "cc", so it can be a program name with args.
1887 set dummy cc; ac_word=$2
1888 echo "$as_me:$LINENO: checking for $ac_word" >&5
1889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1890 if test "${ac_cv_prog_CC+set}" = set; then
1891   echo $ECHO_N "(cached) $ECHO_C" >&6
1892 else
1893   if test -n "$CC"; then
1894   ac_cv_prog_CC="$CC" # Let the user override the test.
1895 else
1896   ac_prog_rejected=no
1897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1898 for as_dir in $PATH
1899 do
1900   IFS=$as_save_IFS
1901   test -z "$as_dir" && as_dir=.
1902   for ac_exec_ext in '' $ac_executable_extensions; do
1903   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1904     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1905        ac_prog_rejected=yes
1906        continue
1907      fi
1908     ac_cv_prog_CC="cc"
1909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1910     break 2
1911   fi
1912 done
1913 done
1914
1915 if test $ac_prog_rejected = yes; then
1916   # We found a bogon in the path, so make sure we never use it.
1917   set dummy $ac_cv_prog_CC
1918   shift
1919   if test $# != 0; then
1920     # We chose a different compiler from the bogus one.
1921     # However, it has the same basename, so the bogon will be chosen
1922     # first if we set CC to just the basename; use the full file name.
1923     shift
1924     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1925   fi
1926 fi
1927 fi
1928 fi
1929 CC=$ac_cv_prog_CC
1930 if test -n "$CC"; then
1931   echo "$as_me:$LINENO: result: $CC" >&5
1932 echo "${ECHO_T}$CC" >&6
1933 else
1934   echo "$as_me:$LINENO: result: no" >&5
1935 echo "${ECHO_T}no" >&6
1936 fi
1937
1938 fi
1939 if test -z "$CC"; then
1940   if test -n "$ac_tool_prefix"; then
1941   for ac_prog in cl
1942   do
1943     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1944 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1945 echo "$as_me:$LINENO: checking for $ac_word" >&5
1946 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1947 if test "${ac_cv_prog_CC+set}" = set; then
1948   echo $ECHO_N "(cached) $ECHO_C" >&6
1949 else
1950   if test -n "$CC"; then
1951   ac_cv_prog_CC="$CC" # Let the user override the test.
1952 else
1953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1954 for as_dir in $PATH
1955 do
1956   IFS=$as_save_IFS
1957   test -z "$as_dir" && as_dir=.
1958   for ac_exec_ext in '' $ac_executable_extensions; do
1959   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1960     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1961     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962     break 2
1963   fi
1964 done
1965 done
1966
1967 fi
1968 fi
1969 CC=$ac_cv_prog_CC
1970 if test -n "$CC"; then
1971   echo "$as_me:$LINENO: result: $CC" >&5
1972 echo "${ECHO_T}$CC" >&6
1973 else
1974   echo "$as_me:$LINENO: result: no" >&5
1975 echo "${ECHO_T}no" >&6
1976 fi
1977
1978     test -n "$CC" && break
1979   done
1980 fi
1981 if test -z "$CC"; then
1982   ac_ct_CC=$CC
1983   for ac_prog in cl
1984 do
1985   # Extract the first word of "$ac_prog", so it can be a program name with args.
1986 set dummy $ac_prog; ac_word=$2
1987 echo "$as_me:$LINENO: checking for $ac_word" >&5
1988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1989 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1990   echo $ECHO_N "(cached) $ECHO_C" >&6
1991 else
1992   if test -n "$ac_ct_CC"; then
1993   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1994 else
1995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996 for as_dir in $PATH
1997 do
1998   IFS=$as_save_IFS
1999   test -z "$as_dir" && as_dir=.
2000   for ac_exec_ext in '' $ac_executable_extensions; do
2001   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2002     ac_cv_prog_ac_ct_CC="$ac_prog"
2003     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004     break 2
2005   fi
2006 done
2007 done
2008
2009 fi
2010 fi
2011 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2012 if test -n "$ac_ct_CC"; then
2013   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2014 echo "${ECHO_T}$ac_ct_CC" >&6
2015 else
2016   echo "$as_me:$LINENO: result: no" >&5
2017 echo "${ECHO_T}no" >&6
2018 fi
2019
2020   test -n "$ac_ct_CC" && break
2021 done
2022
2023   CC=$ac_ct_CC
2024 fi
2025
2026 fi
2027
2028
2029 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2030 See \`config.log' for more details." >&5
2031 echo "$as_me: error: no acceptable C compiler found in \$PATH
2032 See \`config.log' for more details." >&2;}
2033    { (exit 1); exit 1; }; }
2034
2035 # Provide some information about the compiler.
2036 echo "$as_me:$LINENO:" \
2037      "checking for C compiler version" >&5
2038 ac_compiler=`set X $ac_compile; echo $2`
2039 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2040   (eval $ac_compiler --version </dev/null >&5) 2>&5
2041   ac_status=$?
2042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043   (exit $ac_status); }
2044 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2045   (eval $ac_compiler -v </dev/null >&5) 2>&5
2046   ac_status=$?
2047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048   (exit $ac_status); }
2049 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2050   (eval $ac_compiler -V </dev/null >&5) 2>&5
2051   ac_status=$?
2052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2053   (exit $ac_status); }
2054
2055 cat >conftest.$ac_ext <<_ACEOF
2056 /* confdefs.h.  */
2057 _ACEOF
2058 cat confdefs.h >>conftest.$ac_ext
2059 cat >>conftest.$ac_ext <<_ACEOF
2060 /* end confdefs.h.  */
2061
2062 int
2063 main ()
2064 {
2065
2066   ;
2067   return 0;
2068 }
2069 _ACEOF
2070 ac_clean_files_save=$ac_clean_files
2071 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2072 # Try to create an executable without -o first, disregard a.out.
2073 # It will help us diagnose broken compilers, and finding out an intuition
2074 # of exeext.
2075 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2076 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2077 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2078 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2079   (eval $ac_link_default) 2>&5
2080   ac_status=$?
2081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082   (exit $ac_status); }; then
2083   # Find the output, starting from the most likely.  This scheme is
2084 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2085 # resort.
2086
2087 # Be careful to initialize this variable, since it used to be cached.
2088 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2089 ac_cv_exeext=
2090 # b.out is created by i960 compilers.
2091 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2092 do
2093   test -f "$ac_file" || continue
2094   case $ac_file in
2095     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2096         ;;
2097     conftest.$ac_ext )
2098         # This is the source file.
2099         ;;
2100     [ab].out )
2101         # We found the default executable, but exeext='' is most
2102         # certainly right.
2103         break;;
2104     *.* )
2105         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2106         # FIXME: I believe we export ac_cv_exeext for Libtool,
2107         # but it would be cool to find out if it's true.  Does anybody
2108         # maintain Libtool? --akim.
2109         export ac_cv_exeext
2110         break;;
2111     * )
2112         break;;
2113   esac
2114 done
2115 else
2116   echo "$as_me: failed program was:" >&5
2117 sed 's/^/| /' conftest.$ac_ext >&5
2118
2119 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2120 See \`config.log' for more details." >&5
2121 echo "$as_me: error: C compiler cannot create executables
2122 See \`config.log' for more details." >&2;}
2123    { (exit 77); exit 77; }; }
2124 fi
2125
2126 ac_exeext=$ac_cv_exeext
2127 echo "$as_me:$LINENO: result: $ac_file" >&5
2128 echo "${ECHO_T}$ac_file" >&6
2129
2130 # Check the compiler produces executables we can run.  If not, either
2131 # the compiler is broken, or we cross compile.
2132 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2133 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2134 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2135 # If not cross compiling, check that we can run a simple program.
2136 if test "$cross_compiling" != yes; then
2137   if { ac_try='./$ac_file'
2138   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2139   (eval $ac_try) 2>&5
2140   ac_status=$?
2141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142   (exit $ac_status); }; }; then
2143     cross_compiling=no
2144   else
2145     if test "$cross_compiling" = maybe; then
2146         cross_compiling=yes
2147     else
2148         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2149 If you meant to cross compile, use \`--host'.
2150 See \`config.log' for more details." >&5
2151 echo "$as_me: error: cannot run C compiled programs.
2152 If you meant to cross compile, use \`--host'.
2153 See \`config.log' for more details." >&2;}
2154    { (exit 1); exit 1; }; }
2155     fi
2156   fi
2157 fi
2158 echo "$as_me:$LINENO: result: yes" >&5
2159 echo "${ECHO_T}yes" >&6
2160
2161 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2162 ac_clean_files=$ac_clean_files_save
2163 # Check the compiler produces executables we can run.  If not, either
2164 # the compiler is broken, or we cross compile.
2165 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2166 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2167 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2168 echo "${ECHO_T}$cross_compiling" >&6
2169
2170 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2171 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2173   (eval $ac_link) 2>&5
2174   ac_status=$?
2175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2176   (exit $ac_status); }; then
2177   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2178 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2179 # work properly (i.e., refer to `conftest.exe'), while it won't with
2180 # `rm'.
2181 for ac_file in conftest.exe conftest conftest.*; do
2182   test -f "$ac_file" || continue
2183   case $ac_file in
2184     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2185     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2186           export ac_cv_exeext
2187           break;;
2188     * ) break;;
2189   esac
2190 done
2191 else
2192   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2193 See \`config.log' for more details." >&5
2194 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2195 See \`config.log' for more details." >&2;}
2196    { (exit 1); exit 1; }; }
2197 fi
2198
2199 rm -f conftest$ac_cv_exeext
2200 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2201 echo "${ECHO_T}$ac_cv_exeext" >&6
2202
2203 rm -f conftest.$ac_ext
2204 EXEEXT=$ac_cv_exeext
2205 ac_exeext=$EXEEXT
2206 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2207 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2208 if test "${ac_cv_objext+set}" = set; then
2209   echo $ECHO_N "(cached) $ECHO_C" >&6
2210 else
2211   cat >conftest.$ac_ext <<_ACEOF
2212 /* confdefs.h.  */
2213 _ACEOF
2214 cat confdefs.h >>conftest.$ac_ext
2215 cat >>conftest.$ac_ext <<_ACEOF
2216 /* end confdefs.h.  */
2217
2218 int
2219 main ()
2220 {
2221
2222   ;
2223   return 0;
2224 }
2225 _ACEOF
2226 rm -f conftest.o conftest.obj
2227 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2228   (eval $ac_compile) 2>&5
2229   ac_status=$?
2230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231   (exit $ac_status); }; then
2232   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2233   case $ac_file in
2234     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2235     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2236        break;;
2237   esac
2238 done
2239 else
2240   echo "$as_me: failed program was:" >&5
2241 sed 's/^/| /' conftest.$ac_ext >&5
2242
2243 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2244 See \`config.log' for more details." >&5
2245 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2246 See \`config.log' for more details." >&2;}
2247    { (exit 1); exit 1; }; }
2248 fi
2249
2250 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2251 fi
2252 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2253 echo "${ECHO_T}$ac_cv_objext" >&6
2254 OBJEXT=$ac_cv_objext
2255 ac_objext=$OBJEXT
2256 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2257 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2258 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2259   echo $ECHO_N "(cached) $ECHO_C" >&6
2260 else
2261   cat >conftest.$ac_ext <<_ACEOF
2262 /* confdefs.h.  */
2263 _ACEOF
2264 cat confdefs.h >>conftest.$ac_ext
2265 cat >>conftest.$ac_ext <<_ACEOF
2266 /* end confdefs.h.  */
2267
2268 int
2269 main ()
2270 {
2271 #ifndef __GNUC__
2272        choke me
2273 #endif
2274
2275   ;
2276   return 0;
2277 }
2278 _ACEOF
2279 rm -f conftest.$ac_objext
2280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2281   (eval $ac_compile) 2>conftest.er1
2282   ac_status=$?
2283   grep -v '^ *+' conftest.er1 >conftest.err
2284   rm -f conftest.er1
2285   cat conftest.err >&5
2286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287   (exit $ac_status); } &&
2288          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2290   (eval $ac_try) 2>&5
2291   ac_status=$?
2292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293   (exit $ac_status); }; } &&
2294          { ac_try='test -s conftest.$ac_objext'
2295   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2296   (eval $ac_try) 2>&5
2297   ac_status=$?
2298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299   (exit $ac_status); }; }; then
2300   ac_compiler_gnu=yes
2301 else
2302   echo "$as_me: failed program was:" >&5
2303 sed 's/^/| /' conftest.$ac_ext >&5
2304
2305 ac_compiler_gnu=no
2306 fi
2307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2308 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2309
2310 fi
2311 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2312 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2313 GCC=`test $ac_compiler_gnu = yes && echo yes`
2314 ac_test_CFLAGS=${CFLAGS+set}
2315 ac_save_CFLAGS=$CFLAGS
2316 CFLAGS="-g"
2317 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2318 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2319 if test "${ac_cv_prog_cc_g+set}" = set; then
2320   echo $ECHO_N "(cached) $ECHO_C" >&6
2321 else
2322   cat >conftest.$ac_ext <<_ACEOF
2323 /* confdefs.h.  */
2324 _ACEOF
2325 cat confdefs.h >>conftest.$ac_ext
2326 cat >>conftest.$ac_ext <<_ACEOF
2327 /* end confdefs.h.  */
2328
2329 int
2330 main ()
2331 {
2332
2333   ;
2334   return 0;
2335 }
2336 _ACEOF
2337 rm -f conftest.$ac_objext
2338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2339   (eval $ac_compile) 2>conftest.er1
2340   ac_status=$?
2341   grep -v '^ *+' conftest.er1 >conftest.err
2342   rm -f conftest.er1
2343   cat conftest.err >&5
2344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345   (exit $ac_status); } &&
2346          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2347   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2348   (eval $ac_try) 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_cv_prog_cc_g=yes
2359 else
2360   echo "$as_me: failed program was:" >&5
2361 sed 's/^/| /' conftest.$ac_ext >&5
2362
2363 ac_cv_prog_cc_g=no
2364 fi
2365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2366 fi
2367 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2368 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2369 if test "$ac_test_CFLAGS" = set; then
2370   CFLAGS=$ac_save_CFLAGS
2371 elif test $ac_cv_prog_cc_g = yes; then
2372   if test "$GCC" = yes; then
2373     CFLAGS="-g -O2"
2374   else
2375     CFLAGS="-g"
2376   fi
2377 else
2378   if test "$GCC" = yes; then
2379     CFLAGS="-O2"
2380   else
2381     CFLAGS=
2382   fi
2383 fi
2384 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2385 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2386 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2387   echo $ECHO_N "(cached) $ECHO_C" >&6
2388 else
2389   ac_cv_prog_cc_stdc=no
2390 ac_save_CC=$CC
2391 cat >conftest.$ac_ext <<_ACEOF
2392 /* confdefs.h.  */
2393 _ACEOF
2394 cat confdefs.h >>conftest.$ac_ext
2395 cat >>conftest.$ac_ext <<_ACEOF
2396 /* end confdefs.h.  */
2397 #include <stdarg.h>
2398 #include <stdio.h>
2399 #include <sys/types.h>
2400 #include <sys/stat.h>
2401 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2402 struct buf { int x; };
2403 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2404 static char *e (p, i)
2405      char **p;
2406      int i;
2407 {
2408   return p[i];
2409 }
2410 static char *f (char * (*g) (char **, int), char **p, ...)
2411 {
2412   char *s;
2413   va_list v;
2414   va_start (v,p);
2415   s = g (p, va_arg (v,int));
2416   va_end (v);
2417   return s;
2418 }
2419
2420 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2421    function prototypes and stuff, but not '\xHH' hex character constants.
2422    These don't provoke an error unfortunately, instead are silently treated
2423    as 'x'.  The following induces an error, until -std1 is added to get
2424    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2425    array size at least.  It's necessary to write '\x00'==0 to get something
2426    that's true only with -std1.  */
2427 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2428
2429 int test (int i, double x);
2430 struct s1 {int (*f) (int a);};
2431 struct s2 {int (*f) (double a);};
2432 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2433 int argc;
2434 char **argv;
2435 int
2436 main ()
2437 {
2438 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2439   ;
2440   return 0;
2441 }
2442 _ACEOF
2443 # Don't try gcc -ansi; that turns off useful extensions and
2444 # breaks some systems' header files.
2445 # AIX                   -qlanglvl=ansi
2446 # Ultrix and OSF/1      -std1
2447 # HP-UX 10.20 and later -Ae
2448 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2449 # SVR4                  -Xc -D__EXTENSIONS__
2450 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2451 do
2452   CC="$ac_save_CC $ac_arg"
2453   rm -f conftest.$ac_objext
2454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2455   (eval $ac_compile) 2>conftest.er1
2456   ac_status=$?
2457   grep -v '^ *+' conftest.er1 >conftest.err
2458   rm -f conftest.er1
2459   cat conftest.err >&5
2460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461   (exit $ac_status); } &&
2462          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2463   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2464   (eval $ac_try) 2>&5
2465   ac_status=$?
2466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467   (exit $ac_status); }; } &&
2468          { ac_try='test -s conftest.$ac_objext'
2469   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470   (eval $ac_try) 2>&5
2471   ac_status=$?
2472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473   (exit $ac_status); }; }; then
2474   ac_cv_prog_cc_stdc=$ac_arg
2475 break
2476 else
2477   echo "$as_me: failed program was:" >&5
2478 sed 's/^/| /' conftest.$ac_ext >&5
2479
2480 fi
2481 rm -f conftest.err conftest.$ac_objext
2482 done
2483 rm -f conftest.$ac_ext conftest.$ac_objext
2484 CC=$ac_save_CC
2485
2486 fi
2487
2488 case "x$ac_cv_prog_cc_stdc" in
2489   x|xno)
2490     echo "$as_me:$LINENO: result: none needed" >&5
2491 echo "${ECHO_T}none needed" >&6 ;;
2492   *)
2493     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2494 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2495     CC="$CC $ac_cv_prog_cc_stdc" ;;
2496 esac
2497
2498 # Some people use a C++ compiler to compile C.  Since we use `exit',
2499 # in C++ we need to declare it.  In case someone uses the same compiler
2500 # for both compiling C and C++ we need to have the C++ compiler decide
2501 # the declaration of exit, since it's the most demanding environment.
2502 cat >conftest.$ac_ext <<_ACEOF
2503 #ifndef __cplusplus
2504   choke me
2505 #endif
2506 _ACEOF
2507 rm -f conftest.$ac_objext
2508 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2509   (eval $ac_compile) 2>conftest.er1
2510   ac_status=$?
2511   grep -v '^ *+' conftest.er1 >conftest.err
2512   rm -f conftest.er1
2513   cat conftest.err >&5
2514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515   (exit $ac_status); } &&
2516          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2517   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2518   (eval $ac_try) 2>&5
2519   ac_status=$?
2520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521   (exit $ac_status); }; } &&
2522          { ac_try='test -s conftest.$ac_objext'
2523   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524   (eval $ac_try) 2>&5
2525   ac_status=$?
2526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527   (exit $ac_status); }; }; then
2528   for ac_declaration in \
2529    '' \
2530    'extern "C" void std::exit (int) throw (); using std::exit;' \
2531    'extern "C" void std::exit (int); using std::exit;' \
2532    'extern "C" void exit (int) throw ();' \
2533    'extern "C" void exit (int);' \
2534    'void exit (int);'
2535 do
2536   cat >conftest.$ac_ext <<_ACEOF
2537 /* confdefs.h.  */
2538 _ACEOF
2539 cat confdefs.h >>conftest.$ac_ext
2540 cat >>conftest.$ac_ext <<_ACEOF
2541 /* end confdefs.h.  */
2542 $ac_declaration
2543 #include <stdlib.h>
2544 int
2545 main ()
2546 {
2547 exit (42);
2548   ;
2549   return 0;
2550 }
2551 _ACEOF
2552 rm -f conftest.$ac_objext
2553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2554   (eval $ac_compile) 2>conftest.er1
2555   ac_status=$?
2556   grep -v '^ *+' conftest.er1 >conftest.err
2557   rm -f conftest.er1
2558   cat conftest.err >&5
2559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560   (exit $ac_status); } &&
2561          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2562   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563   (eval $ac_try) 2>&5
2564   ac_status=$?
2565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566   (exit $ac_status); }; } &&
2567          { ac_try='test -s conftest.$ac_objext'
2568   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2569   (eval $ac_try) 2>&5
2570   ac_status=$?
2571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572   (exit $ac_status); }; }; then
2573   :
2574 else
2575   echo "$as_me: failed program was:" >&5
2576 sed 's/^/| /' conftest.$ac_ext >&5
2577
2578 continue
2579 fi
2580 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2581   cat >conftest.$ac_ext <<_ACEOF
2582 /* confdefs.h.  */
2583 _ACEOF
2584 cat confdefs.h >>conftest.$ac_ext
2585 cat >>conftest.$ac_ext <<_ACEOF
2586 /* end confdefs.h.  */
2587 $ac_declaration
2588 int
2589 main ()
2590 {
2591 exit (42);
2592   ;
2593   return 0;
2594 }
2595 _ACEOF
2596 rm -f conftest.$ac_objext
2597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2598   (eval $ac_compile) 2>conftest.er1
2599   ac_status=$?
2600   grep -v '^ *+' conftest.er1 >conftest.err
2601   rm -f conftest.er1
2602   cat conftest.err >&5
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); } &&
2605          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607   (eval $ac_try) 2>&5
2608   ac_status=$?
2609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610   (exit $ac_status); }; } &&
2611          { ac_try='test -s conftest.$ac_objext'
2612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2613   (eval $ac_try) 2>&5
2614   ac_status=$?
2615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616   (exit $ac_status); }; }; then
2617   break
2618 else
2619   echo "$as_me: failed program was:" >&5
2620 sed 's/^/| /' conftest.$ac_ext >&5
2621
2622 fi
2623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2624 done
2625 rm -f conftest*
2626 if test -n "$ac_declaration"; then
2627   echo '#ifdef __cplusplus' >>confdefs.h
2628   echo $ac_declaration      >>confdefs.h
2629   echo '#endif'             >>confdefs.h
2630 fi
2631
2632 else
2633   echo "$as_me: failed program was:" >&5
2634 sed 's/^/| /' conftest.$ac_ext >&5
2635
2636 fi
2637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2638 ac_ext=c
2639 ac_cpp='$CPP $CPPFLAGS'
2640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2643
2644
2645
2646         echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2647 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2648 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2649   echo $ECHO_N "(cached) $ECHO_C" >&6
2650 else
2651   ac_check_lib_save_LIBS=$LIBS
2652 LIBS="-lcposix  $LIBS"
2653 cat >conftest.$ac_ext <<_ACEOF
2654 /* confdefs.h.  */
2655 _ACEOF
2656 cat confdefs.h >>conftest.$ac_ext
2657 cat >>conftest.$ac_ext <<_ACEOF
2658 /* end confdefs.h.  */
2659
2660 /* Override any gcc2 internal prototype to avoid an error.  */
2661 #ifdef __cplusplus
2662 extern "C"
2663 #endif
2664 /* We use char because int might match the return type of a gcc2
2665    builtin and then its argument prototype would still apply.  */
2666 char strerror ();
2667 int
2668 main ()
2669 {
2670 strerror ();
2671   ;
2672   return 0;
2673 }
2674 _ACEOF
2675 rm -f conftest.$ac_objext conftest$ac_exeext
2676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2677   (eval $ac_link) 2>conftest.er1
2678   ac_status=$?
2679   grep -v '^ *+' conftest.er1 >conftest.err
2680   rm -f conftest.er1
2681   cat conftest.err >&5
2682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683   (exit $ac_status); } &&
2684          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2686   (eval $ac_try) 2>&5
2687   ac_status=$?
2688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2689   (exit $ac_status); }; } &&
2690          { ac_try='test -s conftest$ac_exeext'
2691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692   (eval $ac_try) 2>&5
2693   ac_status=$?
2694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695   (exit $ac_status); }; }; then
2696   ac_cv_lib_cposix_strerror=yes
2697 else
2698   echo "$as_me: failed program was:" >&5
2699 sed 's/^/| /' conftest.$ac_ext >&5
2700
2701 ac_cv_lib_cposix_strerror=no
2702 fi
2703 rm -f conftest.err conftest.$ac_objext \
2704       conftest$ac_exeext conftest.$ac_ext
2705 LIBS=$ac_check_lib_save_LIBS
2706 fi
2707 echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2708 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2709 if test $ac_cv_lib_cposix_strerror = yes; then
2710   LIBS="$LIBS -lcposix"
2711 fi
2712
2713
2714
2715
2716
2717
2718 echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
2719 echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
2720 if test "${am_cv_prog_cc_stdc+set}" = set; then
2721   echo $ECHO_N "(cached) $ECHO_C" >&6
2722 else
2723   am_cv_prog_cc_stdc=no
2724 ac_save_CC="$CC"
2725 # Don't try gcc -ansi; that turns off useful extensions and
2726 # breaks some systems' header files.
2727 # AIX                   -qlanglvl=ansi
2728 # Ultrix and OSF/1      -std1
2729 # HP-UX                 -Aa -D_HPUX_SOURCE
2730 # SVR4                  -Xc -D__EXTENSIONS__
2731 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2732 do
2733   CC="$ac_save_CC $ac_arg"
2734   cat >conftest.$ac_ext <<_ACEOF
2735 /* confdefs.h.  */
2736 _ACEOF
2737 cat confdefs.h >>conftest.$ac_ext
2738 cat >>conftest.$ac_ext <<_ACEOF
2739 /* end confdefs.h.  */
2740 #include <stdarg.h>
2741 #include <stdio.h>
2742 #include <sys/types.h>
2743 #include <sys/stat.h>
2744 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2745 struct buf { int x; };
2746 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2747 static char *e (p, i)
2748      char **p;
2749      int i;
2750 {
2751   return p[i];
2752 }
2753 static char *f (char * (*g) (char **, int), char **p, ...)
2754 {
2755   char *s;
2756   va_list v;
2757   va_start (v,p);
2758   s = g (p, va_arg (v,int));
2759   va_end (v);
2760   return s;
2761 }
2762 int test (int i, double x);
2763 struct s1 {int (*f) (int a);};
2764 struct s2 {int (*f) (double a);};
2765 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2766 int argc;
2767 char **argv;
2768
2769 int
2770 main ()
2771 {
2772
2773 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2774
2775   ;
2776   return 0;
2777 }
2778 _ACEOF
2779 rm -f conftest.$ac_objext
2780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781   (eval $ac_compile) 2>conftest.er1
2782   ac_status=$?
2783   grep -v '^ *+' conftest.er1 >conftest.err
2784   rm -f conftest.er1
2785   cat conftest.err >&5
2786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2787   (exit $ac_status); } &&
2788          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
2789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2790   (eval $ac_try) 2>&5
2791   ac_status=$?
2792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793   (exit $ac_status); }; } &&
2794          { ac_try='test -s conftest.$ac_objext'
2795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796   (eval $ac_try) 2>&5
2797   ac_status=$?
2798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799   (exit $ac_status); }; }; then
2800   am_cv_prog_cc_stdc="$ac_arg"; break
2801 else
2802   echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2804
2805 fi
2806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2807 done
2808 CC="$ac_save_CC"
2809
2810 fi
2811
2812 if test -z "$am_cv_prog_cc_stdc"; then
2813   echo "$as_me:$LINENO: result: none needed" >&5
2814 echo "${ECHO_T}none needed" >&6
2815 else
2816   echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
2817 echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
2818 fi
2819 case "x$am_cv_prog_cc_stdc" in
2820   x|xno) ;;
2821   *) CC="$CC $am_cv_prog_cc_stdc" ;;
2822 esac
2823
2824 ac_ext=c
2825 ac_cpp='$CPP $CPPFLAGS'
2826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2829 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2830 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2831 # On Suns, sometimes $CPP names a directory.
2832 if test -n "$CPP" && test -d "$CPP"; then
2833   CPP=
2834 fi
2835 if test -z "$CPP"; then
2836   if test "${ac_cv_prog_CPP+set}" = set; then
2837   echo $ECHO_N "(cached) $ECHO_C" >&6
2838 else
2839       # Double quotes because CPP needs to be expanded
2840     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2841     do
2842       ac_preproc_ok=false
2843 for ac_c_preproc_warn_flag in '' yes
2844 do
2845   # Use a header file that comes with gcc, so configuring glibc
2846   # with a fresh cross-compiler works.
2847   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2848   # <limits.h> exists even on freestanding compilers.
2849   # On the NeXT, cc -E runs the code through the compiler's parser,
2850   # not just through cpp. "Syntax error" is here to catch this case.
2851   cat >conftest.$ac_ext <<_ACEOF
2852 /* confdefs.h.  */
2853 _ACEOF
2854 cat confdefs.h >>conftest.$ac_ext
2855 cat >>conftest.$ac_ext <<_ACEOF
2856 /* end confdefs.h.  */
2857 #ifdef __STDC__
2858 # include <limits.h>
2859 #else
2860 # include <assert.h>
2861 #endif
2862                      Syntax error
2863 _ACEOF
2864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2865   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2866   ac_status=$?
2867   grep -v '^ *+' conftest.er1 >conftest.err
2868   rm -f conftest.er1
2869   cat conftest.err >&5
2870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871   (exit $ac_status); } >/dev/null; then
2872   if test -s conftest.err; then
2873     ac_cpp_err=$ac_c_preproc_warn_flag
2874     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2875   else
2876     ac_cpp_err=
2877   fi
2878 else
2879   ac_cpp_err=yes
2880 fi
2881 if test -z "$ac_cpp_err"; then
2882   :
2883 else
2884   echo "$as_me: failed program was:" >&5
2885 sed 's/^/| /' conftest.$ac_ext >&5
2886
2887   # Broken: fails on valid input.
2888 continue
2889 fi
2890 rm -f conftest.err conftest.$ac_ext
2891
2892   # OK, works on sane cases.  Now check whether non-existent headers
2893   # can be detected and how.
2894   cat >conftest.$ac_ext <<_ACEOF
2895 /* confdefs.h.  */
2896 _ACEOF
2897 cat confdefs.h >>conftest.$ac_ext
2898 cat >>conftest.$ac_ext <<_ACEOF
2899 /* end confdefs.h.  */
2900 #include <ac_nonexistent.h>
2901 _ACEOF
2902 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2903   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2904   ac_status=$?
2905   grep -v '^ *+' conftest.er1 >conftest.err
2906   rm -f conftest.er1
2907   cat conftest.err >&5
2908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909   (exit $ac_status); } >/dev/null; then
2910   if test -s conftest.err; then
2911     ac_cpp_err=$ac_c_preproc_warn_flag
2912     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2913   else
2914     ac_cpp_err=
2915   fi
2916 else
2917   ac_cpp_err=yes
2918 fi
2919 if test -z "$ac_cpp_err"; then
2920   # Broken: success on invalid input.
2921 continue
2922 else
2923   echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.$ac_ext >&5
2925
2926   # Passes both tests.
2927 ac_preproc_ok=:
2928 break
2929 fi
2930 rm -f conftest.err conftest.$ac_ext
2931
2932 done
2933 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2934 rm -f conftest.err conftest.$ac_ext
2935 if $ac_preproc_ok; then
2936   break
2937 fi
2938
2939     done
2940     ac_cv_prog_CPP=$CPP
2941
2942 fi
2943   CPP=$ac_cv_prog_CPP
2944 else
2945   ac_cv_prog_CPP=$CPP
2946 fi
2947 echo "$as_me:$LINENO: result: $CPP" >&5
2948 echo "${ECHO_T}$CPP" >&6
2949 ac_preproc_ok=false
2950 for ac_c_preproc_warn_flag in '' yes
2951 do
2952   # Use a header file that comes with gcc, so configuring glibc
2953   # with a fresh cross-compiler works.
2954   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2955   # <limits.h> exists even on freestanding compilers.
2956   # On the NeXT, cc -E runs the code through the compiler's parser,
2957   # not just through cpp. "Syntax error" is here to catch this case.
2958   cat >conftest.$ac_ext <<_ACEOF
2959 /* confdefs.h.  */
2960 _ACEOF
2961 cat confdefs.h >>conftest.$ac_ext
2962 cat >>conftest.$ac_ext <<_ACEOF
2963 /* end confdefs.h.  */
2964 #ifdef __STDC__
2965 # include <limits.h>
2966 #else
2967 # include <assert.h>
2968 #endif
2969                      Syntax error
2970 _ACEOF
2971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2972   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2973   ac_status=$?
2974   grep -v '^ *+' conftest.er1 >conftest.err
2975   rm -f conftest.er1
2976   cat conftest.err >&5
2977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978   (exit $ac_status); } >/dev/null; then
2979   if test -s conftest.err; then
2980     ac_cpp_err=$ac_c_preproc_warn_flag
2981     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2982   else
2983     ac_cpp_err=
2984   fi
2985 else
2986   ac_cpp_err=yes
2987 fi
2988 if test -z "$ac_cpp_err"; then
2989   :
2990 else
2991   echo "$as_me: failed program was:" >&5
2992 sed 's/^/| /' conftest.$ac_ext >&5
2993
2994   # Broken: fails on valid input.
2995 continue
2996 fi
2997 rm -f conftest.err conftest.$ac_ext
2998
2999   # OK, works on sane cases.  Now check whether non-existent headers
3000   # can be detected and how.
3001   cat >conftest.$ac_ext <<_ACEOF
3002 /* confdefs.h.  */
3003 _ACEOF
3004 cat confdefs.h >>conftest.$ac_ext
3005 cat >>conftest.$ac_ext <<_ACEOF
3006 /* end confdefs.h.  */
3007 #include <ac_nonexistent.h>
3008 _ACEOF
3009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3010   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3011   ac_status=$?
3012   grep -v '^ *+' conftest.er1 >conftest.err
3013   rm -f conftest.er1
3014   cat conftest.err >&5
3015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016   (exit $ac_status); } >/dev/null; then
3017   if test -s conftest.err; then
3018     ac_cpp_err=$ac_c_preproc_warn_flag
3019     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3020   else
3021     ac_cpp_err=
3022   fi
3023 else
3024   ac_cpp_err=yes
3025 fi
3026 if test -z "$ac_cpp_err"; then
3027   # Broken: success on invalid input.
3028 continue
3029 else
3030   echo "$as_me: failed program was:" >&5
3031 sed 's/^/| /' conftest.$ac_ext >&5
3032
3033   # Passes both tests.
3034 ac_preproc_ok=:
3035 break
3036 fi
3037 rm -f conftest.err conftest.$ac_ext
3038
3039 done
3040 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3041 rm -f conftest.err conftest.$ac_ext
3042 if $ac_preproc_ok; then
3043   :
3044 else
3045   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3046 See \`config.log' for more details." >&5
3047 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3048 See \`config.log' for more details." >&2;}
3049    { (exit 1); exit 1; }; }
3050 fi
3051
3052 ac_ext=c
3053 ac_cpp='$CPP $CPPFLAGS'
3054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3057
3058
3059 echo "$as_me:$LINENO: checking for egrep" >&5
3060 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3061 if test "${ac_cv_prog_egrep+set}" = set; then
3062   echo $ECHO_N "(cached) $ECHO_C" >&6
3063 else
3064   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3065     then ac_cv_prog_egrep='grep -E'
3066     else ac_cv_prog_egrep='egrep'
3067     fi
3068 fi
3069 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3070 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3071  EGREP=$ac_cv_prog_egrep
3072
3073
3074 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3085                   inttypes.h stdint.h unistd.h
3086 do
3087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3088 echo "$as_me:$LINENO: checking for $ac_header" >&5
3089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3090 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3091   echo $ECHO_N "(cached) $ECHO_C" >&6
3092 else
3093   cat >conftest.$ac_ext <<_ACEOF
3094 /* confdefs.h.  */
3095 _ACEOF
3096 cat confdefs.h >>conftest.$ac_ext
3097 cat >>conftest.$ac_ext <<_ACEOF
3098 /* end confdefs.h.  */
3099 $ac_includes_default
3100
3101 #include <$ac_header>
3102 _ACEOF
3103 rm -f conftest.$ac_objext
3104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3105   (eval $ac_compile) 2>conftest.er1
3106   ac_status=$?
3107   grep -v '^ *+' conftest.er1 >conftest.err
3108   rm -f conftest.er1
3109   cat conftest.err >&5
3110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111   (exit $ac_status); } &&
3112          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3113   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3114   (eval $ac_try) 2>&5
3115   ac_status=$?
3116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117   (exit $ac_status); }; } &&
3118          { ac_try='test -s conftest.$ac_objext'
3119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3120   (eval $ac_try) 2>&5
3121   ac_status=$?
3122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123   (exit $ac_status); }; }; then
3124   eval "$as_ac_Header=yes"
3125 else
3126   echo "$as_me: failed program was:" >&5
3127 sed 's/^/| /' conftest.$ac_ext >&5
3128
3129 eval "$as_ac_Header=no"
3130 fi
3131 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3132 fi
3133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3134 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3136   cat >>confdefs.h <<_ACEOF
3137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3138 _ACEOF
3139
3140 fi
3141
3142 done
3143
3144
3145
3146
3147 echo "$as_me:$LINENO: checking for function prototypes" >&5
3148 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3149 if test "$am_cv_prog_cc_stdc" != no; then
3150   echo "$as_me:$LINENO: result: yes" >&5
3151 echo "${ECHO_T}yes" >&6
3152
3153 cat >>confdefs.h <<\_ACEOF
3154 #define PROTOTYPES 1
3155 _ACEOF
3156
3157   U= ANSI2KNR=
3158 else
3159   echo "$as_me:$LINENO: result: no" >&5
3160 echo "${ECHO_T}no" >&6
3161   U=_ ANSI2KNR=./ansi2knr
3162   # Ensure some checks needed by ansi2knr itself.
3163   echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3164 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3165 if test "${ac_cv_header_stdc+set}" = set; then
3166   echo $ECHO_N "(cached) $ECHO_C" >&6
3167 else
3168   cat >conftest.$ac_ext <<_ACEOF
3169 /* confdefs.h.  */
3170 _ACEOF
3171 cat confdefs.h >>conftest.$ac_ext
3172 cat >>conftest.$ac_ext <<_ACEOF
3173 /* end confdefs.h.  */
3174 #include <stdlib.h>
3175 #include <stdarg.h>
3176 #include <string.h>
3177 #include <float.h>
3178
3179 int
3180 main ()
3181 {
3182
3183   ;
3184   return 0;
3185 }
3186 _ACEOF
3187 rm -f conftest.$ac_objext
3188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3189   (eval $ac_compile) 2>conftest.er1
3190   ac_status=$?
3191   grep -v '^ *+' conftest.er1 >conftest.err
3192   rm -f conftest.er1
3193   cat conftest.err >&5
3194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195   (exit $ac_status); } &&
3196          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3197   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3198   (eval $ac_try) 2>&5
3199   ac_status=$?
3200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201   (exit $ac_status); }; } &&
3202          { ac_try='test -s conftest.$ac_objext'
3203   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3204   (eval $ac_try) 2>&5
3205   ac_status=$?
3206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207   (exit $ac_status); }; }; then
3208   ac_cv_header_stdc=yes
3209 else
3210   echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3212
3213 ac_cv_header_stdc=no
3214 fi
3215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3216
3217 if test $ac_cv_header_stdc = yes; then
3218   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3219   cat >conftest.$ac_ext <<_ACEOF
3220 /* confdefs.h.  */
3221 _ACEOF
3222 cat confdefs.h >>conftest.$ac_ext
3223 cat >>conftest.$ac_ext <<_ACEOF
3224 /* end confdefs.h.  */
3225 #include <string.h>
3226
3227 _ACEOF
3228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3229   $EGREP "memchr" >/dev/null 2>&1; then
3230   :
3231 else
3232   ac_cv_header_stdc=no
3233 fi
3234 rm -f conftest*
3235
3236 fi
3237
3238 if test $ac_cv_header_stdc = yes; then
3239   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3240   cat >conftest.$ac_ext <<_ACEOF
3241 /* confdefs.h.  */
3242 _ACEOF
3243 cat confdefs.h >>conftest.$ac_ext
3244 cat >>conftest.$ac_ext <<_ACEOF
3245 /* end confdefs.h.  */
3246 #include <stdlib.h>
3247
3248 _ACEOF
3249 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3250   $EGREP "free" >/dev/null 2>&1; then
3251   :
3252 else
3253   ac_cv_header_stdc=no
3254 fi
3255 rm -f conftest*
3256
3257 fi
3258
3259 if test $ac_cv_header_stdc = yes; then
3260   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3261   if test "$cross_compiling" = yes; then
3262   :
3263 else
3264   cat >conftest.$ac_ext <<_ACEOF
3265 /* confdefs.h.  */
3266 _ACEOF
3267 cat confdefs.h >>conftest.$ac_ext
3268 cat >>conftest.$ac_ext <<_ACEOF
3269 /* end confdefs.h.  */
3270 #include <ctype.h>
3271 #if ((' ' & 0x0FF) == 0x020)
3272 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3273 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3274 #else
3275 # define ISLOWER(c) \
3276                    (('a' <= (c) && (c) <= 'i') \
3277                      || ('j' <= (c) && (c) <= 'r') \
3278                      || ('s' <= (c) && (c) <= 'z'))
3279 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3280 #endif
3281
3282 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3283 int
3284 main ()
3285 {
3286   int i;
3287   for (i = 0; i < 256; i++)
3288     if (XOR (islower (i), ISLOWER (i))
3289         || toupper (i) != TOUPPER (i))
3290       exit(2);
3291   exit (0);
3292 }
3293 _ACEOF
3294 rm -f conftest$ac_exeext
3295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3296   (eval $ac_link) 2>&5
3297   ac_status=$?
3298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3301   (eval $ac_try) 2>&5
3302   ac_status=$?
3303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304   (exit $ac_status); }; }; then
3305   :
3306 else
3307   echo "$as_me: program exited with status $ac_status" >&5
3308 echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3310
3311 ( exit $ac_status )
3312 ac_cv_header_stdc=no
3313 fi
3314 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3315 fi
3316 fi
3317 fi
3318 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3319 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3320 if test $ac_cv_header_stdc = yes; then
3321
3322 cat >>confdefs.h <<\_ACEOF
3323 #define STDC_HEADERS 1
3324 _ACEOF
3325
3326 fi
3327
3328
3329 for ac_header in string.h
3330 do
3331 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3333   echo "$as_me:$LINENO: checking for $ac_header" >&5
3334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3335 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3336   echo $ECHO_N "(cached) $ECHO_C" >&6
3337 fi
3338 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3339 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3340 else
3341   # Is the header compilable?
3342 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3344 cat >conftest.$ac_ext <<_ACEOF
3345 /* confdefs.h.  */
3346 _ACEOF
3347 cat confdefs.h >>conftest.$ac_ext
3348 cat >>conftest.$ac_ext <<_ACEOF
3349 /* end confdefs.h.  */
3350 $ac_includes_default
3351 #include <$ac_header>
3352 _ACEOF
3353 rm -f conftest.$ac_objext
3354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3355   (eval $ac_compile) 2>conftest.er1
3356   ac_status=$?
3357   grep -v '^ *+' conftest.er1 >conftest.err
3358   rm -f conftest.er1
3359   cat conftest.err >&5
3360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361   (exit $ac_status); } &&
3362          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
3363   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3364   (eval $ac_try) 2>&5
3365   ac_status=$?
3366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3367   (exit $ac_status); }; } &&
3368          { ac_try='test -s conftest.$ac_objext'
3369   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3370   (eval $ac_try) 2>&5
3371   ac_status=$?
3372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373   (exit $ac_status); }; }; then
3374   ac_header_compiler=yes
3375 else
3376   echo "$as_me: failed program was:" >&5
3377 sed 's/^/| /' conftest.$ac_ext >&5
3378
3379 ac_header_compiler=no
3380 fi
3381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3382 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3383 echo "${ECHO_T}$ac_header_compiler" >&6
3384
3385 # Is the header present?
3386 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3387 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3388 cat >conftest.$ac_ext <<_ACEOF
3389 /* confdefs.h.  */
3390 _ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h.  */
3394 #include <$ac_header>
3395 _ACEOF
3396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3397   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3398   ac_status=$?
3399   grep -v '^ *+' conftest.er1 >conftest.err
3400   rm -f conftest.er1
3401   cat conftest.err >&5
3402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403   (exit $ac_status); } >/dev/null; then
3404   if test -s conftest.err; then
3405     ac_cpp_err=$ac_c_preproc_warn_flag
3406     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3407   else
3408     ac_cpp_err=
3409   fi
3410 else
3411   ac_cpp_err=yes
3412 fi
3413 if test -z "$ac_cpp_err"; then
3414   ac_header_preproc=yes
3415 else
3416   echo "$as_me: failed program was:" >&5
3417 sed 's/^/| /' conftest.$ac_ext >&5
3418
3419   ac_header_preproc=no
3420 fi
3421 rm -f conftest.err conftest.$ac_ext
3422 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3423 echo "${ECHO_T}$ac_header_preproc" >&6
3424
3425 # So?  What about this header?
3426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3427   yes:no: )
3428     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3429 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3430     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3431 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3432     ac_header_preproc=yes
3433     ;;
3434   no:yes:* )
3435     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3436 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3437     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3438 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3439     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3440 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3441     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3442 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3443     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3444 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3445     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3446 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3447     (
3448       cat <<\_ASBOX
3449 ## ------------------------------------------ ##
3450 ## Report this to the AC_PACKAGE_NAME lists.  ##
3451 ## ------------------------------------------ ##
3452 _ASBOX
3453     ) |
3454       sed "s/^/$as_me: WARNING:     /" >&2
3455     ;;
3456 esac
3457 echo "$as_me:$LINENO: checking for $ac_header" >&5
3458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3459 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3460   echo $ECHO_N "(cached) $ECHO_C" >&6
3461 else
3462   eval "$as_ac_Header=\$ac_header_preproc"
3463 fi
3464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3465 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3466
3467 fi
3468 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3469   cat >>confdefs.h <<_ACEOF
3470 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3471 _ACEOF
3472
3473 fi
3474
3475 done
3476
3477 fi
3478
3479 if test "x$U" != "x"; then
3480   { { echo "$as_me:$LINENO: error: Compiler not ANSI compliant" >&5
3481 echo "$as_me: error: Compiler not ANSI compliant" >&2;}
3482    { (exit 1); exit 1; }; }
3483 fi
3484 ac_ext=c
3485 ac_cpp='$CPP $CPPFLAGS'
3486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3489 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3490 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3491 # On Suns, sometimes $CPP names a directory.
3492 if test -n "$CPP" && test -d "$CPP"; then
3493   CPP=
3494 fi
3495 if test -z "$CPP"; then
3496   if test "${ac_cv_prog_CPP+set}" = set; then
3497   echo $ECHO_N "(cached) $ECHO_C" >&6
3498 else
3499       # Double quotes because CPP needs to be expanded
3500     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3501     do
3502       ac_preproc_ok=false
3503 for ac_c_preproc_warn_flag in '' yes
3504 do
3505   # Use a header file that comes with gcc, so configuring glibc
3506   # with a fresh cross-compiler works.
3507   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3508   # <limits.h> exists even on freestanding compilers.
3509   # On the NeXT, cc -E runs the code through the compiler's parser,
3510   # not just through cpp. "Syntax error" is here to catch this case.
3511   cat >conftest.$ac_ext <<_ACEOF
3512 /* confdefs.h.  */
3513 _ACEOF
3514 cat confdefs.h >>conftest.$ac_ext
3515 cat >>conftest.$ac_ext <<_ACEOF
3516 /* end confdefs.h.  */
3517 #ifdef __STDC__
3518 # include <limits.h>
3519 #else
3520 # include <assert.h>
3521 #endif
3522                      Syntax error
3523 _ACEOF
3524 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3525   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3526   ac_status=$?
3527   grep -v '^ *+' conftest.er1 >conftest.err
3528   rm -f conftest.er1
3529   cat conftest.err >&5
3530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531   (exit $ac_status); } >/dev/null; then
3532   if test -s conftest.err; then
3533     ac_cpp_err=$ac_c_preproc_warn_flag
3534     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3535   else
3536     ac_cpp_err=
3537   fi
3538 else
3539   ac_cpp_err=yes
3540 fi
3541 if test -z "$ac_cpp_err"; then
3542   :
3543 else
3544   echo "$as_me: failed program was:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3546
3547   # Broken: fails on valid input.
3548 continue
3549 fi
3550 rm -f conftest.err conftest.$ac_ext
3551
3552   # OK, works on sane cases.  Now check whether non-existent headers
3553   # can be detected and how.
3554   cat >conftest.$ac_ext <<_ACEOF
3555 /* confdefs.h.  */
3556 _ACEOF
3557 cat confdefs.h >>conftest.$ac_ext
3558 cat >>conftest.$ac_ext <<_ACEOF
3559 /* end confdefs.h.  */
3560 #include <ac_nonexistent.h>
3561 _ACEOF
3562 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3563   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3564   ac_status=$?
3565   grep -v '^ *+' conftest.er1 >conftest.err
3566   rm -f conftest.er1
3567   cat conftest.err >&5
3568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3569   (exit $ac_status); } >/dev/null; then
3570   if test -s conftest.err; then
3571     ac_cpp_err=$ac_c_preproc_warn_flag
3572     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3573   else
3574     ac_cpp_err=
3575   fi
3576 else
3577   ac_cpp_err=yes
3578 fi
3579 if test -z "$ac_cpp_err"; then
3580   # Broken: success on invalid input.
3581 continue
3582 else
3583   echo "$as_me: failed program was:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3585
3586   # Passes both tests.
3587 ac_preproc_ok=:
3588 break
3589 fi
3590 rm -f conftest.err conftest.$ac_ext
3591
3592 done
3593 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3594 rm -f conftest.err conftest.$ac_ext
3595 if $ac_preproc_ok; then
3596   break
3597 fi
3598
3599     done
3600     ac_cv_prog_CPP=$CPP
3601
3602 fi
3603   CPP=$ac_cv_prog_CPP
3604 else
3605   ac_cv_prog_CPP=$CPP
3606 fi
3607 echo "$as_me:$LINENO: result: $CPP" >&5
3608 echo "${ECHO_T}$CPP" >&6
3609 ac_preproc_ok=false
3610 for ac_c_preproc_warn_flag in '' yes
3611 do
3612   # Use a header file that comes with gcc, so configuring glibc
3613   # with a fresh cross-compiler works.
3614   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3615   # <limits.h> exists even on freestanding compilers.
3616   # On the NeXT, cc -E runs the code through the compiler's parser,
3617   # not just through cpp. "Syntax error" is here to catch this case.
3618   cat >conftest.$ac_ext <<_ACEOF
3619 /* confdefs.h.  */
3620 _ACEOF
3621 cat confdefs.h >>conftest.$ac_ext
3622 cat >>conftest.$ac_ext <<_ACEOF
3623 /* end confdefs.h.  */
3624 #ifdef __STDC__
3625 # include <limits.h>
3626 #else
3627 # include <assert.h>
3628 #endif
3629                      Syntax error
3630 _ACEOF
3631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3632   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3633   ac_status=$?
3634   grep -v '^ *+' conftest.er1 >conftest.err
3635   rm -f conftest.er1
3636   cat conftest.err >&5
3637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638   (exit $ac_status); } >/dev/null; then
3639   if test -s conftest.err; then
3640     ac_cpp_err=$ac_c_preproc_warn_flag
3641     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3642   else
3643     ac_cpp_err=
3644   fi
3645 else
3646   ac_cpp_err=yes
3647 fi
3648 if test -z "$ac_cpp_err"; then
3649   :
3650 else
3651   echo "$as_me: failed program was:" >&5
3652 sed 's/^/| /' conftest.$ac_ext >&5
3653
3654   # Broken: fails on valid input.
3655 continue
3656 fi
3657 rm -f conftest.err conftest.$ac_ext
3658
3659   # OK, works on sane cases.  Now check whether non-existent headers
3660   # can be detected and how.
3661   cat >conftest.$ac_ext <<_ACEOF
3662 /* confdefs.h.  */
3663 _ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h.  */
3667 #include <ac_nonexistent.h>
3668 _ACEOF
3669 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3670   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3671   ac_status=$?
3672   grep -v '^ *+' conftest.er1 >conftest.err
3673   rm -f conftest.er1
3674   cat conftest.err >&5
3675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676   (exit $ac_status); } >/dev/null; then
3677   if test -s conftest.err; then
3678     ac_cpp_err=$ac_c_preproc_warn_flag
3679     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3680   else
3681     ac_cpp_err=
3682   fi
3683 else
3684   ac_cpp_err=yes
3685 fi
3686 if test -z "$ac_cpp_err"; then
3687   # Broken: success on invalid input.
3688 continue
3689 else
3690   echo "$as_me: failed program was:" >&5
3691 sed 's/^/| /' conftest.$ac_ext >&5
3692
3693   # Passes both tests.
3694 ac_preproc_ok=:
3695 break
3696 fi
3697 rm -f conftest.err conftest.$ac_ext
3698
3699 done
3700 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3701 rm -f conftest.err conftest.$ac_ext
3702 if $ac_preproc_ok; then
3703   :
3704 else
3705   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3706 See \`config.log' for more details." >&5
3707 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3708 See \`config.log' for more details." >&2;}
3709    { (exit 1); exit 1; }; }
3710 fi
3711
3712 ac_ext=c
3713 ac_cpp='$CPP $CPPFLAGS'
3714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3717
3718 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3719 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3720 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3721 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3722   echo $ECHO_N "(cached) $ECHO_C" >&6
3723 else
3724   cat >conftest.make <<\_ACEOF
3725 all:
3726         @echo 'ac_maketemp="$(MAKE)"'
3727 _ACEOF
3728 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3729 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3730 if test -n "$ac_maketemp"; then
3731   eval ac_cv_prog_make_${ac_make}_set=yes
3732 else
3733   eval ac_cv_prog_make_${ac_make}_set=no
3734 fi
3735 rm -f conftest.make
3736 fi
3737 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3738   echo "$as_me:$LINENO: result: yes" >&5
3739 echo "${ECHO_T}yes" >&6
3740   SET_MAKE=
3741 else
3742   echo "$as_me:$LINENO: result: no" >&5
3743 echo "${ECHO_T}no" >&6
3744   SET_MAKE="MAKE=${MAKE-make}"
3745 fi
3746
3747 # Find a good install program.  We prefer a C program (faster),
3748 # so one script is as good as another.  But avoid the broken or
3749 # incompatible versions:
3750 # SysV /etc/install, /usr/sbin/install
3751 # SunOS /usr/etc/install
3752 # IRIX /sbin/install
3753 # AIX /bin/install
3754 # AmigaOS /C/install, which installs bootblocks on floppy discs
3755 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3756 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3757 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3758 # OS/2's system install, which has a completely different semantic
3759 # ./install, which can be erroneously created by make from ./install.sh.
3760 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3761 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3762 if test -z "$INSTALL"; then
3763 if test "${ac_cv_path_install+set}" = set; then
3764   echo $ECHO_N "(cached) $ECHO_C" >&6
3765 else
3766   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767 for as_dir in $PATH
3768 do
3769   IFS=$as_save_IFS
3770   test -z "$as_dir" && as_dir=.
3771   # Account for people who put trailing slashes in PATH elements.
3772 case $as_dir/ in
3773   ./ | .// | /cC/* | \
3774   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3775   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3776   /usr/ucb/* ) ;;
3777   *)
3778     # OSF1 and SCO ODT 3.0 have their own names for install.
3779     # Don't use installbsd from OSF since it installs stuff as root
3780     # by default.
3781     for ac_prog in ginstall scoinst install; do
3782       for ac_exec_ext in '' $ac_executable_extensions; do
3783         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3784           if test $ac_prog = install &&
3785             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3786             # AIX install.  It has an incompatible calling convention.
3787             :
3788           elif test $ac_prog = install &&
3789             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3790             # program-specific install script used by HP pwplus--don't use.
3791             :
3792           else
3793             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3794             break 3
3795           fi
3796         fi
3797       done
3798     done
3799     ;;
3800 esac
3801 done
3802
3803
3804 fi
3805   if test "${ac_cv_path_install+set}" = set; then
3806     INSTALL=$ac_cv_path_install
3807   else
3808     # As a last resort, use the slow shell script.  We don't cache a
3809     # path for INSTALL within a source directory, because that will
3810     # break other packages using the cache if that directory is
3811     # removed, or if the path is relative.
3812     INSTALL=$ac_install_sh
3813   fi
3814 fi
3815 echo "$as_me:$LINENO: result: $INSTALL" >&5
3816 echo "${ECHO_T}$INSTALL" >&6
3817
3818 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3819 # It thinks the first close brace ends the variable substitution.
3820 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3821
3822 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3823
3824 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3825
3826 if test -n "$ac_tool_prefix"; then
3827   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3828 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3829 echo "$as_me:$LINENO: checking for $ac_word" >&5
3830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3831 if test "${ac_cv_prog_RANLIB+set}" = set; then
3832   echo $ECHO_N "(cached) $ECHO_C" >&6
3833 else
3834   if test -n "$RANLIB"; then
3835   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3836 else
3837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838 for as_dir in $PATH
3839 do
3840   IFS=$as_save_IFS
3841   test -z "$as_dir" && as_dir=.
3842   for ac_exec_ext in '' $ac_executable_extensions; do
3843   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3844     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3846     break 2
3847   fi
3848 done
3849 done
3850
3851 fi
3852 fi
3853 RANLIB=$ac_cv_prog_RANLIB
3854 if test -n "$RANLIB"; then
3855   echo "$as_me:$LINENO: result: $RANLIB" >&5
3856 echo "${ECHO_T}$RANLIB" >&6
3857 else
3858   echo "$as_me:$LINENO: result: no" >&5
3859 echo "${ECHO_T}no" >&6
3860 fi
3861
3862 fi
3863 if test -z "$ac_cv_prog_RANLIB"; then
3864   ac_ct_RANLIB=$RANLIB
3865   # Extract the first word of "ranlib", so it can be a program name with args.
3866 set dummy ranlib; ac_word=$2
3867 echo "$as_me:$LINENO: checking for $ac_word" >&5
3868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3869 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3870   echo $ECHO_N "(cached) $ECHO_C" >&6
3871 else
3872   if test -n "$ac_ct_RANLIB"; then
3873   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3874 else
3875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876 for as_dir in $PATH
3877 do
3878   IFS=$as_save_IFS
3879   test -z "$as_dir" && as_dir=.
3880   for ac_exec_ext in '' $ac_executable_extensions; do
3881   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3882     ac_cv_prog_ac_ct_RANLIB="ranlib"
3883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3884     break 2
3885   fi
3886 done
3887 done
3888
3889   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3890 fi
3891 fi
3892 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3893 if test -n "$ac_ct_RANLIB"; then
3894   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3895 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3896 else
3897   echo "$as_me:$LINENO: result: no" >&5
3898 echo "${ECHO_T}no" >&6
3899 fi
3900
3901   RANLIB=$ac_ct_RANLIB
3902 else
3903   RANLIB="$ac_cv_prog_RANLIB"
3904 fi
3905
3906 if test -n "$ac_tool_prefix"; then
3907   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3908 set dummy ${ac_tool_prefix}ar; ac_word=$2
3909 echo "$as_me:$LINENO: checking for $ac_word" >&5
3910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3911 if test "${ac_cv_prog_AR+set}" = set; then
3912   echo $ECHO_N "(cached) $ECHO_C" >&6
3913 else
3914   if test -n "$AR"; then
3915   ac_cv_prog_AR="$AR" # Let the user override the test.
3916 else
3917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3918 for as_dir in $PATH
3919 do
3920   IFS=$as_save_IFS
3921   test -z "$as_dir" && as_dir=.
3922   for ac_exec_ext in '' $ac_executable_extensions; do
3923   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3924     ac_cv_prog_AR="${ac_tool_prefix}ar"
3925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3926     break 2
3927   fi
3928 done
3929 done
3930
3931 fi
3932 fi
3933 AR=$ac_cv_prog_AR
3934 if test -n "$AR"; then
3935   echo "$as_me:$LINENO: result: $AR" >&5
3936 echo "${ECHO_T}$AR" >&6
3937 else
3938   echo "$as_me:$LINENO: result: no" >&5
3939 echo "${ECHO_T}no" >&6
3940 fi
3941
3942 fi
3943 if test -z "$ac_cv_prog_AR"; then
3944   ac_ct_AR=$AR
3945   # Extract the first word of "ar", so it can be a program name with args.
3946 set dummy ar; ac_word=$2
3947 echo "$as_me:$LINENO: checking for $ac_word" >&5
3948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3949 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
3950   echo $ECHO_N "(cached) $ECHO_C" >&6
3951 else
3952   if test -n "$ac_ct_AR"; then
3953   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3954 else
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956 for as_dir in $PATH
3957 do
3958   IFS=$as_save_IFS
3959   test -z "$as_dir" && as_dir=.
3960   for ac_exec_ext in '' $ac_executable_extensions; do
3961   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3962     ac_cv_prog_ac_ct_AR="ar"
3963     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3964     break 2
3965   fi
3966 done
3967 done
3968
3969   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
3970 fi
3971 fi
3972 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3973 if test -n "$ac_ct_AR"; then
3974   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
3975 echo "${ECHO_T}$ac_ct_AR" >&6
3976 else
3977   echo "$as_me:$LINENO: result: no" >&5
3978 echo "${ECHO_T}no" >&6
3979 fi
3980
3981   AR=$ac_ct_AR
3982 else
3983   AR="$ac_cv_prog_AR"
3984 fi
3985
3986
3987 echo "$as_me:$LINENO: checking for inline" >&5
3988 echo $ECHO_N "checking for inline... $ECHO_C" >&6
3989 if test "${ac_cv_c_inline+set}" = set; then
3990   echo $ECHO_N "(cached) $ECHO_C" >&6
3991 else
3992   ac_cv_c_inline=no
3993 for ac_kw in inline __inline__ __inline; do
3994   cat >conftest.$ac_ext <<_ACEOF
3995 /* confdefs.h.  */
3996 _ACEOF
3997 cat confdefs.h >>conftest.$ac_ext
3998 cat >>conftest.$ac_ext <<_ACEOF
3999 /* end confdefs.h.  */
4000 #ifndef __cplusplus
4001 typedef int foo_t;
4002 static $ac_kw foo_t static_foo () {return 0; }
4003 $ac_kw foo_t foo () {return 0; }
4004 #endif
4005
4006 _ACEOF
4007 rm -f conftest.$ac_objext
4008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4009   (eval $ac_compile) 2>conftest.er1
4010   ac_status=$?
4011   grep -v '^ *+' conftest.er1 >conftest.err
4012   rm -f conftest.er1
4013   cat conftest.err >&5
4014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015   (exit $ac_status); } &&
4016          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4017   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4018   (eval $ac_try) 2>&5
4019   ac_status=$?
4020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4021   (exit $ac_status); }; } &&
4022          { ac_try='test -s conftest.$ac_objext'
4023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4024   (eval $ac_try) 2>&5
4025   ac_status=$?
4026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027   (exit $ac_status); }; }; then
4028   ac_cv_c_inline=$ac_kw; break
4029 else
4030   echo "$as_me: failed program was:" >&5
4031 sed 's/^/| /' conftest.$ac_ext >&5
4032
4033 fi
4034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4035 done
4036
4037 fi
4038 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4039 echo "${ECHO_T}$ac_cv_c_inline" >&6
4040
4041
4042 case $ac_cv_c_inline in
4043   inline | yes) ;;
4044   *)
4045     case $ac_cv_c_inline in
4046       no) ac_val=;;
4047       *) ac_val=$ac_cv_c_inline;;
4048     esac
4049     cat >>confdefs.h <<_ACEOF
4050 #ifndef __cplusplus
4051 #define inline $ac_val
4052 #endif
4053 _ACEOF
4054     ;;
4055 esac
4056
4057 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4058 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4059 if test "${ac_cv_c_const+set}" = set; then
4060   echo $ECHO_N "(cached) $ECHO_C" >&6
4061 else
4062   cat >conftest.$ac_ext <<_ACEOF
4063 /* confdefs.h.  */
4064 _ACEOF
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h.  */
4068
4069 int
4070 main ()
4071 {
4072 /* FIXME: Include the comments suggested by Paul. */
4073 #ifndef __cplusplus
4074   /* Ultrix mips cc rejects this.  */
4075   typedef int charset[2];
4076   const charset x;
4077   /* SunOS 4.1.1 cc rejects this.  */
4078   char const *const *ccp;
4079   char **p;
4080   /* NEC SVR4.0.2 mips cc rejects this.  */
4081   struct point {int x, y;};
4082   static struct point const zero = {0,0};
4083   /* AIX XL C 1.02.0.0 rejects this.
4084      It does not let you subtract one const X* pointer from another in
4085      an arm of an if-expression whose if-part is not a constant
4086      expression */
4087   const char *g = "string";
4088   ccp = &g + (g ? g-g : 0);
4089   /* HPUX 7.0 cc rejects these. */
4090   ++ccp;
4091   p = (char**) ccp;
4092   ccp = (char const *const *) p;
4093   { /* SCO 3.2v4 cc rejects this.  */
4094     char *t;
4095     char const *s = 0 ? (char *) 0 : (char const *) 0;
4096
4097     *t++ = 0;
4098   }
4099   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4100     int x[] = {25, 17};
4101     const int *foo = &x[0];
4102     ++foo;
4103   }
4104   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4105     typedef const int *iptr;
4106     iptr p = 0;
4107     ++p;
4108   }
4109   { /* AIX XL C 1.02.0.0 rejects this saying
4110        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4111     struct s { int j; const int *ap[3]; };
4112     struct s *b; b->j = 5;
4113   }
4114   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4115     const int foo = 10;
4116   }
4117 #endif
4118
4119   ;
4120   return 0;
4121 }
4122 _ACEOF
4123 rm -f conftest.$ac_objext
4124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4125   (eval $ac_compile) 2>conftest.er1
4126   ac_status=$?
4127   grep -v '^ *+' conftest.er1 >conftest.err
4128   rm -f conftest.er1
4129   cat conftest.err >&5
4130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4131   (exit $ac_status); } &&
4132          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4133   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4134   (eval $ac_try) 2>&5
4135   ac_status=$?
4136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137   (exit $ac_status); }; } &&
4138          { ac_try='test -s conftest.$ac_objext'
4139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4140   (eval $ac_try) 2>&5
4141   ac_status=$?
4142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143   (exit $ac_status); }; }; then
4144   ac_cv_c_const=yes
4145 else
4146   echo "$as_me: failed program was:" >&5
4147 sed 's/^/| /' conftest.$ac_ext >&5
4148
4149 ac_cv_c_const=no
4150 fi
4151 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4152 fi
4153 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4154 echo "${ECHO_T}$ac_cv_c_const" >&6
4155 if test $ac_cv_c_const = no; then
4156
4157 cat >>confdefs.h <<\_ACEOF
4158 #define const
4159 _ACEOF
4160
4161 fi
4162
4163
4164 # Check whether --enable-largefile or --disable-largefile was given.
4165 if test "${enable_largefile+set}" = set; then
4166   enableval="$enable_largefile"
4167
4168 fi;
4169 if test "$enable_largefile" != no; then
4170
4171   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
4172 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
4173 if test "${ac_cv_sys_largefile_CC+set}" = set; then
4174   echo $ECHO_N "(cached) $ECHO_C" >&6
4175 else
4176   ac_cv_sys_largefile_CC=no
4177      if test "$GCC" != yes; then
4178        ac_save_CC=$CC
4179        while :; do
4180          # IRIX 6.2 and later do not support large files by default,
4181          # so use the C compiler's -n32 option if that helps.
4182          cat >conftest.$ac_ext <<_ACEOF
4183 /* confdefs.h.  */
4184 _ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h.  */
4188 #include <sys/types.h>
4189  /* Check that off_t can represent 2**63 - 1 correctly.
4190     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4191     since some C++ compilers masquerading as C compilers
4192     incorrectly reject 9223372036854775807.  */
4193 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4194   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4195                        && LARGE_OFF_T % 2147483647 == 1)
4196                       ? 1 : -1];
4197 int
4198 main ()
4199 {
4200
4201   ;
4202   return 0;
4203 }
4204 _ACEOF
4205          rm -f conftest.$ac_objext
4206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4207   (eval $ac_compile) 2>conftest.er1
4208   ac_status=$?
4209   grep -v '^ *+' conftest.er1 >conftest.err
4210   rm -f conftest.er1
4211   cat conftest.err >&5
4212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213   (exit $ac_status); } &&
4214          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4216   (eval $ac_try) 2>&5
4217   ac_status=$?
4218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219   (exit $ac_status); }; } &&
4220          { ac_try='test -s conftest.$ac_objext'
4221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4222   (eval $ac_try) 2>&5
4223   ac_status=$?
4224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225   (exit $ac_status); }; }; then
4226   break
4227 else
4228   echo "$as_me: failed program was:" >&5
4229 sed 's/^/| /' conftest.$ac_ext >&5
4230
4231 fi
4232 rm -f conftest.err conftest.$ac_objext
4233          CC="$CC -n32"
4234          rm -f conftest.$ac_objext
4235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4236   (eval $ac_compile) 2>conftest.er1
4237   ac_status=$?
4238   grep -v '^ *+' conftest.er1 >conftest.err
4239   rm -f conftest.er1
4240   cat conftest.err >&5
4241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242   (exit $ac_status); } &&
4243          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4244   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4245   (eval $ac_try) 2>&5
4246   ac_status=$?
4247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248   (exit $ac_status); }; } &&
4249          { ac_try='test -s conftest.$ac_objext'
4250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4251   (eval $ac_try) 2>&5
4252   ac_status=$?
4253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254   (exit $ac_status); }; }; then
4255   ac_cv_sys_largefile_CC=' -n32'; break
4256 else
4257   echo "$as_me: failed program was:" >&5
4258 sed 's/^/| /' conftest.$ac_ext >&5
4259
4260 fi
4261 rm -f conftest.err conftest.$ac_objext
4262          break
4263        done
4264        CC=$ac_save_CC
4265        rm -f conftest.$ac_ext
4266     fi
4267 fi
4268 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
4269 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
4270   if test "$ac_cv_sys_largefile_CC" != no; then
4271     CC=$CC$ac_cv_sys_largefile_CC
4272   fi
4273
4274   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4275 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
4276 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
4277   echo $ECHO_N "(cached) $ECHO_C" >&6
4278 else
4279   while :; do
4280   ac_cv_sys_file_offset_bits=no
4281   cat >conftest.$ac_ext <<_ACEOF
4282 /* confdefs.h.  */
4283 _ACEOF
4284 cat confdefs.h >>conftest.$ac_ext
4285 cat >>conftest.$ac_ext <<_ACEOF
4286 /* end confdefs.h.  */
4287 #include <sys/types.h>
4288  /* Check that off_t can represent 2**63 - 1 correctly.
4289     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4290     since some C++ compilers masquerading as C compilers
4291     incorrectly reject 9223372036854775807.  */
4292 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4293   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4294                        && LARGE_OFF_T % 2147483647 == 1)
4295                       ? 1 : -1];
4296 int
4297 main ()
4298 {
4299
4300   ;
4301   return 0;
4302 }
4303 _ACEOF
4304 rm -f conftest.$ac_objext
4305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4306   (eval $ac_compile) 2>conftest.er1
4307   ac_status=$?
4308   grep -v '^ *+' conftest.er1 >conftest.err
4309   rm -f conftest.er1
4310   cat conftest.err >&5
4311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312   (exit $ac_status); } &&
4313          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315   (eval $ac_try) 2>&5
4316   ac_status=$?
4317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318   (exit $ac_status); }; } &&
4319          { ac_try='test -s conftest.$ac_objext'
4320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4321   (eval $ac_try) 2>&5
4322   ac_status=$?
4323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324   (exit $ac_status); }; }; then
4325   break
4326 else
4327   echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4329
4330 fi
4331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4332   cat >conftest.$ac_ext <<_ACEOF
4333 /* confdefs.h.  */
4334 _ACEOF
4335 cat confdefs.h >>conftest.$ac_ext
4336 cat >>conftest.$ac_ext <<_ACEOF
4337 /* end confdefs.h.  */
4338 #define _FILE_OFFSET_BITS 64
4339 #include <sys/types.h>
4340  /* Check that off_t can represent 2**63 - 1 correctly.
4341     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4342     since some C++ compilers masquerading as C compilers
4343     incorrectly reject 9223372036854775807.  */
4344 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4345   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4346                        && LARGE_OFF_T % 2147483647 == 1)
4347                       ? 1 : -1];
4348 int
4349 main ()
4350 {
4351
4352   ;
4353   return 0;
4354 }
4355 _ACEOF
4356 rm -f conftest.$ac_objext
4357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4358   (eval $ac_compile) 2>conftest.er1
4359   ac_status=$?
4360   grep -v '^ *+' conftest.er1 >conftest.err
4361   rm -f conftest.er1
4362   cat conftest.err >&5
4363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364   (exit $ac_status); } &&
4365          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4367   (eval $ac_try) 2>&5
4368   ac_status=$?
4369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370   (exit $ac_status); }; } &&
4371          { ac_try='test -s conftest.$ac_objext'
4372   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4373   (eval $ac_try) 2>&5
4374   ac_status=$?
4375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376   (exit $ac_status); }; }; then
4377   ac_cv_sys_file_offset_bits=64; break
4378 else
4379   echo "$as_me: failed program was:" >&5
4380 sed 's/^/| /' conftest.$ac_ext >&5
4381
4382 fi
4383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4384   break
4385 done
4386 fi
4387 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
4388 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
4389 if test "$ac_cv_sys_file_offset_bits" != no; then
4390
4391 cat >>confdefs.h <<_ACEOF
4392 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4393 _ACEOF
4394
4395 fi
4396 rm -f conftest*
4397   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
4398 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
4399 if test "${ac_cv_sys_large_files+set}" = set; then
4400   echo $ECHO_N "(cached) $ECHO_C" >&6
4401 else
4402   while :; do
4403   ac_cv_sys_large_files=no
4404   cat >conftest.$ac_ext <<_ACEOF
4405 /* confdefs.h.  */
4406 _ACEOF
4407 cat confdefs.h >>conftest.$ac_ext
4408 cat >>conftest.$ac_ext <<_ACEOF
4409 /* end confdefs.h.  */
4410 #include <sys/types.h>
4411  /* Check that off_t can represent 2**63 - 1 correctly.
4412     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4413     since some C++ compilers masquerading as C compilers
4414     incorrectly reject 9223372036854775807.  */
4415 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4416   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4417                        && LARGE_OFF_T % 2147483647 == 1)
4418                       ? 1 : -1];
4419 int
4420 main ()
4421 {
4422
4423   ;
4424   return 0;
4425 }
4426 _ACEOF
4427 rm -f conftest.$ac_objext
4428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4429   (eval $ac_compile) 2>conftest.er1
4430   ac_status=$?
4431   grep -v '^ *+' conftest.er1 >conftest.err
4432   rm -f conftest.er1
4433   cat conftest.err >&5
4434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435   (exit $ac_status); } &&
4436          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4437   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438   (eval $ac_try) 2>&5
4439   ac_status=$?
4440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441   (exit $ac_status); }; } &&
4442          { ac_try='test -s conftest.$ac_objext'
4443   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444   (eval $ac_try) 2>&5
4445   ac_status=$?
4446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447   (exit $ac_status); }; }; then
4448   break
4449 else
4450   echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4452
4453 fi
4454 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4455   cat >conftest.$ac_ext <<_ACEOF
4456 /* confdefs.h.  */
4457 _ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h.  */
4461 #define _LARGE_FILES 1
4462 #include <sys/types.h>
4463  /* Check that off_t can represent 2**63 - 1 correctly.
4464     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4465     since some C++ compilers masquerading as C compilers
4466     incorrectly reject 9223372036854775807.  */
4467 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4468   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4469                        && LARGE_OFF_T % 2147483647 == 1)
4470                       ? 1 : -1];
4471 int
4472 main ()
4473 {
4474
4475   ;
4476   return 0;
4477 }
4478 _ACEOF
4479 rm -f conftest.$ac_objext
4480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4481   (eval $ac_compile) 2>conftest.er1
4482   ac_status=$?
4483   grep -v '^ *+' conftest.er1 >conftest.err
4484   rm -f conftest.er1
4485   cat conftest.err >&5
4486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487   (exit $ac_status); } &&
4488          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4490   (eval $ac_try) 2>&5
4491   ac_status=$?
4492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493   (exit $ac_status); }; } &&
4494          { ac_try='test -s conftest.$ac_objext'
4495   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4496   (eval $ac_try) 2>&5
4497   ac_status=$?
4498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499   (exit $ac_status); }; }; then
4500   ac_cv_sys_large_files=1; break
4501 else
4502   echo "$as_me: failed program was:" >&5
4503 sed 's/^/| /' conftest.$ac_ext >&5
4504
4505 fi
4506 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4507   break
4508 done
4509 fi
4510 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
4511 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
4512 if test "$ac_cv_sys_large_files" != no; then
4513
4514 cat >>confdefs.h <<_ACEOF
4515 #define _LARGE_FILES $ac_cv_sys_large_files
4516 _ACEOF
4517
4518 fi
4519 rm -f conftest*
4520 fi
4521
4522
4523 # Extract the first word of "dbx", so it can be a program name with args.
4524 set dummy dbx; ac_word=$2
4525 echo "$as_me:$LINENO: checking for $ac_word" >&5
4526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4527 if test "${ac_cv_path_DBX+set}" = set; then
4528   echo $ECHO_N "(cached) $ECHO_C" >&6
4529 else
4530   case $DBX in
4531   [\\/]* | ?:[\\/]*)
4532   ac_cv_path_DBX="$DBX" # Let the user override the test with a path.
4533   ;;
4534   *)
4535   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 for as_dir in $PATH
4537 do
4538   IFS=$as_save_IFS
4539   test -z "$as_dir" && as_dir=.
4540   for ac_exec_ext in '' $ac_executable_extensions; do
4541   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4542     ac_cv_path_DBX="$as_dir/$ac_word$ac_exec_ext"
4543     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4544     break 2
4545   fi
4546 done
4547 done
4548
4549   test -z "$ac_cv_path_DBX" && ac_cv_path_DBX="no"
4550   ;;
4551 esac
4552 fi
4553 DBX=$ac_cv_path_DBX
4554
4555 if test -n "$DBX"; then
4556   echo "$as_me:$LINENO: result: $DBX" >&5
4557 echo "${ECHO_T}$DBX" >&6
4558 else
4559   echo "$as_me:$LINENO: result: no" >&5
4560 echo "${ECHO_T}no" >&6
4561 fi
4562
4563 # Extract the first word of "gdb", so it can be a program name with args.
4564 set dummy gdb; ac_word=$2
4565 echo "$as_me:$LINENO: checking for $ac_word" >&5
4566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4567 if test "${ac_cv_path_GDB+set}" = set; then
4568   echo $ECHO_N "(cached) $ECHO_C" >&6
4569 else
4570   case $GDB in
4571   [\\/]* | ?:[\\/]*)
4572   ac_cv_path_GDB="$GDB" # Let the user override the test with a path.
4573   ;;
4574   *)
4575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 for as_dir in $PATH
4577 do
4578   IFS=$as_save_IFS
4579   test -z "$as_dir" && as_dir=.
4580   for ac_exec_ext in '' $ac_executable_extensions; do
4581   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4582     ac_cv_path_GDB="$as_dir/$ac_word$ac_exec_ext"
4583     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4584     break 2
4585   fi
4586 done
4587 done
4588
4589   test -z "$ac_cv_path_GDB" && ac_cv_path_GDB="no"
4590   ;;
4591 esac
4592 fi
4593 GDB=$ac_cv_path_GDB
4594
4595 if test -n "$GDB"; then
4596   echo "$as_me:$LINENO: result: $GDB" >&5
4597 echo "${ECHO_T}$GDB" >&6
4598 else
4599   echo "$as_me:$LINENO: result: no" >&5
4600 echo "${ECHO_T}no" >&6
4601 fi
4602
4603 # Extract the first word of "sdb", so it can be a program name with args.
4604 set dummy sdb; ac_word=$2
4605 echo "$as_me:$LINENO: checking for $ac_word" >&5
4606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4607 if test "${ac_cv_path_SDB+set}" = set; then
4608   echo $ECHO_N "(cached) $ECHO_C" >&6
4609 else
4610   case $SDB in
4611   [\\/]* | ?:[\\/]*)
4612   ac_cv_path_SDB="$SDB" # Let the user override the test with a path.
4613   ;;
4614   *)
4615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 for as_dir in $PATH
4617 do
4618   IFS=$as_save_IFS
4619   test -z "$as_dir" && as_dir=.
4620   for ac_exec_ext in '' $ac_executable_extensions; do
4621   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4622     ac_cv_path_SDB="$as_dir/$ac_word$ac_exec_ext"
4623     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4624     break 2
4625   fi
4626 done
4627 done
4628
4629   test -z "$ac_cv_path_SDB" && ac_cv_path_SDB="no"
4630   ;;
4631 esac
4632 fi
4633 SDB=$ac_cv_path_SDB
4634
4635 if test -n "$SDB"; then
4636   echo "$as_me:$LINENO: result: $SDB" >&5
4637 echo "${ECHO_T}$SDB" >&6
4638 else
4639   echo "$as_me:$LINENO: result: no" >&5
4640 echo "${ECHO_T}no" >&6
4641 fi
4642
4643
4644 if test $GDB != no ; then
4645         DEBUGGER=$GDB
4646 elif test $DBX != no ; then
4647         DEBUGGER=$DBX
4648 elif test $SDB != no ; then
4649         DEBUGGER=$SDB
4650 else
4651         DEBUGGER=no
4652 fi
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678 for ac_header in inttypes.h
4679 do
4680 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4682   echo "$as_me:$LINENO: checking for $ac_header" >&5
4683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4685   echo $ECHO_N "(cached) $ECHO_C" >&6
4686 fi
4687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4688 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4689 else
4690   # Is the header compilable?
4691 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4693 cat >conftest.$ac_ext <<_ACEOF
4694 /* confdefs.h.  */
4695 _ACEOF
4696 cat confdefs.h >>conftest.$ac_ext
4697 cat >>conftest.$ac_ext <<_ACEOF
4698 /* end confdefs.h.  */
4699 $ac_includes_default
4700 #include <$ac_header>
4701 _ACEOF
4702 rm -f conftest.$ac_objext
4703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4704   (eval $ac_compile) 2>conftest.er1
4705   ac_status=$?
4706   grep -v '^ *+' conftest.er1 >conftest.err
4707   rm -f conftest.er1
4708   cat conftest.err >&5
4709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710   (exit $ac_status); } &&
4711          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713   (eval $ac_try) 2>&5
4714   ac_status=$?
4715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716   (exit $ac_status); }; } &&
4717          { ac_try='test -s conftest.$ac_objext'
4718   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4719   (eval $ac_try) 2>&5
4720   ac_status=$?
4721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722   (exit $ac_status); }; }; then
4723   ac_header_compiler=yes
4724 else
4725   echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.$ac_ext >&5
4727
4728 ac_header_compiler=no
4729 fi
4730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4731 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4732 echo "${ECHO_T}$ac_header_compiler" >&6
4733
4734 # Is the header present?
4735 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4736 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4737 cat >conftest.$ac_ext <<_ACEOF
4738 /* confdefs.h.  */
4739 _ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h.  */
4743 #include <$ac_header>
4744 _ACEOF
4745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4746   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4747   ac_status=$?
4748   grep -v '^ *+' conftest.er1 >conftest.err
4749   rm -f conftest.er1
4750   cat conftest.err >&5
4751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752   (exit $ac_status); } >/dev/null; then
4753   if test -s conftest.err; then
4754     ac_cpp_err=$ac_c_preproc_warn_flag
4755     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4756   else
4757     ac_cpp_err=
4758   fi
4759 else
4760   ac_cpp_err=yes
4761 fi
4762 if test -z "$ac_cpp_err"; then
4763   ac_header_preproc=yes
4764 else
4765   echo "$as_me: failed program was:" >&5
4766 sed 's/^/| /' conftest.$ac_ext >&5
4767
4768   ac_header_preproc=no
4769 fi
4770 rm -f conftest.err conftest.$ac_ext
4771 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4772 echo "${ECHO_T}$ac_header_preproc" >&6
4773
4774 # So?  What about this header?
4775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4776   yes:no: )
4777     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4778 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4779     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4780 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4781     ac_header_preproc=yes
4782     ;;
4783   no:yes:* )
4784     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4785 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4786     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4787 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4788     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4789 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4790     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4791 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4792     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4794     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4795 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4796     (
4797       cat <<\_ASBOX
4798 ## ------------------------------------------ ##
4799 ## Report this to the AC_PACKAGE_NAME lists.  ##
4800 ## ------------------------------------------ ##
4801 _ASBOX
4802     ) |
4803       sed "s/^/$as_me: WARNING:     /" >&2
4804     ;;
4805 esac
4806 echo "$as_me:$LINENO: checking for $ac_header" >&5
4807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4809   echo $ECHO_N "(cached) $ECHO_C" >&6
4810 else
4811   eval "$as_ac_Header=\$ac_header_preproc"
4812 fi
4813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4815
4816 fi
4817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4818   cat >>confdefs.h <<_ACEOF
4819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4820 _ACEOF
4821
4822 fi
4823
4824 done
4825
4826 echo "$as_me:$LINENO: checking for uint32_t" >&5
4827 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
4828 if test "${ac_cv_type_uint32_t+set}" = set; then
4829   echo $ECHO_N "(cached) $ECHO_C" >&6
4830 else
4831   cat >conftest.$ac_ext <<_ACEOF
4832 /* confdefs.h.  */
4833 _ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h.  */
4837 $ac_includes_default
4838 int
4839 main ()
4840 {
4841 if ((uint32_t *) 0)
4842   return 0;
4843 if (sizeof (uint32_t))
4844   return 0;
4845   ;
4846   return 0;
4847 }
4848 _ACEOF
4849 rm -f conftest.$ac_objext
4850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4851   (eval $ac_compile) 2>conftest.er1
4852   ac_status=$?
4853   grep -v '^ *+' conftest.er1 >conftest.err
4854   rm -f conftest.er1
4855   cat conftest.err >&5
4856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857   (exit $ac_status); } &&
4858          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4860   (eval $ac_try) 2>&5
4861   ac_status=$?
4862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863   (exit $ac_status); }; } &&
4864          { ac_try='test -s conftest.$ac_objext'
4865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4866   (eval $ac_try) 2>&5
4867   ac_status=$?
4868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869   (exit $ac_status); }; }; then
4870   ac_cv_type_uint32_t=yes
4871 else
4872   echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.$ac_ext >&5
4874
4875 ac_cv_type_uint32_t=no
4876 fi
4877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4878 fi
4879 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
4880 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
4881 if test $ac_cv_type_uint32_t = yes; then
4882
4883 cat >>confdefs.h <<\_ACEOF
4884 #define HAVE_C99_INTTYPES 1
4885 _ACEOF
4886
4887 else
4888   echo "$as_me:$LINENO: checking for short" >&5
4889 echo $ECHO_N "checking for short... $ECHO_C" >&6
4890 if test "${ac_cv_type_short+set}" = set; then
4891   echo $ECHO_N "(cached) $ECHO_C" >&6
4892 else
4893   cat >conftest.$ac_ext <<_ACEOF
4894 /* confdefs.h.  */
4895 _ACEOF
4896 cat confdefs.h >>conftest.$ac_ext
4897 cat >>conftest.$ac_ext <<_ACEOF
4898 /* end confdefs.h.  */
4899 $ac_includes_default
4900 int
4901 main ()
4902 {
4903 if ((short *) 0)
4904   return 0;
4905 if (sizeof (short))
4906   return 0;
4907   ;
4908   return 0;
4909 }
4910 _ACEOF
4911 rm -f conftest.$ac_objext
4912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4913   (eval $ac_compile) 2>conftest.er1
4914   ac_status=$?
4915   grep -v '^ *+' conftest.er1 >conftest.err
4916   rm -f conftest.er1
4917   cat conftest.err >&5
4918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919   (exit $ac_status); } &&
4920          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4922   (eval $ac_try) 2>&5
4923   ac_status=$?
4924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925   (exit $ac_status); }; } &&
4926          { ac_try='test -s conftest.$ac_objext'
4927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4928   (eval $ac_try) 2>&5
4929   ac_status=$?
4930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4931   (exit $ac_status); }; }; then
4932   ac_cv_type_short=yes
4933 else
4934   echo "$as_me: failed program was:" >&5
4935 sed 's/^/| /' conftest.$ac_ext >&5
4936
4937 ac_cv_type_short=no
4938 fi
4939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4940 fi
4941 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
4942 echo "${ECHO_T}$ac_cv_type_short" >&6
4943
4944 echo "$as_me:$LINENO: checking size of short" >&5
4945 echo $ECHO_N "checking size of short... $ECHO_C" >&6
4946 if test "${ac_cv_sizeof_short+set}" = set; then
4947   echo $ECHO_N "(cached) $ECHO_C" >&6
4948 else
4949   if test "$ac_cv_type_short" = yes; then
4950   # The cast to unsigned long works around a bug in the HP C Compiler
4951   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4952   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4953   # This bug is HP SR number 8606223364.
4954   if test "$cross_compiling" = yes; then
4955   # Depending upon the size, compute the lo and hi bounds.
4956 cat >conftest.$ac_ext <<_ACEOF
4957 /* confdefs.h.  */
4958 _ACEOF
4959 cat confdefs.h >>conftest.$ac_ext
4960 cat >>conftest.$ac_ext <<_ACEOF
4961 /* end confdefs.h.  */
4962 $ac_includes_default
4963 int
4964 main ()
4965 {
4966 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
4967 test_array [0] = 0
4968
4969   ;
4970   return 0;
4971 }
4972 _ACEOF
4973 rm -f conftest.$ac_objext
4974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4975   (eval $ac_compile) 2>conftest.er1
4976   ac_status=$?
4977   grep -v '^ *+' conftest.er1 >conftest.err
4978   rm -f conftest.er1
4979   cat conftest.err >&5
4980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981   (exit $ac_status); } &&
4982          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
4983   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4984   (eval $ac_try) 2>&5
4985   ac_status=$?
4986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4987   (exit $ac_status); }; } &&
4988          { ac_try='test -s conftest.$ac_objext'
4989   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4990   (eval $ac_try) 2>&5
4991   ac_status=$?
4992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4993   (exit $ac_status); }; }; then
4994   ac_lo=0 ac_mid=0
4995   while :; do
4996     cat >conftest.$ac_ext <<_ACEOF
4997 /* confdefs.h.  */
4998 _ACEOF
4999 cat confdefs.h >>conftest.$ac_ext
5000 cat >>conftest.$ac_ext <<_ACEOF
5001 /* end confdefs.h.  */
5002 $ac_includes_default
5003 int
5004 main ()
5005 {
5006 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5007 test_array [0] = 0
5008
5009   ;
5010   return 0;
5011 }
5012 _ACEOF
5013 rm -f conftest.$ac_objext
5014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5015   (eval $ac_compile) 2>conftest.er1
5016   ac_status=$?
5017   grep -v '^ *+' conftest.er1 >conftest.err
5018   rm -f conftest.er1
5019   cat conftest.err >&5
5020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5021   (exit $ac_status); } &&
5022          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5024   (eval $ac_try) 2>&5
5025   ac_status=$?
5026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5027   (exit $ac_status); }; } &&
5028          { ac_try='test -s conftest.$ac_objext'
5029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5030   (eval $ac_try) 2>&5
5031   ac_status=$?
5032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5033   (exit $ac_status); }; }; then
5034   ac_hi=$ac_mid; break
5035 else
5036   echo "$as_me: failed program was:" >&5
5037 sed 's/^/| /' conftest.$ac_ext >&5
5038
5039 ac_lo=`expr $ac_mid + 1`
5040                     if test $ac_lo -le $ac_mid; then
5041                       ac_lo= ac_hi=
5042                       break
5043                     fi
5044                     ac_mid=`expr 2 '*' $ac_mid + 1`
5045 fi
5046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5047   done
5048 else
5049   echo "$as_me: failed program was:" >&5
5050 sed 's/^/| /' conftest.$ac_ext >&5
5051
5052 cat >conftest.$ac_ext <<_ACEOF
5053 /* confdefs.h.  */
5054 _ACEOF
5055 cat confdefs.h >>conftest.$ac_ext
5056 cat >>conftest.$ac_ext <<_ACEOF
5057 /* end confdefs.h.  */
5058 $ac_includes_default
5059 int
5060 main ()
5061 {
5062 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
5063 test_array [0] = 0
5064
5065   ;
5066   return 0;
5067 }
5068 _ACEOF
5069 rm -f conftest.$ac_objext
5070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5071   (eval $ac_compile) 2>conftest.er1
5072   ac_status=$?
5073   grep -v '^ *+' conftest.er1 >conftest.err
5074   rm -f conftest.er1
5075   cat conftest.err >&5
5076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077   (exit $ac_status); } &&
5078          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5080   (eval $ac_try) 2>&5
5081   ac_status=$?
5082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083   (exit $ac_status); }; } &&
5084          { ac_try='test -s conftest.$ac_objext'
5085   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5086   (eval $ac_try) 2>&5
5087   ac_status=$?
5088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5089   (exit $ac_status); }; }; then
5090   ac_hi=-1 ac_mid=-1
5091   while :; do
5092     cat >conftest.$ac_ext <<_ACEOF
5093 /* confdefs.h.  */
5094 _ACEOF
5095 cat confdefs.h >>conftest.$ac_ext
5096 cat >>conftest.$ac_ext <<_ACEOF
5097 /* end confdefs.h.  */
5098 $ac_includes_default
5099 int
5100 main ()
5101 {
5102 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
5103 test_array [0] = 0
5104
5105   ;
5106   return 0;
5107 }
5108 _ACEOF
5109 rm -f conftest.$ac_objext
5110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5111   (eval $ac_compile) 2>conftest.er1
5112   ac_status=$?
5113   grep -v '^ *+' conftest.er1 >conftest.err
5114   rm -f conftest.er1
5115   cat conftest.err >&5
5116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117   (exit $ac_status); } &&
5118          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5119   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5120   (eval $ac_try) 2>&5
5121   ac_status=$?
5122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123   (exit $ac_status); }; } &&
5124          { ac_try='test -s conftest.$ac_objext'
5125   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5126   (eval $ac_try) 2>&5
5127   ac_status=$?
5128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129   (exit $ac_status); }; }; then
5130   ac_lo=$ac_mid; break
5131 else
5132   echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5134
5135 ac_hi=`expr '(' $ac_mid ')' - 1`
5136                        if test $ac_mid -le $ac_hi; then
5137                          ac_lo= ac_hi=
5138                          break
5139                        fi
5140                        ac_mid=`expr 2 '*' $ac_mid`
5141 fi
5142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5143   done
5144 else
5145   echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5147
5148 ac_lo= ac_hi=
5149 fi
5150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5151 fi
5152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5153 # Binary search between lo and hi bounds.
5154 while test "x$ac_lo" != "x$ac_hi"; do
5155   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5156   cat >conftest.$ac_ext <<_ACEOF
5157 /* confdefs.h.  */
5158 _ACEOF
5159 cat confdefs.h >>conftest.$ac_ext
5160 cat >>conftest.$ac_ext <<_ACEOF
5161 /* end confdefs.h.  */
5162 $ac_includes_default
5163 int
5164 main ()
5165 {
5166 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
5167 test_array [0] = 0
5168
5169   ;
5170   return 0;
5171 }
5172 _ACEOF
5173 rm -f conftest.$ac_objext
5174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5175   (eval $ac_compile) 2>conftest.er1
5176   ac_status=$?
5177   grep -v '^ *+' conftest.er1 >conftest.err
5178   rm -f conftest.er1
5179   cat conftest.err >&5
5180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181   (exit $ac_status); } &&
5182          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5184   (eval $ac_try) 2>&5
5185   ac_status=$?
5186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187   (exit $ac_status); }; } &&
5188          { ac_try='test -s conftest.$ac_objext'
5189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5190   (eval $ac_try) 2>&5
5191   ac_status=$?
5192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193   (exit $ac_status); }; }; then
5194   ac_hi=$ac_mid
5195 else
5196   echo "$as_me: failed program was:" >&5
5197 sed 's/^/| /' conftest.$ac_ext >&5
5198
5199 ac_lo=`expr '(' $ac_mid ')' + 1`
5200 fi
5201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5202 done
5203 case $ac_lo in
5204 ?*) ac_cv_sizeof_short=$ac_lo;;
5205 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5206 See \`config.log' for more details." >&5
5207 echo "$as_me: error: cannot compute sizeof (short), 77
5208 See \`config.log' for more details." >&2;}
5209    { (exit 1); exit 1; }; } ;;
5210 esac
5211 else
5212   if test "$cross_compiling" = yes; then
5213   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5214 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5215    { (exit 1); exit 1; }; }
5216 else
5217   cat >conftest.$ac_ext <<_ACEOF
5218 /* confdefs.h.  */
5219 _ACEOF
5220 cat confdefs.h >>conftest.$ac_ext
5221 cat >>conftest.$ac_ext <<_ACEOF
5222 /* end confdefs.h.  */
5223 $ac_includes_default
5224 long longval () { return (long) (sizeof (short)); }
5225 unsigned long ulongval () { return (long) (sizeof (short)); }
5226 #include <stdio.h>
5227 #include <stdlib.h>
5228 int
5229 main ()
5230 {
5231
5232   FILE *f = fopen ("conftest.val", "w");
5233   if (! f)
5234     exit (1);
5235   if (((long) (sizeof (short))) < 0)
5236     {
5237       long i = longval ();
5238       if (i != ((long) (sizeof (short))))
5239         exit (1);
5240       fprintf (f, "%ld\n", i);
5241     }
5242   else
5243     {
5244       unsigned long i = ulongval ();
5245       if (i != ((long) (sizeof (short))))
5246         exit (1);
5247       fprintf (f, "%lu\n", i);
5248     }
5249   exit (ferror (f) || fclose (f) != 0);
5250
5251   ;
5252   return 0;
5253 }
5254 _ACEOF
5255 rm -f conftest$ac_exeext
5256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5257   (eval $ac_link) 2>&5
5258   ac_status=$?
5259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5262   (eval $ac_try) 2>&5
5263   ac_status=$?
5264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265   (exit $ac_status); }; }; then
5266   ac_cv_sizeof_short=`cat conftest.val`
5267 else
5268   echo "$as_me: program exited with status $ac_status" >&5
5269 echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5271
5272 ( exit $ac_status )
5273 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
5274 See \`config.log' for more details." >&5
5275 echo "$as_me: error: cannot compute sizeof (short), 77
5276 See \`config.log' for more details." >&2;}
5277    { (exit 1); exit 1; }; }
5278 fi
5279 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5280 fi
5281 fi
5282 rm -f conftest.val
5283 else
5284   ac_cv_sizeof_short=0
5285 fi
5286 fi
5287 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
5288 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
5289 cat >>confdefs.h <<_ACEOF
5290 #define SIZEOF_SHORT $ac_cv_sizeof_short
5291 _ACEOF
5292
5293
5294    echo "$as_me:$LINENO: checking for int" >&5
5295 echo $ECHO_N "checking for int... $ECHO_C" >&6
5296 if test "${ac_cv_type_int+set}" = set; then
5297   echo $ECHO_N "(cached) $ECHO_C" >&6
5298 else
5299   cat >conftest.$ac_ext <<_ACEOF
5300 /* confdefs.h.  */
5301 _ACEOF
5302 cat confdefs.h >>conftest.$ac_ext
5303 cat >>conftest.$ac_ext <<_ACEOF
5304 /* end confdefs.h.  */
5305 $ac_includes_default
5306 int
5307 main ()
5308 {
5309 if ((int *) 0)
5310   return 0;
5311 if (sizeof (int))
5312   return 0;
5313   ;
5314   return 0;
5315 }
5316 _ACEOF
5317 rm -f conftest.$ac_objext
5318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5319   (eval $ac_compile) 2>conftest.er1
5320   ac_status=$?
5321   grep -v '^ *+' conftest.er1 >conftest.err
5322   rm -f conftest.er1
5323   cat conftest.err >&5
5324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325   (exit $ac_status); } &&
5326          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5328   (eval $ac_try) 2>&5
5329   ac_status=$?
5330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331   (exit $ac_status); }; } &&
5332          { ac_try='test -s conftest.$ac_objext'
5333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5334   (eval $ac_try) 2>&5
5335   ac_status=$?
5336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337   (exit $ac_status); }; }; then
5338   ac_cv_type_int=yes
5339 else
5340   echo "$as_me: failed program was:" >&5
5341 sed 's/^/| /' conftest.$ac_ext >&5
5342
5343 ac_cv_type_int=no
5344 fi
5345 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5346 fi
5347 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
5348 echo "${ECHO_T}$ac_cv_type_int" >&6
5349
5350 echo "$as_me:$LINENO: checking size of int" >&5
5351 echo $ECHO_N "checking size of int... $ECHO_C" >&6
5352 if test "${ac_cv_sizeof_int+set}" = set; then
5353   echo $ECHO_N "(cached) $ECHO_C" >&6
5354 else
5355   if test "$ac_cv_type_int" = yes; then
5356   # The cast to unsigned long works around a bug in the HP C Compiler
5357   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5358   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5359   # This bug is HP SR number 8606223364.
5360   if test "$cross_compiling" = yes; then
5361   # Depending upon the size, compute the lo and hi bounds.
5362 cat >conftest.$ac_ext <<_ACEOF
5363 /* confdefs.h.  */
5364 _ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h.  */
5368 $ac_includes_default
5369 int
5370 main ()
5371 {
5372 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
5373 test_array [0] = 0
5374
5375   ;
5376   return 0;
5377 }
5378 _ACEOF
5379 rm -f conftest.$ac_objext
5380 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5381   (eval $ac_compile) 2>conftest.er1
5382   ac_status=$?
5383   grep -v '^ *+' conftest.er1 >conftest.err
5384   rm -f conftest.er1
5385   cat conftest.err >&5
5386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387   (exit $ac_status); } &&
5388          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5389   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5390   (eval $ac_try) 2>&5
5391   ac_status=$?
5392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393   (exit $ac_status); }; } &&
5394          { ac_try='test -s conftest.$ac_objext'
5395   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5396   (eval $ac_try) 2>&5
5397   ac_status=$?
5398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399   (exit $ac_status); }; }; then
5400   ac_lo=0 ac_mid=0
5401   while :; do
5402     cat >conftest.$ac_ext <<_ACEOF
5403 /* confdefs.h.  */
5404 _ACEOF
5405 cat confdefs.h >>conftest.$ac_ext
5406 cat >>conftest.$ac_ext <<_ACEOF
5407 /* end confdefs.h.  */
5408 $ac_includes_default
5409 int
5410 main ()
5411 {
5412 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5413 test_array [0] = 0
5414
5415   ;
5416   return 0;
5417 }
5418 _ACEOF
5419 rm -f conftest.$ac_objext
5420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5421   (eval $ac_compile) 2>conftest.er1
5422   ac_status=$?
5423   grep -v '^ *+' conftest.er1 >conftest.err
5424   rm -f conftest.er1
5425   cat conftest.err >&5
5426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427   (exit $ac_status); } &&
5428          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5430   (eval $ac_try) 2>&5
5431   ac_status=$?
5432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433   (exit $ac_status); }; } &&
5434          { ac_try='test -s conftest.$ac_objext'
5435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436   (eval $ac_try) 2>&5
5437   ac_status=$?
5438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439   (exit $ac_status); }; }; then
5440   ac_hi=$ac_mid; break
5441 else
5442   echo "$as_me: failed program was:" >&5
5443 sed 's/^/| /' conftest.$ac_ext >&5
5444
5445 ac_lo=`expr $ac_mid + 1`
5446                     if test $ac_lo -le $ac_mid; then
5447                       ac_lo= ac_hi=
5448                       break
5449                     fi
5450                     ac_mid=`expr 2 '*' $ac_mid + 1`
5451 fi
5452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5453   done
5454 else
5455   echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.$ac_ext >&5
5457
5458 cat >conftest.$ac_ext <<_ACEOF
5459 /* confdefs.h.  */
5460 _ACEOF
5461 cat confdefs.h >>conftest.$ac_ext
5462 cat >>conftest.$ac_ext <<_ACEOF
5463 /* end confdefs.h.  */
5464 $ac_includes_default
5465 int
5466 main ()
5467 {
5468 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
5469 test_array [0] = 0
5470
5471   ;
5472   return 0;
5473 }
5474 _ACEOF
5475 rm -f conftest.$ac_objext
5476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5477   (eval $ac_compile) 2>conftest.er1
5478   ac_status=$?
5479   grep -v '^ *+' conftest.er1 >conftest.err
5480   rm -f conftest.er1
5481   cat conftest.err >&5
5482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483   (exit $ac_status); } &&
5484          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5485   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5486   (eval $ac_try) 2>&5
5487   ac_status=$?
5488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489   (exit $ac_status); }; } &&
5490          { ac_try='test -s conftest.$ac_objext'
5491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5492   (eval $ac_try) 2>&5
5493   ac_status=$?
5494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495   (exit $ac_status); }; }; then
5496   ac_hi=-1 ac_mid=-1
5497   while :; do
5498     cat >conftest.$ac_ext <<_ACEOF
5499 /* confdefs.h.  */
5500 _ACEOF
5501 cat confdefs.h >>conftest.$ac_ext
5502 cat >>conftest.$ac_ext <<_ACEOF
5503 /* end confdefs.h.  */
5504 $ac_includes_default
5505 int
5506 main ()
5507 {
5508 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
5509 test_array [0] = 0
5510
5511   ;
5512   return 0;
5513 }
5514 _ACEOF
5515 rm -f conftest.$ac_objext
5516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5517   (eval $ac_compile) 2>conftest.er1
5518   ac_status=$?
5519   grep -v '^ *+' conftest.er1 >conftest.err
5520   rm -f conftest.er1
5521   cat conftest.err >&5
5522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523   (exit $ac_status); } &&
5524          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5526   (eval $ac_try) 2>&5
5527   ac_status=$?
5528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529   (exit $ac_status); }; } &&
5530          { ac_try='test -s conftest.$ac_objext'
5531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5532   (eval $ac_try) 2>&5
5533   ac_status=$?
5534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535   (exit $ac_status); }; }; then
5536   ac_lo=$ac_mid; break
5537 else
5538   echo "$as_me: failed program was:" >&5
5539 sed 's/^/| /' conftest.$ac_ext >&5
5540
5541 ac_hi=`expr '(' $ac_mid ')' - 1`
5542                        if test $ac_mid -le $ac_hi; then
5543                          ac_lo= ac_hi=
5544                          break
5545                        fi
5546                        ac_mid=`expr 2 '*' $ac_mid`
5547 fi
5548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5549   done
5550 else
5551   echo "$as_me: failed program was:" >&5
5552 sed 's/^/| /' conftest.$ac_ext >&5
5553
5554 ac_lo= ac_hi=
5555 fi
5556 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5557 fi
5558 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5559 # Binary search between lo and hi bounds.
5560 while test "x$ac_lo" != "x$ac_hi"; do
5561   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5562   cat >conftest.$ac_ext <<_ACEOF
5563 /* confdefs.h.  */
5564 _ACEOF
5565 cat confdefs.h >>conftest.$ac_ext
5566 cat >>conftest.$ac_ext <<_ACEOF
5567 /* end confdefs.h.  */
5568 $ac_includes_default
5569 int
5570 main ()
5571 {
5572 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
5573 test_array [0] = 0
5574
5575   ;
5576   return 0;
5577 }
5578 _ACEOF
5579 rm -f conftest.$ac_objext
5580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5581   (eval $ac_compile) 2>conftest.er1
5582   ac_status=$?
5583   grep -v '^ *+' conftest.er1 >conftest.err
5584   rm -f conftest.er1
5585   cat conftest.err >&5
5586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5587   (exit $ac_status); } &&
5588          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5589   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5590   (eval $ac_try) 2>&5
5591   ac_status=$?
5592   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593   (exit $ac_status); }; } &&
5594          { ac_try='test -s conftest.$ac_objext'
5595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5596   (eval $ac_try) 2>&5
5597   ac_status=$?
5598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599   (exit $ac_status); }; }; then
5600   ac_hi=$ac_mid
5601 else
5602   echo "$as_me: failed program was:" >&5
5603 sed 's/^/| /' conftest.$ac_ext >&5
5604
5605 ac_lo=`expr '(' $ac_mid ')' + 1`
5606 fi
5607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5608 done
5609 case $ac_lo in
5610 ?*) ac_cv_sizeof_int=$ac_lo;;
5611 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5612 See \`config.log' for more details." >&5
5613 echo "$as_me: error: cannot compute sizeof (int), 77
5614 See \`config.log' for more details." >&2;}
5615    { (exit 1); exit 1; }; } ;;
5616 esac
5617 else
5618   if test "$cross_compiling" = yes; then
5619   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
5620 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
5621    { (exit 1); exit 1; }; }
5622 else
5623   cat >conftest.$ac_ext <<_ACEOF
5624 /* confdefs.h.  */
5625 _ACEOF
5626 cat confdefs.h >>conftest.$ac_ext
5627 cat >>conftest.$ac_ext <<_ACEOF
5628 /* end confdefs.h.  */
5629 $ac_includes_default
5630 long longval () { return (long) (sizeof (int)); }
5631 unsigned long ulongval () { return (long) (sizeof (int)); }
5632 #include <stdio.h>
5633 #include <stdlib.h>
5634 int
5635 main ()
5636 {
5637
5638   FILE *f = fopen ("conftest.val", "w");
5639   if (! f)
5640     exit (1);
5641   if (((long) (sizeof (int))) < 0)
5642     {
5643       long i = longval ();
5644       if (i != ((long) (sizeof (int))))
5645         exit (1);
5646       fprintf (f, "%ld\n", i);
5647     }
5648   else
5649     {
5650       unsigned long i = ulongval ();
5651       if (i != ((long) (sizeof (int))))
5652         exit (1);
5653       fprintf (f, "%lu\n", i);
5654     }
5655   exit (ferror (f) || fclose (f) != 0);
5656
5657   ;
5658   return 0;
5659 }
5660 _ACEOF
5661 rm -f conftest$ac_exeext
5662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5663   (eval $ac_link) 2>&5
5664   ac_status=$?
5665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668   (eval $ac_try) 2>&5
5669   ac_status=$?
5670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671   (exit $ac_status); }; }; then
5672   ac_cv_sizeof_int=`cat conftest.val`
5673 else
5674   echo "$as_me: program exited with status $ac_status" >&5
5675 echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5677
5678 ( exit $ac_status )
5679 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
5680 See \`config.log' for more details." >&5
5681 echo "$as_me: error: cannot compute sizeof (int), 77
5682 See \`config.log' for more details." >&2;}
5683    { (exit 1); exit 1; }; }
5684 fi
5685 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5686 fi
5687 fi
5688 rm -f conftest.val
5689 else
5690   ac_cv_sizeof_int=0
5691 fi
5692 fi
5693 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
5694 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
5695 cat >>confdefs.h <<_ACEOF
5696 #define SIZEOF_INT $ac_cv_sizeof_int
5697 _ACEOF
5698
5699
5700    echo "$as_me:$LINENO: checking for long" >&5
5701 echo $ECHO_N "checking for long... $ECHO_C" >&6
5702 if test "${ac_cv_type_long+set}" = set; then
5703   echo $ECHO_N "(cached) $ECHO_C" >&6
5704 else
5705   cat >conftest.$ac_ext <<_ACEOF
5706 /* confdefs.h.  */
5707 _ACEOF
5708 cat confdefs.h >>conftest.$ac_ext
5709 cat >>conftest.$ac_ext <<_ACEOF
5710 /* end confdefs.h.  */
5711 $ac_includes_default
5712 int
5713 main ()
5714 {
5715 if ((long *) 0)
5716   return 0;
5717 if (sizeof (long))
5718   return 0;
5719   ;
5720   return 0;
5721 }
5722 _ACEOF
5723 rm -f conftest.$ac_objext
5724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5725   (eval $ac_compile) 2>conftest.er1
5726   ac_status=$?
5727   grep -v '^ *+' conftest.er1 >conftest.err
5728   rm -f conftest.er1
5729   cat conftest.err >&5
5730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731   (exit $ac_status); } &&
5732          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5734   (eval $ac_try) 2>&5
5735   ac_status=$?
5736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737   (exit $ac_status); }; } &&
5738          { ac_try='test -s conftest.$ac_objext'
5739   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5740   (eval $ac_try) 2>&5
5741   ac_status=$?
5742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743   (exit $ac_status); }; }; then
5744   ac_cv_type_long=yes
5745 else
5746   echo "$as_me: failed program was:" >&5
5747 sed 's/^/| /' conftest.$ac_ext >&5
5748
5749 ac_cv_type_long=no
5750 fi
5751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5752 fi
5753 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
5754 echo "${ECHO_T}$ac_cv_type_long" >&6
5755
5756 echo "$as_me:$LINENO: checking size of long" >&5
5757 echo $ECHO_N "checking size of long... $ECHO_C" >&6
5758 if test "${ac_cv_sizeof_long+set}" = set; then
5759   echo $ECHO_N "(cached) $ECHO_C" >&6
5760 else
5761   if test "$ac_cv_type_long" = yes; then
5762   # The cast to unsigned long works around a bug in the HP C Compiler
5763   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5764   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5765   # This bug is HP SR number 8606223364.
5766   if test "$cross_compiling" = yes; then
5767   # Depending upon the size, compute the lo and hi bounds.
5768 cat >conftest.$ac_ext <<_ACEOF
5769 /* confdefs.h.  */
5770 _ACEOF
5771 cat confdefs.h >>conftest.$ac_ext
5772 cat >>conftest.$ac_ext <<_ACEOF
5773 /* end confdefs.h.  */
5774 $ac_includes_default
5775 int
5776 main ()
5777 {
5778 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
5779 test_array [0] = 0
5780
5781   ;
5782   return 0;
5783 }
5784 _ACEOF
5785 rm -f conftest.$ac_objext
5786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5787   (eval $ac_compile) 2>conftest.er1
5788   ac_status=$?
5789   grep -v '^ *+' conftest.er1 >conftest.err
5790   rm -f conftest.er1
5791   cat conftest.err >&5
5792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793   (exit $ac_status); } &&
5794          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5795   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5796   (eval $ac_try) 2>&5
5797   ac_status=$?
5798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799   (exit $ac_status); }; } &&
5800          { ac_try='test -s conftest.$ac_objext'
5801   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5802   (eval $ac_try) 2>&5
5803   ac_status=$?
5804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805   (exit $ac_status); }; }; then
5806   ac_lo=0 ac_mid=0
5807   while :; do
5808     cat >conftest.$ac_ext <<_ACEOF
5809 /* confdefs.h.  */
5810 _ACEOF
5811 cat confdefs.h >>conftest.$ac_ext
5812 cat >>conftest.$ac_ext <<_ACEOF
5813 /* end confdefs.h.  */
5814 $ac_includes_default
5815 int
5816 main ()
5817 {
5818 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5819 test_array [0] = 0
5820
5821   ;
5822   return 0;
5823 }
5824 _ACEOF
5825 rm -f conftest.$ac_objext
5826 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5827   (eval $ac_compile) 2>conftest.er1
5828   ac_status=$?
5829   grep -v '^ *+' conftest.er1 >conftest.err
5830   rm -f conftest.er1
5831   cat conftest.err >&5
5832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5833   (exit $ac_status); } &&
5834          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5835   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5836   (eval $ac_try) 2>&5
5837   ac_status=$?
5838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839   (exit $ac_status); }; } &&
5840          { ac_try='test -s conftest.$ac_objext'
5841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5842   (eval $ac_try) 2>&5
5843   ac_status=$?
5844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845   (exit $ac_status); }; }; then
5846   ac_hi=$ac_mid; break
5847 else
5848   echo "$as_me: failed program was:" >&5
5849 sed 's/^/| /' conftest.$ac_ext >&5
5850
5851 ac_lo=`expr $ac_mid + 1`
5852                     if test $ac_lo -le $ac_mid; then
5853                       ac_lo= ac_hi=
5854                       break
5855                     fi
5856                     ac_mid=`expr 2 '*' $ac_mid + 1`
5857 fi
5858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5859   done
5860 else
5861   echo "$as_me: failed program was:" >&5
5862 sed 's/^/| /' conftest.$ac_ext >&5
5863
5864 cat >conftest.$ac_ext <<_ACEOF
5865 /* confdefs.h.  */
5866 _ACEOF
5867 cat confdefs.h >>conftest.$ac_ext
5868 cat >>conftest.$ac_ext <<_ACEOF
5869 /* end confdefs.h.  */
5870 $ac_includes_default
5871 int
5872 main ()
5873 {
5874 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
5875 test_array [0] = 0
5876
5877   ;
5878   return 0;
5879 }
5880 _ACEOF
5881 rm -f conftest.$ac_objext
5882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5883   (eval $ac_compile) 2>conftest.er1
5884   ac_status=$?
5885   grep -v '^ *+' conftest.er1 >conftest.err
5886   rm -f conftest.er1
5887   cat conftest.err >&5
5888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889   (exit $ac_status); } &&
5890          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5892   (eval $ac_try) 2>&5
5893   ac_status=$?
5894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895   (exit $ac_status); }; } &&
5896          { ac_try='test -s conftest.$ac_objext'
5897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5898   (eval $ac_try) 2>&5
5899   ac_status=$?
5900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901   (exit $ac_status); }; }; then
5902   ac_hi=-1 ac_mid=-1
5903   while :; do
5904     cat >conftest.$ac_ext <<_ACEOF
5905 /* confdefs.h.  */
5906 _ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h.  */
5910 $ac_includes_default
5911 int
5912 main ()
5913 {
5914 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
5915 test_array [0] = 0
5916
5917   ;
5918   return 0;
5919 }
5920 _ACEOF
5921 rm -f conftest.$ac_objext
5922 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5923   (eval $ac_compile) 2>conftest.er1
5924   ac_status=$?
5925   grep -v '^ *+' conftest.er1 >conftest.err
5926   rm -f conftest.er1
5927   cat conftest.err >&5
5928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929   (exit $ac_status); } &&
5930          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5932   (eval $ac_try) 2>&5
5933   ac_status=$?
5934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935   (exit $ac_status); }; } &&
5936          { ac_try='test -s conftest.$ac_objext'
5937   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5938   (eval $ac_try) 2>&5
5939   ac_status=$?
5940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941   (exit $ac_status); }; }; then
5942   ac_lo=$ac_mid; break
5943 else
5944   echo "$as_me: failed program was:" >&5
5945 sed 's/^/| /' conftest.$ac_ext >&5
5946
5947 ac_hi=`expr '(' $ac_mid ')' - 1`
5948                        if test $ac_mid -le $ac_hi; then
5949                          ac_lo= ac_hi=
5950                          break
5951                        fi
5952                        ac_mid=`expr 2 '*' $ac_mid`
5953 fi
5954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5955   done
5956 else
5957   echo "$as_me: failed program was:" >&5
5958 sed 's/^/| /' conftest.$ac_ext >&5
5959
5960 ac_lo= ac_hi=
5961 fi
5962 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5963 fi
5964 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5965 # Binary search between lo and hi bounds.
5966 while test "x$ac_lo" != "x$ac_hi"; do
5967   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
5968   cat >conftest.$ac_ext <<_ACEOF
5969 /* confdefs.h.  */
5970 _ACEOF
5971 cat confdefs.h >>conftest.$ac_ext
5972 cat >>conftest.$ac_ext <<_ACEOF
5973 /* end confdefs.h.  */
5974 $ac_includes_default
5975 int
5976 main ()
5977 {
5978 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
5979 test_array [0] = 0
5980
5981   ;
5982   return 0;
5983 }
5984 _ACEOF
5985 rm -f conftest.$ac_objext
5986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5987   (eval $ac_compile) 2>conftest.er1
5988   ac_status=$?
5989   grep -v '^ *+' conftest.er1 >conftest.err
5990   rm -f conftest.er1
5991   cat conftest.err >&5
5992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993   (exit $ac_status); } &&
5994          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
5995   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5996   (eval $ac_try) 2>&5
5997   ac_status=$?
5998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999   (exit $ac_status); }; } &&
6000          { ac_try='test -s conftest.$ac_objext'
6001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6002   (eval $ac_try) 2>&5
6003   ac_status=$?
6004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005   (exit $ac_status); }; }; then
6006   ac_hi=$ac_mid
6007 else
6008   echo "$as_me: failed program was:" >&5
6009 sed 's/^/| /' conftest.$ac_ext >&5
6010
6011 ac_lo=`expr '(' $ac_mid ')' + 1`
6012 fi
6013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6014 done
6015 case $ac_lo in
6016 ?*) ac_cv_sizeof_long=$ac_lo;;
6017 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6018 See \`config.log' for more details." >&5
6019 echo "$as_me: error: cannot compute sizeof (long), 77
6020 See \`config.log' for more details." >&2;}
6021    { (exit 1); exit 1; }; } ;;
6022 esac
6023 else
6024   if test "$cross_compiling" = yes; then
6025   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6026 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6027    { (exit 1); exit 1; }; }
6028 else
6029   cat >conftest.$ac_ext <<_ACEOF
6030 /* confdefs.h.  */
6031 _ACEOF
6032 cat confdefs.h >>conftest.$ac_ext
6033 cat >>conftest.$ac_ext <<_ACEOF
6034 /* end confdefs.h.  */
6035 $ac_includes_default
6036 long longval () { return (long) (sizeof (long)); }
6037 unsigned long ulongval () { return (long) (sizeof (long)); }
6038 #include <stdio.h>
6039 #include <stdlib.h>
6040 int
6041 main ()
6042 {
6043
6044   FILE *f = fopen ("conftest.val", "w");
6045   if (! f)
6046     exit (1);
6047   if (((long) (sizeof (long))) < 0)
6048     {
6049       long i = longval ();
6050       if (i != ((long) (sizeof (long))))
6051         exit (1);
6052       fprintf (f, "%ld\n", i);
6053     }
6054   else
6055     {
6056       unsigned long i = ulongval ();
6057       if (i != ((long) (sizeof (long))))
6058         exit (1);
6059       fprintf (f, "%lu\n", i);
6060     }
6061   exit (ferror (f) || fclose (f) != 0);
6062
6063   ;
6064   return 0;
6065 }
6066 _ACEOF
6067 rm -f conftest$ac_exeext
6068 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6069   (eval $ac_link) 2>&5
6070   ac_status=$?
6071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6074   (eval $ac_try) 2>&5
6075   ac_status=$?
6076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077   (exit $ac_status); }; }; then
6078   ac_cv_sizeof_long=`cat conftest.val`
6079 else
6080   echo "$as_me: program exited with status $ac_status" >&5
6081 echo "$as_me: failed program was:" >&5
6082 sed 's/^/| /' conftest.$ac_ext >&5
6083
6084 ( exit $ac_status )
6085 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
6086 See \`config.log' for more details." >&5
6087 echo "$as_me: error: cannot compute sizeof (long), 77
6088 See \`config.log' for more details." >&2;}
6089    { (exit 1); exit 1; }; }
6090 fi
6091 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6092 fi
6093 fi
6094 rm -f conftest.val
6095 else
6096   ac_cv_sizeof_long=0
6097 fi
6098 fi
6099 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
6100 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
6101 cat >>confdefs.h <<_ACEOF
6102 #define SIZEOF_LONG $ac_cv_sizeof_long
6103 _ACEOF
6104
6105
6106    echo "$as_me:$LINENO: checking for long long" >&5
6107 echo $ECHO_N "checking for long long... $ECHO_C" >&6
6108 if test "${ac_cv_type_long_long+set}" = set; then
6109   echo $ECHO_N "(cached) $ECHO_C" >&6
6110 else
6111   cat >conftest.$ac_ext <<_ACEOF
6112 /* confdefs.h.  */
6113 _ACEOF
6114 cat confdefs.h >>conftest.$ac_ext
6115 cat >>conftest.$ac_ext <<_ACEOF
6116 /* end confdefs.h.  */
6117 $ac_includes_default
6118 int
6119 main ()
6120 {
6121 if ((long long *) 0)
6122   return 0;
6123 if (sizeof (long long))
6124   return 0;
6125   ;
6126   return 0;
6127 }
6128 _ACEOF
6129 rm -f conftest.$ac_objext
6130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6131   (eval $ac_compile) 2>conftest.er1
6132   ac_status=$?
6133   grep -v '^ *+' conftest.er1 >conftest.err
6134   rm -f conftest.er1
6135   cat conftest.err >&5
6136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137   (exit $ac_status); } &&
6138          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6139   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6140   (eval $ac_try) 2>&5
6141   ac_status=$?
6142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143   (exit $ac_status); }; } &&
6144          { ac_try='test -s conftest.$ac_objext'
6145   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6146   (eval $ac_try) 2>&5
6147   ac_status=$?
6148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149   (exit $ac_status); }; }; then
6150   ac_cv_type_long_long=yes
6151 else
6152   echo "$as_me: failed program was:" >&5
6153 sed 's/^/| /' conftest.$ac_ext >&5
6154
6155 ac_cv_type_long_long=no
6156 fi
6157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6158 fi
6159 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6160 echo "${ECHO_T}$ac_cv_type_long_long" >&6
6161
6162 echo "$as_me:$LINENO: checking size of long long" >&5
6163 echo $ECHO_N "checking size of long long... $ECHO_C" >&6
6164 if test "${ac_cv_sizeof_long_long+set}" = set; then
6165   echo $ECHO_N "(cached) $ECHO_C" >&6
6166 else
6167   if test "$ac_cv_type_long_long" = yes; then
6168   # The cast to unsigned long works around a bug in the HP C Compiler
6169   # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6170   # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6171   # This bug is HP SR number 8606223364.
6172   if test "$cross_compiling" = yes; then
6173   # Depending upon the size, compute the lo and hi bounds.
6174 cat >conftest.$ac_ext <<_ACEOF
6175 /* confdefs.h.  */
6176 _ACEOF
6177 cat confdefs.h >>conftest.$ac_ext
6178 cat >>conftest.$ac_ext <<_ACEOF
6179 /* end confdefs.h.  */
6180 $ac_includes_default
6181 int
6182 main ()
6183 {
6184 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
6185 test_array [0] = 0
6186
6187   ;
6188   return 0;
6189 }
6190 _ACEOF
6191 rm -f conftest.$ac_objext
6192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6193   (eval $ac_compile) 2>conftest.er1
6194   ac_status=$?
6195   grep -v '^ *+' conftest.er1 >conftest.err
6196   rm -f conftest.er1
6197   cat conftest.err >&5
6198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199   (exit $ac_status); } &&
6200          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6202   (eval $ac_try) 2>&5
6203   ac_status=$?
6204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6205   (exit $ac_status); }; } &&
6206          { ac_try='test -s conftest.$ac_objext'
6207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6208   (eval $ac_try) 2>&5
6209   ac_status=$?
6210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211   (exit $ac_status); }; }; then
6212   ac_lo=0 ac_mid=0
6213   while :; do
6214     cat >conftest.$ac_ext <<_ACEOF
6215 /* confdefs.h.  */
6216 _ACEOF
6217 cat confdefs.h >>conftest.$ac_ext
6218 cat >>conftest.$ac_ext <<_ACEOF
6219 /* end confdefs.h.  */
6220 $ac_includes_default
6221 int
6222 main ()
6223 {
6224 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6225 test_array [0] = 0
6226
6227   ;
6228   return 0;
6229 }
6230 _ACEOF
6231 rm -f conftest.$ac_objext
6232 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6233   (eval $ac_compile) 2>conftest.er1
6234   ac_status=$?
6235   grep -v '^ *+' conftest.er1 >conftest.err
6236   rm -f conftest.er1
6237   cat conftest.err >&5
6238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6239   (exit $ac_status); } &&
6240          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6242   (eval $ac_try) 2>&5
6243   ac_status=$?
6244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245   (exit $ac_status); }; } &&
6246          { ac_try='test -s conftest.$ac_objext'
6247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6248   (eval $ac_try) 2>&5
6249   ac_status=$?
6250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251   (exit $ac_status); }; }; then
6252   ac_hi=$ac_mid; break
6253 else
6254   echo "$as_me: failed program was:" >&5
6255 sed 's/^/| /' conftest.$ac_ext >&5
6256
6257 ac_lo=`expr $ac_mid + 1`
6258                     if test $ac_lo -le $ac_mid; then
6259                       ac_lo= ac_hi=
6260                       break
6261                     fi
6262                     ac_mid=`expr 2 '*' $ac_mid + 1`
6263 fi
6264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6265   done
6266 else
6267   echo "$as_me: failed program was:" >&5
6268 sed 's/^/| /' conftest.$ac_ext >&5
6269
6270 cat >conftest.$ac_ext <<_ACEOF
6271 /* confdefs.h.  */
6272 _ACEOF
6273 cat confdefs.h >>conftest.$ac_ext
6274 cat >>conftest.$ac_ext <<_ACEOF
6275 /* end confdefs.h.  */
6276 $ac_includes_default
6277 int
6278 main ()
6279 {
6280 static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
6281 test_array [0] = 0
6282
6283   ;
6284   return 0;
6285 }
6286 _ACEOF
6287 rm -f conftest.$ac_objext
6288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6289   (eval $ac_compile) 2>conftest.er1
6290   ac_status=$?
6291   grep -v '^ *+' conftest.er1 >conftest.err
6292   rm -f conftest.er1
6293   cat conftest.err >&5
6294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295   (exit $ac_status); } &&
6296          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
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); }; } &&
6302          { ac_try='test -s conftest.$ac_objext'
6303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6304   (eval $ac_try) 2>&5
6305   ac_status=$?
6306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6307   (exit $ac_status); }; }; then
6308   ac_hi=-1 ac_mid=-1
6309   while :; do
6310     cat >conftest.$ac_ext <<_ACEOF
6311 /* confdefs.h.  */
6312 _ACEOF
6313 cat confdefs.h >>conftest.$ac_ext
6314 cat >>conftest.$ac_ext <<_ACEOF
6315 /* end confdefs.h.  */
6316 $ac_includes_default
6317 int
6318 main ()
6319 {
6320 static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
6321 test_array [0] = 0
6322
6323   ;
6324   return 0;
6325 }
6326 _ACEOF
6327 rm -f conftest.$ac_objext
6328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6329   (eval $ac_compile) 2>conftest.er1
6330   ac_status=$?
6331   grep -v '^ *+' conftest.er1 >conftest.err
6332   rm -f conftest.er1
6333   cat conftest.err >&5
6334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335   (exit $ac_status); } &&
6336          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6338   (eval $ac_try) 2>&5
6339   ac_status=$?
6340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341   (exit $ac_status); }; } &&
6342          { ac_try='test -s conftest.$ac_objext'
6343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6344   (eval $ac_try) 2>&5
6345   ac_status=$?
6346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347   (exit $ac_status); }; }; then
6348   ac_lo=$ac_mid; break
6349 else
6350   echo "$as_me: failed program was:" >&5
6351 sed 's/^/| /' conftest.$ac_ext >&5
6352
6353 ac_hi=`expr '(' $ac_mid ')' - 1`
6354                        if test $ac_mid -le $ac_hi; then
6355                          ac_lo= ac_hi=
6356                          break
6357                        fi
6358                        ac_mid=`expr 2 '*' $ac_mid`
6359 fi
6360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6361   done
6362 else
6363   echo "$as_me: failed program was:" >&5
6364 sed 's/^/| /' conftest.$ac_ext >&5
6365
6366 ac_lo= ac_hi=
6367 fi
6368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6369 fi
6370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6371 # Binary search between lo and hi bounds.
6372 while test "x$ac_lo" != "x$ac_hi"; do
6373   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6374   cat >conftest.$ac_ext <<_ACEOF
6375 /* confdefs.h.  */
6376 _ACEOF
6377 cat confdefs.h >>conftest.$ac_ext
6378 cat >>conftest.$ac_ext <<_ACEOF
6379 /* end confdefs.h.  */
6380 $ac_includes_default
6381 int
6382 main ()
6383 {
6384 static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
6385 test_array [0] = 0
6386
6387   ;
6388   return 0;
6389 }
6390 _ACEOF
6391 rm -f conftest.$ac_objext
6392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6393   (eval $ac_compile) 2>conftest.er1
6394   ac_status=$?
6395   grep -v '^ *+' conftest.er1 >conftest.err
6396   rm -f conftest.er1
6397   cat conftest.err >&5
6398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399   (exit $ac_status); } &&
6400          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6401   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6402   (eval $ac_try) 2>&5
6403   ac_status=$?
6404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405   (exit $ac_status); }; } &&
6406          { ac_try='test -s conftest.$ac_objext'
6407   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408   (eval $ac_try) 2>&5
6409   ac_status=$?
6410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411   (exit $ac_status); }; }; then
6412   ac_hi=$ac_mid
6413 else
6414   echo "$as_me: failed program was:" >&5
6415 sed 's/^/| /' conftest.$ac_ext >&5
6416
6417 ac_lo=`expr '(' $ac_mid ')' + 1`
6418 fi
6419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6420 done
6421 case $ac_lo in
6422 ?*) ac_cv_sizeof_long_long=$ac_lo;;
6423 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6424 See \`config.log' for more details." >&5
6425 echo "$as_me: error: cannot compute sizeof (long long), 77
6426 See \`config.log' for more details." >&2;}
6427    { (exit 1); exit 1; }; } ;;
6428 esac
6429 else
6430   if test "$cross_compiling" = yes; then
6431   { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
6432 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
6433    { (exit 1); exit 1; }; }
6434 else
6435   cat >conftest.$ac_ext <<_ACEOF
6436 /* confdefs.h.  */
6437 _ACEOF
6438 cat confdefs.h >>conftest.$ac_ext
6439 cat >>conftest.$ac_ext <<_ACEOF
6440 /* end confdefs.h.  */
6441 $ac_includes_default
6442 long longval () { return (long) (sizeof (long long)); }
6443 unsigned long ulongval () { return (long) (sizeof (long long)); }
6444 #include <stdio.h>
6445 #include <stdlib.h>
6446 int
6447 main ()
6448 {
6449
6450   FILE *f = fopen ("conftest.val", "w");
6451   if (! f)
6452     exit (1);
6453   if (((long) (sizeof (long long))) < 0)
6454     {
6455       long i = longval ();
6456       if (i != ((long) (sizeof (long long))))
6457         exit (1);
6458       fprintf (f, "%ld\n", i);
6459     }
6460   else
6461     {
6462       unsigned long i = ulongval ();
6463       if (i != ((long) (sizeof (long long))))
6464         exit (1);
6465       fprintf (f, "%lu\n", i);
6466     }
6467   exit (ferror (f) || fclose (f) != 0);
6468
6469   ;
6470   return 0;
6471 }
6472 _ACEOF
6473 rm -f conftest$ac_exeext
6474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6475   (eval $ac_link) 2>&5
6476   ac_status=$?
6477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6478   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6479   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6480   (eval $ac_try) 2>&5
6481   ac_status=$?
6482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483   (exit $ac_status); }; }; then
6484   ac_cv_sizeof_long_long=`cat conftest.val`
6485 else
6486   echo "$as_me: program exited with status $ac_status" >&5
6487 echo "$as_me: failed program was:" >&5
6488 sed 's/^/| /' conftest.$ac_ext >&5
6489
6490 ( exit $ac_status )
6491 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
6492 See \`config.log' for more details." >&5
6493 echo "$as_me: error: cannot compute sizeof (long long), 77
6494 See \`config.log' for more details." >&2;}
6495    { (exit 1); exit 1; }; }
6496 fi
6497 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6498 fi
6499 fi
6500 rm -f conftest.val
6501 else
6502   ac_cv_sizeof_long_long=0
6503 fi
6504 fi
6505 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
6506 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
6507 cat >>confdefs.h <<_ACEOF
6508 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
6509 _ACEOF
6510
6511
6512 fi
6513
6514
6515
6516
6517
6518 ac_aux_path_sendmail=/usr/sbin:/usr/lib
6519 # Extract the first word of "sendmail", so it can be a program name with args.
6520 set dummy sendmail; ac_word=$2
6521 echo "$as_me:$LINENO: checking for $ac_word" >&5
6522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6523 if test "${ac_cv_path_SENDMAIL+set}" = set; then
6524   echo $ECHO_N "(cached) $ECHO_C" >&6
6525 else
6526   case $SENDMAIL in
6527   [\\/]* | ?:[\\/]*)
6528   ac_cv_path_SENDMAIL="$SENDMAIL" # Let the user override the test with a path.
6529   ;;
6530   *)
6531   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6532 as_dummy="$PATH:$ac_aux_path_sendmail"
6533 for as_dir in $as_dummy
6534 do
6535   IFS=$as_save_IFS
6536   test -z "$as_dir" && as_dir=.
6537   for ac_exec_ext in '' $ac_executable_extensions; do
6538   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6539     ac_cv_path_SENDMAIL="$as_dir/$ac_word$ac_exec_ext"
6540     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6541     break 2
6542   fi
6543 done
6544 done
6545
6546   test -z "$ac_cv_path_SENDMAIL" && ac_cv_path_SENDMAIL="/usr/sbin/sendmail"
6547   ;;
6548 esac
6549 fi
6550 SENDMAIL=$ac_cv_path_SENDMAIL
6551
6552 if test -n "$SENDMAIL"; then
6553   echo "$as_me:$LINENO: result: $SENDMAIL" >&5
6554 echo "${ECHO_T}$SENDMAIL" >&6
6555 else
6556   echo "$as_me:$LINENO: result: no" >&5
6557 echo "${ECHO_T}no" >&6
6558 fi
6559
6560
6561 cat >>confdefs.h <<_ACEOF
6562 #define SENDMAIL "$ac_cv_path_SENDMAIL"
6563 _ACEOF
6564
6565
6566 OPS='$(srcdir)/OPS'
6567 if test -f $srcdir/EXPORTABLE ; then
6568         SUBVERSION="us"
6569 else
6570         SUBVERSION="i"
6571
6572         # Check whether --enable-gpgme or --disable-gpgme was given.
6573 if test "${enable_gpgme+set}" = set; then
6574   enableval="$enable_gpgme"
6575          if test x$enableval = xyes; then
6576                         have_gpgme=yes
6577                 fi
6578
6579 fi;
6580
6581 # Check whether --with-gpgme-prefix or --without-gpgme-prefix was given.
6582 if test "${with_gpgme_prefix+set}" = set; then
6583   withval="$with_gpgme_prefix"
6584   gpgme_config_prefix="$withval"
6585 else
6586   gpgme_config_prefix=""
6587 fi;
6588
6589         if test x$have_gpgme = xyes; then
6590                 if test x$gpgme_config_prefix != x; then
6591                         GPGME_CONFIG="$gpgme_config_prefix/bin/gpgme-config"
6592                 else
6593                         # Extract the first word of "gpgme-config", so it can be a program name with args.
6594 set dummy gpgme-config; ac_word=$2
6595 echo "$as_me:$LINENO: checking for $ac_word" >&5
6596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6597 if test "${ac_cv_path_GPGME_CONFIG+set}" = set; then
6598   echo $ECHO_N "(cached) $ECHO_C" >&6
6599 else
6600   case $GPGME_CONFIG in
6601   [\\/]* | ?:[\\/]*)
6602   ac_cv_path_GPGME_CONFIG="$GPGME_CONFIG" # Let the user override the test with a path.
6603   ;;
6604   *)
6605   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6606 for as_dir in $PATH
6607 do
6608   IFS=$as_save_IFS
6609   test -z "$as_dir" && as_dir=.
6610   for ac_exec_ext in '' $ac_executable_extensions; do
6611   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6612     ac_cv_path_GPGME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6613     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6614     break 2
6615   fi
6616 done
6617 done
6618
6619   test -z "$ac_cv_path_GPGME_CONFIG" && ac_cv_path_GPGME_CONFIG="no"
6620   ;;
6621 esac
6622 fi
6623 GPGME_CONFIG=$ac_cv_path_GPGME_CONFIG
6624
6625 if test -n "$GPGME_CONFIG"; then
6626   echo "$as_me:$LINENO: result: $GPGME_CONFIG" >&5
6627 echo "${ECHO_T}$GPGME_CONFIG" >&6
6628 else
6629   echo "$as_me:$LINENO: result: no" >&5
6630 echo "${ECHO_T}no" >&6
6631 fi
6632
6633                 fi
6634                 if test "x$GPGME_CONFIG" = "xno"; then
6635                         { { echo "$as_me:$LINENO: error: GPGME not found" >&5
6636 echo "$as_me: error: GPGME not found" >&2;}
6637    { (exit 1); exit 1; }; }
6638                 else
6639                         LIBGPGME_CFLAGS=`$GPGME_CONFIG --cflags`
6640                         LIBGPGME_LIBS=`$GPGME_CONFIG --libs`
6641                         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS crypt-gpgme.o crypt-mod-pgp-gpgme.o crypt-mod-smime-gpgme.o"
6642
6643 cat >>confdefs.h <<\_ACEOF
6644 #define CRYPT_BACKEND_GPGME 1
6645 _ACEOF
6646
6647                 fi
6648         fi
6649
6650
6651
6652         # Check whether --enable-pgp or --disable-pgp was given.
6653 if test "${enable_pgp+set}" = set; then
6654   enableval="$enable_pgp"
6655          if test x$enableval = xno ; then
6656                         have_pgp=no
6657                 fi
6658
6659 fi;
6660
6661         if test x$have_pgp != xno ; then
6662
6663 cat >>confdefs.h <<\_ACEOF
6664 #define CRYPT_BACKEND_CLASSIC_PGP 1
6665 _ACEOF
6666
6667                 PGPAUX_TARGET="pgpringng pgpewrapng"
6668                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pgp.o pgpinvoke.o pgpkey.o pgplib.o gnupgparse.o pgpmicalg.o pgppacket.o crypt-mod-pgp-classic.o"
6669         fi
6670
6671         # Check whether --enable-smime or --disable-smime was given.
6672 if test "${enable_smime+set}" = set; then
6673   enableval="$enable_smime"
6674         if test x$enableval = xno ; then
6675                         have_smime=no
6676                 fi
6677
6678 fi;
6679
6680         if test x$have_smime != xno ; then
6681
6682 cat >>confdefs.h <<\_ACEOF
6683 #define CRYPT_BACKEND_CLASSIC_SMIME 1
6684 _ACEOF
6685
6686                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS smime.o crypt-mod-smime-classic.o"
6687                 SMIMEAUX_TARGET="smime_keysng"
6688         fi
6689
6690
6691 # Check whether --with-mixmaster or --without-mixmaster was given.
6692 if test "${with_mixmaster+set}" = set; then
6693   withval="$with_mixmaster"
6694   if test -x "$withval" ; then
6695                         MIXMASTER="$withval"
6696                  else
6697                         MIXMASTER="mixmaster"
6698                  fi
6699                  OPS="$OPS \$(srcdir)/OPS.MIX"
6700                  MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS remailer.o"
6701
6702 cat >>confdefs.h <<_ACEOF
6703 #define MIXMASTER "$MIXMASTER"
6704 _ACEOF
6705
6706
6707 fi;
6708
6709 fi
6710 # We now require all OPS
6711 OPS="$OPS \$(srcdir)/OPS.PGP \$(srcdir)/OPS.SMIME \$(srcdir)/OPS.CRYPT "
6712
6713
6714
6715
6716
6717
6718
6719 cat >>confdefs.h <<_ACEOF
6720 #define SUBVERSION "$SUBVERSION"
6721 _ACEOF
6722
6723
6724
6725 # Extract the first word of "ispell", so it can be a program name with args.
6726 set dummy ispell; ac_word=$2
6727 echo "$as_me:$LINENO: checking for $ac_word" >&5
6728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6729 if test "${ac_cv_path_ISPELL+set}" = set; then
6730   echo $ECHO_N "(cached) $ECHO_C" >&6
6731 else
6732   case $ISPELL in
6733   [\\/]* | ?:[\\/]*)
6734   ac_cv_path_ISPELL="$ISPELL" # Let the user override the test with a path.
6735   ;;
6736   *)
6737   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 for as_dir in $PATH
6739 do
6740   IFS=$as_save_IFS
6741   test -z "$as_dir" && as_dir=.
6742   for ac_exec_ext in '' $ac_executable_extensions; do
6743   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6744     ac_cv_path_ISPELL="$as_dir/$ac_word$ac_exec_ext"
6745     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6746     break 2
6747   fi
6748 done
6749 done
6750
6751   test -z "$ac_cv_path_ISPELL" && ac_cv_path_ISPELL="no"
6752   ;;
6753 esac
6754 fi
6755 ISPELL=$ac_cv_path_ISPELL
6756
6757 if test -n "$ISPELL"; then
6758   echo "$as_me:$LINENO: result: $ISPELL" >&5
6759 echo "${ECHO_T}$ISPELL" >&6
6760 else
6761   echo "$as_me:$LINENO: result: no" >&5
6762 echo "${ECHO_T}no" >&6
6763 fi
6764
6765 if test $ISPELL != no; then
6766
6767 cat >>confdefs.h <<_ACEOF
6768 #define ISPELL "$ISPELL"
6769 _ACEOF
6770
6771 fi
6772
6773
6774 # Check whether --with-slang or --without-slang was given.
6775 if test "${with_slang+set}" = set; then
6776   withval="$with_slang"
6777   echo "$as_me:$LINENO: checking if this is a BSD system" >&5
6778 echo $ECHO_N "checking if this is a BSD system... $ECHO_C" >&6
6779 if test "${mutt_cv_bsdish+set}" = set; then
6780   echo $ECHO_N "(cached) $ECHO_C" >&6
6781 else
6782   if test "$cross_compiling" = yes; then
6783   mutt_cv_bsdish=no
6784 else
6785   cat >conftest.$ac_ext <<_ACEOF
6786 /* confdefs.h.  */
6787 _ACEOF
6788 cat confdefs.h >>conftest.$ac_ext
6789 cat >>conftest.$ac_ext <<_ACEOF
6790 /* end confdefs.h.  */
6791 #include <sys/param.h>
6792
6793 main ()
6794 {
6795 #ifdef BSD
6796         exit (0);
6797 #else
6798         exit (1);
6799 #endif
6800 }
6801 _ACEOF
6802 rm -f conftest$ac_exeext
6803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6804   (eval $ac_link) 2>&5
6805   ac_status=$?
6806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6809   (eval $ac_try) 2>&5
6810   ac_status=$?
6811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812   (exit $ac_status); }; }; then
6813   mutt_cv_bsdish=yes
6814 else
6815   echo "$as_me: program exited with status $ac_status" >&5
6816 echo "$as_me: failed program was:" >&5
6817 sed 's/^/| /' conftest.$ac_ext >&5
6818
6819 ( exit $ac_status )
6820 mutt_cv_bsdish=no
6821 fi
6822 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6823 fi
6824 fi
6825 echo "$as_me:$LINENO: result: $mutt_cv_bsdish" >&5
6826 echo "${ECHO_T}$mutt_cv_bsdish" >&6
6827
6828         echo "$as_me:$LINENO: checking for S-Lang" >&5
6829 echo $ECHO_N "checking for S-Lang... $ECHO_C" >&6
6830         if test $withval = yes; then
6831                 if test -d $srcdir/../slang; then
6832                         mutt_cv_slang=$srcdir/../slang/src
6833                         CFLAGS="$CFLAGS -I${mutt_cv_slang}"
6834                         LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
6835                 else
6836                         if test -d $mutt_cv_prefix/include/slang; then
6837                                 CFLAGS="$CFLAGS -I$mutt_cv_prefix/include/slang"
6838                         elif test -d /usr/include/slang; then
6839                                 CFLAGS="$CFLAGS -I/usr/include/slang"
6840                         fi
6841                         mutt_cv_slang=yes
6842                 fi
6843         else
6844                                 if test -f $withval/src/slang.h; then
6845                         mutt_cv_slang=$withval/src
6846                         CFLAGS="$CFLAGS -I${mutt_cv_slang}"
6847                         LDFLAGS="$LDFLAGS -L${mutt_cv_slang}/objs"
6848                 else
6849                                                 mutt_cv_slang=$withval
6850                         if test -d $withval/include/slang; then
6851                                 CFLAGS="$CFLAGS -I${withval}/include/slang"
6852                         elif test -d $withval/include; then
6853                                 CFLAGS="$CFLAGS -I${withval}/include"
6854                         fi
6855                         LDFLAGS="$LDFLAGS -L${withval}/lib"
6856                 fi
6857         fi
6858         echo "$as_me:$LINENO: result: $mutt_cv_slang" >&5
6859 echo "${ECHO_T}$mutt_cv_slang" >&6
6860         if test $mutt_cv_bsdish = yes; then
6861
6862 echo "$as_me:$LINENO: checking for main in -ltermlib" >&5
6863 echo $ECHO_N "checking for main in -ltermlib... $ECHO_C" >&6
6864 if test "${ac_cv_lib_termlib_main+set}" = set; then
6865   echo $ECHO_N "(cached) $ECHO_C" >&6
6866 else
6867   ac_check_lib_save_LIBS=$LIBS
6868 LIBS="-ltermlib  $LIBS"
6869 cat >conftest.$ac_ext <<_ACEOF
6870 /* confdefs.h.  */
6871 _ACEOF
6872 cat confdefs.h >>conftest.$ac_ext
6873 cat >>conftest.$ac_ext <<_ACEOF
6874 /* end confdefs.h.  */
6875
6876
6877 int
6878 main ()
6879 {
6880 main ();
6881   ;
6882   return 0;
6883 }
6884 _ACEOF
6885 rm -f conftest.$ac_objext conftest$ac_exeext
6886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6887   (eval $ac_link) 2>conftest.er1
6888   ac_status=$?
6889   grep -v '^ *+' conftest.er1 >conftest.err
6890   rm -f conftest.er1
6891   cat conftest.err >&5
6892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6893   (exit $ac_status); } &&
6894          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6896   (eval $ac_try) 2>&5
6897   ac_status=$?
6898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6899   (exit $ac_status); }; } &&
6900          { ac_try='test -s conftest$ac_exeext'
6901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6902   (eval $ac_try) 2>&5
6903   ac_status=$?
6904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6905   (exit $ac_status); }; }; then
6906   ac_cv_lib_termlib_main=yes
6907 else
6908   echo "$as_me: failed program was:" >&5
6909 sed 's/^/| /' conftest.$ac_ext >&5
6910
6911 ac_cv_lib_termlib_main=no
6912 fi
6913 rm -f conftest.err conftest.$ac_objext \
6914       conftest$ac_exeext conftest.$ac_ext
6915 LIBS=$ac_check_lib_save_LIBS
6916 fi
6917 echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_main" >&5
6918 echo "${ECHO_T}$ac_cv_lib_termlib_main" >&6
6919 if test $ac_cv_lib_termlib_main = yes; then
6920   cat >>confdefs.h <<_ACEOF
6921 #define HAVE_LIBTERMLIB 1
6922 _ACEOF
6923
6924   LIBS="-ltermlib $LIBS"
6925
6926 fi
6927
6928         fi
6929
6930 cat >>confdefs.h <<\_ACEOF
6931 #define USE_SLANG_CURSES 1
6932 _ACEOF
6933
6934
6935 cat >>confdefs.h <<\_ACEOF
6936 #define HAVE_COLOR 1
6937 _ACEOF
6938
6939         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
6940
6941
6942         echo "$as_me:$LINENO: checking for SLtt_get_terminfo in -lslang" >&5
6943 echo $ECHO_N "checking for SLtt_get_terminfo in -lslang... $ECHO_C" >&6
6944 if test "${ac_cv_lib_slang_SLtt_get_terminfo+set}" = set; then
6945   echo $ECHO_N "(cached) $ECHO_C" >&6
6946 else
6947   ac_check_lib_save_LIBS=$LIBS
6948 LIBS="-lslang -lm $LIBS"
6949 cat >conftest.$ac_ext <<_ACEOF
6950 /* confdefs.h.  */
6951 _ACEOF
6952 cat confdefs.h >>conftest.$ac_ext
6953 cat >>conftest.$ac_ext <<_ACEOF
6954 /* end confdefs.h.  */
6955
6956 /* Override any gcc2 internal prototype to avoid an error.  */
6957 #ifdef __cplusplus
6958 extern "C"
6959 #endif
6960 /* We use char because int might match the return type of a gcc2
6961    builtin and then its argument prototype would still apply.  */
6962 char SLtt_get_terminfo ();
6963 int
6964 main ()
6965 {
6966 SLtt_get_terminfo ();
6967   ;
6968   return 0;
6969 }
6970 _ACEOF
6971 rm -f conftest.$ac_objext conftest$ac_exeext
6972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6973   (eval $ac_link) 2>conftest.er1
6974   ac_status=$?
6975   grep -v '^ *+' conftest.er1 >conftest.err
6976   rm -f conftest.er1
6977   cat conftest.err >&5
6978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6979   (exit $ac_status); } &&
6980          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
6981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6982   (eval $ac_try) 2>&5
6983   ac_status=$?
6984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985   (exit $ac_status); }; } &&
6986          { ac_try='test -s conftest$ac_exeext'
6987   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6988   (eval $ac_try) 2>&5
6989   ac_status=$?
6990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991   (exit $ac_status); }; }; then
6992   ac_cv_lib_slang_SLtt_get_terminfo=yes
6993 else
6994   echo "$as_me: failed program was:" >&5
6995 sed 's/^/| /' conftest.$ac_ext >&5
6996
6997 ac_cv_lib_slang_SLtt_get_terminfo=no
6998 fi
6999 rm -f conftest.err conftest.$ac_objext \
7000       conftest$ac_exeext conftest.$ac_ext
7001 LIBS=$ac_check_lib_save_LIBS
7002 fi
7003 echo "$as_me:$LINENO: result: $ac_cv_lib_slang_SLtt_get_terminfo" >&5
7004 echo "${ECHO_T}$ac_cv_lib_slang_SLtt_get_terminfo" >&6
7005 if test $ac_cv_lib_slang_SLtt_get_terminfo = yes; then
7006   MUTTLIBS="$MUTTLIBS -lslang -lm"
7007 else
7008   { { echo "$as_me:$LINENO: error: unable to compile.  check config.log" >&5
7009 echo "$as_me: error: unable to compile.  check config.log" >&2;}
7010    { (exit 1); exit 1; }; }
7011 fi
7012
7013
7014
7015 else
7016   mutt_cv_curses=/usr
7017
7018 # Check whether --with-curses or --without-curses was given.
7019 if test "${with_curses+set}" = set; then
7020   withval="$with_curses"
7021   if test $withval != yes; then
7022                         mutt_cv_curses=$withval
7023                 fi
7024                 if test x$mutt_cv_curses != x/usr; then
7025                         LDFLAGS="-L${mutt_cv_curses}/lib $LDFLAGS"
7026                         CPPFLAGS="$CPPFLAGS -I${mutt_cv_curses}/include"
7027                 fi
7028 fi;
7029
7030         echo "$as_me:$LINENO: checking for initscr" >&5
7031 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
7032 if test "${ac_cv_func_initscr+set}" = set; then
7033   echo $ECHO_N "(cached) $ECHO_C" >&6
7034 else
7035   cat >conftest.$ac_ext <<_ACEOF
7036 /* confdefs.h.  */
7037 _ACEOF
7038 cat confdefs.h >>conftest.$ac_ext
7039 cat >>conftest.$ac_ext <<_ACEOF
7040 /* end confdefs.h.  */
7041 /* Define initscr to an innocuous variant, in case <limits.h> declares initscr.
7042    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7043 #define initscr innocuous_initscr
7044
7045 /* System header to define __stub macros and hopefully few prototypes,
7046     which can conflict with char initscr (); below.
7047     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7048     <limits.h> exists even on freestanding compilers.  */
7049
7050 #ifdef __STDC__
7051 # include <limits.h>
7052 #else
7053 # include <assert.h>
7054 #endif
7055
7056 #undef initscr
7057
7058 /* Override any gcc2 internal prototype to avoid an error.  */
7059 #ifdef __cplusplus
7060 extern "C"
7061 {
7062 #endif
7063 /* We use char because int might match the return type of a gcc2
7064    builtin and then its argument prototype would still apply.  */
7065 char initscr ();
7066 /* The GNU C library defines this for functions which it implements
7067     to always fail with ENOSYS.  Some functions are actually named
7068     something starting with __ and the normal name is an alias.  */
7069 #if defined (__stub_initscr) || defined (__stub___initscr)
7070 choke me
7071 #else
7072 char (*f) () = initscr;
7073 #endif
7074 #ifdef __cplusplus
7075 }
7076 #endif
7077
7078 int
7079 main ()
7080 {
7081 return f != initscr;
7082   ;
7083   return 0;
7084 }
7085 _ACEOF
7086 rm -f conftest.$ac_objext conftest$ac_exeext
7087 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7088   (eval $ac_link) 2>conftest.er1
7089   ac_status=$?
7090   grep -v '^ *+' conftest.er1 >conftest.err
7091   rm -f conftest.er1
7092   cat conftest.err >&5
7093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094   (exit $ac_status); } &&
7095          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7096   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7097   (eval $ac_try) 2>&5
7098   ac_status=$?
7099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100   (exit $ac_status); }; } &&
7101          { ac_try='test -s conftest$ac_exeext'
7102   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7103   (eval $ac_try) 2>&5
7104   ac_status=$?
7105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106   (exit $ac_status); }; }; then
7107   ac_cv_func_initscr=yes
7108 else
7109   echo "$as_me: failed program was:" >&5
7110 sed 's/^/| /' conftest.$ac_ext >&5
7111
7112 ac_cv_func_initscr=no
7113 fi
7114 rm -f conftest.err conftest.$ac_objext \
7115       conftest$ac_exeext conftest.$ac_ext
7116 fi
7117 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
7118 echo "${ECHO_T}$ac_cv_func_initscr" >&6
7119 if test $ac_cv_func_initscr = yes; then
7120   :
7121 else
7122
7123         cf_ncurses="ncurses"
7124         for lib in ncurses ncursesw
7125         do
7126                 as_ac_Lib=`echo "ac_cv_lib_$lib''_waddnwstr" | $as_tr_sh`
7127 echo "$as_me:$LINENO: checking for waddnwstr in -l$lib" >&5
7128 echo $ECHO_N "checking for waddnwstr in -l$lib... $ECHO_C" >&6
7129 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7130   echo $ECHO_N "(cached) $ECHO_C" >&6
7131 else
7132   ac_check_lib_save_LIBS=$LIBS
7133 LIBS="-l$lib  $LIBS"
7134 cat >conftest.$ac_ext <<_ACEOF
7135 /* confdefs.h.  */
7136 _ACEOF
7137 cat confdefs.h >>conftest.$ac_ext
7138 cat >>conftest.$ac_ext <<_ACEOF
7139 /* end confdefs.h.  */
7140
7141 /* Override any gcc2 internal prototype to avoid an error.  */
7142 #ifdef __cplusplus
7143 extern "C"
7144 #endif
7145 /* We use char because int might match the return type of a gcc2
7146    builtin and then its argument prototype would still apply.  */
7147 char waddnwstr ();
7148 int
7149 main ()
7150 {
7151 waddnwstr ();
7152   ;
7153   return 0;
7154 }
7155 _ACEOF
7156 rm -f conftest.$ac_objext conftest$ac_exeext
7157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7158   (eval $ac_link) 2>conftest.er1
7159   ac_status=$?
7160   grep -v '^ *+' conftest.er1 >conftest.err
7161   rm -f conftest.er1
7162   cat conftest.err >&5
7163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164   (exit $ac_status); } &&
7165          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7167   (eval $ac_try) 2>&5
7168   ac_status=$?
7169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7170   (exit $ac_status); }; } &&
7171          { ac_try='test -s conftest$ac_exeext'
7172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7173   (eval $ac_try) 2>&5
7174   ac_status=$?
7175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176   (exit $ac_status); }; }; then
7177   eval "$as_ac_Lib=yes"
7178 else
7179   echo "$as_me: failed program was:" >&5
7180 sed 's/^/| /' conftest.$ac_ext >&5
7181
7182 eval "$as_ac_Lib=no"
7183 fi
7184 rm -f conftest.err conftest.$ac_objext \
7185       conftest$ac_exeext conftest.$ac_ext
7186 LIBS=$ac_check_lib_save_LIBS
7187 fi
7188 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7189 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7190 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7191   cf_ncurses="$lib"; break
7192 fi
7193
7194         done
7195         as_ac_Lib=`echo "ac_cv_lib_$cf_ncurses''_initscr" | $as_tr_sh`
7196 echo "$as_me:$LINENO: checking for initscr in -l$cf_ncurses" >&5
7197 echo $ECHO_N "checking for initscr in -l$cf_ncurses... $ECHO_C" >&6
7198 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7199   echo $ECHO_N "(cached) $ECHO_C" >&6
7200 else
7201   ac_check_lib_save_LIBS=$LIBS
7202 LIBS="-l$cf_ncurses  $LIBS"
7203 cat >conftest.$ac_ext <<_ACEOF
7204 /* confdefs.h.  */
7205 _ACEOF
7206 cat confdefs.h >>conftest.$ac_ext
7207 cat >>conftest.$ac_ext <<_ACEOF
7208 /* end confdefs.h.  */
7209
7210 /* Override any gcc2 internal prototype to avoid an error.  */
7211 #ifdef __cplusplus
7212 extern "C"
7213 #endif
7214 /* We use char because int might match the return type of a gcc2
7215    builtin and then its argument prototype would still apply.  */
7216 char initscr ();
7217 int
7218 main ()
7219 {
7220 initscr ();
7221   ;
7222   return 0;
7223 }
7224 _ACEOF
7225 rm -f conftest.$ac_objext conftest$ac_exeext
7226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7227   (eval $ac_link) 2>conftest.er1
7228   ac_status=$?
7229   grep -v '^ *+' conftest.er1 >conftest.err
7230   rm -f conftest.er1
7231   cat conftest.err >&5
7232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233   (exit $ac_status); } &&
7234          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7236   (eval $ac_try) 2>&5
7237   ac_status=$?
7238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239   (exit $ac_status); }; } &&
7240          { ac_try='test -s conftest$ac_exeext'
7241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242   (eval $ac_try) 2>&5
7243   ac_status=$?
7244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245   (exit $ac_status); }; }; then
7246   eval "$as_ac_Lib=yes"
7247 else
7248   echo "$as_me: failed program was:" >&5
7249 sed 's/^/| /' conftest.$ac_ext >&5
7250
7251 eval "$as_ac_Lib=no"
7252 fi
7253 rm -f conftest.err conftest.$ac_objext \
7254       conftest$ac_exeext conftest.$ac_ext
7255 LIBS=$ac_check_lib_save_LIBS
7256 fi
7257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
7258 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
7259 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
7260   MUTTLIBS="$MUTTLIBS -l$cf_ncurses"
7261                 if test x$mutt_cv_curses = x/usr -a -d /usr/include/ncurses; then
7262                         CPPFLAGS="$CPPFLAGS -I/usr/include/ncurses"
7263                 fi
7264
7265                 if test "$cf_ncurses" = ncursesw; then
7266
7267 for ac_header in ncursesw/ncurses.h
7268 do
7269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7271   echo "$as_me:$LINENO: checking for $ac_header" >&5
7272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7274   echo $ECHO_N "(cached) $ECHO_C" >&6
7275 fi
7276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7278 else
7279   # Is the header compilable?
7280 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7281 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7282 cat >conftest.$ac_ext <<_ACEOF
7283 /* confdefs.h.  */
7284 _ACEOF
7285 cat confdefs.h >>conftest.$ac_ext
7286 cat >>conftest.$ac_ext <<_ACEOF
7287 /* end confdefs.h.  */
7288 $ac_includes_default
7289 #include <$ac_header>
7290 _ACEOF
7291 rm -f conftest.$ac_objext
7292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7293   (eval $ac_compile) 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); } &&
7300          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7301   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7302   (eval $ac_try) 2>&5
7303   ac_status=$?
7304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305   (exit $ac_status); }; } &&
7306          { ac_try='test -s conftest.$ac_objext'
7307   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7308   (eval $ac_try) 2>&5
7309   ac_status=$?
7310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311   (exit $ac_status); }; }; then
7312   ac_header_compiler=yes
7313 else
7314   echo "$as_me: failed program was:" >&5
7315 sed 's/^/| /' conftest.$ac_ext >&5
7316
7317 ac_header_compiler=no
7318 fi
7319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7320 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7321 echo "${ECHO_T}$ac_header_compiler" >&6
7322
7323 # Is the header present?
7324 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7325 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7326 cat >conftest.$ac_ext <<_ACEOF
7327 /* confdefs.h.  */
7328 _ACEOF
7329 cat confdefs.h >>conftest.$ac_ext
7330 cat >>conftest.$ac_ext <<_ACEOF
7331 /* end confdefs.h.  */
7332 #include <$ac_header>
7333 _ACEOF
7334 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7335   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7336   ac_status=$?
7337   grep -v '^ *+' conftest.er1 >conftest.err
7338   rm -f conftest.er1
7339   cat conftest.err >&5
7340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341   (exit $ac_status); } >/dev/null; then
7342   if test -s conftest.err; then
7343     ac_cpp_err=$ac_c_preproc_warn_flag
7344     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7345   else
7346     ac_cpp_err=
7347   fi
7348 else
7349   ac_cpp_err=yes
7350 fi
7351 if test -z "$ac_cpp_err"; then
7352   ac_header_preproc=yes
7353 else
7354   echo "$as_me: failed program was:" >&5
7355 sed 's/^/| /' conftest.$ac_ext >&5
7356
7357   ac_header_preproc=no
7358 fi
7359 rm -f conftest.err conftest.$ac_ext
7360 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7361 echo "${ECHO_T}$ac_header_preproc" >&6
7362
7363 # So?  What about this header?
7364 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7365   yes:no: )
7366     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7367 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7368     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7369 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7370     ac_header_preproc=yes
7371     ;;
7372   no:yes:* )
7373     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7374 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7375     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7376 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7377     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7378 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7379     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7380 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7381     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7382 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7383     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7384 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7385     (
7386       cat <<\_ASBOX
7387 ## ------------------------------------------ ##
7388 ## Report this to the AC_PACKAGE_NAME lists.  ##
7389 ## ------------------------------------------ ##
7390 _ASBOX
7391     ) |
7392       sed "s/^/$as_me: WARNING:     /" >&2
7393     ;;
7394 esac
7395 echo "$as_me:$LINENO: checking for $ac_header" >&5
7396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7398   echo $ECHO_N "(cached) $ECHO_C" >&6
7399 else
7400   eval "$as_ac_Header=\$ac_header_preproc"
7401 fi
7402 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7403 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7404
7405 fi
7406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7407   cat >>confdefs.h <<_ACEOF
7408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7409 _ACEOF
7410  cf_cv_ncurses_header="ncursesw/ncurses.h"
7411 fi
7412
7413 done
7414
7415                 else
7416
7417 for ac_header in ncurses.h
7418 do
7419 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7421   echo "$as_me:$LINENO: checking for $ac_header" >&5
7422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7424   echo $ECHO_N "(cached) $ECHO_C" >&6
7425 fi
7426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7428 else
7429   # Is the header compilable?
7430 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7431 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7432 cat >conftest.$ac_ext <<_ACEOF
7433 /* confdefs.h.  */
7434 _ACEOF
7435 cat confdefs.h >>conftest.$ac_ext
7436 cat >>conftest.$ac_ext <<_ACEOF
7437 /* end confdefs.h.  */
7438 $ac_includes_default
7439 #include <$ac_header>
7440 _ACEOF
7441 rm -f conftest.$ac_objext
7442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7443   (eval $ac_compile) 2>conftest.er1
7444   ac_status=$?
7445   grep -v '^ *+' conftest.er1 >conftest.err
7446   rm -f conftest.er1
7447   cat conftest.err >&5
7448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449   (exit $ac_status); } &&
7450          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7452   (eval $ac_try) 2>&5
7453   ac_status=$?
7454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455   (exit $ac_status); }; } &&
7456          { ac_try='test -s conftest.$ac_objext'
7457   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7458   (eval $ac_try) 2>&5
7459   ac_status=$?
7460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461   (exit $ac_status); }; }; then
7462   ac_header_compiler=yes
7463 else
7464   echo "$as_me: failed program was:" >&5
7465 sed 's/^/| /' conftest.$ac_ext >&5
7466
7467 ac_header_compiler=no
7468 fi
7469 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7470 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7471 echo "${ECHO_T}$ac_header_compiler" >&6
7472
7473 # Is the header present?
7474 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7475 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7476 cat >conftest.$ac_ext <<_ACEOF
7477 /* confdefs.h.  */
7478 _ACEOF
7479 cat confdefs.h >>conftest.$ac_ext
7480 cat >>conftest.$ac_ext <<_ACEOF
7481 /* end confdefs.h.  */
7482 #include <$ac_header>
7483 _ACEOF
7484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7485   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7486   ac_status=$?
7487   grep -v '^ *+' conftest.er1 >conftest.err
7488   rm -f conftest.er1
7489   cat conftest.err >&5
7490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491   (exit $ac_status); } >/dev/null; then
7492   if test -s conftest.err; then
7493     ac_cpp_err=$ac_c_preproc_warn_flag
7494     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7495   else
7496     ac_cpp_err=
7497   fi
7498 else
7499   ac_cpp_err=yes
7500 fi
7501 if test -z "$ac_cpp_err"; then
7502   ac_header_preproc=yes
7503 else
7504   echo "$as_me: failed program was:" >&5
7505 sed 's/^/| /' conftest.$ac_ext >&5
7506
7507   ac_header_preproc=no
7508 fi
7509 rm -f conftest.err conftest.$ac_ext
7510 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7511 echo "${ECHO_T}$ac_header_preproc" >&6
7512
7513 # So?  What about this header?
7514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7515   yes:no: )
7516     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7518     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7519 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7520     ac_header_preproc=yes
7521     ;;
7522   no:yes:* )
7523     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7524 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7525     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7526 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7527     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7528 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7529     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7530 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7531     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7533     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7534 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7535     (
7536       cat <<\_ASBOX
7537 ## ------------------------------------------ ##
7538 ## Report this to the AC_PACKAGE_NAME lists.  ##
7539 ## ------------------------------------------ ##
7540 _ASBOX
7541     ) |
7542       sed "s/^/$as_me: WARNING:     /" >&2
7543     ;;
7544 esac
7545 echo "$as_me:$LINENO: checking for $ac_header" >&5
7546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7548   echo $ECHO_N "(cached) $ECHO_C" >&6
7549 else
7550   eval "$as_ac_Header=\$ac_header_preproc"
7551 fi
7552 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7553 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7554
7555 fi
7556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7557   cat >>confdefs.h <<_ACEOF
7558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7559 _ACEOF
7560  cf_cv_ncurses_header="ncurses.h"
7561 fi
7562
7563 done
7564
7565                 fi
7566 else
7567
7568 echo "$as_me:$LINENO: checking for initscr" >&5
7569 echo $ECHO_N "checking for initscr... $ECHO_C" >&6
7570 if test "${ac_cv_func_initscr+set}" = set; then
7571   echo $ECHO_N "(cached) $ECHO_C" >&6
7572 else
7573   cat >conftest.$ac_ext <<_ACEOF
7574 /* confdefs.h.  */
7575 _ACEOF
7576 cat confdefs.h >>conftest.$ac_ext
7577 cat >>conftest.$ac_ext <<_ACEOF
7578 /* end confdefs.h.  */
7579 /* Define initscr to an innocuous variant, in case <limits.h> declares initscr.
7580    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7581 #define initscr innocuous_initscr
7582
7583 /* System header to define __stub macros and hopefully few prototypes,
7584     which can conflict with char initscr (); below.
7585     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7586     <limits.h> exists even on freestanding compilers.  */
7587
7588 #ifdef __STDC__
7589 # include <limits.h>
7590 #else
7591 # include <assert.h>
7592 #endif
7593
7594 #undef initscr
7595
7596 /* Override any gcc2 internal prototype to avoid an error.  */
7597 #ifdef __cplusplus
7598 extern "C"
7599 {
7600 #endif
7601 /* We use char because int might match the return type of a gcc2
7602    builtin and then its argument prototype would still apply.  */
7603 char initscr ();
7604 /* The GNU C library defines this for functions which it implements
7605     to always fail with ENOSYS.  Some functions are actually named
7606     something starting with __ and the normal name is an alias.  */
7607 #if defined (__stub_initscr) || defined (__stub___initscr)
7608 choke me
7609 #else
7610 char (*f) () = initscr;
7611 #endif
7612 #ifdef __cplusplus
7613 }
7614 #endif
7615
7616 int
7617 main ()
7618 {
7619 return f != initscr;
7620   ;
7621   return 0;
7622 }
7623 _ACEOF
7624 rm -f conftest.$ac_objext conftest$ac_exeext
7625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7626   (eval $ac_link) 2>conftest.er1
7627   ac_status=$?
7628   grep -v '^ *+' conftest.er1 >conftest.err
7629   rm -f conftest.er1
7630   cat conftest.err >&5
7631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632   (exit $ac_status); } &&
7633          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7634   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7635   (eval $ac_try) 2>&5
7636   ac_status=$?
7637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638   (exit $ac_status); }; } &&
7639          { ac_try='test -s conftest$ac_exeext'
7640   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7641   (eval $ac_try) 2>&5
7642   ac_status=$?
7643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644   (exit $ac_status); }; }; then
7645   ac_cv_func_initscr=yes
7646 else
7647   echo "$as_me: failed program was:" >&5
7648 sed 's/^/| /' conftest.$ac_ext >&5
7649
7650 ac_cv_func_initscr=no
7651 fi
7652 rm -f conftest.err conftest.$ac_objext \
7653       conftest$ac_exeext conftest.$ac_ext
7654 fi
7655 echo "$as_me:$LINENO: result: $ac_cv_func_initscr" >&5
7656 echo "${ECHO_T}$ac_cv_func_initscr" >&6
7657 if test $ac_cv_func_initscr = yes; then
7658   :
7659 else
7660
7661 case $host_os in #(vi
7662 freebsd*) #(vi
7663         echo "$as_me:$LINENO: checking for tgoto in -lmytinfo" >&5
7664 echo $ECHO_N "checking for tgoto in -lmytinfo... $ECHO_C" >&6
7665 if test "${ac_cv_lib_mytinfo_tgoto+set}" = set; then
7666   echo $ECHO_N "(cached) $ECHO_C" >&6
7667 else
7668   ac_check_lib_save_LIBS=$LIBS
7669 LIBS="-lmytinfo  $LIBS"
7670 cat >conftest.$ac_ext <<_ACEOF
7671 /* confdefs.h.  */
7672 _ACEOF
7673 cat confdefs.h >>conftest.$ac_ext
7674 cat >>conftest.$ac_ext <<_ACEOF
7675 /* end confdefs.h.  */
7676
7677 /* Override any gcc2 internal prototype to avoid an error.  */
7678 #ifdef __cplusplus
7679 extern "C"
7680 #endif
7681 /* We use char because int might match the return type of a gcc2
7682    builtin and then its argument prototype would still apply.  */
7683 char tgoto ();
7684 int
7685 main ()
7686 {
7687 tgoto ();
7688   ;
7689   return 0;
7690 }
7691 _ACEOF
7692 rm -f conftest.$ac_objext conftest$ac_exeext
7693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7694   (eval $ac_link) 2>conftest.er1
7695   ac_status=$?
7696   grep -v '^ *+' conftest.er1 >conftest.err
7697   rm -f conftest.er1
7698   cat conftest.err >&5
7699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700   (exit $ac_status); } &&
7701          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7702   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7703   (eval $ac_try) 2>&5
7704   ac_status=$?
7705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706   (exit $ac_status); }; } &&
7707          { ac_try='test -s conftest$ac_exeext'
7708   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7709   (eval $ac_try) 2>&5
7710   ac_status=$?
7711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712   (exit $ac_status); }; }; then
7713   ac_cv_lib_mytinfo_tgoto=yes
7714 else
7715   echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.$ac_ext >&5
7717
7718 ac_cv_lib_mytinfo_tgoto=no
7719 fi
7720 rm -f conftest.err conftest.$ac_objext \
7721       conftest$ac_exeext conftest.$ac_ext
7722 LIBS=$ac_check_lib_save_LIBS
7723 fi
7724 echo "$as_me:$LINENO: result: $ac_cv_lib_mytinfo_tgoto" >&5
7725 echo "${ECHO_T}$ac_cv_lib_mytinfo_tgoto" >&6
7726 if test $ac_cv_lib_mytinfo_tgoto = yes; then
7727   LIBS="-lmytinfo $LIBS"
7728 fi
7729
7730         ;;
7731 hpux10.*|hpux11.*)
7732         echo "$as_me:$LINENO: checking for initscr in -lcur_colr" >&5
7733 echo $ECHO_N "checking for initscr in -lcur_colr... $ECHO_C" >&6
7734 if test "${ac_cv_lib_cur_colr_initscr+set}" = set; then
7735   echo $ECHO_N "(cached) $ECHO_C" >&6
7736 else
7737   ac_check_lib_save_LIBS=$LIBS
7738 LIBS="-lcur_colr  $LIBS"
7739 cat >conftest.$ac_ext <<_ACEOF
7740 /* confdefs.h.  */
7741 _ACEOF
7742 cat confdefs.h >>conftest.$ac_ext
7743 cat >>conftest.$ac_ext <<_ACEOF
7744 /* end confdefs.h.  */
7745
7746 /* Override any gcc2 internal prototype to avoid an error.  */
7747 #ifdef __cplusplus
7748 extern "C"
7749 #endif
7750 /* We use char because int might match the return type of a gcc2
7751    builtin and then its argument prototype would still apply.  */
7752 char initscr ();
7753 int
7754 main ()
7755 {
7756 initscr ();
7757   ;
7758   return 0;
7759 }
7760 _ACEOF
7761 rm -f conftest.$ac_objext conftest$ac_exeext
7762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7763   (eval $ac_link) 2>conftest.er1
7764   ac_status=$?
7765   grep -v '^ *+' conftest.er1 >conftest.err
7766   rm -f conftest.er1
7767   cat conftest.err >&5
7768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769   (exit $ac_status); } &&
7770          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7772   (eval $ac_try) 2>&5
7773   ac_status=$?
7774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775   (exit $ac_status); }; } &&
7776          { ac_try='test -s conftest$ac_exeext'
7777   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7778   (eval $ac_try) 2>&5
7779   ac_status=$?
7780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781   (exit $ac_status); }; }; then
7782   ac_cv_lib_cur_colr_initscr=yes
7783 else
7784   echo "$as_me: failed program was:" >&5
7785 sed 's/^/| /' conftest.$ac_ext >&5
7786
7787 ac_cv_lib_cur_colr_initscr=no
7788 fi
7789 rm -f conftest.err conftest.$ac_objext \
7790       conftest$ac_exeext conftest.$ac_ext
7791 LIBS=$ac_check_lib_save_LIBS
7792 fi
7793 echo "$as_me:$LINENO: result: $ac_cv_lib_cur_colr_initscr" >&5
7794 echo "${ECHO_T}$ac_cv_lib_cur_colr_initscr" >&6
7795 if test $ac_cv_lib_cur_colr_initscr = yes; then
7796
7797                 LIBS="-lcur_colr $LIBS"
7798                 CFLAGS="-I/usr/include/curses_colr $CFLAGS"
7799                 ac_cv_func_initscr=yes
7800
7801 else
7802
7803         echo "$as_me:$LINENO: checking for initscr in -lHcurses" >&5
7804 echo $ECHO_N "checking for initscr in -lHcurses... $ECHO_C" >&6
7805 if test "${ac_cv_lib_Hcurses_initscr+set}" = set; then
7806   echo $ECHO_N "(cached) $ECHO_C" >&6
7807 else
7808   ac_check_lib_save_LIBS=$LIBS
7809 LIBS="-lHcurses  $LIBS"
7810 cat >conftest.$ac_ext <<_ACEOF
7811 /* confdefs.h.  */
7812 _ACEOF
7813 cat confdefs.h >>conftest.$ac_ext
7814 cat >>conftest.$ac_ext <<_ACEOF
7815 /* end confdefs.h.  */
7816
7817 /* Override any gcc2 internal prototype to avoid an error.  */
7818 #ifdef __cplusplus
7819 extern "C"
7820 #endif
7821 /* We use char because int might match the return type of a gcc2
7822    builtin and then its argument prototype would still apply.  */
7823 char initscr ();
7824 int
7825 main ()
7826 {
7827 initscr ();
7828   ;
7829   return 0;
7830 }
7831 _ACEOF
7832 rm -f conftest.$ac_objext conftest$ac_exeext
7833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7834   (eval $ac_link) 2>conftest.er1
7835   ac_status=$?
7836   grep -v '^ *+' conftest.er1 >conftest.err
7837   rm -f conftest.er1
7838   cat conftest.err >&5
7839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840   (exit $ac_status); } &&
7841          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7843   (eval $ac_try) 2>&5
7844   ac_status=$?
7845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846   (exit $ac_status); }; } &&
7847          { ac_try='test -s conftest$ac_exeext'
7848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7849   (eval $ac_try) 2>&5
7850   ac_status=$?
7851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852   (exit $ac_status); }; }; then
7853   ac_cv_lib_Hcurses_initscr=yes
7854 else
7855   echo "$as_me: failed program was:" >&5
7856 sed 's/^/| /' conftest.$ac_ext >&5
7857
7858 ac_cv_lib_Hcurses_initscr=no
7859 fi
7860 rm -f conftest.err conftest.$ac_objext \
7861       conftest$ac_exeext conftest.$ac_ext
7862 LIBS=$ac_check_lib_save_LIBS
7863 fi
7864 echo "$as_me:$LINENO: result: $ac_cv_lib_Hcurses_initscr" >&5
7865 echo "${ECHO_T}$ac_cv_lib_Hcurses_initscr" >&6
7866 if test $ac_cv_lib_Hcurses_initscr = yes; then
7867
7868                 # HP's header uses __HP_CURSES, but user claims _HP_CURSES.
7869                 LIBS="-lHcurses $LIBS"
7870                 CFLAGS="-D__HP_CURSES -D_HP_CURSES $CFLAGS"
7871                 ac_cv_func_initscr=yes
7872
7873 fi
7874
7875 fi
7876
7877         ;;
7878 linux*) # Suse Linux does not follow /usr/lib convention
7879         LIBS="$LIBS -L/lib"
7880         ;;
7881 esac
7882
7883 if test ".$With5lib" != ".no" ; then
7884 if test -d /usr/5lib ; then
7885         # SunOS 3.x or 4.x
7886         CPPFLAGS="$CPPFLAGS -I/usr/5include"
7887         LIBS="$LIBS -L/usr/5lib"
7888 fi
7889 fi
7890
7891 if test ".$ac_cv_func_initscr" != .yes ; then
7892         cf_save_LIBS="$LIBS"
7893         cf_term_lib=""
7894         cf_curs_lib=""
7895
7896         # Check for library containing tgoto.  Do this before curses library
7897         # because it may be needed to link the test-case for initscr.
7898         echo "$as_me:$LINENO: checking for tgoto" >&5
7899 echo $ECHO_N "checking for tgoto... $ECHO_C" >&6
7900 if test "${ac_cv_func_tgoto+set}" = set; then
7901   echo $ECHO_N "(cached) $ECHO_C" >&6
7902 else
7903   cat >conftest.$ac_ext <<_ACEOF
7904 /* confdefs.h.  */
7905 _ACEOF
7906 cat confdefs.h >>conftest.$ac_ext
7907 cat >>conftest.$ac_ext <<_ACEOF
7908 /* end confdefs.h.  */
7909 /* Define tgoto to an innocuous variant, in case <limits.h> declares tgoto.
7910    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7911 #define tgoto innocuous_tgoto
7912
7913 /* System header to define __stub macros and hopefully few prototypes,
7914     which can conflict with char tgoto (); below.
7915     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7916     <limits.h> exists even on freestanding compilers.  */
7917
7918 #ifdef __STDC__
7919 # include <limits.h>
7920 #else
7921 # include <assert.h>
7922 #endif
7923
7924 #undef tgoto
7925
7926 /* Override any gcc2 internal prototype to avoid an error.  */
7927 #ifdef __cplusplus
7928 extern "C"
7929 {
7930 #endif
7931 /* We use char because int might match the return type of a gcc2
7932    builtin and then its argument prototype would still apply.  */
7933 char tgoto ();
7934 /* The GNU C library defines this for functions which it implements
7935     to always fail with ENOSYS.  Some functions are actually named
7936     something starting with __ and the normal name is an alias.  */
7937 #if defined (__stub_tgoto) || defined (__stub___tgoto)
7938 choke me
7939 #else
7940 char (*f) () = tgoto;
7941 #endif
7942 #ifdef __cplusplus
7943 }
7944 #endif
7945
7946 int
7947 main ()
7948 {
7949 return f != tgoto;
7950   ;
7951   return 0;
7952 }
7953 _ACEOF
7954 rm -f conftest.$ac_objext conftest$ac_exeext
7955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7956   (eval $ac_link) 2>conftest.er1
7957   ac_status=$?
7958   grep -v '^ *+' conftest.er1 >conftest.err
7959   rm -f conftest.er1
7960   cat conftest.err >&5
7961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962   (exit $ac_status); } &&
7963          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
7964   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7965   (eval $ac_try) 2>&5
7966   ac_status=$?
7967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968   (exit $ac_status); }; } &&
7969          { ac_try='test -s conftest$ac_exeext'
7970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7971   (eval $ac_try) 2>&5
7972   ac_status=$?
7973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974   (exit $ac_status); }; }; then
7975   ac_cv_func_tgoto=yes
7976 else
7977   echo "$as_me: failed program was:" >&5
7978 sed 's/^/| /' conftest.$ac_ext >&5
7979
7980 ac_cv_func_tgoto=no
7981 fi
7982 rm -f conftest.err conftest.$ac_objext \
7983       conftest$ac_exeext conftest.$ac_ext
7984 fi
7985 echo "$as_me:$LINENO: result: $ac_cv_func_tgoto" >&5
7986 echo "${ECHO_T}$ac_cv_func_tgoto" >&6
7987 if test $ac_cv_func_tgoto = yes; then
7988   cf_term_lib=predefined
7989 else
7990
7991                 for cf_term_lib in termcap termlib unknown
7992                 do
7993                         as_ac_Lib=`echo "ac_cv_lib_$cf_term_lib''_tgoto" | $as_tr_sh`
7994 echo "$as_me:$LINENO: checking for tgoto in -l$cf_term_lib" >&5
7995 echo $ECHO_N "checking for tgoto in -l$cf_term_lib... $ECHO_C" >&6
7996 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
7997   echo $ECHO_N "(cached) $ECHO_C" >&6
7998 else
7999   ac_check_lib_save_LIBS=$LIBS
8000 LIBS="-l$cf_term_lib  $LIBS"
8001 cat >conftest.$ac_ext <<_ACEOF
8002 /* confdefs.h.  */
8003 _ACEOF
8004 cat confdefs.h >>conftest.$ac_ext
8005 cat >>conftest.$ac_ext <<_ACEOF
8006 /* end confdefs.h.  */
8007
8008 /* Override any gcc2 internal prototype to avoid an error.  */
8009 #ifdef __cplusplus
8010 extern "C"
8011 #endif
8012 /* We use char because int might match the return type of a gcc2
8013    builtin and then its argument prototype would still apply.  */
8014 char tgoto ();
8015 int
8016 main ()
8017 {
8018 tgoto ();
8019   ;
8020   return 0;
8021 }
8022 _ACEOF
8023 rm -f conftest.$ac_objext conftest$ac_exeext
8024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8025   (eval $ac_link) 2>conftest.er1
8026   ac_status=$?
8027   grep -v '^ *+' conftest.er1 >conftest.err
8028   rm -f conftest.er1
8029   cat conftest.err >&5
8030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031   (exit $ac_status); } &&
8032          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8033   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8034   (eval $ac_try) 2>&5
8035   ac_status=$?
8036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037   (exit $ac_status); }; } &&
8038          { ac_try='test -s conftest$ac_exeext'
8039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8040   (eval $ac_try) 2>&5
8041   ac_status=$?
8042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043   (exit $ac_status); }; }; then
8044   eval "$as_ac_Lib=yes"
8045 else
8046   echo "$as_me: failed program was:" >&5
8047 sed 's/^/| /' conftest.$ac_ext >&5
8048
8049 eval "$as_ac_Lib=no"
8050 fi
8051 rm -f conftest.err conftest.$ac_objext \
8052       conftest$ac_exeext conftest.$ac_ext
8053 LIBS=$ac_check_lib_save_LIBS
8054 fi
8055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
8056 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
8057 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
8058   break
8059 fi
8060
8061                 done
8062
8063 fi
8064
8065
8066         # Check for library containing initscr
8067         test "$cf_term_lib" != predefined && test "$cf_term_lib" != unknown && LIBS="-l$cf_term_lib $cf_save_LIBS"
8068         for cf_curs_lib in cursesX curses ncurses xcurses jcurses unknown
8069         do
8070                 as_ac_Lib=`echo "ac_cv_lib_$cf_curs_lib''_initscr" | $as_tr_sh`
8071 echo "$as_me:$LINENO: checking for initscr in -l$cf_curs_lib" >&5
8072 echo $ECHO_N "checking for initscr in -l$cf_curs_lib... $ECHO_C" >&6
8073 if eval "test \"\${$as_ac_Lib+set}\" = set"; then
8074   echo $ECHO_N "(cached) $ECHO_C" >&6
8075 else
8076   ac_check_lib_save_LIBS=$LIBS
8077 LIBS="-l$cf_curs_lib  $LIBS"
8078 cat >conftest.$ac_ext <<_ACEOF
8079 /* confdefs.h.  */
8080 _ACEOF
8081 cat confdefs.h >>conftest.$ac_ext
8082 cat >>conftest.$ac_ext <<_ACEOF
8083 /* end confdefs.h.  */
8084
8085 /* Override any gcc2 internal prototype to avoid an error.  */
8086 #ifdef __cplusplus
8087 extern "C"
8088 #endif
8089 /* We use char because int might match the return type of a gcc2
8090    builtin and then its argument prototype would still apply.  */
8091 char initscr ();
8092 int
8093 main ()
8094 {
8095 initscr ();
8096   ;
8097   return 0;
8098 }
8099 _ACEOF
8100 rm -f conftest.$ac_objext conftest$ac_exeext
8101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8102   (eval $ac_link) 2>conftest.er1
8103   ac_status=$?
8104   grep -v '^ *+' conftest.er1 >conftest.err
8105   rm -f conftest.er1
8106   cat conftest.err >&5
8107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108   (exit $ac_status); } &&
8109          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8110   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8111   (eval $ac_try) 2>&5
8112   ac_status=$?
8113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8114   (exit $ac_status); }; } &&
8115          { ac_try='test -s conftest$ac_exeext'
8116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8117   (eval $ac_try) 2>&5
8118   ac_status=$?
8119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120   (exit $ac_status); }; }; then
8121   eval "$as_ac_Lib=yes"
8122 else
8123   echo "$as_me: failed program was:" >&5
8124 sed 's/^/| /' conftest.$ac_ext >&5
8125
8126 eval "$as_ac_Lib=no"
8127 fi
8128 rm -f conftest.err conftest.$ac_objext \
8129       conftest$ac_exeext conftest.$ac_ext
8130 LIBS=$ac_check_lib_save_LIBS
8131 fi
8132 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
8133 echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
8134 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
8135   break
8136 fi
8137
8138         done
8139         test $cf_curs_lib = unknown && { { echo "$as_me:$LINENO: error: no curses library found" >&5
8140 echo "$as_me: error: no curses library found" >&2;}
8141    { (exit 1); exit 1; }; }
8142
8143         LIBS="-l$cf_curs_lib $cf_save_LIBS"
8144         if test "$cf_term_lib" = unknown ; then
8145                 echo "$as_me:$LINENO: checking if we can link with $cf_curs_lib library" >&5
8146 echo $ECHO_N "checking if we can link with $cf_curs_lib library... $ECHO_C" >&6
8147                 cat >conftest.$ac_ext <<_ACEOF
8148 /* confdefs.h.  */
8149 _ACEOF
8150 cat confdefs.h >>conftest.$ac_ext
8151 cat >>conftest.$ac_ext <<_ACEOF
8152 /* end confdefs.h.  */
8153 #include <${cf_cv_ncurses_header-curses.h}>
8154 int
8155 main ()
8156 {
8157 initscr()
8158   ;
8159   return 0;
8160 }
8161 _ACEOF
8162 rm -f conftest.$ac_objext conftest$ac_exeext
8163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8164   (eval $ac_link) 2>conftest.er1
8165   ac_status=$?
8166   grep -v '^ *+' conftest.er1 >conftest.err
8167   rm -f conftest.er1
8168   cat conftest.err >&5
8169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170   (exit $ac_status); } &&
8171          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8173   (eval $ac_try) 2>&5
8174   ac_status=$?
8175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176   (exit $ac_status); }; } &&
8177          { ac_try='test -s conftest$ac_exeext'
8178   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8179   (eval $ac_try) 2>&5
8180   ac_status=$?
8181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182   (exit $ac_status); }; }; then
8183   cf_result=yes
8184 else
8185   echo "$as_me: failed program was:" >&5
8186 sed 's/^/| /' conftest.$ac_ext >&5
8187
8188 cf_result=no
8189 fi
8190 rm -f conftest.err conftest.$ac_objext \
8191       conftest$ac_exeext conftest.$ac_ext
8192                 echo "$as_me:$LINENO: result: $cf_result" >&5
8193 echo "${ECHO_T}$cf_result" >&6
8194                 test $cf_result = no && { { echo "$as_me:$LINENO: error: Cannot link curses library" >&5
8195 echo "$as_me: error: Cannot link curses library" >&2;}
8196    { (exit 1); exit 1; }; }
8197         elif test "$cf_term_lib" != predefined ; then
8198                 echo "$as_me:$LINENO: checking if we need both $cf_curs_lib and $cf_term_lib libraries" >&5
8199 echo $ECHO_N "checking if we need both $cf_curs_lib and $cf_term_lib libraries... $ECHO_C" >&6
8200                 cat >conftest.$ac_ext <<_ACEOF
8201 /* confdefs.h.  */
8202 _ACEOF
8203 cat confdefs.h >>conftest.$ac_ext
8204 cat >>conftest.$ac_ext <<_ACEOF
8205 /* end confdefs.h.  */
8206 #include <${cf_cv_ncurses_header-curses.h}>
8207 int
8208 main ()
8209 {
8210 initscr(); tgoto((char *)0, 0, 0);
8211   ;
8212   return 0;
8213 }
8214 _ACEOF
8215 rm -f conftest.$ac_objext conftest$ac_exeext
8216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8217   (eval $ac_link) 2>conftest.er1
8218   ac_status=$?
8219   grep -v '^ *+' conftest.er1 >conftest.err
8220   rm -f conftest.er1
8221   cat conftest.err >&5
8222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223   (exit $ac_status); } &&
8224          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8225   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8226   (eval $ac_try) 2>&5
8227   ac_status=$?
8228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229   (exit $ac_status); }; } &&
8230          { ac_try='test -s conftest$ac_exeext'
8231   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8232   (eval $ac_try) 2>&5
8233   ac_status=$?
8234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235   (exit $ac_status); }; }; then
8236   cf_result=no
8237 else
8238   echo "$as_me: failed program was:" >&5
8239 sed 's/^/| /' conftest.$ac_ext >&5
8240
8241
8242                         LIBS="-l$cf_curs_lib -l$cf_term_lib $cf_save_LIBS"
8243                         cat >conftest.$ac_ext <<_ACEOF
8244 /* confdefs.h.  */
8245 _ACEOF
8246 cat confdefs.h >>conftest.$ac_ext
8247 cat >>conftest.$ac_ext <<_ACEOF
8248 /* end confdefs.h.  */
8249 #include <${cf_cv_ncurses_header-curses.h}>
8250 int
8251 main ()
8252 {
8253 initscr()
8254   ;
8255   return 0;
8256 }
8257 _ACEOF
8258 rm -f conftest.$ac_objext conftest$ac_exeext
8259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8260   (eval $ac_link) 2>conftest.er1
8261   ac_status=$?
8262   grep -v '^ *+' conftest.er1 >conftest.err
8263   rm -f conftest.er1
8264   cat conftest.err >&5
8265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266   (exit $ac_status); } &&
8267          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8268   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8269   (eval $ac_try) 2>&5
8270   ac_status=$?
8271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272   (exit $ac_status); }; } &&
8273          { ac_try='test -s conftest$ac_exeext'
8274   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8275   (eval $ac_try) 2>&5
8276   ac_status=$?
8277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8278   (exit $ac_status); }; }; then
8279   cf_result=yes
8280 else
8281   echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.$ac_ext >&5
8283
8284 cf_result=error
8285 fi
8286 rm -f conftest.err conftest.$ac_objext \
8287       conftest$ac_exeext conftest.$ac_ext
8288
8289 fi
8290 rm -f conftest.err conftest.$ac_objext \
8291       conftest$ac_exeext conftest.$ac_ext
8292                 echo "$as_me:$LINENO: result: $cf_result" >&5
8293 echo "${ECHO_T}$cf_result" >&6
8294         fi
8295 fi
8296
8297
8298 fi
8299
8300 fi
8301
8302
8303 fi
8304
8305
8306         old_LIBS="$LIBS"
8307         LIBS="$LIBS $MUTTLIBS"
8308         for ac_func in start_color typeahead bkgdset curs_set meta use_default_colors resizeterm
8309 do
8310
8311 echo "$as_me:$LINENO: checking for $ac_func declaration" >&5
8312 echo $ECHO_N "checking for $ac_func declaration... $ECHO_C" >&6
8313 if eval "test \"\${ac_cv_func_decl_$ac_func+set}\" = set"; then
8314   echo $ECHO_N "(cached) $ECHO_C" >&6
8315 else
8316   cat >conftest.$ac_ext <<_ACEOF
8317 /* confdefs.h.  */
8318 _ACEOF
8319 cat confdefs.h >>conftest.$ac_ext
8320 cat >>conftest.$ac_ext <<_ACEOF
8321 /* end confdefs.h.  */
8322 #include <${cf_cv_ncurses_header-curses.h}>
8323 int
8324 main ()
8325 {
8326 #ifndef ${ac_func}
8327 extern  int     ${ac_func}();
8328 #endif
8329   ;
8330   return 0;
8331 }
8332 _ACEOF
8333 rm -f conftest.$ac_objext
8334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8335   (eval $ac_compile) 2>conftest.er1
8336   ac_status=$?
8337   grep -v '^ *+' conftest.er1 >conftest.err
8338   rm -f conftest.er1
8339   cat conftest.err >&5
8340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341   (exit $ac_status); } &&
8342          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8344   (eval $ac_try) 2>&5
8345   ac_status=$?
8346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347   (exit $ac_status); }; } &&
8348          { ac_try='test -s conftest.$ac_objext'
8349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8350   (eval $ac_try) 2>&5
8351   ac_status=$?
8352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353   (exit $ac_status); }; }; then
8354
8355 cat >conftest.$ac_ext <<_ACEOF
8356 /* confdefs.h.  */
8357 _ACEOF
8358 cat confdefs.h >>conftest.$ac_ext
8359 cat >>conftest.$ac_ext <<_ACEOF
8360 /* end confdefs.h.  */
8361 #include <${cf_cv_ncurses_header-curses.h}>
8362 int
8363 main ()
8364 {
8365 #ifndef ${ac_func}
8366 int     (*p)() = ${ac_func};
8367 #endif
8368   ;
8369   return 0;
8370 }
8371 _ACEOF
8372 rm -f conftest.$ac_objext
8373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8374   (eval $ac_compile) 2>conftest.er1
8375   ac_status=$?
8376   grep -v '^ *+' conftest.er1 >conftest.err
8377   rm -f conftest.er1
8378   cat conftest.err >&5
8379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380   (exit $ac_status); } &&
8381          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8383   (eval $ac_try) 2>&5
8384   ac_status=$?
8385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386   (exit $ac_status); }; } &&
8387          { ac_try='test -s conftest.$ac_objext'
8388   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8389   (eval $ac_try) 2>&5
8390   ac_status=$?
8391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392   (exit $ac_status); }; }; then
8393
8394 eval "ac_cv_func_decl_$ac_func=yes"
8395 else
8396   echo "$as_me: failed program was:" >&5
8397 sed 's/^/| /' conftest.$ac_ext >&5
8398
8399
8400 eval "ac_cv_func_decl_$ac_func=no"
8401 fi
8402 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8403 else
8404   echo "$as_me: failed program was:" >&5
8405 sed 's/^/| /' conftest.$ac_ext >&5
8406
8407
8408 eval "ac_cv_func_decl_$ac_func=yes"
8409 fi
8410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8411 fi
8412
8413 if eval "test \"`echo '$ac_cv_func_'decl_$ac_func`\" = yes"; then
8414   echo "$as_me:$LINENO: result: yes" >&5
8415 echo "${ECHO_T}yes" >&6
8416
8417
8418 ac_tr_func=`echo HAVE_$ac_func | tr '[a-z]' '[A-Z]'`
8419
8420   cat >>confdefs.h <<_ACEOF
8421 #define $ac_tr_func 1
8422 _ACEOF
8423
8424 else
8425   echo "$as_me:$LINENO: result: no" >&5
8426 echo "${ECHO_T}no" >&6
8427 fi
8428 done
8429
8430         if test "$ac_cv_func_decl_start_color" = yes; then
8431
8432 cat >>confdefs.h <<\_ACEOF
8433 #define HAVE_COLOR 1
8434 _ACEOF
8435
8436         fi
8437         if test "$ac_cv_func_decl_resizeterm" = yes; then
8438                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS resize.o"
8439         fi
8440         LIBS="$old_LIBS"
8441
8442 fi;
8443
8444 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8445 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8446 if test "${ac_cv_header_stdc+set}" = set; then
8447   echo $ECHO_N "(cached) $ECHO_C" >&6
8448 else
8449   cat >conftest.$ac_ext <<_ACEOF
8450 /* confdefs.h.  */
8451 _ACEOF
8452 cat confdefs.h >>conftest.$ac_ext
8453 cat >>conftest.$ac_ext <<_ACEOF
8454 /* end confdefs.h.  */
8455 #include <stdlib.h>
8456 #include <stdarg.h>
8457 #include <string.h>
8458 #include <float.h>
8459
8460 int
8461 main ()
8462 {
8463
8464   ;
8465   return 0;
8466 }
8467 _ACEOF
8468 rm -f conftest.$ac_objext
8469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8470   (eval $ac_compile) 2>conftest.er1
8471   ac_status=$?
8472   grep -v '^ *+' conftest.er1 >conftest.err
8473   rm -f conftest.er1
8474   cat conftest.err >&5
8475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476   (exit $ac_status); } &&
8477          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8478   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8479   (eval $ac_try) 2>&5
8480   ac_status=$?
8481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8482   (exit $ac_status); }; } &&
8483          { ac_try='test -s conftest.$ac_objext'
8484   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8485   (eval $ac_try) 2>&5
8486   ac_status=$?
8487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488   (exit $ac_status); }; }; then
8489   ac_cv_header_stdc=yes
8490 else
8491   echo "$as_me: failed program was:" >&5
8492 sed 's/^/| /' conftest.$ac_ext >&5
8493
8494 ac_cv_header_stdc=no
8495 fi
8496 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8497
8498 if test $ac_cv_header_stdc = yes; then
8499   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8500   cat >conftest.$ac_ext <<_ACEOF
8501 /* confdefs.h.  */
8502 _ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h.  */
8506 #include <string.h>
8507
8508 _ACEOF
8509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8510   $EGREP "memchr" >/dev/null 2>&1; then
8511   :
8512 else
8513   ac_cv_header_stdc=no
8514 fi
8515 rm -f conftest*
8516
8517 fi
8518
8519 if test $ac_cv_header_stdc = yes; then
8520   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8521   cat >conftest.$ac_ext <<_ACEOF
8522 /* confdefs.h.  */
8523 _ACEOF
8524 cat confdefs.h >>conftest.$ac_ext
8525 cat >>conftest.$ac_ext <<_ACEOF
8526 /* end confdefs.h.  */
8527 #include <stdlib.h>
8528
8529 _ACEOF
8530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8531   $EGREP "free" >/dev/null 2>&1; then
8532   :
8533 else
8534   ac_cv_header_stdc=no
8535 fi
8536 rm -f conftest*
8537
8538 fi
8539
8540 if test $ac_cv_header_stdc = yes; then
8541   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8542   if test "$cross_compiling" = yes; then
8543   :
8544 else
8545   cat >conftest.$ac_ext <<_ACEOF
8546 /* confdefs.h.  */
8547 _ACEOF
8548 cat confdefs.h >>conftest.$ac_ext
8549 cat >>conftest.$ac_ext <<_ACEOF
8550 /* end confdefs.h.  */
8551 #include <ctype.h>
8552 #if ((' ' & 0x0FF) == 0x020)
8553 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8554 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8555 #else
8556 # define ISLOWER(c) \
8557                    (('a' <= (c) && (c) <= 'i') \
8558                      || ('j' <= (c) && (c) <= 'r') \
8559                      || ('s' <= (c) && (c) <= 'z'))
8560 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8561 #endif
8562
8563 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8564 int
8565 main ()
8566 {
8567   int i;
8568   for (i = 0; i < 256; i++)
8569     if (XOR (islower (i), ISLOWER (i))
8570         || toupper (i) != TOUPPER (i))
8571       exit(2);
8572   exit (0);
8573 }
8574 _ACEOF
8575 rm -f conftest$ac_exeext
8576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8577   (eval $ac_link) 2>&5
8578   ac_status=$?
8579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8581   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8582   (eval $ac_try) 2>&5
8583   ac_status=$?
8584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585   (exit $ac_status); }; }; then
8586   :
8587 else
8588   echo "$as_me: program exited with status $ac_status" >&5
8589 echo "$as_me: failed program was:" >&5
8590 sed 's/^/| /' conftest.$ac_ext >&5
8591
8592 ( exit $ac_status )
8593 ac_cv_header_stdc=no
8594 fi
8595 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8596 fi
8597 fi
8598 fi
8599 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8600 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8601 if test $ac_cv_header_stdc = yes; then
8602
8603 cat >>confdefs.h <<\_ACEOF
8604 #define STDC_HEADERS 1
8605 _ACEOF
8606
8607 fi
8608
8609
8610
8611
8612
8613
8614 for ac_header in stdarg.h sys/ioctl.h ioctl.h sysexits.h
8615 do
8616 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8617 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8618   echo "$as_me:$LINENO: checking for $ac_header" >&5
8619 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8621   echo $ECHO_N "(cached) $ECHO_C" >&6
8622 fi
8623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8624 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8625 else
8626   # Is the header compilable?
8627 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8628 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8629 cat >conftest.$ac_ext <<_ACEOF
8630 /* confdefs.h.  */
8631 _ACEOF
8632 cat confdefs.h >>conftest.$ac_ext
8633 cat >>conftest.$ac_ext <<_ACEOF
8634 /* end confdefs.h.  */
8635 $ac_includes_default
8636 #include <$ac_header>
8637 _ACEOF
8638 rm -f conftest.$ac_objext
8639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8640   (eval $ac_compile) 2>conftest.er1
8641   ac_status=$?
8642   grep -v '^ *+' conftest.er1 >conftest.err
8643   rm -f conftest.er1
8644   cat conftest.err >&5
8645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8646   (exit $ac_status); } &&
8647          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8648   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8649   (eval $ac_try) 2>&5
8650   ac_status=$?
8651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652   (exit $ac_status); }; } &&
8653          { ac_try='test -s conftest.$ac_objext'
8654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8655   (eval $ac_try) 2>&5
8656   ac_status=$?
8657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658   (exit $ac_status); }; }; then
8659   ac_header_compiler=yes
8660 else
8661   echo "$as_me: failed program was:" >&5
8662 sed 's/^/| /' conftest.$ac_ext >&5
8663
8664 ac_header_compiler=no
8665 fi
8666 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8667 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8668 echo "${ECHO_T}$ac_header_compiler" >&6
8669
8670 # Is the header present?
8671 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8673 cat >conftest.$ac_ext <<_ACEOF
8674 /* confdefs.h.  */
8675 _ACEOF
8676 cat confdefs.h >>conftest.$ac_ext
8677 cat >>conftest.$ac_ext <<_ACEOF
8678 /* end confdefs.h.  */
8679 #include <$ac_header>
8680 _ACEOF
8681 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8682   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8683   ac_status=$?
8684   grep -v '^ *+' conftest.er1 >conftest.err
8685   rm -f conftest.er1
8686   cat conftest.err >&5
8687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688   (exit $ac_status); } >/dev/null; then
8689   if test -s conftest.err; then
8690     ac_cpp_err=$ac_c_preproc_warn_flag
8691     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8692   else
8693     ac_cpp_err=
8694   fi
8695 else
8696   ac_cpp_err=yes
8697 fi
8698 if test -z "$ac_cpp_err"; then
8699   ac_header_preproc=yes
8700 else
8701   echo "$as_me: failed program was:" >&5
8702 sed 's/^/| /' conftest.$ac_ext >&5
8703
8704   ac_header_preproc=no
8705 fi
8706 rm -f conftest.err conftest.$ac_ext
8707 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8708 echo "${ECHO_T}$ac_header_preproc" >&6
8709
8710 # So?  What about this header?
8711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8712   yes:no: )
8713     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8714 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8715     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8716 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8717     ac_header_preproc=yes
8718     ;;
8719   no:yes:* )
8720     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8721 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8722     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8723 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8724     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8725 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8726     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8727 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8728     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8730     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8731 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8732     (
8733       cat <<\_ASBOX
8734 ## ------------------------------------------ ##
8735 ## Report this to the AC_PACKAGE_NAME lists.  ##
8736 ## ------------------------------------------ ##
8737 _ASBOX
8738     ) |
8739       sed "s/^/$as_me: WARNING:     /" >&2
8740     ;;
8741 esac
8742 echo "$as_me:$LINENO: checking for $ac_header" >&5
8743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8745   echo $ECHO_N "(cached) $ECHO_C" >&6
8746 else
8747   eval "$as_ac_Header=\$ac_header_preproc"
8748 fi
8749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8750 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8751
8752 fi
8753 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8754   cat >>confdefs.h <<_ACEOF
8755 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8756 _ACEOF
8757
8758 fi
8759
8760 done
8761
8762
8763
8764 for ac_header in sys/time.h sys/resource.h
8765 do
8766 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8767 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8768   echo "$as_me:$LINENO: checking for $ac_header" >&5
8769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8771   echo $ECHO_N "(cached) $ECHO_C" >&6
8772 fi
8773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8775 else
8776   # Is the header compilable?
8777 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8778 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8779 cat >conftest.$ac_ext <<_ACEOF
8780 /* confdefs.h.  */
8781 _ACEOF
8782 cat confdefs.h >>conftest.$ac_ext
8783 cat >>conftest.$ac_ext <<_ACEOF
8784 /* end confdefs.h.  */
8785 $ac_includes_default
8786 #include <$ac_header>
8787 _ACEOF
8788 rm -f conftest.$ac_objext
8789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8790   (eval $ac_compile) 2>conftest.er1
8791   ac_status=$?
8792   grep -v '^ *+' conftest.er1 >conftest.err
8793   rm -f conftest.er1
8794   cat conftest.err >&5
8795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796   (exit $ac_status); } &&
8797          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8799   (eval $ac_try) 2>&5
8800   ac_status=$?
8801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802   (exit $ac_status); }; } &&
8803          { ac_try='test -s conftest.$ac_objext'
8804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8805   (eval $ac_try) 2>&5
8806   ac_status=$?
8807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808   (exit $ac_status); }; }; then
8809   ac_header_compiler=yes
8810 else
8811   echo "$as_me: failed program was:" >&5
8812 sed 's/^/| /' conftest.$ac_ext >&5
8813
8814 ac_header_compiler=no
8815 fi
8816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8817 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8818 echo "${ECHO_T}$ac_header_compiler" >&6
8819
8820 # Is the header present?
8821 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8822 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8823 cat >conftest.$ac_ext <<_ACEOF
8824 /* confdefs.h.  */
8825 _ACEOF
8826 cat confdefs.h >>conftest.$ac_ext
8827 cat >>conftest.$ac_ext <<_ACEOF
8828 /* end confdefs.h.  */
8829 #include <$ac_header>
8830 _ACEOF
8831 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8832   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8833   ac_status=$?
8834   grep -v '^ *+' conftest.er1 >conftest.err
8835   rm -f conftest.er1
8836   cat conftest.err >&5
8837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838   (exit $ac_status); } >/dev/null; then
8839   if test -s conftest.err; then
8840     ac_cpp_err=$ac_c_preproc_warn_flag
8841     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8842   else
8843     ac_cpp_err=
8844   fi
8845 else
8846   ac_cpp_err=yes
8847 fi
8848 if test -z "$ac_cpp_err"; then
8849   ac_header_preproc=yes
8850 else
8851   echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8853
8854   ac_header_preproc=no
8855 fi
8856 rm -f conftest.err conftest.$ac_ext
8857 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8858 echo "${ECHO_T}$ac_header_preproc" >&6
8859
8860 # So?  What about this header?
8861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8862   yes:no: )
8863     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8864 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8865     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8866 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8867     ac_header_preproc=yes
8868     ;;
8869   no:yes:* )
8870     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8871 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8872     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8873 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8874     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8875 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8876     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8877 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8878     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8879 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8880     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8881 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8882     (
8883       cat <<\_ASBOX
8884 ## ------------------------------------------ ##
8885 ## Report this to the AC_PACKAGE_NAME lists.  ##
8886 ## ------------------------------------------ ##
8887 _ASBOX
8888     ) |
8889       sed "s/^/$as_me: WARNING:     /" >&2
8890     ;;
8891 esac
8892 echo "$as_me:$LINENO: checking for $ac_header" >&5
8893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8894 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8895   echo $ECHO_N "(cached) $ECHO_C" >&6
8896 else
8897   eval "$as_ac_Header=\$ac_header_preproc"
8898 fi
8899 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8900 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8901
8902 fi
8903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8904   cat >>confdefs.h <<_ACEOF
8905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8906 _ACEOF
8907
8908 fi
8909
8910 done
8911
8912
8913 for ac_header in unix.h
8914 do
8915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8917   echo "$as_me:$LINENO: checking for $ac_header" >&5
8918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8919 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8920   echo $ECHO_N "(cached) $ECHO_C" >&6
8921 fi
8922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8923 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8924 else
8925   # Is the header compilable?
8926 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8927 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8928 cat >conftest.$ac_ext <<_ACEOF
8929 /* confdefs.h.  */
8930 _ACEOF
8931 cat confdefs.h >>conftest.$ac_ext
8932 cat >>conftest.$ac_ext <<_ACEOF
8933 /* end confdefs.h.  */
8934 $ac_includes_default
8935 #include <$ac_header>
8936 _ACEOF
8937 rm -f conftest.$ac_objext
8938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8939   (eval $ac_compile) 2>conftest.er1
8940   ac_status=$?
8941   grep -v '^ *+' conftest.er1 >conftest.err
8942   rm -f conftest.er1
8943   cat conftest.err >&5
8944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945   (exit $ac_status); } &&
8946          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
8947   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8948   (eval $ac_try) 2>&5
8949   ac_status=$?
8950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951   (exit $ac_status); }; } &&
8952          { ac_try='test -s conftest.$ac_objext'
8953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8954   (eval $ac_try) 2>&5
8955   ac_status=$?
8956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957   (exit $ac_status); }; }; then
8958   ac_header_compiler=yes
8959 else
8960   echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.$ac_ext >&5
8962
8963 ac_header_compiler=no
8964 fi
8965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8966 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8967 echo "${ECHO_T}$ac_header_compiler" >&6
8968
8969 # Is the header present?
8970 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8972 cat >conftest.$ac_ext <<_ACEOF
8973 /* confdefs.h.  */
8974 _ACEOF
8975 cat confdefs.h >>conftest.$ac_ext
8976 cat >>conftest.$ac_ext <<_ACEOF
8977 /* end confdefs.h.  */
8978 #include <$ac_header>
8979 _ACEOF
8980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8981   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8982   ac_status=$?
8983   grep -v '^ *+' conftest.er1 >conftest.err
8984   rm -f conftest.er1
8985   cat conftest.err >&5
8986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987   (exit $ac_status); } >/dev/null; then
8988   if test -s conftest.err; then
8989     ac_cpp_err=$ac_c_preproc_warn_flag
8990     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8991   else
8992     ac_cpp_err=
8993   fi
8994 else
8995   ac_cpp_err=yes
8996 fi
8997 if test -z "$ac_cpp_err"; then
8998   ac_header_preproc=yes
8999 else
9000   echo "$as_me: failed program was:" >&5
9001 sed 's/^/| /' conftest.$ac_ext >&5
9002
9003   ac_header_preproc=no
9004 fi
9005 rm -f conftest.err conftest.$ac_ext
9006 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9007 echo "${ECHO_T}$ac_header_preproc" >&6
9008
9009 # So?  What about this header?
9010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9011   yes:no: )
9012     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9013 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9014     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9015 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9016     ac_header_preproc=yes
9017     ;;
9018   no:yes:* )
9019     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9020 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9021     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9022 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9023     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9024 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9025     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9026 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9027     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9028 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9029     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9030 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9031     (
9032       cat <<\_ASBOX
9033 ## ------------------------------------------ ##
9034 ## Report this to the AC_PACKAGE_NAME lists.  ##
9035 ## ------------------------------------------ ##
9036 _ASBOX
9037     ) |
9038       sed "s/^/$as_me: WARNING:     /" >&2
9039     ;;
9040 esac
9041 echo "$as_me:$LINENO: checking for $ac_header" >&5
9042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9044   echo $ECHO_N "(cached) $ECHO_C" >&6
9045 else
9046   eval "$as_ac_Header=\$ac_header_preproc"
9047 fi
9048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9050
9051 fi
9052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9053   cat >>confdefs.h <<_ACEOF
9054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9055 _ACEOF
9056
9057 fi
9058
9059 done
9060
9061
9062
9063
9064
9065 for ac_func in setrlimit getsid isctype
9066 do
9067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9068 echo "$as_me:$LINENO: checking for $ac_func" >&5
9069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9070 if eval "test \"\${$as_ac_var+set}\" = set"; then
9071   echo $ECHO_N "(cached) $ECHO_C" >&6
9072 else
9073   cat >conftest.$ac_ext <<_ACEOF
9074 /* confdefs.h.  */
9075 _ACEOF
9076 cat confdefs.h >>conftest.$ac_ext
9077 cat >>conftest.$ac_ext <<_ACEOF
9078 /* end confdefs.h.  */
9079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9080    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9081 #define $ac_func innocuous_$ac_func
9082
9083 /* System header to define __stub macros and hopefully few prototypes,
9084     which can conflict with char $ac_func (); below.
9085     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9086     <limits.h> exists even on freestanding compilers.  */
9087
9088 #ifdef __STDC__
9089 # include <limits.h>
9090 #else
9091 # include <assert.h>
9092 #endif
9093
9094 #undef $ac_func
9095
9096 /* Override any gcc2 internal prototype to avoid an error.  */
9097 #ifdef __cplusplus
9098 extern "C"
9099 {
9100 #endif
9101 /* We use char because int might match the return type of a gcc2
9102    builtin and then its argument prototype would still apply.  */
9103 char $ac_func ();
9104 /* The GNU C library defines this for functions which it implements
9105     to always fail with ENOSYS.  Some functions are actually named
9106     something starting with __ and the normal name is an alias.  */
9107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9108 choke me
9109 #else
9110 char (*f) () = $ac_func;
9111 #endif
9112 #ifdef __cplusplus
9113 }
9114 #endif
9115
9116 int
9117 main ()
9118 {
9119 return f != $ac_func;
9120   ;
9121   return 0;
9122 }
9123 _ACEOF
9124 rm -f conftest.$ac_objext conftest$ac_exeext
9125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9126   (eval $ac_link) 2>conftest.er1
9127   ac_status=$?
9128   grep -v '^ *+' conftest.er1 >conftest.err
9129   rm -f conftest.er1
9130   cat conftest.err >&5
9131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132   (exit $ac_status); } &&
9133          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9134   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9135   (eval $ac_try) 2>&5
9136   ac_status=$?
9137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138   (exit $ac_status); }; } &&
9139          { ac_try='test -s conftest$ac_exeext'
9140   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9141   (eval $ac_try) 2>&5
9142   ac_status=$?
9143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144   (exit $ac_status); }; }; then
9145   eval "$as_ac_var=yes"
9146 else
9147   echo "$as_me: failed program was:" >&5
9148 sed 's/^/| /' conftest.$ac_ext >&5
9149
9150 eval "$as_ac_var=no"
9151 fi
9152 rm -f conftest.err conftest.$ac_objext \
9153       conftest$ac_exeext conftest.$ac_ext
9154 fi
9155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9156 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9157 if test `eval echo '${'$as_ac_var'}'` = yes; then
9158   cat >>confdefs.h <<_ACEOF
9159 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9160 _ACEOF
9161
9162 fi
9163 done
9164
9165
9166 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9167 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9168 if test "${ac_cv_type_signal+set}" = set; then
9169   echo $ECHO_N "(cached) $ECHO_C" >&6
9170 else
9171   cat >conftest.$ac_ext <<_ACEOF
9172 /* confdefs.h.  */
9173 _ACEOF
9174 cat confdefs.h >>conftest.$ac_ext
9175 cat >>conftest.$ac_ext <<_ACEOF
9176 /* end confdefs.h.  */
9177 #include <sys/types.h>
9178 #include <signal.h>
9179 #ifdef signal
9180 # undef signal
9181 #endif
9182 #ifdef __cplusplus
9183 extern "C" void (*signal (int, void (*)(int)))(int);
9184 #else
9185 void (*signal ()) ();
9186 #endif
9187
9188 int
9189 main ()
9190 {
9191 int i;
9192   ;
9193   return 0;
9194 }
9195 _ACEOF
9196 rm -f conftest.$ac_objext
9197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9198   (eval $ac_compile) 2>conftest.er1
9199   ac_status=$?
9200   grep -v '^ *+' conftest.er1 >conftest.err
9201   rm -f conftest.er1
9202   cat conftest.err >&5
9203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204   (exit $ac_status); } &&
9205          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9207   (eval $ac_try) 2>&5
9208   ac_status=$?
9209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210   (exit $ac_status); }; } &&
9211          { ac_try='test -s conftest.$ac_objext'
9212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9213   (eval $ac_try) 2>&5
9214   ac_status=$?
9215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216   (exit $ac_status); }; }; then
9217   ac_cv_type_signal=void
9218 else
9219   echo "$as_me: failed program was:" >&5
9220 sed 's/^/| /' conftest.$ac_ext >&5
9221
9222 ac_cv_type_signal=int
9223 fi
9224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9225 fi
9226 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9227 echo "${ECHO_T}$ac_cv_type_signal" >&6
9228
9229 cat >>confdefs.h <<_ACEOF
9230 #define RETSIGTYPE $ac_cv_type_signal
9231 _ACEOF
9232
9233
9234
9235 echo "$as_me:$LINENO: checking for sig_atomic_t in signal.h" >&5
9236 echo $ECHO_N "checking for sig_atomic_t in signal.h... $ECHO_C" >&6
9237 cat >conftest.$ac_ext <<_ACEOF
9238 /* confdefs.h.  */
9239 _ACEOF
9240 cat confdefs.h >>conftest.$ac_ext
9241 cat >>conftest.$ac_ext <<_ACEOF
9242 /* end confdefs.h.  */
9243 #include <signal.h>
9244
9245 _ACEOF
9246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9247   $EGREP "sig_atomic_t" >/dev/null 2>&1; then
9248
9249     ac_cv_type_sig_atomic_t=yes;
9250     cat >conftest.$ac_ext <<_ACEOF
9251 /* confdefs.h.  */
9252 _ACEOF
9253 cat confdefs.h >>conftest.$ac_ext
9254 cat >>conftest.$ac_ext <<_ACEOF
9255 /* end confdefs.h.  */
9256 #include <signal.h>
9257
9258 _ACEOF
9259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9260   $EGREP "volatile.*sig_atomic_t" >/dev/null 2>&1; then
9261
9262                         is_sig_atomic_t_volatile=yes;
9263                         echo "$as_me:$LINENO: result: yes, volatile" >&5
9264 echo "${ECHO_T}yes, volatile" >&6
9265
9266 else
9267
9268                         is_sig_atomic_t_volatile=no;
9269                         echo "$as_me:$LINENO: result: yes, non volatile" >&5
9270 echo "${ECHO_T}yes, non volatile" >&6
9271
9272 fi
9273 rm -f conftest*
9274
9275
9276 else
9277
9278     echo "$as_me:$LINENO: result: no" >&5
9279 echo "${ECHO_T}no" >&6
9280     echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
9281 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
9282 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
9283   echo $ECHO_N "(cached) $ECHO_C" >&6
9284 else
9285   cat >conftest.$ac_ext <<_ACEOF
9286 /* confdefs.h.  */
9287 _ACEOF
9288 cat confdefs.h >>conftest.$ac_ext
9289 cat >>conftest.$ac_ext <<_ACEOF
9290 /* end confdefs.h.  */
9291 $ac_includes_default
9292 int
9293 main ()
9294 {
9295 if ((sig_atomic_t *) 0)
9296   return 0;
9297 if (sizeof (sig_atomic_t))
9298   return 0;
9299   ;
9300   return 0;
9301 }
9302 _ACEOF
9303 rm -f conftest.$ac_objext
9304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9305   (eval $ac_compile) 2>conftest.er1
9306   ac_status=$?
9307   grep -v '^ *+' conftest.er1 >conftest.err
9308   rm -f conftest.er1
9309   cat conftest.err >&5
9310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9311   (exit $ac_status); } &&
9312          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9313   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9314   (eval $ac_try) 2>&5
9315   ac_status=$?
9316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317   (exit $ac_status); }; } &&
9318          { ac_try='test -s conftest.$ac_objext'
9319   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320   (eval $ac_try) 2>&5
9321   ac_status=$?
9322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323   (exit $ac_status); }; }; then
9324   ac_cv_type_sig_atomic_t=yes
9325 else
9326   echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9328
9329 ac_cv_type_sig_atomic_t=no
9330 fi
9331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9332 fi
9333 echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
9334 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6
9335 if test $ac_cv_type_sig_atomic_t = yes; then
9336   :
9337 else
9338
9339 cat >>confdefs.h <<_ACEOF
9340 #define sig_atomic_t int
9341 _ACEOF
9342
9343 fi
9344
9345     is_sig_atomic_t_volatile=no
9346
9347 fi
9348 rm -f conftest*
9349
9350 if test $is_sig_atomic_t_volatile = 'yes'
9351 then
9352     cat >>confdefs.h <<\_ACEOF
9353 #define SIG_ATOMIC_VOLATILE_T sig_atomic_t
9354 _ACEOF
9355
9356 else
9357     cat >>confdefs.h <<\_ACEOF
9358 #define SIG_ATOMIC_VOLATILE_T volatile sig_atomic_t
9359 _ACEOF
9360
9361 fi
9362
9363 echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
9364 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6
9365 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
9366   echo $ECHO_N "(cached) $ECHO_C" >&6
9367 else
9368   cat >conftest.$ac_ext <<_ACEOF
9369 /* confdefs.h.  */
9370 _ACEOF
9371 cat confdefs.h >>conftest.$ac_ext
9372 cat >>conftest.$ac_ext <<_ACEOF
9373 /* end confdefs.h.  */
9374 #include <signal.h>
9375 /* NetBSD declares sys_siglist in unistd.h.  */
9376 #if HAVE_UNISTD_H
9377 # include <unistd.h>
9378 #endif
9379
9380
9381 int
9382 main ()
9383 {
9384 #ifndef sys_siglist
9385   char *p = (char *) sys_siglist;
9386 #endif
9387
9388   ;
9389   return 0;
9390 }
9391 _ACEOF
9392 rm -f conftest.$ac_objext
9393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9394   (eval $ac_compile) 2>conftest.er1
9395   ac_status=$?
9396   grep -v '^ *+' conftest.er1 >conftest.err
9397   rm -f conftest.er1
9398   cat conftest.err >&5
9399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400   (exit $ac_status); } &&
9401          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9402   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9403   (eval $ac_try) 2>&5
9404   ac_status=$?
9405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406   (exit $ac_status); }; } &&
9407          { ac_try='test -s conftest.$ac_objext'
9408   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9409   (eval $ac_try) 2>&5
9410   ac_status=$?
9411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412   (exit $ac_status); }; }; then
9413   ac_cv_have_decl_sys_siglist=yes
9414 else
9415   echo "$as_me: failed program was:" >&5
9416 sed 's/^/| /' conftest.$ac_ext >&5
9417
9418 ac_cv_have_decl_sys_siglist=no
9419 fi
9420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9421 fi
9422 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
9423 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6
9424 if test $ac_cv_have_decl_sys_siglist = yes; then
9425
9426 cat >>confdefs.h <<_ACEOF
9427 #define HAVE_DECL_SYS_SIGLIST 1
9428 _ACEOF
9429
9430
9431 else
9432   cat >>confdefs.h <<_ACEOF
9433 #define HAVE_DECL_SYS_SIGLIST 0
9434 _ACEOF
9435
9436
9437 fi
9438
9439
9440
9441
9442 echo "$as_me:$LINENO: checking for pid_t" >&5
9443 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
9444 if test "${ac_cv_type_pid_t+set}" = set; then
9445   echo $ECHO_N "(cached) $ECHO_C" >&6
9446 else
9447   cat >conftest.$ac_ext <<_ACEOF
9448 /* confdefs.h.  */
9449 _ACEOF
9450 cat confdefs.h >>conftest.$ac_ext
9451 cat >>conftest.$ac_ext <<_ACEOF
9452 /* end confdefs.h.  */
9453 $ac_includes_default
9454 int
9455 main ()
9456 {
9457 if ((pid_t *) 0)
9458   return 0;
9459 if (sizeof (pid_t))
9460   return 0;
9461   ;
9462   return 0;
9463 }
9464 _ACEOF
9465 rm -f conftest.$ac_objext
9466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9467   (eval $ac_compile) 2>conftest.er1
9468   ac_status=$?
9469   grep -v '^ *+' conftest.er1 >conftest.err
9470   rm -f conftest.er1
9471   cat conftest.err >&5
9472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473   (exit $ac_status); } &&
9474          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9476   (eval $ac_try) 2>&5
9477   ac_status=$?
9478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479   (exit $ac_status); }; } &&
9480          { ac_try='test -s conftest.$ac_objext'
9481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9482   (eval $ac_try) 2>&5
9483   ac_status=$?
9484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485   (exit $ac_status); }; }; then
9486   ac_cv_type_pid_t=yes
9487 else
9488   echo "$as_me: failed program was:" >&5
9489 sed 's/^/| /' conftest.$ac_ext >&5
9490
9491 ac_cv_type_pid_t=no
9492 fi
9493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9494 fi
9495 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
9496 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
9497 if test $ac_cv_type_pid_t = yes; then
9498   :
9499 else
9500
9501 cat >>confdefs.h <<_ACEOF
9502 #define pid_t int
9503 _ACEOF
9504
9505 fi
9506
9507
9508
9509
9510
9511
9512
9513 for ac_func in fgetpos memmove setegid srand48 strerror
9514 do
9515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9516 echo "$as_me:$LINENO: checking for $ac_func" >&5
9517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9518 if eval "test \"\${$as_ac_var+set}\" = set"; then
9519   echo $ECHO_N "(cached) $ECHO_C" >&6
9520 else
9521   cat >conftest.$ac_ext <<_ACEOF
9522 /* confdefs.h.  */
9523 _ACEOF
9524 cat confdefs.h >>conftest.$ac_ext
9525 cat >>conftest.$ac_ext <<_ACEOF
9526 /* end confdefs.h.  */
9527 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9528    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9529 #define $ac_func innocuous_$ac_func
9530
9531 /* System header to define __stub macros and hopefully few prototypes,
9532     which can conflict with char $ac_func (); below.
9533     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9534     <limits.h> exists even on freestanding compilers.  */
9535
9536 #ifdef __STDC__
9537 # include <limits.h>
9538 #else
9539 # include <assert.h>
9540 #endif
9541
9542 #undef $ac_func
9543
9544 /* Override any gcc2 internal prototype to avoid an error.  */
9545 #ifdef __cplusplus
9546 extern "C"
9547 {
9548 #endif
9549 /* We use char because int might match the return type of a gcc2
9550    builtin and then its argument prototype would still apply.  */
9551 char $ac_func ();
9552 /* The GNU C library defines this for functions which it implements
9553     to always fail with ENOSYS.  Some functions are actually named
9554     something starting with __ and the normal name is an alias.  */
9555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9556 choke me
9557 #else
9558 char (*f) () = $ac_func;
9559 #endif
9560 #ifdef __cplusplus
9561 }
9562 #endif
9563
9564 int
9565 main ()
9566 {
9567 return f != $ac_func;
9568   ;
9569   return 0;
9570 }
9571 _ACEOF
9572 rm -f conftest.$ac_objext conftest$ac_exeext
9573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9574   (eval $ac_link) 2>conftest.er1
9575   ac_status=$?
9576   grep -v '^ *+' conftest.er1 >conftest.err
9577   rm -f conftest.er1
9578   cat conftest.err >&5
9579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9580   (exit $ac_status); } &&
9581          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9583   (eval $ac_try) 2>&5
9584   ac_status=$?
9585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586   (exit $ac_status); }; } &&
9587          { ac_try='test -s conftest$ac_exeext'
9588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9589   (eval $ac_try) 2>&5
9590   ac_status=$?
9591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592   (exit $ac_status); }; }; then
9593   eval "$as_ac_var=yes"
9594 else
9595   echo "$as_me: failed program was:" >&5
9596 sed 's/^/| /' conftest.$ac_ext >&5
9597
9598 eval "$as_ac_var=no"
9599 fi
9600 rm -f conftest.err conftest.$ac_objext \
9601       conftest$ac_exeext conftest.$ac_ext
9602 fi
9603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9604 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9605 if test `eval echo '${'$as_ac_var'}'` = yes; then
9606   cat >>confdefs.h <<_ACEOF
9607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9608 _ACEOF
9609
9610 fi
9611 done
9612
9613
9614
9615
9616 for ac_func in strcasecmp strdup
9617 do
9618 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9619 echo "$as_me:$LINENO: checking for $ac_func" >&5
9620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9621 if eval "test \"\${$as_ac_var+set}\" = set"; then
9622   echo $ECHO_N "(cached) $ECHO_C" >&6
9623 else
9624   cat >conftest.$ac_ext <<_ACEOF
9625 /* confdefs.h.  */
9626 _ACEOF
9627 cat confdefs.h >>conftest.$ac_ext
9628 cat >>conftest.$ac_ext <<_ACEOF
9629 /* end confdefs.h.  */
9630 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9631    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9632 #define $ac_func innocuous_$ac_func
9633
9634 /* System header to define __stub macros and hopefully few prototypes,
9635     which can conflict with char $ac_func (); below.
9636     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9637     <limits.h> exists even on freestanding compilers.  */
9638
9639 #ifdef __STDC__
9640 # include <limits.h>
9641 #else
9642 # include <assert.h>
9643 #endif
9644
9645 #undef $ac_func
9646
9647 /* Override any gcc2 internal prototype to avoid an error.  */
9648 #ifdef __cplusplus
9649 extern "C"
9650 {
9651 #endif
9652 /* We use char because int might match the return type of a gcc2
9653    builtin and then its argument prototype would still apply.  */
9654 char $ac_func ();
9655 /* The GNU C library defines this for functions which it implements
9656     to always fail with ENOSYS.  Some functions are actually named
9657     something starting with __ and the normal name is an alias.  */
9658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9659 choke me
9660 #else
9661 char (*f) () = $ac_func;
9662 #endif
9663 #ifdef __cplusplus
9664 }
9665 #endif
9666
9667 int
9668 main ()
9669 {
9670 return f != $ac_func;
9671   ;
9672   return 0;
9673 }
9674 _ACEOF
9675 rm -f conftest.$ac_objext conftest$ac_exeext
9676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9677   (eval $ac_link) 2>conftest.er1
9678   ac_status=$?
9679   grep -v '^ *+' conftest.er1 >conftest.err
9680   rm -f conftest.er1
9681   cat conftest.err >&5
9682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683   (exit $ac_status); } &&
9684          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9686   (eval $ac_try) 2>&5
9687   ac_status=$?
9688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689   (exit $ac_status); }; } &&
9690          { ac_try='test -s conftest$ac_exeext'
9691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9692   (eval $ac_try) 2>&5
9693   ac_status=$?
9694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9695   (exit $ac_status); }; }; then
9696   eval "$as_ac_var=yes"
9697 else
9698   echo "$as_me: failed program was:" >&5
9699 sed 's/^/| /' conftest.$ac_ext >&5
9700
9701 eval "$as_ac_var=no"
9702 fi
9703 rm -f conftest.err conftest.$ac_objext \
9704       conftest$ac_exeext conftest.$ac_ext
9705 fi
9706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9707 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9708 if test `eval echo '${'$as_ac_var'}'` = yes; then
9709   cat >>confdefs.h <<_ACEOF
9710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9711 _ACEOF
9712
9713 else
9714   case $LIBOBJS in
9715     "$ac_func.$ac_objext"   | \
9716   *" $ac_func.$ac_objext"   | \
9717     "$ac_func.$ac_objext "* | \
9718   *" $ac_func.$ac_objext "* ) ;;
9719   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
9720 esac
9721
9722 fi
9723 done
9724
9725
9726
9727 echo "$as_me:$LINENO: checking for getopt" >&5
9728 echo $ECHO_N "checking for getopt... $ECHO_C" >&6
9729 if test "${ac_cv_func_getopt+set}" = set; then
9730   echo $ECHO_N "(cached) $ECHO_C" >&6
9731 else
9732   cat >conftest.$ac_ext <<_ACEOF
9733 /* confdefs.h.  */
9734 _ACEOF
9735 cat confdefs.h >>conftest.$ac_ext
9736 cat >>conftest.$ac_ext <<_ACEOF
9737 /* end confdefs.h.  */
9738 /* Define getopt to an innocuous variant, in case <limits.h> declares getopt.
9739    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9740 #define getopt innocuous_getopt
9741
9742 /* System header to define __stub macros and hopefully few prototypes,
9743     which can conflict with char getopt (); below.
9744     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9745     <limits.h> exists even on freestanding compilers.  */
9746
9747 #ifdef __STDC__
9748 # include <limits.h>
9749 #else
9750 # include <assert.h>
9751 #endif
9752
9753 #undef getopt
9754
9755 /* Override any gcc2 internal prototype to avoid an error.  */
9756 #ifdef __cplusplus
9757 extern "C"
9758 {
9759 #endif
9760 /* We use char because int might match the return type of a gcc2
9761    builtin and then its argument prototype would still apply.  */
9762 char getopt ();
9763 /* The GNU C library defines this for functions which it implements
9764     to always fail with ENOSYS.  Some functions are actually named
9765     something starting with __ and the normal name is an alias.  */
9766 #if defined (__stub_getopt) || defined (__stub___getopt)
9767 choke me
9768 #else
9769 char (*f) () = getopt;
9770 #endif
9771 #ifdef __cplusplus
9772 }
9773 #endif
9774
9775 int
9776 main ()
9777 {
9778 return f != getopt;
9779   ;
9780   return 0;
9781 }
9782 _ACEOF
9783 rm -f conftest.$ac_objext conftest$ac_exeext
9784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9785   (eval $ac_link) 2>conftest.er1
9786   ac_status=$?
9787   grep -v '^ *+' conftest.er1 >conftest.err
9788   rm -f conftest.er1
9789   cat conftest.err >&5
9790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791   (exit $ac_status); } &&
9792          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9793   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9794   (eval $ac_try) 2>&5
9795   ac_status=$?
9796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797   (exit $ac_status); }; } &&
9798          { ac_try='test -s conftest$ac_exeext'
9799   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9800   (eval $ac_try) 2>&5
9801   ac_status=$?
9802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9803   (exit $ac_status); }; }; then
9804   ac_cv_func_getopt=yes
9805 else
9806   echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.$ac_ext >&5
9808
9809 ac_cv_func_getopt=no
9810 fi
9811 rm -f conftest.err conftest.$ac_objext \
9812       conftest$ac_exeext conftest.$ac_ext
9813 fi
9814 echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
9815 echo "${ECHO_T}$ac_cv_func_getopt" >&6
9816
9817 if test $ac_cv_func_getopt = yes; then
9818
9819 for ac_header in getopt.h
9820 do
9821 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9822 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9823   echo "$as_me:$LINENO: checking for $ac_header" >&5
9824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9825 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9826   echo $ECHO_N "(cached) $ECHO_C" >&6
9827 fi
9828 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9829 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9830 else
9831   # Is the header compilable?
9832 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9833 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9834 cat >conftest.$ac_ext <<_ACEOF
9835 /* confdefs.h.  */
9836 _ACEOF
9837 cat confdefs.h >>conftest.$ac_ext
9838 cat >>conftest.$ac_ext <<_ACEOF
9839 /* end confdefs.h.  */
9840 $ac_includes_default
9841 #include <$ac_header>
9842 _ACEOF
9843 rm -f conftest.$ac_objext
9844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9845   (eval $ac_compile) 2>conftest.er1
9846   ac_status=$?
9847   grep -v '^ *+' conftest.er1 >conftest.err
9848   rm -f conftest.er1
9849   cat conftest.err >&5
9850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851   (exit $ac_status); } &&
9852          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
9853   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9854   (eval $ac_try) 2>&5
9855   ac_status=$?
9856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857   (exit $ac_status); }; } &&
9858          { ac_try='test -s conftest.$ac_objext'
9859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9860   (eval $ac_try) 2>&5
9861   ac_status=$?
9862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863   (exit $ac_status); }; }; then
9864   ac_header_compiler=yes
9865 else
9866   echo "$as_me: failed program was:" >&5
9867 sed 's/^/| /' conftest.$ac_ext >&5
9868
9869 ac_header_compiler=no
9870 fi
9871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9872 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9873 echo "${ECHO_T}$ac_header_compiler" >&6
9874
9875 # Is the header present?
9876 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9877 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9878 cat >conftest.$ac_ext <<_ACEOF
9879 /* confdefs.h.  */
9880 _ACEOF
9881 cat confdefs.h >>conftest.$ac_ext
9882 cat >>conftest.$ac_ext <<_ACEOF
9883 /* end confdefs.h.  */
9884 #include <$ac_header>
9885 _ACEOF
9886 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9887   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9888   ac_status=$?
9889   grep -v '^ *+' conftest.er1 >conftest.err
9890   rm -f conftest.er1
9891   cat conftest.err >&5
9892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9893   (exit $ac_status); } >/dev/null; then
9894   if test -s conftest.err; then
9895     ac_cpp_err=$ac_c_preproc_warn_flag
9896     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9897   else
9898     ac_cpp_err=
9899   fi
9900 else
9901   ac_cpp_err=yes
9902 fi
9903 if test -z "$ac_cpp_err"; then
9904   ac_header_preproc=yes
9905 else
9906   echo "$as_me: failed program was:" >&5
9907 sed 's/^/| /' conftest.$ac_ext >&5
9908
9909   ac_header_preproc=no
9910 fi
9911 rm -f conftest.err conftest.$ac_ext
9912 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9913 echo "${ECHO_T}$ac_header_preproc" >&6
9914
9915 # So?  What about this header?
9916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9917   yes:no: )
9918     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9919 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9920     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9922     ac_header_preproc=yes
9923     ;;
9924   no:yes:* )
9925     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9926 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9927     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9928 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9929     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9930 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9931     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9932 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9933     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9935     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9936 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9937     (
9938       cat <<\_ASBOX
9939 ## ------------------------------------------ ##
9940 ## Report this to the AC_PACKAGE_NAME lists.  ##
9941 ## ------------------------------------------ ##
9942 _ASBOX
9943     ) |
9944       sed "s/^/$as_me: WARNING:     /" >&2
9945     ;;
9946 esac
9947 echo "$as_me:$LINENO: checking for $ac_header" >&5
9948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9949 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9950   echo $ECHO_N "(cached) $ECHO_C" >&6
9951 else
9952   eval "$as_ac_Header=\$ac_header_preproc"
9953 fi
9954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9955 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9956
9957 fi
9958 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9959   cat >>confdefs.h <<_ACEOF
9960 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9961 _ACEOF
9962
9963 fi
9964
9965 done
9966
9967 fi
9968
9969 mutt_cv_snprintf=no
9970 SNPRINTFOBJS=""
9971
9972 for ac_func in snprintf
9973 do
9974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9975 echo "$as_me:$LINENO: checking for $ac_func" >&5
9976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9977 if eval "test \"\${$as_ac_var+set}\" = set"; then
9978   echo $ECHO_N "(cached) $ECHO_C" >&6
9979 else
9980   cat >conftest.$ac_ext <<_ACEOF
9981 /* confdefs.h.  */
9982 _ACEOF
9983 cat confdefs.h >>conftest.$ac_ext
9984 cat >>conftest.$ac_ext <<_ACEOF
9985 /* end confdefs.h.  */
9986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9987    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9988 #define $ac_func innocuous_$ac_func
9989
9990 /* System header to define __stub macros and hopefully few prototypes,
9991     which can conflict with char $ac_func (); below.
9992     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9993     <limits.h> exists even on freestanding compilers.  */
9994
9995 #ifdef __STDC__
9996 # include <limits.h>
9997 #else
9998 # include <assert.h>
9999 #endif
10000
10001 #undef $ac_func
10002
10003 /* Override any gcc2 internal prototype to avoid an error.  */
10004 #ifdef __cplusplus
10005 extern "C"
10006 {
10007 #endif
10008 /* We use char because int might match the return type of a gcc2
10009    builtin and then its argument prototype would still apply.  */
10010 char $ac_func ();
10011 /* The GNU C library defines this for functions which it implements
10012     to always fail with ENOSYS.  Some functions are actually named
10013     something starting with __ and the normal name is an alias.  */
10014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10015 choke me
10016 #else
10017 char (*f) () = $ac_func;
10018 #endif
10019 #ifdef __cplusplus
10020 }
10021 #endif
10022
10023 int
10024 main ()
10025 {
10026 return f != $ac_func;
10027   ;
10028   return 0;
10029 }
10030 _ACEOF
10031 rm -f conftest.$ac_objext conftest$ac_exeext
10032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10033   (eval $ac_link) 2>conftest.er1
10034   ac_status=$?
10035   grep -v '^ *+' conftest.er1 >conftest.err
10036   rm -f conftest.er1
10037   cat conftest.err >&5
10038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10039   (exit $ac_status); } &&
10040          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10041   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10042   (eval $ac_try) 2>&5
10043   ac_status=$?
10044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10045   (exit $ac_status); }; } &&
10046          { ac_try='test -s conftest$ac_exeext'
10047   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10048   (eval $ac_try) 2>&5
10049   ac_status=$?
10050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051   (exit $ac_status); }; }; then
10052   eval "$as_ac_var=yes"
10053 else
10054   echo "$as_me: failed program was:" >&5
10055 sed 's/^/| /' conftest.$ac_ext >&5
10056
10057 eval "$as_ac_var=no"
10058 fi
10059 rm -f conftest.err conftest.$ac_objext \
10060       conftest$ac_exeext conftest.$ac_ext
10061 fi
10062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10063 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10064 if test `eval echo '${'$as_ac_var'}'` = yes; then
10065   cat >>confdefs.h <<_ACEOF
10066 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10067 _ACEOF
10068
10069 else
10070   mutt_cv_snprintf=yes
10071 fi
10072 done
10073
10074
10075 for ac_func in vsnprintf
10076 do
10077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10078 echo "$as_me:$LINENO: checking for $ac_func" >&5
10079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10080 if eval "test \"\${$as_ac_var+set}\" = set"; then
10081   echo $ECHO_N "(cached) $ECHO_C" >&6
10082 else
10083   cat >conftest.$ac_ext <<_ACEOF
10084 /* confdefs.h.  */
10085 _ACEOF
10086 cat confdefs.h >>conftest.$ac_ext
10087 cat >>conftest.$ac_ext <<_ACEOF
10088 /* end confdefs.h.  */
10089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10090    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10091 #define $ac_func innocuous_$ac_func
10092
10093 /* System header to define __stub macros and hopefully few prototypes,
10094     which can conflict with char $ac_func (); below.
10095     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10096     <limits.h> exists even on freestanding compilers.  */
10097
10098 #ifdef __STDC__
10099 # include <limits.h>
10100 #else
10101 # include <assert.h>
10102 #endif
10103
10104 #undef $ac_func
10105
10106 /* Override any gcc2 internal prototype to avoid an error.  */
10107 #ifdef __cplusplus
10108 extern "C"
10109 {
10110 #endif
10111 /* We use char because int might match the return type of a gcc2
10112    builtin and then its argument prototype would still apply.  */
10113 char $ac_func ();
10114 /* The GNU C library defines this for functions which it implements
10115     to always fail with ENOSYS.  Some functions are actually named
10116     something starting with __ and the normal name is an alias.  */
10117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10118 choke me
10119 #else
10120 char (*f) () = $ac_func;
10121 #endif
10122 #ifdef __cplusplus
10123 }
10124 #endif
10125
10126 int
10127 main ()
10128 {
10129 return f != $ac_func;
10130   ;
10131   return 0;
10132 }
10133 _ACEOF
10134 rm -f conftest.$ac_objext conftest$ac_exeext
10135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10136   (eval $ac_link) 2>conftest.er1
10137   ac_status=$?
10138   grep -v '^ *+' conftest.er1 >conftest.err
10139   rm -f conftest.er1
10140   cat conftest.err >&5
10141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142   (exit $ac_status); } &&
10143          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10145   (eval $ac_try) 2>&5
10146   ac_status=$?
10147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148   (exit $ac_status); }; } &&
10149          { ac_try='test -s conftest$ac_exeext'
10150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10151   (eval $ac_try) 2>&5
10152   ac_status=$?
10153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154   (exit $ac_status); }; }; then
10155   eval "$as_ac_var=yes"
10156 else
10157   echo "$as_me: failed program was:" >&5
10158 sed 's/^/| /' conftest.$ac_ext >&5
10159
10160 eval "$as_ac_var=no"
10161 fi
10162 rm -f conftest.err conftest.$ac_objext \
10163       conftest$ac_exeext conftest.$ac_ext
10164 fi
10165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10166 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10167 if test `eval echo '${'$as_ac_var'}'` = yes; then
10168   cat >>confdefs.h <<_ACEOF
10169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10170 _ACEOF
10171
10172 else
10173   mutt_cv_snprintf=yes
10174 fi
10175 done
10176
10177 if test $mutt_cv_snprintf = yes; then
10178         case $LIBOBJS in
10179     "snprintf.$ac_objext"   | \
10180   *" snprintf.$ac_objext"   | \
10181     "snprintf.$ac_objext "* | \
10182   *" snprintf.$ac_objext "* ) ;;
10183   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext" ;;
10184 esac
10185
10186 fi
10187
10188
10189 for ac_func in ftruncate
10190 do
10191 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10192 echo "$as_me:$LINENO: checking for $ac_func" >&5
10193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10194 if eval "test \"\${$as_ac_var+set}\" = set"; then
10195   echo $ECHO_N "(cached) $ECHO_C" >&6
10196 else
10197   cat >conftest.$ac_ext <<_ACEOF
10198 /* confdefs.h.  */
10199 _ACEOF
10200 cat confdefs.h >>conftest.$ac_ext
10201 cat >>conftest.$ac_ext <<_ACEOF
10202 /* end confdefs.h.  */
10203 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10204    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10205 #define $ac_func innocuous_$ac_func
10206
10207 /* System header to define __stub macros and hopefully few prototypes,
10208     which can conflict with char $ac_func (); below.
10209     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10210     <limits.h> exists even on freestanding compilers.  */
10211
10212 #ifdef __STDC__
10213 # include <limits.h>
10214 #else
10215 # include <assert.h>
10216 #endif
10217
10218 #undef $ac_func
10219
10220 /* Override any gcc2 internal prototype to avoid an error.  */
10221 #ifdef __cplusplus
10222 extern "C"
10223 {
10224 #endif
10225 /* We use char because int might match the return type of a gcc2
10226    builtin and then its argument prototype would still apply.  */
10227 char $ac_func ();
10228 /* The GNU C library defines this for functions which it implements
10229     to always fail with ENOSYS.  Some functions are actually named
10230     something starting with __ and the normal name is an alias.  */
10231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10232 choke me
10233 #else
10234 char (*f) () = $ac_func;
10235 #endif
10236 #ifdef __cplusplus
10237 }
10238 #endif
10239
10240 int
10241 main ()
10242 {
10243 return f != $ac_func;
10244   ;
10245   return 0;
10246 }
10247 _ACEOF
10248 rm -f conftest.$ac_objext conftest$ac_exeext
10249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10250   (eval $ac_link) 2>conftest.er1
10251   ac_status=$?
10252   grep -v '^ *+' conftest.er1 >conftest.err
10253   rm -f conftest.er1
10254   cat conftest.err >&5
10255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256   (exit $ac_status); } &&
10257          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10259   (eval $ac_try) 2>&5
10260   ac_status=$?
10261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262   (exit $ac_status); }; } &&
10263          { ac_try='test -s conftest$ac_exeext'
10264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10265   (eval $ac_try) 2>&5
10266   ac_status=$?
10267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268   (exit $ac_status); }; }; then
10269   eval "$as_ac_var=yes"
10270 else
10271   echo "$as_me: failed program was:" >&5
10272 sed 's/^/| /' conftest.$ac_ext >&5
10273
10274 eval "$as_ac_var=no"
10275 fi
10276 rm -f conftest.err conftest.$ac_objext \
10277       conftest$ac_exeext conftest.$ac_ext
10278 fi
10279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10280 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10281 if test `eval echo '${'$as_ac_var'}'` = yes; then
10282   cat >>confdefs.h <<_ACEOF
10283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10284 _ACEOF
10285
10286 else
10287
10288 echo "$as_me:$LINENO: checking for chsize in -lx" >&5
10289 echo $ECHO_N "checking for chsize in -lx... $ECHO_C" >&6
10290 if test "${ac_cv_lib_x_chsize+set}" = set; then
10291   echo $ECHO_N "(cached) $ECHO_C" >&6
10292 else
10293   ac_check_lib_save_LIBS=$LIBS
10294 LIBS="-lx  $LIBS"
10295 cat >conftest.$ac_ext <<_ACEOF
10296 /* confdefs.h.  */
10297 _ACEOF
10298 cat confdefs.h >>conftest.$ac_ext
10299 cat >>conftest.$ac_ext <<_ACEOF
10300 /* end confdefs.h.  */
10301
10302 /* Override any gcc2 internal prototype to avoid an error.  */
10303 #ifdef __cplusplus
10304 extern "C"
10305 #endif
10306 /* We use char because int might match the return type of a gcc2
10307    builtin and then its argument prototype would still apply.  */
10308 char chsize ();
10309 int
10310 main ()
10311 {
10312 chsize ();
10313   ;
10314   return 0;
10315 }
10316 _ACEOF
10317 rm -f conftest.$ac_objext conftest$ac_exeext
10318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10319   (eval $ac_link) 2>conftest.er1
10320   ac_status=$?
10321   grep -v '^ *+' conftest.er1 >conftest.err
10322   rm -f conftest.er1
10323   cat conftest.err >&5
10324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325   (exit $ac_status); } &&
10326          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10328   (eval $ac_try) 2>&5
10329   ac_status=$?
10330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331   (exit $ac_status); }; } &&
10332          { ac_try='test -s conftest$ac_exeext'
10333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10334   (eval $ac_try) 2>&5
10335   ac_status=$?
10336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337   (exit $ac_status); }; }; then
10338   ac_cv_lib_x_chsize=yes
10339 else
10340   echo "$as_me: failed program was:" >&5
10341 sed 's/^/| /' conftest.$ac_ext >&5
10342
10343 ac_cv_lib_x_chsize=no
10344 fi
10345 rm -f conftest.err conftest.$ac_objext \
10346       conftest$ac_exeext conftest.$ac_ext
10347 LIBS=$ac_check_lib_save_LIBS
10348 fi
10349 echo "$as_me:$LINENO: result: $ac_cv_lib_x_chsize" >&5
10350 echo "${ECHO_T}$ac_cv_lib_x_chsize" >&6
10351 if test $ac_cv_lib_x_chsize = yes; then
10352   cat >>confdefs.h <<_ACEOF
10353 #define HAVE_LIBX 1
10354 _ACEOF
10355
10356   LIBS="-lx $LIBS"
10357
10358 fi
10359
10360 fi
10361 done
10362
10363
10364
10365 for ac_func in strftime
10366 do
10367 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10368 echo "$as_me:$LINENO: checking for $ac_func" >&5
10369 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10370 if eval "test \"\${$as_ac_var+set}\" = set"; then
10371   echo $ECHO_N "(cached) $ECHO_C" >&6
10372 else
10373   cat >conftest.$ac_ext <<_ACEOF
10374 /* confdefs.h.  */
10375 _ACEOF
10376 cat confdefs.h >>conftest.$ac_ext
10377 cat >>conftest.$ac_ext <<_ACEOF
10378 /* end confdefs.h.  */
10379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10380    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10381 #define $ac_func innocuous_$ac_func
10382
10383 /* System header to define __stub macros and hopefully few prototypes,
10384     which can conflict with char $ac_func (); below.
10385     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10386     <limits.h> exists even on freestanding compilers.  */
10387
10388 #ifdef __STDC__
10389 # include <limits.h>
10390 #else
10391 # include <assert.h>
10392 #endif
10393
10394 #undef $ac_func
10395
10396 /* Override any gcc2 internal prototype to avoid an error.  */
10397 #ifdef __cplusplus
10398 extern "C"
10399 {
10400 #endif
10401 /* We use char because int might match the return type of a gcc2
10402    builtin and then its argument prototype would still apply.  */
10403 char $ac_func ();
10404 /* The GNU C library defines this for functions which it implements
10405     to always fail with ENOSYS.  Some functions are actually named
10406     something starting with __ and the normal name is an alias.  */
10407 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10408 choke me
10409 #else
10410 char (*f) () = $ac_func;
10411 #endif
10412 #ifdef __cplusplus
10413 }
10414 #endif
10415
10416 int
10417 main ()
10418 {
10419 return f != $ac_func;
10420   ;
10421   return 0;
10422 }
10423 _ACEOF
10424 rm -f conftest.$ac_objext conftest$ac_exeext
10425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10426   (eval $ac_link) 2>conftest.er1
10427   ac_status=$?
10428   grep -v '^ *+' conftest.er1 >conftest.err
10429   rm -f conftest.er1
10430   cat conftest.err >&5
10431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432   (exit $ac_status); } &&
10433          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10435   (eval $ac_try) 2>&5
10436   ac_status=$?
10437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10438   (exit $ac_status); }; } &&
10439          { ac_try='test -s conftest$ac_exeext'
10440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10441   (eval $ac_try) 2>&5
10442   ac_status=$?
10443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444   (exit $ac_status); }; }; then
10445   eval "$as_ac_var=yes"
10446 else
10447   echo "$as_me: failed program was:" >&5
10448 sed 's/^/| /' conftest.$ac_ext >&5
10449
10450 eval "$as_ac_var=no"
10451 fi
10452 rm -f conftest.err conftest.$ac_objext \
10453       conftest$ac_exeext conftest.$ac_ext
10454 fi
10455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10456 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10457 if test `eval echo '${'$as_ac_var'}'` = yes; then
10458   cat >>confdefs.h <<_ACEOF
10459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10460 _ACEOF
10461
10462 else
10463
10464 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
10465 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
10466 if test "${ac_cv_lib_intl_strftime+set}" = set; then
10467   echo $ECHO_N "(cached) $ECHO_C" >&6
10468 else
10469   ac_check_lib_save_LIBS=$LIBS
10470 LIBS="-lintl  $LIBS"
10471 cat >conftest.$ac_ext <<_ACEOF
10472 /* confdefs.h.  */
10473 _ACEOF
10474 cat confdefs.h >>conftest.$ac_ext
10475 cat >>conftest.$ac_ext <<_ACEOF
10476 /* end confdefs.h.  */
10477
10478 /* Override any gcc2 internal prototype to avoid an error.  */
10479 #ifdef __cplusplus
10480 extern "C"
10481 #endif
10482 /* We use char because int might match the return type of a gcc2
10483    builtin and then its argument prototype would still apply.  */
10484 char strftime ();
10485 int
10486 main ()
10487 {
10488 strftime ();
10489   ;
10490   return 0;
10491 }
10492 _ACEOF
10493 rm -f conftest.$ac_objext conftest$ac_exeext
10494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10495   (eval $ac_link) 2>conftest.er1
10496   ac_status=$?
10497   grep -v '^ *+' conftest.er1 >conftest.err
10498   rm -f conftest.er1
10499   cat conftest.err >&5
10500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501   (exit $ac_status); } &&
10502          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10504   (eval $ac_try) 2>&5
10505   ac_status=$?
10506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507   (exit $ac_status); }; } &&
10508          { ac_try='test -s conftest$ac_exeext'
10509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10510   (eval $ac_try) 2>&5
10511   ac_status=$?
10512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513   (exit $ac_status); }; }; then
10514   ac_cv_lib_intl_strftime=yes
10515 else
10516   echo "$as_me: failed program was:" >&5
10517 sed 's/^/| /' conftest.$ac_ext >&5
10518
10519 ac_cv_lib_intl_strftime=no
10520 fi
10521 rm -f conftest.err conftest.$ac_objext \
10522       conftest$ac_exeext conftest.$ac_ext
10523 LIBS=$ac_check_lib_save_LIBS
10524 fi
10525 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
10526 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
10527 if test $ac_cv_lib_intl_strftime = yes; then
10528   cat >>confdefs.h <<_ACEOF
10529 #define HAVE_LIBINTL 1
10530 _ACEOF
10531
10532   LIBS="-lintl $LIBS"
10533
10534 fi
10535
10536 fi
10537 done
10538
10539
10540
10541 for ac_func in fchdir
10542 do
10543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10544 echo "$as_me:$LINENO: checking for $ac_func" >&5
10545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10546 if eval "test \"\${$as_ac_var+set}\" = set"; then
10547   echo $ECHO_N "(cached) $ECHO_C" >&6
10548 else
10549   cat >conftest.$ac_ext <<_ACEOF
10550 /* confdefs.h.  */
10551 _ACEOF
10552 cat confdefs.h >>conftest.$ac_ext
10553 cat >>conftest.$ac_ext <<_ACEOF
10554 /* end confdefs.h.  */
10555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10556    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10557 #define $ac_func innocuous_$ac_func
10558
10559 /* System header to define __stub macros and hopefully few prototypes,
10560     which can conflict with char $ac_func (); below.
10561     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10562     <limits.h> exists even on freestanding compilers.  */
10563
10564 #ifdef __STDC__
10565 # include <limits.h>
10566 #else
10567 # include <assert.h>
10568 #endif
10569
10570 #undef $ac_func
10571
10572 /* Override any gcc2 internal prototype to avoid an error.  */
10573 #ifdef __cplusplus
10574 extern "C"
10575 {
10576 #endif
10577 /* We use char because int might match the return type of a gcc2
10578    builtin and then its argument prototype would still apply.  */
10579 char $ac_func ();
10580 /* The GNU C library defines this for functions which it implements
10581     to always fail with ENOSYS.  Some functions are actually named
10582     something starting with __ and the normal name is an alias.  */
10583 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10584 choke me
10585 #else
10586 char (*f) () = $ac_func;
10587 #endif
10588 #ifdef __cplusplus
10589 }
10590 #endif
10591
10592 int
10593 main ()
10594 {
10595 return f != $ac_func;
10596   ;
10597   return 0;
10598 }
10599 _ACEOF
10600 rm -f conftest.$ac_objext conftest$ac_exeext
10601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10602   (eval $ac_link) 2>conftest.er1
10603   ac_status=$?
10604   grep -v '^ *+' conftest.er1 >conftest.err
10605   rm -f conftest.er1
10606   cat conftest.err >&5
10607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10608   (exit $ac_status); } &&
10609          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10610   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10611   (eval $ac_try) 2>&5
10612   ac_status=$?
10613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614   (exit $ac_status); }; } &&
10615          { ac_try='test -s conftest$ac_exeext'
10616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10617   (eval $ac_try) 2>&5
10618   ac_status=$?
10619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620   (exit $ac_status); }; }; then
10621   eval "$as_ac_var=yes"
10622 else
10623   echo "$as_me: failed program was:" >&5
10624 sed 's/^/| /' conftest.$ac_ext >&5
10625
10626 eval "$as_ac_var=no"
10627 fi
10628 rm -f conftest.err conftest.$ac_objext \
10629       conftest$ac_exeext conftest.$ac_ext
10630 fi
10631 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10632 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10633 if test `eval echo '${'$as_ac_var'}'` = yes; then
10634   cat >>confdefs.h <<_ACEOF
10635 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10636 _ACEOF
10637
10638 else
10639   mutt_cv_fchdir=no
10640 fi
10641 done
10642
10643
10644
10645 # Check whether --with-regex or --without-regex was given.
10646 if test "${with_regex+set}" = set; then
10647   withval="$with_regex"
10648   mutt_cv_regex=yes
10649 else
10650
10651 for ac_func in regcomp
10652 do
10653 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10654 echo "$as_me:$LINENO: checking for $ac_func" >&5
10655 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10656 if eval "test \"\${$as_ac_var+set}\" = set"; then
10657   echo $ECHO_N "(cached) $ECHO_C" >&6
10658 else
10659   cat >conftest.$ac_ext <<_ACEOF
10660 /* confdefs.h.  */
10661 _ACEOF
10662 cat confdefs.h >>conftest.$ac_ext
10663 cat >>conftest.$ac_ext <<_ACEOF
10664 /* end confdefs.h.  */
10665 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10666    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10667 #define $ac_func innocuous_$ac_func
10668
10669 /* System header to define __stub macros and hopefully few prototypes,
10670     which can conflict with char $ac_func (); below.
10671     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10672     <limits.h> exists even on freestanding compilers.  */
10673
10674 #ifdef __STDC__
10675 # include <limits.h>
10676 #else
10677 # include <assert.h>
10678 #endif
10679
10680 #undef $ac_func
10681
10682 /* Override any gcc2 internal prototype to avoid an error.  */
10683 #ifdef __cplusplus
10684 extern "C"
10685 {
10686 #endif
10687 /* We use char because int might match the return type of a gcc2
10688    builtin and then its argument prototype would still apply.  */
10689 char $ac_func ();
10690 /* The GNU C library defines this for functions which it implements
10691     to always fail with ENOSYS.  Some functions are actually named
10692     something starting with __ and the normal name is an alias.  */
10693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10694 choke me
10695 #else
10696 char (*f) () = $ac_func;
10697 #endif
10698 #ifdef __cplusplus
10699 }
10700 #endif
10701
10702 int
10703 main ()
10704 {
10705 return f != $ac_func;
10706   ;
10707   return 0;
10708 }
10709 _ACEOF
10710 rm -f conftest.$ac_objext conftest$ac_exeext
10711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10712   (eval $ac_link) 2>conftest.er1
10713   ac_status=$?
10714   grep -v '^ *+' conftest.er1 >conftest.err
10715   rm -f conftest.er1
10716   cat conftest.err >&5
10717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718   (exit $ac_status); } &&
10719          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
10720   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10721   (eval $ac_try) 2>&5
10722   ac_status=$?
10723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724   (exit $ac_status); }; } &&
10725          { ac_try='test -s conftest$ac_exeext'
10726   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10727   (eval $ac_try) 2>&5
10728   ac_status=$?
10729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730   (exit $ac_status); }; }; then
10731   eval "$as_ac_var=yes"
10732 else
10733   echo "$as_me: failed program was:" >&5
10734 sed 's/^/| /' conftest.$ac_ext >&5
10735
10736 eval "$as_ac_var=no"
10737 fi
10738 rm -f conftest.err conftest.$ac_objext \
10739       conftest$ac_exeext conftest.$ac_ext
10740 fi
10741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10742 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10743 if test `eval echo '${'$as_ac_var'}'` = yes; then
10744   cat >>confdefs.h <<_ACEOF
10745 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10746 _ACEOF
10747  mutt_cv_regex=no
10748 else
10749   mutt_cv_regex=yes
10750 fi
10751 done
10752
10753 fi;
10754
10755 if test $mutt_cv_regex = no ; then
10756 echo "$as_me:$LINENO: checking whether your system's regexp library is completely broken" >&5
10757 echo $ECHO_N "checking whether your system's regexp library is completely broken... $ECHO_C" >&6
10758 if test "${mutt_cv_regex_broken+set}" = set; then
10759   echo $ECHO_N "(cached) $ECHO_C" >&6
10760 else
10761   if test "$cross_compiling" = yes; then
10762   mutt_cv_regex_broken=yes
10763 else
10764   cat >conftest.$ac_ext <<_ACEOF
10765 /* confdefs.h.  */
10766 _ACEOF
10767 cat confdefs.h >>conftest.$ac_ext
10768 cat >>conftest.$ac_ext <<_ACEOF
10769 /* end confdefs.h.  */
10770
10771 #include <unistd.h>
10772 #include <regex.h>
10773 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); }
10774 _ACEOF
10775 rm -f conftest$ac_exeext
10776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10777   (eval $ac_link) 2>&5
10778   ac_status=$?
10779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10781   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10782   (eval $ac_try) 2>&5
10783   ac_status=$?
10784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785   (exit $ac_status); }; }; then
10786   mutt_cv_regex_broken=no
10787 else
10788   echo "$as_me: program exited with status $ac_status" >&5
10789 echo "$as_me: failed program was:" >&5
10790 sed 's/^/| /' conftest.$ac_ext >&5
10791
10792 ( exit $ac_status )
10793 mutt_cv_regex_broken=yes
10794 fi
10795 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10796 fi
10797 fi
10798 echo "$as_me:$LINENO: result: $mutt_cv_regex_broken" >&5
10799 echo "${ECHO_T}$mutt_cv_regex_broken" >&6
10800         if test $mutt_cv_regex_broken = yes ; then
10801                 echo "Using the included GNU regex instead." >&6
10802                 mutt_cv_regex=yes
10803         fi
10804 fi
10805
10806 if test $mutt_cv_regex = yes; then
10807
10808 cat >>confdefs.h <<\_ACEOF
10809 #define USE_GNU_REGEX 1
10810 _ACEOF
10811
10812         case $LIBOBJS in
10813     "regex.$ac_objext"   | \
10814   *" regex.$ac_objext"   | \
10815     "regex.$ac_objext "* | \
10816   *" regex.$ac_objext "* ) ;;
10817   *) LIBOBJS="$LIBOBJS regex.$ac_objext" ;;
10818 esac
10819
10820 fi
10821
10822
10823
10824 # Check whether --with-homespool or --without-homespool was given.
10825 if test "${with_homespool+set}" = set; then
10826   withval="$with_homespool"
10827   with_homespool=${withval}
10828 fi;
10829 if test x$with_homespool != x; then
10830         if test $with_homespool = yes; then
10831                 with_homespool=mailbox
10832         fi
10833
10834 cat >>confdefs.h <<_ACEOF
10835 #define MAILPATH "$with_homespool"
10836 _ACEOF
10837
10838
10839 cat >>confdefs.h <<\_ACEOF
10840 #define HOMESPOOL 1
10841 _ACEOF
10842
10843
10844 cat >>confdefs.h <<\_ACEOF
10845 #define USE_DOTLOCK 1
10846 _ACEOF
10847
10848         mutt_cv_setgid=no
10849 else
10850
10851 # Check whether --with-mailpath or --without-mailpath was given.
10852 if test "${with_mailpath+set}" = set; then
10853   withval="$with_mailpath"
10854   mutt_cv_mailpath=$withval
10855 else
10856    echo "$as_me:$LINENO: checking where new mail is stored" >&5
10857 echo $ECHO_N "checking where new mail is stored... $ECHO_C" >&6
10858 if test "${mutt_cv_mailpath+set}" = set; then
10859   echo $ECHO_N "(cached) $ECHO_C" >&6
10860 else
10861   mutt_cv_mailpath=no
10862                         if test -d /var/mail; then
10863                                 mutt_cv_mailpath=/var/mail
10864                         elif test -d /var/spool/mail; then
10865                                 mutt_cv_mailpath=/var/spool/mail
10866                         elif test -d /usr/spool/mail; then
10867                                 mutt_cv_mailpath=/usr/spool/mail
10868                         elif test -d /usr/mail; then
10869                                 mutt_cv_mailpath=/usr/mail
10870                         fi
10871 fi
10872 echo "$as_me:$LINENO: result: $mutt_cv_mailpath" >&5
10873 echo "${ECHO_T}$mutt_cv_mailpath" >&6
10874
10875 fi;
10876         if test "$mutt_cv_mailpath" = no; then
10877                 { { echo "$as_me:$LINENO: error: \"Could not determine where new mail is stored.\"" >&5
10878 echo "$as_me: error: \"Could not determine where new mail is stored.\"" >&2;}
10879    { (exit 1); exit 1; }; }
10880         fi
10881
10882 cat >>confdefs.h <<_ACEOF
10883 #define MAILPATH "$mutt_cv_mailpath"
10884 _ACEOF
10885
10886
10887         echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is world writable" >&5
10888 echo $ECHO_N "checking if $mutt_cv_mailpath is world writable... $ECHO_C" >&6
10889 if test "${mutt_cv_worldwrite+set}" = set; then
10890   echo $ECHO_N "(cached) $ECHO_C" >&6
10891 else
10892   if test "$cross_compiling" = yes; then
10893   mutt_cv_worldwrite=no
10894 else
10895   cat >conftest.$ac_ext <<_ACEOF
10896 /* confdefs.h.  */
10897 _ACEOF
10898 cat confdefs.h >>conftest.$ac_ext
10899 cat >>conftest.$ac_ext <<_ACEOF
10900 /* end confdefs.h.  */
10901 #include <sys/types.h>
10902 #include <sys/stat.h>
10903
10904 int main (int argc, char **argv)
10905 {
10906         struct stat s;
10907
10908         stat ("$mutt_cv_mailpath", &s);
10909         if (s.st_mode & S_IWOTH) exit (0);
10910         exit (1);
10911 }
10912 _ACEOF
10913 rm -f conftest$ac_exeext
10914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10915   (eval $ac_link) 2>&5
10916   ac_status=$?
10917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10919   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10920   (eval $ac_try) 2>&5
10921   ac_status=$?
10922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923   (exit $ac_status); }; }; then
10924   mutt_cv_worldwrite=yes
10925 else
10926   echo "$as_me: program exited with status $ac_status" >&5
10927 echo "$as_me: failed program was:" >&5
10928 sed 's/^/| /' conftest.$ac_ext >&5
10929
10930 ( exit $ac_status )
10931 mutt_cv_worldwrite=no
10932 fi
10933 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10934 fi
10935 fi
10936 echo "$as_me:$LINENO: result: $mutt_cv_worldwrite" >&5
10937 echo "${ECHO_T}$mutt_cv_worldwrite" >&6
10938
10939         mutt_cv_setgid=no
10940         if test $mutt_cv_worldwrite = yes; then
10941
10942 cat >>confdefs.h <<\_ACEOF
10943 #define USE_DOTLOCK 1
10944 _ACEOF
10945
10946         else
10947
10948                 echo "$as_me:$LINENO: checking if $mutt_cv_mailpath is group writable" >&5
10949 echo $ECHO_N "checking if $mutt_cv_mailpath is group writable... $ECHO_C" >&6
10950 if test "${mutt_cv_groupwrite+set}" = set; then
10951   echo $ECHO_N "(cached) $ECHO_C" >&6
10952 else
10953   if test "$cross_compiling" = yes; then
10954   mutt_cv_groupwrite=no
10955 else
10956   cat >conftest.$ac_ext <<_ACEOF
10957 /* confdefs.h.  */
10958 _ACEOF
10959 cat confdefs.h >>conftest.$ac_ext
10960 cat >>conftest.$ac_ext <<_ACEOF
10961 /* end confdefs.h.  */
10962 #include <sys/types.h>
10963 #include <sys/stat.h>
10964
10965 int main (int argc, char **argv)
10966 {
10967         struct stat s;
10968
10969         stat ("$mutt_cv_mailpath", &s);
10970         if (s.st_mode & S_IWGRP) exit (0);
10971         exit (1);
10972 }
10973 _ACEOF
10974 rm -f conftest$ac_exeext
10975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10976   (eval $ac_link) 2>&5
10977   ac_status=$?
10978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10980   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10981   (eval $ac_try) 2>&5
10982   ac_status=$?
10983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10984   (exit $ac_status); }; }; then
10985   mutt_cv_groupwrite=yes
10986 else
10987   echo "$as_me: program exited with status $ac_status" >&5
10988 echo "$as_me: failed program was:" >&5
10989 sed 's/^/| /' conftest.$ac_ext >&5
10990
10991 ( exit $ac_status )
10992 mutt_cv_groupwrite=no
10993 fi
10994 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10995 fi
10996 fi
10997 echo "$as_me:$LINENO: result: $mutt_cv_groupwrite" >&5
10998 echo "${ECHO_T}$mutt_cv_groupwrite" >&6
10999
11000                 if test $mutt_cv_groupwrite = yes; then
11001
11002 cat >>confdefs.h <<\_ACEOF
11003 #define USE_DOTLOCK 1
11004 _ACEOF
11005
11006
11007 cat >>confdefs.h <<\_ACEOF
11008 #define USE_SETGID 1
11009 _ACEOF
11010
11011                         mutt_cv_setgid=yes
11012                 fi
11013         fi
11014 fi
11015
11016 # Check whether --enable-external_dotlock or --disable-external_dotlock was given.
11017 if test "${enable_external_dotlock+set}" = set; then
11018   enableval="$enable_external_dotlock"
11019   mutt_cv_external_dotlock="$enableval"
11020 fi;
11021
11022 if test "x$mutt_cv_setgid" = "xyes" || test "x$mutt_cv_fchdir" = "xno" \
11023         || test "x$mutt_cv_external_dotlock" = "xyes"
11024 then
11025
11026 cat >>confdefs.h <<\_ACEOF
11027 #define DL_STANDALONE 1
11028 _ACEOF
11029
11030         DOTLOCK_TARGET="muttng_dotlock"
11031 else
11032         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS dotlock.o"
11033 fi
11034
11035
11036
11037
11038 echo "$as_me:$LINENO: checking where to put the documentation" >&5
11039 echo $ECHO_N "checking where to put the documentation... $ECHO_C" >&6
11040
11041 # Check whether --with-docdir or --without-docdir was given.
11042 if test "${with_docdir+set}" = set; then
11043   withval="$with_docdir"
11044   mutt_cv_docdir=$withval
11045 else
11046   mutt_cv_docdir="$mutt_cv_prefix/doc/muttng"
11047 fi;
11048 echo "$as_me:$LINENO: result: $mutt_cv_docdir" >&5
11049 echo "${ECHO_T}$mutt_cv_docdir" >&6
11050
11051 docdir=$mutt_cv_docdir
11052
11053
11054 if test x$mutt_cv_setgid = xyes; then
11055         DOTLOCK_GROUP='mail'
11056         DOTLOCK_PERMISSION=2755
11057 else
11058         DOTLOCK_GROUP=''
11059         DOTLOCK_PERMISSION=755
11060 fi
11061
11062
11063
11064
11065 # Check whether --with-domain or --without-domain was given.
11066 if test "${with_domain+set}" = set; then
11067   withval="$with_domain"
11068   if test $withval != yes; then
11069
11070 cat >>confdefs.h <<_ACEOF
11071 #define DOMAIN "$withval"
11072 _ACEOF
11073
11074         fi
11075 fi;
11076
11077 need_socket="no"
11078
11079
11080 # Check whether --enable-pop or --disable-pop was given.
11081 if test "${enable_pop+set}" = set; then
11082   enableval="$enable_pop"
11083          if test x$enableval = xyes ; then
11084
11085 cat >>confdefs.h <<\_ACEOF
11086 #define USE_POP 1
11087 _ACEOF
11088
11089                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS pop.o pop_lib.o pop_auth.o"
11090                 need_socket="yes"
11091                 need_pop="yes"
11092                 need_md5="yes"
11093         fi
11094
11095 fi;
11096
11097 # Check whether --enable-imap or --disable-imap was given.
11098 if test "${enable_imap+set}" = set; then
11099   enableval="$enable_imap"
11100          if test x$enableval = xyes ; then
11101
11102 cat >>confdefs.h <<\_ACEOF
11103 #define USE_IMAP 1
11104 _ACEOF
11105
11106                 LIBIMAP="-Limap -limap"
11107                 LIBIMAPDEPS="\$(top_srcdir)/imap/imap.h imap/libimap.a"
11108                 need_imap="yes"
11109                 need_socket="yes"
11110                 need_md5="yes"
11111         fi
11112
11113 fi;
11114
11115
11116 if test x$need_imap = xyes; then
11117   BUILD_IMAP_TRUE=
11118   BUILD_IMAP_FALSE='#'
11119 else
11120   BUILD_IMAP_TRUE='#'
11121   BUILD_IMAP_FALSE=
11122 fi
11123
11124 # Check whether --enable-nntp or --disable-nntp was given.
11125 if test "${enable_nntp+set}" = set; then
11126   enableval="$enable_nntp"
11127         if test x$enableval = xyes ; then
11128                 cat >>confdefs.h <<\_ACEOF
11129 #define USE_NNTP 1
11130 _ACEOF
11131
11132                 MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS nntp.o newsrc.o"
11133                 need_socket="yes"
11134         fi
11135
11136 fi;
11137
11138
11139 if test "$need_socket" = "yes"
11140 then
11141         echo "$as_me:$LINENO: checking for socklen_t" >&5
11142 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
11143         cat >conftest.$ac_ext <<_ACEOF
11144 /* confdefs.h.  */
11145 _ACEOF
11146 cat confdefs.h >>conftest.$ac_ext
11147 cat >>conftest.$ac_ext <<_ACEOF
11148 /* end confdefs.h.  */
11149 #include <sys/socket.h>
11150
11151 _ACEOF
11152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11153   $EGREP "socklen_t" >/dev/null 2>&1; then
11154   echo "$as_me:$LINENO: result: yes" >&5
11155 echo "${ECHO_T}yes" >&6
11156 else
11157   echo "$as_me:$LINENO: result: no" >&5
11158 echo "${ECHO_T}no" >&6
11159
11160 cat >>confdefs.h <<\_ACEOF
11161 #define socklen_t int
11162 _ACEOF
11163
11164 fi
11165 rm -f conftest*
11166
11167         echo "$as_me:$LINENO: checking for gethostent" >&5
11168 echo $ECHO_N "checking for gethostent... $ECHO_C" >&6
11169 if test "${ac_cv_func_gethostent+set}" = set; then
11170   echo $ECHO_N "(cached) $ECHO_C" >&6
11171 else
11172   cat >conftest.$ac_ext <<_ACEOF
11173 /* confdefs.h.  */
11174 _ACEOF
11175 cat confdefs.h >>conftest.$ac_ext
11176 cat >>conftest.$ac_ext <<_ACEOF
11177 /* end confdefs.h.  */
11178 /* Define gethostent to an innocuous variant, in case <limits.h> declares gethostent.
11179    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11180 #define gethostent innocuous_gethostent
11181
11182 /* System header to define __stub macros and hopefully few prototypes,
11183     which can conflict with char gethostent (); below.
11184     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11185     <limits.h> exists even on freestanding compilers.  */
11186
11187 #ifdef __STDC__
11188 # include <limits.h>
11189 #else
11190 # include <assert.h>
11191 #endif
11192
11193 #undef gethostent
11194
11195 /* Override any gcc2 internal prototype to avoid an error.  */
11196 #ifdef __cplusplus
11197 extern "C"
11198 {
11199 #endif
11200 /* We use char because int might match the return type of a gcc2
11201    builtin and then its argument prototype would still apply.  */
11202 char gethostent ();
11203 /* The GNU C library defines this for functions which it implements
11204     to always fail with ENOSYS.  Some functions are actually named
11205     something starting with __ and the normal name is an alias.  */
11206 #if defined (__stub_gethostent) || defined (__stub___gethostent)
11207 choke me
11208 #else
11209 char (*f) () = gethostent;
11210 #endif
11211 #ifdef __cplusplus
11212 }
11213 #endif
11214
11215 int
11216 main ()
11217 {
11218 return f != gethostent;
11219   ;
11220   return 0;
11221 }
11222 _ACEOF
11223 rm -f conftest.$ac_objext conftest$ac_exeext
11224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11225   (eval $ac_link) 2>conftest.er1
11226   ac_status=$?
11227   grep -v '^ *+' conftest.er1 >conftest.err
11228   rm -f conftest.er1
11229   cat conftest.err >&5
11230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11231   (exit $ac_status); } &&
11232          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11234   (eval $ac_try) 2>&5
11235   ac_status=$?
11236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237   (exit $ac_status); }; } &&
11238          { ac_try='test -s conftest$ac_exeext'
11239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11240   (eval $ac_try) 2>&5
11241   ac_status=$?
11242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11243   (exit $ac_status); }; }; then
11244   ac_cv_func_gethostent=yes
11245 else
11246   echo "$as_me: failed program was:" >&5
11247 sed 's/^/| /' conftest.$ac_ext >&5
11248
11249 ac_cv_func_gethostent=no
11250 fi
11251 rm -f conftest.err conftest.$ac_objext \
11252       conftest$ac_exeext conftest.$ac_ext
11253 fi
11254 echo "$as_me:$LINENO: result: $ac_cv_func_gethostent" >&5
11255 echo "${ECHO_T}$ac_cv_func_gethostent" >&6
11256 if test $ac_cv_func_gethostent = yes; then
11257   :
11258 else
11259
11260 echo "$as_me:$LINENO: checking for gethostent in -lnsl" >&5
11261 echo $ECHO_N "checking for gethostent in -lnsl... $ECHO_C" >&6
11262 if test "${ac_cv_lib_nsl_gethostent+set}" = set; then
11263   echo $ECHO_N "(cached) $ECHO_C" >&6
11264 else
11265   ac_check_lib_save_LIBS=$LIBS
11266 LIBS="-lnsl  $LIBS"
11267 cat >conftest.$ac_ext <<_ACEOF
11268 /* confdefs.h.  */
11269 _ACEOF
11270 cat confdefs.h >>conftest.$ac_ext
11271 cat >>conftest.$ac_ext <<_ACEOF
11272 /* end confdefs.h.  */
11273
11274 /* Override any gcc2 internal prototype to avoid an error.  */
11275 #ifdef __cplusplus
11276 extern "C"
11277 #endif
11278 /* We use char because int might match the return type of a gcc2
11279    builtin and then its argument prototype would still apply.  */
11280 char gethostent ();
11281 int
11282 main ()
11283 {
11284 gethostent ();
11285   ;
11286   return 0;
11287 }
11288 _ACEOF
11289 rm -f conftest.$ac_objext conftest$ac_exeext
11290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11291   (eval $ac_link) 2>conftest.er1
11292   ac_status=$?
11293   grep -v '^ *+' conftest.er1 >conftest.err
11294   rm -f conftest.er1
11295   cat conftest.err >&5
11296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297   (exit $ac_status); } &&
11298          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11299   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11300   (eval $ac_try) 2>&5
11301   ac_status=$?
11302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303   (exit $ac_status); }; } &&
11304          { ac_try='test -s conftest$ac_exeext'
11305   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11306   (eval $ac_try) 2>&5
11307   ac_status=$?
11308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309   (exit $ac_status); }; }; then
11310   ac_cv_lib_nsl_gethostent=yes
11311 else
11312   echo "$as_me: failed program was:" >&5
11313 sed 's/^/| /' conftest.$ac_ext >&5
11314
11315 ac_cv_lib_nsl_gethostent=no
11316 fi
11317 rm -f conftest.err conftest.$ac_objext \
11318       conftest$ac_exeext conftest.$ac_ext
11319 LIBS=$ac_check_lib_save_LIBS
11320 fi
11321 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostent" >&5
11322 echo "${ECHO_T}$ac_cv_lib_nsl_gethostent" >&6
11323 if test $ac_cv_lib_nsl_gethostent = yes; then
11324   cat >>confdefs.h <<_ACEOF
11325 #define HAVE_LIBNSL 1
11326 _ACEOF
11327
11328   LIBS="-lnsl $LIBS"
11329
11330 fi
11331
11332 fi
11333
11334         echo "$as_me:$LINENO: checking for setsockopt" >&5
11335 echo $ECHO_N "checking for setsockopt... $ECHO_C" >&6
11336 if test "${ac_cv_func_setsockopt+set}" = set; then
11337   echo $ECHO_N "(cached) $ECHO_C" >&6
11338 else
11339   cat >conftest.$ac_ext <<_ACEOF
11340 /* confdefs.h.  */
11341 _ACEOF
11342 cat confdefs.h >>conftest.$ac_ext
11343 cat >>conftest.$ac_ext <<_ACEOF
11344 /* end confdefs.h.  */
11345 /* Define setsockopt to an innocuous variant, in case <limits.h> declares setsockopt.
11346    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11347 #define setsockopt innocuous_setsockopt
11348
11349 /* System header to define __stub macros and hopefully few prototypes,
11350     which can conflict with char setsockopt (); below.
11351     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11352     <limits.h> exists even on freestanding compilers.  */
11353
11354 #ifdef __STDC__
11355 # include <limits.h>
11356 #else
11357 # include <assert.h>
11358 #endif
11359
11360 #undef setsockopt
11361
11362 /* Override any gcc2 internal prototype to avoid an error.  */
11363 #ifdef __cplusplus
11364 extern "C"
11365 {
11366 #endif
11367 /* We use char because int might match the return type of a gcc2
11368    builtin and then its argument prototype would still apply.  */
11369 char setsockopt ();
11370 /* The GNU C library defines this for functions which it implements
11371     to always fail with ENOSYS.  Some functions are actually named
11372     something starting with __ and the normal name is an alias.  */
11373 #if defined (__stub_setsockopt) || defined (__stub___setsockopt)
11374 choke me
11375 #else
11376 char (*f) () = setsockopt;
11377 #endif
11378 #ifdef __cplusplus
11379 }
11380 #endif
11381
11382 int
11383 main ()
11384 {
11385 return f != setsockopt;
11386   ;
11387   return 0;
11388 }
11389 _ACEOF
11390 rm -f conftest.$ac_objext conftest$ac_exeext
11391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11392   (eval $ac_link) 2>conftest.er1
11393   ac_status=$?
11394   grep -v '^ *+' conftest.er1 >conftest.err
11395   rm -f conftest.er1
11396   cat conftest.err >&5
11397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398   (exit $ac_status); } &&
11399          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11401   (eval $ac_try) 2>&5
11402   ac_status=$?
11403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404   (exit $ac_status); }; } &&
11405          { ac_try='test -s conftest$ac_exeext'
11406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11407   (eval $ac_try) 2>&5
11408   ac_status=$?
11409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410   (exit $ac_status); }; }; then
11411   ac_cv_func_setsockopt=yes
11412 else
11413   echo "$as_me: failed program was:" >&5
11414 sed 's/^/| /' conftest.$ac_ext >&5
11415
11416 ac_cv_func_setsockopt=no
11417 fi
11418 rm -f conftest.err conftest.$ac_objext \
11419       conftest$ac_exeext conftest.$ac_ext
11420 fi
11421 echo "$as_me:$LINENO: result: $ac_cv_func_setsockopt" >&5
11422 echo "${ECHO_T}$ac_cv_func_setsockopt" >&6
11423 if test $ac_cv_func_setsockopt = yes; then
11424   :
11425 else
11426
11427 echo "$as_me:$LINENO: checking for setsockopt in -lsocket" >&5
11428 echo $ECHO_N "checking for setsockopt in -lsocket... $ECHO_C" >&6
11429 if test "${ac_cv_lib_socket_setsockopt+set}" = set; then
11430   echo $ECHO_N "(cached) $ECHO_C" >&6
11431 else
11432   ac_check_lib_save_LIBS=$LIBS
11433 LIBS="-lsocket  $LIBS"
11434 cat >conftest.$ac_ext <<_ACEOF
11435 /* confdefs.h.  */
11436 _ACEOF
11437 cat confdefs.h >>conftest.$ac_ext
11438 cat >>conftest.$ac_ext <<_ACEOF
11439 /* end confdefs.h.  */
11440
11441 /* Override any gcc2 internal prototype to avoid an error.  */
11442 #ifdef __cplusplus
11443 extern "C"
11444 #endif
11445 /* We use char because int might match the return type of a gcc2
11446    builtin and then its argument prototype would still apply.  */
11447 char setsockopt ();
11448 int
11449 main ()
11450 {
11451 setsockopt ();
11452   ;
11453   return 0;
11454 }
11455 _ACEOF
11456 rm -f conftest.$ac_objext conftest$ac_exeext
11457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11458   (eval $ac_link) 2>conftest.er1
11459   ac_status=$?
11460   grep -v '^ *+' conftest.er1 >conftest.err
11461   rm -f conftest.er1
11462   cat conftest.err >&5
11463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464   (exit $ac_status); } &&
11465          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11466   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11467   (eval $ac_try) 2>&5
11468   ac_status=$?
11469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470   (exit $ac_status); }; } &&
11471          { ac_try='test -s conftest$ac_exeext'
11472   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11473   (eval $ac_try) 2>&5
11474   ac_status=$?
11475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11476   (exit $ac_status); }; }; then
11477   ac_cv_lib_socket_setsockopt=yes
11478 else
11479   echo "$as_me: failed program was:" >&5
11480 sed 's/^/| /' conftest.$ac_ext >&5
11481
11482 ac_cv_lib_socket_setsockopt=no
11483 fi
11484 rm -f conftest.err conftest.$ac_objext \
11485       conftest$ac_exeext conftest.$ac_ext
11486 LIBS=$ac_check_lib_save_LIBS
11487 fi
11488 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_setsockopt" >&5
11489 echo "${ECHO_T}$ac_cv_lib_socket_setsockopt" >&6
11490 if test $ac_cv_lib_socket_setsockopt = yes; then
11491   cat >>confdefs.h <<_ACEOF
11492 #define HAVE_LIBSOCKET 1
11493 _ACEOF
11494
11495   LIBS="-lsocket $LIBS"
11496
11497 fi
11498
11499 fi
11500
11501
11502 for ac_func in getaddrinfo
11503 do
11504 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11505 echo "$as_me:$LINENO: checking for $ac_func" >&5
11506 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11507 if eval "test \"\${$as_ac_var+set}\" = set"; then
11508   echo $ECHO_N "(cached) $ECHO_C" >&6
11509 else
11510   cat >conftest.$ac_ext <<_ACEOF
11511 /* confdefs.h.  */
11512 _ACEOF
11513 cat confdefs.h >>conftest.$ac_ext
11514 cat >>conftest.$ac_ext <<_ACEOF
11515 /* end confdefs.h.  */
11516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11517    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11518 #define $ac_func innocuous_$ac_func
11519
11520 /* System header to define __stub macros and hopefully few prototypes,
11521     which can conflict with char $ac_func (); below.
11522     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11523     <limits.h> exists even on freestanding compilers.  */
11524
11525 #ifdef __STDC__
11526 # include <limits.h>
11527 #else
11528 # include <assert.h>
11529 #endif
11530
11531 #undef $ac_func
11532
11533 /* Override any gcc2 internal prototype to avoid an error.  */
11534 #ifdef __cplusplus
11535 extern "C"
11536 {
11537 #endif
11538 /* We use char because int might match the return type of a gcc2
11539    builtin and then its argument prototype would still apply.  */
11540 char $ac_func ();
11541 /* The GNU C library defines this for functions which it implements
11542     to always fail with ENOSYS.  Some functions are actually named
11543     something starting with __ and the normal name is an alias.  */
11544 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11545 choke me
11546 #else
11547 char (*f) () = $ac_func;
11548 #endif
11549 #ifdef __cplusplus
11550 }
11551 #endif
11552
11553 int
11554 main ()
11555 {
11556 return f != $ac_func;
11557   ;
11558   return 0;
11559 }
11560 _ACEOF
11561 rm -f conftest.$ac_objext conftest$ac_exeext
11562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11563   (eval $ac_link) 2>conftest.er1
11564   ac_status=$?
11565   grep -v '^ *+' conftest.er1 >conftest.err
11566   rm -f conftest.er1
11567   cat conftest.err >&5
11568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569   (exit $ac_status); } &&
11570          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11572   (eval $ac_try) 2>&5
11573   ac_status=$?
11574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575   (exit $ac_status); }; } &&
11576          { ac_try='test -s conftest$ac_exeext'
11577   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11578   (eval $ac_try) 2>&5
11579   ac_status=$?
11580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581   (exit $ac_status); }; }; then
11582   eval "$as_ac_var=yes"
11583 else
11584   echo "$as_me: failed program was:" >&5
11585 sed 's/^/| /' conftest.$ac_ext >&5
11586
11587 eval "$as_ac_var=no"
11588 fi
11589 rm -f conftest.err conftest.$ac_objext \
11590       conftest$ac_exeext conftest.$ac_ext
11591 fi
11592 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11593 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11594 if test `eval echo '${'$as_ac_var'}'` = yes; then
11595   cat >>confdefs.h <<_ACEOF
11596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11597 _ACEOF
11598
11599 fi
11600 done
11601
11602
11603 cat >>confdefs.h <<\_ACEOF
11604 #define USE_SOCKET 1
11605 _ACEOF
11606
11607         MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS account.o mutt_socket.o mutt_tunnel.o"
11608 fi
11609
11610
11611
11612 # Check whether --with-gss or --without-gss was given.
11613 if test "${with_gss+set}" = set; then
11614   withval="$with_gss"
11615   gss_prefix="$withval"
11616 else
11617   gss_prefix="no"
11618 fi;
11619 if test "$gss_prefix" != "no"
11620 then
11621   if test "$need_imap" = "yes"
11622   then
11623
11624   GSSAPI_PREFIX=$gss_prefix
11625   GSSAPI_IMPL="none"
11626   saved_CPPFLAGS="$CPPFLAGS"
11627   saved_LDFLAGS="$LDFLAGS"
11628   saved_LIBS="$LIBS"
11629     if test "$GSSAPI_PREFIX" != "yes"
11630   then
11631     krb5_path="$GSSAPI_PREFIX/bin"
11632   else
11633     krb5_path="$PATH"
11634   fi
11635   # Extract the first word of "krb5-config", so it can be a program name with args.
11636 set dummy krb5-config; ac_word=$2
11637 echo "$as_me:$LINENO: checking for $ac_word" >&5
11638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11639 if test "${ac_cv_path_KRB5CFGPATH+set}" = set; then
11640   echo $ECHO_N "(cached) $ECHO_C" >&6
11641 else
11642   case $KRB5CFGPATH in
11643   [\\/]* | ?:[\\/]*)
11644   ac_cv_path_KRB5CFGPATH="$KRB5CFGPATH" # Let the user override the test with a path.
11645   ;;
11646   *)
11647   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11648 for as_dir in $krb5_path
11649 do
11650   IFS=$as_save_IFS
11651   test -z "$as_dir" && as_dir=.
11652   for ac_exec_ext in '' $ac_executable_extensions; do
11653   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11654     ac_cv_path_KRB5CFGPATH="$as_dir/$ac_word$ac_exec_ext"
11655     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11656     break 2
11657   fi
11658 done
11659 done
11660
11661   test -z "$ac_cv_path_KRB5CFGPATH" && ac_cv_path_KRB5CFGPATH="none"
11662   ;;
11663 esac
11664 fi
11665 KRB5CFGPATH=$ac_cv_path_KRB5CFGPATH
11666
11667 if test -n "$KRB5CFGPATH"; then
11668   echo "$as_me:$LINENO: result: $KRB5CFGPATH" >&5
11669 echo "${ECHO_T}$KRB5CFGPATH" >&6
11670 else
11671   echo "$as_me:$LINENO: result: no" >&5
11672 echo "${ECHO_T}no" >&6
11673 fi
11674
11675   if test "$KRB5CFGPATH" != "none"
11676   then
11677     GSSAPI_CFLAGS="$CPPFLAGS `$KRB5CFGPATH --cflags gssapi`"
11678     GSSAPI_LIBS="$MUTTLIBS `$KRB5CFGPATH --libs gssapi`"
11679     case "`$KRB5CFGPATH --version`" in
11680       "Kerberos 5 "*)   GSSAPI_IMPL="MIT";;
11681       ?eimdal*)         GSSAPI_IMPL="Heimdal";;
11682       *)                GSSAPI_IMPL="Unknown";;
11683    esac
11684   else
11685         if test "$GSSAPI_PREFIX" != "yes"
11686     then
11687       GSSAPI_CFLAGS="-I$GSSAPI_PREFIX/include"
11688       GSSAPI_LDFLAGS="-L$GSSAPI_PREFIX/lib"
11689       CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
11690       LDFLAGS="$LDFLAGS $GSSAPI_LDFLAGS"
11691     fi
11692
11693         echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi_krb5" >&5
11694 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi_krb5... $ECHO_C" >&6
11695 if test "${ac_cv_lib_gssapi_krb5_gss_init_sec_context+set}" = set; then
11696   echo $ECHO_N "(cached) $ECHO_C" >&6
11697 else
11698   ac_check_lib_save_LIBS=$LIBS
11699 LIBS="-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err $LIBS"
11700 cat >conftest.$ac_ext <<_ACEOF
11701 /* confdefs.h.  */
11702 _ACEOF
11703 cat confdefs.h >>conftest.$ac_ext
11704 cat >>conftest.$ac_ext <<_ACEOF
11705 /* end confdefs.h.  */
11706
11707 /* Override any gcc2 internal prototype to avoid an error.  */
11708 #ifdef __cplusplus
11709 extern "C"
11710 #endif
11711 /* We use char because int might match the return type of a gcc2
11712    builtin and then its argument prototype would still apply.  */
11713 char gss_init_sec_context ();
11714 int
11715 main ()
11716 {
11717 gss_init_sec_context ();
11718   ;
11719   return 0;
11720 }
11721 _ACEOF
11722 rm -f conftest.$ac_objext conftest$ac_exeext
11723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11724   (eval $ac_link) 2>conftest.er1
11725   ac_status=$?
11726   grep -v '^ *+' conftest.er1 >conftest.err
11727   rm -f conftest.er1
11728   cat conftest.err >&5
11729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11730   (exit $ac_status); } &&
11731          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11732   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11733   (eval $ac_try) 2>&5
11734   ac_status=$?
11735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736   (exit $ac_status); }; } &&
11737          { ac_try='test -s conftest$ac_exeext'
11738   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11739   (eval $ac_try) 2>&5
11740   ac_status=$?
11741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742   (exit $ac_status); }; }; then
11743   ac_cv_lib_gssapi_krb5_gss_init_sec_context=yes
11744 else
11745   echo "$as_me: failed program was:" >&5
11746 sed 's/^/| /' conftest.$ac_ext >&5
11747
11748 ac_cv_lib_gssapi_krb5_gss_init_sec_context=no
11749 fi
11750 rm -f conftest.err conftest.$ac_objext \
11751       conftest$ac_exeext conftest.$ac_ext
11752 LIBS=$ac_check_lib_save_LIBS
11753 fi
11754 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&5
11755 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_init_sec_context" >&6
11756 if test $ac_cv_lib_gssapi_krb5_gss_init_sec_context = yes; then
11757
11758       GSSAPI_IMPL="MIT",
11759       GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err"
11760
11761 fi
11762
11763
11764         if test "$GSSAPI_IMPL" = "none"
11765     then
11766       echo "$as_me:$LINENO: checking for gss_init_sec_context in -lgssapi" >&5
11767 echo $ECHO_N "checking for gss_init_sec_context in -lgssapi... $ECHO_C" >&6
11768 if test "${ac_cv_lib_gssapi_gss_init_sec_context+set}" = set; then
11769   echo $ECHO_N "(cached) $ECHO_C" >&6
11770 else
11771   ac_check_lib_save_LIBS=$LIBS
11772 LIBS="-lgssapi -lkrb5 -ldes -lasn1 -lroken -lcrypt -lcom_err $LIBS"
11773 cat >conftest.$ac_ext <<_ACEOF
11774 /* confdefs.h.  */
11775 _ACEOF
11776 cat confdefs.h >>conftest.$ac_ext
11777 cat >>conftest.$ac_ext <<_ACEOF
11778 /* end confdefs.h.  */
11779
11780 /* Override any gcc2 internal prototype to avoid an error.  */
11781 #ifdef __cplusplus
11782 extern "C"
11783 #endif
11784 /* We use char because int might match the return type of a gcc2
11785    builtin and then its argument prototype would still apply.  */
11786 char gss_init_sec_context ();
11787 int
11788 main ()
11789 {
11790 gss_init_sec_context ();
11791   ;
11792   return 0;
11793 }
11794 _ACEOF
11795 rm -f conftest.$ac_objext conftest$ac_exeext
11796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11797   (eval $ac_link) 2>conftest.er1
11798   ac_status=$?
11799   grep -v '^ *+' conftest.er1 >conftest.err
11800   rm -f conftest.er1
11801   cat conftest.err >&5
11802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803   (exit $ac_status); } &&
11804          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11805   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11806   (eval $ac_try) 2>&5
11807   ac_status=$?
11808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809   (exit $ac_status); }; } &&
11810          { ac_try='test -s conftest$ac_exeext'
11811   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11812   (eval $ac_try) 2>&5
11813   ac_status=$?
11814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815   (exit $ac_status); }; }; then
11816   ac_cv_lib_gssapi_gss_init_sec_context=yes
11817 else
11818   echo "$as_me: failed program was:" >&5
11819 sed 's/^/| /' conftest.$ac_ext >&5
11820
11821 ac_cv_lib_gssapi_gss_init_sec_context=no
11822 fi
11823 rm -f conftest.err conftest.$ac_objext \
11824       conftest$ac_exeext conftest.$ac_ext
11825 LIBS=$ac_check_lib_save_LIBS
11826 fi
11827 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_init_sec_context" >&5
11828 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_init_sec_context" >&6
11829 if test $ac_cv_lib_gssapi_gss_init_sec_context = yes; then
11830
11831           GSSAPI_IMPL="Heimdal"
11832           GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi -lkrb5 -ldes -lasn1 -lroken"
11833           GSSAPI_LIBS="$GSSAPI_LIBS -lcrypt -lcom_err"
11834
11835 fi
11836
11837     fi
11838
11839                             if test "$GSSAPI_IMPL" = "none"
11840     then
11841       echo "$as_me:$LINENO: checking for g_order_init in -lgssapi_krb5" >&5
11842 echo $ECHO_N "checking for g_order_init in -lgssapi_krb5... $ECHO_C" >&6
11843 if test "${ac_cv_lib_gssapi_krb5_g_order_init+set}" = set; then
11844   echo $ECHO_N "(cached) $ECHO_C" >&6
11845 else
11846   ac_check_lib_save_LIBS=$LIBS
11847 LIBS="-lgssapi_krb5 -lkrb5 -lcrypto -lcom_err $LIBS"
11848 cat >conftest.$ac_ext <<_ACEOF
11849 /* confdefs.h.  */
11850 _ACEOF
11851 cat confdefs.h >>conftest.$ac_ext
11852 cat >>conftest.$ac_ext <<_ACEOF
11853 /* end confdefs.h.  */
11854
11855 /* Override any gcc2 internal prototype to avoid an error.  */
11856 #ifdef __cplusplus
11857 extern "C"
11858 #endif
11859 /* We use char because int might match the return type of a gcc2
11860    builtin and then its argument prototype would still apply.  */
11861 char g_order_init ();
11862 int
11863 main ()
11864 {
11865 g_order_init ();
11866   ;
11867   return 0;
11868 }
11869 _ACEOF
11870 rm -f conftest.$ac_objext conftest$ac_exeext
11871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11872   (eval $ac_link) 2>conftest.er1
11873   ac_status=$?
11874   grep -v '^ *+' conftest.er1 >conftest.err
11875   rm -f conftest.er1
11876   cat conftest.err >&5
11877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878   (exit $ac_status); } &&
11879          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
11880   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11881   (eval $ac_try) 2>&5
11882   ac_status=$?
11883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884   (exit $ac_status); }; } &&
11885          { ac_try='test -s conftest$ac_exeext'
11886   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11887   (eval $ac_try) 2>&5
11888   ac_status=$?
11889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890   (exit $ac_status); }; }; then
11891   ac_cv_lib_gssapi_krb5_g_order_init=yes
11892 else
11893   echo "$as_me: failed program was:" >&5
11894 sed 's/^/| /' conftest.$ac_ext >&5
11895
11896 ac_cv_lib_gssapi_krb5_g_order_init=no
11897 fi
11898 rm -f conftest.err conftest.$ac_objext \
11899       conftest$ac_exeext conftest.$ac_ext
11900 LIBS=$ac_check_lib_save_LIBS
11901 fi
11902 echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_g_order_init" >&5
11903 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_g_order_init" >&6
11904 if test $ac_cv_lib_gssapi_krb5_g_order_init = yes; then
11905
11906         GSSAPI_IMPL="OldMIT",
11907         GSSAPI_LIBS="$GSSAPI_LDFLAGS -lgssapi_krb5 -lkrb5 -lcrypto -lcom_err"
11908
11909 fi
11910
11911     fi
11912   fi
11913
11914   CPPFLAGS="$saved_CPPFLAGS"
11915   LDFLAGS="$saved_LDFLAGS"
11916   LIBS="$saved_LIBS"
11917
11918     echo "$as_me:$LINENO: checking GSSAPI implementation" >&5
11919 echo $ECHO_N "checking GSSAPI implementation... $ECHO_C" >&6
11920     echo "$as_me:$LINENO: result: $GSSAPI_IMPL" >&5
11921 echo "${ECHO_T}$GSSAPI_IMPL" >&6
11922     if test "$GSSAPI_IMPL" = "none"
11923     then
11924       cat >confcache <<\_ACEOF
11925 # This file is a shell script that caches the results of configure
11926 # tests run on this system so they can be shared between configure
11927 # scripts and configure runs, see configure's option --config-cache.
11928 # It is not useful on other systems.  If it contains results you don't
11929 # want to keep, you may remove or edit it.
11930 #
11931 # config.status only pays attention to the cache file if you give it
11932 # the --recheck option to rerun configure.
11933 #
11934 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11935 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11936 # following values.
11937
11938 _ACEOF
11939
11940 # The following way of writing the cache mishandles newlines in values,
11941 # but we know of no workaround that is simple, portable, and efficient.
11942 # So, don't put newlines in cache variables' values.
11943 # Ultrix sh set writes to stderr and can't be redirected directly,
11944 # and sets the high bit in the cache file unless we assign to the vars.
11945 {
11946   (set) 2>&1 |
11947     case `(ac_space=' '; set | grep ac_space) 2>&1` in
11948     *ac_space=\ *)
11949       # `set' does not quote correctly, so add quotes (double-quote
11950       # substitution turns \\\\ into \\, and sed turns \\ into \).
11951       sed -n \
11952         "s/'/'\\\\''/g;
11953           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11954       ;;
11955     *)
11956       # `set' quotes correctly as required by POSIX, so do not add quotes.
11957       sed -n \
11958         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11959       ;;
11960     esac;
11961 } |
11962   sed '
11963      t clear
11964      : clear
11965      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11966      t end
11967      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11968      : end' >>confcache
11969 if diff $cache_file confcache >/dev/null 2>&1; then :; else
11970   if test -w $cache_file; then
11971     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11972     cat confcache >$cache_file
11973   else
11974     echo "not updating unwritable cache $cache_file"
11975   fi
11976 fi
11977 rm -f confcache
11978       echo "$as_me:$LINENO: result: GSSAPI libraries not found" >&5
11979 echo "${ECHO_T}GSSAPI libraries not found" >&6
11980     fi
11981     if test "$GSSAPI_IMPL" = "Heimdal"
11982     then
11983
11984 cat >>confdefs.h <<\_ACEOF
11985 #define HAVE_HEIMDAL 1
11986 _ACEOF
11987
11988     fi
11989     CPPFLAGS="$CPPFLAGS $GSSAPI_CFLAGS"
11990     MUTTLIBS="$MUTTLIBS $GSSAPI_LIBS"
11991
11992 cat >>confdefs.h <<\_ACEOF
11993 #define USE_GSS 1
11994 _ACEOF
11995
11996     need_gss="yes"
11997   else
11998     { echo "$as_me:$LINENO: WARNING: GSS was requested but IMAP is not enabled" >&5
11999 echo "$as_me: WARNING: GSS was requested but IMAP is not enabled" >&2;}
12000   fi
12001 fi
12002
12003
12004 if test x$need_gss = xyes; then
12005   USE_GSS_TRUE=
12006   USE_GSS_FALSE='#'
12007 else
12008   USE_GSS_TRUE='#'
12009   USE_GSS_FALSE=
12010 fi
12011
12012
12013
12014 # Check whether --with-ssl or --without-ssl was given.
12015 if test "${with_ssl+set}" = set; then
12016   withval="$with_ssl"
12017          if test "$with_ssl" != "no"
12018         then
12019           if test "$need_socket" != "yes"; then
12020            { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
12021 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
12022    { (exit 1); exit 1; }; }
12023           fi
12024
12025           if test "$with_ssl" != "yes"
12026           then
12027            LDFLAGS="$LDFLAGS -L$withval/lib"
12028            CPPFLAGS="$CPPFLAGS -I$withval/include"
12029           fi
12030           saved_LIBS="$LIBS"
12031
12032
12033 echo "$as_me:$LINENO: checking for X509_new in -lcrypto" >&5
12034 echo $ECHO_N "checking for X509_new in -lcrypto... $ECHO_C" >&6
12035 if test "${ac_cv_lib_crypto_X509_new+set}" = set; then
12036   echo $ECHO_N "(cached) $ECHO_C" >&6
12037 else
12038   ac_check_lib_save_LIBS=$LIBS
12039 LIBS="-lcrypto  $LIBS"
12040 cat >conftest.$ac_ext <<_ACEOF
12041 /* confdefs.h.  */
12042 _ACEOF
12043 cat confdefs.h >>conftest.$ac_ext
12044 cat >>conftest.$ac_ext <<_ACEOF
12045 /* end confdefs.h.  */
12046
12047 /* Override any gcc2 internal prototype to avoid an error.  */
12048 #ifdef __cplusplus
12049 extern "C"
12050 #endif
12051 /* We use char because int might match the return type of a gcc2
12052    builtin and then its argument prototype would still apply.  */
12053 char X509_new ();
12054 int
12055 main ()
12056 {
12057 X509_new ();
12058   ;
12059   return 0;
12060 }
12061 _ACEOF
12062 rm -f conftest.$ac_objext conftest$ac_exeext
12063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12064   (eval $ac_link) 2>conftest.er1
12065   ac_status=$?
12066   grep -v '^ *+' conftest.er1 >conftest.err
12067   rm -f conftest.er1
12068   cat conftest.err >&5
12069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070   (exit $ac_status); } &&
12071          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12073   (eval $ac_try) 2>&5
12074   ac_status=$?
12075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076   (exit $ac_status); }; } &&
12077          { ac_try='test -s conftest$ac_exeext'
12078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12079   (eval $ac_try) 2>&5
12080   ac_status=$?
12081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082   (exit $ac_status); }; }; then
12083   ac_cv_lib_crypto_X509_new=yes
12084 else
12085   echo "$as_me: failed program was:" >&5
12086 sed 's/^/| /' conftest.$ac_ext >&5
12087
12088 ac_cv_lib_crypto_X509_new=no
12089 fi
12090 rm -f conftest.err conftest.$ac_objext \
12091       conftest$ac_exeext conftest.$ac_ext
12092 LIBS=$ac_check_lib_save_LIBS
12093 fi
12094 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_X509_new" >&5
12095 echo "${ECHO_T}$ac_cv_lib_crypto_X509_new" >&6
12096 if test $ac_cv_lib_crypto_X509_new = yes; then
12097   cat >>confdefs.h <<_ACEOF
12098 #define HAVE_LIBCRYPTO 1
12099 _ACEOF
12100
12101   LIBS="-lcrypto $LIBS"
12102
12103 else
12104   { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
12105 echo "$as_me: error: Unable to find SSL library" >&2;}
12106    { (exit 1); exit 1; }; }
12107 fi
12108
12109
12110 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
12111 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
12112 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
12113   echo $ECHO_N "(cached) $ECHO_C" >&6
12114 else
12115   ac_check_lib_save_LIBS=$LIBS
12116 LIBS="-lssl -lcrypto $LIBS"
12117 cat >conftest.$ac_ext <<_ACEOF
12118 /* confdefs.h.  */
12119 _ACEOF
12120 cat confdefs.h >>conftest.$ac_ext
12121 cat >>conftest.$ac_ext <<_ACEOF
12122 /* end confdefs.h.  */
12123
12124 /* Override any gcc2 internal prototype to avoid an error.  */
12125 #ifdef __cplusplus
12126 extern "C"
12127 #endif
12128 /* We use char because int might match the return type of a gcc2
12129    builtin and then its argument prototype would still apply.  */
12130 char SSL_new ();
12131 int
12132 main ()
12133 {
12134 SSL_new ();
12135   ;
12136   return 0;
12137 }
12138 _ACEOF
12139 rm -f conftest.$ac_objext conftest$ac_exeext
12140 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12141   (eval $ac_link) 2>conftest.er1
12142   ac_status=$?
12143   grep -v '^ *+' conftest.er1 >conftest.err
12144   rm -f conftest.er1
12145   cat conftest.err >&5
12146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147   (exit $ac_status); } &&
12148          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12149   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12150   (eval $ac_try) 2>&5
12151   ac_status=$?
12152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153   (exit $ac_status); }; } &&
12154          { ac_try='test -s conftest$ac_exeext'
12155   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156   (eval $ac_try) 2>&5
12157   ac_status=$?
12158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159   (exit $ac_status); }; }; then
12160   ac_cv_lib_ssl_SSL_new=yes
12161 else
12162   echo "$as_me: failed program was:" >&5
12163 sed 's/^/| /' conftest.$ac_ext >&5
12164
12165 ac_cv_lib_ssl_SSL_new=no
12166 fi
12167 rm -f conftest.err conftest.$ac_objext \
12168       conftest$ac_exeext conftest.$ac_ext
12169 LIBS=$ac_check_lib_save_LIBS
12170 fi
12171 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
12172 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6
12173 if test $ac_cv_lib_ssl_SSL_new = yes; then
12174   cat >>confdefs.h <<_ACEOF
12175 #define HAVE_LIBSSL 1
12176 _ACEOF
12177
12178   LIBS="-lssl $LIBS"
12179
12180 else
12181   { { echo "$as_me:$LINENO: error: Unable to find SSL library" >&5
12182 echo "$as_me: error: Unable to find SSL library" >&2;}
12183    { (exit 1); exit 1; }; }
12184 fi
12185
12186
12187
12188
12189 for ac_func in RAND_status RAND_egd
12190 do
12191 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12192 echo "$as_me:$LINENO: checking for $ac_func" >&5
12193 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
12194 if eval "test \"\${$as_ac_var+set}\" = set"; then
12195   echo $ECHO_N "(cached) $ECHO_C" >&6
12196 else
12197   cat >conftest.$ac_ext <<_ACEOF
12198 /* confdefs.h.  */
12199 _ACEOF
12200 cat confdefs.h >>conftest.$ac_ext
12201 cat >>conftest.$ac_ext <<_ACEOF
12202 /* end confdefs.h.  */
12203 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12204    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12205 #define $ac_func innocuous_$ac_func
12206
12207 /* System header to define __stub macros and hopefully few prototypes,
12208     which can conflict with char $ac_func (); below.
12209     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12210     <limits.h> exists even on freestanding compilers.  */
12211
12212 #ifdef __STDC__
12213 # include <limits.h>
12214 #else
12215 # include <assert.h>
12216 #endif
12217
12218 #undef $ac_func
12219
12220 /* Override any gcc2 internal prototype to avoid an error.  */
12221 #ifdef __cplusplus
12222 extern "C"
12223 {
12224 #endif
12225 /* We use char because int might match the return type of a gcc2
12226    builtin and then its argument prototype would still apply.  */
12227 char $ac_func ();
12228 /* The GNU C library defines this for functions which it implements
12229     to always fail with ENOSYS.  Some functions are actually named
12230     something starting with __ and the normal name is an alias.  */
12231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12232 choke me
12233 #else
12234 char (*f) () = $ac_func;
12235 #endif
12236 #ifdef __cplusplus
12237 }
12238 #endif
12239
12240 int
12241 main ()
12242 {
12243 return f != $ac_func;
12244   ;
12245   return 0;
12246 }
12247 _ACEOF
12248 rm -f conftest.$ac_objext conftest$ac_exeext
12249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12250   (eval $ac_link) 2>conftest.er1
12251   ac_status=$?
12252   grep -v '^ *+' conftest.er1 >conftest.err
12253   rm -f conftest.er1
12254   cat conftest.err >&5
12255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256   (exit $ac_status); } &&
12257          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12259   (eval $ac_try) 2>&5
12260   ac_status=$?
12261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262   (exit $ac_status); }; } &&
12263          { ac_try='test -s conftest$ac_exeext'
12264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12265   (eval $ac_try) 2>&5
12266   ac_status=$?
12267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268   (exit $ac_status); }; }; then
12269   eval "$as_ac_var=yes"
12270 else
12271   echo "$as_me: failed program was:" >&5
12272 sed 's/^/| /' conftest.$ac_ext >&5
12273
12274 eval "$as_ac_var=no"
12275 fi
12276 rm -f conftest.err conftest.$ac_objext \
12277       conftest$ac_exeext conftest.$ac_ext
12278 fi
12279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
12280 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
12281 if test `eval echo '${'$as_ac_var'}'` = yes; then
12282   cat >>confdefs.h <<_ACEOF
12283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12284 _ACEOF
12285
12286 fi
12287 done
12288
12289
12290
12291 cat >>confdefs.h <<\_ACEOF
12292 #define USE_SSL 1
12293 _ACEOF
12294
12295           LIBS="$saved_LIBS"
12296           MUTTLIBS="$MUTTLIBS -lssl -lcrypto"
12297           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl.o"
12298           need_ssl=yes
12299
12300         fi
12301
12302 fi;
12303
12304
12305 if test x$need_ssl = xyes; then
12306   USE_SSL_TRUE=
12307   USE_SSL_FALSE='#'
12308 else
12309   USE_SSL_TRUE='#'
12310   USE_SSL_FALSE=
12311 fi
12312
12313
12314 # Check whether --with-nss or --without-nss was given.
12315 if test "${with_nss+set}" = set; then
12316   withval="$with_nss"
12317          if test "$with_nss" != no
12318         then
12319           if test "$need_socket" != "yes"; then
12320            { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
12321 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
12322    { (exit 1); exit 1; }; }
12323           fi
12324
12325           if test "$with_nss" != "yes"
12326           then
12327            LDFLAGS="$LDFLAGS -L$withval/lib"
12328            CPPFLAGS="$CPPFLAGS -I$withval/include -I$withval/public/security"
12329           fi
12330
12331
12332 cat >>confdefs.h <<\_ACEOF
12333 #define USE_NSS 1
12334 _ACEOF
12335
12336           MUTTLIBS="$MUTTLIBS -lssl -lnss -lcertdb -lcerthi -lcryptohi"
12337           MUTTLIBS="$MUTTLIBS -lpk11wrap -lsoftoken -lsecutil -ldbm -lplds4 -lplc4 -lfreebl"
12338           MUTTLIBS="$MUTTLIBS -lnspr4"
12339
12340           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_nss.o"
12341           need_ssl=yes
12342         fi
12343
12344 fi;
12345
12346
12347 # Check whether --with-gnutls or --without-gnutls was given.
12348 if test "${with_gnutls+set}" = set; then
12349   withval="$with_gnutls"
12350   gnutls_prefix="$withval"
12351 else
12352   gnutls_prefix="no"
12353 fi;
12354 if test "$gnutls_prefix" != "no"
12355 then
12356   if test "$need_socket" != "yes"
12357   then
12358     { { echo "$as_me:$LINENO: error: SSL support is only useful with POP or IMAP support" >&5
12359 echo "$as_me: error: SSL support is only useful with POP or IMAP support" >&2;}
12360    { (exit 1); exit 1; }; }
12361   fi
12362     libgnutls_config_prefix=$gnutls_prefix
12363   min_libgnutls_version=0.1.0
12364
12365   if test x$libgnutls_config_prefix != x ; then
12366      if test x${LIBGNUTLS_CONFIG+set} != xset ; then
12367         LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
12368      fi
12369   fi
12370
12371   # Extract the first word of "libgnutls-config", so it can be a program name with args.
12372 set dummy libgnutls-config; ac_word=$2
12373 echo "$as_me:$LINENO: checking for $ac_word" >&5
12374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12375 if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
12376   echo $ECHO_N "(cached) $ECHO_C" >&6
12377 else
12378   case $LIBGNUTLS_CONFIG in
12379   [\\/]* | ?:[\\/]*)
12380   ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
12381   ;;
12382   *)
12383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12384 for as_dir in $PATH
12385 do
12386   IFS=$as_save_IFS
12387   test -z "$as_dir" && as_dir=.
12388   for ac_exec_ext in '' $ac_executable_extensions; do
12389   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12390     ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12391     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12392     break 2
12393   fi
12394 done
12395 done
12396
12397   test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
12398   ;;
12399 esac
12400 fi
12401 LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
12402
12403 if test -n "$LIBGNUTLS_CONFIG"; then
12404   echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
12405 echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6
12406 else
12407   echo "$as_me:$LINENO: result: no" >&5
12408 echo "${ECHO_T}no" >&6
12409 fi
12410
12411   echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
12412 echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6
12413   no_libgnutls=""
12414   if test "$LIBGNUTLS_CONFIG" = "no" ; then
12415     no_libgnutls=yes
12416   else
12417     LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
12418     LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
12419     libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
12420
12421
12422       ac_save_CFLAGS="$CFLAGS"
12423       ac_save_LIBS="$LIBS"
12424       CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
12425       LIBS="$LIBS $LIBGNUTLS_LIBS"
12426
12427       rm -f conf.libgnutlstest
12428       if test "$cross_compiling" = yes; then
12429   echo $ac_n "cross compiling; assumed OK... $ac_c"
12430 else
12431   cat >conftest.$ac_ext <<_ACEOF
12432 /* confdefs.h.  */
12433 _ACEOF
12434 cat confdefs.h >>conftest.$ac_ext
12435 cat >>conftest.$ac_ext <<_ACEOF
12436 /* end confdefs.h.  */
12437
12438 #include <stdio.h>
12439 #include <stdlib.h>
12440 #include <string.h>
12441 #include <gnutls/gnutls.h>
12442
12443 int
12444 main ()
12445 {
12446     system ("touch conf.libgnutlstest");
12447
12448     if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
12449     {
12450       printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
12451              "$libgnutls_config_version", gnutls_check_version(NULL) );
12452       printf("*** was found! If libgnutls-config was correct, then it is best\n");
12453       printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
12454       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12455       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12456       printf("*** required on your system.\n");
12457       printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
12458       printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
12459       printf("*** before re-running configure\n");
12460     }
12461     else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
12462     {
12463       printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
12464       printf("*** library (version %s)\n", gnutls_check_version(NULL) );
12465     }
12466     else
12467     {
12468       if ( gnutls_check_version( "$min_libgnutls_version" ) )
12469       {
12470         return 0;
12471       }
12472      else
12473       {
12474         printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
12475                 gnutls_check_version(NULL) );
12476         printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
12477                "$min_libgnutls_version" );
12478         printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
12479         printf("*** \n");
12480         printf("*** If you have already installed a sufficiently new version, this error\n");
12481         printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
12482         printf("*** being found. The easiest way to fix this is to remove the old version\n");
12483         printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
12484         printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
12485         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12486         printf("*** so that the correct libraries are found at run-time))\n");
12487       }
12488     }
12489   return 1;
12490 }
12491
12492 _ACEOF
12493 rm -f conftest$ac_exeext
12494 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12495   (eval $ac_link) 2>&5
12496   ac_status=$?
12497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500   (eval $ac_try) 2>&5
12501   ac_status=$?
12502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503   (exit $ac_status); }; }; then
12504   :
12505 else
12506   echo "$as_me: program exited with status $ac_status" >&5
12507 echo "$as_me: failed program was:" >&5
12508 sed 's/^/| /' conftest.$ac_ext >&5
12509
12510 ( exit $ac_status )
12511 no_libgnutls=yes
12512 fi
12513 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12514 fi
12515        CFLAGS="$ac_save_CFLAGS"
12516        LIBS="$ac_save_LIBS"
12517   fi
12518
12519   if test "x$no_libgnutls" = x ; then
12520      echo "$as_me:$LINENO: result: yes" >&5
12521 echo "${ECHO_T}yes" >&6
12522
12523 for ac_header in gnutls/openssl.h
12524 do
12525 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12527   echo "$as_me:$LINENO: checking for $ac_header" >&5
12528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12530   echo $ECHO_N "(cached) $ECHO_C" >&6
12531 fi
12532 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12533 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12534 else
12535   # Is the header compilable?
12536 echo "$as_me:$LINENO: checking $ac_header usability" >&5
12537 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12538 cat >conftest.$ac_ext <<_ACEOF
12539 /* confdefs.h.  */
12540 _ACEOF
12541 cat confdefs.h >>conftest.$ac_ext
12542 cat >>conftest.$ac_ext <<_ACEOF
12543 /* end confdefs.h.  */
12544 $ac_includes_default
12545 #include <$ac_header>
12546 _ACEOF
12547 rm -f conftest.$ac_objext
12548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12549   (eval $ac_compile) 2>conftest.er1
12550   ac_status=$?
12551   grep -v '^ *+' conftest.er1 >conftest.err
12552   rm -f conftest.er1
12553   cat conftest.err >&5
12554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555   (exit $ac_status); } &&
12556          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12558   (eval $ac_try) 2>&5
12559   ac_status=$?
12560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561   (exit $ac_status); }; } &&
12562          { ac_try='test -s conftest.$ac_objext'
12563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12564   (eval $ac_try) 2>&5
12565   ac_status=$?
12566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12567   (exit $ac_status); }; }; then
12568   ac_header_compiler=yes
12569 else
12570   echo "$as_me: failed program was:" >&5
12571 sed 's/^/| /' conftest.$ac_ext >&5
12572
12573 ac_header_compiler=no
12574 fi
12575 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12576 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12577 echo "${ECHO_T}$ac_header_compiler" >&6
12578
12579 # Is the header present?
12580 echo "$as_me:$LINENO: checking $ac_header presence" >&5
12581 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12582 cat >conftest.$ac_ext <<_ACEOF
12583 /* confdefs.h.  */
12584 _ACEOF
12585 cat confdefs.h >>conftest.$ac_ext
12586 cat >>conftest.$ac_ext <<_ACEOF
12587 /* end confdefs.h.  */
12588 #include <$ac_header>
12589 _ACEOF
12590 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12591   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12592   ac_status=$?
12593   grep -v '^ *+' conftest.er1 >conftest.err
12594   rm -f conftest.er1
12595   cat conftest.err >&5
12596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597   (exit $ac_status); } >/dev/null; then
12598   if test -s conftest.err; then
12599     ac_cpp_err=$ac_c_preproc_warn_flag
12600     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12601   else
12602     ac_cpp_err=
12603   fi
12604 else
12605   ac_cpp_err=yes
12606 fi
12607 if test -z "$ac_cpp_err"; then
12608   ac_header_preproc=yes
12609 else
12610   echo "$as_me: failed program was:" >&5
12611 sed 's/^/| /' conftest.$ac_ext >&5
12612
12613   ac_header_preproc=no
12614 fi
12615 rm -f conftest.err conftest.$ac_ext
12616 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12617 echo "${ECHO_T}$ac_header_preproc" >&6
12618
12619 # So?  What about this header?
12620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12621   yes:no: )
12622     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12623 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12624     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12625 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12626     ac_header_preproc=yes
12627     ;;
12628   no:yes:* )
12629     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12630 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12631     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12632 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12633     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12634 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12635     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12636 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12637     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12638 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12639     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12640 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12641     (
12642       cat <<\_ASBOX
12643 ## ------------------------------------------ ##
12644 ## Report this to the AC_PACKAGE_NAME lists.  ##
12645 ## ------------------------------------------ ##
12646 _ASBOX
12647     ) |
12648       sed "s/^/$as_me: WARNING:     /" >&2
12649     ;;
12650 esac
12651 echo "$as_me:$LINENO: checking for $ac_header" >&5
12652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
12654   echo $ECHO_N "(cached) $ECHO_C" >&6
12655 else
12656   eval "$as_ac_Header=\$ac_header_preproc"
12657 fi
12658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12659 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12660
12661 fi
12662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12663   cat >>confdefs.h <<_ACEOF
12664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12665 _ACEOF
12666
12667 fi
12668
12669 done
12670
12671          CPPFLAGS="$CPPFLAGS $LIBGNUTLS_CFLAGS"
12672     MUTTLIBS="$MUTTLIBS $LIBGNUTLS_LIBS"
12673
12674 cat >>confdefs.h <<\_ACEOF
12675 #define USE_GNUTLS 1
12676 _ACEOF
12677
12678
12679     MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_ssl_gnutls.o"
12680     need_ssl=yes
12681   else
12682      if test -f conf.libgnutlstest ; then
12683         :
12684      else
12685         echo "$as_me:$LINENO: result: no" >&5
12686 echo "${ECHO_T}no" >&6
12687      fi
12688      if test "$LIBGNUTLS_CONFIG" = "no" ; then
12689        echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
12690        echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
12691        echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
12692        echo "*** full path to libgnutls-config."
12693      else
12694        if test -f conf.libgnutlstest ; then
12695         :
12696        else
12697           echo "*** Could not run libgnutls test program, checking why..."
12698           CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
12699           LIBS="$LIBS $LIBGNUTLS_LIBS"
12700           cat >conftest.$ac_ext <<_ACEOF
12701 /* confdefs.h.  */
12702 _ACEOF
12703 cat confdefs.h >>conftest.$ac_ext
12704 cat >>conftest.$ac_ext <<_ACEOF
12705 /* end confdefs.h.  */
12706
12707 #include <stdio.h>
12708 #include <stdlib.h>
12709 #include <string.h>
12710 #include <gnutls/gnutls.h>
12711
12712 int
12713 main ()
12714 {
12715  return !!gnutls_check_version(NULL);
12716   ;
12717   return 0;
12718 }
12719 _ACEOF
12720 rm -f conftest.$ac_objext conftest$ac_exeext
12721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12722   (eval $ac_link) 2>conftest.er1
12723   ac_status=$?
12724   grep -v '^ *+' conftest.er1 >conftest.err
12725   rm -f conftest.er1
12726   cat conftest.err >&5
12727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728   (exit $ac_status); } &&
12729          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12731   (eval $ac_try) 2>&5
12732   ac_status=$?
12733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734   (exit $ac_status); }; } &&
12735          { ac_try='test -s conftest$ac_exeext'
12736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12737   (eval $ac_try) 2>&5
12738   ac_status=$?
12739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740   (exit $ac_status); }; }; then
12741    echo "*** The test program compiled, but did not run. This usually means"
12742           echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
12743           echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
12744           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12745           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12746           echo "*** is required on your system"
12747           echo "***"
12748           echo "*** If you have an old version installed, it is best to remove it, although"
12749           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12750           echo "***"
12751 else
12752   echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.$ac_ext >&5
12754
12755  echo "*** The test program failed to compile or link. See the file config.log for the"
12756           echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
12757           echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
12758           echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
12759 fi
12760 rm -f conftest.err conftest.$ac_objext \
12761       conftest$ac_exeext conftest.$ac_ext
12762           CFLAGS="$ac_save_CFLAGS"
12763           LIBS="$ac_save_LIBS"
12764        fi
12765      fi
12766      LIBGNUTLS_CFLAGS=""
12767      LIBGNUTLS_LIBS=""
12768            { { echo "$as_me:$LINENO: error: could not find libgnutls" >&5
12769 echo "$as_me: error: could not find libgnutls" >&2;}
12770    { (exit 1); exit 1; }; }
12771
12772   fi
12773   rm -f conf.libgnutlstest
12774
12775
12776
12777 fi
12778
12779
12780 # Check whether --with-sasl or --without-sasl was given.
12781 if test "${with_sasl+set}" = set; then
12782   withval="$with_sasl"
12783
12784         if test "$with_sasl" != "no" -a "$need_imap" != "yes" -a "$need_pop" != "yes"
12785         then
12786           { { echo "$as_me:$LINENO: error: SASL support is only useful with POP or IMAP support" >&5
12787 echo "$as_me: error: SASL support is only useful with POP or IMAP support" >&2;}
12788    { (exit 1); exit 1; }; }
12789         fi
12790
12791         if test "$with_sasl" != "no"
12792         then
12793           if test "$with_sasl" != "yes"
12794           then
12795             CPPFLAGS="$CPPFLAGS -I$with_sasl/include"
12796             LDFLAGS="$LDFLAGS -L$with_sasl/lib"
12797           fi
12798
12799           saved_LIBS="$LIBS"
12800
12801
12802 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
12803 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
12804 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
12805   echo $ECHO_N "(cached) $ECHO_C" >&6
12806 else
12807   ac_check_lib_save_LIBS=$LIBS
12808 LIBS="-lsasl  $LIBS"
12809 cat >conftest.$ac_ext <<_ACEOF
12810 /* confdefs.h.  */
12811 _ACEOF
12812 cat confdefs.h >>conftest.$ac_ext
12813 cat >>conftest.$ac_ext <<_ACEOF
12814 /* end confdefs.h.  */
12815
12816 /* Override any gcc2 internal prototype to avoid an error.  */
12817 #ifdef __cplusplus
12818 extern "C"
12819 #endif
12820 /* We use char because int might match the return type of a gcc2
12821    builtin and then its argument prototype would still apply.  */
12822 char sasl_client_init ();
12823 int
12824 main ()
12825 {
12826 sasl_client_init ();
12827   ;
12828   return 0;
12829 }
12830 _ACEOF
12831 rm -f conftest.$ac_objext conftest$ac_exeext
12832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12833   (eval $ac_link) 2>conftest.er1
12834   ac_status=$?
12835   grep -v '^ *+' conftest.er1 >conftest.err
12836   rm -f conftest.er1
12837   cat conftest.err >&5
12838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12839   (exit $ac_status); } &&
12840          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12842   (eval $ac_try) 2>&5
12843   ac_status=$?
12844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845   (exit $ac_status); }; } &&
12846          { ac_try='test -s conftest$ac_exeext'
12847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12848   (eval $ac_try) 2>&5
12849   ac_status=$?
12850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851   (exit $ac_status); }; }; then
12852   ac_cv_lib_sasl_sasl_client_init=yes
12853 else
12854   echo "$as_me: failed program was:" >&5
12855 sed 's/^/| /' conftest.$ac_ext >&5
12856
12857 ac_cv_lib_sasl_sasl_client_init=no
12858 fi
12859 rm -f conftest.err conftest.$ac_objext \
12860       conftest$ac_exeext conftest.$ac_ext
12861 LIBS=$ac_check_lib_save_LIBS
12862 fi
12863 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
12864 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
12865 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
12866   cat >>confdefs.h <<_ACEOF
12867 #define HAVE_LIBSASL 1
12868 _ACEOF
12869
12870   LIBS="-lsasl $LIBS"
12871
12872 else
12873   { { echo "$as_me:$LINENO: error: could not find libsasl" >&5
12874 echo "$as_me: error: could not find libsasl" >&2;}
12875    { (exit 1); exit 1; }; }
12876 fi
12877
12878
12879           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
12880           MUTTLIBS="$MUTTLIBS -lsasl"
12881           LIBS="$saved_LIBS"
12882
12883 cat >>confdefs.h <<\_ACEOF
12884 #define USE_SASL 1
12885 _ACEOF
12886
12887           need_sasl=yes
12888         fi
12889
12890 fi;
12891
12892
12893 if test x$need_sasl = xyes; then
12894   USE_SASL_TRUE=
12895   USE_SASL_FALSE='#'
12896 else
12897   USE_SASL_TRUE='#'
12898   USE_SASL_FALSE=
12899 fi
12900
12901
12902 # Check whether --with-sasl2 or --without-sasl2 was given.
12903 if test "${with_sasl2+set}" = set; then
12904   withval="$with_sasl2"
12905
12906         if test "$with_sasl2" != "no" -a "$need_imap" != "yes" -a "$need_pop" != "yes"
12907         then
12908           { { echo "$as_me:$LINENO: error: SASL2 support is only useful with POP or IMAP support" >&5
12909 echo "$as_me: error: SASL2 support is only useful with POP or IMAP support" >&2;}
12910    { (exit 1); exit 1; }; }
12911         fi
12912
12913         if test "$with_sasl2" != "no"
12914         then
12915           if test "$with_sasl2" != "yes"
12916           then
12917             CPPFLAGS="$CPPFLAGS -I$with_sasl2/include"
12918             LDFLAGS="$LDFLAGS -L$with_sasl2/lib"
12919           fi
12920
12921           saved_LIBS="$LIBS"
12922
12923
12924 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
12925 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
12926 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
12927   echo $ECHO_N "(cached) $ECHO_C" >&6
12928 else
12929   ac_check_lib_save_LIBS=$LIBS
12930 LIBS="-lsasl2  $LIBS"
12931 cat >conftest.$ac_ext <<_ACEOF
12932 /* confdefs.h.  */
12933 _ACEOF
12934 cat confdefs.h >>conftest.$ac_ext
12935 cat >>conftest.$ac_ext <<_ACEOF
12936 /* end confdefs.h.  */
12937
12938 /* Override any gcc2 internal prototype to avoid an error.  */
12939 #ifdef __cplusplus
12940 extern "C"
12941 #endif
12942 /* We use char because int might match the return type of a gcc2
12943    builtin and then its argument prototype would still apply.  */
12944 char sasl_client_init ();
12945 int
12946 main ()
12947 {
12948 sasl_client_init ();
12949   ;
12950   return 0;
12951 }
12952 _ACEOF
12953 rm -f conftest.$ac_objext conftest$ac_exeext
12954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12955   (eval $ac_link) 2>conftest.er1
12956   ac_status=$?
12957   grep -v '^ *+' conftest.er1 >conftest.err
12958   rm -f conftest.er1
12959   cat conftest.err >&5
12960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961   (exit $ac_status); } &&
12962          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
12963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12964   (eval $ac_try) 2>&5
12965   ac_status=$?
12966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967   (exit $ac_status); }; } &&
12968          { ac_try='test -s conftest$ac_exeext'
12969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12970   (eval $ac_try) 2>&5
12971   ac_status=$?
12972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973   (exit $ac_status); }; }; then
12974   ac_cv_lib_sasl2_sasl_client_init=yes
12975 else
12976   echo "$as_me: failed program was:" >&5
12977 sed 's/^/| /' conftest.$ac_ext >&5
12978
12979 ac_cv_lib_sasl2_sasl_client_init=no
12980 fi
12981 rm -f conftest.err conftest.$ac_objext \
12982       conftest$ac_exeext conftest.$ac_ext
12983 LIBS=$ac_check_lib_save_LIBS
12984 fi
12985 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
12986 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
12987 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
12988   cat >>confdefs.h <<_ACEOF
12989 #define HAVE_LIBSASL2 1
12990 _ACEOF
12991
12992   LIBS="-lsasl2 $LIBS"
12993
12994 else
12995   { { echo "$as_me:$LINENO: error: could not find libsasl2" >&5
12996 echo "$as_me: error: could not find libsasl2" >&2;}
12997    { (exit 1); exit 1; }; }
12998 fi
12999
13000
13001           MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_sasl.o"
13002           MUTTLIBS="$MUTTLIBS -lsasl2"
13003           LIBS="$saved_LIBS"
13004
13005 cat >>confdefs.h <<\_ACEOF
13006 #define USE_SASL 1
13007 _ACEOF
13008
13009
13010 cat >>confdefs.h <<\_ACEOF
13011 #define USE_SASL2 1
13012 _ACEOF
13013
13014           need_sasl=yes
13015         fi
13016
13017 fi;
13018
13019
13020 if test x$need_sasl = xyes; then
13021   USE_SASL_TRUE=
13022   USE_SASL_FALSE='#'
13023 else
13024   USE_SASL_TRUE='#'
13025   USE_SASL_FALSE=
13026 fi
13027
13028
13029 # Check whether --with-idn or --without-idn was given.
13030 if test "${with_idn+set}" = set; then
13031   withval="$with_idn"
13032
13033                   if test "$with_idn" != "no" ; then
13034                         if test "$with_idn" != "yes" ; then
13035                            CPPFLAGS="$CPPFLAGS -I$with_idn/include"
13036                            LDFLAGS="$LDFLAGS -L$with_idn/lib"
13037                         fi
13038                   fi
13039
13040
13041 fi;
13042
13043 if test "x$with_idn" != "xno"; then
13044
13045 echo "$as_me:$LINENO: checking for stringprep_check_version in -lidn" >&5
13046 echo $ECHO_N "checking for stringprep_check_version in -lidn... $ECHO_C" >&6
13047 if test "${ac_cv_lib_idn_stringprep_check_version+set}" = set; then
13048   echo $ECHO_N "(cached) $ECHO_C" >&6
13049 else
13050   ac_check_lib_save_LIBS=$LIBS
13051 LIBS="-lidn  $LIBS"
13052 cat >conftest.$ac_ext <<_ACEOF
13053 /* confdefs.h.  */
13054 _ACEOF
13055 cat confdefs.h >>conftest.$ac_ext
13056 cat >>conftest.$ac_ext <<_ACEOF
13057 /* end confdefs.h.  */
13058
13059 /* Override any gcc2 internal prototype to avoid an error.  */
13060 #ifdef __cplusplus
13061 extern "C"
13062 #endif
13063 /* We use char because int might match the return type of a gcc2
13064    builtin and then its argument prototype would still apply.  */
13065 char stringprep_check_version ();
13066 int
13067 main ()
13068 {
13069 stringprep_check_version ();
13070   ;
13071   return 0;
13072 }
13073 _ACEOF
13074 rm -f conftest.$ac_objext conftest$ac_exeext
13075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13076   (eval $ac_link) 2>conftest.er1
13077   ac_status=$?
13078   grep -v '^ *+' conftest.er1 >conftest.err
13079   rm -f conftest.er1
13080   cat conftest.err >&5
13081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13082   (exit $ac_status); } &&
13083          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13084   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13085   (eval $ac_try) 2>&5
13086   ac_status=$?
13087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088   (exit $ac_status); }; } &&
13089          { ac_try='test -s conftest$ac_exeext'
13090   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13091   (eval $ac_try) 2>&5
13092   ac_status=$?
13093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094   (exit $ac_status); }; }; then
13095   ac_cv_lib_idn_stringprep_check_version=yes
13096 else
13097   echo "$as_me: failed program was:" >&5
13098 sed 's/^/| /' conftest.$ac_ext >&5
13099
13100 ac_cv_lib_idn_stringprep_check_version=no
13101 fi
13102 rm -f conftest.err conftest.$ac_objext \
13103       conftest$ac_exeext conftest.$ac_ext
13104 LIBS=$ac_check_lib_save_LIBS
13105 fi
13106 echo "$as_me:$LINENO: result: $ac_cv_lib_idn_stringprep_check_version" >&5
13107 echo "${ECHO_T}$ac_cv_lib_idn_stringprep_check_version" >&6
13108 if test $ac_cv_lib_idn_stringprep_check_version = yes; then
13109   cat >>confdefs.h <<_ACEOF
13110 #define HAVE_LIBIDN 1
13111 _ACEOF
13112
13113   LIBS="-lidn $LIBS"
13114
13115 fi
13116
13117
13118
13119 for ac_func in idna_to_unicode_utf8_from_utf8 idna_to_unicode_8z8z
13120 do
13121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13122 echo "$as_me:$LINENO: checking for $ac_func" >&5
13123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13124 if eval "test \"\${$as_ac_var+set}\" = set"; then
13125   echo $ECHO_N "(cached) $ECHO_C" >&6
13126 else
13127   cat >conftest.$ac_ext <<_ACEOF
13128 /* confdefs.h.  */
13129 _ACEOF
13130 cat confdefs.h >>conftest.$ac_ext
13131 cat >>conftest.$ac_ext <<_ACEOF
13132 /* end confdefs.h.  */
13133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13134    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13135 #define $ac_func innocuous_$ac_func
13136
13137 /* System header to define __stub macros and hopefully few prototypes,
13138     which can conflict with char $ac_func (); below.
13139     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13140     <limits.h> exists even on freestanding compilers.  */
13141
13142 #ifdef __STDC__
13143 # include <limits.h>
13144 #else
13145 # include <assert.h>
13146 #endif
13147
13148 #undef $ac_func
13149
13150 /* Override any gcc2 internal prototype to avoid an error.  */
13151 #ifdef __cplusplus
13152 extern "C"
13153 {
13154 #endif
13155 /* We use char because int might match the return type of a gcc2
13156    builtin and then its argument prototype would still apply.  */
13157 char $ac_func ();
13158 /* The GNU C library defines this for functions which it implements
13159     to always fail with ENOSYS.  Some functions are actually named
13160     something starting with __ and the normal name is an alias.  */
13161 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13162 choke me
13163 #else
13164 char (*f) () = $ac_func;
13165 #endif
13166 #ifdef __cplusplus
13167 }
13168 #endif
13169
13170 int
13171 main ()
13172 {
13173 return f != $ac_func;
13174   ;
13175   return 0;
13176 }
13177 _ACEOF
13178 rm -f conftest.$ac_objext conftest$ac_exeext
13179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13180   (eval $ac_link) 2>conftest.er1
13181   ac_status=$?
13182   grep -v '^ *+' conftest.er1 >conftest.err
13183   rm -f conftest.er1
13184   cat conftest.err >&5
13185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186   (exit $ac_status); } &&
13187          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13189   (eval $ac_try) 2>&5
13190   ac_status=$?
13191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192   (exit $ac_status); }; } &&
13193          { ac_try='test -s conftest$ac_exeext'
13194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13195   (eval $ac_try) 2>&5
13196   ac_status=$?
13197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198   (exit $ac_status); }; }; then
13199   eval "$as_ac_var=yes"
13200 else
13201   echo "$as_me: failed program was:" >&5
13202 sed 's/^/| /' conftest.$ac_ext >&5
13203
13204 eval "$as_ac_var=no"
13205 fi
13206 rm -f conftest.err conftest.$ac_objext \
13207       conftest$ac_exeext conftest.$ac_ext
13208 fi
13209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13210 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13211 if test `eval echo '${'$as_ac_var'}'` = yes; then
13212   cat >>confdefs.h <<_ACEOF
13213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13214 _ACEOF
13215
13216 fi
13217 done
13218
13219
13220
13221 for ac_func in idna_to_ascii_from_utf8 idna_to_ascii_8z
13222 do
13223 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13224 echo "$as_me:$LINENO: checking for $ac_func" >&5
13225 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13226 if eval "test \"\${$as_ac_var+set}\" = set"; then
13227   echo $ECHO_N "(cached) $ECHO_C" >&6
13228 else
13229   cat >conftest.$ac_ext <<_ACEOF
13230 /* confdefs.h.  */
13231 _ACEOF
13232 cat confdefs.h >>conftest.$ac_ext
13233 cat >>conftest.$ac_ext <<_ACEOF
13234 /* end confdefs.h.  */
13235 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13236    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13237 #define $ac_func innocuous_$ac_func
13238
13239 /* System header to define __stub macros and hopefully few prototypes,
13240     which can conflict with char $ac_func (); below.
13241     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13242     <limits.h> exists even on freestanding compilers.  */
13243
13244 #ifdef __STDC__
13245 # include <limits.h>
13246 #else
13247 # include <assert.h>
13248 #endif
13249
13250 #undef $ac_func
13251
13252 /* Override any gcc2 internal prototype to avoid an error.  */
13253 #ifdef __cplusplus
13254 extern "C"
13255 {
13256 #endif
13257 /* We use char because int might match the return type of a gcc2
13258    builtin and then its argument prototype would still apply.  */
13259 char $ac_func ();
13260 /* The GNU C library defines this for functions which it implements
13261     to always fail with ENOSYS.  Some functions are actually named
13262     something starting with __ and the normal name is an alias.  */
13263 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13264 choke me
13265 #else
13266 char (*f) () = $ac_func;
13267 #endif
13268 #ifdef __cplusplus
13269 }
13270 #endif
13271
13272 int
13273 main ()
13274 {
13275 return f != $ac_func;
13276   ;
13277   return 0;
13278 }
13279 _ACEOF
13280 rm -f conftest.$ac_objext conftest$ac_exeext
13281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13282   (eval $ac_link) 2>conftest.er1
13283   ac_status=$?
13284   grep -v '^ *+' conftest.er1 >conftest.err
13285   rm -f conftest.er1
13286   cat conftest.err >&5
13287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288   (exit $ac_status); } &&
13289          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13290   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13291   (eval $ac_try) 2>&5
13292   ac_status=$?
13293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294   (exit $ac_status); }; } &&
13295          { ac_try='test -s conftest$ac_exeext'
13296   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13297   (eval $ac_try) 2>&5
13298   ac_status=$?
13299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300   (exit $ac_status); }; }; then
13301   eval "$as_ac_var=yes"
13302 else
13303   echo "$as_me: failed program was:" >&5
13304 sed 's/^/| /' conftest.$ac_ext >&5
13305
13306 eval "$as_ac_var=no"
13307 fi
13308 rm -f conftest.err conftest.$ac_objext \
13309       conftest$ac_exeext conftest.$ac_ext
13310 fi
13311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13312 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13313 if test `eval echo '${'$as_ac_var'}'` = yes; then
13314   cat >>confdefs.h <<_ACEOF
13315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13316 _ACEOF
13317
13318 fi
13319 done
13320
13321
13322
13323 for ac_func in idna_to_ascii_lz idna_to_ascii_from_locale
13324 do
13325 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13326 echo "$as_me:$LINENO: checking for $ac_func" >&5
13327 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13328 if eval "test \"\${$as_ac_var+set}\" = set"; then
13329   echo $ECHO_N "(cached) $ECHO_C" >&6
13330 else
13331   cat >conftest.$ac_ext <<_ACEOF
13332 /* confdefs.h.  */
13333 _ACEOF
13334 cat confdefs.h >>conftest.$ac_ext
13335 cat >>conftest.$ac_ext <<_ACEOF
13336 /* end confdefs.h.  */
13337 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13338    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13339 #define $ac_func innocuous_$ac_func
13340
13341 /* System header to define __stub macros and hopefully few prototypes,
13342     which can conflict with char $ac_func (); below.
13343     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13344     <limits.h> exists even on freestanding compilers.  */
13345
13346 #ifdef __STDC__
13347 # include <limits.h>
13348 #else
13349 # include <assert.h>
13350 #endif
13351
13352 #undef $ac_func
13353
13354 /* Override any gcc2 internal prototype to avoid an error.  */
13355 #ifdef __cplusplus
13356 extern "C"
13357 {
13358 #endif
13359 /* We use char because int might match the return type of a gcc2
13360    builtin and then its argument prototype would still apply.  */
13361 char $ac_func ();
13362 /* The GNU C library defines this for functions which it implements
13363     to always fail with ENOSYS.  Some functions are actually named
13364     something starting with __ and the normal name is an alias.  */
13365 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13366 choke me
13367 #else
13368 char (*f) () = $ac_func;
13369 #endif
13370 #ifdef __cplusplus
13371 }
13372 #endif
13373
13374 int
13375 main ()
13376 {
13377 return f != $ac_func;
13378   ;
13379   return 0;
13380 }
13381 _ACEOF
13382 rm -f conftest.$ac_objext conftest$ac_exeext
13383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13384   (eval $ac_link) 2>conftest.er1
13385   ac_status=$?
13386   grep -v '^ *+' conftest.er1 >conftest.err
13387   rm -f conftest.er1
13388   cat conftest.err >&5
13389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390   (exit $ac_status); } &&
13391          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13393   (eval $ac_try) 2>&5
13394   ac_status=$?
13395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396   (exit $ac_status); }; } &&
13397          { ac_try='test -s conftest$ac_exeext'
13398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13399   (eval $ac_try) 2>&5
13400   ac_status=$?
13401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402   (exit $ac_status); }; }; then
13403   eval "$as_ac_var=yes"
13404 else
13405   echo "$as_me: failed program was:" >&5
13406 sed 's/^/| /' conftest.$ac_ext >&5
13407
13408 eval "$as_ac_var=no"
13409 fi
13410 rm -f conftest.err conftest.$ac_objext \
13411       conftest$ac_exeext conftest.$ac_ext
13412 fi
13413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13414 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13415 if test `eval echo '${'$as_ac_var'}'` = yes; then
13416   cat >>confdefs.h <<_ACEOF
13417 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13418 _ACEOF
13419
13420 fi
13421 done
13422
13423 fi
13424
13425
13426 # Check whether --enable-debug or --disable-debug was given.
13427 if test "${enable_debug+set}" = set; then
13428   enableval="$enable_debug"
13429    if test x$enableval = xyes ; then
13430
13431 cat >>confdefs.h <<\_ACEOF
13432 #define DEBUG 1
13433 _ACEOF
13434
13435           fi
13436
13437 fi;
13438
13439 # Check whether --enable-flock or --disable-flock was given.
13440 if test "${enable_flock+set}" = set; then
13441   enableval="$enable_flock"
13442   if test $enableval = yes; then
13443
13444 cat >>confdefs.h <<\_ACEOF
13445 #define USE_FLOCK 1
13446 _ACEOF
13447
13448         fi
13449 fi;
13450
13451 mutt_cv_fcntl=yes
13452 # Check whether --enable-fcntl or --disable-fcntl was given.
13453 if test "${enable_fcntl+set}" = set; then
13454   enableval="$enable_fcntl"
13455   if test $enableval = no; then mutt_cv_fcntl=no; fi
13456 fi;
13457
13458 if test $mutt_cv_fcntl = yes; then
13459
13460 cat >>confdefs.h <<\_ACEOF
13461 #define USE_FCNTL 1
13462 _ACEOF
13463
13464 fi
13465
13466 mutt_cv_inodesort=no
13467 # Check whether --enable-inodesort or --disable-inodesort was given.
13468 if test "${enable_inodesort+set}" = set; then
13469   enableval="$enable_inodesort"
13470   if test x$enableval = xyes ; then mutt_cv_inodesort=yes; fi
13471 fi;
13472
13473 if test $mutt_cv_inodesort = yes; then
13474
13475 cat >>confdefs.h <<\_ACEOF
13476 #define USE_INODESORT 1
13477 _ACEOF
13478
13479 fi
13480
13481 mutt_cv_warnings=yes
13482 # Check whether --enable-warnings or --disable-warnings was given.
13483 if test "${enable_warnings+set}" = set; then
13484   enableval="$enable_warnings"
13485   if test $enableval = no; then
13486         mutt_cv_warnings=no
13487 fi
13488 fi;
13489
13490 if test x$GCC = xyes -a $mutt_cv_warnings = yes; then
13491         CFLAGS="-Wall -pedantic $CFLAGS"
13492 fi
13493
13494 # Check whether --enable-nfs-fix or --disable-nfs-fix was given.
13495 if test "${enable_nfs_fix+set}" = set; then
13496   enableval="$enable_nfs_fix"
13497   if test x$enableval = xyes; then
13498
13499 cat >>confdefs.h <<\_ACEOF
13500 #define NFS_ATTRIBUTE_HACK 1
13501 _ACEOF
13502
13503         fi
13504 fi;
13505
13506 # Check whether --enable-buffy-size or --disable-buffy-size was given.
13507 if test "${enable_buffy_size+set}" = set; then
13508   enableval="$enable_buffy_size"
13509   if test x$enableval = xyes; then
13510
13511 cat >>confdefs.h <<\_ACEOF
13512 #define BUFFY_SIZE 1
13513 _ACEOF
13514
13515         fi
13516 fi;
13517
13518 # Check whether --enable-mailtool or --disable-mailtool was given.
13519 if test "${enable_mailtool+set}" = set; then
13520   enableval="$enable_mailtool"
13521   if test x$enableval = xyes; then
13522
13523 cat >>confdefs.h <<\_ACEOF
13524 #define SUN_ATTACHMENT 1
13525 _ACEOF
13526
13527         fi
13528 fi;
13529
13530 # Check whether --enable-compressed or --disable-compressed was given.
13531 if test "${enable_compressed+set}" = set; then
13532   enableval="$enable_compressed"
13533   if test x$enableval = xyes; then
13534                 cat >>confdefs.h <<\_ACEOF
13535 #define USE_COMPRESSED 1
13536 _ACEOF
13537
13538         fi
13539 fi;
13540
13541 # Check whether --enable-locales-fix or --disable-locales-fix was given.
13542 if test "${enable_locales_fix+set}" = set; then
13543   enableval="$enable_locales_fix"
13544   if test x$enableval = xyes; then
13545
13546 cat >>confdefs.h <<\_ACEOF
13547 #define LOCALES_HACK 1
13548 _ACEOF
13549
13550         fi
13551 fi;
13552
13553
13554 # Check whether --with-exec-shell or --without-exec-shell was given.
13555 if test "${with_exec_shell+set}" = set; then
13556   withval="$with_exec_shell"
13557   if test $withval != yes; then
13558
13559 cat >>confdefs.h <<_ACEOF
13560 #define EXECSHELL "$withval"
13561 _ACEOF
13562
13563          else
13564                 cat >>confdefs.h <<_ACEOF
13565 #define EXECSHELL "/bin/sh"
13566 _ACEOF
13567
13568         fi
13569 else
13570   cat >>confdefs.h <<_ACEOF
13571 #define EXECSHELL "/bin/sh"
13572 _ACEOF
13573
13574 fi;
13575
13576 # Check whether --enable-exact-address or --disable-exact-address was given.
13577 if test "${enable_exact_address+set}" = set; then
13578   enableval="$enable_exact_address"
13579   if test $enableval = yes; then
13580
13581 cat >>confdefs.h <<\_ACEOF
13582 #define EXACT_ADDRESS 1
13583 _ACEOF
13584
13585
13586         fi
13587 fi;
13588
13589 # Check whether --enable-hcache or --disable-hcache was given.
13590 if test "${enable_hcache+set}" = set; then
13591   enableval="$enable_hcache"
13592   if test x$enableval = xyes; then
13593
13594 cat >>confdefs.h <<\_ACEOF
13595 #define USE_HCACHE 1
13596 _ACEOF
13597
13598
13599     OLDCPPFLAGS="$CPPFLAGS"
13600     OLDLIBS="$LIBS"
13601
13602     need_md5="yes"
13603     ac_prefer_gdbm=yes
13604
13605 # Check whether --with-gdbm or --without-gdbm was given.
13606 if test "${with_gdbm+set}" = set; then
13607   withval="$with_gdbm"
13608   ac_prefer_gdbm=$withval
13609 fi;
13610     if test x$ac_prefer_gdbm != xno; then
13611         CPPFLAGS="$OLDCPPFLAGS"
13612         LIBS="$OLDLIBS -lgdbm";
13613         echo "$as_me:$LINENO: checking for gdbm_open" >&5
13614 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
13615 if test "${ac_cv_gdbmopen+set}" = set; then
13616   echo $ECHO_N "(cached) $ECHO_C" >&6
13617 else
13618
13619             ac_cv_gdbmopen=no
13620             cat >conftest.$ac_ext <<_ACEOF
13621 /* confdefs.h.  */
13622 _ACEOF
13623 cat confdefs.h >>conftest.$ac_ext
13624 cat >>conftest.$ac_ext <<_ACEOF
13625 /* end confdefs.h.  */
13626 #include <gdbm.h>
13627 int
13628 main ()
13629 {
13630 gdbm_open(0,0,0,0,0);
13631   ;
13632   return 0;
13633 }
13634 _ACEOF
13635 rm -f conftest.$ac_objext conftest$ac_exeext
13636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13637   (eval $ac_link) 2>conftest.er1
13638   ac_status=$?
13639   grep -v '^ *+' conftest.er1 >conftest.err
13640   rm -f conftest.er1
13641   cat conftest.err >&5
13642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643   (exit $ac_status); } &&
13644          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13645   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13646   (eval $ac_try) 2>&5
13647   ac_status=$?
13648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649   (exit $ac_status); }; } &&
13650          { ac_try='test -s conftest$ac_exeext'
13651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13652   (eval $ac_try) 2>&5
13653   ac_status=$?
13654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655   (exit $ac_status); }; }; then
13656   ac_cv_gdbmopen=yes
13657 else
13658   echo "$as_me: failed program was:" >&5
13659 sed 's/^/| /' conftest.$ac_ext >&5
13660
13661 fi
13662 rm -f conftest.err conftest.$ac_objext \
13663       conftest$ac_exeext conftest.$ac_ext
13664
13665 fi
13666 echo "$as_me:$LINENO: result: $ac_cv_gdbmopen" >&5
13667 echo "${ECHO_T}$ac_cv_gdbmopen" >&6
13668     fi
13669
13670     ac_bdb_prefix=yes
13671
13672 # Check whether --with-bdb or --without-bdb was given.
13673 if test "${with_bdb+set}" = set; then
13674   withval="$with_bdb"
13675   ac_bdb_prefix=$withval
13676 fi;
13677     if test x$ac_bdb_prefix != xno -a x$ac_cv_gdbmopen != xyes; then
13678         test x$ac_bdb_prefix = xyes && ac_bdb_prefix="$mutt_cv_prefix /opt/csw/bdb4 /opt /usr/local /usr"
13679         for d in $ac_bdb_prefix; do
13680             bdbpfx="$bdbpfx $d"
13681             for v in BerkeleyDB.4.3 BerkeleyDB.4.2 BerkeleyDB.4.1; do
13682                 bdbpfx="$bdbpfx $d/$v"
13683             done
13684         done
13685         BDB_VERSIONS="db-4 db4 db-4.3 db4.3 db43 db-4.2 db4.2 db42 db-4.1 db4.1 db41 db ''"
13686         echo "$as_me:$LINENO: checking for BerkeleyDB > 4.0" >&5
13687 echo $ECHO_N "checking for BerkeleyDB > 4.0... $ECHO_C" >&6
13688         for d in $bdbpfx; do
13689             BDB_INCLUDE_DIR=""
13690             BDB_LIB_DIR=""
13691             for v in / $BDB_VERSIONS; do
13692                 if test -r "$d/include/$v/db.h"; then
13693                     BDB_INCLUDE_DIR="$d/include/$v"
13694                     if test -d "$d/lib/$v"; then
13695                         BDB_LIB_DIR="$d/lib/$v"
13696                         for l in `echo $BDB_VERSIONS`; do
13697                             CPPFLAGS="-I$BDB_INCLUDE_DIR $OLDCPPFLAGS"
13698                             LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$l"
13699                             cat >conftest.$ac_ext <<_ACEOF
13700 /* confdefs.h.  */
13701 _ACEOF
13702 cat confdefs.h >>conftest.$ac_ext
13703 cat >>conftest.$ac_ext <<_ACEOF
13704 /* end confdefs.h.  */
13705
13706                                 #include <stdlib.h>
13707                                 #include <db.h>
13708
13709 int
13710 main ()
13711 {
13712
13713                                 DB *db = NULL;
13714                                 db->open(db,NULL,NULL,NULL,0,0,0);
13715
13716   ;
13717   return 0;
13718 }
13719 _ACEOF
13720 rm -f conftest.$ac_objext conftest$ac_exeext
13721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13722   (eval $ac_link) 2>conftest.er1
13723   ac_status=$?
13724   grep -v '^ *+' conftest.er1 >conftest.err
13725   rm -f conftest.er1
13726   cat conftest.err >&5
13727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728   (exit $ac_status); } &&
13729          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13730   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13731   (eval $ac_try) 2>&5
13732   ac_status=$?
13733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734   (exit $ac_status); }; } &&
13735          { ac_try='test -s conftest$ac_exeext'
13736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13737   (eval $ac_try) 2>&5
13738   ac_status=$?
13739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740   (exit $ac_status); }; }; then
13741
13742                                 ac_cv_dbcreate=yes
13743                                 BDB_LIB="$l"
13744                                 break
13745
13746 else
13747   echo "$as_me: failed program was:" >&5
13748 sed 's/^/| /' conftest.$ac_ext >&5
13749
13750 fi
13751 rm -f conftest.err conftest.$ac_objext \
13752       conftest$ac_exeext conftest.$ac_ext
13753                         done
13754                         test x$ac_dbcreate = xyes && break
13755                     fi
13756                 fi
13757             done
13758             test x$BDB_LIB != x && break
13759         done
13760         if test x$ac_cv_dbcreate = xyes; then
13761             echo "$as_me:$LINENO: result: yes" >&5
13762 echo "${ECHO_T}yes" >&6
13763         else
13764             echo "$as_me:$LINENO: result: no" >&5
13765 echo "${ECHO_T}no" >&6
13766         fi
13767     fi
13768
13769     if test x$ac_cv_gdbmopen = xyes; then
13770         CPPFLAGS="$OLDCPPFLAGS"
13771         LIBS="$OLDLIBS -lgdbm";
13772
13773 cat >>confdefs.h <<\_ACEOF
13774 #define HAVE_GDBM 1
13775 _ACEOF
13776
13777     elif test x$ac_cv_dbcreate = xyes; then
13778         CPPFLAGS="-I$BDB_INCLUDE_DIR $OLDCPPFLAGS"
13779         LIBS="$OLDLIBS -L$BDB_LIB_DIR -l$BDB_LIB"
13780
13781 cat >>confdefs.h <<\_ACEOF
13782 #define HAVE_DB4 1
13783 _ACEOF
13784
13785     else
13786         { { echo "$as_me:$LINENO: error: You need Sleepycat DB4 or GDBM for --enable-hcache" >&5
13787 echo "$as_me: error: You need Sleepycat DB4 or GDBM for --enable-hcache" >&2;}
13788    { (exit 1); exit 1; }; }
13789     fi
13790 fi
13791 fi;
13792
13793
13794
13795
13796
13797
13798
13799 # Check whether --enable-iconv or --disable-iconv was given.
13800 if test "${enable_iconv+set}" = set; then
13801   enableval="$enable_iconv"
13802   if test x$enableval = xno ; then
13803                 am_cv_func_iconv=no
13804         fi
13805
13806 fi;
13807
13808 echo "$as_me:$LINENO: checking for off_t" >&5
13809 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13810 if test "${ac_cv_type_off_t+set}" = set; then
13811   echo $ECHO_N "(cached) $ECHO_C" >&6
13812 else
13813   cat >conftest.$ac_ext <<_ACEOF
13814 /* confdefs.h.  */
13815 _ACEOF
13816 cat confdefs.h >>conftest.$ac_ext
13817 cat >>conftest.$ac_ext <<_ACEOF
13818 /* end confdefs.h.  */
13819 $ac_includes_default
13820 int
13821 main ()
13822 {
13823 if ((off_t *) 0)
13824   return 0;
13825 if (sizeof (off_t))
13826   return 0;
13827   ;
13828   return 0;
13829 }
13830 _ACEOF
13831 rm -f conftest.$ac_objext
13832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13833   (eval $ac_compile) 2>conftest.er1
13834   ac_status=$?
13835   grep -v '^ *+' conftest.er1 >conftest.err
13836   rm -f conftest.er1
13837   cat conftest.err >&5
13838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13839   (exit $ac_status); } &&
13840          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13841   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13842   (eval $ac_try) 2>&5
13843   ac_status=$?
13844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845   (exit $ac_status); }; } &&
13846          { ac_try='test -s conftest.$ac_objext'
13847   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13848   (eval $ac_try) 2>&5
13849   ac_status=$?
13850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851   (exit $ac_status); }; }; then
13852   ac_cv_type_off_t=yes
13853 else
13854   echo "$as_me: failed program was:" >&5
13855 sed 's/^/| /' conftest.$ac_ext >&5
13856
13857 ac_cv_type_off_t=no
13858 fi
13859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13860 fi
13861 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13862 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13863 if test $ac_cv_type_off_t = yes; then
13864   :
13865 else
13866
13867 cat >>confdefs.h <<_ACEOF
13868 #define off_t long
13869 _ACEOF
13870
13871 fi
13872
13873 echo "$as_me:$LINENO: checking for size_t" >&5
13874 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13875 if test "${ac_cv_type_size_t+set}" = set; then
13876   echo $ECHO_N "(cached) $ECHO_C" >&6
13877 else
13878   cat >conftest.$ac_ext <<_ACEOF
13879 /* confdefs.h.  */
13880 _ACEOF
13881 cat confdefs.h >>conftest.$ac_ext
13882 cat >>conftest.$ac_ext <<_ACEOF
13883 /* end confdefs.h.  */
13884 $ac_includes_default
13885 int
13886 main ()
13887 {
13888 if ((size_t *) 0)
13889   return 0;
13890 if (sizeof (size_t))
13891   return 0;
13892   ;
13893   return 0;
13894 }
13895 _ACEOF
13896 rm -f conftest.$ac_objext
13897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13898   (eval $ac_compile) 2>conftest.er1
13899   ac_status=$?
13900   grep -v '^ *+' conftest.er1 >conftest.err
13901   rm -f conftest.er1
13902   cat conftest.err >&5
13903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904   (exit $ac_status); } &&
13905          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13907   (eval $ac_try) 2>&5
13908   ac_status=$?
13909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910   (exit $ac_status); }; } &&
13911          { ac_try='test -s conftest.$ac_objext'
13912   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13913   (eval $ac_try) 2>&5
13914   ac_status=$?
13915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916   (exit $ac_status); }; }; then
13917   ac_cv_type_size_t=yes
13918 else
13919   echo "$as_me: failed program was:" >&5
13920 sed 's/^/| /' conftest.$ac_ext >&5
13921
13922 ac_cv_type_size_t=no
13923 fi
13924 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13925 fi
13926 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13927 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13928 if test $ac_cv_type_size_t = yes; then
13929   :
13930 else
13931
13932 cat >>confdefs.h <<_ACEOF
13933 #define size_t unsigned
13934 _ACEOF
13935
13936 fi
13937
13938 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13939 # for constant arguments.  Useless!
13940 echo "$as_me:$LINENO: checking for working alloca.h" >&5
13941 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13942 if test "${ac_cv_working_alloca_h+set}" = set; then
13943   echo $ECHO_N "(cached) $ECHO_C" >&6
13944 else
13945   cat >conftest.$ac_ext <<_ACEOF
13946 /* confdefs.h.  */
13947 _ACEOF
13948 cat confdefs.h >>conftest.$ac_ext
13949 cat >>conftest.$ac_ext <<_ACEOF
13950 /* end confdefs.h.  */
13951 #include <alloca.h>
13952 int
13953 main ()
13954 {
13955 char *p = (char *) alloca (2 * sizeof (int));
13956   ;
13957   return 0;
13958 }
13959 _ACEOF
13960 rm -f conftest.$ac_objext conftest$ac_exeext
13961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13962   (eval $ac_link) 2>conftest.er1
13963   ac_status=$?
13964   grep -v '^ *+' conftest.er1 >conftest.err
13965   rm -f conftest.er1
13966   cat conftest.err >&5
13967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13968   (exit $ac_status); } &&
13969          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
13970   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13971   (eval $ac_try) 2>&5
13972   ac_status=$?
13973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13974   (exit $ac_status); }; } &&
13975          { ac_try='test -s conftest$ac_exeext'
13976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13977   (eval $ac_try) 2>&5
13978   ac_status=$?
13979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980   (exit $ac_status); }; }; then
13981   ac_cv_working_alloca_h=yes
13982 else
13983   echo "$as_me: failed program was:" >&5
13984 sed 's/^/| /' conftest.$ac_ext >&5
13985
13986 ac_cv_working_alloca_h=no
13987 fi
13988 rm -f conftest.err conftest.$ac_objext \
13989       conftest$ac_exeext conftest.$ac_ext
13990 fi
13991 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13992 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13993 if test $ac_cv_working_alloca_h = yes; then
13994
13995 cat >>confdefs.h <<\_ACEOF
13996 #define HAVE_ALLOCA_H 1
13997 _ACEOF
13998
13999 fi
14000
14001 echo "$as_me:$LINENO: checking for alloca" >&5
14002 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
14003 if test "${ac_cv_func_alloca_works+set}" = set; then
14004   echo $ECHO_N "(cached) $ECHO_C" >&6
14005 else
14006   cat >conftest.$ac_ext <<_ACEOF
14007 /* confdefs.h.  */
14008 _ACEOF
14009 cat confdefs.h >>conftest.$ac_ext
14010 cat >>conftest.$ac_ext <<_ACEOF
14011 /* end confdefs.h.  */
14012 #ifdef __GNUC__
14013 # define alloca __builtin_alloca
14014 #else
14015 # ifdef _MSC_VER
14016 #  include <malloc.h>
14017 #  define alloca _alloca
14018 # else
14019 #  if HAVE_ALLOCA_H
14020 #   include <alloca.h>
14021 #  else
14022 #   ifdef _AIX
14023  #pragma alloca
14024 #   else
14025 #    ifndef alloca /* predefined by HP cc +Olibcalls */
14026 char *alloca ();
14027 #    endif
14028 #   endif
14029 #  endif
14030 # endif
14031 #endif
14032
14033 int
14034 main ()
14035 {
14036 char *p = (char *) alloca (1);
14037   ;
14038   return 0;
14039 }
14040 _ACEOF
14041 rm -f conftest.$ac_objext conftest$ac_exeext
14042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14043   (eval $ac_link) 2>conftest.er1
14044   ac_status=$?
14045   grep -v '^ *+' conftest.er1 >conftest.err
14046   rm -f conftest.er1
14047   cat conftest.err >&5
14048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049   (exit $ac_status); } &&
14050          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14051   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14052   (eval $ac_try) 2>&5
14053   ac_status=$?
14054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14055   (exit $ac_status); }; } &&
14056          { ac_try='test -s conftest$ac_exeext'
14057   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14058   (eval $ac_try) 2>&5
14059   ac_status=$?
14060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14061   (exit $ac_status); }; }; then
14062   ac_cv_func_alloca_works=yes
14063 else
14064   echo "$as_me: failed program was:" >&5
14065 sed 's/^/| /' conftest.$ac_ext >&5
14066
14067 ac_cv_func_alloca_works=no
14068 fi
14069 rm -f conftest.err conftest.$ac_objext \
14070       conftest$ac_exeext conftest.$ac_ext
14071 fi
14072 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14073 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
14074
14075 if test $ac_cv_func_alloca_works = yes; then
14076
14077 cat >>confdefs.h <<\_ACEOF
14078 #define HAVE_ALLOCA 1
14079 _ACEOF
14080
14081 else
14082   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14083 # that cause trouble.  Some versions do not even contain alloca or
14084 # contain a buggy version.  If you still want to use their alloca,
14085 # use ar to extract alloca.o from them instead of compiling alloca.c.
14086
14087 ALLOCA=alloca.$ac_objext
14088
14089 cat >>confdefs.h <<\_ACEOF
14090 #define C_ALLOCA 1
14091 _ACEOF
14092
14093
14094 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14095 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
14096 if test "${ac_cv_os_cray+set}" = set; then
14097   echo $ECHO_N "(cached) $ECHO_C" >&6
14098 else
14099   cat >conftest.$ac_ext <<_ACEOF
14100 /* confdefs.h.  */
14101 _ACEOF
14102 cat confdefs.h >>conftest.$ac_ext
14103 cat >>conftest.$ac_ext <<_ACEOF
14104 /* end confdefs.h.  */
14105 #if defined(CRAY) && ! defined(CRAY2)
14106 webecray
14107 #else
14108 wenotbecray
14109 #endif
14110
14111 _ACEOF
14112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14113   $EGREP "webecray" >/dev/null 2>&1; then
14114   ac_cv_os_cray=yes
14115 else
14116   ac_cv_os_cray=no
14117 fi
14118 rm -f conftest*
14119
14120 fi
14121 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14122 echo "${ECHO_T}$ac_cv_os_cray" >&6
14123 if test $ac_cv_os_cray = yes; then
14124   for ac_func in _getb67 GETB67 getb67; do
14125     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14126 echo "$as_me:$LINENO: checking for $ac_func" >&5
14127 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14128 if eval "test \"\${$as_ac_var+set}\" = set"; then
14129   echo $ECHO_N "(cached) $ECHO_C" >&6
14130 else
14131   cat >conftest.$ac_ext <<_ACEOF
14132 /* confdefs.h.  */
14133 _ACEOF
14134 cat confdefs.h >>conftest.$ac_ext
14135 cat >>conftest.$ac_ext <<_ACEOF
14136 /* end confdefs.h.  */
14137 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14138    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14139 #define $ac_func innocuous_$ac_func
14140
14141 /* System header to define __stub macros and hopefully few prototypes,
14142     which can conflict with char $ac_func (); below.
14143     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14144     <limits.h> exists even on freestanding compilers.  */
14145
14146 #ifdef __STDC__
14147 # include <limits.h>
14148 #else
14149 # include <assert.h>
14150 #endif
14151
14152 #undef $ac_func
14153
14154 /* Override any gcc2 internal prototype to avoid an error.  */
14155 #ifdef __cplusplus
14156 extern "C"
14157 {
14158 #endif
14159 /* We use char because int might match the return type of a gcc2
14160    builtin and then its argument prototype would still apply.  */
14161 char $ac_func ();
14162 /* The GNU C library defines this for functions which it implements
14163     to always fail with ENOSYS.  Some functions are actually named
14164     something starting with __ and the normal name is an alias.  */
14165 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14166 choke me
14167 #else
14168 char (*f) () = $ac_func;
14169 #endif
14170 #ifdef __cplusplus
14171 }
14172 #endif
14173
14174 int
14175 main ()
14176 {
14177 return f != $ac_func;
14178   ;
14179   return 0;
14180 }
14181 _ACEOF
14182 rm -f conftest.$ac_objext conftest$ac_exeext
14183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14184   (eval $ac_link) 2>conftest.er1
14185   ac_status=$?
14186   grep -v '^ *+' conftest.er1 >conftest.err
14187   rm -f conftest.er1
14188   cat conftest.err >&5
14189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190   (exit $ac_status); } &&
14191          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14193   (eval $ac_try) 2>&5
14194   ac_status=$?
14195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196   (exit $ac_status); }; } &&
14197          { ac_try='test -s conftest$ac_exeext'
14198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14199   (eval $ac_try) 2>&5
14200   ac_status=$?
14201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202   (exit $ac_status); }; }; then
14203   eval "$as_ac_var=yes"
14204 else
14205   echo "$as_me: failed program was:" >&5
14206 sed 's/^/| /' conftest.$ac_ext >&5
14207
14208 eval "$as_ac_var=no"
14209 fi
14210 rm -f conftest.err conftest.$ac_objext \
14211       conftest$ac_exeext conftest.$ac_ext
14212 fi
14213 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14214 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14215 if test `eval echo '${'$as_ac_var'}'` = yes; then
14216
14217 cat >>confdefs.h <<_ACEOF
14218 #define CRAY_STACKSEG_END $ac_func
14219 _ACEOF
14220
14221     break
14222 fi
14223
14224   done
14225 fi
14226
14227 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14228 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
14229 if test "${ac_cv_c_stack_direction+set}" = set; then
14230   echo $ECHO_N "(cached) $ECHO_C" >&6
14231 else
14232   if test "$cross_compiling" = yes; then
14233   ac_cv_c_stack_direction=0
14234 else
14235   cat >conftest.$ac_ext <<_ACEOF
14236 /* confdefs.h.  */
14237 _ACEOF
14238 cat confdefs.h >>conftest.$ac_ext
14239 cat >>conftest.$ac_ext <<_ACEOF
14240 /* end confdefs.h.  */
14241 int
14242 find_stack_direction ()
14243 {
14244   static char *addr = 0;
14245   auto char dummy;
14246   if (addr == 0)
14247     {
14248       addr = &dummy;
14249       return find_stack_direction ();
14250     }
14251   else
14252     return (&dummy > addr) ? 1 : -1;
14253 }
14254
14255 int
14256 main ()
14257 {
14258   exit (find_stack_direction () < 0);
14259 }
14260 _ACEOF
14261 rm -f conftest$ac_exeext
14262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14263   (eval $ac_link) 2>&5
14264   ac_status=$?
14265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14266   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14268   (eval $ac_try) 2>&5
14269   ac_status=$?
14270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271   (exit $ac_status); }; }; then
14272   ac_cv_c_stack_direction=1
14273 else
14274   echo "$as_me: program exited with status $ac_status" >&5
14275 echo "$as_me: failed program was:" >&5
14276 sed 's/^/| /' conftest.$ac_ext >&5
14277
14278 ( exit $ac_status )
14279 ac_cv_c_stack_direction=-1
14280 fi
14281 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14282 fi
14283 fi
14284 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14285 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
14286
14287 cat >>confdefs.h <<_ACEOF
14288 #define STACK_DIRECTION $ac_cv_c_stack_direction
14289 _ACEOF
14290
14291
14292 fi
14293
14294
14295
14296 for ac_header in stdlib.h unistd.h
14297 do
14298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14300   echo "$as_me:$LINENO: checking for $ac_header" >&5
14301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14303   echo $ECHO_N "(cached) $ECHO_C" >&6
14304 fi
14305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14307 else
14308   # Is the header compilable?
14309 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14311 cat >conftest.$ac_ext <<_ACEOF
14312 /* confdefs.h.  */
14313 _ACEOF
14314 cat confdefs.h >>conftest.$ac_ext
14315 cat >>conftest.$ac_ext <<_ACEOF
14316 /* end confdefs.h.  */
14317 $ac_includes_default
14318 #include <$ac_header>
14319 _ACEOF
14320 rm -f conftest.$ac_objext
14321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14322   (eval $ac_compile) 2>conftest.er1
14323   ac_status=$?
14324   grep -v '^ *+' conftest.er1 >conftest.err
14325   rm -f conftest.er1
14326   cat conftest.err >&5
14327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328   (exit $ac_status); } &&
14329          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331   (eval $ac_try) 2>&5
14332   ac_status=$?
14333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334   (exit $ac_status); }; } &&
14335          { ac_try='test -s conftest.$ac_objext'
14336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14337   (eval $ac_try) 2>&5
14338   ac_status=$?
14339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340   (exit $ac_status); }; }; then
14341   ac_header_compiler=yes
14342 else
14343   echo "$as_me: failed program was:" >&5
14344 sed 's/^/| /' conftest.$ac_ext >&5
14345
14346 ac_header_compiler=no
14347 fi
14348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14349 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14350 echo "${ECHO_T}$ac_header_compiler" >&6
14351
14352 # Is the header present?
14353 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14354 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14355 cat >conftest.$ac_ext <<_ACEOF
14356 /* confdefs.h.  */
14357 _ACEOF
14358 cat confdefs.h >>conftest.$ac_ext
14359 cat >>conftest.$ac_ext <<_ACEOF
14360 /* end confdefs.h.  */
14361 #include <$ac_header>
14362 _ACEOF
14363 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14364   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14365   ac_status=$?
14366   grep -v '^ *+' conftest.er1 >conftest.err
14367   rm -f conftest.er1
14368   cat conftest.err >&5
14369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370   (exit $ac_status); } >/dev/null; then
14371   if test -s conftest.err; then
14372     ac_cpp_err=$ac_c_preproc_warn_flag
14373     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14374   else
14375     ac_cpp_err=
14376   fi
14377 else
14378   ac_cpp_err=yes
14379 fi
14380 if test -z "$ac_cpp_err"; then
14381   ac_header_preproc=yes
14382 else
14383   echo "$as_me: failed program was:" >&5
14384 sed 's/^/| /' conftest.$ac_ext >&5
14385
14386   ac_header_preproc=no
14387 fi
14388 rm -f conftest.err conftest.$ac_ext
14389 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14390 echo "${ECHO_T}$ac_header_preproc" >&6
14391
14392 # So?  What about this header?
14393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14394   yes:no: )
14395     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14396 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14397     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14398 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14399     ac_header_preproc=yes
14400     ;;
14401   no:yes:* )
14402     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14403 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14404     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14405 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14406     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14407 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14408     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14409 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14410     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14411 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14412     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14413 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14414     (
14415       cat <<\_ASBOX
14416 ## ------------------------------------------ ##
14417 ## Report this to the AC_PACKAGE_NAME lists.  ##
14418 ## ------------------------------------------ ##
14419 _ASBOX
14420     ) |
14421       sed "s/^/$as_me: WARNING:     /" >&2
14422     ;;
14423 esac
14424 echo "$as_me:$LINENO: checking for $ac_header" >&5
14425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14426 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14427   echo $ECHO_N "(cached) $ECHO_C" >&6
14428 else
14429   eval "$as_ac_Header=\$ac_header_preproc"
14430 fi
14431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14433
14434 fi
14435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14436   cat >>confdefs.h <<_ACEOF
14437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14438 _ACEOF
14439
14440 fi
14441
14442 done
14443
14444
14445 for ac_func in getpagesize
14446 do
14447 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14448 echo "$as_me:$LINENO: checking for $ac_func" >&5
14449 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14450 if eval "test \"\${$as_ac_var+set}\" = set"; then
14451   echo $ECHO_N "(cached) $ECHO_C" >&6
14452 else
14453   cat >conftest.$ac_ext <<_ACEOF
14454 /* confdefs.h.  */
14455 _ACEOF
14456 cat confdefs.h >>conftest.$ac_ext
14457 cat >>conftest.$ac_ext <<_ACEOF
14458 /* end confdefs.h.  */
14459 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14460    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14461 #define $ac_func innocuous_$ac_func
14462
14463 /* System header to define __stub macros and hopefully few prototypes,
14464     which can conflict with char $ac_func (); below.
14465     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14466     <limits.h> exists even on freestanding compilers.  */
14467
14468 #ifdef __STDC__
14469 # include <limits.h>
14470 #else
14471 # include <assert.h>
14472 #endif
14473
14474 #undef $ac_func
14475
14476 /* Override any gcc2 internal prototype to avoid an error.  */
14477 #ifdef __cplusplus
14478 extern "C"
14479 {
14480 #endif
14481 /* We use char because int might match the return type of a gcc2
14482    builtin and then its argument prototype would still apply.  */
14483 char $ac_func ();
14484 /* The GNU C library defines this for functions which it implements
14485     to always fail with ENOSYS.  Some functions are actually named
14486     something starting with __ and the normal name is an alias.  */
14487 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14488 choke me
14489 #else
14490 char (*f) () = $ac_func;
14491 #endif
14492 #ifdef __cplusplus
14493 }
14494 #endif
14495
14496 int
14497 main ()
14498 {
14499 return f != $ac_func;
14500   ;
14501   return 0;
14502 }
14503 _ACEOF
14504 rm -f conftest.$ac_objext conftest$ac_exeext
14505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14506   (eval $ac_link) 2>conftest.er1
14507   ac_status=$?
14508   grep -v '^ *+' conftest.er1 >conftest.err
14509   rm -f conftest.er1
14510   cat conftest.err >&5
14511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512   (exit $ac_status); } &&
14513          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14514   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14515   (eval $ac_try) 2>&5
14516   ac_status=$?
14517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518   (exit $ac_status); }; } &&
14519          { ac_try='test -s conftest$ac_exeext'
14520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14521   (eval $ac_try) 2>&5
14522   ac_status=$?
14523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524   (exit $ac_status); }; }; then
14525   eval "$as_ac_var=yes"
14526 else
14527   echo "$as_me: failed program was:" >&5
14528 sed 's/^/| /' conftest.$ac_ext >&5
14529
14530 eval "$as_ac_var=no"
14531 fi
14532 rm -f conftest.err conftest.$ac_objext \
14533       conftest$ac_exeext conftest.$ac_ext
14534 fi
14535 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14536 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14537 if test `eval echo '${'$as_ac_var'}'` = yes; then
14538   cat >>confdefs.h <<_ACEOF
14539 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14540 _ACEOF
14541
14542 fi
14543 done
14544
14545 echo "$as_me:$LINENO: checking for working mmap" >&5
14546 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
14547 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
14548   echo $ECHO_N "(cached) $ECHO_C" >&6
14549 else
14550   if test "$cross_compiling" = yes; then
14551   ac_cv_func_mmap_fixed_mapped=no
14552 else
14553   cat >conftest.$ac_ext <<_ACEOF
14554 /* confdefs.h.  */
14555 _ACEOF
14556 cat confdefs.h >>conftest.$ac_ext
14557 cat >>conftest.$ac_ext <<_ACEOF
14558 /* end confdefs.h.  */
14559 $ac_includes_default
14560 /* malloc might have been renamed as rpl_malloc. */
14561 #undef malloc
14562
14563 /* Thanks to Mike Haertel and Jim Avera for this test.
14564    Here is a matrix of mmap possibilities:
14565         mmap private not fixed
14566         mmap private fixed at somewhere currently unmapped
14567         mmap private fixed at somewhere already mapped
14568         mmap shared not fixed
14569         mmap shared fixed at somewhere currently unmapped
14570         mmap shared fixed at somewhere already mapped
14571    For private mappings, we should verify that changes cannot be read()
14572    back from the file, nor mmap's back from the file at a different
14573    address.  (There have been systems where private was not correctly
14574    implemented like the infamous i386 svr4.0, and systems where the
14575    VM page cache was not coherent with the file system buffer cache
14576    like early versions of FreeBSD and possibly contemporary NetBSD.)
14577    For shared mappings, we should conversely verify that changes get
14578    propagated back to all the places they're supposed to be.
14579
14580    Grep wants private fixed already mapped.
14581    The main things grep needs to know about mmap are:
14582    * does it exist and is it safe to write into the mmap'd area
14583    * how to use it (BSD variants)  */
14584
14585 #include <fcntl.h>
14586 #include <sys/mman.h>
14587
14588 #if !STDC_HEADERS && !HAVE_STDLIB_H
14589 char *malloc ();
14590 #endif
14591
14592 /* This mess was copied from the GNU getpagesize.h.  */
14593 #if !HAVE_GETPAGESIZE
14594 /* Assume that all systems that can run configure have sys/param.h.  */
14595 # if !HAVE_SYS_PARAM_H
14596 #  define HAVE_SYS_PARAM_H 1
14597 # endif
14598
14599 # ifdef _SC_PAGESIZE
14600 #  define getpagesize() sysconf(_SC_PAGESIZE)
14601 # else /* no _SC_PAGESIZE */
14602 #  if HAVE_SYS_PARAM_H
14603 #   include <sys/param.h>
14604 #   ifdef EXEC_PAGESIZE
14605 #    define getpagesize() EXEC_PAGESIZE
14606 #   else /* no EXEC_PAGESIZE */
14607 #    ifdef NBPG
14608 #     define getpagesize() NBPG * CLSIZE
14609 #     ifndef CLSIZE
14610 #      define CLSIZE 1
14611 #     endif /* no CLSIZE */
14612 #    else /* no NBPG */
14613 #     ifdef NBPC
14614 #      define getpagesize() NBPC
14615 #     else /* no NBPC */
14616 #      ifdef PAGESIZE
14617 #       define getpagesize() PAGESIZE
14618 #      endif /* PAGESIZE */
14619 #     endif /* no NBPC */
14620 #    endif /* no NBPG */
14621 #   endif /* no EXEC_PAGESIZE */
14622 #  else /* no HAVE_SYS_PARAM_H */
14623 #   define getpagesize() 8192   /* punt totally */
14624 #  endif /* no HAVE_SYS_PARAM_H */
14625 # endif /* no _SC_PAGESIZE */
14626
14627 #endif /* no HAVE_GETPAGESIZE */
14628
14629 int
14630 main ()
14631 {
14632   char *data, *data2, *data3;
14633   int i, pagesize;
14634   int fd;
14635
14636   pagesize = getpagesize ();
14637
14638   /* First, make a file with some known garbage in it. */
14639   data = (char *) malloc (pagesize);
14640   if (!data)
14641     exit (1);
14642   for (i = 0; i < pagesize; ++i)
14643     *(data + i) = rand ();
14644   umask (0);
14645   fd = creat ("conftest.mmap", 0600);
14646   if (fd < 0)
14647     exit (1);
14648   if (write (fd, data, pagesize) != pagesize)
14649     exit (1);
14650   close (fd);
14651
14652   /* Next, try to mmap the file at a fixed address which already has
14653      something else allocated at it.  If we can, also make sure that
14654      we see the same garbage.  */
14655   fd = open ("conftest.mmap", O_RDWR);
14656   if (fd < 0)
14657     exit (1);
14658   data2 = (char *) malloc (2 * pagesize);
14659   if (!data2)
14660     exit (1);
14661   data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
14662   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14663                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
14664     exit (1);
14665   for (i = 0; i < pagesize; ++i)
14666     if (*(data + i) != *(data2 + i))
14667       exit (1);
14668
14669   /* Finally, make sure that changes to the mapped area do not
14670      percolate back to the file as seen by read().  (This is a bug on
14671      some variants of i386 svr4.0.)  */
14672   for (i = 0; i < pagesize; ++i)
14673     *(data2 + i) = *(data2 + i) + 1;
14674   data3 = (char *) malloc (pagesize);
14675   if (!data3)
14676     exit (1);
14677   if (read (fd, data3, pagesize) != pagesize)
14678     exit (1);
14679   for (i = 0; i < pagesize; ++i)
14680     if (*(data + i) != *(data3 + i))
14681       exit (1);
14682   close (fd);
14683   exit (0);
14684 }
14685 _ACEOF
14686 rm -f conftest$ac_exeext
14687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14688   (eval $ac_link) 2>&5
14689   ac_status=$?
14690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14693   (eval $ac_try) 2>&5
14694   ac_status=$?
14695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696   (exit $ac_status); }; }; then
14697   ac_cv_func_mmap_fixed_mapped=yes
14698 else
14699   echo "$as_me: program exited with status $ac_status" >&5
14700 echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.$ac_ext >&5
14702
14703 ( exit $ac_status )
14704 ac_cv_func_mmap_fixed_mapped=no
14705 fi
14706 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14707 fi
14708 fi
14709 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
14710 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
14711 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14712
14713 cat >>confdefs.h <<\_ACEOF
14714 #define HAVE_MMAP 1
14715 _ACEOF
14716
14717 fi
14718 rm -f conftest.mmap
14719
14720
14721     echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
14722 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
14723 if test "${ac_cv_gnu_library_2_1+set}" = set; then
14724   echo $ECHO_N "(cached) $ECHO_C" >&6
14725 else
14726   cat >conftest.$ac_ext <<_ACEOF
14727 /* confdefs.h.  */
14728 _ACEOF
14729 cat confdefs.h >>conftest.$ac_ext
14730 cat >>conftest.$ac_ext <<_ACEOF
14731 /* end confdefs.h.  */
14732
14733 #include <features.h>
14734 #ifdef __GNU_LIBRARY__
14735  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
14736   Lucky GNU user
14737  #endif
14738 #endif
14739
14740 _ACEOF
14741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14742   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
14743   ac_cv_gnu_library_2_1=yes
14744 else
14745   ac_cv_gnu_library_2_1=no
14746 fi
14747 rm -f conftest*
14748
14749
14750
14751 fi
14752 echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
14753 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
14754
14755     GLIBC21="$ac_cv_gnu_library_2_1"
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
14770 stdlib.h string.h unistd.h sys/param.h
14771 do
14772 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14774   echo "$as_me:$LINENO: checking for $ac_header" >&5
14775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14777   echo $ECHO_N "(cached) $ECHO_C" >&6
14778 fi
14779 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14780 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14781 else
14782   # Is the header compilable?
14783 echo "$as_me:$LINENO: checking $ac_header usability" >&5
14784 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14785 cat >conftest.$ac_ext <<_ACEOF
14786 /* confdefs.h.  */
14787 _ACEOF
14788 cat confdefs.h >>conftest.$ac_ext
14789 cat >>conftest.$ac_ext <<_ACEOF
14790 /* end confdefs.h.  */
14791 $ac_includes_default
14792 #include <$ac_header>
14793 _ACEOF
14794 rm -f conftest.$ac_objext
14795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14796   (eval $ac_compile) 2>conftest.er1
14797   ac_status=$?
14798   grep -v '^ *+' conftest.er1 >conftest.err
14799   rm -f conftest.er1
14800   cat conftest.err >&5
14801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802   (exit $ac_status); } &&
14803          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
14804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14805   (eval $ac_try) 2>&5
14806   ac_status=$?
14807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808   (exit $ac_status); }; } &&
14809          { ac_try='test -s conftest.$ac_objext'
14810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14811   (eval $ac_try) 2>&5
14812   ac_status=$?
14813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814   (exit $ac_status); }; }; then
14815   ac_header_compiler=yes
14816 else
14817   echo "$as_me: failed program was:" >&5
14818 sed 's/^/| /' conftest.$ac_ext >&5
14819
14820 ac_header_compiler=no
14821 fi
14822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14823 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14824 echo "${ECHO_T}$ac_header_compiler" >&6
14825
14826 # Is the header present?
14827 echo "$as_me:$LINENO: checking $ac_header presence" >&5
14828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14829 cat >conftest.$ac_ext <<_ACEOF
14830 /* confdefs.h.  */
14831 _ACEOF
14832 cat confdefs.h >>conftest.$ac_ext
14833 cat >>conftest.$ac_ext <<_ACEOF
14834 /* end confdefs.h.  */
14835 #include <$ac_header>
14836 _ACEOF
14837 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14838   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14839   ac_status=$?
14840   grep -v '^ *+' conftest.er1 >conftest.err
14841   rm -f conftest.er1
14842   cat conftest.err >&5
14843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844   (exit $ac_status); } >/dev/null; then
14845   if test -s conftest.err; then
14846     ac_cpp_err=$ac_c_preproc_warn_flag
14847     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14848   else
14849     ac_cpp_err=
14850   fi
14851 else
14852   ac_cpp_err=yes
14853 fi
14854 if test -z "$ac_cpp_err"; then
14855   ac_header_preproc=yes
14856 else
14857   echo "$as_me: failed program was:" >&5
14858 sed 's/^/| /' conftest.$ac_ext >&5
14859
14860   ac_header_preproc=no
14861 fi
14862 rm -f conftest.err conftest.$ac_ext
14863 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14864 echo "${ECHO_T}$ac_header_preproc" >&6
14865
14866 # So?  What about this header?
14867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14868   yes:no: )
14869     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14870 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14871     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14872 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14873     ac_header_preproc=yes
14874     ;;
14875   no:yes:* )
14876     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14877 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14878     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14879 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14880     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14881 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14882     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14883 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14884     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14885 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14886     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14887 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14888     (
14889       cat <<\_ASBOX
14890 ## ------------------------------------------ ##
14891 ## Report this to the AC_PACKAGE_NAME lists.  ##
14892 ## ------------------------------------------ ##
14893 _ASBOX
14894     ) |
14895       sed "s/^/$as_me: WARNING:     /" >&2
14896     ;;
14897 esac
14898 echo "$as_me:$LINENO: checking for $ac_header" >&5
14899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14900 if eval "test \"\${$as_ac_Header+set}\" = set"; then
14901   echo $ECHO_N "(cached) $ECHO_C" >&6
14902 else
14903   eval "$as_ac_Header=\$ac_header_preproc"
14904 fi
14905 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14906 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14907
14908 fi
14909 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14910   cat >>confdefs.h <<_ACEOF
14911 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14912 _ACEOF
14913
14914 fi
14915
14916 done
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
14940 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
14941 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
14942 do
14943 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14944 echo "$as_me:$LINENO: checking for $ac_func" >&5
14945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14946 if eval "test \"\${$as_ac_var+set}\" = set"; then
14947   echo $ECHO_N "(cached) $ECHO_C" >&6
14948 else
14949   cat >conftest.$ac_ext <<_ACEOF
14950 /* confdefs.h.  */
14951 _ACEOF
14952 cat confdefs.h >>conftest.$ac_ext
14953 cat >>conftest.$ac_ext <<_ACEOF
14954 /* end confdefs.h.  */
14955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14956    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14957 #define $ac_func innocuous_$ac_func
14958
14959 /* System header to define __stub macros and hopefully few prototypes,
14960     which can conflict with char $ac_func (); below.
14961     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14962     <limits.h> exists even on freestanding compilers.  */
14963
14964 #ifdef __STDC__
14965 # include <limits.h>
14966 #else
14967 # include <assert.h>
14968 #endif
14969
14970 #undef $ac_func
14971
14972 /* Override any gcc2 internal prototype to avoid an error.  */
14973 #ifdef __cplusplus
14974 extern "C"
14975 {
14976 #endif
14977 /* We use char because int might match the return type of a gcc2
14978    builtin and then its argument prototype would still apply.  */
14979 char $ac_func ();
14980 /* The GNU C library defines this for functions which it implements
14981     to always fail with ENOSYS.  Some functions are actually named
14982     something starting with __ and the normal name is an alias.  */
14983 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14984 choke me
14985 #else
14986 char (*f) () = $ac_func;
14987 #endif
14988 #ifdef __cplusplus
14989 }
14990 #endif
14991
14992 int
14993 main ()
14994 {
14995 return f != $ac_func;
14996   ;
14997   return 0;
14998 }
14999 _ACEOF
15000 rm -f conftest.$ac_objext conftest$ac_exeext
15001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15002   (eval $ac_link) 2>conftest.er1
15003   ac_status=$?
15004   grep -v '^ *+' conftest.er1 >conftest.err
15005   rm -f conftest.er1
15006   cat conftest.err >&5
15007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008   (exit $ac_status); } &&
15009          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15011   (eval $ac_try) 2>&5
15012   ac_status=$?
15013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014   (exit $ac_status); }; } &&
15015          { ac_try='test -s conftest$ac_exeext'
15016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15017   (eval $ac_try) 2>&5
15018   ac_status=$?
15019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020   (exit $ac_status); }; }; then
15021   eval "$as_ac_var=yes"
15022 else
15023   echo "$as_me: failed program was:" >&5
15024 sed 's/^/| /' conftest.$ac_ext >&5
15025
15026 eval "$as_ac_var=no"
15027 fi
15028 rm -f conftest.err conftest.$ac_objext \
15029       conftest$ac_exeext conftest.$ac_ext
15030 fi
15031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15032 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15033 if test `eval echo '${'$as_ac_var'}'` = yes; then
15034   cat >>confdefs.h <<_ACEOF
15035 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15036 _ACEOF
15037
15038 fi
15039 done
15040
15041
15042
15043
15044
15045 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
15046 if test "${with_libiconv_prefix+set}" = set; then
15047   withval="$with_libiconv_prefix"
15048
15049     for dir in `echo "$withval" | tr : ' '`; do
15050       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
15051       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
15052     done
15053
15054 fi;
15055
15056   echo "$as_me:$LINENO: checking for iconv" >&5
15057 echo $ECHO_N "checking for iconv... $ECHO_C" >&6
15058 if test "${am_cv_func_iconv+set}" = set; then
15059   echo $ECHO_N "(cached) $ECHO_C" >&6
15060 else
15061
15062     am_cv_func_iconv="no, consider installing GNU libiconv"
15063     am_cv_lib_iconv=no
15064     cat >conftest.$ac_ext <<_ACEOF
15065 /* confdefs.h.  */
15066 _ACEOF
15067 cat confdefs.h >>conftest.$ac_ext
15068 cat >>conftest.$ac_ext <<_ACEOF
15069 /* end confdefs.h.  */
15070 #include <stdlib.h>
15071 #include <iconv.h>
15072 int
15073 main ()
15074 {
15075 iconv_t cd = iconv_open("","");
15076        iconv(cd,NULL,NULL,NULL,NULL);
15077        iconv_close(cd);
15078   ;
15079   return 0;
15080 }
15081 _ACEOF
15082 rm -f conftest.$ac_objext conftest$ac_exeext
15083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15084   (eval $ac_link) 2>conftest.er1
15085   ac_status=$?
15086   grep -v '^ *+' conftest.er1 >conftest.err
15087   rm -f conftest.er1
15088   cat conftest.err >&5
15089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090   (exit $ac_status); } &&
15091          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15092   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15093   (eval $ac_try) 2>&5
15094   ac_status=$?
15095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096   (exit $ac_status); }; } &&
15097          { ac_try='test -s conftest$ac_exeext'
15098   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15099   (eval $ac_try) 2>&5
15100   ac_status=$?
15101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102   (exit $ac_status); }; }; then
15103   am_cv_func_iconv=yes
15104 else
15105   echo "$as_me: failed program was:" >&5
15106 sed 's/^/| /' conftest.$ac_ext >&5
15107
15108 fi
15109 rm -f conftest.err conftest.$ac_objext \
15110       conftest$ac_exeext conftest.$ac_ext
15111     if test "$am_cv_func_iconv" != yes; then
15112       am_save_LIBS="$LIBS"
15113       LIBS="$LIBS -liconv"
15114       cat >conftest.$ac_ext <<_ACEOF
15115 /* confdefs.h.  */
15116 _ACEOF
15117 cat confdefs.h >>conftest.$ac_ext
15118 cat >>conftest.$ac_ext <<_ACEOF
15119 /* end confdefs.h.  */
15120 #include <stdlib.h>
15121 #include <iconv.h>
15122 int
15123 main ()
15124 {
15125 iconv_t cd = iconv_open("","");
15126          iconv(cd,NULL,NULL,NULL,NULL);
15127          iconv_close(cd);
15128   ;
15129   return 0;
15130 }
15131 _ACEOF
15132 rm -f conftest.$ac_objext conftest$ac_exeext
15133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15134   (eval $ac_link) 2>conftest.er1
15135   ac_status=$?
15136   grep -v '^ *+' conftest.er1 >conftest.err
15137   rm -f conftest.er1
15138   cat conftest.err >&5
15139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140   (exit $ac_status); } &&
15141          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15143   (eval $ac_try) 2>&5
15144   ac_status=$?
15145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146   (exit $ac_status); }; } &&
15147          { ac_try='test -s conftest$ac_exeext'
15148   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15149   (eval $ac_try) 2>&5
15150   ac_status=$?
15151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152   (exit $ac_status); }; }; then
15153   am_cv_lib_iconv=yes
15154         am_cv_func_iconv=yes
15155 else
15156   echo "$as_me: failed program was:" >&5
15157 sed 's/^/| /' conftest.$ac_ext >&5
15158
15159 fi
15160 rm -f conftest.err conftest.$ac_objext \
15161       conftest$ac_exeext conftest.$ac_ext
15162       LIBS="$am_save_LIBS"
15163     fi
15164
15165 fi
15166 echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
15167 echo "${ECHO_T}$am_cv_func_iconv" >&6
15168   if test "$am_cv_func_iconv" = yes; then
15169
15170 cat >>confdefs.h <<\_ACEOF
15171 #define HAVE_ICONV 1
15172 _ACEOF
15173
15174     echo "$as_me:$LINENO: checking for iconv declaration" >&5
15175 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
15176     if test "${am_cv_proto_iconv+set}" = set; then
15177   echo $ECHO_N "(cached) $ECHO_C" >&6
15178 else
15179
15180       cat >conftest.$ac_ext <<_ACEOF
15181 /* confdefs.h.  */
15182 _ACEOF
15183 cat confdefs.h >>conftest.$ac_ext
15184 cat >>conftest.$ac_ext <<_ACEOF
15185 /* end confdefs.h.  */
15186
15187 #include <stdlib.h>
15188 #include <iconv.h>
15189 extern
15190 #ifdef __cplusplus
15191 "C"
15192 #endif
15193 #if defined(__STDC__) || defined(__cplusplus)
15194 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15195 #else
15196 size_t iconv();
15197 #endif
15198
15199 int
15200 main ()
15201 {
15202
15203   ;
15204   return 0;
15205 }
15206 _ACEOF
15207 rm -f conftest.$ac_objext
15208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15209   (eval $ac_compile) 2>conftest.er1
15210   ac_status=$?
15211   grep -v '^ *+' conftest.er1 >conftest.err
15212   rm -f conftest.er1
15213   cat conftest.err >&5
15214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215   (exit $ac_status); } &&
15216          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15217   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15218   (eval $ac_try) 2>&5
15219   ac_status=$?
15220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221   (exit $ac_status); }; } &&
15222          { ac_try='test -s conftest.$ac_objext'
15223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15224   (eval $ac_try) 2>&5
15225   ac_status=$?
15226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227   (exit $ac_status); }; }; then
15228   am_cv_proto_iconv_arg1=""
15229 else
15230   echo "$as_me: failed program was:" >&5
15231 sed 's/^/| /' conftest.$ac_ext >&5
15232
15233 am_cv_proto_iconv_arg1="const"
15234 fi
15235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15236       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);"
15237 fi
15238
15239     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
15240     echo "$as_me:$LINENO: result: ${ac_t:-
15241          }$am_cv_proto_iconv" >&5
15242 echo "${ECHO_T}${ac_t:-
15243          }$am_cv_proto_iconv" >&6
15244
15245 cat >>confdefs.h <<_ACEOF
15246 #define ICONV_CONST $am_cv_proto_iconv_arg1
15247 _ACEOF
15248
15249   fi
15250   LIBICONV=
15251   if test "$am_cv_lib_iconv" = yes; then
15252     LIBICONV="-liconv"
15253   fi
15254
15255
15256
15257   echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
15258 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
15259 if test "${am_cv_langinfo_codeset+set}" = set; then
15260   echo $ECHO_N "(cached) $ECHO_C" >&6
15261 else
15262   cat >conftest.$ac_ext <<_ACEOF
15263 /* confdefs.h.  */
15264 _ACEOF
15265 cat confdefs.h >>conftest.$ac_ext
15266 cat >>conftest.$ac_ext <<_ACEOF
15267 /* end confdefs.h.  */
15268 #include <langinfo.h>
15269 int
15270 main ()
15271 {
15272 char* cs = nl_langinfo(CODESET);
15273   ;
15274   return 0;
15275 }
15276 _ACEOF
15277 rm -f conftest.$ac_objext conftest$ac_exeext
15278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15279   (eval $ac_link) 2>conftest.er1
15280   ac_status=$?
15281   grep -v '^ *+' conftest.er1 >conftest.err
15282   rm -f conftest.er1
15283   cat conftest.err >&5
15284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15285   (exit $ac_status); } &&
15286          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15287   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15288   (eval $ac_try) 2>&5
15289   ac_status=$?
15290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291   (exit $ac_status); }; } &&
15292          { ac_try='test -s conftest$ac_exeext'
15293   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15294   (eval $ac_try) 2>&5
15295   ac_status=$?
15296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15297   (exit $ac_status); }; }; then
15298   am_cv_langinfo_codeset=yes
15299 else
15300   echo "$as_me: failed program was:" >&5
15301 sed 's/^/| /' conftest.$ac_ext >&5
15302
15303 am_cv_langinfo_codeset=no
15304 fi
15305 rm -f conftest.err conftest.$ac_objext \
15306       conftest$ac_exeext conftest.$ac_ext
15307
15308 fi
15309 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
15310 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
15311   if test $am_cv_langinfo_codeset = yes; then
15312
15313 cat >>confdefs.h <<\_ACEOF
15314 #define HAVE_LANGINFO_CODESET 1
15315 _ACEOF
15316
15317   fi
15318
15319    if test $ac_cv_header_locale_h = yes; then
15320     echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
15321 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
15322 if test "${am_cv_val_LC_MESSAGES+set}" = set; then
15323   echo $ECHO_N "(cached) $ECHO_C" >&6
15324 else
15325   cat >conftest.$ac_ext <<_ACEOF
15326 /* confdefs.h.  */
15327 _ACEOF
15328 cat confdefs.h >>conftest.$ac_ext
15329 cat >>conftest.$ac_ext <<_ACEOF
15330 /* end confdefs.h.  */
15331 #include <locale.h>
15332 int
15333 main ()
15334 {
15335 return LC_MESSAGES
15336   ;
15337   return 0;
15338 }
15339 _ACEOF
15340 rm -f conftest.$ac_objext conftest$ac_exeext
15341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15342   (eval $ac_link) 2>conftest.er1
15343   ac_status=$?
15344   grep -v '^ *+' conftest.er1 >conftest.err
15345   rm -f conftest.er1
15346   cat conftest.err >&5
15347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348   (exit $ac_status); } &&
15349          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15351   (eval $ac_try) 2>&5
15352   ac_status=$?
15353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354   (exit $ac_status); }; } &&
15355          { ac_try='test -s conftest$ac_exeext'
15356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15357   (eval $ac_try) 2>&5
15358   ac_status=$?
15359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15360   (exit $ac_status); }; }; then
15361   am_cv_val_LC_MESSAGES=yes
15362 else
15363   echo "$as_me: failed program was:" >&5
15364 sed 's/^/| /' conftest.$ac_ext >&5
15365
15366 am_cv_val_LC_MESSAGES=no
15367 fi
15368 rm -f conftest.err conftest.$ac_objext \
15369       conftest$ac_exeext conftest.$ac_ext
15370 fi
15371 echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
15372 echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
15373     if test $am_cv_val_LC_MESSAGES = yes; then
15374
15375 cat >>confdefs.h <<\_ACEOF
15376 #define HAVE_LC_MESSAGES 1
15377 _ACEOF
15378
15379     fi
15380   fi
15381    echo "$as_me:$LINENO: checking whether NLS is requested" >&5
15382 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
15383         # Check whether --enable-nls or --disable-nls was given.
15384 if test "${enable_nls+set}" = set; then
15385   enableval="$enable_nls"
15386   USE_NLS=$enableval
15387 else
15388   USE_NLS=yes
15389 fi;
15390     echo "$as_me:$LINENO: result: $USE_NLS" >&5
15391 echo "${ECHO_T}$USE_NLS" >&6
15392
15393
15394     BUILD_INCLUDED_LIBINTL=no
15395     USE_INCLUDED_LIBINTL=no
15396     INTLLIBS=
15397
15398         if test "$USE_NLS" = "yes"; then
15399
15400 cat >>confdefs.h <<\_ACEOF
15401 #define ENABLE_NLS 1
15402 _ACEOF
15403
15404       echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
15405 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
15406
15407 # Check whether --with-included-gettext or --without-included-gettext was given.
15408 if test "${with_included_gettext+set}" = set; then
15409   withval="$with_included_gettext"
15410   nls_cv_force_use_gnu_gettext=$withval
15411 else
15412   nls_cv_force_use_gnu_gettext=no
15413 fi;
15414       echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
15415 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
15416
15417       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
15418       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
15419                                 CATOBJEXT=NONE
15420
15421
15422
15423
15424         if test "${ac_cv_header_libintl_h+set}" = set; then
15425   echo "$as_me:$LINENO: checking for libintl.h" >&5
15426 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15427 if test "${ac_cv_header_libintl_h+set}" = set; then
15428   echo $ECHO_N "(cached) $ECHO_C" >&6
15429 fi
15430 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15431 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15432 else
15433   # Is the header compilable?
15434 echo "$as_me:$LINENO: checking libintl.h usability" >&5
15435 echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
15436 cat >conftest.$ac_ext <<_ACEOF
15437 /* confdefs.h.  */
15438 _ACEOF
15439 cat confdefs.h >>conftest.$ac_ext
15440 cat >>conftest.$ac_ext <<_ACEOF
15441 /* end confdefs.h.  */
15442 $ac_includes_default
15443 #include <libintl.h>
15444 _ACEOF
15445 rm -f conftest.$ac_objext
15446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15447   (eval $ac_compile) 2>conftest.er1
15448   ac_status=$?
15449   grep -v '^ *+' conftest.er1 >conftest.err
15450   rm -f conftest.er1
15451   cat conftest.err >&5
15452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453   (exit $ac_status); } &&
15454          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15456   (eval $ac_try) 2>&5
15457   ac_status=$?
15458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459   (exit $ac_status); }; } &&
15460          { ac_try='test -s conftest.$ac_objext'
15461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15462   (eval $ac_try) 2>&5
15463   ac_status=$?
15464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465   (exit $ac_status); }; }; then
15466   ac_header_compiler=yes
15467 else
15468   echo "$as_me: failed program was:" >&5
15469 sed 's/^/| /' conftest.$ac_ext >&5
15470
15471 ac_header_compiler=no
15472 fi
15473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15474 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15475 echo "${ECHO_T}$ac_header_compiler" >&6
15476
15477 # Is the header present?
15478 echo "$as_me:$LINENO: checking libintl.h presence" >&5
15479 echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
15480 cat >conftest.$ac_ext <<_ACEOF
15481 /* confdefs.h.  */
15482 _ACEOF
15483 cat confdefs.h >>conftest.$ac_ext
15484 cat >>conftest.$ac_ext <<_ACEOF
15485 /* end confdefs.h.  */
15486 #include <libintl.h>
15487 _ACEOF
15488 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15489   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15490   ac_status=$?
15491   grep -v '^ *+' conftest.er1 >conftest.err
15492   rm -f conftest.er1
15493   cat conftest.err >&5
15494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495   (exit $ac_status); } >/dev/null; then
15496   if test -s conftest.err; then
15497     ac_cpp_err=$ac_c_preproc_warn_flag
15498     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15499   else
15500     ac_cpp_err=
15501   fi
15502 else
15503   ac_cpp_err=yes
15504 fi
15505 if test -z "$ac_cpp_err"; then
15506   ac_header_preproc=yes
15507 else
15508   echo "$as_me: failed program was:" >&5
15509 sed 's/^/| /' conftest.$ac_ext >&5
15510
15511   ac_header_preproc=no
15512 fi
15513 rm -f conftest.err conftest.$ac_ext
15514 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15515 echo "${ECHO_T}$ac_header_preproc" >&6
15516
15517 # So?  What about this header?
15518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15519   yes:no: )
15520     { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
15521 echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15522     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
15523 echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
15524     ac_header_preproc=yes
15525     ;;
15526   no:yes:* )
15527     { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
15528 echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
15529     { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
15530 echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
15531     { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
15532 echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
15533     { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
15534 echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
15535     { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
15536 echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
15537     { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
15538 echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
15539     (
15540       cat <<\_ASBOX
15541 ## ------------------------------------------ ##
15542 ## Report this to the AC_PACKAGE_NAME lists.  ##
15543 ## ------------------------------------------ ##
15544 _ASBOX
15545     ) |
15546       sed "s/^/$as_me: WARNING:     /" >&2
15547     ;;
15548 esac
15549 echo "$as_me:$LINENO: checking for libintl.h" >&5
15550 echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
15551 if test "${ac_cv_header_libintl_h+set}" = set; then
15552   echo $ECHO_N "(cached) $ECHO_C" >&6
15553 else
15554   ac_cv_header_libintl_h=$ac_header_preproc
15555 fi
15556 echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
15557 echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
15558
15559 fi
15560 if test $ac_cv_header_libintl_h = yes; then
15561   echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
15562 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
15563 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
15564   echo $ECHO_N "(cached) $ECHO_C" >&6
15565 else
15566   cat >conftest.$ac_ext <<_ACEOF
15567 /* confdefs.h.  */
15568 _ACEOF
15569 cat confdefs.h >>conftest.$ac_ext
15570 cat >>conftest.$ac_ext <<_ACEOF
15571 /* end confdefs.h.  */
15572 #include <libintl.h>
15573 extern int _nl_msg_cat_cntr;
15574 int
15575 main ()
15576 {
15577 bindtextdomain ("", "");
15578 return (int) gettext ("") + _nl_msg_cat_cntr
15579   ;
15580   return 0;
15581 }
15582 _ACEOF
15583 rm -f conftest.$ac_objext conftest$ac_exeext
15584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15585   (eval $ac_link) 2>conftest.er1
15586   ac_status=$?
15587   grep -v '^ *+' conftest.er1 >conftest.err
15588   rm -f conftest.er1
15589   cat conftest.err >&5
15590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591   (exit $ac_status); } &&
15592          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15593   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594   (eval $ac_try) 2>&5
15595   ac_status=$?
15596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597   (exit $ac_status); }; } &&
15598          { ac_try='test -s conftest$ac_exeext'
15599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15600   (eval $ac_try) 2>&5
15601   ac_status=$?
15602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603   (exit $ac_status); }; }; then
15604   gt_cv_func_gnugettext1_libc=yes
15605 else
15606   echo "$as_me: failed program was:" >&5
15607 sed 's/^/| /' conftest.$ac_ext >&5
15608
15609 gt_cv_func_gnugettext1_libc=no
15610 fi
15611 rm -f conftest.err conftest.$ac_objext \
15612       conftest$ac_exeext conftest.$ac_ext
15613 fi
15614 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
15615 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
15616
15617            if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
15618              echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
15619 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
15620 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
15621   echo $ECHO_N "(cached) $ECHO_C" >&6
15622 else
15623   gt_save_LIBS="$LIBS"
15624                 LIBS="$LIBS -lintl $LIBICONV"
15625                 cat >conftest.$ac_ext <<_ACEOF
15626 /* confdefs.h.  */
15627 _ACEOF
15628 cat confdefs.h >>conftest.$ac_ext
15629 cat >>conftest.$ac_ext <<_ACEOF
15630 /* end confdefs.h.  */
15631 #include <libintl.h>
15632 extern int _nl_msg_cat_cntr;
15633 int
15634 main ()
15635 {
15636 bindtextdomain ("", "");
15637 return (int) gettext ("") + _nl_msg_cat_cntr
15638   ;
15639   return 0;
15640 }
15641 _ACEOF
15642 rm -f conftest.$ac_objext conftest$ac_exeext
15643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15644   (eval $ac_link) 2>conftest.er1
15645   ac_status=$?
15646   grep -v '^ *+' conftest.er1 >conftest.err
15647   rm -f conftest.er1
15648   cat conftest.err >&5
15649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650   (exit $ac_status); } &&
15651          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15653   (eval $ac_try) 2>&5
15654   ac_status=$?
15655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656   (exit $ac_status); }; } &&
15657          { ac_try='test -s conftest$ac_exeext'
15658   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15659   (eval $ac_try) 2>&5
15660   ac_status=$?
15661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662   (exit $ac_status); }; }; then
15663   gt_cv_func_gnugettext1_libintl=yes
15664 else
15665   echo "$as_me: failed program was:" >&5
15666 sed 's/^/| /' conftest.$ac_ext >&5
15667
15668 gt_cv_func_gnugettext1_libintl=no
15669 fi
15670 rm -f conftest.err conftest.$ac_objext \
15671       conftest$ac_exeext conftest.$ac_ext
15672                 LIBS="$gt_save_LIBS"
15673 fi
15674 echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
15675 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
15676            fi
15677
15678                                            if test "$gt_cv_func_gnugettext1_libc" = "yes" \
15679               || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
15680                    && test "$PACKAGE" != gettext; }; then
15681
15682 cat >>confdefs.h <<\_ACEOF
15683 #define HAVE_GETTEXT 1
15684 _ACEOF
15685
15686
15687              if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
15688                                        INTLLIBS="-lintl $LIBICONV"
15689              fi
15690
15691              gt_save_LIBS="$LIBS"
15692              LIBS="$LIBS $INTLLIBS"
15693
15694 for ac_func in dcgettext
15695 do
15696 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15697 echo "$as_me:$LINENO: checking for $ac_func" >&5
15698 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15699 if eval "test \"\${$as_ac_var+set}\" = set"; then
15700   echo $ECHO_N "(cached) $ECHO_C" >&6
15701 else
15702   cat >conftest.$ac_ext <<_ACEOF
15703 /* confdefs.h.  */
15704 _ACEOF
15705 cat confdefs.h >>conftest.$ac_ext
15706 cat >>conftest.$ac_ext <<_ACEOF
15707 /* end confdefs.h.  */
15708 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15709    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15710 #define $ac_func innocuous_$ac_func
15711
15712 /* System header to define __stub macros and hopefully few prototypes,
15713     which can conflict with char $ac_func (); below.
15714     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15715     <limits.h> exists even on freestanding compilers.  */
15716
15717 #ifdef __STDC__
15718 # include <limits.h>
15719 #else
15720 # include <assert.h>
15721 #endif
15722
15723 #undef $ac_func
15724
15725 /* Override any gcc2 internal prototype to avoid an error.  */
15726 #ifdef __cplusplus
15727 extern "C"
15728 {
15729 #endif
15730 /* We use char because int might match the return type of a gcc2
15731    builtin and then its argument prototype would still apply.  */
15732 char $ac_func ();
15733 /* The GNU C library defines this for functions which it implements
15734     to always fail with ENOSYS.  Some functions are actually named
15735     something starting with __ and the normal name is an alias.  */
15736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15737 choke me
15738 #else
15739 char (*f) () = $ac_func;
15740 #endif
15741 #ifdef __cplusplus
15742 }
15743 #endif
15744
15745 int
15746 main ()
15747 {
15748 return f != $ac_func;
15749   ;
15750   return 0;
15751 }
15752 _ACEOF
15753 rm -f conftest.$ac_objext conftest$ac_exeext
15754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15755   (eval $ac_link) 2>conftest.er1
15756   ac_status=$?
15757   grep -v '^ *+' conftest.er1 >conftest.err
15758   rm -f conftest.er1
15759   cat conftest.err >&5
15760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761   (exit $ac_status); } &&
15762          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
15763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15764   (eval $ac_try) 2>&5
15765   ac_status=$?
15766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767   (exit $ac_status); }; } &&
15768          { ac_try='test -s conftest$ac_exeext'
15769   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15770   (eval $ac_try) 2>&5
15771   ac_status=$?
15772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15773   (exit $ac_status); }; }; then
15774   eval "$as_ac_var=yes"
15775 else
15776   echo "$as_me: failed program was:" >&5
15777 sed 's/^/| /' conftest.$ac_ext >&5
15778
15779 eval "$as_ac_var=no"
15780 fi
15781 rm -f conftest.err conftest.$ac_objext \
15782       conftest$ac_exeext conftest.$ac_ext
15783 fi
15784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15785 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15786 if test `eval echo '${'$as_ac_var'}'` = yes; then
15787   cat >>confdefs.h <<_ACEOF
15788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15789 _ACEOF
15790
15791 fi
15792 done
15793
15794              LIBS="$gt_save_LIBS"
15795
15796                      # Extract the first word of "msgfmt", so it can be a program name with args.
15797 set dummy msgfmt; ac_word=$2
15798 echo "$as_me:$LINENO: checking for $ac_word" >&5
15799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15800 if test "${ac_cv_path_MSGFMT+set}" = set; then
15801   echo $ECHO_N "(cached) $ECHO_C" >&6
15802 else
15803   case "$MSGFMT" in
15804   /*)
15805   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15806   ;;
15807   *)
15808   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15809   for ac_dir in $PATH; do
15810     test -z "$ac_dir" && ac_dir=.
15811     if test -f $ac_dir/$ac_word; then
15812       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
15813         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
15814         break
15815       fi
15816     fi
15817   done
15818   IFS="$ac_save_ifs"
15819   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15820   ;;
15821 esac
15822 fi
15823 MSGFMT="$ac_cv_path_MSGFMT"
15824 if test "$MSGFMT" != ":"; then
15825   echo "$as_me:$LINENO: result: $MSGFMT" >&5
15826 echo "${ECHO_T}$MSGFMT" >&6
15827 else
15828   echo "$as_me:$LINENO: result: no" >&5
15829 echo "${ECHO_T}no" >&6
15830 fi
15831
15832              # Extract the first word of "gmsgfmt", so it can be a program name with args.
15833 set dummy gmsgfmt; ac_word=$2
15834 echo "$as_me:$LINENO: checking for $ac_word" >&5
15835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15836 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15837   echo $ECHO_N "(cached) $ECHO_C" >&6
15838 else
15839   case $GMSGFMT in
15840   [\\/]* | ?:[\\/]*)
15841   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15842   ;;
15843   *)
15844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15845 for as_dir in $PATH
15846 do
15847   IFS=$as_save_IFS
15848   test -z "$as_dir" && as_dir=.
15849   for ac_exec_ext in '' $ac_executable_extensions; do
15850   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15851     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15852     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15853     break 2
15854   fi
15855 done
15856 done
15857
15858   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15859   ;;
15860 esac
15861 fi
15862 GMSGFMT=$ac_cv_path_GMSGFMT
15863
15864 if test -n "$GMSGFMT"; then
15865   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15866 echo "${ECHO_T}$GMSGFMT" >&6
15867 else
15868   echo "$as_me:$LINENO: result: no" >&5
15869 echo "${ECHO_T}no" >&6
15870 fi
15871
15872
15873                      # Extract the first word of "xgettext", so it can be a program name with args.
15874 set dummy xgettext; ac_word=$2
15875 echo "$as_me:$LINENO: checking for $ac_word" >&5
15876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15877 if test "${ac_cv_path_XGETTEXT+set}" = set; then
15878   echo $ECHO_N "(cached) $ECHO_C" >&6
15879 else
15880   case "$XGETTEXT" in
15881   /*)
15882   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15883   ;;
15884   *)
15885   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15886   for ac_dir in $PATH; do
15887     test -z "$ac_dir" && ac_dir=.
15888     if test -f $ac_dir/$ac_word; then
15889       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
15890         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
15891         break
15892       fi
15893     fi
15894   done
15895   IFS="$ac_save_ifs"
15896   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15897   ;;
15898 esac
15899 fi
15900 XGETTEXT="$ac_cv_path_XGETTEXT"
15901 if test "$XGETTEXT" != ":"; then
15902   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
15903 echo "${ECHO_T}$XGETTEXT" >&6
15904 else
15905   echo "$as_me:$LINENO: result: no" >&5
15906 echo "${ECHO_T}no" >&6
15907 fi
15908
15909
15910              CATOBJEXT=.gmo
15911            fi
15912
15913 fi
15914
15915
15916
15917         if test "$CATOBJEXT" = "NONE"; then
15918                           nls_cv_use_gnu_gettext=yes
15919         fi
15920       fi
15921
15922       if test "$nls_cv_use_gnu_gettext" = "yes"; then
15923                 INTLOBJS="\$(GETTOBJS)"
15924         # Extract the first word of "msgfmt", so it can be a program name with args.
15925 set dummy msgfmt; ac_word=$2
15926 echo "$as_me:$LINENO: checking for $ac_word" >&5
15927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15928 if test "${ac_cv_path_MSGFMT+set}" = set; then
15929   echo $ECHO_N "(cached) $ECHO_C" >&6
15930 else
15931   case "$MSGFMT" in
15932   /*)
15933   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15934   ;;
15935   *)
15936   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
15937   for ac_dir in $PATH; do
15938     test -z "$ac_dir" && ac_dir=.
15939     if test -f $ac_dir/$ac_word; then
15940       if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
15941         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
15942         break
15943       fi
15944     fi
15945   done
15946   IFS="$ac_save_ifs"
15947   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15948   ;;
15949 esac
15950 fi
15951 MSGFMT="$ac_cv_path_MSGFMT"
15952 if test "$MSGFMT" != ":"; then
15953   echo "$as_me:$LINENO: result: $MSGFMT" >&5
15954 echo "${ECHO_T}$MSGFMT" >&6
15955 else
15956   echo "$as_me:$LINENO: result: no" >&5
15957 echo "${ECHO_T}no" >&6
15958 fi
15959
15960         # Extract the first word of "gmsgfmt", so it can be a program name with args.
15961 set dummy gmsgfmt; ac_word=$2
15962 echo "$as_me:$LINENO: checking for $ac_word" >&5
15963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15964 if test "${ac_cv_path_GMSGFMT+set}" = set; then
15965   echo $ECHO_N "(cached) $ECHO_C" >&6
15966 else
15967   case $GMSGFMT in
15968   [\\/]* | ?:[\\/]*)
15969   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15970   ;;
15971   *)
15972   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15973 for as_dir in $PATH
15974 do
15975   IFS=$as_save_IFS
15976   test -z "$as_dir" && as_dir=.
15977   for ac_exec_ext in '' $ac_executable_extensions; do
15978   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15979     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15981     break 2
15982   fi
15983 done
15984 done
15985
15986   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15987   ;;
15988 esac
15989 fi
15990 GMSGFMT=$ac_cv_path_GMSGFMT
15991
15992 if test -n "$GMSGFMT"; then
15993   echo "$as_me:$LINENO: result: $GMSGFMT" >&5
15994 echo "${ECHO_T}$GMSGFMT" >&6
15995 else
15996   echo "$as_me:$LINENO: result: no" >&5
15997 echo "${ECHO_T}no" >&6
15998 fi
15999
16000         # Extract the first word of "xgettext", so it can be a program name with args.
16001 set dummy xgettext; ac_word=$2
16002 echo "$as_me:$LINENO: checking for $ac_word" >&5
16003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16004 if test "${ac_cv_path_XGETTEXT+set}" = set; then
16005   echo $ECHO_N "(cached) $ECHO_C" >&6
16006 else
16007   case "$XGETTEXT" in
16008   /*)
16009   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16010   ;;
16011   *)
16012   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
16013   for ac_dir in $PATH; do
16014     test -z "$ac_dir" && ac_dir=.
16015     if test -f $ac_dir/$ac_word; then
16016       if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
16017         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
16018         break
16019       fi
16020     fi
16021   done
16022   IFS="$ac_save_ifs"
16023   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16024   ;;
16025 esac
16026 fi
16027 XGETTEXT="$ac_cv_path_XGETTEXT"
16028 if test "$XGETTEXT" != ":"; then
16029   echo "$as_me:$LINENO: result: $XGETTEXT" >&5
16030 echo "${ECHO_T}$XGETTEXT" >&6
16031 else
16032   echo "$as_me:$LINENO: result: no" >&5
16033 echo "${ECHO_T}no" >&6
16034 fi
16035
16036
16037         BUILD_INCLUDED_LIBINTL=yes
16038         USE_INCLUDED_LIBINTL=yes
16039         CATOBJEXT=.gmo
16040         INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
16041         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
16042       fi
16043
16044                   if test "$GMSGFMT" != ":"; then
16045                         if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
16046           : ;
16047         else
16048           echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
16049 echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6
16050           GMSGFMT=":"
16051         fi
16052       fi
16053
16054                   if test "$XGETTEXT" != ":"; then
16055                         if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
16056           : ;
16057         else
16058           echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
16059 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
16060           XGETTEXT=":"
16061         fi
16062       fi
16063
16064             POSUB=po
16065     fi
16066               ac_config_commands="$ac_config_commands default-2"
16067
16068
16069
16070             if test "$PACKAGE" = gettext; then
16071       BUILD_INCLUDED_LIBINTL=yes
16072     fi
16073
16074                                             for ac_prog in bison
16075 do
16076   # Extract the first word of "$ac_prog", so it can be a program name with args.
16077 set dummy $ac_prog; ac_word=$2
16078 echo "$as_me:$LINENO: checking for $ac_word" >&5
16079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16080 if test "${ac_cv_prog_INTLBISON+set}" = set; then
16081   echo $ECHO_N "(cached) $ECHO_C" >&6
16082 else
16083   if test -n "$INTLBISON"; then
16084   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
16085 else
16086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16087 for as_dir in $PATH
16088 do
16089   IFS=$as_save_IFS
16090   test -z "$as_dir" && as_dir=.
16091   for ac_exec_ext in '' $ac_executable_extensions; do
16092   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16093     ac_cv_prog_INTLBISON="$ac_prog"
16094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16095     break 2
16096   fi
16097 done
16098 done
16099
16100 fi
16101 fi
16102 INTLBISON=$ac_cv_prog_INTLBISON
16103 if test -n "$INTLBISON"; then
16104   echo "$as_me:$LINENO: result: $INTLBISON" >&5
16105 echo "${ECHO_T}$INTLBISON" >&6
16106 else
16107   echo "$as_me:$LINENO: result: no" >&5
16108 echo "${ECHO_T}no" >&6
16109 fi
16110
16111   test -n "$INTLBISON" && break
16112 done
16113
16114     if test -z "$INTLBISON"; then
16115       ac_verc_fail=yes
16116     else
16117             echo "$as_me:$LINENO: checking version of bison" >&5
16118 echo $ECHO_N "checking version of bison... $ECHO_C" >&6
16119       ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
16120       case $ac_prog_version in
16121         '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
16122         1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
16123            ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
16124         *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
16125       esac
16126       echo "$as_me:$LINENO: result: $ac_prog_version" >&5
16127 echo "${ECHO_T}$ac_prog_version" >&6
16128     fi
16129     if test $ac_verc_fail = yes; then
16130       INTLBISON=:
16131     fi
16132
16133                 for lang in $ALL_LINGUAS; do
16134       GMOFILES="$GMOFILES $lang.gmo"
16135       POFILES="$POFILES $lang.po"
16136     done
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148         nls_cv_header_intl=
16149     nls_cv_header_libgt=
16150
16151         DATADIRNAME=share
16152
16153
16154         INSTOBJEXT=.mo
16155
16156
16157         GENCAT=gencat
16158
16159
16160
16161    if test "x$CATOBJEXT" != "x"; then
16162      if test "x$ALL_LINGUAS" = "x"; then
16163        LINGUAS=
16164      else
16165        echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
16166 echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
16167        NEW_LINGUAS=
16168        for presentlang in $ALL_LINGUAS; do
16169          useit=no
16170          for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
16171            # Use the presentlang catalog if desiredlang is
16172            #   a. equal to presentlang, or
16173            #   b. a variant of presentlang (because in this case,
16174            #      presentlang can be used as a fallback for messages
16175            #      which are not translated in the desiredlang catalog).
16176            case "$desiredlang" in
16177              "$presentlang"*) useit=yes;;
16178            esac
16179          done
16180          if test $useit = yes; then
16181            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
16182          fi
16183        done
16184        LINGUAS=$NEW_LINGUAS
16185        echo "$as_me:$LINENO: result: $LINGUAS" >&5
16186 echo "${ECHO_T}$LINGUAS" >&6
16187      fi
16188
16189           if test -n "$LINGUAS"; then
16190        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
16191      fi
16192    fi
16193
16194             MKINSTALLDIRS=
16195    if test -n "$ac_aux_dir"; then
16196      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
16197    fi
16198    if test -z "$MKINSTALLDIRS"; then
16199      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16200    fi
16201
16202
16203       INTL_LIBTOOL_SUFFIX_PREFIX=
16204
16205
16206
16207 if test "$am_cv_func_iconv" != "yes"
16208 then
16209   { echo "$as_me:$LINENO: WARNING: Configuring without iconv support. See INSTALL for details" >&5
16210 echo "$as_me: WARNING: Configuring without iconv support. See INSTALL for details" >&2;}
16211 else
16212
16213
16214 for ac_header in iconv.h
16215 do
16216 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16217 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16218   echo "$as_me:$LINENO: checking for $ac_header" >&5
16219 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16221   echo $ECHO_N "(cached) $ECHO_C" >&6
16222 fi
16223 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16224 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16225 else
16226   # Is the header compilable?
16227 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16228 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16229 cat >conftest.$ac_ext <<_ACEOF
16230 /* confdefs.h.  */
16231 _ACEOF
16232 cat confdefs.h >>conftest.$ac_ext
16233 cat >>conftest.$ac_ext <<_ACEOF
16234 /* end confdefs.h.  */
16235 $ac_includes_default
16236 #include <$ac_header>
16237 _ACEOF
16238 rm -f conftest.$ac_objext
16239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16240   (eval $ac_compile) 2>conftest.er1
16241   ac_status=$?
16242   grep -v '^ *+' conftest.er1 >conftest.err
16243   rm -f conftest.er1
16244   cat conftest.err >&5
16245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246   (exit $ac_status); } &&
16247          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16248   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16249   (eval $ac_try) 2>&5
16250   ac_status=$?
16251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252   (exit $ac_status); }; } &&
16253          { ac_try='test -s conftest.$ac_objext'
16254   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16255   (eval $ac_try) 2>&5
16256   ac_status=$?
16257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258   (exit $ac_status); }; }; then
16259   ac_header_compiler=yes
16260 else
16261   echo "$as_me: failed program was:" >&5
16262 sed 's/^/| /' conftest.$ac_ext >&5
16263
16264 ac_header_compiler=no
16265 fi
16266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16267 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16268 echo "${ECHO_T}$ac_header_compiler" >&6
16269
16270 # Is the header present?
16271 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16272 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16273 cat >conftest.$ac_ext <<_ACEOF
16274 /* confdefs.h.  */
16275 _ACEOF
16276 cat confdefs.h >>conftest.$ac_ext
16277 cat >>conftest.$ac_ext <<_ACEOF
16278 /* end confdefs.h.  */
16279 #include <$ac_header>
16280 _ACEOF
16281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16282   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16283   ac_status=$?
16284   grep -v '^ *+' conftest.er1 >conftest.err
16285   rm -f conftest.er1
16286   cat conftest.err >&5
16287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288   (exit $ac_status); } >/dev/null; then
16289   if test -s conftest.err; then
16290     ac_cpp_err=$ac_c_preproc_warn_flag
16291     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16292   else
16293     ac_cpp_err=
16294   fi
16295 else
16296   ac_cpp_err=yes
16297 fi
16298 if test -z "$ac_cpp_err"; then
16299   ac_header_preproc=yes
16300 else
16301   echo "$as_me: failed program was:" >&5
16302 sed 's/^/| /' conftest.$ac_ext >&5
16303
16304   ac_header_preproc=no
16305 fi
16306 rm -f conftest.err conftest.$ac_ext
16307 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16308 echo "${ECHO_T}$ac_header_preproc" >&6
16309
16310 # So?  What about this header?
16311 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16312   yes:no: )
16313     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16314 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16315     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16316 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16317     ac_header_preproc=yes
16318     ;;
16319   no:yes:* )
16320     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16321 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16322     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16323 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16324     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16325 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16326     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16327 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16328     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16329 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16330     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16331 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16332     (
16333       cat <<\_ASBOX
16334 ## ------------------------------------------ ##
16335 ## Report this to the AC_PACKAGE_NAME lists.  ##
16336 ## ------------------------------------------ ##
16337 _ASBOX
16338     ) |
16339       sed "s/^/$as_me: WARNING:     /" >&2
16340     ;;
16341 esac
16342 echo "$as_me:$LINENO: checking for $ac_header" >&5
16343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16344 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16345   echo $ECHO_N "(cached) $ECHO_C" >&6
16346 else
16347   eval "$as_ac_Header=\$ac_header_preproc"
16348 fi
16349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16351
16352 fi
16353 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16354   cat >>confdefs.h <<_ACEOF
16355 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16356 _ACEOF
16357  echo "$as_me:$LINENO: checking whether iconv.h defines iconv_t" >&5
16358 echo $ECHO_N "checking whether iconv.h defines iconv_t... $ECHO_C" >&6
16359          cat >conftest.$ac_ext <<_ACEOF
16360 /* confdefs.h.  */
16361 _ACEOF
16362 cat confdefs.h >>conftest.$ac_ext
16363 cat >>conftest.$ac_ext <<_ACEOF
16364 /* end confdefs.h.  */
16365 #include <iconv.h>
16366
16367 _ACEOF
16368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16369   $EGREP "typedef.*iconv_t" >/dev/null 2>&1; then
16370   echo "$as_me:$LINENO: result: yes" >&5
16371 echo "${ECHO_T}yes" >&6
16372
16373 cat >>confdefs.h <<\_ACEOF
16374 #define HAVE_ICONV_T_DEF 1
16375 _ACEOF
16376
16377 else
16378   echo "$as_me:$LINENO: result: no" >&5
16379 echo "${ECHO_T}no" >&6
16380 fi
16381 rm -f conftest*
16382
16383 fi
16384
16385 done
16386
16387
16388 echo "$as_me:$LINENO: checking whether this iconv is good enough" >&5
16389 echo $ECHO_N "checking whether this iconv is good enough... $ECHO_C" >&6
16390 if test "${mutt_cv_iconv_good+set}" = set; then
16391   echo $ECHO_N "(cached) $ECHO_C" >&6
16392 else
16393   mutt_save_LIBS="$LIBS"
16394         LIBS="$LIBS $LIBICONV"
16395         if test "$cross_compiling" = yes; then
16396   mutt_cv_iconv_good=yes
16397 else
16398   cat >conftest.$ac_ext <<_ACEOF
16399 /* confdefs.h.  */
16400 _ACEOF
16401 cat confdefs.h >>conftest.$ac_ext
16402 cat >>conftest.$ac_ext <<_ACEOF
16403 /* end confdefs.h.  */
16404
16405 #include <iconv.h>
16406 int main()
16407 {
16408   iconv_t cd;
16409   char buf[4];
16410   char *ob;
16411   size_t obl;
16412   ob = buf, obl = sizeof(buf);
16413   return ((cd = iconv_open("UTF-8", "UTF-8")) != (iconv_t)(-1) &&
16414           (iconv(cd, 0, 0, &ob, &obl) ||
16415            !(ob == buf && obl == sizeof(buf)) ||
16416            iconv_close(cd)));
16417 }
16418
16419 _ACEOF
16420 rm -f conftest$ac_exeext
16421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16422   (eval $ac_link) 2>&5
16423   ac_status=$?
16424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16427   (eval $ac_try) 2>&5
16428   ac_status=$?
16429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430   (exit $ac_status); }; }; then
16431   mutt_cv_iconv_good=yes
16432 else
16433   echo "$as_me: program exited with status $ac_status" >&5
16434 echo "$as_me: failed program was:" >&5
16435 sed 's/^/| /' conftest.$ac_ext >&5
16436
16437 ( exit $ac_status )
16438 mutt_cv_iconv_good=no
16439 fi
16440 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16441 fi
16442         LIBS="$mutt_save_LIBS"
16443 fi
16444 echo "$as_me:$LINENO: result: $mutt_cv_iconv_good" >&5
16445 echo "${ECHO_T}$mutt_cv_iconv_good" >&6
16446 if test "$mutt_cv_iconv_good" = no; then
16447   { { echo "$as_me:$LINENO: error: Try using libiconv instead" >&5
16448 echo "$as_me: error: Try using libiconv instead" >&2;}
16449    { (exit 1); exit 1; }; }
16450 fi
16451
16452 echo "$as_me:$LINENO: checking whether iconv is non-transcribing" >&5
16453 echo $ECHO_N "checking whether iconv is non-transcribing... $ECHO_C" >&6
16454 if test "${mutt_cv_iconv_nontrans+set}" = set; then
16455   echo $ECHO_N "(cached) $ECHO_C" >&6
16456 else
16457   mutt_save_LIBS="$LIBS"
16458         LIBS="$LIBS $LIBICONV"
16459         if test "$cross_compiling" = yes; then
16460   mutt_cv_iconv_nontrans=no
16461 else
16462   cat >conftest.$ac_ext <<_ACEOF
16463 /* confdefs.h.  */
16464 _ACEOF
16465 cat confdefs.h >>conftest.$ac_ext
16466 cat >>conftest.$ac_ext <<_ACEOF
16467 /* end confdefs.h.  */
16468
16469 #include <iconv.h>
16470 #include <string.h>
16471 int main()
16472 {
16473   iconv_t cd;
16474   const char *ib;
16475   char *ob;
16476   size_t ibl, obl;
16477   const char *s = "\304\211";
16478   char t[3];
16479   ib = s, ibl = 2, ob = t, obl = 3;
16480   return ((cd = iconv_open("UTF-8", "UTF-8")) == (iconv_t)(-1) ||
16481           iconv(cd, &ib, &ibl, &ob, &obl));
16482 }
16483
16484 _ACEOF
16485 rm -f conftest$ac_exeext
16486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16487   (eval $ac_link) 2>&5
16488   ac_status=$?
16489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16491   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16492   (eval $ac_try) 2>&5
16493   ac_status=$?
16494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495   (exit $ac_status); }; }; then
16496   mutt_cv_iconv_nontrans=no
16497 else
16498   echo "$as_me: program exited with status $ac_status" >&5
16499 echo "$as_me: failed program was:" >&5
16500 sed 's/^/| /' conftest.$ac_ext >&5
16501
16502 ( exit $ac_status )
16503 mutt_cv_iconv_nontrans=yes
16504 fi
16505 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16506 fi
16507         LIBS="$mutt_save_LIBS"
16508 fi
16509 echo "$as_me:$LINENO: result: $mutt_cv_iconv_nontrans" >&5
16510 echo "${ECHO_T}$mutt_cv_iconv_nontrans" >&6
16511 if test "$mutt_cv_iconv_nontrans" = yes; then
16512   cat >>confdefs.h <<\_ACEOF
16513 #define ICONV_NONTRANS 1
16514 _ACEOF
16515
16516 else
16517   cat >>confdefs.h <<\_ACEOF
16518 #define ICONV_NONTRANS 0
16519 _ACEOF
16520
16521 fi
16522
16523 CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/intl"
16524
16525 if test "$BUILD_INCLUDED_LIBINTL" = "yes"; then
16526
16527 cat >>confdefs.h <<\_ACEOF
16528 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
16529 _ACEOF
16530
16531 else
16532
16533 for ac_func in bind_textdomain_codeset
16534 do
16535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16536 echo "$as_me:$LINENO: checking for $ac_func" >&5
16537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16538 if eval "test \"\${$as_ac_var+set}\" = set"; then
16539   echo $ECHO_N "(cached) $ECHO_C" >&6
16540 else
16541   cat >conftest.$ac_ext <<_ACEOF
16542 /* confdefs.h.  */
16543 _ACEOF
16544 cat confdefs.h >>conftest.$ac_ext
16545 cat >>conftest.$ac_ext <<_ACEOF
16546 /* end confdefs.h.  */
16547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16548    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16549 #define $ac_func innocuous_$ac_func
16550
16551 /* System header to define __stub macros and hopefully few prototypes,
16552     which can conflict with char $ac_func (); below.
16553     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16554     <limits.h> exists even on freestanding compilers.  */
16555
16556 #ifdef __STDC__
16557 # include <limits.h>
16558 #else
16559 # include <assert.h>
16560 #endif
16561
16562 #undef $ac_func
16563
16564 /* Override any gcc2 internal prototype to avoid an error.  */
16565 #ifdef __cplusplus
16566 extern "C"
16567 {
16568 #endif
16569 /* We use char because int might match the return type of a gcc2
16570    builtin and then its argument prototype would still apply.  */
16571 char $ac_func ();
16572 /* The GNU C library defines this for functions which it implements
16573     to always fail with ENOSYS.  Some functions are actually named
16574     something starting with __ and the normal name is an alias.  */
16575 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16576 choke me
16577 #else
16578 char (*f) () = $ac_func;
16579 #endif
16580 #ifdef __cplusplus
16581 }
16582 #endif
16583
16584 int
16585 main ()
16586 {
16587 return f != $ac_func;
16588   ;
16589   return 0;
16590 }
16591 _ACEOF
16592 rm -f conftest.$ac_objext conftest$ac_exeext
16593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16594   (eval $ac_link) 2>conftest.er1
16595   ac_status=$?
16596   grep -v '^ *+' conftest.er1 >conftest.err
16597   rm -f conftest.er1
16598   cat conftest.err >&5
16599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600   (exit $ac_status); } &&
16601          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16603   (eval $ac_try) 2>&5
16604   ac_status=$?
16605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606   (exit $ac_status); }; } &&
16607          { ac_try='test -s conftest$ac_exeext'
16608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16609   (eval $ac_try) 2>&5
16610   ac_status=$?
16611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612   (exit $ac_status); }; }; then
16613   eval "$as_ac_var=yes"
16614 else
16615   echo "$as_me: failed program was:" >&5
16616 sed 's/^/| /' conftest.$ac_ext >&5
16617
16618 eval "$as_ac_var=no"
16619 fi
16620 rm -f conftest.err conftest.$ac_objext \
16621       conftest$ac_exeext conftest.$ac_ext
16622 fi
16623 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16624 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16625 if test `eval echo '${'$as_ac_var'}'` = yes; then
16626   cat >>confdefs.h <<_ACEOF
16627 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16628 _ACEOF
16629
16630 fi
16631 done
16632
16633 fi
16634
16635 fi # libiconv
16636
16637
16638
16639 for ac_header in wchar.h
16640 do
16641 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16642 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16643   echo "$as_me:$LINENO: checking for $ac_header" >&5
16644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16646   echo $ECHO_N "(cached) $ECHO_C" >&6
16647 fi
16648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16649 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16650 else
16651   # Is the header compilable?
16652 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16653 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16654 cat >conftest.$ac_ext <<_ACEOF
16655 /* confdefs.h.  */
16656 _ACEOF
16657 cat confdefs.h >>conftest.$ac_ext
16658 cat >>conftest.$ac_ext <<_ACEOF
16659 /* end confdefs.h.  */
16660 $ac_includes_default
16661 #include <$ac_header>
16662 _ACEOF
16663 rm -f conftest.$ac_objext
16664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16665   (eval $ac_compile) 2>conftest.er1
16666   ac_status=$?
16667   grep -v '^ *+' conftest.er1 >conftest.err
16668   rm -f conftest.er1
16669   cat conftest.err >&5
16670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671   (exit $ac_status); } &&
16672          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16673   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16674   (eval $ac_try) 2>&5
16675   ac_status=$?
16676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677   (exit $ac_status); }; } &&
16678          { ac_try='test -s conftest.$ac_objext'
16679   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16680   (eval $ac_try) 2>&5
16681   ac_status=$?
16682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683   (exit $ac_status); }; }; then
16684   ac_header_compiler=yes
16685 else
16686   echo "$as_me: failed program was:" >&5
16687 sed 's/^/| /' conftest.$ac_ext >&5
16688
16689 ac_header_compiler=no
16690 fi
16691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16692 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16693 echo "${ECHO_T}$ac_header_compiler" >&6
16694
16695 # Is the header present?
16696 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16697 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16698 cat >conftest.$ac_ext <<_ACEOF
16699 /* confdefs.h.  */
16700 _ACEOF
16701 cat confdefs.h >>conftest.$ac_ext
16702 cat >>conftest.$ac_ext <<_ACEOF
16703 /* end confdefs.h.  */
16704 #include <$ac_header>
16705 _ACEOF
16706 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16707   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16708   ac_status=$?
16709   grep -v '^ *+' conftest.er1 >conftest.err
16710   rm -f conftest.er1
16711   cat conftest.err >&5
16712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713   (exit $ac_status); } >/dev/null; then
16714   if test -s conftest.err; then
16715     ac_cpp_err=$ac_c_preproc_warn_flag
16716     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16717   else
16718     ac_cpp_err=
16719   fi
16720 else
16721   ac_cpp_err=yes
16722 fi
16723 if test -z "$ac_cpp_err"; then
16724   ac_header_preproc=yes
16725 else
16726   echo "$as_me: failed program was:" >&5
16727 sed 's/^/| /' conftest.$ac_ext >&5
16728
16729   ac_header_preproc=no
16730 fi
16731 rm -f conftest.err conftest.$ac_ext
16732 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16733 echo "${ECHO_T}$ac_header_preproc" >&6
16734
16735 # So?  What about this header?
16736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16737   yes:no: )
16738     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16740     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16742     ac_header_preproc=yes
16743     ;;
16744   no:yes:* )
16745     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16747     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16748 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16749     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16751     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16752 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16753     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16755     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16757     (
16758       cat <<\_ASBOX
16759 ## ------------------------------------------ ##
16760 ## Report this to the AC_PACKAGE_NAME lists.  ##
16761 ## ------------------------------------------ ##
16762 _ASBOX
16763     ) |
16764       sed "s/^/$as_me: WARNING:     /" >&2
16765     ;;
16766 esac
16767 echo "$as_me:$LINENO: checking for $ac_header" >&5
16768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16769 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16770   echo $ECHO_N "(cached) $ECHO_C" >&6
16771 else
16772   eval "$as_ac_Header=\$ac_header_preproc"
16773 fi
16774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16775 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16776
16777 fi
16778 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16779   cat >>confdefs.h <<_ACEOF
16780 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16781 _ACEOF
16782
16783 fi
16784
16785 done
16786
16787
16788 echo "$as_me:$LINENO: checking for wchar_t" >&5
16789 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
16790 if test "${mutt_cv_wchar_t+set}" = set; then
16791   echo $ECHO_N "(cached) $ECHO_C" >&6
16792 else
16793   cat >conftest.$ac_ext <<_ACEOF
16794 /* confdefs.h.  */
16795 _ACEOF
16796 cat confdefs.h >>conftest.$ac_ext
16797 cat >>conftest.$ac_ext <<_ACEOF
16798 /* end confdefs.h.  */
16799
16800 #include <stddef.h>
16801 #include <stdlib.h>
16802 #ifdef HAVE_WCHAR_H
16803 #include <wchar.h>
16804 #endif
16805
16806 int
16807 main ()
16808 {
16809  wchar_t wc; return 0;
16810   ;
16811   return 0;
16812 }
16813 _ACEOF
16814 rm -f conftest.$ac_objext
16815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16816   (eval $ac_compile) 2>conftest.er1
16817   ac_status=$?
16818   grep -v '^ *+' conftest.er1 >conftest.err
16819   rm -f conftest.er1
16820   cat conftest.err >&5
16821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822   (exit $ac_status); } &&
16823          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16824   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16825   (eval $ac_try) 2>&5
16826   ac_status=$?
16827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16828   (exit $ac_status); }; } &&
16829          { ac_try='test -s conftest.$ac_objext'
16830   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16831   (eval $ac_try) 2>&5
16832   ac_status=$?
16833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834   (exit $ac_status); }; }; then
16835   mutt_cv_wchar_t=yes
16836 else
16837   echo "$as_me: failed program was:" >&5
16838 sed 's/^/| /' conftest.$ac_ext >&5
16839
16840 mutt_cv_wchar_t=no
16841 fi
16842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16843 fi
16844 echo "$as_me:$LINENO: result: $mutt_cv_wchar_t" >&5
16845 echo "${ECHO_T}$mutt_cv_wchar_t" >&6
16846
16847 if test "$mutt_cv_wchar_t" = no; then
16848
16849 cat >>confdefs.h <<\_ACEOF
16850 #define wchar_t int
16851 _ACEOF
16852
16853 fi
16854
16855 echo "$as_me:$LINENO: checking for wint_t" >&5
16856 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6
16857 if test "${mutt_cv_wint_t+set}" = set; then
16858   echo $ECHO_N "(cached) $ECHO_C" >&6
16859 else
16860   cat >conftest.$ac_ext <<_ACEOF
16861 /* confdefs.h.  */
16862 _ACEOF
16863 cat confdefs.h >>conftest.$ac_ext
16864 cat >>conftest.$ac_ext <<_ACEOF
16865 /* end confdefs.h.  */
16866
16867 #include <stddef.h>
16868 #include <stdlib.h>
16869 #ifdef HAVE_WCHAR_H
16870 #include <wchar.h>
16871 #endif
16872
16873 int
16874 main ()
16875 {
16876  wint_t wc; return 0;
16877   ;
16878   return 0;
16879 }
16880 _ACEOF
16881 rm -f conftest.$ac_objext
16882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16883   (eval $ac_compile) 2>conftest.er1
16884   ac_status=$?
16885   grep -v '^ *+' conftest.er1 >conftest.err
16886   rm -f conftest.er1
16887   cat conftest.err >&5
16888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889   (exit $ac_status); } &&
16890          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16892   (eval $ac_try) 2>&5
16893   ac_status=$?
16894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16895   (exit $ac_status); }; } &&
16896          { ac_try='test -s conftest.$ac_objext'
16897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16898   (eval $ac_try) 2>&5
16899   ac_status=$?
16900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901   (exit $ac_status); }; }; then
16902   mutt_cv_wint_t=yes
16903 else
16904   echo "$as_me: failed program was:" >&5
16905 sed 's/^/| /' conftest.$ac_ext >&5
16906
16907 mutt_cv_wint_t=no
16908 fi
16909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16910 fi
16911 echo "$as_me:$LINENO: result: $mutt_cv_wint_t" >&5
16912 echo "${ECHO_T}$mutt_cv_wint_t" >&6
16913
16914 if test "$mutt_cv_wint_t" = no; then
16915
16916 cat >>confdefs.h <<\_ACEOF
16917 #define wint_t int
16918 _ACEOF
16919
16920 fi
16921
16922
16923 for ac_header in wctype.h
16924 do
16925 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16927   echo "$as_me:$LINENO: checking for $ac_header" >&5
16928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16930   echo $ECHO_N "(cached) $ECHO_C" >&6
16931 fi
16932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16934 else
16935   # Is the header compilable?
16936 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16937 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16938 cat >conftest.$ac_ext <<_ACEOF
16939 /* confdefs.h.  */
16940 _ACEOF
16941 cat confdefs.h >>conftest.$ac_ext
16942 cat >>conftest.$ac_ext <<_ACEOF
16943 /* end confdefs.h.  */
16944 $ac_includes_default
16945 #include <$ac_header>
16946 _ACEOF
16947 rm -f conftest.$ac_objext
16948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16949   (eval $ac_compile) 2>conftest.er1
16950   ac_status=$?
16951   grep -v '^ *+' conftest.er1 >conftest.err
16952   rm -f conftest.er1
16953   cat conftest.err >&5
16954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955   (exit $ac_status); } &&
16956          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
16957   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16958   (eval $ac_try) 2>&5
16959   ac_status=$?
16960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961   (exit $ac_status); }; } &&
16962          { ac_try='test -s conftest.$ac_objext'
16963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16964   (eval $ac_try) 2>&5
16965   ac_status=$?
16966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967   (exit $ac_status); }; }; then
16968   ac_header_compiler=yes
16969 else
16970   echo "$as_me: failed program was:" >&5
16971 sed 's/^/| /' conftest.$ac_ext >&5
16972
16973 ac_header_compiler=no
16974 fi
16975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16976 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16977 echo "${ECHO_T}$ac_header_compiler" >&6
16978
16979 # Is the header present?
16980 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16981 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16982 cat >conftest.$ac_ext <<_ACEOF
16983 /* confdefs.h.  */
16984 _ACEOF
16985 cat confdefs.h >>conftest.$ac_ext
16986 cat >>conftest.$ac_ext <<_ACEOF
16987 /* end confdefs.h.  */
16988 #include <$ac_header>
16989 _ACEOF
16990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16991   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16992   ac_status=$?
16993   grep -v '^ *+' conftest.er1 >conftest.err
16994   rm -f conftest.er1
16995   cat conftest.err >&5
16996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997   (exit $ac_status); } >/dev/null; then
16998   if test -s conftest.err; then
16999     ac_cpp_err=$ac_c_preproc_warn_flag
17000     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17001   else
17002     ac_cpp_err=
17003   fi
17004 else
17005   ac_cpp_err=yes
17006 fi
17007 if test -z "$ac_cpp_err"; then
17008   ac_header_preproc=yes
17009 else
17010   echo "$as_me: failed program was:" >&5
17011 sed 's/^/| /' conftest.$ac_ext >&5
17012
17013   ac_header_preproc=no
17014 fi
17015 rm -f conftest.err conftest.$ac_ext
17016 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17017 echo "${ECHO_T}$ac_header_preproc" >&6
17018
17019 # So?  What about this header?
17020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17021   yes:no: )
17022     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17024     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17025 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17026     ac_header_preproc=yes
17027     ;;
17028   no:yes:* )
17029     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17030 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17031     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17032 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17033     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17034 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17035     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17036 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17037     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17039     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17040 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17041     (
17042       cat <<\_ASBOX
17043 ## ------------------------------------------ ##
17044 ## Report this to the AC_PACKAGE_NAME lists.  ##
17045 ## ------------------------------------------ ##
17046 _ASBOX
17047     ) |
17048       sed "s/^/$as_me: WARNING:     /" >&2
17049     ;;
17050 esac
17051 echo "$as_me:$LINENO: checking for $ac_header" >&5
17052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17054   echo $ECHO_N "(cached) $ECHO_C" >&6
17055 else
17056   eval "$as_ac_Header=\$ac_header_preproc"
17057 fi
17058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17060
17061 fi
17062 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17063   cat >>confdefs.h <<_ACEOF
17064 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17065 _ACEOF
17066
17067 fi
17068
17069 done
17070
17071
17072
17073
17074
17075 for ac_func in iswalnum iswalpha  iswcntrl iswdigit
17076 do
17077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17078 echo "$as_me:$LINENO: checking for $ac_func" >&5
17079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17080 if eval "test \"\${$as_ac_var+set}\" = set"; then
17081   echo $ECHO_N "(cached) $ECHO_C" >&6
17082 else
17083   cat >conftest.$ac_ext <<_ACEOF
17084 /* confdefs.h.  */
17085 _ACEOF
17086 cat confdefs.h >>conftest.$ac_ext
17087 cat >>conftest.$ac_ext <<_ACEOF
17088 /* end confdefs.h.  */
17089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17090    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17091 #define $ac_func innocuous_$ac_func
17092
17093 /* System header to define __stub macros and hopefully few prototypes,
17094     which can conflict with char $ac_func (); below.
17095     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17096     <limits.h> exists even on freestanding compilers.  */
17097
17098 #ifdef __STDC__
17099 # include <limits.h>
17100 #else
17101 # include <assert.h>
17102 #endif
17103
17104 #undef $ac_func
17105
17106 /* Override any gcc2 internal prototype to avoid an error.  */
17107 #ifdef __cplusplus
17108 extern "C"
17109 {
17110 #endif
17111 /* We use char because int might match the return type of a gcc2
17112    builtin and then its argument prototype would still apply.  */
17113 char $ac_func ();
17114 /* The GNU C library defines this for functions which it implements
17115     to always fail with ENOSYS.  Some functions are actually named
17116     something starting with __ and the normal name is an alias.  */
17117 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17118 choke me
17119 #else
17120 char (*f) () = $ac_func;
17121 #endif
17122 #ifdef __cplusplus
17123 }
17124 #endif
17125
17126 int
17127 main ()
17128 {
17129 return f != $ac_func;
17130   ;
17131   return 0;
17132 }
17133 _ACEOF
17134 rm -f conftest.$ac_objext conftest$ac_exeext
17135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17136   (eval $ac_link) 2>conftest.er1
17137   ac_status=$?
17138   grep -v '^ *+' conftest.er1 >conftest.err
17139   rm -f conftest.er1
17140   cat conftest.err >&5
17141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142   (exit $ac_status); } &&
17143          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17145   (eval $ac_try) 2>&5
17146   ac_status=$?
17147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148   (exit $ac_status); }; } &&
17149          { ac_try='test -s conftest$ac_exeext'
17150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17151   (eval $ac_try) 2>&5
17152   ac_status=$?
17153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154   (exit $ac_status); }; }; then
17155   eval "$as_ac_var=yes"
17156 else
17157   echo "$as_me: failed program was:" >&5
17158 sed 's/^/| /' conftest.$ac_ext >&5
17159
17160 eval "$as_ac_var=no"
17161 fi
17162 rm -f conftest.err conftest.$ac_objext \
17163       conftest$ac_exeext conftest.$ac_ext
17164 fi
17165 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17166 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17167 if test `eval echo '${'$as_ac_var'}'` = yes; then
17168   cat >>confdefs.h <<_ACEOF
17169 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17170 _ACEOF
17171
17172 fi
17173 done
17174
17175
17176
17177
17178
17179
17180
17181 for ac_func in iswgraph iswlower iswprint iswpunct iswspace iswupper
17182 do
17183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17184 echo "$as_me:$LINENO: checking for $ac_func" >&5
17185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17186 if eval "test \"\${$as_ac_var+set}\" = set"; then
17187   echo $ECHO_N "(cached) $ECHO_C" >&6
17188 else
17189   cat >conftest.$ac_ext <<_ACEOF
17190 /* confdefs.h.  */
17191 _ACEOF
17192 cat confdefs.h >>conftest.$ac_ext
17193 cat >>conftest.$ac_ext <<_ACEOF
17194 /* end confdefs.h.  */
17195 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17196    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17197 #define $ac_func innocuous_$ac_func
17198
17199 /* System header to define __stub macros and hopefully few prototypes,
17200     which can conflict with char $ac_func (); below.
17201     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17202     <limits.h> exists even on freestanding compilers.  */
17203
17204 #ifdef __STDC__
17205 # include <limits.h>
17206 #else
17207 # include <assert.h>
17208 #endif
17209
17210 #undef $ac_func
17211
17212 /* Override any gcc2 internal prototype to avoid an error.  */
17213 #ifdef __cplusplus
17214 extern "C"
17215 {
17216 #endif
17217 /* We use char because int might match the return type of a gcc2
17218    builtin and then its argument prototype would still apply.  */
17219 char $ac_func ();
17220 /* The GNU C library defines this for functions which it implements
17221     to always fail with ENOSYS.  Some functions are actually named
17222     something starting with __ and the normal name is an alias.  */
17223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17224 choke me
17225 #else
17226 char (*f) () = $ac_func;
17227 #endif
17228 #ifdef __cplusplus
17229 }
17230 #endif
17231
17232 int
17233 main ()
17234 {
17235 return f != $ac_func;
17236   ;
17237   return 0;
17238 }
17239 _ACEOF
17240 rm -f conftest.$ac_objext conftest$ac_exeext
17241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17242   (eval $ac_link) 2>conftest.er1
17243   ac_status=$?
17244   grep -v '^ *+' conftest.er1 >conftest.err
17245   rm -f conftest.er1
17246   cat conftest.err >&5
17247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248   (exit $ac_status); } &&
17249          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17250   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17251   (eval $ac_try) 2>&5
17252   ac_status=$?
17253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254   (exit $ac_status); }; } &&
17255          { ac_try='test -s conftest$ac_exeext'
17256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17257   (eval $ac_try) 2>&5
17258   ac_status=$?
17259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260   (exit $ac_status); }; }; then
17261   eval "$as_ac_var=yes"
17262 else
17263   echo "$as_me: failed program was:" >&5
17264 sed 's/^/| /' conftest.$ac_ext >&5
17265
17266 eval "$as_ac_var=no"
17267 fi
17268 rm -f conftest.err conftest.$ac_objext \
17269       conftest$ac_exeext conftest.$ac_ext
17270 fi
17271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17272 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17273 if test `eval echo '${'$as_ac_var'}'` = yes; then
17274   cat >>confdefs.h <<_ACEOF
17275 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17276 _ACEOF
17277
17278 fi
17279 done
17280
17281
17282
17283
17284 for ac_func in iswxdigit towupper towlower
17285 do
17286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17287 echo "$as_me:$LINENO: checking for $ac_func" >&5
17288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17289 if eval "test \"\${$as_ac_var+set}\" = set"; then
17290   echo $ECHO_N "(cached) $ECHO_C" >&6
17291 else
17292   cat >conftest.$ac_ext <<_ACEOF
17293 /* confdefs.h.  */
17294 _ACEOF
17295 cat confdefs.h >>conftest.$ac_ext
17296 cat >>conftest.$ac_ext <<_ACEOF
17297 /* end confdefs.h.  */
17298 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17299    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17300 #define $ac_func innocuous_$ac_func
17301
17302 /* System header to define __stub macros and hopefully few prototypes,
17303     which can conflict with char $ac_func (); below.
17304     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17305     <limits.h> exists even on freestanding compilers.  */
17306
17307 #ifdef __STDC__
17308 # include <limits.h>
17309 #else
17310 # include <assert.h>
17311 #endif
17312
17313 #undef $ac_func
17314
17315 /* Override any gcc2 internal prototype to avoid an error.  */
17316 #ifdef __cplusplus
17317 extern "C"
17318 {
17319 #endif
17320 /* We use char because int might match the return type of a gcc2
17321    builtin and then its argument prototype would still apply.  */
17322 char $ac_func ();
17323 /* The GNU C library defines this for functions which it implements
17324     to always fail with ENOSYS.  Some functions are actually named
17325     something starting with __ and the normal name is an alias.  */
17326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17327 choke me
17328 #else
17329 char (*f) () = $ac_func;
17330 #endif
17331 #ifdef __cplusplus
17332 }
17333 #endif
17334
17335 int
17336 main ()
17337 {
17338 return f != $ac_func;
17339   ;
17340   return 0;
17341 }
17342 _ACEOF
17343 rm -f conftest.$ac_objext conftest$ac_exeext
17344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17345   (eval $ac_link) 2>conftest.er1
17346   ac_status=$?
17347   grep -v '^ *+' conftest.er1 >conftest.err
17348   rm -f conftest.er1
17349   cat conftest.err >&5
17350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351   (exit $ac_status); } &&
17352          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17354   (eval $ac_try) 2>&5
17355   ac_status=$?
17356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357   (exit $ac_status); }; } &&
17358          { ac_try='test -s conftest$ac_exeext'
17359   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17360   (eval $ac_try) 2>&5
17361   ac_status=$?
17362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363   (exit $ac_status); }; }; then
17364   eval "$as_ac_var=yes"
17365 else
17366   echo "$as_me: failed program was:" >&5
17367 sed 's/^/| /' conftest.$ac_ext >&5
17368
17369 eval "$as_ac_var=no"
17370 fi
17371 rm -f conftest.err conftest.$ac_objext \
17372       conftest$ac_exeext conftest.$ac_ext
17373 fi
17374 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17375 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17376 if test `eval echo '${'$as_ac_var'}'` = yes; then
17377   cat >>confdefs.h <<_ACEOF
17378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17379 _ACEOF
17380
17381 fi
17382 done
17383
17384
17385 echo "$as_me:$LINENO: checking for mbstate_t" >&5
17386 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
17387 if test "${mutt_cv_mbstate_t+set}" = set; then
17388   echo $ECHO_N "(cached) $ECHO_C" >&6
17389 else
17390   cat >conftest.$ac_ext <<_ACEOF
17391 /* confdefs.h.  */
17392 _ACEOF
17393 cat confdefs.h >>conftest.$ac_ext
17394 cat >>conftest.$ac_ext <<_ACEOF
17395 /* end confdefs.h.  */
17396
17397 #include <stddef.h>
17398 #include <stdlib.h>
17399 #ifdef HAVE_WCHAR_H
17400 #include <wchar.h>
17401 #endif
17402
17403 int
17404 main ()
17405 {
17406  mbstate_t s; return 0;
17407   ;
17408   return 0;
17409 }
17410 _ACEOF
17411 rm -f conftest.$ac_objext
17412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17413   (eval $ac_compile) 2>conftest.er1
17414   ac_status=$?
17415   grep -v '^ *+' conftest.er1 >conftest.err
17416   rm -f conftest.er1
17417   cat conftest.err >&5
17418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17419   (exit $ac_status); } &&
17420          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17422   (eval $ac_try) 2>&5
17423   ac_status=$?
17424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425   (exit $ac_status); }; } &&
17426          { ac_try='test -s conftest.$ac_objext'
17427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17428   (eval $ac_try) 2>&5
17429   ac_status=$?
17430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17431   (exit $ac_status); }; }; then
17432   mutt_cv_mbstate_t=yes
17433 else
17434   echo "$as_me: failed program was:" >&5
17435 sed 's/^/| /' conftest.$ac_ext >&5
17436
17437 mutt_cv_mbstate_t=no
17438 fi
17439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17440 fi
17441 echo "$as_me:$LINENO: result: $mutt_cv_mbstate_t" >&5
17442 echo "${ECHO_T}$mutt_cv_mbstate_t" >&6
17443
17444 if test "$mutt_cv_mbstate_t" = no; then
17445
17446 cat >>confdefs.h <<\_ACEOF
17447 #define mbstate_t int
17448 _ACEOF
17449
17450 fi
17451
17452 wc_funcs=maybe
17453
17454 # Check whether --with-wc-funcs or --without-wc-funcs was given.
17455 if test "${with_wc_funcs+set}" = set; then
17456   withval="$with_wc_funcs"
17457   wc_funcs=$withval
17458 fi;
17459
17460 if test "$wc_funcs" != yes -a "$wc_funcs" != no; then
17461         echo "$as_me:$LINENO: checking for wchar_t functions" >&5
17462 echo $ECHO_N "checking for wchar_t functions... $ECHO_C" >&6
17463 if test "${mutt_cv_wc_funcs+set}" = set; then
17464   echo $ECHO_N "(cached) $ECHO_C" >&6
17465 else
17466   mutt_cv_wc_funcs=no
17467                 cat >conftest.$ac_ext <<_ACEOF
17468 /* confdefs.h.  */
17469 _ACEOF
17470 cat confdefs.h >>conftest.$ac_ext
17471 cat >>conftest.$ac_ext <<_ACEOF
17472 /* end confdefs.h.  */
17473
17474 #define _XOPEN_SOURCE 1
17475 #include <stddef.h>
17476 #include <stdlib.h>
17477 #ifdef HAVE_WCTYPE_H
17478 #include <wctype.h>
17479 #endif
17480 #ifdef HAVE_WCHAR_H
17481 #include <wchar.h>
17482 #endif
17483 int
17484 main ()
17485 {
17486 mbrtowc(0, 0, 0, 0); wctomb(0, 0); wcwidth(0);
17487         iswprint(0); iswspace(0); towlower(0); towupper(0); iswalnum(0)
17488   ;
17489   return 0;
17490 }
17491 _ACEOF
17492 rm -f conftest.$ac_objext conftest$ac_exeext
17493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17494   (eval $ac_link) 2>conftest.er1
17495   ac_status=$?
17496   grep -v '^ *+' conftest.er1 >conftest.err
17497   rm -f conftest.er1
17498   cat conftest.err >&5
17499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500   (exit $ac_status); } &&
17501          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17502   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17503   (eval $ac_try) 2>&5
17504   ac_status=$?
17505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506   (exit $ac_status); }; } &&
17507          { ac_try='test -s conftest$ac_exeext'
17508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17509   (eval $ac_try) 2>&5
17510   ac_status=$?
17511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512   (exit $ac_status); }; }; then
17513   mutt_cv_wc_funcs=yes
17514 else
17515   echo "$as_me: failed program was:" >&5
17516 sed 's/^/| /' conftest.$ac_ext >&5
17517
17518 fi
17519 rm -f conftest.err conftest.$ac_objext \
17520       conftest$ac_exeext conftest.$ac_ext
17521 fi
17522 echo "$as_me:$LINENO: result: $mutt_cv_wc_funcs" >&5
17523 echo "${ECHO_T}$mutt_cv_wc_funcs" >&6
17524         wc_funcs=$mutt_cv_wc_funcs
17525 fi
17526
17527 if test $wc_funcs = yes; then
17528
17529 cat >>confdefs.h <<\_ACEOF
17530 #define HAVE_WC_FUNCS 1
17531 _ACEOF
17532
17533 fi
17534
17535 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
17536 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
17537 if test "${mutt_cv_langinfo_codeset+set}" = set; then
17538   echo $ECHO_N "(cached) $ECHO_C" >&6
17539 else
17540   cat >conftest.$ac_ext <<_ACEOF
17541 /* confdefs.h.  */
17542 _ACEOF
17543 cat confdefs.h >>conftest.$ac_ext
17544 cat >>conftest.$ac_ext <<_ACEOF
17545 /* end confdefs.h.  */
17546 #include <langinfo.h>
17547 int
17548 main ()
17549 {
17550 char* cs = nl_langinfo(CODESET);
17551   ;
17552   return 0;
17553 }
17554 _ACEOF
17555 rm -f conftest.$ac_objext conftest$ac_exeext
17556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17557   (eval $ac_link) 2>conftest.er1
17558   ac_status=$?
17559   grep -v '^ *+' conftest.er1 >conftest.err
17560   rm -f conftest.er1
17561   cat conftest.err >&5
17562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563   (exit $ac_status); } &&
17564          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17566   (eval $ac_try) 2>&5
17567   ac_status=$?
17568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569   (exit $ac_status); }; } &&
17570          { ac_try='test -s conftest$ac_exeext'
17571   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17572   (eval $ac_try) 2>&5
17573   ac_status=$?
17574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575   (exit $ac_status); }; }; then
17576   mutt_cv_langinfo_codeset=yes
17577 else
17578   echo "$as_me: failed program was:" >&5
17579 sed 's/^/| /' conftest.$ac_ext >&5
17580
17581 mutt_cv_langinfo_codeset=no
17582 fi
17583 rm -f conftest.err conftest.$ac_objext \
17584       conftest$ac_exeext conftest.$ac_ext
17585 fi
17586 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_codeset" >&5
17587 echo "${ECHO_T}$mutt_cv_langinfo_codeset" >&6
17588 if test $mutt_cv_langinfo_codeset = yes; then
17589
17590 cat >>confdefs.h <<\_ACEOF
17591 #define HAVE_LANGINFO_CODESET 1
17592 _ACEOF
17593
17594 fi
17595
17596 echo "$as_me:$LINENO: checking for nl_langinfo and YESEXPR" >&5
17597 echo $ECHO_N "checking for nl_langinfo and YESEXPR... $ECHO_C" >&6
17598 if test "${mutt_cv_langinfo_yesexpr+set}" = set; then
17599   echo $ECHO_N "(cached) $ECHO_C" >&6
17600 else
17601   cat >conftest.$ac_ext <<_ACEOF
17602 /* confdefs.h.  */
17603 _ACEOF
17604 cat confdefs.h >>conftest.$ac_ext
17605 cat >>conftest.$ac_ext <<_ACEOF
17606 /* end confdefs.h.  */
17607 #include <langinfo.h>
17608 int
17609 main ()
17610 {
17611 char* cs = nl_langinfo(YESEXPR);
17612   ;
17613   return 0;
17614 }
17615 _ACEOF
17616 rm -f conftest.$ac_objext conftest$ac_exeext
17617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17618   (eval $ac_link) 2>conftest.er1
17619   ac_status=$?
17620   grep -v '^ *+' conftest.er1 >conftest.err
17621   rm -f conftest.er1
17622   cat conftest.err >&5
17623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624   (exit $ac_status); } &&
17625          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17626   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17627   (eval $ac_try) 2>&5
17628   ac_status=$?
17629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630   (exit $ac_status); }; } &&
17631          { ac_try='test -s conftest$ac_exeext'
17632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17633   (eval $ac_try) 2>&5
17634   ac_status=$?
17635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636   (exit $ac_status); }; }; then
17637   mutt_cv_langinfo_yesexpr=yes
17638 else
17639   echo "$as_me: failed program was:" >&5
17640 sed 's/^/| /' conftest.$ac_ext >&5
17641
17642 mutt_cv_langinfo_yesexpr=no
17643 fi
17644 rm -f conftest.err conftest.$ac_objext \
17645       conftest$ac_exeext conftest.$ac_ext
17646 fi
17647 echo "$as_me:$LINENO: result: $mutt_cv_langinfo_yesexpr" >&5
17648 echo "${ECHO_T}$mutt_cv_langinfo_yesexpr" >&6
17649 if test $mutt_cv_langinfo_yesexpr = yes; then
17650
17651 cat >>confdefs.h <<\_ACEOF
17652 #define HAVE_LANGINFO_YESEXPR 1
17653 _ACEOF
17654
17655 fi
17656
17657
17658
17659 # Check whether --with-libesmtp or --without-libesmtp was given.
17660 if test "${with_libesmtp+set}" = set; then
17661   withval="$with_libesmtp"
17662    if test "$with_libesmtp" != "no"
17663       then
17664         mutt_libesmtp_check_path="$PATH"
17665
17666         if test "$with_libesmtp" != "yes"
17667         then
17668           mutt_libesmtp_check_path="$tmp_path:$withval/bin"
17669         fi
17670
17671                 # Extract the first word of "libesmtp-config", so it can be a program name with args.
17672 set dummy libesmtp-config; ac_word=$2
17673 echo "$as_me:$LINENO: checking for $ac_word" >&5
17674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17675 if test "${ac_cv_path_mutt_libesmtp_config_path+set}" = set; then
17676   echo $ECHO_N "(cached) $ECHO_C" >&6
17677 else
17678   case $mutt_libesmtp_config_path in
17679   [\\/]* | ?:[\\/]*)
17680   ac_cv_path_mutt_libesmtp_config_path="$mutt_libesmtp_config_path" # Let the user override the test with a path.
17681   ;;
17682   *)
17683   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17684 for as_dir in $mutt_libesmtp_check_path
17685 do
17686   IFS=$as_save_IFS
17687   test -z "$as_dir" && as_dir=.
17688   for ac_exec_ext in '' $ac_executable_extensions; do
17689   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17690     ac_cv_path_mutt_libesmtp_config_path="$as_dir/$ac_word$ac_exec_ext"
17691     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17692     break 2
17693   fi
17694 done
17695 done
17696
17697   test -z "$ac_cv_path_mutt_libesmtp_config_path" && ac_cv_path_mutt_libesmtp_config_path="no"
17698   ;;
17699 esac
17700 fi
17701 mutt_libesmtp_config_path=$ac_cv_path_mutt_libesmtp_config_path
17702
17703 if test -n "$mutt_libesmtp_config_path"; then
17704   echo "$as_me:$LINENO: result: $mutt_libesmtp_config_path" >&5
17705 echo "${ECHO_T}$mutt_libesmtp_config_path" >&6
17706 else
17707   echo "$as_me:$LINENO: result: no" >&5
17708 echo "${ECHO_T}no" >&6
17709 fi
17710
17711
17712         if test "$mutt_libesmtp_config_path" = "no"
17713         then
17714           { { echo "$as_me:$LINENO: error: libesmtp-config binary not found." >&5
17715 echo "$as_me: error: libesmtp-config binary not found." >&2;}
17716    { (exit 1); exit 1; }; }
17717         fi
17718
17719                 mutt_libesmtp_cflags=`$mutt_libesmtp_config_path --cflags`
17720         mutt_libesmtp_libs=`$mutt_libesmtp_config_path --libs`
17721
17722                 temp_CFLAGS="$CFLAGS"
17723         CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
17724         if test "${ac_cv_header_libesmtp_h+set}" = set; then
17725   echo "$as_me:$LINENO: checking for libesmtp.h" >&5
17726 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
17727 if test "${ac_cv_header_libesmtp_h+set}" = set; then
17728   echo $ECHO_N "(cached) $ECHO_C" >&6
17729 fi
17730 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
17731 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
17732 else
17733   # Is the header compilable?
17734 echo "$as_me:$LINENO: checking libesmtp.h usability" >&5
17735 echo $ECHO_N "checking libesmtp.h usability... $ECHO_C" >&6
17736 cat >conftest.$ac_ext <<_ACEOF
17737 /* confdefs.h.  */
17738 _ACEOF
17739 cat confdefs.h >>conftest.$ac_ext
17740 cat >>conftest.$ac_ext <<_ACEOF
17741 /* end confdefs.h.  */
17742 $ac_includes_default
17743 #include <libesmtp.h>
17744 _ACEOF
17745 rm -f conftest.$ac_objext
17746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17747   (eval $ac_compile) 2>conftest.er1
17748   ac_status=$?
17749   grep -v '^ *+' conftest.er1 >conftest.err
17750   rm -f conftest.er1
17751   cat conftest.err >&5
17752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17753   (exit $ac_status); } &&
17754          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17756   (eval $ac_try) 2>&5
17757   ac_status=$?
17758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759   (exit $ac_status); }; } &&
17760          { ac_try='test -s conftest.$ac_objext'
17761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762   (eval $ac_try) 2>&5
17763   ac_status=$?
17764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765   (exit $ac_status); }; }; then
17766   ac_header_compiler=yes
17767 else
17768   echo "$as_me: failed program was:" >&5
17769 sed 's/^/| /' conftest.$ac_ext >&5
17770
17771 ac_header_compiler=no
17772 fi
17773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17774 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17775 echo "${ECHO_T}$ac_header_compiler" >&6
17776
17777 # Is the header present?
17778 echo "$as_me:$LINENO: checking libesmtp.h presence" >&5
17779 echo $ECHO_N "checking libesmtp.h presence... $ECHO_C" >&6
17780 cat >conftest.$ac_ext <<_ACEOF
17781 /* confdefs.h.  */
17782 _ACEOF
17783 cat confdefs.h >>conftest.$ac_ext
17784 cat >>conftest.$ac_ext <<_ACEOF
17785 /* end confdefs.h.  */
17786 #include <libesmtp.h>
17787 _ACEOF
17788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17789   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17790   ac_status=$?
17791   grep -v '^ *+' conftest.er1 >conftest.err
17792   rm -f conftest.er1
17793   cat conftest.err >&5
17794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17795   (exit $ac_status); } >/dev/null; then
17796   if test -s conftest.err; then
17797     ac_cpp_err=$ac_c_preproc_warn_flag
17798     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17799   else
17800     ac_cpp_err=
17801   fi
17802 else
17803   ac_cpp_err=yes
17804 fi
17805 if test -z "$ac_cpp_err"; then
17806   ac_header_preproc=yes
17807 else
17808   echo "$as_me: failed program was:" >&5
17809 sed 's/^/| /' conftest.$ac_ext >&5
17810
17811   ac_header_preproc=no
17812 fi
17813 rm -f conftest.err conftest.$ac_ext
17814 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17815 echo "${ECHO_T}$ac_header_preproc" >&6
17816
17817 # So?  What about this header?
17818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17819   yes:no: )
17820     { echo "$as_me:$LINENO: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&5
17821 echo "$as_me: WARNING: libesmtp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17822     { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the compiler's result" >&5
17823 echo "$as_me: WARNING: libesmtp.h: proceeding with the compiler's result" >&2;}
17824     ac_header_preproc=yes
17825     ;;
17826   no:yes:* )
17827     { echo "$as_me:$LINENO: WARNING: libesmtp.h: present but cannot be compiled" >&5
17828 echo "$as_me: WARNING: libesmtp.h: present but cannot be compiled" >&2;}
17829     { echo "$as_me:$LINENO: WARNING: libesmtp.h:     check for missing prerequisite headers?" >&5
17830 echo "$as_me: WARNING: libesmtp.h:     check for missing prerequisite headers?" >&2;}
17831     { echo "$as_me:$LINENO: WARNING: libesmtp.h: see the Autoconf documentation" >&5
17832 echo "$as_me: WARNING: libesmtp.h: see the Autoconf documentation" >&2;}
17833     { echo "$as_me:$LINENO: WARNING: libesmtp.h:     section \"Present But Cannot Be Compiled\"" >&5
17834 echo "$as_me: WARNING: libesmtp.h:     section \"Present But Cannot Be Compiled\"" >&2;}
17835     { echo "$as_me:$LINENO: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&5
17836 echo "$as_me: WARNING: libesmtp.h: proceeding with the preprocessor's result" >&2;}
17837     { echo "$as_me:$LINENO: WARNING: libesmtp.h: in the future, the compiler will take precedence" >&5
17838 echo "$as_me: WARNING: libesmtp.h: in the future, the compiler will take precedence" >&2;}
17839     (
17840       cat <<\_ASBOX
17841 ## ------------------------------------------ ##
17842 ## Report this to the AC_PACKAGE_NAME lists.  ##
17843 ## ------------------------------------------ ##
17844 _ASBOX
17845     ) |
17846       sed "s/^/$as_me: WARNING:     /" >&2
17847     ;;
17848 esac
17849 echo "$as_me:$LINENO: checking for libesmtp.h" >&5
17850 echo $ECHO_N "checking for libesmtp.h... $ECHO_C" >&6
17851 if test "${ac_cv_header_libesmtp_h+set}" = set; then
17852   echo $ECHO_N "(cached) $ECHO_C" >&6
17853 else
17854   ac_cv_header_libesmtp_h=$ac_header_preproc
17855 fi
17856 echo "$as_me:$LINENO: result: $ac_cv_header_libesmtp_h" >&5
17857 echo "${ECHO_T}$ac_cv_header_libesmtp_h" >&6
17858
17859 fi
17860 if test $ac_cv_header_libesmtp_h = yes; then
17861   :
17862 else
17863   { { echo "$as_me:$LINENO: error: Could not find libesmtp.h" >&5
17864 echo "$as_me: error: Could not find libesmtp.h" >&2;}
17865    { (exit 1); exit 1; }; }
17866 fi
17867
17868
17869         CFLAGS="$temp_CFLAGS"
17870
17871                 temp_CFLAGS="$CFLAGS"
17872         temp_LIBS="$LIBS"
17873         CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
17874         LIBS="$LIBS $mutt_libesmtp_libs"
17875
17876 echo "$as_me:$LINENO: checking for smtp_create_session in -lesmtp" >&5
17877 echo $ECHO_N "checking for smtp_create_session in -lesmtp... $ECHO_C" >&6
17878 if test "${ac_cv_lib_esmtp_smtp_create_session+set}" = set; then
17879   echo $ECHO_N "(cached) $ECHO_C" >&6
17880 else
17881   ac_check_lib_save_LIBS=$LIBS
17882 LIBS="-lesmtp  $LIBS"
17883 cat >conftest.$ac_ext <<_ACEOF
17884 /* confdefs.h.  */
17885 _ACEOF
17886 cat confdefs.h >>conftest.$ac_ext
17887 cat >>conftest.$ac_ext <<_ACEOF
17888 /* end confdefs.h.  */
17889
17890 /* Override any gcc2 internal prototype to avoid an error.  */
17891 #ifdef __cplusplus
17892 extern "C"
17893 #endif
17894 /* We use char because int might match the return type of a gcc2
17895    builtin and then its argument prototype would still apply.  */
17896 char smtp_create_session ();
17897 int
17898 main ()
17899 {
17900 smtp_create_session ();
17901   ;
17902   return 0;
17903 }
17904 _ACEOF
17905 rm -f conftest.$ac_objext conftest$ac_exeext
17906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17907   (eval $ac_link) 2>conftest.er1
17908   ac_status=$?
17909   grep -v '^ *+' conftest.er1 >conftest.err
17910   rm -f conftest.er1
17911   cat conftest.err >&5
17912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913   (exit $ac_status); } &&
17914          { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
17915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17916   (eval $ac_try) 2>&5
17917   ac_status=$?
17918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919   (exit $ac_status); }; } &&
17920          { ac_try='test -s conftest$ac_exeext'
17921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17922   (eval $ac_try) 2>&5
17923   ac_status=$?
17924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925   (exit $ac_status); }; }; then
17926   ac_cv_lib_esmtp_smtp_create_session=yes
17927 else
17928   echo "$as_me: failed program was:" >&5
17929 sed 's/^/| /' conftest.$ac_ext >&5
17930
17931 ac_cv_lib_esmtp_smtp_create_session=no
17932 fi
17933 rm -f conftest.err conftest.$ac_objext \
17934       conftest$ac_exeext conftest.$ac_ext
17935 LIBS=$ac_check_lib_save_LIBS
17936 fi
17937 echo "$as_me:$LINENO: result: $ac_cv_lib_esmtp_smtp_create_session" >&5
17938 echo "${ECHO_T}$ac_cv_lib_esmtp_smtp_create_session" >&6
17939 if test $ac_cv_lib_esmtp_smtp_create_session = yes; then
17940   cat >>confdefs.h <<_ACEOF
17941 #define HAVE_LIBESMTP 1
17942 _ACEOF
17943
17944   LIBS="-lesmtp $LIBS"
17945
17946 else
17947   { { echo "$as_me:$LINENO: error: Could not find libesmtp" >&5
17948 echo "$as_me: error: Could not find libesmtp" >&2;}
17949    { (exit 1); exit 1; }; }
17950 fi
17951
17952         CFLAGS="$temp_CFLAGS"
17953         LIBS="$temp_LIBS"
17954
17955                         use_libesmtp=yes
17956       fi
17957
17958
17959 fi;
17960
17961 if test x$use_libesmtp = xyes; then
17962     CFLAGS="$CFLAGS $mutt_libesmtp_cflags"
17963     MUTTLIBS="$MUTTLIBS $mutt_libesmtp_libs"
17964     MUTT_LIB_OBJECTS="$MUTT_LIB_OBJECTS mutt_libesmtp.o"
17965
17966
17967 cat >>confdefs.h <<\_ACEOF
17968 #define USE_LIBESMTP 1
17969 _ACEOF
17970
17971 fi
17972
17973                                                                                                     ac_config_files="$ac_config_files Makefile intl/Makefile m4/Makefile po/Makefile.in doc/Makefile contrib/Makefile muttbug.sh imap/Makefile Muttngrc.head doc/instdoc.sh"
17974 cat >confcache <<\_ACEOF
17975 # This file is a shell script that caches the results of configure
17976 # tests run on this system so they can be shared between configure
17977 # scripts and configure runs, see configure's option --config-cache.
17978 # It is not useful on other systems.  If it contains results you don't
17979 # want to keep, you may remove or edit it.
17980 #
17981 # config.status only pays attention to the cache file if you give it
17982 # the --recheck option to rerun configure.
17983 #
17984 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17985 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17986 # following values.
17987
17988 _ACEOF
17989
17990 # The following way of writing the cache mishandles newlines in values,
17991 # but we know of no workaround that is simple, portable, and efficient.
17992 # So, don't put newlines in cache variables' values.
17993 # Ultrix sh set writes to stderr and can't be redirected directly,
17994 # and sets the high bit in the cache file unless we assign to the vars.
17995 {
17996   (set) 2>&1 |
17997     case `(ac_space=' '; set | grep ac_space) 2>&1` in
17998     *ac_space=\ *)
17999       # `set' does not quote correctly, so add quotes (double-quote
18000       # substitution turns \\\\ into \\, and sed turns \\ into \).
18001       sed -n \
18002         "s/'/'\\\\''/g;
18003           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18004       ;;
18005     *)
18006       # `set' quotes correctly as required by POSIX, so do not add quotes.
18007       sed -n \
18008         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18009       ;;
18010     esac;
18011 } |
18012   sed '
18013      t clear
18014      : clear
18015      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18016      t end
18017      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18018      : end' >>confcache
18019 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18020   if test -w $cache_file; then
18021     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18022     cat confcache >$cache_file
18023   else
18024     echo "not updating unwritable cache $cache_file"
18025   fi
18026 fi
18027 rm -f confcache
18028
18029 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18030 # Let make expand exec_prefix.
18031 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18032
18033 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18034 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18035 # trailing colons and then remove the whole line if VPATH becomes empty
18036 # (actually we leave an empty line to preserve line numbers).
18037 if test "x$srcdir" = x.; then
18038   ac_vpsub='/^[  ]*VPATH[        ]*=/{
18039 s/:*\$(srcdir):*/:/;
18040 s/:*\${srcdir}:*/:/;
18041 s/:*@srcdir@:*/:/;
18042 s/^\([^=]*=[     ]*\):*/\1/;
18043 s/:*$//;
18044 s/^[^=]*=[       ]*$//;
18045 }'
18046 fi
18047
18048 DEFS=-DHAVE_CONFIG_H
18049
18050 ac_libobjs=
18051 ac_ltlibobjs=
18052 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18053   # 1. Remove the extension, and $U if already installed.
18054   ac_i=`echo "$ac_i" |
18055          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18056   # 2. Add them.
18057   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18058   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18059 done
18060 LIBOBJS=$ac_libobjs
18061
18062 LTLIBOBJS=$ac_ltlibobjs
18063
18064
18065
18066 : ${CONFIG_STATUS=./config.status}
18067 ac_clean_files_save=$ac_clean_files
18068 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18069 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18070 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18071 cat >$CONFIG_STATUS <<_ACEOF
18072 #! $SHELL
18073 # Generated by $as_me.
18074 # Run this file to recreate the current configuration.
18075 # Compiler output produced by configure, useful for debugging
18076 # configure, is in config.log if it exists.
18077
18078 debug=false
18079 ac_cs_recheck=false
18080 ac_cs_silent=false
18081 SHELL=\${CONFIG_SHELL-$SHELL}
18082 _ACEOF
18083
18084 cat >>$CONFIG_STATUS <<\_ACEOF
18085 ## --------------------- ##
18086 ## M4sh Initialization.  ##
18087 ## --------------------- ##
18088
18089 # Be Bourne compatible
18090 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18091   emulate sh
18092   NULLCMD=:
18093   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18094   # is contrary to our usage.  Disable this feature.
18095   alias -g '${1+"$@"}'='"$@"'
18096 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18097   set -o posix
18098 fi
18099 DUALCASE=1; export DUALCASE # for MKS sh
18100
18101 # Support unset when possible.
18102 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18103   as_unset=unset
18104 else
18105   as_unset=false
18106 fi
18107
18108
18109 # Work around bugs in pre-3.0 UWIN ksh.
18110 $as_unset ENV MAIL MAILPATH
18111 PS1='$ '
18112 PS2='> '
18113 PS4='+ '
18114
18115 # NLS nuisances.
18116 for as_var in \
18117   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18118   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18119   LC_TELEPHONE LC_TIME
18120 do
18121   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18122     eval $as_var=C; export $as_var
18123   else
18124     $as_unset $as_var
18125   fi
18126 done
18127
18128 # Required to use basename.
18129 if expr a : '\(a\)' >/dev/null 2>&1; then
18130   as_expr=expr
18131 else
18132   as_expr=false
18133 fi
18134
18135 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18136   as_basename=basename
18137 else
18138   as_basename=false
18139 fi
18140
18141
18142 # Name of the executable.
18143 as_me=`$as_basename "$0" ||
18144 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18145          X"$0" : 'X\(//\)$' \| \
18146          X"$0" : 'X\(/\)$' \| \
18147          .     : '\(.\)' 2>/dev/null ||
18148 echo X/"$0" |
18149     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18150           /^X\/\(\/\/\)$/{ s//\1/; q; }
18151           /^X\/\(\/\).*/{ s//\1/; q; }
18152           s/.*/./; q'`
18153
18154
18155 # PATH needs CR, and LINENO needs CR and PATH.
18156 # Avoid depending upon Character Ranges.
18157 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18158 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18159 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18160 as_cr_digits='0123456789'
18161 as_cr_alnum=$as_cr_Letters$as_cr_digits
18162
18163 # The user is always right.
18164 if test "${PATH_SEPARATOR+set}" != set; then
18165   echo "#! /bin/sh" >conf$$.sh
18166   echo  "exit 0"   >>conf$$.sh
18167   chmod +x conf$$.sh
18168   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18169     PATH_SEPARATOR=';'
18170   else
18171     PATH_SEPARATOR=:
18172   fi
18173   rm -f conf$$.sh
18174 fi
18175
18176
18177   as_lineno_1=$LINENO
18178   as_lineno_2=$LINENO
18179   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18180   test "x$as_lineno_1" != "x$as_lineno_2" &&
18181   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
18182   # Find who we are.  Look in the path if we contain no path at all
18183   # relative or not.
18184   case $0 in
18185     *[\\/]* ) as_myself=$0 ;;
18186     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18187 for as_dir in $PATH
18188 do
18189   IFS=$as_save_IFS
18190   test -z "$as_dir" && as_dir=.
18191   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18192 done
18193
18194        ;;
18195   esac
18196   # We did not find ourselves, most probably we were run as `sh COMMAND'
18197   # in which case we are not to be found in the path.
18198   if test "x$as_myself" = x; then
18199     as_myself=$0
18200   fi
18201   if test ! -f "$as_myself"; then
18202     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18203 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18204    { (exit 1); exit 1; }; }
18205   fi
18206   case $CONFIG_SHELL in
18207   '')
18208     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18210 do
18211   IFS=$as_save_IFS
18212   test -z "$as_dir" && as_dir=.
18213   for as_base in sh bash ksh sh5; do
18214          case $as_dir in
18215          /*)
18216            if ("$as_dir/$as_base" -c '
18217   as_lineno_1=$LINENO
18218   as_lineno_2=$LINENO
18219   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18220   test "x$as_lineno_1" != "x$as_lineno_2" &&
18221   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
18222              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18223              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18224              CONFIG_SHELL=$as_dir/$as_base
18225              export CONFIG_SHELL
18226              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18227            fi;;
18228          esac
18229        done
18230 done
18231 ;;
18232   esac
18233
18234   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18235   # uniformly replaced by the line number.  The first 'sed' inserts a
18236   # line-number line before each line; the second 'sed' does the real
18237   # work.  The second script uses 'N' to pair each line-number line
18238   # with the numbered line, and appends trailing '-' during
18239   # substitution so that $LINENO is not a special case at line end.
18240   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18241   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
18242   sed '=' <$as_myself |
18243     sed '
18244       N
18245       s,$,-,
18246       : loop
18247       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18248       t loop
18249       s,-$,,
18250       s,^['$as_cr_digits']*\n,,
18251     ' >$as_me.lineno &&
18252   chmod +x $as_me.lineno ||
18253     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18254 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18255    { (exit 1); exit 1; }; }
18256
18257   # Don't try to exec as it changes $[0], causing all sort of problems
18258   # (the dirname of $[0] is not the place where we might find the
18259   # original and so on.  Autoconf is especially sensible to this).
18260   . ./$as_me.lineno
18261   # Exit status is that of the last command.
18262   exit
18263 }
18264
18265
18266 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18267   *c*,-n*) ECHO_N= ECHO_C='
18268 ' ECHO_T='      ' ;;
18269   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18270   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
18271 esac
18272
18273 if expr a : '\(a\)' >/dev/null 2>&1; then
18274   as_expr=expr
18275 else
18276   as_expr=false
18277 fi
18278
18279 rm -f conf$$ conf$$.exe conf$$.file
18280 echo >conf$$.file
18281 if ln -s conf$$.file conf$$ 2>/dev/null; then
18282   # We could just check for DJGPP; but this test a) works b) is more generic
18283   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18284   if test -f conf$$.exe; then
18285     # Don't use ln at all; we don't have any links
18286     as_ln_s='cp -p'
18287   else
18288     as_ln_s='ln -s'
18289   fi
18290 elif ln conf$$.file conf$$ 2>/dev/null; then
18291   as_ln_s=ln
18292 else
18293   as_ln_s='cp -p'
18294 fi
18295 rm -f conf$$ conf$$.exe conf$$.file
18296
18297 if mkdir -p . 2>/dev/null; then
18298   as_mkdir_p=:
18299 else
18300   test -d ./-p && rmdir ./-p
18301   as_mkdir_p=false
18302 fi
18303
18304 as_executable_p="test -f"
18305
18306 # Sed expression to map a string onto a valid CPP name.
18307 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18308
18309 # Sed expression to map a string onto a valid variable name.
18310 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18311
18312
18313 # IFS
18314 # We need space, tab and new line, in precisely that order.
18315 as_nl='
18316 '
18317 IFS="   $as_nl"
18318
18319 # CDPATH.
18320 $as_unset CDPATH
18321
18322 exec 6>&1
18323
18324 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18325 # report actual input values of CONFIG_FILES etc. instead of their
18326 # values after options handling.  Logging --version etc. is OK.
18327 exec 5>>config.log
18328 {
18329   echo
18330   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18331 ## Running $as_me. ##
18332 _ASBOX
18333 } >&5
18334 cat >&5 <<_CSEOF
18335
18336 This file was extended by $as_me, which was
18337 generated by GNU Autoconf 2.59.  Invocation command line was
18338
18339   CONFIG_FILES    = $CONFIG_FILES
18340   CONFIG_HEADERS  = $CONFIG_HEADERS
18341   CONFIG_LINKS    = $CONFIG_LINKS
18342   CONFIG_COMMANDS = $CONFIG_COMMANDS
18343   $ $0 $@
18344
18345 _CSEOF
18346 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18347 echo >&5
18348 _ACEOF
18349
18350 # Files that config.status was made for.
18351 if test -n "$ac_config_files"; then
18352   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18353 fi
18354
18355 if test -n "$ac_config_headers"; then
18356   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18357 fi
18358
18359 if test -n "$ac_config_links"; then
18360   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18361 fi
18362
18363 if test -n "$ac_config_commands"; then
18364   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18365 fi
18366
18367 cat >>$CONFIG_STATUS <<\_ACEOF
18368
18369 ac_cs_usage="\
18370 \`$as_me' instantiates files from templates according to the
18371 current configuration.
18372
18373 Usage: $0 [OPTIONS] [FILE]...
18374
18375   -h, --help       print this help, then exit
18376   -V, --version    print version number, then exit
18377   -q, --quiet      do not print progress messages
18378   -d, --debug      don't remove temporary files
18379       --recheck    update $as_me by reconfiguring in the same conditions
18380   --file=FILE[:TEMPLATE]
18381                    instantiate the configuration file FILE
18382   --header=FILE[:TEMPLATE]
18383                    instantiate the configuration header FILE
18384
18385 Configuration files:
18386 $config_files
18387
18388 Configuration headers:
18389 $config_headers
18390
18391 Configuration commands:
18392 $config_commands
18393
18394 Report bugs to <bug-autoconf@gnu.org>."
18395 _ACEOF
18396
18397 cat >>$CONFIG_STATUS <<_ACEOF
18398 ac_cs_version="\\
18399 config.status
18400 configured by $0, generated by GNU Autoconf 2.59,
18401   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18402
18403 Copyright (C) 2003 Free Software Foundation, Inc.
18404 This config.status script is free software; the Free Software Foundation
18405 gives unlimited permission to copy, distribute and modify it."
18406 srcdir=$srcdir
18407 INSTALL="$INSTALL"
18408 _ACEOF
18409
18410 cat >>$CONFIG_STATUS <<\_ACEOF
18411 # If no file are specified by the user, then we need to provide default
18412 # value.  By we need to know if files were specified by the user.
18413 ac_need_defaults=:
18414 while test $# != 0
18415 do
18416   case $1 in
18417   --*=*)
18418     ac_option=`expr "x$1" : 'x\([^=]*\)='`
18419     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18420     ac_shift=:
18421     ;;
18422   -*)
18423     ac_option=$1
18424     ac_optarg=$2
18425     ac_shift=shift
18426     ;;
18427   *) # This is not an option, so the user has probably given explicit
18428      # arguments.
18429      ac_option=$1
18430      ac_need_defaults=false;;
18431   esac
18432
18433   case $ac_option in
18434   # Handling of the options.
18435 _ACEOF
18436 cat >>$CONFIG_STATUS <<\_ACEOF
18437   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18438     ac_cs_recheck=: ;;
18439   --version | --vers* | -V )
18440     echo "$ac_cs_version"; exit 0 ;;
18441   --he | --h)
18442     # Conflict between --help and --header
18443     { { echo "$as_me:$LINENO: error: ambiguous option: $1
18444 Try \`$0 --help' for more information." >&5
18445 echo "$as_me: error: ambiguous option: $1
18446 Try \`$0 --help' for more information." >&2;}
18447    { (exit 1); exit 1; }; };;
18448   --help | --hel | -h )
18449     echo "$ac_cs_usage"; exit 0 ;;
18450   --debug | --d* | -d )
18451     debug=: ;;
18452   --file | --fil | --fi | --f )
18453     $ac_shift
18454     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18455     ac_need_defaults=false;;
18456   --header | --heade | --head | --hea )
18457     $ac_shift
18458     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18459     ac_need_defaults=false;;
18460   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18461   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18462     ac_cs_silent=: ;;
18463
18464   # This is an error.
18465   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18466 Try \`$0 --help' for more information." >&5
18467 echo "$as_me: error: unrecognized option: $1
18468 Try \`$0 --help' for more information." >&2;}
18469    { (exit 1); exit 1; }; } ;;
18470
18471   *) ac_config_targets="$ac_config_targets $1" ;;
18472
18473   esac
18474   shift
18475 done
18476
18477 ac_configure_extra_args=
18478
18479 if $ac_cs_silent; then
18480   exec 6>/dev/null
18481   ac_configure_extra_args="$ac_configure_extra_args --silent"
18482 fi
18483
18484 _ACEOF
18485 cat >>$CONFIG_STATUS <<_ACEOF
18486 if \$ac_cs_recheck; then
18487   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18488   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18489 fi
18490
18491 _ACEOF
18492
18493 cat >>$CONFIG_STATUS <<_ACEOF
18494 #
18495 # INIT-COMMANDS section.
18496 #
18497
18498
18499
18500
18501 _ACEOF
18502
18503
18504
18505 cat >>$CONFIG_STATUS <<\_ACEOF
18506 for ac_config_target in $ac_config_targets
18507 do
18508   case "$ac_config_target" in
18509   # Handling of arguments.
18510   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18511   "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
18512   "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
18513   "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
18514   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18515   "contrib/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
18516   "muttbug.sh" ) CONFIG_FILES="$CONFIG_FILES muttbug.sh" ;;
18517   "imap/Makefile" ) CONFIG_FILES="$CONFIG_FILES imap/Makefile" ;;
18518   "Muttngrc.head" ) CONFIG_FILES="$CONFIG_FILES Muttngrc.head" ;;
18519   "doc/instdoc.sh" ) CONFIG_FILES="$CONFIG_FILES doc/instdoc.sh" ;;
18520   "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18521   "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
18522   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18523   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18524 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18525    { (exit 1); exit 1; }; };;
18526   esac
18527 done
18528
18529 # If the user did not use the arguments to specify the items to instantiate,
18530 # then the envvar interface is used.  Set only those that are not.
18531 # We use the long form for the default assignment because of an extremely
18532 # bizarre bug on SunOS 4.1.3.
18533 if $ac_need_defaults; then
18534   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18535   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18536   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18537 fi
18538
18539 # Have a temporary directory for convenience.  Make it in the build tree
18540 # simply because there is no reason to put it here, and in addition,
18541 # creating and moving files from /tmp can sometimes cause problems.
18542 # Create a temporary directory, and hook for its removal unless debugging.
18543 $debug ||
18544 {
18545   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18546   trap '{ (exit 1); exit 1; }' 1 2 13 15
18547 }
18548
18549 # Create a (secure) tmp directory for tmp files.
18550
18551 {
18552   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18553   test -n "$tmp" && test -d "$tmp"
18554 }  ||
18555 {
18556   tmp=./confstat$$-$RANDOM
18557   (umask 077 && mkdir $tmp)
18558 } ||
18559 {
18560    echo "$me: cannot create a temporary directory in ." >&2
18561    { (exit 1); exit 1; }
18562 }
18563
18564 _ACEOF
18565
18566 cat >>$CONFIG_STATUS <<_ACEOF
18567
18568 #
18569 # CONFIG_FILES section.
18570 #
18571
18572 # No need to generate the scripts if there are no CONFIG_FILES.
18573 # This happens for instance when ./config.status config.h
18574 if test -n "\$CONFIG_FILES"; then
18575   # Protect against being on the right side of a sed subst in config.status.
18576   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18577    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18578 s,@SHELL@,$SHELL,;t t
18579 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18580 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18581 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18582 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18583 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18584 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18585 s,@exec_prefix@,$exec_prefix,;t t
18586 s,@prefix@,$prefix,;t t
18587 s,@program_transform_name@,$program_transform_name,;t t
18588 s,@bindir@,$bindir,;t t
18589 s,@sbindir@,$sbindir,;t t
18590 s,@libexecdir@,$libexecdir,;t t
18591 s,@datadir@,$datadir,;t t
18592 s,@sysconfdir@,$sysconfdir,;t t
18593 s,@sharedstatedir@,$sharedstatedir,;t t
18594 s,@localstatedir@,$localstatedir,;t t
18595 s,@libdir@,$libdir,;t t
18596 s,@includedir@,$includedir,;t t
18597 s,@oldincludedir@,$oldincludedir,;t t
18598 s,@infodir@,$infodir,;t t
18599 s,@mandir@,$mandir,;t t
18600 s,@build_alias@,$build_alias,;t t
18601 s,@host_alias@,$host_alias,;t t
18602 s,@target_alias@,$target_alias,;t t
18603 s,@DEFS@,$DEFS,;t t
18604 s,@ECHO_C@,$ECHO_C,;t t
18605 s,@ECHO_N@,$ECHO_N,;t t
18606 s,@ECHO_T@,$ECHO_T,;t t
18607 s,@LIBS@,$LIBS,;t t
18608 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18609 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18610 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18611 s,@PACKAGE@,$PACKAGE,;t t
18612 s,@VERSION@,$VERSION,;t t
18613 s,@ACLOCAL@,$ACLOCAL,;t t
18614 s,@AUTOCONF@,$AUTOCONF,;t t
18615 s,@AUTOMAKE@,$AUTOMAKE,;t t
18616 s,@AUTOHEADER@,$AUTOHEADER,;t t
18617 s,@MAKEINFO@,$MAKEINFO,;t t
18618 s,@SET_MAKE@,$SET_MAKE,;t t
18619 s,@build@,$build,;t t
18620 s,@build_cpu@,$build_cpu,;t t
18621 s,@build_vendor@,$build_vendor,;t t
18622 s,@build_os@,$build_os,;t t
18623 s,@host@,$host,;t t
18624 s,@host_cpu@,$host_cpu,;t t
18625 s,@host_vendor@,$host_vendor,;t t
18626 s,@host_os@,$host_os,;t t
18627 s,@CC@,$CC,;t t
18628 s,@CFLAGS@,$CFLAGS,;t t
18629 s,@LDFLAGS@,$LDFLAGS,;t t
18630 s,@CPPFLAGS@,$CPPFLAGS,;t t
18631 s,@ac_ct_CC@,$ac_ct_CC,;t t
18632 s,@EXEEXT@,$EXEEXT,;t t
18633 s,@OBJEXT@,$OBJEXT,;t t
18634 s,@CPP@,$CPP,;t t
18635 s,@EGREP@,$EGREP,;t t
18636 s,@U@,$U,;t t
18637 s,@ANSI2KNR@,$ANSI2KNR,;t t
18638 s,@RANLIB@,$RANLIB,;t t
18639 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18640 s,@AR@,$AR,;t t
18641 s,@ac_ct_AR@,$ac_ct_AR,;t t
18642 s,@DBX@,$DBX,;t t
18643 s,@GDB@,$GDB,;t t
18644 s,@SDB@,$SDB,;t t
18645 s,@DEBUGGER@,$DEBUGGER,;t t
18646 s,@SENDMAIL@,$SENDMAIL,;t t
18647 s,@GPGME_CONFIG@,$GPGME_CONFIG,;t t
18648 s,@LIBGPGME_CFLAGS@,$LIBGPGME_CFLAGS,;t t
18649 s,@LIBGPGME_LIBS@,$LIBGPGME_LIBS,;t t
18650 s,@OPS@,$OPS,;t t
18651 s,@PGPAUX_TARGET@,$PGPAUX_TARGET,;t t
18652 s,@SMIMEAUX_TARGET@,$SMIMEAUX_TARGET,;t t
18653 s,@SUBVERSION@,$SUBVERSION,;t t
18654 s,@ISPELL@,$ISPELL,;t t
18655 s,@LIBOBJS@,$LIBOBJS,;t t
18656 s,@DOTLOCK_TARGET@,$DOTLOCK_TARGET,;t t
18657 s,@docdir@,$docdir,;t t
18658 s,@DOTLOCK_GROUP@,$DOTLOCK_GROUP,;t t
18659 s,@DOTLOCK_PERMISSION@,$DOTLOCK_PERMISSION,;t t
18660 s,@BUILD_IMAP_TRUE@,$BUILD_IMAP_TRUE,;t t
18661 s,@BUILD_IMAP_FALSE@,$BUILD_IMAP_FALSE,;t t
18662 s,@KRB5CFGPATH@,$KRB5CFGPATH,;t t
18663 s,@USE_GSS_TRUE@,$USE_GSS_TRUE,;t t
18664 s,@USE_GSS_FALSE@,$USE_GSS_FALSE,;t t
18665 s,@USE_SSL_TRUE@,$USE_SSL_TRUE,;t t
18666 s,@USE_SSL_FALSE@,$USE_SSL_FALSE,;t t
18667 s,@LIBGNUTLS_CONFIG@,$LIBGNUTLS_CONFIG,;t t
18668 s,@LIBGNUTLS_CFLAGS@,$LIBGNUTLS_CFLAGS,;t t
18669 s,@LIBGNUTLS_LIBS@,$LIBGNUTLS_LIBS,;t t
18670 s,@USE_SASL_TRUE@,$USE_SASL_TRUE,;t t
18671 s,@USE_SASL_FALSE@,$USE_SASL_FALSE,;t t
18672 s,@MUTTLIBS@,$MUTTLIBS,;t t
18673 s,@MUTT_LIB_OBJECTS@,$MUTT_LIB_OBJECTS,;t t
18674 s,@LIBIMAP@,$LIBIMAP,;t t
18675 s,@LIBIMAPDEPS@,$LIBIMAPDEPS,;t t
18676 s,@ALLOCA@,$ALLOCA,;t t
18677 s,@GLIBC21@,$GLIBC21,;t t
18678 s,@LIBICONV@,$LIBICONV,;t t
18679 s,@USE_NLS@,$USE_NLS,;t t
18680 s,@MSGFMT@,$MSGFMT,;t t
18681 s,@GMSGFMT@,$GMSGFMT,;t t
18682 s,@XGETTEXT@,$XGETTEXT,;t t
18683 s,@INTLBISON@,$INTLBISON,;t t
18684 s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
18685 s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
18686 s,@CATALOGS@,$CATALOGS,;t t
18687 s,@CATOBJEXT@,$CATOBJEXT,;t t
18688 s,@GMOFILES@,$GMOFILES,;t t
18689 s,@INTLLIBS@,$INTLLIBS,;t t
18690 s,@INTLOBJS@,$INTLOBJS,;t t
18691 s,@POFILES@,$POFILES,;t t
18692 s,@POSUB@,$POSUB,;t t
18693 s,@DATADIRNAME@,$DATADIRNAME,;t t
18694 s,@INSTOBJEXT@,$INSTOBJEXT,;t t
18695 s,@GENCAT@,$GENCAT,;t t
18696 s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
18697 s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
18698 s,@mutt_libesmtp_config_path@,$mutt_libesmtp_config_path,;t t
18699 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18700 CEOF
18701
18702 _ACEOF
18703
18704   cat >>$CONFIG_STATUS <<\_ACEOF
18705   # Split the substitutions into bite-sized pieces for seds with
18706   # small command number limits, like on Digital OSF/1 and HP-UX.
18707   ac_max_sed_lines=48
18708   ac_sed_frag=1 # Number of current file.
18709   ac_beg=1 # First line for current file.
18710   ac_end=$ac_max_sed_lines # Line after last line for current file.
18711   ac_more_lines=:
18712   ac_sed_cmds=
18713   while $ac_more_lines; do
18714     if test $ac_beg -gt 1; then
18715       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18716     else
18717       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18718     fi
18719     if test ! -s $tmp/subs.frag; then
18720       ac_more_lines=false
18721     else
18722       # The purpose of the label and of the branching condition is to
18723       # speed up the sed processing (if there are no `@' at all, there
18724       # is no need to browse any of the substitutions).
18725       # These are the two extra sed commands mentioned above.
18726       (echo ':t
18727   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18728       if test -z "$ac_sed_cmds"; then
18729         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18730       else
18731         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18732       fi
18733       ac_sed_frag=`expr $ac_sed_frag + 1`
18734       ac_beg=$ac_end
18735       ac_end=`expr $ac_end + $ac_max_sed_lines`
18736     fi
18737   done
18738   if test -z "$ac_sed_cmds"; then
18739     ac_sed_cmds=cat
18740   fi
18741 fi # test -n "$CONFIG_FILES"
18742
18743 _ACEOF
18744 cat >>$CONFIG_STATUS <<\_ACEOF
18745 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18746   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18747   case $ac_file in
18748   - | *:- | *:-:* ) # input from stdin
18749         cat >$tmp/stdin
18750         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18751         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18752   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18753         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18754   * )   ac_file_in=$ac_file.in ;;
18755   esac
18756
18757   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18758   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18759 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18760          X"$ac_file" : 'X\(//\)[^/]' \| \
18761          X"$ac_file" : 'X\(//\)$' \| \
18762          X"$ac_file" : 'X\(/\)' \| \
18763          .     : '\(.\)' 2>/dev/null ||
18764 echo X"$ac_file" |
18765     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18766           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18767           /^X\(\/\/\)$/{ s//\1/; q; }
18768           /^X\(\/\).*/{ s//\1/; q; }
18769           s/.*/./; q'`
18770   { if $as_mkdir_p; then
18771     mkdir -p "$ac_dir"
18772   else
18773     as_dir="$ac_dir"
18774     as_dirs=
18775     while test ! -d "$as_dir"; do
18776       as_dirs="$as_dir $as_dirs"
18777       as_dir=`(dirname "$as_dir") 2>/dev/null ||
18778 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18779          X"$as_dir" : 'X\(//\)[^/]' \| \
18780          X"$as_dir" : 'X\(//\)$' \| \
18781          X"$as_dir" : 'X\(/\)' \| \
18782          .     : '\(.\)' 2>/dev/null ||
18783 echo X"$as_dir" |
18784     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18785           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18786           /^X\(\/\/\)$/{ s//\1/; q; }
18787           /^X\(\/\).*/{ s//\1/; q; }
18788           s/.*/./; q'`
18789     done
18790     test ! -n "$as_dirs" || mkdir $as_dirs
18791   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18792 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18793    { (exit 1); exit 1; }; }; }
18794
18795   ac_builddir=.
18796
18797 if test "$ac_dir" != .; then
18798   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18799   # A "../" for each directory in $ac_dir_suffix.
18800   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18801 else
18802   ac_dir_suffix= ac_top_builddir=
18803 fi
18804
18805 case $srcdir in
18806   .)  # No --srcdir option.  We are building in place.
18807     ac_srcdir=.
18808     if test -z "$ac_top_builddir"; then
18809        ac_top_srcdir=.
18810     else
18811        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18812     fi ;;
18813   [\\/]* | ?:[\\/]* )  # Absolute path.
18814     ac_srcdir=$srcdir$ac_dir_suffix;
18815     ac_top_srcdir=$srcdir ;;
18816   *) # Relative path.
18817     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18818     ac_top_srcdir=$ac_top_builddir$srcdir ;;
18819 esac
18820
18821 # Do not use `cd foo && pwd` to compute absolute paths, because
18822 # the directories may not exist.
18823 case `pwd` in
18824 .) ac_abs_builddir="$ac_dir";;
18825 *)
18826   case "$ac_dir" in
18827   .) ac_abs_builddir=`pwd`;;
18828   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
18829   *) ac_abs_builddir=`pwd`/"$ac_dir";;
18830   esac;;
18831 esac
18832 case $ac_abs_builddir in
18833 .) ac_abs_top_builddir=${ac_top_builddir}.;;
18834 *)
18835   case ${ac_top_builddir}. in
18836   .) ac_abs_top_builddir=$ac_abs_builddir;;
18837   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
18838   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
18839   esac;;
18840 esac
18841 case $ac_abs_builddir in
18842 .) ac_abs_srcdir=$ac_srcdir;;
18843 *)
18844   case $ac_srcdir in
18845   .) ac_abs_srcdir=$ac_abs_builddir;;
18846   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
18847   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
18848   esac;;
18849 esac
18850 case $ac_abs_builddir in
18851 .) ac_abs_top_srcdir=$ac_top_srcdir;;
18852 *)
18853   case $ac_top_srcdir in
18854   .) ac_abs_top_srcdir=$ac_abs_builddir;;
18855   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
18856   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
18857   esac;;
18858 esac
18859
18860
18861   case $INSTALL in
18862   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18863   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18864   esac
18865
18866   # Let's still pretend it is `configure' which instantiates (i.e., don't
18867   # use $as_me), people would be surprised to read:
18868   #    /* config.h.  Generated by config.status.  */
18869   if test x"$ac_file" = x-; then
18870     configure_input=
18871   else
18872     configure_input="$ac_file.  "
18873   fi
18874   configure_input=$configure_input"Generated from `echo $ac_file_in |
18875                                      sed 's,.*/,,'` by configure."
18876
18877   # First look for the input files in the build tree, otherwise in the
18878   # src tree.
18879   ac_file_inputs=`IFS=:
18880     for f in $ac_file_in; do
18881       case $f in
18882       -) echo $tmp/stdin ;;
18883       [\\/$]*)
18884          # Absolute (can't be DOS-style, as IFS=:)
18885          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18886 echo "$as_me: error: cannot find input file: $f" >&2;}
18887    { (exit 1); exit 1; }; }
18888          echo "$f";;
18889       *) # Relative
18890          if test -f "$f"; then
18891            # Build tree
18892            echo "$f"
18893          elif test -f "$srcdir/$f"; then
18894            # Source tree
18895            echo "$srcdir/$f"
18896          else
18897            # /dev/null tree
18898            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18899 echo "$as_me: error: cannot find input file: $f" >&2;}
18900    { (exit 1); exit 1; }; }
18901          fi;;
18902       esac
18903     done` || { (exit 1); exit 1; }
18904
18905   if test x"$ac_file" != x-; then
18906     { echo "$as_me:$LINENO: creating $ac_file" >&5
18907 echo "$as_me: creating $ac_file" >&6;}
18908     rm -f "$ac_file"
18909   fi
18910 _ACEOF
18911 cat >>$CONFIG_STATUS <<_ACEOF
18912   sed "$ac_vpsub
18913 $extrasub
18914 _ACEOF
18915 cat >>$CONFIG_STATUS <<\_ACEOF
18916 :t
18917 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18918 s,@configure_input@,$configure_input,;t t
18919 s,@srcdir@,$ac_srcdir,;t t
18920 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18921 s,@top_srcdir@,$ac_top_srcdir,;t t
18922 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18923 s,@builddir@,$ac_builddir,;t t
18924 s,@abs_builddir@,$ac_abs_builddir,;t t
18925 s,@top_builddir@,$ac_top_builddir,;t t
18926 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18927 s,@INSTALL@,$ac_INSTALL,;t t
18928 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18929   rm -f $tmp/stdin
18930   if test x"$ac_file" != x-; then
18931     mv $tmp/out $ac_file
18932   else
18933     cat $tmp/out
18934     rm -f $tmp/out
18935   fi
18936
18937 done
18938 _ACEOF
18939 cat >>$CONFIG_STATUS <<\_ACEOF
18940
18941 #
18942 # CONFIG_HEADER section.
18943 #
18944
18945 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18946 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18947 #
18948 # ac_d sets the value in "#define NAME VALUE" lines.
18949 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
18950 ac_dB='[         ].*$,\1#\2'
18951 ac_dC=' '
18952 ac_dD=',;t'
18953 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18954 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
18955 ac_uB='$,\1#\2define\3'
18956 ac_uC=' '
18957 ac_uD=',;t'
18958
18959 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18960   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18961   case $ac_file in
18962   - | *:- | *:-:* ) # input from stdin
18963         cat >$tmp/stdin
18964         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18965         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18966   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18967         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18968   * )   ac_file_in=$ac_file.in ;;
18969   esac
18970
18971   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18972 echo "$as_me: creating $ac_file" >&6;}
18973
18974   # First look for the input files in the build tree, otherwise in the
18975   # src tree.
18976   ac_file_inputs=`IFS=:
18977     for f in $ac_file_in; do
18978       case $f in
18979       -) echo $tmp/stdin ;;
18980       [\\/$]*)
18981          # Absolute (can't be DOS-style, as IFS=:)
18982          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18983 echo "$as_me: error: cannot find input file: $f" >&2;}
18984    { (exit 1); exit 1; }; }
18985          # Do quote $f, to prevent DOS paths from being IFS'd.
18986          echo "$f";;
18987       *) # Relative
18988          if test -f "$f"; then
18989            # Build tree
18990            echo "$f"
18991          elif test -f "$srcdir/$f"; then
18992            # Source tree
18993            echo "$srcdir/$f"
18994          else
18995            # /dev/null tree
18996            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18997 echo "$as_me: error: cannot find input file: $f" >&2;}
18998    { (exit 1); exit 1; }; }
18999          fi;;
19000       esac
19001     done` || { (exit 1); exit 1; }
19002   # Remove the trailing spaces.
19003   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
19004
19005 _ACEOF
19006
19007 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19008 # `conftest.undefs', that substitutes the proper values into
19009 # config.h.in to produce config.h.  The first handles `#define'
19010 # templates, and the second `#undef' templates.
19011 # And first: Protect against being on the right side of a sed subst in
19012 # config.status.  Protect against being in an unquoted here document
19013 # in config.status.
19014 rm -f conftest.defines conftest.undefs
19015 # Using a here document instead of a string reduces the quoting nightmare.
19016 # Putting comments in sed scripts is not portable.
19017 #
19018 # `end' is used to avoid that the second main sed command (meant for
19019 # 0-ary CPP macros) applies to n-ary macro definitions.
19020 # See the Autoconf documentation for `clear'.
19021 cat >confdef2sed.sed <<\_ACEOF
19022 s/[\\&,]/\\&/g
19023 s,[\\$`],\\&,g
19024 t clear
19025 : clear
19026 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19027 t end
19028 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19029 : end
19030 _ACEOF
19031 # If some macros were called several times there might be several times
19032 # the same #defines, which is useless.  Nevertheless, we may not want to
19033 # sort them, since we want the *last* AC-DEFINE to be honored.
19034 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19035 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19036 rm -f confdef2sed.sed
19037
19038 # This sed command replaces #undef with comments.  This is necessary, for
19039 # example, in the case of _POSIX_SOURCE, which is predefined and required
19040 # on some systems where configure will not decide to define it.
19041 cat >>conftest.undefs <<\_ACEOF
19042 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19043 _ACEOF
19044
19045 # Break up conftest.defines because some shells have a limit on the size
19046 # of here documents, and old seds have small limits too (100 cmds).
19047 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19048 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19049 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19050 echo '  :' >>$CONFIG_STATUS
19051 rm -f conftest.tail
19052 while grep . conftest.defines >/dev/null
19053 do
19054   # Write a limited-size here document to $tmp/defines.sed.
19055   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19056   # Speed up: don't consider the non `#define' lines.
19057   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
19058   # Work around the forget-to-reset-the-flag bug.
19059   echo 't clr' >>$CONFIG_STATUS
19060   echo ': clr' >>$CONFIG_STATUS
19061   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19062   echo 'CEOF
19063   sed -f $tmp/defines.sed $tmp/in >$tmp/out
19064   rm -f $tmp/in
19065   mv $tmp/out $tmp/in
19066 ' >>$CONFIG_STATUS
19067   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19068   rm -f conftest.defines
19069   mv conftest.tail conftest.defines
19070 done
19071 rm -f conftest.defines
19072 echo '  fi # grep' >>$CONFIG_STATUS
19073 echo >>$CONFIG_STATUS
19074
19075 # Break up conftest.undefs because some shells have a limit on the size
19076 # of here documents, and old seds have small limits too (100 cmds).
19077 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
19078 rm -f conftest.tail
19079 while grep . conftest.undefs >/dev/null
19080 do
19081   # Write a limited-size here document to $tmp/undefs.sed.
19082   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19083   # Speed up: don't consider the non `#undef'
19084   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
19085   # Work around the forget-to-reset-the-flag bug.
19086   echo 't clr' >>$CONFIG_STATUS
19087   echo ': clr' >>$CONFIG_STATUS
19088   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19089   echo 'CEOF
19090   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19091   rm -f $tmp/in
19092   mv $tmp/out $tmp/in
19093 ' >>$CONFIG_STATUS
19094   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19095   rm -f conftest.undefs
19096   mv conftest.tail conftest.undefs
19097 done
19098 rm -f conftest.undefs
19099
19100 cat >>$CONFIG_STATUS <<\_ACEOF
19101   # Let's still pretend it is `configure' which instantiates (i.e., don't
19102   # use $as_me), people would be surprised to read:
19103   #    /* config.h.  Generated by config.status.  */
19104   if test x"$ac_file" = x-; then
19105     echo "/* Generated by configure.  */" >$tmp/config.h
19106   else
19107     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
19108   fi
19109   cat $tmp/in >>$tmp/config.h
19110   rm -f $tmp/in
19111   if test x"$ac_file" != x-; then
19112     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19113       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19114 echo "$as_me: $ac_file is unchanged" >&6;}
19115     else
19116       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19117 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19118          X"$ac_file" : 'X\(//\)[^/]' \| \
19119          X"$ac_file" : 'X\(//\)$' \| \
19120          X"$ac_file" : 'X\(/\)' \| \
19121          .     : '\(.\)' 2>/dev/null ||
19122 echo X"$ac_file" |
19123     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19124           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19125           /^X\(\/\/\)$/{ s//\1/; q; }
19126           /^X\(\/\).*/{ s//\1/; q; }
19127           s/.*/./; q'`
19128       { if $as_mkdir_p; then
19129     mkdir -p "$ac_dir"
19130   else
19131     as_dir="$ac_dir"
19132     as_dirs=
19133     while test ! -d "$as_dir"; do
19134       as_dirs="$as_dir $as_dirs"
19135       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19136 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19137          X"$as_dir" : 'X\(//\)[^/]' \| \
19138          X"$as_dir" : 'X\(//\)$' \| \
19139          X"$as_dir" : 'X\(/\)' \| \
19140          .     : '\(.\)' 2>/dev/null ||
19141 echo X"$as_dir" |
19142     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19143           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19144           /^X\(\/\/\)$/{ s//\1/; q; }
19145           /^X\(\/\).*/{ s//\1/; q; }
19146           s/.*/./; q'`
19147     done
19148     test ! -n "$as_dirs" || mkdir $as_dirs
19149   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19150 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19151    { (exit 1); exit 1; }; }; }
19152
19153       rm -f $ac_file
19154       mv $tmp/config.h $ac_file
19155     fi
19156   else
19157     cat $tmp/config.h
19158     rm -f $tmp/config.h
19159   fi
19160 done
19161 _ACEOF
19162 cat >>$CONFIG_STATUS <<\_ACEOF
19163
19164 #
19165 # CONFIG_COMMANDS section.
19166 #
19167 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19168   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19169   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19170   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19171 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19172          X"$ac_dest" : 'X\(//\)[^/]' \| \
19173          X"$ac_dest" : 'X\(//\)$' \| \
19174          X"$ac_dest" : 'X\(/\)' \| \
19175          .     : '\(.\)' 2>/dev/null ||
19176 echo X"$ac_dest" |
19177     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19178           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19179           /^X\(\/\/\)$/{ s//\1/; q; }
19180           /^X\(\/\).*/{ s//\1/; q; }
19181           s/.*/./; q'`
19182   { if $as_mkdir_p; then
19183     mkdir -p "$ac_dir"
19184   else
19185     as_dir="$ac_dir"
19186     as_dirs=
19187     while test ! -d "$as_dir"; do
19188       as_dirs="$as_dir $as_dirs"
19189       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19190 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19191          X"$as_dir" : 'X\(//\)[^/]' \| \
19192          X"$as_dir" : 'X\(//\)$' \| \
19193          X"$as_dir" : 'X\(/\)' \| \
19194          .     : '\(.\)' 2>/dev/null ||
19195 echo X"$as_dir" |
19196     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19197           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19198           /^X\(\/\/\)$/{ s//\1/; q; }
19199           /^X\(\/\).*/{ s//\1/; q; }
19200           s/.*/./; q'`
19201     done
19202     test ! -n "$as_dirs" || mkdir $as_dirs
19203   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19204 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19205    { (exit 1); exit 1; }; }; }
19206
19207   ac_builddir=.
19208
19209 if test "$ac_dir" != .; then
19210   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19211   # A "../" for each directory in $ac_dir_suffix.
19212   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19213 else
19214   ac_dir_suffix= ac_top_builddir=
19215 fi
19216
19217 case $srcdir in
19218   .)  # No --srcdir option.  We are building in place.
19219     ac_srcdir=.
19220     if test -z "$ac_top_builddir"; then
19221        ac_top_srcdir=.
19222     else
19223        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19224     fi ;;
19225   [\\/]* | ?:[\\/]* )  # Absolute path.
19226     ac_srcdir=$srcdir$ac_dir_suffix;
19227     ac_top_srcdir=$srcdir ;;
19228   *) # Relative path.
19229     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19230     ac_top_srcdir=$ac_top_builddir$srcdir ;;
19231 esac
19232
19233 # Do not use `cd foo && pwd` to compute absolute paths, because
19234 # the directories may not exist.
19235 case `pwd` in
19236 .) ac_abs_builddir="$ac_dir";;
19237 *)
19238   case "$ac_dir" in
19239   .) ac_abs_builddir=`pwd`;;
19240   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
19241   *) ac_abs_builddir=`pwd`/"$ac_dir";;
19242   esac;;
19243 esac
19244 case $ac_abs_builddir in
19245 .) ac_abs_top_builddir=${ac_top_builddir}.;;
19246 *)
19247   case ${ac_top_builddir}. in
19248   .) ac_abs_top_builddir=$ac_abs_builddir;;
19249   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
19250   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
19251   esac;;
19252 esac
19253 case $ac_abs_builddir in
19254 .) ac_abs_srcdir=$ac_srcdir;;
19255 *)
19256   case $ac_srcdir in
19257   .) ac_abs_srcdir=$ac_abs_builddir;;
19258   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
19259   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
19260   esac;;
19261 esac
19262 case $ac_abs_builddir in
19263 .) ac_abs_top_srcdir=$ac_top_srcdir;;
19264 *)
19265   case $ac_top_srcdir in
19266   .) ac_abs_top_srcdir=$ac_abs_builddir;;
19267   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
19268   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
19269   esac;;
19270 esac
19271
19272
19273   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19274 echo "$as_me: executing $ac_dest commands" >&6;}
19275   case $ac_dest in
19276     default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
19277     default-2 ) for ac_file in $CONFIG_FILES; do
19278         # Support "outfile[:infile[:infile...]]"
19279         case "$ac_file" in
19280           *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19281         esac
19282         # PO directories have a Makefile.in generated from Makefile.in.in.
19283         case "$ac_file" in */Makefile.in)
19284           # Adjust a relative srcdir.
19285           ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19286           ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
19287           ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19288           # In autoconf-2.13 it is called $ac_given_srcdir.
19289           # In autoconf-2.50 it is called $srcdir.
19290           test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19291           case "$ac_given_srcdir" in
19292             .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19293             /*) top_srcdir="$ac_given_srcdir" ;;
19294             *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
19295           esac
19296           if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19297             rm -f "$ac_dir/POTFILES"
19298             test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19299             sed -e "/^#/d" -e "/^[      ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
19300             test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19301             sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
19302           fi
19303           ;;
19304         esac
19305       done ;;
19306   esac
19307 done
19308 _ACEOF
19309
19310 cat >>$CONFIG_STATUS <<\_ACEOF
19311
19312 { (exit 0); exit 0; }
19313 _ACEOF
19314 chmod +x $CONFIG_STATUS
19315 ac_clean_files=$ac_clean_files_save
19316
19317
19318 # configure is writing to config.log, and then calls config.status.
19319 # config.status does its own redirection, appending to config.log.
19320 # Unfortunately, on DOS this fails, as config.log is still kept open
19321 # by configure, so config.status won't be able to write to it; its
19322 # output is simply discarded.  So we exec the FD to /dev/null,
19323 # effectively closing config.log, so it can be properly (re)opened and
19324 # appended to by config.status.  When coming back to configure, we
19325 # need to make the FD available again.
19326 if test "$no_create" != yes; then
19327   ac_cs_success=:
19328   ac_config_status_args=
19329   test "$silent" = yes &&
19330     ac_config_status_args="$ac_config_status_args --quiet"
19331   exec 5>/dev/null
19332   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19333   exec 5>>config.log
19334   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19335   # would make configure fail if this is the last instruction.
19336   $ac_cs_success || { (exit 1); exit 1; }
19337 fi
19338