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